Skip to content

Commit 09f6371

Browse files
committed
build: bump version to 0.9.2
1 parent 073428d commit 09f6371

37 files changed

Lines changed: 34608 additions & 34379 deletions

File tree

CLAUDE.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ Before committing, run `./gradlew spotlessCheck`; only run `./gradlew spotlessAp
3434
| `miuix-core/` | Utilities + MiuixIcons base (depended on by `ui` and `icons`) |
3535
| `miuix-ui/` | Main UI library |
3636
| `miuix-preference/` | Preference / menu / popup components |
37-
| `miuix-blur/` | Blur effects (Android minSdk=33) |
37+
| `miuix-shader/` | Runtime shader / render effect abstraction (used by `blur` and `squircle`) |
38+
| `miuix-blur/` | Blur effects (Android minSdk=33; depends on `miuix-shader`) |
39+
| `miuix-squircle/` | Squircle corner shapes (depends on `miuix-shader`) |
3840
| `miuix-icons/` | Extended icon resources |
3941
| `miuix-navigation3-ui/` | Navigation 3 UI (depends on `miuix-squircle` for transition clip) |
4042
| `example/` | Demo app |

README.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ A UI library for Compose Multiplatform.
44

55
> This library is experimental. APIs may change without notice.
66
7-
[![Kotlin](https://img.shields.io/badge/kotlin-2.3.21-7F52FF)](https://kotlinlang.org/)
8-
[![Compose Multiplatform](https://img.shields.io/badge/compose-1.11.0-4285F4)](https://kotlinlang.org/compose-multiplatform/)
7+
[![Kotlin](https://img.shields.io/badge/kotlin-2.4.0-7F52FF)](https://kotlinlang.org/)
8+
[![Compose Multiplatform](https://img.shields.io/badge/compose-1.11.1-4285F4)](https://kotlinlang.org/compose-multiplatform/)
99
[![Maven Central](https://img.shields.io/maven-central/v/top.yukonga.miuix.kmp/miuix-ui)](https://search.maven.org/search?q=g:top.yukonga.miuix.kmp)
1010
[![License](https://img.shields.io/github/license/compose-miuix-ui/miuix)](LICENSE)
1111

@@ -26,13 +26,15 @@ A UI library for Compose Multiplatform.
2626

2727
### Modules
2828

29-
| Module | Description |
30-
| ---------------------- | --------------------------------------------------------------------------------------------------------- |
31-
| `miuix-ui` | Core UI component library (automatically includes `miuix-core`) |
32-
| `miuix-preference` | Preference components (SwitchPreference, CheckboxPreference, etc.), depends on `miuix-ui` |
33-
| `miuix-icons` | Extended icon library, can be used independently or with `miuix-ui` (automatically includes `miuix-core`) |
34-
| `miuix-blur` | Blur effect library, can be used independently |
35-
| `miuix-navigation3-ui` | Navigation3 UI library, can be used independently |
29+
| Module | Description |
30+
| ---------------------- | ---------------------------------------------------- |
31+
| `miuix-ui` | Core UI component library |
32+
| `miuix-preference` | Preference components library, depends on `miuix-ui` |
33+
| `miuix-icons` | Extended icon library, can be used independently |
34+
| `miuix-blur` | Blur effect library, can be used independently |
35+
| `miuix-squircle` | Squircle shapes library, can be used independently |
36+
| `miuix-navigation3-ui` | Navigation3 UI library, can be used independently |
37+
| `miuix-shader` | Low-level runtime shader / render effect abstraction |
3638

3739
### Getting Started
3840

@@ -47,6 +49,8 @@ kotlin {
4749
implementation("top.yukonga.miuix.kmp:miuix-icons:<version>")
4850
// Optional: Add miuix-blur for blur effects
4951
implementation("top.yukonga.miuix.kmp:miuix-blur:<version>")
52+
// Optional: Add miuix-squircle for squircle (smooth rounded corner) shapes
53+
implementation("top.yukonga.miuix.kmp:miuix-squircle:<version>")
5054
// Optional: Add miuix-navigation3-ui for navigation3 support
5155
implementation("top.yukonga.miuix.kmp:miuix-navigation3-ui:<version>")
5256
// Other dependencies...

build-plugins/src/main/kotlin/BuildConfig.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
object BuildConfig {
5-
const val LIBRARY_VERSION = "0.9.1"
5+
const val LIBRARY_VERSION = "0.9.2"
66
const val LIBRARY_ID = "top.yukonga.miuix.kmp"
77
const val APPLICATION_NAME = "Miuix"
88
const val APPLICATION_VERSION_NAME = "1.0.9"

docs/.vitepress/locales/en_US.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ export default defineConfig({
9595
{ text: "SwitchPreference", link: "/components/switchpreference" },
9696
{ text: "CheckboxPreference", link: "/components/checkboxpreference" },
9797
{ text: "RadioButtonPreference", link: "/components/radiobuttonpreference" },
98+
{ text: "SliderPreference", link: "/components/sliderpreference" },
99+
{ text: "RangeSliderPreference", link: "/components/rangesliderpreference" },
98100
{ text: "OverlayListPopup", link: "/components/overlaylistpopup" },
99101
{ text: "OverlayCascadingListPopup", link: "/components/overlaycascadinglistpopup" },
100102
{ text: "OverlayDropdownPreference", link: "/components/overlaydropdownpreference" },

docs/.vitepress/locales/zh_CN.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ export default defineConfig({
104104
{ text: "SwitchPreference", link: "/zh_CN/components/switchpreference" },
105105
{ text: "CheckboxPreference", link: "/zh_CN/components/checkboxpreference" },
106106
{ text: "RadioButtonPreference", link: "/zh_CN/components/radiobuttonpreference" },
107+
{ text: "SliderPreference", link: "/zh_CN/components/sliderpreference" },
108+
{ text: "RangeSliderPreference", link: "/zh_CN/components/rangesliderpreference" },
107109
{ text: "OverlayListPopup", link: "/zh_CN/components/overlaylistpopup" },
108110
{ text: "OverlayCascadingListPopup", link: "/zh_CN/components/overlaycascadinglistpopup" },
109111
{ text: "OverlayDropdownPreference", link: "/zh_CN/components/overlaydropdownpreference" },

docs/components/button.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ Button(
9898
| onClick | () -> Unit | Callback triggered on click | - | Yes |
9999
| modifier | Modifier | Modifier applied to the button | Modifier | No |
100100
| enabled | Boolean | Whether the button is clickable | true | No |
101-
| colors | TextButtonColors | Text button color configuration | ButtonDefaults.textButtonColors() | No |
102101
| cornerRadius | Dp | Corner radius of the button | ButtonDefaults.CornerRadius | No |
103102
| minWidth | Dp | Minimum width of the button | ButtonDefaults.MinWidth | No |
104103
| minHeight | Dp | Minimum height of the button | ButtonDefaults.MinHeight | No |
104+
| colors | TextButtonColors | Text button color configuration | ButtonDefaults.textButtonColors() | No |
105105
| insideMargin | PaddingValues | Internal padding of the button | ButtonDefaults.InsideMargin | No |
106106
| interactionSource | MutableInteractionSource? | Interaction source for the button | null | No |
107107
| indication | Indication? | Indication for click interactions | LocalIndication.current | No |

docs/components/card.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ Card {
3030
| Property Name | Type | Description | Default Value | Required | Applies To |
3131
| ----------------- | ---------------------------------- | ----------------------------------------- | ---------------------------- | -------- | ----------- |
3232
| modifier | Modifier | Modifier applied to the card | Modifier | No | All |
33-
| colors | CardColors | Card color configuration | CardDefaults.defaultColors() | No | All |
3433
| cornerRadius | Dp | Card corner radius | CardDefaults.CornerRadius | No | All |
3534
| insideMargin | PaddingValues | Card inner padding | CardDefaults.InsideMargin | No | All |
35+
| colors | CardColors | Card color configuration | CardDefaults.defaultColors() | No | All |
3636
| pressFeedbackType | PressFeedbackType | Feedback type when pressed | PressFeedbackType.None | No | Interactive |
3737
| showIndication | Boolean | Show indication on interaction | false | No | Interactive |
3838
| holdDownState | Boolean | Whether the card is in the pressed state | false | No | Interactive |

docs/guide/getting-started.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ Miuix is composed of several modules that can be used independently:
3333
| `miuix-preference` | Preference components (SwitchPreference, CheckboxPreference, etc.), depends on `miuix-ui` |
3434
| `miuix-icons` | Extended icon library, can be used independently or together with `miuix-ui` (automatically includes `miuix-core`) |
3535
| `miuix-blur` | Blur effect library, can be used independently |
36+
| `miuix-squircle` | Squircle (smooth rounded corner) shapes, can be used independently (transitively included by `miuix-ui`) |
37+
| `miuix-shader` | Low-level runtime shader / render effect abstraction, transitively included by `miuix-blur` / `miuix-squircle` |
3638
| `miuix-navigation3-ui` | Navigation3 UI library, can be used independently |
3739

3840
- For Compose Multiplatform projects:
@@ -48,6 +50,8 @@ kotlin {
4850
implementation("top.yukonga.miuix.kmp:miuix-icons:<version>")
4951
// Optional: Add miuix-blur for blur effects
5052
implementation("top.yukonga.miuix.kmp:miuix-blur:<version>")
53+
// Optional: Add miuix-squircle for squircle (smooth rounded corner) shapes
54+
implementation("top.yukonga.miuix.kmp:miuix-squircle:<version>")
5155
// Optional: Add miuix-navigation3-ui for Navigation3 support
5256
implementation("top.yukonga.miuix.kmp:miuix-navigation3-ui:<version>")
5357
}
@@ -66,6 +70,8 @@ dependencies {
6670
implementation("top.yukonga.miuix.kmp:miuix-icons-android:<version>")
6771
// Optional: Add miuix-blur for blur effects (requires minSdk 33)
6872
implementation("top.yukonga.miuix.kmp:miuix-blur-android:<version>")
73+
// Optional: Add miuix-squircle for squircle (smooth rounded corner) shapes
74+
implementation("top.yukonga.miuix.kmp:miuix-squircle-android:<version>")
6975
// Optional: Add miuix-navigation3-ui for Navigation3 support
7076
implementation("top.yukonga.miuix.kmp:miuix-navigation3-ui-android:<version>")
7177
}
@@ -108,6 +114,13 @@ implementation("top.yukonga.miuix.kmp:miuix-icons-macosarm64:<version>")
108114
implementation("top.yukonga.miuix.kmp:miuix-icons-desktop:<version>")
109115
implementation("top.yukonga.miuix.kmp:miuix-icons-wasmjs:<version>")
110116
implementation("top.yukonga.miuix.kmp:miuix-icons-js:<version>")
117+
// Optional: Add miuix-squircle
118+
implementation("top.yukonga.miuix.kmp:miuix-squircle-iosarm64:<version>")
119+
implementation("top.yukonga.miuix.kmp:miuix-squircle-iossimulatorarm64:<version>")
120+
implementation("top.yukonga.miuix.kmp:miuix-squircle-macosarm64:<version>")
121+
implementation("top.yukonga.miuix.kmp:miuix-squircle-desktop:<version>")
122+
implementation("top.yukonga.miuix.kmp:miuix-squircle-wasmjs:<version>")
123+
implementation("top.yukonga.miuix.kmp:miuix-squircle-js:<version>")
111124
```
112125

113126
## Basic Usage

docs/guide/squircle.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,25 @@ Modifier.squircleSurface(
154154
Mix and match to produce asymmetric shapes (a "card stuck to the top of the
155155
screen", an inset chip with one squared edge, and so on).
156156

157+
## Absolute Corners (layout-direction-agnostic)
158+
159+
`absoluteSquircleBackground`, `absoluteSquircleClip`, and `absoluteSquircleSurface`
160+
mirror the per-corner overloads but take physical corners (`topLeft`, `topRight`,
161+
`bottomRight`, `bottomLeft`, clockwise from top-left) that are **not** flipped by
162+
`LocalLayoutDirection` — the same relationship `AbsoluteRoundedCornerShape` has to
163+
`RoundedCornerShape`. Reach for these when corners must anchor to physical sides
164+
regardless of RTL/LTR (e.g. a transition reveal tied to a swipe edge).
165+
166+
```kotlin
167+
Modifier.absoluteSquircleSurface(
168+
color = MiuixTheme.colorScheme.surface,
169+
topLeft = 24.dp,
170+
topRight = 24.dp,
171+
bottomRight = 0.dp,
172+
bottomLeft = 0.dp,
173+
)
174+
```
175+
157176
## Customizing the Curve
158177

159178
`extension` controls how far the continuous-curvature zone extends from the

docs/zh_CN/components/button.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ Button(
9898
| onClick | () -> Unit | 点击按钮时触发的回调 | - ||
9999
| modifier | Modifier | 应用于按钮的修饰符 | Modifier ||
100100
| enabled | Boolean | 按钮是否可点击 | true ||
101-
| colors | TextButtonColors | 文本按钮颜色配置 | ButtonDefaults.textButtonColors() ||
102101
| cornerRadius | Dp | 按钮圆角半径 | ButtonDefaults.CornerRadius ||
103102
| minWidth | Dp | 按钮最小宽度 | ButtonDefaults.MinWidth ||
104103
| minHeight | Dp | 按钮最小高度 | ButtonDefaults.MinHeight ||
104+
| colors | TextButtonColors | 文本按钮颜色配置 | ButtonDefaults.textButtonColors() ||
105105
| insideMargin | PaddingValues | 按钮内部边距 | ButtonDefaults.InsideMargin ||
106106
| interactionSource | MutableInteractionSource? | 按钮的交互源 | null ||
107107
| indication | Indication? | 点击交互的反馈效果 | LocalIndication.current ||

0 commit comments

Comments
 (0)