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]).
-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(RWG)),
list({binary(), lustre@vdom@vnode:element(RWG)})
) -> lustre@vdom@vnode:element(RWG).
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(RWM)),
list({binary(), lustre@vdom@vnode:element(RWM)})
) -> lustre@vdom@vnode:element(RWM).
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(RWS)),
list({binary(), lustre@vdom@vnode:element(RWS)})
) -> lustre@vdom@vnode:element(RWS).
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(RWY)),
list({binary(), lustre@vdom@vnode:element(RWY)})
) -> lustre@vdom@vnode:element(RWY).
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(RXE)),
list({binary(), lustre@vdom@vnode:element(RXE)})
) -> lustre@vdom@vnode:element(RXE).
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(RXK)),
list({binary(), lustre@vdom@vnode:element(RXK)})
) -> lustre@vdom@vnode:element(RXK).
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(RXQ)),
list({binary(), lustre@vdom@vnode:element(RXQ)})
) -> lustre@vdom@vnode:element(RXQ).
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(RXW)),
list({binary(), lustre@vdom@vnode:element(RXW)})
) -> lustre@vdom@vnode:element(RXW).
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(RYC)),
list({binary(), lustre@vdom@vnode:element(RYC)})
) -> lustre@vdom@vnode:element(RYC).
'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(RYI)),
list({binary(), lustre@vdom@vnode:element(RYI)})
) -> lustre@vdom@vnode:element(RYI).
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(RYO)),
list({binary(), lustre@vdom@vnode:element(RYO)})
) -> lustre@vdom@vnode:element(RYO).
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(RYU)),
list({binary(), lustre@vdom@vnode:element(RYU)})
) -> lustre@vdom@vnode:element(RYU).
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(RZA)),
list({binary(), lustre@vdom@vnode:element(RZA)})
) -> lustre@vdom@vnode:element(RZA).
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(RZG)),
list({binary(), lustre@vdom@vnode:element(RZG)})
) -> lustre@vdom@vnode:element(RZG).
dl_(Attributes, Children) ->
lustre@element@keyed:element(<<"dl"/utf8>>, Attributes, Children).