@rokkit/app 1.1.9 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rokkit/app",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
4
4
|
"description": "App-level controls for Rokkit applications - theme management and UI chrome",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"build": "echo 'No build step needed for source-only package'"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@rokkit/actions": "1.1.
|
|
41
|
-
"@rokkit/core": "1.1.
|
|
42
|
-
"@rokkit/states": "1.1.
|
|
43
|
-
"@rokkit/ui": "1.1.
|
|
40
|
+
"@rokkit/actions": "1.1.11",
|
|
41
|
+
"@rokkit/core": "1.1.11",
|
|
42
|
+
"@rokkit/states": "1.1.11",
|
|
43
|
+
"@rokkit/ui": "1.1.11"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"svelte": "^5.0.0"
|
|
@@ -34,7 +34,12 @@
|
|
|
34
34
|
const toggleVariant = $derived<'button' | 'group'>(variant === 'single' ? 'button' : 'group')
|
|
35
35
|
|
|
36
36
|
const manager = new ColorModeManager(vibe)
|
|
37
|
-
|
|
37
|
+
// `triad` shows the abstract mode (so 'system' can be the selected option);
|
|
38
|
+
// `single`/`pair` only deal with light/dark, so they reflect the RESOLVED mode —
|
|
39
|
+
// otherwise a 'system' mode falls outside their [light, dark] options and the
|
|
40
|
+
// control mislabels (e.g. shows "switch to light" while already light → first
|
|
41
|
+
// click is a no-op).
|
|
42
|
+
let value = $derived(variant === 'triad' ? manager.mode : manager.resolved)
|
|
38
43
|
|
|
39
44
|
onMount(() => {
|
|
40
45
|
return manager.listen()
|