From 1a7a1fbbd37b11f97e3c6f6e88bbc0d9f0ebe134 Mon Sep 17 00:00:00 2001 From: Shagen Ogandzhanian Date: Wed, 30 Jun 2021 15:56:55 +0200 Subject: [PATCH] Update web examples after releasing 0.5.0-build228 --- examples/falling_balls_with_web/build.gradle.kts | 2 +- examples/web-compose-bird/build.gradle.kts | 2 +- examples/web-getting-started/build.gradle.kts | 2 +- examples/web-with-react/build.gradle.kts | 2 +- examples/web_landing/build.gradle.kts | 2 +- .../jsMain/kotlin/com/sample/content/CodeSamplesSwitcher.kt | 5 +++-- web/CHANGELOG.md | 4 ++++ 7 files changed, 12 insertions(+), 7 deletions(-) diff --git a/examples/falling_balls_with_web/build.gradle.kts b/examples/falling_balls_with_web/build.gradle.kts index 29498c8a1c..881efcdea8 100644 --- a/examples/falling_balls_with_web/build.gradle.kts +++ b/examples/falling_balls_with_web/build.gradle.kts @@ -3,7 +3,7 @@ import org.jetbrains.compose.desktop.application.dsl.TargetFormat plugins { kotlin("multiplatform") version "1.5.10" - id("org.jetbrains.compose") version "0.5.0-build226" + id("org.jetbrains.compose") version "0.5.0-build228" } version = "1.0-SNAPSHOT" diff --git a/examples/web-compose-bird/build.gradle.kts b/examples/web-compose-bird/build.gradle.kts index 052eee84e7..8d627071a3 100644 --- a/examples/web-compose-bird/build.gradle.kts +++ b/examples/web-compose-bird/build.gradle.kts @@ -1,7 +1,7 @@ // Add compose gradle plugin plugins { kotlin("multiplatform") version "1.5.10" - id("org.jetbrains.compose") version "0.5.0-build226" + id("org.jetbrains.compose") version "0.5.0-build228" } group = "com.theapache64.composebird" version = "1.0.0-alpha01" diff --git a/examples/web-getting-started/build.gradle.kts b/examples/web-getting-started/build.gradle.kts index 96a3a44203..6fc617b41f 100644 --- a/examples/web-getting-started/build.gradle.kts +++ b/examples/web-getting-started/build.gradle.kts @@ -1,6 +1,6 @@ plugins { kotlin("multiplatform") version "1.5.10" - id("org.jetbrains.compose") version "0.5.0-build226" + id("org.jetbrains.compose") version "0.5.0-build228" } repositories { diff --git a/examples/web-with-react/build.gradle.kts b/examples/web-with-react/build.gradle.kts index c530f9b7e6..183a6391c7 100644 --- a/examples/web-with-react/build.gradle.kts +++ b/examples/web-with-react/build.gradle.kts @@ -1,6 +1,6 @@ plugins { kotlin("multiplatform") version "1.5.10" - id("org.jetbrains.compose") version "0.5.0-build226" + id("org.jetbrains.compose") version "0.5.0-build228" } repositories { diff --git a/examples/web_landing/build.gradle.kts b/examples/web_landing/build.gradle.kts index c8ea6e8423..eae09aeed3 100644 --- a/examples/web_landing/build.gradle.kts +++ b/examples/web_landing/build.gradle.kts @@ -1,6 +1,6 @@ plugins { kotlin("multiplatform") version "1.5.10" - id("org.jetbrains.compose") version "0.5.0-build226" + id("org.jetbrains.compose") version "0.5.0-build228" } repositories { diff --git a/examples/web_landing/src/jsMain/kotlin/com/sample/content/CodeSamplesSwitcher.kt b/examples/web_landing/src/jsMain/kotlin/com/sample/content/CodeSamplesSwitcher.kt index c9e3c8ea01..e2f40d6a7d 100644 --- a/examples/web_landing/src/jsMain/kotlin/com/sample/content/CodeSamplesSwitcher.kt +++ b/examples/web_landing/src/jsMain/kotlin/com/sample/content/CodeSamplesSwitcher.kt @@ -13,6 +13,7 @@ import org.jetbrains.compose.web.dom.Input import org.jetbrains.compose.web.dom.Label import org.jetbrains.compose.web.dom.Text import com.sample.style.AppStylesheet +import org.jetbrains.compose.web.attributes.value private object SwitcherVariables : CSSVariables { val labelWidth by variable() @@ -20,7 +21,6 @@ private object SwitcherVariables : CSSVariables { } object SwitcherStylesheet : StyleSheet(AppStylesheet) { - val boxed by style { media(maxWidth(640.px)) { @@ -77,8 +77,9 @@ fun CodeSampleSwitcher(count: Int, current: Int, onSelect: (Int) -> Unit) { classes(SwitcherStylesheet.boxed) }) { repeat(count) { ix -> - Input(type = InputType.Radio, value = "snippet$ix", attrs = { + Input(type = InputType.Radio, attrs = { name("code-snippet") + value("snippet$ix") id("snippet$ix") if (current == ix) checked() onRadioInput { onSelect(ix) } diff --git a/web/CHANGELOG.md b/web/CHANGELOG.md index 5bf798d511..b59b860247 100644 --- a/web/CHANGELOG.md +++ b/web/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [0.5.0-build228] - 29'June 2021 + +[release post](https://github.com/JetBrains/compose-jb/releases/tag/v0.5.0-build228-web) + ## [0.5.0-build226] - 24'June 2021 [release post](https://github.com/JetBrains/compose-jb/releases/tag/0.5.0-build226-web)