|
|
@ -60,12 +60,7 @@ import org.w3c.dom.HTMLVideoElement |
|
|
|
import org.w3c.dom.Text |
|
|
|
import org.w3c.dom.Text |
|
|
|
import org.w3c.dom.css.CSSStyleSheet |
|
|
|
import org.w3c.dom.css.CSSStyleSheet |
|
|
|
|
|
|
|
|
|
|
|
@Deprecated( |
|
|
|
typealias AttrBuilderContext<T> = AttrsScope<T>.() -> Unit |
|
|
|
message = "Renamed to AttrsBuilder<T>", |
|
|
|
|
|
|
|
replaceWith = ReplaceWith("AttrsBuilder<T>", "org.jetbrains.compose.web.dom.AttrsBuilder") |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
typealias AttrBuilderContext<T> = AttrsBuilder<T> |
|
|
|
|
|
|
|
typealias AttrsBuilder<T> = AttrsScope<T>.() -> Unit |
|
|
|
|
|
|
|
typealias ContentBuilder<T> = @Composable ElementScope<T>.() -> Unit |
|
|
|
typealias ContentBuilder<T> = @Composable ElementScope<T>.() -> Unit |
|
|
|
|
|
|
|
|
|
|
|
private open class ElementBuilderImplementation<TElement : Element>(private val tagName: String) : ElementBuilder<TElement> { |
|
|
|
private open class ElementBuilderImplementation<TElement : Element>(private val tagName: String) : ElementBuilder<TElement> { |
|
|
@ -168,7 +163,7 @@ fun interface ElementBuilder<TElement : Element> { |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Address( |
|
|
|
fun Address( |
|
|
|
attrs: AttrsBuilder<HTMLElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLElement>? = null, |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -180,7 +175,7 @@ fun Address( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Article( |
|
|
|
fun Article( |
|
|
|
attrs: AttrsBuilder<HTMLElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLElement>? = null, |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -192,7 +187,7 @@ fun Article( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Aside( |
|
|
|
fun Aside( |
|
|
|
attrs: AttrsBuilder<HTMLElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLElement>? = null, |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -204,7 +199,7 @@ fun Aside( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Header( |
|
|
|
fun Header( |
|
|
|
attrs: AttrsBuilder<HTMLElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLElement>? = null, |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -216,7 +211,7 @@ fun Header( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Area( |
|
|
|
fun Area( |
|
|
|
attrs: AttrsBuilder<HTMLAreaElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLAreaElement>? = null, |
|
|
|
content: ContentBuilder<HTMLAreaElement>? = null |
|
|
|
content: ContentBuilder<HTMLAreaElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -228,7 +223,7 @@ fun Area( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Audio( |
|
|
|
fun Audio( |
|
|
|
attrs: AttrsBuilder<HTMLAudioElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLAudioElement>? = null, |
|
|
|
content: ContentBuilder<HTMLAudioElement>? = null |
|
|
|
content: ContentBuilder<HTMLAudioElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -240,7 +235,7 @@ fun Audio( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun HTMLMap( |
|
|
|
fun HTMLMap( |
|
|
|
attrs: AttrsBuilder<HTMLMapElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLMapElement>? = null, |
|
|
|
content: ContentBuilder<HTMLMapElement>? = null |
|
|
|
content: ContentBuilder<HTMLMapElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -252,7 +247,7 @@ fun HTMLMap( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Track( |
|
|
|
fun Track( |
|
|
|
attrs: AttrsBuilder<HTMLTrackElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLTrackElement>? = null, |
|
|
|
content: ContentBuilder<HTMLTrackElement>? = null |
|
|
|
content: ContentBuilder<HTMLTrackElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -264,7 +259,7 @@ fun Track( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Video( |
|
|
|
fun Video( |
|
|
|
attrs: AttrsBuilder<HTMLVideoElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLVideoElement>? = null, |
|
|
|
content: ContentBuilder<HTMLVideoElement>? = null |
|
|
|
content: ContentBuilder<HTMLVideoElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -276,7 +271,7 @@ fun Video( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Datalist( |
|
|
|
fun Datalist( |
|
|
|
attrs: AttrsBuilder<HTMLDataListElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLDataListElement>? = null, |
|
|
|
content: ContentBuilder<HTMLDataListElement>? = null |
|
|
|
content: ContentBuilder<HTMLDataListElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -288,7 +283,7 @@ fun Datalist( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Fieldset( |
|
|
|
fun Fieldset( |
|
|
|
attrs: AttrsBuilder<HTMLFieldSetElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLFieldSetElement>? = null, |
|
|
|
content: ContentBuilder<HTMLFieldSetElement>? = null |
|
|
|
content: ContentBuilder<HTMLFieldSetElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -300,7 +295,7 @@ fun Fieldset( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Legend( |
|
|
|
fun Legend( |
|
|
|
attrs: AttrsBuilder<HTMLLegendElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLLegendElement>? = null, |
|
|
|
content: ContentBuilder<HTMLLegendElement>? = null |
|
|
|
content: ContentBuilder<HTMLLegendElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -312,7 +307,7 @@ fun Legend( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Meter( |
|
|
|
fun Meter( |
|
|
|
attrs: AttrsBuilder<HTMLMeterElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLMeterElement>? = null, |
|
|
|
content: ContentBuilder<HTMLMeterElement>? = null |
|
|
|
content: ContentBuilder<HTMLMeterElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -324,7 +319,7 @@ fun Meter( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Output( |
|
|
|
fun Output( |
|
|
|
attrs: AttrsBuilder<HTMLOutputElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLOutputElement>? = null, |
|
|
|
content: ContentBuilder<HTMLOutputElement>? = null |
|
|
|
content: ContentBuilder<HTMLOutputElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -336,7 +331,7 @@ fun Output( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Progress( |
|
|
|
fun Progress( |
|
|
|
attrs: AttrsBuilder<HTMLProgressElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLProgressElement>? = null, |
|
|
|
content: ContentBuilder<HTMLProgressElement>? = null |
|
|
|
content: ContentBuilder<HTMLProgressElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -348,7 +343,7 @@ fun Progress( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Embed( |
|
|
|
fun Embed( |
|
|
|
attrs: AttrsBuilder<HTMLEmbedElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLEmbedElement>? = null, |
|
|
|
content: ContentBuilder<HTMLEmbedElement>? = null |
|
|
|
content: ContentBuilder<HTMLEmbedElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -360,7 +355,7 @@ fun Embed( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Iframe( |
|
|
|
fun Iframe( |
|
|
|
attrs: AttrsBuilder<HTMLIFrameElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLIFrameElement>? = null, |
|
|
|
content: ContentBuilder<HTMLIFrameElement>? = null |
|
|
|
content: ContentBuilder<HTMLIFrameElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -372,7 +367,7 @@ fun Iframe( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Object( |
|
|
|
fun Object( |
|
|
|
attrs: AttrsBuilder<HTMLObjectElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLObjectElement>? = null, |
|
|
|
content: ContentBuilder<HTMLObjectElement>? = null |
|
|
|
content: ContentBuilder<HTMLObjectElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -384,7 +379,7 @@ fun Object( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Param( |
|
|
|
fun Param( |
|
|
|
attrs: AttrsBuilder<HTMLParamElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLParamElement>? = null, |
|
|
|
content: ContentBuilder<HTMLParamElement>? = null |
|
|
|
content: ContentBuilder<HTMLParamElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -396,7 +391,7 @@ fun Param( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Picture( |
|
|
|
fun Picture( |
|
|
|
attrs: AttrsBuilder<HTMLPictureElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLPictureElement>? = null, |
|
|
|
content: ContentBuilder<HTMLPictureElement>? = null |
|
|
|
content: ContentBuilder<HTMLPictureElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -408,7 +403,7 @@ fun Picture( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Source( |
|
|
|
fun Source( |
|
|
|
attrs: AttrsBuilder<HTMLSourceElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLSourceElement>? = null, |
|
|
|
content: ContentBuilder<HTMLSourceElement>? = null |
|
|
|
content: ContentBuilder<HTMLSourceElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -431,7 +426,7 @@ fun Text(value: String) { |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Div( |
|
|
|
fun Div( |
|
|
|
attrs: AttrsBuilder<HTMLDivElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLDivElement>? = null, |
|
|
|
content: ContentBuilder<HTMLDivElement>? = null |
|
|
|
content: ContentBuilder<HTMLDivElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -444,7 +439,7 @@ fun Div( |
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun A( |
|
|
|
fun A( |
|
|
|
href: String? = null, |
|
|
|
href: String? = null, |
|
|
|
attrs: AttrsBuilder<HTMLAnchorElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLAnchorElement>? = null, |
|
|
|
content: ContentBuilder<HTMLAnchorElement>? = null |
|
|
|
content: ContentBuilder<HTMLAnchorElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -463,101 +458,101 @@ fun A( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Button( |
|
|
|
fun Button( |
|
|
|
attrs: AttrsBuilder<HTMLButtonElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLButtonElement>? = null, |
|
|
|
content: ContentBuilder<HTMLButtonElement>? = null |
|
|
|
content: ContentBuilder<HTMLButtonElement>? = null |
|
|
|
) = TagElement(elementBuilder = Button, applyAttrs = attrs, content = content) |
|
|
|
) = TagElement(elementBuilder = Button, applyAttrs = attrs, content = content) |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun H1( |
|
|
|
fun H1( |
|
|
|
attrs: AttrsBuilder<HTMLHeadingElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLHeadingElement>? = null, |
|
|
|
content: ContentBuilder<HTMLHeadingElement>? = null |
|
|
|
content: ContentBuilder<HTMLHeadingElement>? = null |
|
|
|
) = TagElement(elementBuilder = H1, applyAttrs = attrs, content = content) |
|
|
|
) = TagElement(elementBuilder = H1, applyAttrs = attrs, content = content) |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun H2( |
|
|
|
fun H2( |
|
|
|
attrs: AttrsBuilder<HTMLHeadingElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLHeadingElement>? = null, |
|
|
|
content: ContentBuilder<HTMLHeadingElement>? = null |
|
|
|
content: ContentBuilder<HTMLHeadingElement>? = null |
|
|
|
) = TagElement(elementBuilder = H2, applyAttrs = attrs, content = content) |
|
|
|
) = TagElement(elementBuilder = H2, applyAttrs = attrs, content = content) |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun H3( |
|
|
|
fun H3( |
|
|
|
attrs: AttrsBuilder<HTMLHeadingElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLHeadingElement>? = null, |
|
|
|
content: ContentBuilder<HTMLHeadingElement>? = null |
|
|
|
content: ContentBuilder<HTMLHeadingElement>? = null |
|
|
|
) = TagElement(elementBuilder = H3, applyAttrs = attrs, content = content) |
|
|
|
) = TagElement(elementBuilder = H3, applyAttrs = attrs, content = content) |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun H4( |
|
|
|
fun H4( |
|
|
|
attrs: AttrsBuilder<HTMLHeadingElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLHeadingElement>? = null, |
|
|
|
content: ContentBuilder<HTMLHeadingElement>? = null |
|
|
|
content: ContentBuilder<HTMLHeadingElement>? = null |
|
|
|
) = TagElement(elementBuilder = H4, applyAttrs = attrs, content = content) |
|
|
|
) = TagElement(elementBuilder = H4, applyAttrs = attrs, content = content) |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun H5( |
|
|
|
fun H5( |
|
|
|
attrs: AttrsBuilder<HTMLHeadingElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLHeadingElement>? = null, |
|
|
|
content: ContentBuilder<HTMLHeadingElement>? = null |
|
|
|
content: ContentBuilder<HTMLHeadingElement>? = null |
|
|
|
) = TagElement(elementBuilder = H5, applyAttrs = attrs, content = content) |
|
|
|
) = TagElement(elementBuilder = H5, applyAttrs = attrs, content = content) |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun H6( |
|
|
|
fun H6( |
|
|
|
attrs: AttrsBuilder<HTMLHeadingElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLHeadingElement>? = null, |
|
|
|
content: ContentBuilder<HTMLHeadingElement>? = null |
|
|
|
content: ContentBuilder<HTMLHeadingElement>? = null |
|
|
|
) = TagElement(elementBuilder = H6, applyAttrs = attrs, content = content) |
|
|
|
) = TagElement(elementBuilder = H6, applyAttrs = attrs, content = content) |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun P( |
|
|
|
fun P( |
|
|
|
attrs: AttrsBuilder<HTMLParagraphElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLParagraphElement>? = null, |
|
|
|
content: ContentBuilder<HTMLParagraphElement>? = null |
|
|
|
content: ContentBuilder<HTMLParagraphElement>? = null |
|
|
|
) = TagElement(elementBuilder = P, applyAttrs = attrs, content = content) |
|
|
|
) = TagElement(elementBuilder = P, applyAttrs = attrs, content = content) |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Em( |
|
|
|
fun Em( |
|
|
|
attrs: AttrsBuilder<HTMLElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLElement>? = null, |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
) = TagElement(elementBuilder = Em, applyAttrs = attrs, content = content) |
|
|
|
) = TagElement(elementBuilder = Em, applyAttrs = attrs, content = content) |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun I( |
|
|
|
fun I( |
|
|
|
attrs: AttrsBuilder<HTMLElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLElement>? = null, |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
) = TagElement(elementBuilder = I, applyAttrs = attrs, content = content) |
|
|
|
) = TagElement(elementBuilder = I, applyAttrs = attrs, content = content) |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun B( |
|
|
|
fun B( |
|
|
|
attrs: AttrsBuilder<HTMLElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLElement>? = null, |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
) = TagElement(elementBuilder = B, applyAttrs = attrs, content = content) |
|
|
|
) = TagElement(elementBuilder = B, applyAttrs = attrs, content = content) |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Small( |
|
|
|
fun Small( |
|
|
|
attrs: AttrsBuilder<HTMLElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLElement>? = null, |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
) = TagElement(elementBuilder = Small, applyAttrs = attrs, content = content) |
|
|
|
) = TagElement(elementBuilder = Small, applyAttrs = attrs, content = content) |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Span( |
|
|
|
fun Span( |
|
|
|
attrs: AttrsBuilder<HTMLSpanElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLSpanElement>? = null, |
|
|
|
content: ContentBuilder<HTMLSpanElement>? = null |
|
|
|
content: ContentBuilder<HTMLSpanElement>? = null |
|
|
|
) = TagElement(elementBuilder = Span, applyAttrs = attrs, content = content) |
|
|
|
) = TagElement(elementBuilder = Span, applyAttrs = attrs, content = content) |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Br(attrs: AttrsBuilder<HTMLBRElement>? = null) = |
|
|
|
fun Br(attrs: AttrBuilderContext<HTMLBRElement>? = null) = |
|
|
|
TagElement(elementBuilder = Br, applyAttrs = attrs, content = null) |
|
|
|
TagElement(elementBuilder = Br, applyAttrs = attrs, content = null) |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Ul( |
|
|
|
fun Ul( |
|
|
|
attrs: AttrsBuilder<HTMLUListElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLUListElement>? = null, |
|
|
|
content: ContentBuilder<HTMLUListElement>? = null |
|
|
|
content: ContentBuilder<HTMLUListElement>? = null |
|
|
|
) = TagElement(elementBuilder = Ul, applyAttrs = attrs, content = content) |
|
|
|
) = TagElement(elementBuilder = Ul, applyAttrs = attrs, content = content) |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Ol( |
|
|
|
fun Ol( |
|
|
|
attrs: AttrsBuilder<HTMLOListElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLOListElement>? = null, |
|
|
|
content: ContentBuilder<HTMLOListElement>? = null |
|
|
|
content: ContentBuilder<HTMLOListElement>? = null |
|
|
|
) = TagElement(elementBuilder = Ol, applyAttrs = attrs, content = content) |
|
|
|
) = TagElement(elementBuilder = Ol, applyAttrs = attrs, content = content) |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Li( |
|
|
|
fun Li( |
|
|
|
attrs: AttrsBuilder<HTMLLIElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLLIElement>? = null, |
|
|
|
content: ContentBuilder<HTMLLIElement>? = null |
|
|
|
content: ContentBuilder<HTMLLIElement>? = null |
|
|
|
) = TagElement(elementBuilder = Li, applyAttrs = attrs, content = content) |
|
|
|
) = TagElement(elementBuilder = Li, applyAttrs = attrs, content = content) |
|
|
|
|
|
|
|
|
|
|
@ -565,7 +560,7 @@ fun Li( |
|
|
|
fun Img( |
|
|
|
fun Img( |
|
|
|
src: String, |
|
|
|
src: String, |
|
|
|
alt: String = "", |
|
|
|
alt: String = "", |
|
|
|
attrs: AttrsBuilder<HTMLImageElement>? = null |
|
|
|
attrs: AttrBuilderContext<HTMLImageElement>? = null |
|
|
|
) = TagElement( |
|
|
|
) = TagElement( |
|
|
|
elementBuilder = Img, |
|
|
|
elementBuilder = Img, |
|
|
|
applyAttrs = { |
|
|
|
applyAttrs = { |
|
|
@ -580,7 +575,7 @@ fun Img( |
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Form( |
|
|
|
fun Form( |
|
|
|
action: String? = null, |
|
|
|
action: String? = null, |
|
|
|
attrs: AttrsBuilder<HTMLFormElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLFormElement>? = null, |
|
|
|
content: ContentBuilder<HTMLFormElement>? = null |
|
|
|
content: ContentBuilder<HTMLFormElement>? = null |
|
|
|
) = TagElement( |
|
|
|
) = TagElement( |
|
|
|
elementBuilder = Form, |
|
|
|
elementBuilder = Form, |
|
|
@ -616,7 +611,7 @@ fun Select( |
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Option( |
|
|
|
fun Option( |
|
|
|
value: String, |
|
|
|
value: String, |
|
|
|
attrs: AttrsBuilder<HTMLOptionElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLOptionElement>? = null, |
|
|
|
content: ContentBuilder<HTMLOptionElement>? = null |
|
|
|
content: ContentBuilder<HTMLOptionElement>? = null |
|
|
|
) = TagElement( |
|
|
|
) = TagElement( |
|
|
|
elementBuilder = Option, |
|
|
|
elementBuilder = Option, |
|
|
@ -632,7 +627,7 @@ fun Option( |
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun OptGroup( |
|
|
|
fun OptGroup( |
|
|
|
label: String, |
|
|
|
label: String, |
|
|
|
attrs: AttrsBuilder<HTMLOptGroupElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLOptGroupElement>? = null, |
|
|
|
content: ContentBuilder<HTMLOptGroupElement>? = null |
|
|
|
content: ContentBuilder<HTMLOptGroupElement>? = null |
|
|
|
) = TagElement( |
|
|
|
) = TagElement( |
|
|
|
elementBuilder = OptGroup, |
|
|
|
elementBuilder = OptGroup, |
|
|
@ -647,7 +642,7 @@ fun OptGroup( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Section( |
|
|
|
fun Section( |
|
|
|
attrs: AttrsBuilder<HTMLElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLElement>? = null, |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
) = TagElement( |
|
|
|
) = TagElement( |
|
|
|
elementBuilder = Section, |
|
|
|
elementBuilder = Section, |
|
|
@ -713,7 +708,7 @@ private val textAreaRestoreControlledStateEffect: DomEffectScope.(HTMLTextAreaEl |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Nav( |
|
|
|
fun Nav( |
|
|
|
attrs: AttrsBuilder<HTMLElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLElement>? = null, |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
) = TagElement( |
|
|
|
) = TagElement( |
|
|
|
elementBuilder = Nav, |
|
|
|
elementBuilder = Nav, |
|
|
@ -723,7 +718,7 @@ fun Nav( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Pre( |
|
|
|
fun Pre( |
|
|
|
attrs: AttrsBuilder<HTMLPreElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLPreElement>? = null, |
|
|
|
content: ContentBuilder<HTMLPreElement>? = null |
|
|
|
content: ContentBuilder<HTMLPreElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -735,7 +730,7 @@ fun Pre( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Code( |
|
|
|
fun Code( |
|
|
|
attrs: AttrsBuilder<HTMLElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLElement>? = null, |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -747,7 +742,7 @@ fun Code( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Main( |
|
|
|
fun Main( |
|
|
|
attrs: AttrsBuilder<HTMLElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLElement>? = null, |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -759,7 +754,7 @@ fun Main( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Footer( |
|
|
|
fun Footer( |
|
|
|
attrs: AttrsBuilder<HTMLElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLElement>? = null, |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -771,7 +766,7 @@ fun Footer( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Hr( |
|
|
|
fun Hr( |
|
|
|
attrs: AttrsBuilder<HTMLHRElement>? = null |
|
|
|
attrs: AttrBuilderContext<HTMLHRElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
|
elementBuilder = Hr, |
|
|
|
elementBuilder = Hr, |
|
|
@ -783,7 +778,7 @@ fun Hr( |
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Label( |
|
|
|
fun Label( |
|
|
|
forId: String? = null, |
|
|
|
forId: String? = null, |
|
|
|
attrs: AttrsBuilder<HTMLLabelElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLLabelElement>? = null, |
|
|
|
content: ContentBuilder<HTMLLabelElement>? = null |
|
|
|
content: ContentBuilder<HTMLLabelElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -802,7 +797,7 @@ fun Label( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Table( |
|
|
|
fun Table( |
|
|
|
attrs: AttrsBuilder<HTMLTableElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLTableElement>? = null, |
|
|
|
content: ContentBuilder<HTMLTableElement>? = null |
|
|
|
content: ContentBuilder<HTMLTableElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -814,7 +809,7 @@ fun Table( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Caption( |
|
|
|
fun Caption( |
|
|
|
attrs: AttrsBuilder<HTMLTableCaptionElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLTableCaptionElement>? = null, |
|
|
|
content: ContentBuilder<HTMLTableCaptionElement>? = null |
|
|
|
content: ContentBuilder<HTMLTableCaptionElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -826,7 +821,7 @@ fun Caption( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Col( |
|
|
|
fun Col( |
|
|
|
attrs: AttrsBuilder<HTMLTableColElement>? = null |
|
|
|
attrs: AttrBuilderContext<HTMLTableColElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
|
elementBuilder = Col, |
|
|
|
elementBuilder = Col, |
|
|
@ -837,7 +832,7 @@ fun Col( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Colgroup( |
|
|
|
fun Colgroup( |
|
|
|
attrs: AttrsBuilder<HTMLTableColElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLTableColElement>? = null, |
|
|
|
content: ContentBuilder<HTMLTableColElement>? = null |
|
|
|
content: ContentBuilder<HTMLTableColElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -849,7 +844,7 @@ fun Colgroup( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Tr( |
|
|
|
fun Tr( |
|
|
|
attrs: AttrsBuilder<HTMLTableRowElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLTableRowElement>? = null, |
|
|
|
content: ContentBuilder<HTMLTableRowElement>? = null |
|
|
|
content: ContentBuilder<HTMLTableRowElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -861,7 +856,7 @@ fun Tr( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Thead( |
|
|
|
fun Thead( |
|
|
|
attrs: AttrsBuilder<HTMLTableSectionElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLTableSectionElement>? = null, |
|
|
|
content: ContentBuilder<HTMLTableSectionElement>? = null |
|
|
|
content: ContentBuilder<HTMLTableSectionElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -873,7 +868,7 @@ fun Thead( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Th( |
|
|
|
fun Th( |
|
|
|
attrs: AttrsBuilder<HTMLTableCellElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLTableCellElement>? = null, |
|
|
|
content: ContentBuilder<HTMLTableCellElement>? = null |
|
|
|
content: ContentBuilder<HTMLTableCellElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -885,7 +880,7 @@ fun Th( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Td( |
|
|
|
fun Td( |
|
|
|
attrs: AttrsBuilder<HTMLTableCellElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLTableCellElement>? = null, |
|
|
|
content: ContentBuilder<HTMLTableCellElement>? = null |
|
|
|
content: ContentBuilder<HTMLTableCellElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -897,7 +892,7 @@ fun Td( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Tbody( |
|
|
|
fun Tbody( |
|
|
|
attrs: AttrsBuilder<HTMLTableSectionElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLTableSectionElement>? = null, |
|
|
|
content: ContentBuilder<HTMLTableSectionElement>? = null |
|
|
|
content: ContentBuilder<HTMLTableSectionElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
@ -909,7 +904,7 @@ fun Tbody( |
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Tfoot( |
|
|
|
fun Tfoot( |
|
|
|
attrs: AttrsBuilder<HTMLTableSectionElement>? = null, |
|
|
|
attrs: AttrBuilderContext<HTMLTableSectionElement>? = null, |
|
|
|
content: ContentBuilder<HTMLTableSectionElement>? = null |
|
|
|
content: ContentBuilder<HTMLTableSectionElement>? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
TagElement( |
|
|
|
TagElement( |
|
|
|