@atom63/styles 0.1.0-beta.1 → 0.1.0-beta.3
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/generated/atom63.figma-sync.json +14280 -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 +14 -9
- package/src/z-layers.ts +0 -40
|
@@ -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,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atom63/styles",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.3",
|
|
4
4
|
"description": "CSS tokens, themes, contracts, and utilities for the Atom63 design system",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/
|
|
8
|
+
"url": "git+https://github.com/atom63/atom63-design-system.git",
|
|
9
9
|
"directory": "packages/styles"
|
|
10
10
|
},
|
|
11
|
-
"homepage": "https://github.com/
|
|
11
|
+
"homepage": "https://github.com/atom63/atom63-design-system/tree/main/packages/styles#readme",
|
|
12
12
|
"bugs": {
|
|
13
|
-
"url": "https://github.com/
|
|
13
|
+
"url": "https://github.com/atom63/atom63-design-system/issues"
|
|
14
14
|
},
|
|
15
15
|
"publishConfig": {
|
|
16
16
|
"access": "public"
|
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
"style": "./src/index.css",
|
|
28
28
|
"exports": {
|
|
29
29
|
".": "./src/index.css",
|
|
30
|
+
"./tokens.json": "./generated/atom63.tokens.json",
|
|
31
|
+
"./figma-sync.json": "./generated/atom63.figma-sync.json",
|
|
30
32
|
"./compat": "./src/compat/index.css",
|
|
31
33
|
"./compat/a63-from-shadcn": "./src/compat/a63-from-shadcn.css",
|
|
32
34
|
"./animations": "./src/animations/index.css",
|
|
@@ -84,9 +86,8 @@
|
|
|
84
86
|
"./utils/scroll-mask": "./src/utils/scroll-mask.css",
|
|
85
87
|
"./utils/view-transition": "./src/utils/view-transition.css",
|
|
86
88
|
"./z-layers": {
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"default": "./src/z-layers.ts"
|
|
89
|
+
"types": "./generated/z-layers.d.ts",
|
|
90
|
+
"default": "./generated/z-layers.js"
|
|
90
91
|
}
|
|
91
92
|
},
|
|
92
93
|
"files": [
|
|
@@ -108,9 +109,13 @@
|
|
|
108
109
|
"@atom63/eslint-config": "0.1.0"
|
|
109
110
|
},
|
|
110
111
|
"scripts": {
|
|
111
|
-
"generate:tokens": "node scripts/generate-token-manifest.mjs",
|
|
112
|
+
"generate:tokens": "node scripts/generate-token-manifest.mjs && node scripts/generate-figma-sync.mjs && node scripts/generate-z-layers.mjs",
|
|
112
113
|
"check:tokens": "node scripts/check-token-manifest.mjs",
|
|
113
114
|
"lint": "eslint . --cache --max-warnings 0",
|
|
114
|
-
"test": "vitest run"
|
|
115
|
+
"test": "vitest run",
|
|
116
|
+
"generate:figma": "node scripts/generate-figma-sync.mjs",
|
|
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"
|
|
115
120
|
}
|
|
116
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
|