From 752f82124975b5dcffd6af28bac5306a3cb27698 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 5 Oct 2023 11:41:33 +0200 Subject: [PATCH] add tag --- buildSrc/src/main/resources/html_5.xsd | 3 +++ src/commonMain/kotlin/generated/gen-consumer-tags.kt | 6 ++++++ src/commonMain/kotlin/generated/gen-tag-groups.kt | 6 ++++++ src/commonMain/kotlin/generated/gen-tags-u.kt | 11 +++++++++++ src/jsMain/kotlin/generated/gen-consumer-tags-js.kt | 6 ++++++ 5 files changed, 32 insertions(+) diff --git a/buildSrc/src/main/resources/html_5.xsd b/buildSrc/src/main/resources/html_5.xsd index 1dcdad97..0a2b5bfd 100644 --- a/buildSrc/src/main/resources/html_5.xsd +++ b/buildSrc/src/main/resources/html_5.xsd @@ -312,6 +312,7 @@ + @@ -745,6 +746,8 @@ + + diff --git a/src/commonMain/kotlin/generated/gen-consumer-tags.kt b/src/commonMain/kotlin/generated/gen-consumer-tags.kt index 70f67645..c958bf6b 100644 --- a/src/commonMain/kotlin/generated/gen-consumer-tags.kt +++ b/src/commonMain/kotlin/generated/gen-consumer-tags.kt @@ -687,6 +687,12 @@ inline fun > C.title(crossinline block : TITLE.() -> Unit @HtmlTagMarker inline fun > C.tr(classes : String? = null, crossinline block : TR.() -> Unit = {}) : T = TR(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +/** + * Underlined text style + */ +@HtmlTagMarker +inline fun > C.u(classes : String? = null, crossinline block : U.() -> Unit = {}) : T = U(attributesMapOf("class", classes), this).visitAndFinalize(this, block) + /** * Unordered list */ diff --git a/src/commonMain/kotlin/generated/gen-tag-groups.kt b/src/commonMain/kotlin/generated/gen-tag-groups.kt index c0f9deb2..43f15584 100644 --- a/src/commonMain/kotlin/generated/gen-tag-groups.kt +++ b/src/commonMain/kotlin/generated/gen-tag-groups.kt @@ -142,6 +142,12 @@ inline fun FlowContent.summary(classes : String? = null, crossinline block : SUM @HtmlTagMarker inline fun FlowContent.table(classes : String? = null, crossinline block : TABLE.() -> Unit = {}) : Unit = TABLE(attributesMapOf("class", classes), consumer).visit(block) +/** + * Underlined text style + */ +@HtmlTagMarker +inline fun FlowContent.u(classes : String? = null, crossinline block : U.() -> Unit = {}) : Unit = U(attributesMapOf("class", classes), consumer).visit(block) + /** * Unordered list */ diff --git a/src/commonMain/kotlin/generated/gen-tags-u.kt b/src/commonMain/kotlin/generated/gen-tags-u.kt index 7fd9dd32..93cb16f4 100644 --- a/src/commonMain/kotlin/generated/gen-tags-u.kt +++ b/src/commonMain/kotlin/generated/gen-tags-u.kt @@ -9,6 +9,17 @@ import kotlinx.html.attributes.* This file was generated by module generate *******************************************************************************/ +@Suppress("unused") +open class U(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("u", consumer, initialAttributes, null, true, false), HtmlBlockInlineTag { + +} +val U.asFlowContent : FlowContent + get() = this + +val U.asPhrasingContent : PhrasingContent + get() = this + + @Suppress("unused") open class UL(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("ul", consumer, initialAttributes, null, false, false), HtmlBlockTag { diff --git a/src/jsMain/kotlin/generated/gen-consumer-tags-js.kt b/src/jsMain/kotlin/generated/gen-consumer-tags-js.kt index 13e73a76..27e68213 100644 --- a/src/jsMain/kotlin/generated/gen-consumer-tags-js.kt +++ b/src/jsMain/kotlin/generated/gen-consumer-tags-js.kt @@ -688,6 +688,12 @@ public inline fun TagConsumer.title(crossinline block : TITLE.() -> @HtmlTagMarker public inline fun TagConsumer.tr(classes : String? = null, crossinline block : TR.() -> Unit = {}) : HTMLTableRowElement = TR(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLTableRowElement +/** + * Underlined text style + */ +@HtmlTagMarker +public inline fun TagConsumer.u(classes : String? = null, crossinline block : U.() -> Unit = {}) : HTMLElement = U(attributesMapOf("class", classes), this).visitAndFinalize(this, block) + /** * Unordered list */