Current section

Files

Jump to
sketch_lustre src sketch@lustre@element@keyed.erl
Raw

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(RLD)),
list({binary(), lustre@vdom@vnode:element(RLD)})
) -> lustre@vdom@vnode:element(RLD).
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(RLJ)),
list({binary(), lustre@vdom@vnode:element(RLJ)})
) -> lustre@vdom@vnode:element(RLJ).
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(RLP)),
list({binary(), lustre@vdom@vnode:element(RLP)})
) -> lustre@vdom@vnode:element(RLP).
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(RLV)),
list({binary(), lustre@vdom@vnode:element(RLV)})
) -> lustre@vdom@vnode:element(RLV).
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(RMB)),
list({binary(), lustre@vdom@vnode:element(RMB)})
) -> lustre@vdom@vnode:element(RMB).
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(RMH)),
list({binary(), lustre@vdom@vnode:element(RMH)})
) -> lustre@vdom@vnode:element(RMH).
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(RMN)),
list({binary(), lustre@vdom@vnode:element(RMN)})
) -> lustre@vdom@vnode:element(RMN).
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(RMT)),
list({binary(), lustre@vdom@vnode:element(RMT)})
) -> lustre@vdom@vnode:element(RMT).
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(RMZ)),
list({binary(), lustre@vdom@vnode:element(RMZ)})
) -> lustre@vdom@vnode:element(RMZ).
'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(RNF)),
list({binary(), lustre@vdom@vnode:element(RNF)})
) -> lustre@vdom@vnode:element(RNF).
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(RNL)),
list({binary(), lustre@vdom@vnode:element(RNL)})
) -> lustre@vdom@vnode:element(RNL).
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(RNR)),
list({binary(), lustre@vdom@vnode:element(RNR)})
) -> lustre@vdom@vnode:element(RNR).
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(RNX)),
list({binary(), lustre@vdom@vnode:element(RNX)})
) -> lustre@vdom@vnode:element(RNX).
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(ROD)),
list({binary(), lustre@vdom@vnode:element(ROD)})
) -> lustre@vdom@vnode:element(ROD).
dl_(Attributes, Children) ->
lustre@element@keyed:element(<<"dl"/utf8>>, Attributes, Children).