-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.3.0 release
- Loading branch information
Showing
189 changed files
with
5,587 additions
and
545 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Legacy README | ||
|
||
This file contains information on legacy code which is not removed yet. | ||
|
||
## Supported features | ||
|
||
### Styles | ||
|
||
The `ModifierOrAttrsScope.styles` function and the `StyleScope` class provide a universal interface for `Modifier`s and CSS styles. | ||
|
||
The functions in `StyleScope`: | ||
|
||
- `height` | ||
- `margin` | ||
- `width` | ||
- `backgroundColor` | ||
- `platformBorder` | ||
- `outerBorder` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
val projectVersion = "0.2.0" | ||
import org.jetbrains.compose.ComposeBuildConfig | ||
|
||
val projectVersion = "0.3.0" | ||
|
||
object DependencyVersions { | ||
val composeMultiplatform = "1.6.1" // manually specified for "ui-unit" | ||
val kobweb = "0.17.1" | ||
val huanshankejiComposeWeb = "0.2.2" | ||
const val composeMultiplatform = ComposeBuildConfig.composeVersion // for "ui-unit" | ||
val kobweb = "0.17.3" | ||
val huanshankejiComposeHtml = "0.3.0" | ||
val kmdc = "0.1.2" | ||
val materialIcons = "1.13.12" | ||
val materialSymbols = "0.17.4" | ||
|
||
object Androidx { | ||
val activityCompose = "1.8.2" | ||
val compose = "1.6.4" | ||
val activityCompose = "1.9.0" | ||
val compose = "1.6.6" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...m-common/src/androidxCommonMain/kotlin/com/huanshankeji/compose/Content.androidxCommon.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.huanshankeji.compose | ||
|
||
import androidx.compose.runtime.Composable | ||
import com.huanshankeji.compose.ui.Modifier | ||
|
||
fun (@Composable (Modifier) -> Unit).toContentWithoutModifier(): @Composable () -> Unit = | ||
{ this(Modifier) } | ||
|
||
fun (@Composable (Modifier) -> Unit)?.toNullableContentWithoutModifier(): @Composable (() -> Unit)? = | ||
this?.toContentWithoutModifier() |
9 changes: 9 additions & 0 deletions
9
...c/androidxCommonMain/kotlin/com/huanshankeji/compose/foundation/OnClick.androidxCommon.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.huanshankeji.compose.foundation | ||
|
||
import androidx.compose.foundation.onClick | ||
import com.huanshankeji.compose.ui.Modifier | ||
|
||
//@ExperimentalFoundationApi // `onClick` with a single parameter is likely to be always supported, so it does not require opt-in for now. | ||
@OptIn(androidx.compose.foundation.ExperimentalFoundationApi::class) | ||
actual fun Modifier.onClick(onClick: () -> Unit): Modifier = | ||
platformModify { onClick(onClick = onClick) } |
19 changes: 19 additions & 0 deletions
19
...rc/androidxCommonMain/kotlin/com/huanshankeji/compose/foundation/Scroll.androidxCommon.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.huanshankeji.compose.foundation | ||
|
||
import androidx.compose.foundation.horizontalScroll | ||
import androidx.compose.foundation.rememberScrollState | ||
import androidx.compose.foundation.verticalScroll | ||
import androidx.compose.runtime.Composable | ||
import com.huanshankeji.compose.ui.Modifier | ||
|
||
@Composable | ||
actual fun rememberScrollState(initial: Int): ScrollState = | ||
rememberScrollState(initial) | ||
|
||
actual typealias ScrollState = androidx.compose.foundation.ScrollState | ||
|
||
actual fun Modifier.verticalScroll(state: ScrollState): Modifier = | ||
platformModify { verticalScroll(state) } | ||
|
||
actual fun Modifier.horizontalScroll(state: ScrollState): Modifier = | ||
platformModify { horizontalScroll(state) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.