@nation-a/ui 0.3.0 → 0.4.0
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/dist/index.cjs +4356 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.js +4356 -0
- package/dist/index.js.map +1 -0
- package/dist/styled-system/css/conditions.mjs +36 -0
- package/dist/styled-system/css/css.d.ts +22 -0
- package/dist/styled-system/css/css.mjs +45 -0
- package/dist/styled-system/css/cva.d.ts +6 -0
- package/dist/styled-system/css/cva.mjs +87 -0
- package/dist/styled-system/css/cx.d.ts +5 -0
- package/dist/styled-system/css/cx.mjs +15 -0
- package/dist/styled-system/css/index.d.ts +5 -0
- package/dist/styled-system/css/index.mjs +4 -0
- package/dist/styled-system/css/sva.d.ts +4 -0
- package/dist/styled-system/css/sva.mjs +41 -0
- package/dist/styled-system/helpers.mjs +336 -0
- package/dist/styled-system/jsx/aspect-ratio.d.ts +10 -0
- package/dist/styled-system/jsx/aspect-ratio.mjs +14 -0
- package/dist/styled-system/jsx/bleed.d.ts +10 -0
- package/dist/styled-system/jsx/bleed.mjs +14 -0
- package/dist/styled-system/jsx/box.d.ts +10 -0
- package/dist/styled-system/jsx/box.mjs +14 -0
- package/dist/styled-system/jsx/center.d.ts +10 -0
- package/dist/styled-system/jsx/center.mjs +14 -0
- package/dist/styled-system/jsx/circle.d.ts +10 -0
- package/dist/styled-system/jsx/circle.mjs +14 -0
- package/dist/styled-system/jsx/container.d.ts +10 -0
- package/dist/styled-system/jsx/container.mjs +14 -0
- package/dist/styled-system/jsx/cq.d.ts +10 -0
- package/dist/styled-system/jsx/cq.mjs +14 -0
- package/dist/styled-system/jsx/divider.d.ts +10 -0
- package/dist/styled-system/jsx/divider.mjs +14 -0
- package/dist/styled-system/jsx/factory-helper.mjs +22 -0
- package/dist/styled-system/jsx/factory.d.ts +3 -0
- package/dist/styled-system/jsx/factory.mjs +80 -0
- package/dist/styled-system/jsx/flex.d.ts +10 -0
- package/dist/styled-system/jsx/flex.mjs +14 -0
- package/dist/styled-system/jsx/float.d.ts +10 -0
- package/dist/styled-system/jsx/float.mjs +14 -0
- package/dist/styled-system/jsx/grid-item.d.ts +10 -0
- package/dist/styled-system/jsx/grid-item.mjs +14 -0
- package/dist/styled-system/jsx/grid.d.ts +10 -0
- package/dist/styled-system/jsx/grid.mjs +14 -0
- package/dist/styled-system/jsx/hstack.d.ts +10 -0
- package/dist/styled-system/jsx/hstack.mjs +14 -0
- package/dist/styled-system/jsx/index.d.ts +24 -0
- package/dist/styled-system/jsx/index.mjs +22 -0
- package/dist/styled-system/jsx/is-valid-prop.d.ts +11 -0
- package/dist/styled-system/jsx/is-valid-prop.mjs +17 -0
- package/dist/styled-system/jsx/link-overlay.d.ts +10 -0
- package/dist/styled-system/jsx/link-overlay.mjs +14 -0
- package/dist/styled-system/jsx/spacer.d.ts +10 -0
- package/dist/styled-system/jsx/spacer.mjs +14 -0
- package/dist/styled-system/jsx/square.d.ts +10 -0
- package/dist/styled-system/jsx/square.mjs +14 -0
- package/dist/styled-system/jsx/stack.d.ts +10 -0
- package/dist/styled-system/jsx/stack.mjs +14 -0
- package/dist/styled-system/jsx/visually-hidden.d.ts +10 -0
- package/dist/styled-system/jsx/visually-hidden.mjs +14 -0
- package/dist/styled-system/jsx/vstack.d.ts +10 -0
- package/dist/styled-system/jsx/vstack.mjs +14 -0
- package/dist/styled-system/jsx/wrap.d.ts +10 -0
- package/dist/styled-system/jsx/wrap.mjs +14 -0
- package/dist/styled-system/patterns/aspect-ratio.d.ts +21 -0
- package/dist/styled-system/patterns/aspect-ratio.mjs +38 -0
- package/dist/styled-system/patterns/bleed.d.ts +22 -0
- package/dist/styled-system/patterns/bleed.mjs +24 -0
- package/dist/styled-system/patterns/box.d.ts +21 -0
- package/dist/styled-system/patterns/box.mjs +15 -0
- package/dist/styled-system/patterns/center.d.ts +21 -0
- package/dist/styled-system/patterns/center.mjs +21 -0
- package/dist/styled-system/patterns/circle.d.ts +21 -0
- package/dist/styled-system/patterns/circle.mjs +25 -0
- package/dist/styled-system/patterns/container.d.ts +21 -0
- package/dist/styled-system/patterns/container.mjs +21 -0
- package/dist/styled-system/patterns/cq.d.ts +22 -0
- package/dist/styled-system/patterns/cq.mjs +21 -0
- package/dist/styled-system/patterns/divider.d.ts +23 -0
- package/dist/styled-system/patterns/divider.mjs +25 -0
- package/dist/styled-system/patterns/flex.d.ts +27 -0
- package/dist/styled-system/patterns/flex.mjs +26 -0
- package/dist/styled-system/patterns/float.d.ts +24 -0
- package/dist/styled-system/patterns/float.mjs +52 -0
- package/dist/styled-system/patterns/grid-item.d.ts +26 -0
- package/dist/styled-system/patterns/grid-item.mjs +25 -0
- package/dist/styled-system/patterns/grid.d.ts +25 -0
- package/dist/styled-system/patterns/grid.mjs +27 -0
- package/dist/styled-system/patterns/hstack.d.ts +22 -0
- package/dist/styled-system/patterns/hstack.mjs +24 -0
- package/dist/styled-system/patterns/index.d.ts +21 -0
- package/dist/styled-system/patterns/index.mjs +20 -0
- package/dist/styled-system/patterns/link-overlay.d.ts +21 -0
- package/dist/styled-system/patterns/link-overlay.mjs +24 -0
- package/dist/styled-system/patterns/spacer.d.ts +21 -0
- package/dist/styled-system/patterns/spacer.mjs +21 -0
- package/dist/styled-system/patterns/square.d.ts +21 -0
- package/dist/styled-system/patterns/square.mjs +24 -0
- package/dist/styled-system/patterns/stack.d.ts +24 -0
- package/dist/styled-system/patterns/stack.mjs +24 -0
- package/dist/styled-system/patterns/visually-hidden.d.ts +21 -0
- package/dist/styled-system/patterns/visually-hidden.mjs +18 -0
- package/dist/styled-system/patterns/vstack.d.ts +22 -0
- package/dist/styled-system/patterns/vstack.mjs +24 -0
- package/dist/styled-system/patterns/wrap.d.ts +25 -0
- package/dist/styled-system/patterns/wrap.mjs +25 -0
- package/dist/styled-system/styles.css +1497 -0
- package/dist/styled-system/tokens/index.d.ts +9 -0
- package/dist/styled-system/tokens/index.mjs +1884 -0
- package/dist/styled-system/tokens/tokens.d.ts +63 -0
- package/dist/styled-system/types/composition.d.ts +164 -0
- package/dist/styled-system/types/conditions.d.ts +288 -0
- package/dist/styled-system/types/csstype.d.ts +21298 -0
- package/dist/styled-system/types/global.d.ts +20 -0
- package/dist/styled-system/types/index.d.ts +8 -0
- package/dist/styled-system/types/jsx.d.ts +52 -0
- package/dist/styled-system/types/parts.d.ts +8 -0
- package/dist/styled-system/types/pattern.d.ts +78 -0
- package/dist/styled-system/types/prop-type.d.ts +253 -0
- package/dist/styled-system/types/recipe.d.ts +181 -0
- package/dist/styled-system/types/selectors.d.ts +59 -0
- package/dist/styled-system/types/static-css.d.ts +56 -0
- package/dist/styled-system/types/style-props.d.ts +7492 -0
- package/dist/styled-system/types/system-types.d.ts +193 -0
- package/dist/types/components/Button/button.recipe.d.ts +109 -0
- package/dist/types/components/Button/index.d.ts +17 -0
- package/dist/types/components/Dialog/dialog.recipe.d.ts +2 -0
- package/dist/types/components/Dialog/index.d.ts +15 -0
- package/dist/types/components/IconButton/icon-button.recipe.d.ts +79 -0
- package/dist/types/components/IconButton/index.d.ts +13 -0
- package/dist/types/components/Spinner/index.d.ts +24 -0
- package/dist/types/components/Spinner/spinner.recipe.d.ts +21 -0
- package/dist/types/components/Text/index.d.ts +7 -0
- package/dist/types/components/Text/text.recipe.d.ts +38 -0
- package/dist/types/components/index.d.ts +6 -0
- package/dist/types/index.d.ts +2 -12717
- package/dist/types/theme/breakpoints.d.ts +7 -0
- package/dist/types/theme/conditions.d.ts +16 -0
- package/dist/types/theme/global-css.d.ts +1 -0
- package/dist/types/theme/index.d.ts +1 -0
- package/dist/types/theme/keyframes.d.ts +1 -0
- package/dist/types/theme/tokens/animations.d.ts +41 -0
- package/dist/types/theme/tokens/blurs.d.ts +23 -0
- package/dist/types/theme/tokens/borders.d.ts +5 -0
- package/dist/types/theme/tokens/durations.d.ts +23 -0
- package/dist/types/theme/tokens/easings.d.ts +14 -0
- package/dist/types/theme/tokens/index.d.ts +833 -0
- package/dist/types/theme/tokens/radii.d.ts +32 -0
- package/dist/types/theme/tokens/sizes.d.ts +158 -0
- package/dist/types/theme/tokens/spacing.d.ts +107 -0
- package/dist/types/theme/tokens/typography.d.ts +121 -0
- package/dist/types/theme/tokens/z-index.d.ts +38 -0
- package/dist/types/utils/create-style-context.d.ts +20 -0
- package/dist/types/vite-env.d.ts +1 -0
- package/package.json +44 -11
- package/dist/cjs/index.cjs +0 -2
- package/dist/cjs/index.cjs.map +0 -1
- package/dist/esm/index.mjs +0 -217
- package/dist/esm/index.mjs.map +0 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const radii: {
|
|
2
|
+
none: {
|
|
3
|
+
value: string;
|
|
4
|
+
};
|
|
5
|
+
'2xs': {
|
|
6
|
+
value: string;
|
|
7
|
+
};
|
|
8
|
+
xs: {
|
|
9
|
+
value: string;
|
|
10
|
+
};
|
|
11
|
+
sm: {
|
|
12
|
+
value: string;
|
|
13
|
+
};
|
|
14
|
+
md: {
|
|
15
|
+
value: string;
|
|
16
|
+
};
|
|
17
|
+
lg: {
|
|
18
|
+
value: string;
|
|
19
|
+
};
|
|
20
|
+
xl: {
|
|
21
|
+
value: string;
|
|
22
|
+
};
|
|
23
|
+
'2xl': {
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
26
|
+
'3xl': {
|
|
27
|
+
value: string;
|
|
28
|
+
};
|
|
29
|
+
full: {
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
export declare const sizes: {
|
|
2
|
+
full: {
|
|
3
|
+
value: string;
|
|
4
|
+
};
|
|
5
|
+
min: {
|
|
6
|
+
value: string;
|
|
7
|
+
};
|
|
8
|
+
max: {
|
|
9
|
+
value: string;
|
|
10
|
+
};
|
|
11
|
+
fit: {
|
|
12
|
+
value: string;
|
|
13
|
+
};
|
|
14
|
+
'2xs': {
|
|
15
|
+
value: string;
|
|
16
|
+
};
|
|
17
|
+
xs: {
|
|
18
|
+
value: string;
|
|
19
|
+
};
|
|
20
|
+
sm: {
|
|
21
|
+
value: string;
|
|
22
|
+
};
|
|
23
|
+
md: {
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
26
|
+
lg: {
|
|
27
|
+
value: string;
|
|
28
|
+
};
|
|
29
|
+
xl: {
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
32
|
+
'2xl': {
|
|
33
|
+
value: string;
|
|
34
|
+
};
|
|
35
|
+
'3xl': {
|
|
36
|
+
value: string;
|
|
37
|
+
};
|
|
38
|
+
'4xl': {
|
|
39
|
+
value: string;
|
|
40
|
+
};
|
|
41
|
+
'5xl': {
|
|
42
|
+
value: string;
|
|
43
|
+
};
|
|
44
|
+
'6xl': {
|
|
45
|
+
value: string;
|
|
46
|
+
};
|
|
47
|
+
'7xl': {
|
|
48
|
+
value: string;
|
|
49
|
+
};
|
|
50
|
+
'8xl': {
|
|
51
|
+
value: string;
|
|
52
|
+
};
|
|
53
|
+
0: {
|
|
54
|
+
value: string;
|
|
55
|
+
};
|
|
56
|
+
0.5: {
|
|
57
|
+
value: string;
|
|
58
|
+
};
|
|
59
|
+
1: {
|
|
60
|
+
value: string;
|
|
61
|
+
};
|
|
62
|
+
1.5: {
|
|
63
|
+
value: string;
|
|
64
|
+
};
|
|
65
|
+
2: {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
68
|
+
2.5: {
|
|
69
|
+
value: string;
|
|
70
|
+
};
|
|
71
|
+
3: {
|
|
72
|
+
value: string;
|
|
73
|
+
};
|
|
74
|
+
3.5: {
|
|
75
|
+
value: string;
|
|
76
|
+
};
|
|
77
|
+
4: {
|
|
78
|
+
value: string;
|
|
79
|
+
};
|
|
80
|
+
4.5: {
|
|
81
|
+
value: string;
|
|
82
|
+
};
|
|
83
|
+
5: {
|
|
84
|
+
value: string;
|
|
85
|
+
};
|
|
86
|
+
6: {
|
|
87
|
+
value: string;
|
|
88
|
+
};
|
|
89
|
+
7: {
|
|
90
|
+
value: string;
|
|
91
|
+
};
|
|
92
|
+
8: {
|
|
93
|
+
value: string;
|
|
94
|
+
};
|
|
95
|
+
9: {
|
|
96
|
+
value: string;
|
|
97
|
+
};
|
|
98
|
+
10: {
|
|
99
|
+
value: string;
|
|
100
|
+
};
|
|
101
|
+
11: {
|
|
102
|
+
value: string;
|
|
103
|
+
};
|
|
104
|
+
12: {
|
|
105
|
+
value: string;
|
|
106
|
+
};
|
|
107
|
+
14: {
|
|
108
|
+
value: string;
|
|
109
|
+
};
|
|
110
|
+
16: {
|
|
111
|
+
value: string;
|
|
112
|
+
};
|
|
113
|
+
20: {
|
|
114
|
+
value: string;
|
|
115
|
+
};
|
|
116
|
+
24: {
|
|
117
|
+
value: string;
|
|
118
|
+
};
|
|
119
|
+
28: {
|
|
120
|
+
value: string;
|
|
121
|
+
};
|
|
122
|
+
32: {
|
|
123
|
+
value: string;
|
|
124
|
+
};
|
|
125
|
+
36: {
|
|
126
|
+
value: string;
|
|
127
|
+
};
|
|
128
|
+
40: {
|
|
129
|
+
value: string;
|
|
130
|
+
};
|
|
131
|
+
44: {
|
|
132
|
+
value: string;
|
|
133
|
+
};
|
|
134
|
+
48: {
|
|
135
|
+
value: string;
|
|
136
|
+
};
|
|
137
|
+
52: {
|
|
138
|
+
value: string;
|
|
139
|
+
};
|
|
140
|
+
56: {
|
|
141
|
+
value: string;
|
|
142
|
+
};
|
|
143
|
+
60: {
|
|
144
|
+
value: string;
|
|
145
|
+
};
|
|
146
|
+
64: {
|
|
147
|
+
value: string;
|
|
148
|
+
};
|
|
149
|
+
72: {
|
|
150
|
+
value: string;
|
|
151
|
+
};
|
|
152
|
+
80: {
|
|
153
|
+
value: string;
|
|
154
|
+
};
|
|
155
|
+
96: {
|
|
156
|
+
value: string;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export declare const spacing: {
|
|
2
|
+
0: {
|
|
3
|
+
value: string;
|
|
4
|
+
};
|
|
5
|
+
0.5: {
|
|
6
|
+
value: string;
|
|
7
|
+
};
|
|
8
|
+
1: {
|
|
9
|
+
value: string;
|
|
10
|
+
};
|
|
11
|
+
1.5: {
|
|
12
|
+
value: string;
|
|
13
|
+
};
|
|
14
|
+
2: {
|
|
15
|
+
value: string;
|
|
16
|
+
};
|
|
17
|
+
2.5: {
|
|
18
|
+
value: string;
|
|
19
|
+
};
|
|
20
|
+
3: {
|
|
21
|
+
value: string;
|
|
22
|
+
};
|
|
23
|
+
3.5: {
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
26
|
+
4: {
|
|
27
|
+
value: string;
|
|
28
|
+
};
|
|
29
|
+
4.5: {
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
32
|
+
5: {
|
|
33
|
+
value: string;
|
|
34
|
+
};
|
|
35
|
+
6: {
|
|
36
|
+
value: string;
|
|
37
|
+
};
|
|
38
|
+
7: {
|
|
39
|
+
value: string;
|
|
40
|
+
};
|
|
41
|
+
8: {
|
|
42
|
+
value: string;
|
|
43
|
+
};
|
|
44
|
+
9: {
|
|
45
|
+
value: string;
|
|
46
|
+
};
|
|
47
|
+
10: {
|
|
48
|
+
value: string;
|
|
49
|
+
};
|
|
50
|
+
11: {
|
|
51
|
+
value: string;
|
|
52
|
+
};
|
|
53
|
+
12: {
|
|
54
|
+
value: string;
|
|
55
|
+
};
|
|
56
|
+
14: {
|
|
57
|
+
value: string;
|
|
58
|
+
};
|
|
59
|
+
16: {
|
|
60
|
+
value: string;
|
|
61
|
+
};
|
|
62
|
+
20: {
|
|
63
|
+
value: string;
|
|
64
|
+
};
|
|
65
|
+
24: {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
68
|
+
28: {
|
|
69
|
+
value: string;
|
|
70
|
+
};
|
|
71
|
+
32: {
|
|
72
|
+
value: string;
|
|
73
|
+
};
|
|
74
|
+
36: {
|
|
75
|
+
value: string;
|
|
76
|
+
};
|
|
77
|
+
40: {
|
|
78
|
+
value: string;
|
|
79
|
+
};
|
|
80
|
+
44: {
|
|
81
|
+
value: string;
|
|
82
|
+
};
|
|
83
|
+
48: {
|
|
84
|
+
value: string;
|
|
85
|
+
};
|
|
86
|
+
52: {
|
|
87
|
+
value: string;
|
|
88
|
+
};
|
|
89
|
+
56: {
|
|
90
|
+
value: string;
|
|
91
|
+
};
|
|
92
|
+
60: {
|
|
93
|
+
value: string;
|
|
94
|
+
};
|
|
95
|
+
64: {
|
|
96
|
+
value: string;
|
|
97
|
+
};
|
|
98
|
+
72: {
|
|
99
|
+
value: string;
|
|
100
|
+
};
|
|
101
|
+
80: {
|
|
102
|
+
value: string;
|
|
103
|
+
};
|
|
104
|
+
96: {
|
|
105
|
+
value: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
export declare const fontSizes: {
|
|
2
|
+
'2xs': {
|
|
3
|
+
value: string;
|
|
4
|
+
};
|
|
5
|
+
xs: {
|
|
6
|
+
value: string;
|
|
7
|
+
};
|
|
8
|
+
sm: {
|
|
9
|
+
value: string;
|
|
10
|
+
};
|
|
11
|
+
md: {
|
|
12
|
+
value: string;
|
|
13
|
+
};
|
|
14
|
+
lg: {
|
|
15
|
+
value: string;
|
|
16
|
+
};
|
|
17
|
+
xl: {
|
|
18
|
+
value: string;
|
|
19
|
+
};
|
|
20
|
+
'2xl': {
|
|
21
|
+
value: string;
|
|
22
|
+
};
|
|
23
|
+
'3xl': {
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
26
|
+
'4xl': {
|
|
27
|
+
value: string;
|
|
28
|
+
};
|
|
29
|
+
'5xl': {
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
32
|
+
'6xl': {
|
|
33
|
+
value: string;
|
|
34
|
+
};
|
|
35
|
+
'7xl': {
|
|
36
|
+
value: string;
|
|
37
|
+
};
|
|
38
|
+
'8xl': {
|
|
39
|
+
value: string;
|
|
40
|
+
};
|
|
41
|
+
'9xl': {
|
|
42
|
+
value: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export declare const fontWeights: {
|
|
46
|
+
thin: {
|
|
47
|
+
value: string;
|
|
48
|
+
};
|
|
49
|
+
extralight: {
|
|
50
|
+
value: string;
|
|
51
|
+
};
|
|
52
|
+
light: {
|
|
53
|
+
value: string;
|
|
54
|
+
};
|
|
55
|
+
normal: {
|
|
56
|
+
value: string;
|
|
57
|
+
};
|
|
58
|
+
medium: {
|
|
59
|
+
value: string;
|
|
60
|
+
};
|
|
61
|
+
semibold: {
|
|
62
|
+
value: string;
|
|
63
|
+
};
|
|
64
|
+
bold: {
|
|
65
|
+
value: string;
|
|
66
|
+
};
|
|
67
|
+
extrabold: {
|
|
68
|
+
value: string;
|
|
69
|
+
};
|
|
70
|
+
black: {
|
|
71
|
+
value: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
export declare const letterSpacings: {
|
|
75
|
+
tighter: {
|
|
76
|
+
value: string;
|
|
77
|
+
};
|
|
78
|
+
tight: {
|
|
79
|
+
value: string;
|
|
80
|
+
};
|
|
81
|
+
normal: {
|
|
82
|
+
value: string;
|
|
83
|
+
};
|
|
84
|
+
wide: {
|
|
85
|
+
value: string;
|
|
86
|
+
};
|
|
87
|
+
wider: {
|
|
88
|
+
value: string;
|
|
89
|
+
};
|
|
90
|
+
widest: {
|
|
91
|
+
value: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
export declare const lineHeights: {
|
|
95
|
+
none: {
|
|
96
|
+
value: string;
|
|
97
|
+
};
|
|
98
|
+
tight: {
|
|
99
|
+
value: string;
|
|
100
|
+
};
|
|
101
|
+
normal: {
|
|
102
|
+
value: string;
|
|
103
|
+
};
|
|
104
|
+
relaxed: {
|
|
105
|
+
value: string;
|
|
106
|
+
};
|
|
107
|
+
loose: {
|
|
108
|
+
value: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
export declare const fonts: {
|
|
112
|
+
sans: {
|
|
113
|
+
value: string[];
|
|
114
|
+
};
|
|
115
|
+
serif: {
|
|
116
|
+
value: string[];
|
|
117
|
+
};
|
|
118
|
+
mono: {
|
|
119
|
+
value: string[];
|
|
120
|
+
};
|
|
121
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const zIndex: {
|
|
2
|
+
hide: {
|
|
3
|
+
value: number;
|
|
4
|
+
};
|
|
5
|
+
base: {
|
|
6
|
+
value: number;
|
|
7
|
+
};
|
|
8
|
+
docked: {
|
|
9
|
+
value: number;
|
|
10
|
+
};
|
|
11
|
+
dropdown: {
|
|
12
|
+
value: number;
|
|
13
|
+
};
|
|
14
|
+
sticky: {
|
|
15
|
+
value: number;
|
|
16
|
+
};
|
|
17
|
+
banner: {
|
|
18
|
+
value: number;
|
|
19
|
+
};
|
|
20
|
+
overlay: {
|
|
21
|
+
value: number;
|
|
22
|
+
};
|
|
23
|
+
modal: {
|
|
24
|
+
value: number;
|
|
25
|
+
};
|
|
26
|
+
popover: {
|
|
27
|
+
value: number;
|
|
28
|
+
};
|
|
29
|
+
skipLink: {
|
|
30
|
+
value: number;
|
|
31
|
+
};
|
|
32
|
+
toast: {
|
|
33
|
+
value: number;
|
|
34
|
+
};
|
|
35
|
+
tooltip: {
|
|
36
|
+
value: number;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ElementType, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react';
|
|
2
|
+
type Props = Record<string, unknown>;
|
|
3
|
+
type Recipe = {
|
|
4
|
+
(props?: Props): Props;
|
|
5
|
+
splitVariantProps: (props: Props) => [Props, Props];
|
|
6
|
+
};
|
|
7
|
+
type Slot<R extends Recipe> = keyof ReturnType<R>;
|
|
8
|
+
type Options = {
|
|
9
|
+
forwardProps?: string[];
|
|
10
|
+
};
|
|
11
|
+
export declare const createStyleContext: <R extends Recipe>(recipe: R) => {
|
|
12
|
+
withRootProvider: <P extends {}>(Component: ElementType) => (props: P) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
withProvider: <T, P extends {
|
|
14
|
+
className?: string | undefined;
|
|
15
|
+
}>(Component: ElementType, slot: Slot<R>, options?: Options) => ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>;
|
|
16
|
+
withContext: <T, P_1 extends {
|
|
17
|
+
className?: string | undefined;
|
|
18
|
+
}>(Component: ElementType, slot: Slot<R>) => ForwardRefExoticComponent<PropsWithoutRef<P_1> & RefAttributes<T>>;
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nation-a/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"main": "./dist/
|
|
6
|
-
"module": "./dist/
|
|
5
|
+
"main": "./dist/index.cjs",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
7
|
"types": "./dist/types/index.d.ts",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
@@ -13,12 +13,11 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@ark-ui/react": "^5.1.0",
|
|
16
|
-
"
|
|
17
|
-
"react-icons": "^5.5.0",
|
|
18
|
-
"@nation-a/tokens": "0.1.1"
|
|
16
|
+
"@nation-a/tokens": "0.2.0"
|
|
19
17
|
},
|
|
20
18
|
"devDependencies": {
|
|
21
19
|
"@pandacss/dev": "^0.53.1",
|
|
20
|
+
"@types/node": "^22.13.10",
|
|
22
21
|
"@types/react": "^18.3",
|
|
23
22
|
"@types/react-dom": "^18.3",
|
|
24
23
|
"@typescript-eslint/eslint-plugin": "^5.59.7",
|
|
@@ -27,25 +26,59 @@
|
|
|
27
26
|
"eslint": "^8.40.0",
|
|
28
27
|
"typescript": "^5.7.3",
|
|
29
28
|
"vite": "^6.0.11",
|
|
29
|
+
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
30
30
|
"vite-plugin-dts": "^4.5.0",
|
|
31
|
+
"vite-plugin-static-copy": "^2.3.0",
|
|
31
32
|
"vite-tsconfig-paths": "^5.1.4"
|
|
32
33
|
},
|
|
33
34
|
"peerDependencies": {
|
|
34
35
|
"react": "^18",
|
|
35
36
|
"react-dom": "^18"
|
|
36
37
|
},
|
|
38
|
+
"peerDependenciesMeta": {
|
|
39
|
+
"@pandacss/dev": {
|
|
40
|
+
"optional": true
|
|
41
|
+
}
|
|
42
|
+
},
|
|
37
43
|
"exports": {
|
|
38
44
|
".": {
|
|
39
45
|
"types": "./dist/types/index.d.ts",
|
|
40
|
-
"require": "./dist/
|
|
41
|
-
"import": "./dist/
|
|
42
|
-
}
|
|
46
|
+
"require": "./dist/index.cjs",
|
|
47
|
+
"import": "./dist/index.js"
|
|
48
|
+
},
|
|
49
|
+
"./css": {
|
|
50
|
+
"types": "./dist/styled-system/css/index.d.ts",
|
|
51
|
+
"require": "./dist/styled-system/css/index.mjs",
|
|
52
|
+
"import": "./dist/styled-system/css/index.mjs"
|
|
53
|
+
},
|
|
54
|
+
"./tokens": {
|
|
55
|
+
"types": "./dist/styled-system/tokens/index.d.ts",
|
|
56
|
+
"require": "./dist/styled-system/tokens/index.mjs",
|
|
57
|
+
"import": "./dist/styled-system/tokens/index.mjs"
|
|
58
|
+
},
|
|
59
|
+
"./types": {
|
|
60
|
+
"types": "./dist/styled-system/types/index.d.ts",
|
|
61
|
+
"require": "./dist/styled-system/types/index.mjs",
|
|
62
|
+
"import": "./dist/styled-system/types/index.mjs"
|
|
63
|
+
},
|
|
64
|
+
"./patterns": {
|
|
65
|
+
"types": "./dist/styled-system/patterns/index.d.ts",
|
|
66
|
+
"require": "./dist/styled-system/patterns/index.mjs",
|
|
67
|
+
"import": "./dist/styled-system/patterns/index.mjs"
|
|
68
|
+
},
|
|
69
|
+
"./jsx": {
|
|
70
|
+
"types": "./dist/styled-system/jsx/index.d.ts",
|
|
71
|
+
"require": "./dist/styled-system/jsx/index.mjs",
|
|
72
|
+
"import": "./dist/styled-system/jsx/index.mjs"
|
|
73
|
+
},
|
|
74
|
+
"./styles.css": "./dist/styled-system/styles.css"
|
|
43
75
|
},
|
|
44
76
|
"scripts": {
|
|
77
|
+
"prebuild": "pnpm panda",
|
|
45
78
|
"build": "tsc && vite build",
|
|
46
|
-
"dev": "vite",
|
|
47
79
|
"clean": "rm -rf dist",
|
|
48
80
|
"lint": "eslint src --ext ts,tsx",
|
|
49
|
-
"typecheck": "tsc --noEmit"
|
|
81
|
+
"typecheck": "tsc --noEmit",
|
|
82
|
+
"panda": "panda codegen && panda"
|
|
50
83
|
}
|
|
51
84
|
}
|
package/dist/cjs/index.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("react/jsx-runtime"),v=require("react");var H={colors:{content:{neutral:{bold:{value:"{colors.neutral.1100}"},default:{value:"{colors.neutral.1000}"},subtle:{value:"{colors.neutral.900}"},subtlest:{value:"{colors.neutral.700}"},disabled:{value:"{colors.neutral.600}"},default_inverse:{value:"{colors.neutral.0}"}},neuroidPrimary:{default:{value:"{colors.purple.400}"},default_inverse:{value:"{colors.purple.800}"}},danger:{default:{value:"{colors.red.400}"}},warning:{default:{value:"{colors.yellow.400}"}},success:{default:{value:"{colors.green.400}"}},informative:{default:{value:"{colors.blue.400}"}},zoltarinaPrimary:{default:{value:"{colors.ohre.400}"},defult_inverse:{value:"{colors.ohre.900}"}},heydPrimary:{default:{value:"{colors.cyan.400}"},defult_inverse:{value:"{colors.cyan.1000}"}}},background:{neutral:{default:{value:"{colors.neutral.200}"},selected:{value:"{colors.neutral.300}"},disabled:{value:"{colors.neutral.400}"}},neuroidPrimary:{default:{value:"{colors.purple.600}"},selected:{value:"{colors.purple.700}"},disabled:{value:"{colors.neutral.400}"}},neuroidSecondary:{default:{value:"{colors.purple.300}"},selected:{value:"{colors.purple.400}"},disabled:{value:"{colors.neutral.400}"}},danger:{default:{value:"{colors.red.700}"},selected:{value:"{colors.red.800}"},disabled:{value:"{colors.neutral.400}"}},warning:{default:{value:"{colors.yellow.700}"},selected:{value:"{colors.yellow.800}"},disabled:{value:"{colors.neutral.400}"}},success:{default:{value:"{colors.green.700}"},selected:{value:"{colors.green.800}"},disabled:{value:"{colors.neutral.400}"}},informative:{default:{value:"{colors.blue.700}"},selected:{value:"{colors.blue.800}"},disabled:{value:"{colors.neutral.400}"}},zoltarinaPrimary:{default:{value:"{colors.ohre.400}"},selected:{value:"{colors.ohre.500}"},disabled:{value:"{colors.neutral.400}"}},zoltarinaSecondary:{default:{value:"{colors.ohre.200}"},selected:{value:"{colors.ohre.300}"},disabled:{value:"{colors.neutral.400}"}},heydPrimary:{default:{value:"{colors.cyan.500}"},selected:{value:"{colors.cyan.600}"},disabled:{value:"{colors.neutral.400}"}},heydSecondary:{default:{value:"{colors.cyan.200}"},selected:{value:"{colors.cyan.300}"},disabled:{value:"{colors.neutral.400}"}}},surface:{base:{value:"{colors.neutral.0}"},layer_1:{value:"{colors.neutral.100}"},layer_2:{value:"{colors.neutral.200}"}},shadow:{overlay:{value:"{colors.black.400A}"},raised:{value:"{colors.black.600A}"}},scrim:{default:{value:"{colors.black.600A}"}},skeleton:{default:{value:"{colors.neutral.100}"},subtle:{value:"{colors.neutral.200}"}},border:{neutral:{default:{value:"{colors.neutral.400}"},subtle:{value:"{colors.neutral.300}"},disabled:{value:"{colors.neutral.200}"}},neuroidPrimary:{default:{value:"{colors.purple.400}"}},danger:{default:{value:"{colors.red.400}"}},warning:{default:{value:"{colors.yellow.400}"}},success:{default:{value:"{colors.green.400}"}},informative:{default:{value:"{colors.blue.400}"}},zoltarinaPrimary:{default:{value:"{colors.ohre.400}"}},heydPrimary:{default:{value:"{colors.cyan.400}"}}}},shadows:{raised:{value:"0px 1px 3px 0px {colors.shadow.raised}"},overlay:{value:"0px 20px 25px -5px {colors.shadow.overlay}"}}},D={colors:{neutral:{0:{value:"#080A0E"},100:{value:"#101216"},200:{value:"#181A1E"},300:{value:"#282A2E"},400:{value:"#383A3E"},500:{value:"#505256"},600:{value:"#64666A"},700:{value:"#787A7E"},800:{value:"#A0A2A6"},900:{value:"#B4B6BA"},1e3:{value:"#DADCE0"},1100:{value:"#FAFCFF"}},black:{"700A":{value:"rgba(0,0,0,0.8)"},"600A":{value:"rgba(0,0,0,0.6)"},"500A":{value:"rgba(0,0,0,0.4)"},"400A":{value:"rgba(0,0,0,0.32)"},"300A":{value:"rgba(0,0,0,0.2)"},"200A":{value:"rgba(0,0,0,0.12)"},"100A":{value:"rgba(0,0,0,0.08)"}},white:{"700A":{value:"rgba(255,255,255,0.8)"},"600A":{value:"rgba(255,255,255,0.6)"},"500A":{value:"rgba(255,255,255,0.4)"},"400A":{value:"rgba(255,255,255,0.32)"},"300A":{value:"rgba(255,255,255,0.2)"},"200A":{value:"rgba(255,255,255,0.12)"},"100A":{value:"rgba(255,255,255,0.08)"}},red:{100:{value:"#ffeceb"},200:{value:"#ffd5d2"},300:{value:"#fd9891"},400:{value:"#f87168"},500:{value:"#f15b50"},600:{value:"#e2483d"},700:{value:"#c9372c"},800:{value:"#87241c"},900:{value:"#5d1f1a"},1e3:{value:"#42221f"}},yellow:{100:{value:"#fff5eb"},200:{value:"#ffe9d2"},300:{value:"#fdc991"},400:{value:"#f8b268"},500:{value:"#f1a350"},600:{value:"#e2923d"},700:{value:"#c97d2c"},800:{value:"#87531c"},900:{value:"#5d3d1a"},1e3:{value:"#42311f"}},blue:{100:{value:"#ebf2ff"},200:{value:"#d2e1ff"},300:{value:"#91b5fd"},400:{value:"#6898f8"},500:{value:"#5086f1"},600:{value:"#3d74e2"},700:{value:"#2c60c9"},800:{value:"#1c4087"},900:{value:"#1a305d"},1e3:{value:"#1f2b42"}},green:{100:{value:"#ebfff5"},200:{value:"#9cfccc"},300:{value:"#47EB99"},400:{value:"#26d980"},500:{value:"#14b866"},600:{value:"#10934c"},700:{value:"#147042"},800:{value:"#125433"},900:{value:"#104129"},1e3:{value:"#0b2819"}},purple:{100:{value:"#f3ebff"},200:{value:"#e9ddfd"},300:{value:"#cbacfb"},400:{value:"#ac7cf8"},500:{value:"#8d4bf6"},600:{value:"#6d19f5"},700:{value:"#570ad1"},800:{value:"#4308a0"},900:{value:"#2f0670"},1e3:{value:"#1a033f"}},ohre:{100:{value:"#FFF8F1"},200:{value:"#FFE6C8"},300:{value:"#FFD3A0"},400:{value:"#FFC077"},500:{value:"#E2A763"},600:{value:"#C58F50"},700:{value:"#A8773F"},800:{value:"#8A6030"},900:{value:"#6D4B22"},1e3:{value:"#503617"}},cyan:{100:{value:"#ecffff"},200:{value:"#c1feff"},300:{value:"#96feff"},400:{value:"#6bfdff"},500:{value:"#3df1f3"},600:{value:"#2acfd1"},700:{value:"#1aadaf"},800:{value:"#0e8c8d"},900:{value:"#056a6b"},1e3:{value:"#004849"}}},borderWidths:{none:{value:"0px"},sm:{value:"1px"},md:{value:"2px"},lg:{value:"4px"}},spacing:{0:{value:"0rem"},1:{value:"0.25rem"},2:{value:"0.5rem"},3:{value:"0.75rem"},4:{value:"1rem"},6:{value:"1.5rem"},8:{value:"2rem"},12:{value:"3rem"},20:{value:"5rem"},30:{value:"7.5rem"},56:{value:"14rem"},72:{value:"18rem"},98:{value:"24rem"},128:{value:"32rem"},160:{value:"40rem"}},radii:{none:{value:"0px"},xs:{value:"2px"},sm:{value:"4px"},md:{value:"8px"},lg:{value:"16px"},full:{value:"9999px"}},fontSizes:{xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.25rem"},xl:{value:"1.5rem"},"2xl":{value:"2rem"},"3xl":{value:"2.5rem"},"4xl":{value:"3rem"}},letterSpacings:{xs:{value:"-1.5px"},sm:{value:"-1.2px"},md:{value:"-1px"},lg:{value:"-0.8px"},xl:{value:"-0.6px"},"2xl":{value:"-0.4px"},"3xl":{value:"-0.2px"}},lineHeights:{md:{value:"1rem"},lg:{value:"1.25rem"},xl:{value:"1.5rem"},"2xl":{value:"1.75rem"},"3xl":{value:"2.25rem"},"4xl":{value:"2.75rem"},"5xl":{value:"3rem"}},fontWeights:{regular:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},regularItalic:{value:"Italic"},mediumItalic:{value:"Medium Italic"}},fonts:{inter:{value:"Inter"},notoSans:{value:"Noto Sans"}}},L={body:{md:{value:{fontFamily:"notoSans",fontWeight:"regular",fontSize:"sm",lineHeight:"lg",letterSpacing:"3xl"}},lg:{value:{fontFamily:"notoSans",fontWeight:"regular",fontSize:"md",lineHeight:"xl",letterSpacing:"3xl"}},sm:{value:{fontSize:"xs",fontWeight:"regular",fontFamily:"notoSans",lineHeight:"md",letterSpacing:"3xl"}}},label:{sm:{value:{fontFamily:"notoSans",fontWeight:"medium",fontSize:"xs",lineHeight:"md",letterSpacing:"3xl"}},md:{value:{fontFamily:"notoSans",fontWeight:"medium",fontSize:"sm",lineHeight:"lg",letterSpacing:"3xl"}}},title:{sm:{value:{fontFamily:"notoSans",fontWeight:"medium",fontSize:"sm",lineHeight:"lg",letterSpacing:"2xl"}},md:{value:{fontFamily:"notoSans",fontWeight:"medium",fontSize:"md",lineHeight:"xl",letterSpacing:"xl"}},lg:{value:{fontFamily:"notoSans",fontWeight:"semibold",fontSize:"lg",lineHeight:"2xl",letterSpacing:"xl"}}},headline:{sm:{value:{fontFamily:"inter",fontWeight:"semibold",fontSize:"xl",lineHeight:"2xl",letterSpacing:"lg"}},md:{value:{fontFamily:"inter",fontWeight:"bold",fontSize:"2xl",lineHeight:"3xl",letterSpacing:"md"}}},display:{md:{value:{fontFamily:"inter",fontWeight:"bold",fontSize:"3xl",lineHeight:"4xl",letterSpacing:"sm"}},lg:{value:{fontFamily:"inter",fontWeight:"bold",fontSize:"4xl",lineHeight:"5xl",letterSpacing:"xs"}}}},X={semantic:H,primitive:D,textStyles:L};const{primitive:Y,semantic:N,textStyles:V}=X,S={semantic:N,primitive:Y,textStyles:V},_=v.createContext(S),q=()=>v.useContext(_),G=({children:e})=>M.jsx(_.Provider,{value:S,children:e});function f(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}var $=e=>typeof e=="object"&&e!==null;function K(e){return Object.fromEntries(Object.entries(e??{}).filter(([r,t])=>t!==void 0))}var Z=e=>e==="base";function U(e){return e.slice().filter(r=>!Z(r))}function h(e){return String.fromCharCode(e+(e>25?39:97))}function J(e){let r="",t;for(t=Math.abs(e);t>52;t=t/52|0)r=h(t%52)+r;return h(t%52)+r}function Q(e,r){let t=r.length;for(;t;)e=e*33^r.charCodeAt(--t);return e}function ee(e){return J(Q(5381,e)>>>0)}var k=/\s*!(important)?/i;function re(e){return typeof e=="string"?k.test(e):!1}function te(e){return typeof e=="string"?e.replace(k,"").trim():e}function w(e){return typeof e=="string"?e.replaceAll(" ","_"):e}var p=e=>{const r=new Map;return(...o)=>{const a=JSON.stringify(o);if(r.has(a))return r.get(a);const l=e(...o);return r.set(a,l),l}};function C(...e){return e.reduce((r,t)=>(t&&Object.keys(t).forEach(o=>{const a=r[o],l=t[o];f(a)&&f(l)?r[o]=C(a,l):r[o]=l}),r),{})}var ae=e=>e!=null;function B(e,r,t={}){const{stop:o,getKey:a}=t;function l(i,n=[]){if($(i)){const s={};for(const[d,c]of Object.entries(i)){const u=(a==null?void 0:a(d,c))??d,b=[...n,u];if(o!=null&&o(i,b))return r(i,n);const g=l(c,b);ae(g)&&(s[u]=g)}return s}return r(i,n)}return l(e)}function oe(e,r){return e.reduce((t,o,a)=>{const l=r[a];return o!=null&&(t[l]=o),t},{})}function A(e,r,t=!0){const{utility:o,conditions:a}=r,{hasShorthand:l,resolveShorthand:i}=o;return B(e,n=>Array.isArray(n)?oe(n,a.breakpoints.keys):n,{stop:n=>Array.isArray(n),getKey:t?n=>l?i(n):n:void 0})}var le={shift:e=>e,finalize:e=>e,breakpoints:{keys:[]}},ne=e=>typeof e=="string"?e.replaceAll(/[\n\s]+/g," "):e;function ie(e){const{utility:r,hash:t,conditions:o=le}=e,a=i=>[r.prefix,i].filter(Boolean).join("-"),l=(i,n)=>{let s;if(t){const d=[...o.finalize(i),n];s=a(r.toHash(d,ee))}else s=[...o.finalize(i),a(n)].join(":");return s};return p(({base:i,...n}={})=>{const s=Object.assign(n,i),d=A(s,e),c=new Set;return B(d,(u,b)=>{if(u==null)return;const g=re(u),[z,...W]=o.shift(b),j=U(W),O=r.transform(z,te(ne(u)));let m=l(j,O.className);g&&(m=`${m}!`),c.add(m)}),Array.from(c).join(" ")})}function se(...e){return e.flat().filter(r=>f(r)&&Object.keys(K(r)).length>0)}function de(e){function r(a){const l=se(...a);return l.length===1?l:l.map(i=>A(i,e))}function t(...a){return C(...r(a))}function o(...a){return Object.assign({},...r(a))}return{mergeCss:p(t),assignCss:o}}var ce=/([A-Z])/g,ue=/^ms-/,be=p(e=>e.startsWith("--")?e:e.replace(ce,"-$1").replace(ue,"-ms-").toLowerCase()),ge="cm,mm,Q,in,pc,pt,px,em,ex,ch,rem,lh,rlh,vw,vh,vmin,vmax,vb,vi,svw,svh,lvw,lvh,dvw,dvh,cqw,cqh,cqi,cqb,cqmin,cqmax,%";`${ge.split(",").join("|")}`;const me="_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,base",E=new Set(me.split(",")),fe=/^@|&|&$/;function x(e){return E.has(e)||fe.test(e)}const ve=/^_/,pe=/&|@/;function he(e){return e.map(r=>E.has(r)?r.replace(ve,""):pe.test(r)?`[${w(r.trim())}]`:r)}function xe(e){return e.sort((r,t)=>{const o=x(r),a=x(t);return o&&!a?1:!o&&a?-1:0})}const ye="aspectRatio:asp,boxDecorationBreak:bx-db,zIndex:z,boxSizing:bx-s,objectPosition:obj-p,objectFit:obj-f,overscrollBehavior:ovs-b,overscrollBehaviorX:ovs-bx,overscrollBehaviorY:ovs-by,position:pos/1,top:top,left:left,inset:inset,insetInline:inset-x/insetX,insetBlock:inset-y/insetY,insetBlockEnd:inset-be,insetBlockStart:inset-bs,insetInlineEnd:inset-e/insetEnd/end,insetInlineStart:inset-s/insetStart/start,right:right,bottom:bottom,float:float,visibility:vis,display:d,hideFrom:hide,hideBelow:show,flexBasis:flex-b,flex:flex,flexDirection:flex-d/flexDir,flexGrow:flex-g,flexShrink:flex-sh,gridTemplateColumns:grid-tc,gridTemplateRows:grid-tr,gridColumn:grid-c,gridRow:grid-r,gridColumnStart:grid-cs,gridColumnEnd:grid-ce,gridAutoFlow:grid-af,gridAutoColumns:grid-ac,gridAutoRows:grid-ar,gap:gap,gridGap:grid-g,gridRowGap:grid-rg,gridColumnGap:grid-cg,rowGap:rg,columnGap:cg,justifyContent:jc,alignContent:ac,alignItems:ai,alignSelf:as,padding:p/1,paddingLeft:pl/1,paddingRight:pr/1,paddingTop:pt/1,paddingBottom:pb/1,paddingBlock:py/1/paddingY,paddingBlockEnd:pbe,paddingBlockStart:pbs,paddingInline:px/paddingX/1,paddingInlineEnd:pe/1/paddingEnd,paddingInlineStart:ps/1/paddingStart,marginLeft:ml/1,marginRight:mr/1,marginTop:mt/1,marginBottom:mb/1,margin:m/1,marginBlock:my/1/marginY,marginBlockEnd:mbe,marginBlockStart:mbs,marginInline:mx/1/marginX,marginInlineEnd:me/1/marginEnd,marginInlineStart:ms/1/marginStart,spaceX:sx,spaceY:sy,outlineWidth:ring-w/ringWidth,outlineColor:ring-c/ringColor,outline:ring/1,outlineOffset:ring-o/ringOffset,divideX:dvd-x,divideY:dvd-y,divideColor:dvd-c,divideStyle:dvd-s,width:w/1,inlineSize:w-is,minWidth:min-w/minW,minInlineSize:min-w-is,maxWidth:max-w/maxW,maxInlineSize:max-w-is,height:h/1,blockSize:h-bs,minHeight:min-h/minH,minBlockSize:min-h-bs,maxHeight:max-h/maxH,maxBlockSize:max-b,color:c,fontFamily:ff,fontSize:fs,fontSizeAdjust:fs-a,fontPalette:fp,fontKerning:fk,fontFeatureSettings:ff-s,fontWeight:fw,fontSmoothing:fsmt,fontVariant:fv,fontVariantAlternates:fv-alt,fontVariantCaps:fv-caps,fontVariationSettings:fv-s,fontVariantNumeric:fv-num,letterSpacing:ls,lineHeight:lh,textAlign:ta,textDecoration:td,textDecorationColor:td-c,textEmphasisColor:te-c,textDecorationStyle:td-s,textDecorationThickness:td-t,textUnderlineOffset:tu-o,textTransform:tt,textIndent:ti,textShadow:tsh,textShadowColor:tsh-c/textShadowColor,textOverflow:tov,verticalAlign:va,wordBreak:wb,textWrap:tw,truncate:trunc,lineClamp:lc,listStyleType:li-t,listStylePosition:li-pos,listStyleImage:li-img,listStyle:li-s,backgroundPosition:bg-p/bgPosition,backgroundPositionX:bg-p-x/bgPositionX,backgroundPositionY:bg-p-y/bgPositionY,backgroundAttachment:bg-a/bgAttachment,backgroundClip:bg-cp/bgClip,background:bg/1,backgroundColor:bg-c/bgColor,backgroundOrigin:bg-o/bgOrigin,backgroundImage:bg-i/bgImage,backgroundRepeat:bg-r/bgRepeat,backgroundBlendMode:bg-bm/bgBlendMode,backgroundSize:bg-s/bgSize,backgroundGradient:bg-grad/bgGradient,textGradient:txt-grad,gradientFromPosition:grad-from-pos,gradientToPosition:grad-to-pos,gradientFrom:grad-from,gradientTo:grad-to,gradientVia:grad-via,gradientViaPosition:grad-via-pos,borderRadius:bdr/rounded,borderTopLeftRadius:bdr-tl/roundedTopLeft,borderTopRightRadius:bdr-tr/roundedTopRight,borderBottomRightRadius:bdr-br/roundedBottomRight,borderBottomLeftRadius:bdr-bl/roundedBottomLeft,borderTopRadius:bdr-t/roundedTop,borderRightRadius:bdr-r/roundedRight,borderBottomRadius:bdr-b/roundedBottom,borderLeftRadius:bdr-l/roundedLeft,borderStartStartRadius:bdr-ss/roundedStartStart,borderStartEndRadius:bdr-se/roundedStartEnd,borderStartRadius:bdr-s/roundedStart,borderEndStartRadius:bdr-es/roundedEndStart,borderEndEndRadius:bdr-ee/roundedEndEnd,borderEndRadius:bdr-e/roundedEnd,border:bd,borderWidth:bd-w,borderTopWidth:bd-t-w,borderLeftWidth:bd-l-w,borderRightWidth:bd-r-w,borderBottomWidth:bd-b-w,borderColor:bd-c,borderInline:bd-x/borderX,borderInlineWidth:bd-x-w/borderXWidth,borderInlineColor:bd-x-c/borderXColor,borderBlock:bd-y/borderY,borderBlockWidth:bd-y-w/borderYWidth,borderBlockColor:bd-y-c/borderYColor,borderLeft:bd-l,borderLeftColor:bd-l-c,borderInlineStart:bd-s/borderStart,borderInlineStartWidth:bd-s-w/borderStartWidth,borderInlineStartColor:bd-s-c/borderStartColor,borderRight:bd-r,borderRightColor:bd-r-c,borderInlineEnd:bd-e/borderEnd,borderInlineEndWidth:bd-e-w/borderEndWidth,borderInlineEndColor:bd-e-c/borderEndColor,borderTop:bd-t,borderTopColor:bd-t-c,borderBottom:bd-b,borderBottomColor:bd-b-c,borderBlockEnd:bd-be,borderBlockEndColor:bd-be-c,borderBlockStart:bd-bs,borderBlockStartColor:bd-bs-c,opacity:op,boxShadow:bx-sh/shadow,boxShadowColor:bx-sh-c/shadowColor,mixBlendMode:mix-bm,filter:filter,brightness:brightness,contrast:contrast,grayscale:grayscale,hueRotate:hue-rotate,invert:invert,saturate:saturate,sepia:sepia,dropShadow:drop-shadow,blur:blur,backdropFilter:bkdp,backdropBlur:bkdp-blur,backdropBrightness:bkdp-brightness,backdropContrast:bkdp-contrast,backdropGrayscale:bkdp-grayscale,backdropHueRotate:bkdp-hue-rotate,backdropInvert:bkdp-invert,backdropOpacity:bkdp-opacity,backdropSaturate:bkdp-saturate,backdropSepia:bkdp-sepia,borderCollapse:bd-cl,borderSpacing:bd-sp,borderSpacingX:bd-sx,borderSpacingY:bd-sy,tableLayout:tbl,transitionTimingFunction:trs-tmf,transitionDelay:trs-dly,transitionDuration:trs-dur,transitionProperty:trs-prop,transition:trs,animation:anim,animationName:anim-n,animationTimingFunction:anim-tmf,animationDuration:anim-dur,animationDelay:anim-dly,animationPlayState:anim-ps,animationComposition:anim-comp,animationFillMode:anim-fm,animationDirection:anim-dir,animationIterationCount:anim-ic,animationRange:anim-r,animationState:anim-s,animationRangeStart:anim-rs,animationRangeEnd:anim-re,animationTimeline:anim-tl,transformOrigin:trf-o,transformBox:trf-b,transformStyle:trf-s,transform:trf,rotate:rotate,rotateX:rotate-x,rotateY:rotate-y,rotateZ:rotate-z,scale:scale,scaleX:scale-x,scaleY:scale-y,translate:translate,translateX:translate-x/x,translateY:translate-y/y,translateZ:translate-z/z,accentColor:ac-c,caretColor:ca-c,scrollBehavior:scr-bhv,scrollbar:scr-bar,scrollbarColor:scr-bar-c,scrollbarGutter:scr-bar-g,scrollbarWidth:scr-bar-w,scrollMargin:scr-m,scrollMarginLeft:scr-ml,scrollMarginRight:scr-mr,scrollMarginTop:scr-mt,scrollMarginBottom:scr-mb,scrollMarginBlock:scr-my/scrollMarginY,scrollMarginBlockEnd:scr-mbe,scrollMarginBlockStart:scr-mbt,scrollMarginInline:scr-mx/scrollMarginX,scrollMarginInlineEnd:scr-me,scrollMarginInlineStart:scr-ms,scrollPadding:scr-p,scrollPaddingBlock:scr-py/scrollPaddingY,scrollPaddingBlockStart:scr-pbs,scrollPaddingBlockEnd:scr-pbe,scrollPaddingInline:scr-px/scrollPaddingX,scrollPaddingInlineEnd:scr-pe,scrollPaddingInlineStart:scr-ps,scrollPaddingLeft:scr-pl,scrollPaddingRight:scr-pr,scrollPaddingTop:scr-pt,scrollPaddingBottom:scr-pb,scrollSnapAlign:scr-sa,scrollSnapStop:scrs-s,scrollSnapType:scrs-t,scrollSnapStrictness:scrs-strt,scrollSnapMargin:scrs-m,scrollSnapMarginTop:scrs-mt,scrollSnapMarginBottom:scrs-mb,scrollSnapMarginLeft:scrs-ml,scrollSnapMarginRight:scrs-mr,scrollSnapCoordinate:scrs-c,scrollSnapDestination:scrs-d,scrollSnapPointsX:scrs-px,scrollSnapPointsY:scrs-py,scrollSnapTypeX:scrs-tx,scrollSnapTypeY:scrs-ty,scrollTimeline:scrtl,scrollTimelineAxis:scrtl-a,scrollTimelineName:scrtl-n,touchAction:tch-a,userSelect:us,overflow:ov,overflowWrap:ov-wrap,overflowX:ov-x,overflowY:ov-y,overflowAnchor:ov-a,overflowBlock:ov-b,overflowInline:ov-i,overflowClipBox:ovcp-bx,overflowClipMargin:ovcp-m,overscrollBehaviorBlock:ovs-bb,overscrollBehaviorInline:ovs-bi,fill:fill,stroke:stk,strokeWidth:stk-w,strokeDasharray:stk-dsh,strokeDashoffset:stk-do,strokeLinecap:stk-lc,strokeLinejoin:stk-lj,strokeMiterlimit:stk-ml,strokeOpacity:stk-op,srOnly:sr,debug:debug,appearance:ap,backfaceVisibility:bfv,clipPath:cp-path,hyphens:hy,mask:msk,maskImage:msk-i,maskSize:msk-s,textSizeAdjust:txt-adj,container:cq,containerName:cq-n,containerType:cq-t,textStyle:textStyle",R=new Map,P=new Map;ye.split(",").forEach(e=>{const[r,t]=e.split(":"),[o,...a]=t.split("/");R.set(r,o),a.length&&a.forEach(l=>{P.set(l==="1"?o:l,r)})});const y=e=>P.get(e)||e,F={conditions:{shift:xe,finalize:he,breakpoints:{keys:["base"]}},utility:{transform:(e,r)=>{const t=y(e);return{className:`${R.get(t)||be(t)}_${w(r)}`}},hasShorthand:!0,toHash:(e,r)=>r(e.join(":")),resolveShorthand:y}},Se=ie(F),T=(...e)=>Se(I(...e));T.raw=(...e)=>I(...e);const{mergeCss:I}=de(F);function _e({variant:e="body.md",as:r,children:t,style:o,className:a,...l}){const n=r||(()=>{switch(e==null?void 0:e.split(".")[0]){case"display":case"headline":return"h1";case"title":return"h3";case"body":return"p";case"label":return"span";default:return"p"}})(),s=T({textStyle:e}),d=a?`${s} ${a}`:s;return v.createElement(n,{style:o,className:d,...l},t)}exports.Text=_e;exports.ThemeProvider=G;exports.useTheme=q;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|