@atom63/styles 0.1.0-beta.2 → 0.1.0-beta.4
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/LICENSE +21 -0
- package/generated/atom63.figma-tokens.json +1 -4
- package/generated/atom63.tokens.json +1 -4
- package/generated/z-layers.d.ts +33 -0
- package/generated/z-layers.js +31 -0
- package/package.json +7 -6
- package/src/z-layers.ts +0 -40
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 You Zhang (ATOM63)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -6502,10 +6502,7 @@
|
|
|
6502
6502
|
"mode": "widget-kind: weather"
|
|
6503
6503
|
},
|
|
6504
6504
|
"lifecycle": "preview",
|
|
6505
|
-
"aliases": [
|
|
6506
|
-
"--a63-weather-background-image",
|
|
6507
|
-
"--a63-weather-condition-background-image"
|
|
6508
|
-
],
|
|
6505
|
+
"aliases": ["--a63-weather-background-image", "--a63-weather-condition-background-image"],
|
|
6509
6506
|
"scope": "[data-widget-kind='weather'], [data-widget-kind='location'][data-weather-tone]"
|
|
6510
6507
|
},
|
|
6511
6508
|
{
|
|
@@ -6730,10 +6730,7 @@
|
|
|
6730
6730
|
"mode": "widget-kind: weather"
|
|
6731
6731
|
},
|
|
6732
6732
|
"lifecycle": "preview",
|
|
6733
|
-
"aliases": [
|
|
6734
|
-
"--a63-weather-background-image",
|
|
6735
|
-
"--a63-weather-condition-background-image"
|
|
6736
|
-
],
|
|
6733
|
+
"aliases": ["--a63-weather-background-image", "--a63-weather-condition-background-image"],
|
|
6737
6734
|
"scope": "[data-widget-kind='weather'], [data-widget-kind='location'][data-weather-tone]"
|
|
6738
6735
|
},
|
|
6739
6736
|
{
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// Generated by packages/styles/scripts/generate-z-layers.mjs from
|
|
2
|
+
// src/tokens/foundation/primitives.css. Do not edit.
|
|
3
|
+
export declare const Z_LAYERS: {
|
|
4
|
+
readonly below: -1
|
|
5
|
+
readonly default: 0
|
|
6
|
+
readonly raised: 1
|
|
7
|
+
readonly base: 10
|
|
8
|
+
readonly sticky: 20
|
|
9
|
+
readonly windowOverlay: 40
|
|
10
|
+
readonly header: 50
|
|
11
|
+
readonly drawer: 90
|
|
12
|
+
readonly window: 300
|
|
13
|
+
readonly snapPreview: 390
|
|
14
|
+
readonly windowCeiling: 399
|
|
15
|
+
readonly flyout: 400
|
|
16
|
+
readonly launcher: 450
|
|
17
|
+
readonly scrim: 500
|
|
18
|
+
readonly modal: 600
|
|
19
|
+
readonly dock: 900
|
|
20
|
+
readonly overviewBackdrop: 905
|
|
21
|
+
readonly overviewWindow: 910
|
|
22
|
+
readonly overviewLabel: 940
|
|
23
|
+
readonly switcher: 950
|
|
24
|
+
readonly menu: 960
|
|
25
|
+
readonly popover: 970
|
|
26
|
+
readonly tooltip: 980
|
|
27
|
+
readonly overlay: 990
|
|
28
|
+
readonly lock: 1000
|
|
29
|
+
readonly toast: 1050
|
|
30
|
+
readonly boot: 1100
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type ZLayer = keyof typeof Z_LAYERS
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Generated by packages/styles/scripts/generate-z-layers.mjs from
|
|
2
|
+
// src/tokens/foundation/primitives.css. Do not edit.
|
|
3
|
+
export const Z_LAYERS = Object.freeze({
|
|
4
|
+
below: -1,
|
|
5
|
+
default: 0,
|
|
6
|
+
raised: 1,
|
|
7
|
+
base: 10,
|
|
8
|
+
sticky: 20,
|
|
9
|
+
windowOverlay: 40,
|
|
10
|
+
header: 50,
|
|
11
|
+
drawer: 90,
|
|
12
|
+
window: 300,
|
|
13
|
+
snapPreview: 390,
|
|
14
|
+
windowCeiling: 399,
|
|
15
|
+
flyout: 400,
|
|
16
|
+
launcher: 450,
|
|
17
|
+
scrim: 500,
|
|
18
|
+
modal: 600,
|
|
19
|
+
dock: 900,
|
|
20
|
+
overviewBackdrop: 905,
|
|
21
|
+
overviewWindow: 910,
|
|
22
|
+
overviewLabel: 940,
|
|
23
|
+
switcher: 950,
|
|
24
|
+
menu: 960,
|
|
25
|
+
popover: 970,
|
|
26
|
+
tooltip: 980,
|
|
27
|
+
overlay: 990,
|
|
28
|
+
lock: 1000,
|
|
29
|
+
toast: 1050,
|
|
30
|
+
boot: 1100,
|
|
31
|
+
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atom63/styles",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.4",
|
|
4
4
|
"description": "CSS tokens, themes, contracts, and utilities for the Atom63 design system",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -86,9 +86,8 @@
|
|
|
86
86
|
"./utils/scroll-mask": "./src/utils/scroll-mask.css",
|
|
87
87
|
"./utils/view-transition": "./src/utils/view-transition.css",
|
|
88
88
|
"./z-layers": {
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"default": "./src/z-layers.ts"
|
|
89
|
+
"types": "./generated/z-layers.d.ts",
|
|
90
|
+
"default": "./generated/z-layers.js"
|
|
92
91
|
}
|
|
93
92
|
},
|
|
94
93
|
"files": [
|
|
@@ -110,11 +109,13 @@
|
|
|
110
109
|
"@atom63/eslint-config": "0.1.0"
|
|
111
110
|
},
|
|
112
111
|
"scripts": {
|
|
113
|
-
"generate:tokens": "node scripts/generate-token-manifest.mjs && node scripts/generate-figma-sync.mjs",
|
|
112
|
+
"generate:tokens": "node scripts/generate-token-manifest.mjs && node scripts/generate-figma-sync.mjs && node scripts/generate-z-layers.mjs",
|
|
114
113
|
"check:tokens": "node scripts/check-token-manifest.mjs",
|
|
115
114
|
"lint": "eslint . --cache --max-warnings 0",
|
|
116
115
|
"test": "vitest run",
|
|
117
116
|
"generate:figma": "node scripts/generate-figma-sync.mjs",
|
|
118
|
-
"check:figma": "node scripts/generate-figma-sync.mjs --check"
|
|
117
|
+
"check:figma": "node scripts/generate-figma-sync.mjs --check",
|
|
118
|
+
"generate:z-layers": "node scripts/generate-z-layers.mjs",
|
|
119
|
+
"check:z-layers": "node scripts/generate-z-layers.mjs --check"
|
|
119
120
|
}
|
|
120
121
|
}
|
package/src/z-layers.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Canonical z-index scale — typed mirror of the `--z-layer-*` custom
|
|
3
|
-
* properties in `tokens/foundation/primitives.css`. CSS is the source of
|
|
4
|
-
* truth; this mirror exists for JS consumers (e.g. the os63 windowing engine)
|
|
5
|
-
* that need numbers.
|
|
6
|
-
*
|
|
7
|
-
* Keep in sync with `tokens/foundation/primitives.css`; the archived token package keeps
|
|
8
|
-
* the drift-guarded mirror (`z-layers.test.ts`) for its own token consumers.
|
|
9
|
-
*/
|
|
10
|
-
export const Z_LAYERS = {
|
|
11
|
-
below: -1,
|
|
12
|
-
default: 0,
|
|
13
|
-
raised: 1,
|
|
14
|
-
base: 10,
|
|
15
|
-
sticky: 20,
|
|
16
|
-
windowOverlay: 40,
|
|
17
|
-
header: 50,
|
|
18
|
-
drawer: 90,
|
|
19
|
-
window: 300,
|
|
20
|
-
snapPreview: 390,
|
|
21
|
-
windowCeiling: 399,
|
|
22
|
-
flyout: 400,
|
|
23
|
-
launcher: 450,
|
|
24
|
-
scrim: 500,
|
|
25
|
-
modal: 600,
|
|
26
|
-
toast: 1050,
|
|
27
|
-
dock: 900,
|
|
28
|
-
overviewBackdrop: 905,
|
|
29
|
-
overviewWindow: 910,
|
|
30
|
-
overviewLabel: 940,
|
|
31
|
-
switcher: 950,
|
|
32
|
-
menu: 960,
|
|
33
|
-
popover: 970,
|
|
34
|
-
tooltip: 980,
|
|
35
|
-
overlay: 990,
|
|
36
|
-
lock: 1000,
|
|
37
|
-
boot: 1100,
|
|
38
|
-
} as const
|
|
39
|
-
|
|
40
|
-
export type ZLayer = keyof typeof Z_LAYERS
|