@tarsis/toolkit 0.6.6 → 0.7.1
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/Container-BVX2MW1U.cjs +138 -0
- package/dist/Container-BirkN1fA.js +119 -0
- package/dist/SelectBase-BC6WKZVF.cjs +448 -0
- package/dist/SelectBase-DPcXvMTa.js +399 -0
- package/dist/Slot-SOe-b2n6.cjs +77 -0
- package/dist/Slot-z71j7q57.js +65 -0
- package/dist/animation-BFpILbqb.js +102 -0
- package/dist/animation-BauloIgQ.cjs +119 -0
- package/dist/assets-BMqH4phf.cjs +52 -0
- package/dist/assets-huTvlamy.js +29 -0
- package/dist/audio/fail.mp3 +0 -0
- package/dist/audio/fail.ogg +0 -0
- package/dist/audio/hover.mp3 +0 -0
- package/dist/audio/hover.ogg +0 -0
- package/dist/audio/lock/fail.mp3 +0 -0
- package/dist/audio/lock/fail.ogg +0 -0
- package/dist/audio/lock/hover.mp3 +0 -0
- package/dist/audio/lock/hover.ogg +0 -0
- package/dist/audio/lock/prev-next.mp3 +0 -0
- package/dist/audio/lock/prev-next.ogg +0 -0
- package/dist/audio/lock/select.mp3 +0 -0
- package/dist/audio/lock/select.ogg +0 -0
- package/dist/audio/lock/success.mp3 +0 -0
- package/dist/audio/lock/success.ogg +0 -0
- package/dist/audio/prev-next.mp3 +0 -0
- package/dist/audio/prev-next.ogg +0 -0
- package/dist/audio/select.mp3 +0 -0
- package/dist/audio/select.ogg +0 -0
- package/dist/audio/success.mp3 +0 -0
- package/dist/audio/success.ogg +0 -0
- package/dist/chunk-CKQMccvm.cjs +28 -0
- package/dist/fonts/orbitron/orbitron-black.fnt +426 -0
- package/dist/fonts/orbitron/orbitron-black.png +0 -0
- package/dist/fonts/orbitron-black.fnt +426 -0
- package/dist/fonts/orbitron-black.png +0 -0
- package/dist/gl-B0NhVYRl.cjs +177 -0
- package/dist/gl-BipoEx9s.js +171 -0
- package/dist/hooks.cjs +661 -24
- package/dist/hooks.d.ts +72 -0
- package/dist/hooks.js +635 -1
- package/dist/index.cjs +26708 -384
- package/dist/index.d.ts +913 -27
- package/dist/index.js +26282 -3
- package/dist/layout.cjs +5 -0
- package/dist/layout.d.ts +45 -0
- package/dist/layout.js +2 -0
- package/dist/primitives.cjs +13 -0
- package/dist/primitives.d.ts +178 -0
- package/dist/primitives.js +3 -0
- package/dist/server.cjs +25 -0
- package/dist/server.d.ts +70 -0
- package/dist/server.js +2 -0
- package/dist/styles.css +4020 -2946
- package/dist/tokens-B2AxRYyF.js +434 -0
- package/dist/tokens-DlMougUi.cjs +469 -0
- package/dist/tokens.cjs +12 -0
- package/dist/tokens.d.ts +435 -0
- package/dist/tokens.js +3 -0
- package/dist/useMergeRefs-BM2-gSLn.js +16 -0
- package/dist/useMergeRefs-C_l6omwU.cjs +28 -0
- package/dist/utils-BGgmkNY4.cjs +330 -0
- package/dist/utils-Dw5El_3G.js +222 -0
- package/dist/utils.cjs +44 -38
- package/dist/utils.d.ts +75 -0
- package/dist/utils.js +3 -1
- package/dist/values-BTw18-W5.js +138 -0
- package/dist/values-BqSJ0h9o.cjs +275 -0
- package/package.json +88 -36
- package/dist/gl-C1OpenGq.js +0 -3258
- package/dist/gl-LtHwn-bj.cjs +0 -3262
- package/dist/index-Cz74WvnK.js +0 -3910
- package/dist/index-DhWWozeo.cjs +0 -3912
- package/dist/index-DvXp0wCM.cjs +0 -116866
- package/dist/index-JZY8IMW2.js +0 -116503
- package/dist/svg-BT_esDTZ.cjs +0 -236
- package/dist/svg-CQLdTbLk.js +0 -205
- package/dist/useWindowReady-6kIdYolB.cjs +0 -9317
- package/dist/useWindowReady-tUs-ONyG.js +0 -9224
package/dist/tokens.d.ts
ADDED
|
@@ -0,0 +1,435 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JS-accessible animation duration values (in seconds)
|
|
3
|
+
* for use with GSAP, framer-motion, and Web Animations API.
|
|
4
|
+
* Source of truth for the CSS var equivalents in global.css.
|
|
5
|
+
*/
|
|
6
|
+
export declare const animationDuration: {
|
|
7
|
+
readonly fastest: 0.1;
|
|
8
|
+
readonly fast: 0.15;
|
|
9
|
+
readonly short: 0.2;
|
|
10
|
+
readonly medium: 0.3;
|
|
11
|
+
readonly long: 0.4;
|
|
12
|
+
readonly slow: 0.5;
|
|
13
|
+
readonly slowest: 0.8;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export declare type AnimationDurationName = keyof typeof animationDuration;
|
|
17
|
+
|
|
18
|
+
export declare type ColorValidationResult = {
|
|
19
|
+
valid: boolean;
|
|
20
|
+
missing: SemanticVar[];
|
|
21
|
+
present: SemanticVar[];
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export declare type CssVarRef = `var(--${string})`;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Cubic-bezier tuples for programmatic use.
|
|
28
|
+
* CSS equivalents live in global.css --ease-* vars.
|
|
29
|
+
*/
|
|
30
|
+
export declare const easing: {
|
|
31
|
+
readonly linear: readonly [0, 0, 1, 1];
|
|
32
|
+
readonly ease: readonly [0.25, 0.1, 0.25, 1];
|
|
33
|
+
readonly easeIn: readonly [0.42, 0, 1, 1];
|
|
34
|
+
readonly easeOut: readonly [0, 0, 0.58, 1];
|
|
35
|
+
readonly easeInOut: readonly [0.42, 0, 0.58, 1];
|
|
36
|
+
readonly easeInOutCubic: readonly [0.4, 0, 0.2, 1];
|
|
37
|
+
readonly easeOutCubic: readonly [0.215, 0.61, 0.355, 1];
|
|
38
|
+
readonly easeOutQuad: readonly [0.25, 0.46, 0.45, 0.94];
|
|
39
|
+
readonly easeInOutQuad: readonly [0.455, 0.03, 0.515, 0.955];
|
|
40
|
+
readonly easeInQuart: readonly [0.5, 0, 0.75, 0];
|
|
41
|
+
readonly easeOutQuart: readonly [0.25, 1, 0.5, 1];
|
|
42
|
+
readonly easeInOutQuart: readonly [0.76, 0, 0.24, 1];
|
|
43
|
+
readonly easeOutExpo: readonly [0.16, 1, 0.3, 1];
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export declare type EasingName = keyof typeof easing;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Extract the CSS custom property name from a var() reference.
|
|
50
|
+
* `'var(--space-4)'` -> `'--space-4'`
|
|
51
|
+
*/
|
|
52
|
+
export declare const getVarName: (token: CssVarRef) => string;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* All semantic CSS custom property names that must be defined per theme.
|
|
56
|
+
* Used for CI/test validation to assert theme completeness.
|
|
57
|
+
*/
|
|
58
|
+
export declare const REQUIRED_SEMANTIC_VARS: readonly ["--color-surface-canvas", "--color-surface-raised", "--color-surface-elevated", "--color-surface-overlay", "--color-surface-inverse", "--color-surface-disabled", "--color-text-primary", "--color-text-secondary", "--color-text-tertiary", "--color-text-inverse", "--color-text-disabled", "--color-border-muted", "--color-border-subtle", "--color-border-strong", "--color-accent-primary", "--color-accent-primary-muted", "--color-accent-primary-emphasis", "--color-accent-success", "--color-accent-success-emphasis", "--color-accent-warning", "--color-accent-warning-emphasis", "--color-accent-danger", "--color-accent-danger-emphasis", "--color-accent-highlight", "--color-accent-highlight-emphasis", "--color-focus-ring", "--color-bg"];
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Resolve the computed value of a CSS variable token at runtime.
|
|
62
|
+
* Checks `document.body` first so semantic theme tokens resolve from the
|
|
63
|
+
* same element they are defined on, then falls back to `document.documentElement`.
|
|
64
|
+
*/
|
|
65
|
+
export declare const resolveToken: (token: CssVarRef, element?: Element) => string;
|
|
66
|
+
|
|
67
|
+
export declare type SemanticVar = (typeof REQUIRED_SEMANTIC_VARS)[number];
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Standardised spring presets for framer-motion / react-spring.
|
|
71
|
+
* Usage: <motion.div transition={springPreset.bouncy} />
|
|
72
|
+
*/
|
|
73
|
+
export declare const springPreset: {
|
|
74
|
+
readonly stiff: {
|
|
75
|
+
readonly type: "spring";
|
|
76
|
+
readonly stiffness: 400;
|
|
77
|
+
readonly damping: 30;
|
|
78
|
+
readonly mass: 1;
|
|
79
|
+
};
|
|
80
|
+
readonly bouncy: {
|
|
81
|
+
readonly type: "spring";
|
|
82
|
+
readonly stiffness: 300;
|
|
83
|
+
readonly damping: 15;
|
|
84
|
+
readonly mass: 1;
|
|
85
|
+
};
|
|
86
|
+
readonly gentle: {
|
|
87
|
+
readonly type: "spring";
|
|
88
|
+
readonly stiffness: 150;
|
|
89
|
+
readonly damping: 20;
|
|
90
|
+
readonly mass: 1;
|
|
91
|
+
};
|
|
92
|
+
readonly snappy: {
|
|
93
|
+
readonly type: "spring";
|
|
94
|
+
readonly stiffness: 500;
|
|
95
|
+
readonly damping: 35;
|
|
96
|
+
readonly mass: 0.8;
|
|
97
|
+
};
|
|
98
|
+
readonly slow: {
|
|
99
|
+
readonly type: "spring";
|
|
100
|
+
readonly stiffness: 100;
|
|
101
|
+
readonly damping: 20;
|
|
102
|
+
readonly mass: 1.5;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export declare type SpringPresetName = keyof typeof springPreset;
|
|
107
|
+
|
|
108
|
+
export declare const staggerDelay = 0.03;
|
|
109
|
+
|
|
110
|
+
export declare const Token: {
|
|
111
|
+
readonly color: {
|
|
112
|
+
readonly black: "var(--color-black)";
|
|
113
|
+
readonly white: "var(--color-white)";
|
|
114
|
+
readonly accent1: "var(--color-accent1)";
|
|
115
|
+
readonly accent2: "var(--color-accent2)";
|
|
116
|
+
readonly accent3: "var(--color-accent3)";
|
|
117
|
+
readonly accentGreen: "var(--color-accent-green)";
|
|
118
|
+
readonly accentGreen1: "var(--color-accent-green1)";
|
|
119
|
+
readonly surfaceCanvas: "var(--color-surface-canvas)";
|
|
120
|
+
readonly surfaceRaised: "var(--color-surface-raised)";
|
|
121
|
+
readonly surfaceElevated: "var(--color-surface-elevated)";
|
|
122
|
+
readonly surfaceOverlay: "var(--color-surface-overlay)";
|
|
123
|
+
readonly surfaceInverse: "var(--color-surface-inverse)";
|
|
124
|
+
readonly surfaceDisabled: "var(--color-surface-disabled)";
|
|
125
|
+
readonly textPrimary: "var(--color-text-primary)";
|
|
126
|
+
readonly textSecondary: "var(--color-text-secondary)";
|
|
127
|
+
readonly textTertiary: "var(--color-text-tertiary)";
|
|
128
|
+
readonly textInverse: "var(--color-text-inverse)";
|
|
129
|
+
readonly textDisabled: "var(--color-text-disabled)";
|
|
130
|
+
readonly borderMuted: "var(--color-border-muted)";
|
|
131
|
+
readonly borderSubtle: "var(--color-border-subtle)";
|
|
132
|
+
readonly borderStrong: "var(--color-border-strong)";
|
|
133
|
+
readonly accentPrimary: "var(--color-accent-primary)";
|
|
134
|
+
readonly accentPrimaryMuted: "var(--color-accent-primary-muted)";
|
|
135
|
+
readonly accentPrimaryEmphasis: "var(--color-accent-primary-emphasis)";
|
|
136
|
+
readonly accentSuccess: "var(--color-accent-success)";
|
|
137
|
+
readonly accentSuccessEmphasis: "var(--color-accent-success-emphasis)";
|
|
138
|
+
readonly accentWarning: "var(--color-accent-warning)";
|
|
139
|
+
readonly accentWarningEmphasis: "var(--color-accent-warning-emphasis)";
|
|
140
|
+
readonly accentDanger: "var(--color-accent-danger)";
|
|
141
|
+
readonly accentDangerEmphasis: "var(--color-accent-danger-emphasis)";
|
|
142
|
+
readonly accentHighlight: "var(--color-accent-highlight)";
|
|
143
|
+
readonly accentHighlightEmphasis: "var(--color-accent-highlight-emphasis)";
|
|
144
|
+
readonly focusRing: "var(--color-focus-ring)";
|
|
145
|
+
readonly bg: "var(--color-bg)";
|
|
146
|
+
readonly gray1: "var(--color-gray1)";
|
|
147
|
+
readonly gray2: "var(--color-gray2)";
|
|
148
|
+
readonly gray3: "var(--color-gray3)";
|
|
149
|
+
readonly gray4: "var(--color-gray4)";
|
|
150
|
+
readonly gray5: "var(--color-gray5)";
|
|
151
|
+
readonly gray6: "var(--color-gray6)";
|
|
152
|
+
readonly gray7: "var(--color-gray7)";
|
|
153
|
+
readonly gray8: "var(--color-gray8)";
|
|
154
|
+
readonly gray9: "var(--color-gray9)";
|
|
155
|
+
readonly gray10: "var(--color-gray10)";
|
|
156
|
+
readonly gray11: "var(--color-gray11)";
|
|
157
|
+
readonly gray12: "var(--color-gray12)";
|
|
158
|
+
readonly grayA1: "var(--color-grayA1)";
|
|
159
|
+
readonly grayA2: "var(--color-grayA2)";
|
|
160
|
+
readonly grayA3: "var(--color-grayA3)";
|
|
161
|
+
readonly grayA4: "var(--color-grayA4)";
|
|
162
|
+
readonly grayA5: "var(--color-grayA5)";
|
|
163
|
+
readonly grayA6: "var(--color-grayA6)";
|
|
164
|
+
readonly grayA7: "var(--color-grayA7)";
|
|
165
|
+
readonly grayA8: "var(--color-grayA8)";
|
|
166
|
+
readonly grayA9: "var(--color-grayA9)";
|
|
167
|
+
readonly grayA10: "var(--color-grayA10)";
|
|
168
|
+
readonly grayA11: "var(--color-grayA11)";
|
|
169
|
+
readonly grayA12: "var(--color-grayA12)";
|
|
170
|
+
readonly blue1: "var(--color-blue1)";
|
|
171
|
+
readonly blue2: "var(--color-blue2)";
|
|
172
|
+
readonly blue3: "var(--color-blue3)";
|
|
173
|
+
readonly blue4: "var(--color-blue4)";
|
|
174
|
+
readonly blue5: "var(--color-blue5)";
|
|
175
|
+
readonly blue6: "var(--color-blue6)";
|
|
176
|
+
readonly blue7: "var(--color-blue7)";
|
|
177
|
+
readonly blue8: "var(--color-blue8)";
|
|
178
|
+
readonly blue9: "var(--color-blue9)";
|
|
179
|
+
readonly blue10: "var(--color-blue10)";
|
|
180
|
+
readonly blue11: "var(--color-blue11)";
|
|
181
|
+
readonly blue12: "var(--color-blue12)";
|
|
182
|
+
readonly green1: "var(--color-green1)";
|
|
183
|
+
readonly green2: "var(--color-green2)";
|
|
184
|
+
readonly green3: "var(--color-green3)";
|
|
185
|
+
readonly green4: "var(--color-green4)";
|
|
186
|
+
readonly green5: "var(--color-green5)";
|
|
187
|
+
readonly green6: "var(--color-green6)";
|
|
188
|
+
readonly green7: "var(--color-green7)";
|
|
189
|
+
readonly green8: "var(--color-green8)";
|
|
190
|
+
readonly green9: "var(--color-green9)";
|
|
191
|
+
readonly green10: "var(--color-green10)";
|
|
192
|
+
readonly green11: "var(--color-green11)";
|
|
193
|
+
readonly green12: "var(--color-green12)";
|
|
194
|
+
readonly amber1: "var(--color-amber1)";
|
|
195
|
+
readonly amber2: "var(--color-amber2)";
|
|
196
|
+
readonly amber3: "var(--color-amber3)";
|
|
197
|
+
readonly amber4: "var(--color-amber4)";
|
|
198
|
+
readonly amber5: "var(--color-amber5)";
|
|
199
|
+
readonly amber6: "var(--color-amber6)";
|
|
200
|
+
readonly amber7: "var(--color-amber7)";
|
|
201
|
+
readonly amber8: "var(--color-amber8)";
|
|
202
|
+
readonly amber9: "var(--color-amber9)";
|
|
203
|
+
readonly amber10: "var(--color-amber10)";
|
|
204
|
+
readonly amber11: "var(--color-amber11)";
|
|
205
|
+
readonly amber12: "var(--color-amber12)";
|
|
206
|
+
readonly purple1: "var(--color-purple1)";
|
|
207
|
+
readonly purple2: "var(--color-purple2)";
|
|
208
|
+
readonly purple3: "var(--color-purple3)";
|
|
209
|
+
readonly purple4: "var(--color-purple4)";
|
|
210
|
+
readonly purple5: "var(--color-purple5)";
|
|
211
|
+
readonly purple6: "var(--color-purple6)";
|
|
212
|
+
readonly purple7: "var(--color-purple7)";
|
|
213
|
+
readonly purple8: "var(--color-purple8)";
|
|
214
|
+
readonly purple9: "var(--color-purple9)";
|
|
215
|
+
readonly purple10: "var(--color-purple10)";
|
|
216
|
+
readonly purple11: "var(--color-purple11)";
|
|
217
|
+
readonly purple12: "var(--color-purple12)";
|
|
218
|
+
readonly red1: "var(--color-red1)";
|
|
219
|
+
readonly red2: "var(--color-red2)";
|
|
220
|
+
readonly red3: "var(--color-red3)";
|
|
221
|
+
readonly red4: "var(--color-red4)";
|
|
222
|
+
readonly red5: "var(--color-red5)";
|
|
223
|
+
readonly red6: "var(--color-red6)";
|
|
224
|
+
readonly red7: "var(--color-red7)";
|
|
225
|
+
readonly red8: "var(--color-red8)";
|
|
226
|
+
readonly red9: "var(--color-red9)";
|
|
227
|
+
readonly red10: "var(--color-red10)";
|
|
228
|
+
readonly red11: "var(--color-red11)";
|
|
229
|
+
readonly red12: "var(--color-red12)";
|
|
230
|
+
};
|
|
231
|
+
readonly space: {
|
|
232
|
+
readonly s1: "var(--space-1)";
|
|
233
|
+
readonly s2: "var(--space-2)";
|
|
234
|
+
readonly s3: "var(--space-3)";
|
|
235
|
+
readonly s4: "var(--space-4)";
|
|
236
|
+
readonly s5: "var(--space-5)";
|
|
237
|
+
readonly s6: "var(--space-6)";
|
|
238
|
+
readonly s7: "var(--space-7)";
|
|
239
|
+
readonly s8: "var(--space-8)";
|
|
240
|
+
readonly s9: "var(--space-9)";
|
|
241
|
+
readonly s10: "var(--space-10)";
|
|
242
|
+
readonly s11: "var(--space-11)";
|
|
243
|
+
readonly s12: "var(--space-12)";
|
|
244
|
+
readonly s13: "var(--space-13)";
|
|
245
|
+
readonly s14: "var(--space-14)";
|
|
246
|
+
readonly s15: "var(--space-15)";
|
|
247
|
+
readonly xs: "var(--space-xs)";
|
|
248
|
+
readonly sm: "var(--space-sm)";
|
|
249
|
+
readonly md: "var(--space-md)";
|
|
250
|
+
readonly lg: "var(--space-lg)";
|
|
251
|
+
readonly xl: "var(--space-xl)";
|
|
252
|
+
readonly '2xl': "var(--space-2xl)";
|
|
253
|
+
readonly '3xl': "var(--space-3xl)";
|
|
254
|
+
};
|
|
255
|
+
readonly radius: {
|
|
256
|
+
readonly r1: "var(--radius-1)";
|
|
257
|
+
readonly r2: "var(--radius-2)";
|
|
258
|
+
readonly r3: "var(--radius-3)";
|
|
259
|
+
readonly r4: "var(--radius-4)";
|
|
260
|
+
readonly r5: "var(--radius-5)";
|
|
261
|
+
readonly r6: "var(--radius-6)";
|
|
262
|
+
readonly r7: "var(--radius-7)";
|
|
263
|
+
readonly xs: "var(--radius-xs)";
|
|
264
|
+
readonly sm: "var(--radius-sm)";
|
|
265
|
+
readonly md: "var(--radius-md)";
|
|
266
|
+
readonly lg: "var(--radius-lg)";
|
|
267
|
+
readonly xl: "var(--radius-xl)";
|
|
268
|
+
readonly round: "var(--radius-round)";
|
|
269
|
+
readonly pill: "var(--radius-pill)";
|
|
270
|
+
};
|
|
271
|
+
readonly shadow: {
|
|
272
|
+
readonly sm: "var(--shadow-sm)";
|
|
273
|
+
readonly md: "var(--shadow-md)";
|
|
274
|
+
readonly lg: "var(--shadow-lg)";
|
|
275
|
+
readonly raised: "var(--shadow-raised)";
|
|
276
|
+
readonly overlay: "var(--shadow-overlay)";
|
|
277
|
+
};
|
|
278
|
+
readonly font: {
|
|
279
|
+
readonly fancy: "var(--font-fancy)";
|
|
280
|
+
readonly body: "var(--font-body)";
|
|
281
|
+
readonly numeric: "var(--font-numeric)";
|
|
282
|
+
};
|
|
283
|
+
readonly fontSize: {
|
|
284
|
+
readonly f1: "var(--font-size-1)";
|
|
285
|
+
readonly f2: "var(--font-size-2)";
|
|
286
|
+
readonly f3: "var(--font-size-3)";
|
|
287
|
+
readonly f4: "var(--font-size-4)";
|
|
288
|
+
readonly f5: "var(--font-size-5)";
|
|
289
|
+
readonly f6: "var(--font-size-6)";
|
|
290
|
+
readonly f7: "var(--font-size-7)";
|
|
291
|
+
};
|
|
292
|
+
readonly fontWeight: {
|
|
293
|
+
readonly regular: "var(--font-weight-regular)";
|
|
294
|
+
readonly medium: "var(--font-weight-medium)";
|
|
295
|
+
readonly semibold: "var(--font-weight-semibold)";
|
|
296
|
+
readonly bold: "var(--font-weight-bold)";
|
|
297
|
+
};
|
|
298
|
+
readonly lineHeight: {
|
|
299
|
+
readonly tight: "var(--line-height-tight)";
|
|
300
|
+
readonly snug: "var(--line-height-snug)";
|
|
301
|
+
readonly body: "var(--line-height-body)";
|
|
302
|
+
readonly loose: "var(--line-height-loose)";
|
|
303
|
+
};
|
|
304
|
+
readonly letterSpacing: {
|
|
305
|
+
readonly tight: "var(--letter-spacing-tight)";
|
|
306
|
+
readonly normal: "var(--letter-spacing-normal)";
|
|
307
|
+
readonly wide: "var(--letter-spacing-wide)";
|
|
308
|
+
};
|
|
309
|
+
readonly duration: {
|
|
310
|
+
readonly fastest: "var(--duration-fastest)";
|
|
311
|
+
readonly fast: "var(--duration-fast)";
|
|
312
|
+
readonly normal: "var(--duration-normal)";
|
|
313
|
+
readonly slow: "var(--duration-slow)";
|
|
314
|
+
readonly slowest: "var(--duration-slowest)";
|
|
315
|
+
};
|
|
316
|
+
readonly easing: {
|
|
317
|
+
readonly snappy: "var(--easing-snappy)";
|
|
318
|
+
readonly inQuad: "var(--ease-in-quad)";
|
|
319
|
+
readonly inCubic: "var(--ease-in-cubic)";
|
|
320
|
+
readonly inQuart: "var(--ease-in-quart)";
|
|
321
|
+
readonly inQuint: "var(--ease-in-quint)";
|
|
322
|
+
readonly inExpo: "var(--ease-in-expo)";
|
|
323
|
+
readonly inCirc: "var(--ease-in-circ)";
|
|
324
|
+
readonly outQuad: "var(--ease-out-quad)";
|
|
325
|
+
readonly outCubic: "var(--ease-out-cubic)";
|
|
326
|
+
readonly outQuart: "var(--ease-out-quart)";
|
|
327
|
+
readonly outQuint: "var(--ease-out-quint)";
|
|
328
|
+
readonly outExpo: "var(--ease-out-expo)";
|
|
329
|
+
readonly outCirc: "var(--ease-out-circ)";
|
|
330
|
+
readonly inOutQuad: "var(--ease-in-out-quad)";
|
|
331
|
+
readonly inOutCubic: "var(--ease-in-out-cubic)";
|
|
332
|
+
readonly inOutQuart: "var(--ease-in-out-quart)";
|
|
333
|
+
readonly inOutQuint: "var(--ease-in-out-quint)";
|
|
334
|
+
readonly inOutExpo: "var(--ease-in-out-expo)";
|
|
335
|
+
readonly inOutCirc: "var(--ease-in-out-circ)";
|
|
336
|
+
};
|
|
337
|
+
readonly transition: {
|
|
338
|
+
readonly all: "var(--transition-all)";
|
|
339
|
+
readonly shadow: "var(--transition-shadow)";
|
|
340
|
+
readonly colors: "var(--transition-colors)";
|
|
341
|
+
readonly background: "var(--transition-background)";
|
|
342
|
+
readonly border: "var(--transition-border)";
|
|
343
|
+
readonly opacity: "var(--transition-opacity)";
|
|
344
|
+
readonly transform: "var(--transition-transform)";
|
|
345
|
+
};
|
|
346
|
+
readonly colorChannel: {
|
|
347
|
+
readonly accent: "var(--color-channel-accent)";
|
|
348
|
+
readonly success: "var(--color-channel-success)";
|
|
349
|
+
readonly danger: "var(--color-channel-danger)";
|
|
350
|
+
readonly warning: "var(--color-channel-warning)";
|
|
351
|
+
readonly highlight: "var(--color-channel-highlight)";
|
|
352
|
+
readonly white: "var(--color-channel-white)";
|
|
353
|
+
readonly black: "var(--color-channel-black)";
|
|
354
|
+
};
|
|
355
|
+
readonly effectChannel: {
|
|
356
|
+
readonly accent: "var(--effect-channel-accent)";
|
|
357
|
+
readonly danger: "var(--effect-channel-danger)";
|
|
358
|
+
readonly focusOutline: "var(--effect-channel-focus-outline)";
|
|
359
|
+
readonly glass: "var(--effect-channel-glass)";
|
|
360
|
+
readonly highlight: "var(--effect-channel-highlight)";
|
|
361
|
+
readonly shadow: "var(--effect-channel-shadow)";
|
|
362
|
+
};
|
|
363
|
+
readonly effect: {
|
|
364
|
+
readonly accentRingSoft: "var(--effect-accent-ring-soft)";
|
|
365
|
+
readonly focusOutline: "var(--effect-focus-outline)";
|
|
366
|
+
readonly focusOutlineHighlight: "var(--effect-focus-outline-highlight)";
|
|
367
|
+
readonly focusShadowAccent: "var(--effect-focus-shadow-accent)";
|
|
368
|
+
readonly focusShadowHighlight: "var(--effect-focus-shadow-highlight)";
|
|
369
|
+
readonly glassBorder: "var(--effect-glass-border)";
|
|
370
|
+
readonly glassBorderSoft: "var(--effect-glass-border-soft)";
|
|
371
|
+
readonly glassRing: "var(--effect-glass-ring)";
|
|
372
|
+
readonly glassShadowDepth: "var(--effect-glass-shadow-depth)";
|
|
373
|
+
readonly glassShadowSoft: "var(--effect-glass-shadow-soft)";
|
|
374
|
+
readonly glassShell: "var(--effect-glass-shell)";
|
|
375
|
+
readonly glassSurface: "var(--effect-glass-surface)";
|
|
376
|
+
readonly glowBorder: "var(--effect-glow-border)";
|
|
377
|
+
readonly glowCool: "var(--effect-glow-cool)";
|
|
378
|
+
readonly glowOutline: "var(--effect-glow-outline)";
|
|
379
|
+
readonly glowSheenEnd: "var(--effect-glow-sheen-end)";
|
|
380
|
+
readonly glowSheenStart: "var(--effect-glow-sheen-start)";
|
|
381
|
+
readonly glowVeil: "var(--effect-glow-veil)";
|
|
382
|
+
readonly glowWarm: "var(--effect-glow-warm)";
|
|
383
|
+
readonly glossLineFaint: "var(--effect-gloss-line-faint)";
|
|
384
|
+
readonly glossLineMedium: "var(--effect-gloss-line-medium)";
|
|
385
|
+
readonly glossLineSoft: "var(--effect-gloss-line-soft)";
|
|
386
|
+
readonly glossLineStrong: "var(--effect-gloss-line-strong)";
|
|
387
|
+
readonly highlightTrail: "var(--effect-highlight-trail)";
|
|
388
|
+
readonly overlayScrim: "var(--effect-overlay-scrim)";
|
|
389
|
+
readonly selectionAccent: "var(--effect-selection-accent)";
|
|
390
|
+
readonly shadowFaint: "var(--effect-shadow-faint)";
|
|
391
|
+
readonly shadowInteractive: "var(--effect-shadow-interactive)";
|
|
392
|
+
readonly shadowMuted: "var(--effect-shadow-muted)";
|
|
393
|
+
readonly shadowSoft: "var(--effect-shadow-soft)";
|
|
394
|
+
readonly shadowStrong: "var(--effect-shadow-strong)";
|
|
395
|
+
readonly thumbShadow: "var(--effect-thumb-shadow)";
|
|
396
|
+
readonly tooltipSurface: "var(--effect-tooltip-surface)";
|
|
397
|
+
};
|
|
398
|
+
readonly utils: {
|
|
399
|
+
readonly opacity: (channel: string, value: number | string) => string;
|
|
400
|
+
};
|
|
401
|
+
readonly textStyle: {
|
|
402
|
+
readonly heading1: "var(--text-heading-1)";
|
|
403
|
+
readonly heading2: "var(--text-heading-2)";
|
|
404
|
+
readonly heading3: "var(--text-heading-3)";
|
|
405
|
+
readonly body: "var(--text-body)";
|
|
406
|
+
readonly bodyEmphasis: "var(--text-body-emphasis)";
|
|
407
|
+
readonly small: "var(--text-small)";
|
|
408
|
+
readonly caption: "var(--text-caption)";
|
|
409
|
+
};
|
|
410
|
+
readonly zIndex: {
|
|
411
|
+
readonly n1: "var(--z-index-n1)";
|
|
412
|
+
readonly z0: "var(--z-index-0)";
|
|
413
|
+
readonly z1: "var(--z-index-1)";
|
|
414
|
+
readonly z2: "var(--z-index-2)";
|
|
415
|
+
readonly z3: "var(--z-index-3)";
|
|
416
|
+
readonly z4: "var(--z-index-4)";
|
|
417
|
+
readonly z5: "var(--z-index-5)";
|
|
418
|
+
readonly max: "var(--z-index-max)";
|
|
419
|
+
};
|
|
420
|
+
readonly breakpoint: {
|
|
421
|
+
readonly sm: "var(--breakpoint-sm)";
|
|
422
|
+
readonly md: "var(--breakpoint-md)";
|
|
423
|
+
readonly lg: "var(--breakpoint-lg)";
|
|
424
|
+
readonly xl: "var(--breakpoint-xl)";
|
|
425
|
+
};
|
|
426
|
+
readonly focusRingWidth: "var(--focus-ring-width)";
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Validate that all required semantic CSS variables are defined
|
|
431
|
+
* on the given element (defaults to `document.body`).
|
|
432
|
+
*/
|
|
433
|
+
export declare const validateColorScheme: (element?: Element) => ColorValidationResult;
|
|
434
|
+
|
|
435
|
+
export { }
|
package/dist/tokens.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { n as easing, r as staggerDelay, t as animationDuration } from "./animation-BFpILbqb.js";
|
|
2
|
+
import { a as getVarName, i as Token, n as validateColorScheme, o as resolveToken, r as springPreset, t as REQUIRED_SEMANTIC_VARS } from "./tokens-B2AxRYyF.js";
|
|
3
|
+
export { REQUIRED_SEMANTIC_VARS, Token, animationDuration, easing, getVarName, resolveToken, springPreset, staggerDelay, validateColorScheme };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useMemo } from "react";
|
|
2
|
+
//#region src/hooks/useMergeRefs.ts
|
|
3
|
+
function setRef(ref, value) {
|
|
4
|
+
if (typeof ref === "function") ref(value);
|
|
5
|
+
else if (ref !== null && ref !== void 0) ref.current = value;
|
|
6
|
+
}
|
|
7
|
+
function mergeRefs(...refs) {
|
|
8
|
+
return (value) => {
|
|
9
|
+
refs.forEach((ref) => setRef(ref, value));
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function useMergeRefs(...refs) {
|
|
13
|
+
return useMemo(() => mergeRefs(...refs), refs);
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { useMergeRefs as n, mergeRefs as t };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
require("./chunk-CKQMccvm.cjs");
|
|
2
|
+
let react = require("react");
|
|
3
|
+
//#region src/hooks/useMergeRefs.ts
|
|
4
|
+
function setRef(ref, value) {
|
|
5
|
+
if (typeof ref === "function") ref(value);
|
|
6
|
+
else if (ref !== null && ref !== void 0) ref.current = value;
|
|
7
|
+
}
|
|
8
|
+
function mergeRefs(...refs) {
|
|
9
|
+
return (value) => {
|
|
10
|
+
refs.forEach((ref) => setRef(ref, value));
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function useMergeRefs(...refs) {
|
|
14
|
+
return (0, react.useMemo)(() => mergeRefs(...refs), refs);
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
Object.defineProperty(exports, "mergeRefs", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return mergeRefs;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "useMergeRefs", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function() {
|
|
26
|
+
return useMergeRefs;
|
|
27
|
+
}
|
|
28
|
+
});
|