|
|
@ -19,6 +19,7 @@ import org.w3c.dom.HTMLBRElement |
|
|
|
import org.w3c.dom.HTMLButtonElement |
|
|
|
import org.w3c.dom.HTMLButtonElement |
|
|
|
import org.w3c.dom.HTMLCanvasElement |
|
|
|
import org.w3c.dom.HTMLCanvasElement |
|
|
|
import org.w3c.dom.HTMLDataListElement |
|
|
|
import org.w3c.dom.HTMLDataListElement |
|
|
|
|
|
|
|
import org.w3c.dom.HTMLDListElement |
|
|
|
import org.w3c.dom.HTMLDivElement |
|
|
|
import org.w3c.dom.HTMLDivElement |
|
|
|
import org.w3c.dom.HTMLElement |
|
|
|
import org.w3c.dom.HTMLElement |
|
|
|
import org.w3c.dom.HTMLEmbedElement |
|
|
|
import org.w3c.dom.HTMLEmbedElement |
|
|
@ -96,6 +97,10 @@ private val Picture: ElementBuilder<HTMLPictureElement> = ElementBuilderImplemen |
|
|
|
private val Source: ElementBuilder<HTMLSourceElement> = ElementBuilderImplementation("source") |
|
|
|
private val Source: ElementBuilder<HTMLSourceElement> = ElementBuilderImplementation("source") |
|
|
|
private val Canvas: ElementBuilder<HTMLCanvasElement> = ElementBuilderImplementation("canvas") |
|
|
|
private val Canvas: ElementBuilder<HTMLCanvasElement> = ElementBuilderImplementation("canvas") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private val DList: ElementBuilder<HTMLDListElement> = ElementBuilderImplementation("dl") |
|
|
|
|
|
|
|
private val DTerm: ElementBuilder<HTMLElement> = ElementBuilderImplementation("dt") |
|
|
|
|
|
|
|
private val DDescription: ElementBuilder<HTMLElement> = ElementBuilderImplementation("dd") |
|
|
|
|
|
|
|
|
|
|
|
private val Div: ElementBuilder<HTMLDivElement> = ElementBuilderImplementation("div") |
|
|
|
private val Div: ElementBuilder<HTMLDivElement> = ElementBuilderImplementation("div") |
|
|
|
private val A: ElementBuilder<HTMLAnchorElement> = ElementBuilderImplementation("a") |
|
|
|
private val A: ElementBuilder<HTMLAnchorElement> = ElementBuilderImplementation("a") |
|
|
|
private val Input: ElementBuilder<HTMLInputElement> = ElementBuilderImplementation("input") |
|
|
|
private val Input: ElementBuilder<HTMLInputElement> = ElementBuilderImplementation("input") |
|
|
@ -434,6 +439,42 @@ fun Canvas( |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
|
|
|
|
fun DList( |
|
|
|
|
|
|
|
attrs: AttrBuilderContext<HTMLDListElement>? = null, |
|
|
|
|
|
|
|
content: ContentBuilder<HTMLDListElement>? = null |
|
|
|
|
|
|
|
) { |
|
|
|
|
|
|
|
TagElement( |
|
|
|
|
|
|
|
elementBuilder = DList, |
|
|
|
|
|
|
|
applyAttrs = attrs, |
|
|
|
|
|
|
|
content = content |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
|
|
|
|
fun DDescription( |
|
|
|
|
|
|
|
attrs: AttrBuilderContext<HTMLElement>? = null, |
|
|
|
|
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
|
|
|
|
) { |
|
|
|
|
|
|
|
TagElement( |
|
|
|
|
|
|
|
elementBuilder = DDescription, |
|
|
|
|
|
|
|
applyAttrs = attrs, |
|
|
|
|
|
|
|
content = content |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Composable |
|
|
|
|
|
|
|
fun DTerm( |
|
|
|
|
|
|
|
attrs: AttrBuilderContext<HTMLElement>? = null, |
|
|
|
|
|
|
|
content: ContentBuilder<HTMLElement>? = null |
|
|
|
|
|
|
|
) { |
|
|
|
|
|
|
|
TagElement( |
|
|
|
|
|
|
|
elementBuilder = DTerm, |
|
|
|
|
|
|
|
applyAttrs = attrs, |
|
|
|
|
|
|
|
content = content |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@OptIn(ComposeWebInternalApi::class) |
|
|
|
@OptIn(ComposeWebInternalApi::class) |
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun Text(value: String) { |
|
|
|
fun Text(value: String) { |
|
|
|