Current section
Files
Jump to
Current section
Files
src/sketch@lustre@element@keyed.erl
-module(sketch@lustre@element@keyed).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-define(FILEPATH, "src/sketch/lustre/element/keyed.gleam").
-export([element/4, element_/3, namespaced/5, namespaced_/4, ul/3, ul_/2, ol/3, ol_/2, 'div'/3, div_/2, tbody/3, tbody_/2, dl/3, dl_/2]).
-if(?OTP_RELEASE >= 27).
-define(MODULEDOC(Str), -moduledoc(Str)).
-define(DOC(Str), -doc(Str)).
-else.
-define(MODULEDOC(Str), -compile([])).
-define(DOC(Str), -compile([])).
-endif.
?MODULEDOC(
" This module is a drop-in replacement for `lustre/element/keyed`. Just\n"
" use the new functions, and everything will automagically be styled.\n"
).
-file("src/sketch/lustre/element/keyed.gleam", 11).
?DOC(" [Lustre Documentation](https://hexdocs.pm/lustre/lustre/element/keyed.html#element)\n").
-spec element(
binary(),
sketch@internals@cache@cache:class(),
list(lustre@vdom@vattr:attribute(RGT)),
list({binary(), lustre@vdom@vnode:element(RGT)})
) -> lustre@vdom@vnode:element(RGT).
element(Tag, Class, Attributes, Children) ->
Class_name = sketch@lustre@element:class_name(Class),
Attributes@1 = [lustre@attribute:class(Class_name) | Attributes],
lustre@element@keyed:element(Tag, Attributes@1, Children).
-file("src/sketch/lustre/element/keyed.gleam", 23).
?DOC(" [Lustre Documentation](https://hexdocs.pm/lustre/lustre/element/keyed.html#element)\n").
-spec element_(
binary(),
list(lustre@vdom@vattr:attribute(RGZ)),
list({binary(), lustre@vdom@vnode:element(RGZ)})
) -> lustre@vdom@vnode:element(RGZ).
element_(Tag, Attributes, Children) ->
lustre@element@keyed:element(Tag, Attributes, Children).
-file("src/sketch/lustre/element/keyed.gleam", 32).
?DOC(" [Lustre Documentation](https://hexdocs.pm/lustre/lustre/element/keyed.html#namespaced)\n").
-spec namespaced(
binary(),
binary(),
sketch@internals@cache@cache:class(),
list(lustre@vdom@vattr:attribute(RHF)),
list({binary(), lustre@vdom@vnode:element(RHF)})
) -> lustre@vdom@vnode:element(RHF).
namespaced(Namespace, Tag, Class, Attributes, Children) ->
Class_name = sketch@lustre@element:class_name(Class),
Attributes@1 = [lustre@attribute:class(Class_name) | Attributes],
lustre@element@keyed:namespaced(Namespace, Tag, Attributes@1, Children).
-file("src/sketch/lustre/element/keyed.gleam", 45).
?DOC(" [Lustre Documentation](https://hexdocs.pm/lustre/lustre/element/keyed.html#namespaced)\n").
-spec namespaced_(
binary(),
binary(),
list(lustre@vdom@vattr:attribute(RHL)),
list({binary(), lustre@vdom@vnode:element(RHL)})
) -> lustre@vdom@vnode:element(RHL).
namespaced_(Namespace, Tag, Attributes, Children) ->
lustre@element@keyed:namespaced(Namespace, Tag, Attributes, Children).
-file("src/sketch/lustre/element/keyed.gleam", 58).
?DOC(" [Lustre Documentation](https://hexdocs.pm/lustre/lustre/element/keyed.html#ul)\n").
-spec ul(
sketch@internals@cache@cache:class(),
list(lustre@vdom@vattr:attribute(RHR)),
list({binary(), lustre@vdom@vnode:element(RHR)})
) -> lustre@vdom@vnode:element(RHR).
ul(Class, Attributes, Children) ->
Class_name = sketch@lustre@element:class_name(Class),
Attributes@1 = [lustre@attribute:class(Class_name) | Attributes],
lustre@element@keyed:element(<<"ul"/utf8>>, Attributes@1, Children).
-file("src/sketch/lustre/element/keyed.gleam", 69).
?DOC(" [Lustre Documentation](https://hexdocs.pm/lustre/lustre/element/keyed.html#ul)\n").
-spec ul_(
list(lustre@vdom@vattr:attribute(RHX)),
list({binary(), lustre@vdom@vnode:element(RHX)})
) -> lustre@vdom@vnode:element(RHX).
ul_(Attributes, Children) ->
lustre@element@keyed:element(<<"ul"/utf8>>, Attributes, Children).
-file("src/sketch/lustre/element/keyed.gleam", 77).
?DOC(" [Lustre Documentation](https://hexdocs.pm/lustre/lustre/element/keyed.html#ol)\n").
-spec ol(
sketch@internals@cache@cache:class(),
list(lustre@vdom@vattr:attribute(RID)),
list({binary(), lustre@vdom@vnode:element(RID)})
) -> lustre@vdom@vnode:element(RID).
ol(Class, Attributes, Children) ->
Class_name = sketch@lustre@element:class_name(Class),
Attributes@1 = [lustre@attribute:class(Class_name) | Attributes],
lustre@element@keyed:element(<<"ol"/utf8>>, Attributes@1, Children).
-file("src/sketch/lustre/element/keyed.gleam", 88).
?DOC(" [Lustre Documentation](https://hexdocs.pm/lustre/lustre/element/keyed.html#ol)\n").
-spec ol_(
list(lustre@vdom@vattr:attribute(RIJ)),
list({binary(), lustre@vdom@vnode:element(RIJ)})
) -> lustre@vdom@vnode:element(RIJ).
ol_(Attributes, Children) ->
lustre@element@keyed:element(<<"ol"/utf8>>, Attributes, Children).
-file("src/sketch/lustre/element/keyed.gleam", 96).
?DOC(" [Lustre Documentation](https://hexdocs.pm/lustre/lustre/element/keyed.html#div)\n").
-spec 'div'(
sketch@internals@cache@cache:class(),
list(lustre@vdom@vattr:attribute(RIP)),
list({binary(), lustre@vdom@vnode:element(RIP)})
) -> lustre@vdom@vnode:element(RIP).
'div'(Class, Attributes, Children) ->
Class_name = sketch@lustre@element:class_name(Class),
Attributes@1 = [lustre@attribute:class(Class_name) | Attributes],
lustre@element@keyed:element(<<"div"/utf8>>, Attributes@1, Children).
-file("src/sketch/lustre/element/keyed.gleam", 107).
?DOC(" [Lustre Documentation](https://hexdocs.pm/lustre/lustre/element/keyed.html#div)\n").
-spec div_(
list(lustre@vdom@vattr:attribute(RIV)),
list({binary(), lustre@vdom@vnode:element(RIV)})
) -> lustre@vdom@vnode:element(RIV).
div_(Attributes, Children) ->
lustre@element@keyed:element(<<"div"/utf8>>, Attributes, Children).
-file("src/sketch/lustre/element/keyed.gleam", 115).
?DOC(" [Lustre Documentation](https://hexdocs.pm/lustre/lustre/element/keyed.html#tbody)\n").
-spec tbody(
sketch@internals@cache@cache:class(),
list(lustre@vdom@vattr:attribute(RJB)),
list({binary(), lustre@vdom@vnode:element(RJB)})
) -> lustre@vdom@vnode:element(RJB).
tbody(Class, Attributes, Children) ->
Class_name = sketch@lustre@element:class_name(Class),
Attributes@1 = [lustre@attribute:class(Class_name) | Attributes],
lustre@element@keyed:element(<<"tbody"/utf8>>, Attributes@1, Children).
-file("src/sketch/lustre/element/keyed.gleam", 126).
?DOC(" [Lustre Documentation](https://hexdocs.pm/lustre/lustre/element/keyed.html#tbody)\n").
-spec tbody_(
list(lustre@vdom@vattr:attribute(RJH)),
list({binary(), lustre@vdom@vnode:element(RJH)})
) -> lustre@vdom@vnode:element(RJH).
tbody_(Attributes, Children) ->
lustre@element@keyed:element(<<"tbody"/utf8>>, Attributes, Children).
-file("src/sketch/lustre/element/keyed.gleam", 134).
?DOC(" [Lustre Documentation](https://hexdocs.pm/lustre/lustre/element/keyed.html#dl)\n").
-spec dl(
sketch@internals@cache@cache:class(),
list(lustre@vdom@vattr:attribute(RJN)),
list({binary(), lustre@vdom@vnode:element(RJN)})
) -> lustre@vdom@vnode:element(RJN).
dl(Class, Attributes, Children) ->
Class_name = sketch@lustre@element:class_name(Class),
Attributes@1 = [lustre@attribute:class(Class_name) | Attributes],
lustre@element@keyed:element(<<"dl"/utf8>>, Attributes@1, Children).
-file("src/sketch/lustre/element/keyed.gleam", 145).
?DOC(" [Lustre Documentation](https://hexdocs.pm/lustre/lustre/element/keyed.html#dl)\n").
-spec dl_(
list(lustre@vdom@vattr:attribute(RJT)),
list({binary(), lustre@vdom@vnode:element(RJT)})
) -> lustre@vdom@vnode:element(RJT).
dl_(Attributes, Children) ->
lustre@element@keyed:element(<<"dl"/utf8>>, Attributes, Children).