@refineui/tokens 1.0.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/README.md +80 -0
- package/dist/css-variables.css +672 -0
- package/dist/index.d.mts +1049 -0
- package/dist/index.d.ts +1049 -0
- package/dist/index.js +978 -0
- package/dist/index.mjs +921 -0
- package/dist/refineui-typography.css +111 -0
- package/dist/spec/component-sizes.json +485 -0
- package/dist/spec/focus.json +20 -0
- package/dist/spec/foundation.json +90 -0
- package/dist/spec/index.json +25 -0
- package/dist/spec/motion.json +78 -0
- package/dist/spec/semantic-colors.json +1256 -0
- package/dist/spec/semantic-text.json +173 -0
- package/dist/spec/token-graph.json +1194 -0
- package/dist/spec/trace-index.json +830 -0
- package/dist/spec/trace-v2.json +973 -0
- package/dist/tailwind-theme.css +348 -0
- package/package.json +50 -0
- package/tailwind.css +4 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,978 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
SEMANTIC_COLOR_ROWS: () => SEMANTIC_COLOR_ROWS,
|
|
24
|
+
SEMANTIC_FOCUS_PAIRS: () => SEMANTIC_FOCUS_PAIRS,
|
|
25
|
+
SEMANTIC_PALETTE_PAIRS: () => SEMANTIC_PALETTE_PAIRS,
|
|
26
|
+
SEMANTIC_TEXT: () => SEMANTIC_TEXT,
|
|
27
|
+
borderRadii: () => borderRadii,
|
|
28
|
+
colors: () => colors,
|
|
29
|
+
componentSizeFoundationKeys: () => componentSizeFoundationKeys,
|
|
30
|
+
componentSizes: () => componentSizes,
|
|
31
|
+
fontFamilies: () => fontFamilies,
|
|
32
|
+
fontSizes: () => fontSizes,
|
|
33
|
+
fontWeights: () => fontWeights,
|
|
34
|
+
foundationSizes: () => foundationSizes,
|
|
35
|
+
iconSizes: () => iconSizes,
|
|
36
|
+
lineHeights: () => lineHeights,
|
|
37
|
+
motion: () => motion,
|
|
38
|
+
opacities: () => opacities,
|
|
39
|
+
overlays: () => overlays,
|
|
40
|
+
semanticColors: () => semanticColors,
|
|
41
|
+
semanticFocus: () => semanticFocus,
|
|
42
|
+
semanticInteraction: () => semanticInteraction,
|
|
43
|
+
semanticShadows: () => semanticShadows,
|
|
44
|
+
shadow2Lighter: () => shadow2Lighter,
|
|
45
|
+
shadowColors: () => shadowColors,
|
|
46
|
+
shadows: () => shadows,
|
|
47
|
+
spacings: () => spacings,
|
|
48
|
+
strokeWidths: () => strokeWidths,
|
|
49
|
+
surfaceOverlayRgba: () => surfaceOverlayRgba,
|
|
50
|
+
textAlignments: () => textAlignments,
|
|
51
|
+
toBoxShadow: () => toBoxShadow,
|
|
52
|
+
typographys: () => typographys,
|
|
53
|
+
zIndex: () => zIndex
|
|
54
|
+
});
|
|
55
|
+
module.exports = __toCommonJS(index_exports);
|
|
56
|
+
|
|
57
|
+
// src/global/colors.ts
|
|
58
|
+
var colors = {
|
|
59
|
+
primaryLightGray: "#E6E6E6",
|
|
60
|
+
primaryGray: "#D4D4D4",
|
|
61
|
+
primaryDarkGray: "#4d4d4d",
|
|
62
|
+
primaryBlack: "#212121",
|
|
63
|
+
neutralWhite: "#FFFFFF",
|
|
64
|
+
neutral100: "#F5F5F5",
|
|
65
|
+
neutral150: "#F0F0F0",
|
|
66
|
+
neutral200: "#EBEBEB",
|
|
67
|
+
neutral250: "#E0E0E0",
|
|
68
|
+
neutral300: "#DBDBDB",
|
|
69
|
+
neutral350: "#D8D8D8",
|
|
70
|
+
neutral400: "#CECECE",
|
|
71
|
+
neutral450: "#BBBBBB",
|
|
72
|
+
neutral500: "#A4A4A4",
|
|
73
|
+
neutral550: "#8D8D8D",
|
|
74
|
+
neutral600: "#6C6C6C",
|
|
75
|
+
neutral650: "#5B5B5B",
|
|
76
|
+
neutral700: "#404040",
|
|
77
|
+
neutral750: "#333333",
|
|
78
|
+
neutral800: "#2A2A2A",
|
|
79
|
+
neutral850: "#222222",
|
|
80
|
+
neutral900: "#1A1A1A",
|
|
81
|
+
neutral950: "#111111",
|
|
82
|
+
neutralBlack: "#000000",
|
|
83
|
+
red100: "#FFDEDE",
|
|
84
|
+
red200: "#FFC3C3",
|
|
85
|
+
red300: "#FFA7A7",
|
|
86
|
+
red400: "#FF8989",
|
|
87
|
+
red500: "#FF6969",
|
|
88
|
+
red600: "#F94343",
|
|
89
|
+
red700: "#D93A3A",
|
|
90
|
+
red800: "#BA3232",
|
|
91
|
+
red900: "#9C2929",
|
|
92
|
+
red1000: "#711e1e",
|
|
93
|
+
orange100: "#FAE0D1",
|
|
94
|
+
orange200: "#F6C8AE",
|
|
95
|
+
orange300: "#F3B08B",
|
|
96
|
+
orange400: "#EF9664",
|
|
97
|
+
orange500: "#EB7C3E",
|
|
98
|
+
orange600: "#D6692C",
|
|
99
|
+
orange700: "#BA5B26",
|
|
100
|
+
orange800: "#9F4E21",
|
|
101
|
+
orange900: "#85411B",
|
|
102
|
+
orange1000: "#5f2f14",
|
|
103
|
+
yellow100: "#FFE493",
|
|
104
|
+
yellow200: "#FFCB2F",
|
|
105
|
+
yellow300: "#F1B500",
|
|
106
|
+
yellow400: "#DAA300",
|
|
107
|
+
yellow500: "#C49200",
|
|
108
|
+
yellow600: "#AD8100",
|
|
109
|
+
yellow700: "#967000",
|
|
110
|
+
yellow800: "#806000",
|
|
111
|
+
yellow900: "#6B5000",
|
|
112
|
+
yellow1000: "#564100",
|
|
113
|
+
lime100: "#C8F46F",
|
|
114
|
+
lime200: "#A4E61F",
|
|
115
|
+
lime300: "#95D11C",
|
|
116
|
+
lime400: "#86BC19",
|
|
117
|
+
lime500: "#78A917",
|
|
118
|
+
lime600: "#6A9514",
|
|
119
|
+
lime700: "#5C8111",
|
|
120
|
+
lime800: "#4F6E0F",
|
|
121
|
+
lime900: "#425C0C",
|
|
122
|
+
lime1000: "#2f4209",
|
|
123
|
+
green100: "#ADF7B0",
|
|
124
|
+
green200: "#5BEE62",
|
|
125
|
+
green300: "#2FDC37",
|
|
126
|
+
green400: "#2AC632",
|
|
127
|
+
green500: "#26B12D",
|
|
128
|
+
green600: "#229D28",
|
|
129
|
+
green700: "#1D8822",
|
|
130
|
+
green800: "#19751D",
|
|
131
|
+
green900: "#156119",
|
|
132
|
+
green1000: "#0f4612",
|
|
133
|
+
teal100: "#C9ECF0",
|
|
134
|
+
teal200: "#9EDDE4",
|
|
135
|
+
teal300: "#71CDD7",
|
|
136
|
+
teal400: "#54BAC6",
|
|
137
|
+
teal500: "#4BA7B1",
|
|
138
|
+
teal600: "#42949D",
|
|
139
|
+
teal700: "#398088",
|
|
140
|
+
teal800: "#316D74",
|
|
141
|
+
teal900: "#295b61",
|
|
142
|
+
teal1000: "#1d4145",
|
|
143
|
+
blue100: "#DEE5FF",
|
|
144
|
+
blue200: "#C3D0FF",
|
|
145
|
+
blue300: "#A9BCFF",
|
|
146
|
+
blue400: "#90A8FF",
|
|
147
|
+
blue500: "#7694FF",
|
|
148
|
+
blue600: "#5B7FFF",
|
|
149
|
+
blue700: "#3E68FF",
|
|
150
|
+
blue800: "#2351F7",
|
|
151
|
+
blue900: "#1D44CE",
|
|
152
|
+
blue1000: "#1837A8",
|
|
153
|
+
purple100: "#EFDFFF",
|
|
154
|
+
purple200: "#E3C7FF",
|
|
155
|
+
purple300: "#D6AEFF",
|
|
156
|
+
purple400: "#C995FF",
|
|
157
|
+
purple500: "#BD7BFF",
|
|
158
|
+
purple600: "#AF60FF",
|
|
159
|
+
purple700: "#9E3FFF",
|
|
160
|
+
purple800: "#891CF9",
|
|
161
|
+
purple900: "#7318D0",
|
|
162
|
+
purple1000: "#5E13AB",
|
|
163
|
+
magenta100: "#FCDEEC",
|
|
164
|
+
magenta200: "#FAC3DC",
|
|
165
|
+
magenta300: "#F7A7CB",
|
|
166
|
+
magenta400: "#F58ABA",
|
|
167
|
+
magenta500: "#F26BA8",
|
|
168
|
+
magenta600: "#EF4592",
|
|
169
|
+
magenta700: "#D6327C",
|
|
170
|
+
magenta800: "#B82B6B",
|
|
171
|
+
magenta900: "#9A2459",
|
|
172
|
+
magenta1000: "#7D1E49"
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
// src/internal/color.ts
|
|
176
|
+
function toKebab(str) {
|
|
177
|
+
return str.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1-$2").replace(/([a-zA-Z])(\d)/g, "$1-$2").toLowerCase();
|
|
178
|
+
}
|
|
179
|
+
function paletteColorCssVar(name) {
|
|
180
|
+
return `var(--refineui-color-${toKebab(name)})`;
|
|
181
|
+
}
|
|
182
|
+
function hexToRgba(hex, alpha) {
|
|
183
|
+
const h = hex.replace("#", "");
|
|
184
|
+
const r = h.length === 3 ? parseInt(h[0] + h[0], 16) : parseInt(h.slice(0, 2), 16);
|
|
185
|
+
const g = h.length === 3 ? parseInt(h[1] + h[1], 16) : parseInt(h.slice(2, 4), 16);
|
|
186
|
+
const b = h.length === 3 ? parseInt(h[2] + h[2], 16) : parseInt(h.slice(4, 6), 16);
|
|
187
|
+
return `rgba(${r}, ${g}, ${b}, ${alpha})`;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
// src/semantic/colors.ts
|
|
191
|
+
var SEMANTIC_PALETTE_PAIRS = {
|
|
192
|
+
backgroundBrandActive: { light: "neutralBlack", dark: "primaryLightGray" },
|
|
193
|
+
backgroundBrandDisabled: { light: "neutral150", dark: "neutral650" },
|
|
194
|
+
backgroundBrandHover: { light: "primaryDarkGray", dark: "primaryLightGray" },
|
|
195
|
+
backgroundBrandStrong: { light: "primaryDarkGray", dark: "primaryGray" },
|
|
196
|
+
backgroundBrandSubtle: { light: "primaryLightGray", dark: "neutral800" },
|
|
197
|
+
backgroundBrand: { light: "primaryBlack", dark: "primaryGray" },
|
|
198
|
+
backgroundDiscoveryHover: { light: "purple700", dark: "purple300" },
|
|
199
|
+
backgroundDiscoverySubtle: { light: "purple100", dark: "purple900" },
|
|
200
|
+
backgroundDiscovery: { light: "purple500", dark: "purple500" },
|
|
201
|
+
backgroundErrorHover: { light: "red700", dark: "red300" },
|
|
202
|
+
backgroundErrorSubtle: { light: "red100", dark: "red900" },
|
|
203
|
+
backgroundError: { light: "red500", dark: "red500" },
|
|
204
|
+
backgroundInfoHover: { light: "blue700", dark: "blue300" },
|
|
205
|
+
backgroundInfoSubtle: { light: "blue100", dark: "blue900" },
|
|
206
|
+
backgroundInfo: { light: "blue500", dark: "blue500" },
|
|
207
|
+
backgroundPrimaryActive: { light: "neutral150", dark: "neutral800" },
|
|
208
|
+
backgroundPrimaryHover: { light: "neutral100", dark: "neutral850" },
|
|
209
|
+
backgroundPrimary: { light: "neutralWhite", dark: "neutral900" },
|
|
210
|
+
backgroundSuccessHover: { light: "green700", dark: "green300" },
|
|
211
|
+
backgroundSuccessSubtle: { light: "green100", dark: "green900" },
|
|
212
|
+
backgroundSuccess: { light: "green500", dark: "green500" },
|
|
213
|
+
backgroundSurfaceActive: { light: "neutral150", dark: "neutral700" },
|
|
214
|
+
backgroundSurfaceDisabled: { light: "neutral150", dark: "neutral850" },
|
|
215
|
+
backgroundSurfaceHover: { light: "neutral100", dark: "neutral750" },
|
|
216
|
+
backgroundSurfaceSelected: { light: "neutral200", dark: "neutral650" },
|
|
217
|
+
backgroundSurface: { light: "neutralWhite", dark: "neutral800" },
|
|
218
|
+
backgroundWarningHover: { light: "yellow500", dark: "yellow200" },
|
|
219
|
+
backgroundWarningSubtle: { light: "yellow100", dark: "yellow900" },
|
|
220
|
+
backgroundWarning: { light: "yellow300", dark: "yellow300" },
|
|
221
|
+
borderDefault: { light: "neutral300", dark: "neutral650" },
|
|
222
|
+
borderDisabled: { light: "neutral250", dark: "neutral700" },
|
|
223
|
+
borderDiscovery: { light: "purple500", dark: "purple500" },
|
|
224
|
+
borderError: { light: "red500", dark: "red500" },
|
|
225
|
+
borderFocus: { light: "neutral750", dark: "neutral350" },
|
|
226
|
+
borderHover: { light: "neutral500", dark: "neutral500" },
|
|
227
|
+
borderInfo: { light: "blue500", dark: "blue500" },
|
|
228
|
+
borderStrong: { light: "neutral450", dark: "neutral550" },
|
|
229
|
+
borderSubtle: { light: "neutral200", dark: "neutral750" },
|
|
230
|
+
borderSuccess: { light: "green500", dark: "green500" },
|
|
231
|
+
borderWarning: { light: "yellow300", dark: "yellow300" },
|
|
232
|
+
foregroundBrandStrong: { light: "neutralBlack", dark: "primaryLightGray" },
|
|
233
|
+
foregroundBrand: { light: "primaryBlack", dark: "primaryGray" },
|
|
234
|
+
foregroundDisabled: { light: "neutral400", dark: "neutral600" },
|
|
235
|
+
foregroundDiscovery: { light: "purple700", dark: "purple200" },
|
|
236
|
+
foregroundError: { light: "red700", dark: "red200" },
|
|
237
|
+
foregroundInfo: { light: "blue700", dark: "blue200" },
|
|
238
|
+
foregroundInversed: { light: "neutralWhite", dark: "primaryBlack" },
|
|
239
|
+
foregroundLinkActive: { light: "blue900", dark: "blue200" },
|
|
240
|
+
foregroundLinkHover: { light: "blue800", dark: "blue300" },
|
|
241
|
+
foregroundLinkVisited: { light: "blue500", dark: "blue100" },
|
|
242
|
+
foregroundLink: { light: "blue700", dark: "blue400" },
|
|
243
|
+
foregroundOnBrand: { light: "neutralWhite", dark: "neutralBlack" },
|
|
244
|
+
foregroundOnDiscovery: { light: "neutralWhite", dark: "neutralBlack" },
|
|
245
|
+
foregroundOnError: { light: "neutralWhite", dark: "neutralBlack" },
|
|
246
|
+
foregroundOnInfo: { light: "neutralWhite", dark: "neutralBlack" },
|
|
247
|
+
foregroundOnSuccess: { light: "neutralWhite", dark: "neutralBlack" },
|
|
248
|
+
foregroundOnWarning: { light: "neutralWhite", dark: "neutralBlack" },
|
|
249
|
+
foregroundPlaceholder: { light: "neutral450", dark: "neutral500" },
|
|
250
|
+
foregroundPrimaryHover: { light: "neutralBlack", dark: "neutral100" },
|
|
251
|
+
foregroundPrimary: { light: "primaryBlack", dark: "neutralWhite" },
|
|
252
|
+
foregroundSecondary: { light: "neutral600", dark: "neutral350" },
|
|
253
|
+
foregroundSuccess: { light: "green700", dark: "green200" },
|
|
254
|
+
foregroundTertiary: { light: "neutral500", dark: "neutral450" },
|
|
255
|
+
foregroundWarning: { light: "yellow700", dark: "yellow200" },
|
|
256
|
+
surfaceElevated: { light: "neutralWhite", dark: "neutral700" },
|
|
257
|
+
surfaceInverse: { light: "neutralBlack", dark: "neutralWhite" },
|
|
258
|
+
surfacePopover: { light: "neutralWhite", dark: "neutral750" },
|
|
259
|
+
surfaceSunken: { light: "neutral150", dark: "neutral800" },
|
|
260
|
+
surfaceTooltip: { light: "neutral750", dark: "neutral300" }
|
|
261
|
+
};
|
|
262
|
+
var SEMANTIC_COLOR_ROWS = [
|
|
263
|
+
...Object.entries(SEMANTIC_PALETTE_PAIRS).map(([name, { light, dark }]) => [name, light, dark]),
|
|
264
|
+
["surfaceOverlay", "__RGBA__", "__RGBA__"]
|
|
265
|
+
];
|
|
266
|
+
var surfaceOverlayRgba = {
|
|
267
|
+
light: "rgba(0, 0, 0, 0.2)",
|
|
268
|
+
dark: "rgba(0, 0, 0, 0.6)"
|
|
269
|
+
};
|
|
270
|
+
function buildSemanticColors() {
|
|
271
|
+
const out = {};
|
|
272
|
+
for (const name of Object.keys(SEMANTIC_PALETTE_PAIRS)) {
|
|
273
|
+
const { light, dark } = SEMANTIC_PALETTE_PAIRS[name];
|
|
274
|
+
out[name] = {
|
|
275
|
+
light: paletteColorCssVar(light),
|
|
276
|
+
dark: paletteColorCssVar(dark)
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
out.surfaceOverlay = { light: surfaceOverlayRgba.light, dark: surfaceOverlayRgba.dark };
|
|
280
|
+
return out;
|
|
281
|
+
}
|
|
282
|
+
var semanticColors = buildSemanticColors();
|
|
283
|
+
|
|
284
|
+
// src/global/motion.ts
|
|
285
|
+
var motion = {
|
|
286
|
+
duration: {
|
|
287
|
+
duration0: "0ms",
|
|
288
|
+
duration150: "150ms",
|
|
289
|
+
duration180: "180ms",
|
|
290
|
+
duration200: "200ms",
|
|
291
|
+
duration240: "240ms",
|
|
292
|
+
duration260: "260ms",
|
|
293
|
+
duration280: "280ms",
|
|
294
|
+
duration320: "320ms",
|
|
295
|
+
duration380: "380ms",
|
|
296
|
+
duration800: "800ms",
|
|
297
|
+
duration1500: "1500ms"
|
|
298
|
+
},
|
|
299
|
+
easing: {
|
|
300
|
+
/** Material-style standard decelerate */
|
|
301
|
+
easingStandard: "cubic-bezier(0.2, 0, 0, 1)",
|
|
302
|
+
/** Emphasized spring-ish settle */
|
|
303
|
+
easingEmphasized: "cubic-bezier(0.16, 1, 0.3, 1)",
|
|
304
|
+
/** Large panel / drawer slide */
|
|
305
|
+
easingPanel: "cubic-bezier(0.32, 0.72, 0, 1)",
|
|
306
|
+
/** Content cross-fade / height morph */
|
|
307
|
+
easingContent: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
308
|
+
easingLinear: "linear",
|
|
309
|
+
easingEaseOut: "ease-out",
|
|
310
|
+
easingEaseInOut: "ease-in-out"
|
|
311
|
+
},
|
|
312
|
+
scale: {
|
|
313
|
+
scale96: "0.96",
|
|
314
|
+
scale98: "0.98",
|
|
315
|
+
scale115: "1.15"
|
|
316
|
+
},
|
|
317
|
+
distance: {
|
|
318
|
+
/** Small float offset (enter / pressed nudge) — 4px */
|
|
319
|
+
distance4: "4px"
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
// src/semantic/interaction.ts
|
|
324
|
+
var semanticInteraction = {
|
|
325
|
+
duration: {
|
|
326
|
+
instant: motion.duration.duration0,
|
|
327
|
+
fast: motion.duration.duration150,
|
|
328
|
+
normal: motion.duration.duration180,
|
|
329
|
+
medium: motion.duration.duration200,
|
|
330
|
+
slow: motion.duration.duration240,
|
|
331
|
+
overlay: motion.duration.duration280,
|
|
332
|
+
panel: motion.duration.duration320,
|
|
333
|
+
accordionPanel: motion.duration.duration380,
|
|
334
|
+
accordionContent: motion.duration.duration260,
|
|
335
|
+
toastEnter: motion.duration.duration280,
|
|
336
|
+
toastLeave: motion.duration.duration200,
|
|
337
|
+
skeleton: motion.duration.duration1500,
|
|
338
|
+
spinner: motion.duration.duration800
|
|
339
|
+
},
|
|
340
|
+
easing: {
|
|
341
|
+
standard: motion.easing.easingStandard,
|
|
342
|
+
emphasized: motion.easing.easingEmphasized,
|
|
343
|
+
panel: motion.easing.easingPanel,
|
|
344
|
+
content: motion.easing.easingContent,
|
|
345
|
+
linear: motion.easing.easingLinear,
|
|
346
|
+
easeOut: motion.easing.easingEaseOut,
|
|
347
|
+
easeInOut: motion.easing.easingEaseInOut
|
|
348
|
+
},
|
|
349
|
+
scale: {
|
|
350
|
+
/** Dialog / modal enter under-scale */
|
|
351
|
+
enter: motion.scale.scale96,
|
|
352
|
+
/** Pressed control squash (Button, Slider thumb active, …) */
|
|
353
|
+
press: motion.scale.scale98,
|
|
354
|
+
/** Hover grow (Slider thumb, …) */
|
|
355
|
+
hoverGrow: motion.scale.scale115,
|
|
356
|
+
/** Component aliases — same Foundation steps as role keys above */
|
|
357
|
+
dialogEnter: motion.scale.scale96,
|
|
358
|
+
buttonActive: motion.scale.scale98,
|
|
359
|
+
sliderThumbHover: motion.scale.scale115
|
|
360
|
+
},
|
|
361
|
+
distance: {
|
|
362
|
+
float: motion.distance.distance4
|
|
363
|
+
}
|
|
364
|
+
};
|
|
365
|
+
|
|
366
|
+
// src/global/spacings.ts
|
|
367
|
+
var spacings = {
|
|
368
|
+
sizeNone: "0",
|
|
369
|
+
sizeXXXSmall: "2px",
|
|
370
|
+
sizeXXSmall: "4px",
|
|
371
|
+
sizeXSmall: "6px",
|
|
372
|
+
sizeSmall: "8px",
|
|
373
|
+
sizeMedium: "10px",
|
|
374
|
+
sizeLarge: "16px",
|
|
375
|
+
sizeXLarge: "20px",
|
|
376
|
+
sizeXXLarge: "24px",
|
|
377
|
+
sizeXXXLarge: "32px"
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
// src/global/strokeWidths.ts
|
|
381
|
+
var strokeWidths = {
|
|
382
|
+
strokeWidthNone: "0",
|
|
383
|
+
strokeWidthHairline: "0.5px",
|
|
384
|
+
strokeWidthThin: "1px",
|
|
385
|
+
strokeWidthThick: "2px",
|
|
386
|
+
strokeWidthThicker: "4px",
|
|
387
|
+
strokeWidthThickest: "6px"
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
// src/semantic/focus.ts
|
|
391
|
+
var SEMANTIC_FOCUS_PAIRS = {
|
|
392
|
+
ringColor: { light: "neutral750", dark: "neutral350" }
|
|
393
|
+
};
|
|
394
|
+
var semanticFocus = {
|
|
395
|
+
ring: {
|
|
396
|
+
color: {
|
|
397
|
+
light: paletteColorCssVar(SEMANTIC_FOCUS_PAIRS.ringColor.light),
|
|
398
|
+
dark: paletteColorCssVar(SEMANTIC_FOCUS_PAIRS.ringColor.dark)
|
|
399
|
+
},
|
|
400
|
+
width: strokeWidths.strokeWidthThick,
|
|
401
|
+
offset: spacings.sizeXXXSmall,
|
|
402
|
+
style: "solid"
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
|
|
406
|
+
// src/global/shadows.ts
|
|
407
|
+
var SHADOW_BASE_LIGHT = colors.primaryBlack;
|
|
408
|
+
var SHADOW_BASE_DARK = colors.neutralBlack;
|
|
409
|
+
var shadowColors = {
|
|
410
|
+
shadowColorKeyLighter: hexToRgba(SHADOW_BASE_LIGHT, 0.02),
|
|
411
|
+
shadowColorKeyLight: hexToRgba(SHADOW_BASE_LIGHT, 0.05),
|
|
412
|
+
shadowColorKey: hexToRgba(SHADOW_BASE_LIGHT, 0.08),
|
|
413
|
+
shadowColorKeyDark: hexToRgba(SHADOW_BASE_DARK, 0.2),
|
|
414
|
+
shadowColorKeyDarker: hexToRgba(SHADOW_BASE_DARK, 0.3),
|
|
415
|
+
shadowColorAmbientLighter: hexToRgba(SHADOW_BASE_LIGHT, 0.02),
|
|
416
|
+
shadowColorAmbientLight: hexToRgba(SHADOW_BASE_LIGHT, 0.04),
|
|
417
|
+
shadowColorAmbient: hexToRgba(SHADOW_BASE_LIGHT, 0.06),
|
|
418
|
+
shadowColorAmbientDark: hexToRgba(SHADOW_BASE_DARK, 0.15),
|
|
419
|
+
shadowColorAmbientDarker: hexToRgba(SHADOW_BASE_DARK, 0.25)
|
|
420
|
+
};
|
|
421
|
+
var SHADOW_DIMS = {
|
|
422
|
+
shadow2: { key: "0 1px 2px 0", ambient: "0 2px 4px 0" },
|
|
423
|
+
shadow4: { key: "0 2px 2px 0", ambient: "0 4px 8px 0" },
|
|
424
|
+
shadow8: { key: "0 4px 4px 0", ambient: "0 8px 16px 0" },
|
|
425
|
+
shadow16: { key: "0 8px 8px 0", ambient: "0 16px 32px 0" },
|
|
426
|
+
shadow24: { key: "0 12px 12px 0", ambient: "0 24px 48px 0" },
|
|
427
|
+
shadow32: { key: "0 16px 16px 0", ambient: "0 32px 64px 0" },
|
|
428
|
+
shadow64: { key: "0 24px 24px 0", ambient: "0 48px 96px 0" }
|
|
429
|
+
};
|
|
430
|
+
var SHADOW4_DARK_AMBIENT = "0 6px 10px 0";
|
|
431
|
+
function shadowLevel(keyDim, ambientDim, keyColor, ambientColor) {
|
|
432
|
+
return {
|
|
433
|
+
key: `${keyDim} ${keyColor}`,
|
|
434
|
+
ambient: `${ambientDim} ${ambientColor}`
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
function toBoxShadow(level) {
|
|
438
|
+
return `${level.key}, ${level.ambient}`;
|
|
439
|
+
}
|
|
440
|
+
var shadows = {
|
|
441
|
+
shadow2Light: shadowLevel(
|
|
442
|
+
SHADOW_DIMS.shadow2.key,
|
|
443
|
+
SHADOW_DIMS.shadow2.ambient,
|
|
444
|
+
shadowColors.shadowColorKeyLight,
|
|
445
|
+
shadowColors.shadowColorAmbientLight
|
|
446
|
+
),
|
|
447
|
+
shadow2Dark: shadowLevel(
|
|
448
|
+
SHADOW_DIMS.shadow2.key,
|
|
449
|
+
SHADOW_DIMS.shadow2.ambient,
|
|
450
|
+
shadowColors.shadowColorKeyDark,
|
|
451
|
+
shadowColors.shadowColorAmbientDark
|
|
452
|
+
),
|
|
453
|
+
shadow4Light: shadowLevel(
|
|
454
|
+
SHADOW_DIMS.shadow4.key,
|
|
455
|
+
SHADOW_DIMS.shadow4.ambient,
|
|
456
|
+
shadowColors.shadowColorKeyLight,
|
|
457
|
+
shadowColors.shadowColorAmbientLight
|
|
458
|
+
),
|
|
459
|
+
shadow4Dark: shadowLevel(
|
|
460
|
+
SHADOW_DIMS.shadow4.key,
|
|
461
|
+
SHADOW4_DARK_AMBIENT,
|
|
462
|
+
shadowColors.shadowColorKeyDark,
|
|
463
|
+
shadowColors.shadowColorAmbientDark
|
|
464
|
+
),
|
|
465
|
+
shadow8Light: shadowLevel(
|
|
466
|
+
SHADOW_DIMS.shadow8.key,
|
|
467
|
+
SHADOW_DIMS.shadow8.ambient,
|
|
468
|
+
shadowColors.shadowColorKeyLight,
|
|
469
|
+
shadowColors.shadowColorAmbientLight
|
|
470
|
+
),
|
|
471
|
+
shadow8Dark: shadowLevel(
|
|
472
|
+
SHADOW_DIMS.shadow8.key,
|
|
473
|
+
SHADOW_DIMS.shadow8.ambient,
|
|
474
|
+
shadowColors.shadowColorKeyDark,
|
|
475
|
+
shadowColors.shadowColorAmbientDark
|
|
476
|
+
),
|
|
477
|
+
shadow16Light: shadowLevel(
|
|
478
|
+
SHADOW_DIMS.shadow16.key,
|
|
479
|
+
SHADOW_DIMS.shadow16.ambient,
|
|
480
|
+
shadowColors.shadowColorKeyLight,
|
|
481
|
+
shadowColors.shadowColorAmbientLight
|
|
482
|
+
),
|
|
483
|
+
shadow16Dark: shadowLevel(
|
|
484
|
+
SHADOW_DIMS.shadow16.key,
|
|
485
|
+
SHADOW_DIMS.shadow16.ambient,
|
|
486
|
+
shadowColors.shadowColorKeyDark,
|
|
487
|
+
shadowColors.shadowColorAmbientDark
|
|
488
|
+
),
|
|
489
|
+
shadow24Light: shadowLevel(
|
|
490
|
+
SHADOW_DIMS.shadow24.key,
|
|
491
|
+
SHADOW_DIMS.shadow24.ambient,
|
|
492
|
+
shadowColors.shadowColorKeyLight,
|
|
493
|
+
shadowColors.shadowColorAmbientLight
|
|
494
|
+
),
|
|
495
|
+
shadow24Dark: shadowLevel(
|
|
496
|
+
SHADOW_DIMS.shadow24.key,
|
|
497
|
+
SHADOW_DIMS.shadow24.ambient,
|
|
498
|
+
shadowColors.shadowColorKeyDark,
|
|
499
|
+
shadowColors.shadowColorAmbientDark
|
|
500
|
+
),
|
|
501
|
+
shadow32Light: shadowLevel(
|
|
502
|
+
SHADOW_DIMS.shadow32.key,
|
|
503
|
+
SHADOW_DIMS.shadow32.ambient,
|
|
504
|
+
shadowColors.shadowColorKeyLight,
|
|
505
|
+
shadowColors.shadowColorAmbientLight
|
|
506
|
+
),
|
|
507
|
+
shadow32Dark: shadowLevel(
|
|
508
|
+
SHADOW_DIMS.shadow32.key,
|
|
509
|
+
SHADOW_DIMS.shadow32.ambient,
|
|
510
|
+
shadowColors.shadowColorKeyDark,
|
|
511
|
+
shadowColors.shadowColorAmbientDark
|
|
512
|
+
),
|
|
513
|
+
shadow64Light: shadowLevel(
|
|
514
|
+
SHADOW_DIMS.shadow64.key,
|
|
515
|
+
SHADOW_DIMS.shadow64.ambient,
|
|
516
|
+
shadowColors.shadowColorKeyLight,
|
|
517
|
+
shadowColors.shadowColorAmbientLight
|
|
518
|
+
),
|
|
519
|
+
shadow64Dark: shadowLevel(
|
|
520
|
+
SHADOW_DIMS.shadow64.key,
|
|
521
|
+
SHADOW_DIMS.shadow64.ambient,
|
|
522
|
+
shadowColors.shadowColorKeyDark,
|
|
523
|
+
shadowColors.shadowColorAmbientDark
|
|
524
|
+
)
|
|
525
|
+
};
|
|
526
|
+
var shadow2Lighter = shadowLevel(
|
|
527
|
+
SHADOW_DIMS.shadow2.key,
|
|
528
|
+
SHADOW_DIMS.shadow2.ambient,
|
|
529
|
+
shadowColors.shadowColorKeyLighter,
|
|
530
|
+
shadowColors.shadowColorAmbientLighter
|
|
531
|
+
);
|
|
532
|
+
|
|
533
|
+
// src/semantic/shadows.ts
|
|
534
|
+
var semanticShadows = {
|
|
535
|
+
shadow2: { light: shadows.shadow2Light, dark: shadows.shadow2Dark },
|
|
536
|
+
shadow4: { light: shadows.shadow4Light, dark: shadows.shadow4Dark },
|
|
537
|
+
shadow8: { light: shadows.shadow8Light, dark: shadows.shadow8Dark },
|
|
538
|
+
shadow16: { light: shadows.shadow16Light, dark: shadows.shadow16Dark },
|
|
539
|
+
shadow24: { light: shadows.shadow24Light, dark: shadows.shadow24Dark },
|
|
540
|
+
shadow32: { light: shadows.shadow32Light, dark: shadows.shadow32Dark },
|
|
541
|
+
shadow64: { light: shadows.shadow64Light, dark: shadows.shadow64Dark }
|
|
542
|
+
};
|
|
543
|
+
|
|
544
|
+
// src/semantic/text.ts
|
|
545
|
+
var SEMANTIC_TEXT = {
|
|
546
|
+
/** Display / marketing hero */
|
|
547
|
+
displayLg: "heading1",
|
|
548
|
+
displayMd: "heading2",
|
|
549
|
+
displaySm: "heading3",
|
|
550
|
+
/** Page & section headings */
|
|
551
|
+
headingLg: "heading2",
|
|
552
|
+
headingMd: "heading3",
|
|
553
|
+
headingSm: "heading4",
|
|
554
|
+
/** Component titles (Card, Dialog header) */
|
|
555
|
+
titleLg: "title1",
|
|
556
|
+
titleMd: "title2",
|
|
557
|
+
titleSm: "title3",
|
|
558
|
+
/** Emphasized subtitles */
|
|
559
|
+
subtitleLg: "subTitle1",
|
|
560
|
+
subtitleMd: "subTitle2",
|
|
561
|
+
/** Primary reading text */
|
|
562
|
+
bodyLg: "body1",
|
|
563
|
+
bodyMd: "body2",
|
|
564
|
+
bodySm: "body3",
|
|
565
|
+
bodyXs: "body4",
|
|
566
|
+
/** Form labels, menu row labels */
|
|
567
|
+
labelLg: "body1",
|
|
568
|
+
labelMd: "body2",
|
|
569
|
+
labelSm: "caption1",
|
|
570
|
+
/** Metadata, helpers, shortcuts */
|
|
571
|
+
captionLg: "caption1",
|
|
572
|
+
captionMd: "caption2",
|
|
573
|
+
captionSm: "caption3"
|
|
574
|
+
};
|
|
575
|
+
|
|
576
|
+
// src/global/fonts.ts
|
|
577
|
+
var fontFamilies = {
|
|
578
|
+
fontFamily: "'Inter', sans-serif"
|
|
579
|
+
};
|
|
580
|
+
var fontSizes = {
|
|
581
|
+
fontSize100: "10px",
|
|
582
|
+
fontSize200: "12px",
|
|
583
|
+
fontSize300: "14px",
|
|
584
|
+
fontSize400: "16px",
|
|
585
|
+
fontSize500: "20px",
|
|
586
|
+
fontSize600: "24px",
|
|
587
|
+
fontSize700: "28px",
|
|
588
|
+
fontSize800: "32px",
|
|
589
|
+
fontSize900: "40px",
|
|
590
|
+
fontSize1000: "64px"
|
|
591
|
+
};
|
|
592
|
+
var fontWeights = {
|
|
593
|
+
fontWeightRegular: "400",
|
|
594
|
+
fontWeightMedium: "500",
|
|
595
|
+
fontWeightSemibold: "600",
|
|
596
|
+
fontWeightBold: "700",
|
|
597
|
+
fontWeightHeavy: "800"
|
|
598
|
+
};
|
|
599
|
+
var lineHeights = {
|
|
600
|
+
lineHeight100: "14px",
|
|
601
|
+
lineHeight200: "16px",
|
|
602
|
+
lineHeight300: "20px",
|
|
603
|
+
lineHeight400: "24px",
|
|
604
|
+
lineHeight500: "28px",
|
|
605
|
+
lineHeight600: "32px",
|
|
606
|
+
lineHeight700: "36px",
|
|
607
|
+
lineHeight800: "40px",
|
|
608
|
+
lineHeight900: "60px",
|
|
609
|
+
lineHeight1000: "86px"
|
|
610
|
+
};
|
|
611
|
+
|
|
612
|
+
// src/global/sizes.ts
|
|
613
|
+
var iconSizes = {
|
|
614
|
+
xxsmall: 12,
|
|
615
|
+
xsmall: 16,
|
|
616
|
+
small: 20,
|
|
617
|
+
medium: 24,
|
|
618
|
+
large: 28,
|
|
619
|
+
xlarge: 32,
|
|
620
|
+
xxlarge: 48
|
|
621
|
+
};
|
|
622
|
+
|
|
623
|
+
// src/global/foundationSizes.ts
|
|
624
|
+
var foundationSizes = {
|
|
625
|
+
foundationSize10: "1px",
|
|
626
|
+
foundationSize20: "2px",
|
|
627
|
+
foundationSize30: "3px",
|
|
628
|
+
foundationSize40: "4px",
|
|
629
|
+
foundationSize60: "6px",
|
|
630
|
+
foundationSize80: "8px",
|
|
631
|
+
foundationSize100: "10px",
|
|
632
|
+
foundationSize120: "12px",
|
|
633
|
+
/** Divider icon inner circle — Web Kit ≈ 40/3 */
|
|
634
|
+
foundationSize133: "13.33px",
|
|
635
|
+
foundationSize140: "14px",
|
|
636
|
+
foundationSize160: "16px",
|
|
637
|
+
foundationSize200: "20px",
|
|
638
|
+
foundationSize240: "24px",
|
|
639
|
+
foundationSize280: "28px",
|
|
640
|
+
foundationSize300: "30px",
|
|
641
|
+
foundationSize320: "32px",
|
|
642
|
+
foundationSize340: "34px",
|
|
643
|
+
foundationSize360: "36px",
|
|
644
|
+
foundationSize400: "40px",
|
|
645
|
+
foundationSize440: "44px",
|
|
646
|
+
foundationSize480: "48px",
|
|
647
|
+
foundationSize520: "52px",
|
|
648
|
+
foundationSize540: "54px",
|
|
649
|
+
foundationSize600: "60px",
|
|
650
|
+
foundationSize800: "80px",
|
|
651
|
+
foundationSize2000: "200px",
|
|
652
|
+
foundationSize2440: "244px",
|
|
653
|
+
foundationSize2560: "256px",
|
|
654
|
+
foundationSize3000: "300px",
|
|
655
|
+
foundationSize3200: "320px",
|
|
656
|
+
foundationSize3250: "325px",
|
|
657
|
+
foundationSize4500: "450px",
|
|
658
|
+
foundationSize5750: "575px",
|
|
659
|
+
foundationSize6000: "600px",
|
|
660
|
+
foundationSize8500: "850px"
|
|
661
|
+
};
|
|
662
|
+
|
|
663
|
+
// src/semantic/componentSizes.ts
|
|
664
|
+
var F = foundationSizes;
|
|
665
|
+
var componentSizeFoundationKeys = {
|
|
666
|
+
avatarStatusXxxlarge: "foundationSize140",
|
|
667
|
+
buttonMinHeightSm: "foundationSize280",
|
|
668
|
+
buttonMinHeightMd: "foundationSize360",
|
|
669
|
+
buttonMinHeightLg: "foundationSize480",
|
|
670
|
+
chipMinHeightSm: "foundationSize200",
|
|
671
|
+
chipMinHeightMd: "foundationSize240",
|
|
672
|
+
chipMinHeightLg: "foundationSize320",
|
|
673
|
+
controlHeightSm: "foundationSize360",
|
|
674
|
+
controlHeightMd: "foundationSize440",
|
|
675
|
+
controlHeightLg: "foundationSize520",
|
|
676
|
+
controlTouchMin: "foundationSize440",
|
|
677
|
+
controlCheckbox: "foundationSize200",
|
|
678
|
+
controlCheckboxRadio: "foundationSize200",
|
|
679
|
+
controlTextareaMin: "foundationSize800",
|
|
680
|
+
popoverPanelWidth: "foundationSize3250",
|
|
681
|
+
popoverBeakInsetFromStartEdge: "foundationSize340",
|
|
682
|
+
popoverBeakInsetFromEndEdge: "foundationSize300",
|
|
683
|
+
menuPanelWidth: "foundationSize2440",
|
|
684
|
+
dropdownMenuWidth: "foundationSize2440",
|
|
685
|
+
sidebarWidth: "foundationSize2560",
|
|
686
|
+
toastMinWidth: "foundationSize3250",
|
|
687
|
+
toastMaxWidth: "foundationSize3250",
|
|
688
|
+
dialogMaxWidth: "foundationSize6000",
|
|
689
|
+
dialogWidthSm: "foundationSize3000",
|
|
690
|
+
drawerWidthSm: "foundationSize3200",
|
|
691
|
+
drawerWidthMd: "foundationSize5750",
|
|
692
|
+
drawerWidthLg: "foundationSize8500",
|
|
693
|
+
calendarMinWidth: "foundationSize2560",
|
|
694
|
+
calendarDaySize: "foundationSize320",
|
|
695
|
+
tooltipMaxWidth: "foundationSize2000",
|
|
696
|
+
spinStepperWidth: "foundationSize320",
|
|
697
|
+
spinFieldPaddingInlineStart: "foundationSize120",
|
|
698
|
+
switchWidth: "foundationSize440",
|
|
699
|
+
switchHeight: "foundationSize240",
|
|
700
|
+
switchThumb: "foundationSize200",
|
|
701
|
+
switchPadding: "foundationSize20",
|
|
702
|
+
progressTrackHeightSm: "foundationSize20",
|
|
703
|
+
progressTrackHeightLg: "foundationSize40",
|
|
704
|
+
sliderTrackHeightSm: "foundationSize20",
|
|
705
|
+
sliderTrackHeightMd: "foundationSize40",
|
|
706
|
+
sliderInteractionHeight: "foundationSize280",
|
|
707
|
+
paginationButtonMinWidth: "foundationSize400",
|
|
708
|
+
skeletonDefaultHeight: "foundationSize200",
|
|
709
|
+
dividerShortEnd: "foundationSize80",
|
|
710
|
+
dividerIconSlot: "foundationSize200",
|
|
711
|
+
dividerIconCircleDiameter: "foundationSize133",
|
|
712
|
+
dividerIconCircleInset: "foundationSize30",
|
|
713
|
+
accessibleClip: "foundationSize10",
|
|
714
|
+
spinnerSizeXSmall: "foundationSize160",
|
|
715
|
+
spinnerSizeSmall: "foundationSize200",
|
|
716
|
+
spinnerSizeMedium: "foundationSize240",
|
|
717
|
+
spinnerSizeLarge: "foundationSize280",
|
|
718
|
+
spinnerSizeXLarge: "foundationSize320",
|
|
719
|
+
spinnerSizeXXLarge: "foundationSize480",
|
|
720
|
+
spinnerRingWidthXSmall: "foundationSize20",
|
|
721
|
+
spinnerRingWidthSmall: "foundationSize20",
|
|
722
|
+
spinnerRingWidthMedium: "foundationSize20",
|
|
723
|
+
spinnerRingWidthLarge: "foundationSize30",
|
|
724
|
+
spinnerRingWidthXLarge: "foundationSize30",
|
|
725
|
+
spinnerRingWidthXXLarge: "foundationSize40"
|
|
726
|
+
};
|
|
727
|
+
function fromFoundation(key) {
|
|
728
|
+
return F[componentSizeFoundationKeys[key]];
|
|
729
|
+
}
|
|
730
|
+
var componentSizes = {
|
|
731
|
+
avatarStatusXxxlarge: fromFoundation("avatarStatusXxxlarge"),
|
|
732
|
+
buttonMinHeightSm: fromFoundation("buttonMinHeightSm"),
|
|
733
|
+
buttonMinHeightMd: fromFoundation("buttonMinHeightMd"),
|
|
734
|
+
buttonMinHeightLg: fromFoundation("buttonMinHeightLg"),
|
|
735
|
+
chipMinHeightSm: fromFoundation("chipMinHeightSm"),
|
|
736
|
+
chipMinHeightMd: fromFoundation("chipMinHeightMd"),
|
|
737
|
+
chipMinHeightLg: fromFoundation("chipMinHeightLg"),
|
|
738
|
+
controlHeightSm: fromFoundation("controlHeightSm"),
|
|
739
|
+
controlHeightMd: fromFoundation("controlHeightMd"),
|
|
740
|
+
controlHeightLg: fromFoundation("controlHeightLg"),
|
|
741
|
+
controlTouchMin: fromFoundation("controlTouchMin"),
|
|
742
|
+
controlCheckbox: fromFoundation("controlCheckbox"),
|
|
743
|
+
controlCheckboxRadio: fromFoundation("controlCheckboxRadio"),
|
|
744
|
+
controlTextareaMin: fromFoundation("controlTextareaMin"),
|
|
745
|
+
popoverPanelWidth: fromFoundation("popoverPanelWidth"),
|
|
746
|
+
popoverBeakInsetFromStartEdge: fromFoundation("popoverBeakInsetFromStartEdge"),
|
|
747
|
+
popoverBeakInsetFromEndEdge: fromFoundation("popoverBeakInsetFromEndEdge"),
|
|
748
|
+
menuPanelWidth: fromFoundation("menuPanelWidth"),
|
|
749
|
+
/** @deprecated Same as `menuPanelWidth` */
|
|
750
|
+
dropdownMenuWidth: fromFoundation("dropdownMenuWidth"),
|
|
751
|
+
sidebarWidth: fromFoundation("sidebarWidth"),
|
|
752
|
+
toastMinWidth: fromFoundation("toastMinWidth"),
|
|
753
|
+
toastMaxWidth: fromFoundation("toastMaxWidth"),
|
|
754
|
+
dialogMaxWidth: fromFoundation("dialogMaxWidth"),
|
|
755
|
+
/** Viewport-relative — not a Foundation px step */
|
|
756
|
+
dialogMaxHeightViewport: "90vh",
|
|
757
|
+
dialogWidthSm: fromFoundation("dialogWidthSm"),
|
|
758
|
+
drawerWidthSm: fromFoundation("drawerWidthSm"),
|
|
759
|
+
drawerWidthMd: fromFoundation("drawerWidthMd"),
|
|
760
|
+
drawerWidthLg: fromFoundation("drawerWidthLg"),
|
|
761
|
+
calendarMinWidth: fromFoundation("calendarMinWidth"),
|
|
762
|
+
calendarDaySize: fromFoundation("calendarDaySize"),
|
|
763
|
+
tooltipMaxWidth: fromFoundation("tooltipMaxWidth"),
|
|
764
|
+
spinStepperWidth: fromFoundation("spinStepperWidth"),
|
|
765
|
+
spinFieldPaddingInlineStart: fromFoundation("spinFieldPaddingInlineStart"),
|
|
766
|
+
switchWidth: fromFoundation("switchWidth"),
|
|
767
|
+
switchHeight: fromFoundation("switchHeight"),
|
|
768
|
+
switchThumb: fromFoundation("switchThumb"),
|
|
769
|
+
switchPadding: fromFoundation("switchPadding"),
|
|
770
|
+
progressTrackHeightSm: fromFoundation("progressTrackHeightSm"),
|
|
771
|
+
progressTrackHeightLg: fromFoundation("progressTrackHeightLg"),
|
|
772
|
+
sliderTrackHeightSm: fromFoundation("sliderTrackHeightSm"),
|
|
773
|
+
sliderTrackHeightMd: fromFoundation("sliderTrackHeightMd"),
|
|
774
|
+
sliderInteractionHeight: fromFoundation("sliderInteractionHeight"),
|
|
775
|
+
paginationButtonMinWidth: fromFoundation("paginationButtonMinWidth"),
|
|
776
|
+
skeletonDefaultHeight: fromFoundation("skeletonDefaultHeight"),
|
|
777
|
+
dividerShortEnd: fromFoundation("dividerShortEnd"),
|
|
778
|
+
dividerIconSlot: fromFoundation("dividerIconSlot"),
|
|
779
|
+
dividerIconCircleDiameter: fromFoundation("dividerIconCircleDiameter"),
|
|
780
|
+
dividerIconCircleInset: fromFoundation("dividerIconCircleInset"),
|
|
781
|
+
accessibleClip: fromFoundation("accessibleClip"),
|
|
782
|
+
spinnerSizeXSmall: fromFoundation("spinnerSizeXSmall"),
|
|
783
|
+
spinnerSizeSmall: fromFoundation("spinnerSizeSmall"),
|
|
784
|
+
spinnerSizeMedium: fromFoundation("spinnerSizeMedium"),
|
|
785
|
+
spinnerSizeLarge: fromFoundation("spinnerSizeLarge"),
|
|
786
|
+
spinnerSizeXLarge: fromFoundation("spinnerSizeXLarge"),
|
|
787
|
+
spinnerSizeXXLarge: fromFoundation("spinnerSizeXXLarge"),
|
|
788
|
+
spinnerRingWidthXSmall: fromFoundation("spinnerRingWidthXSmall"),
|
|
789
|
+
spinnerRingWidthSmall: fromFoundation("spinnerRingWidthSmall"),
|
|
790
|
+
spinnerRingWidthMedium: fromFoundation("spinnerRingWidthMedium"),
|
|
791
|
+
spinnerRingWidthLarge: fromFoundation("spinnerRingWidthLarge"),
|
|
792
|
+
spinnerRingWidthXLarge: fromFoundation("spinnerRingWidthXLarge"),
|
|
793
|
+
spinnerRingWidthXXLarge: fromFoundation("spinnerRingWidthXXLarge")
|
|
794
|
+
};
|
|
795
|
+
|
|
796
|
+
// src/global/opacities.ts
|
|
797
|
+
var opacities = {
|
|
798
|
+
opacityFull: "1",
|
|
799
|
+
opacityDisabled: "0.5",
|
|
800
|
+
/** Ghost button hover wash (dark) — same alpha as `overlays.ghostButtonHoverDark` */
|
|
801
|
+
opacityGhostHover: "0.08"
|
|
802
|
+
};
|
|
803
|
+
|
|
804
|
+
// src/global/overlays.ts
|
|
805
|
+
var overlays = {
|
|
806
|
+
/** Light-mode scrim snapshot — keep in sync with `surfaceOverlayRgba.light` */
|
|
807
|
+
backdrop: "rgba(0, 0, 0, 0.2)",
|
|
808
|
+
/** Dark Ghost button hover */
|
|
809
|
+
ghostButtonHoverDark: `rgba(255, 255, 255, ${opacities.opacityGhostHover})`
|
|
810
|
+
};
|
|
811
|
+
|
|
812
|
+
// src/global/borderRadii.ts
|
|
813
|
+
var borderRadii = {
|
|
814
|
+
roundedNone: "0",
|
|
815
|
+
roundedXSmall: "2px",
|
|
816
|
+
roundedSmall: "4px",
|
|
817
|
+
roundedMedium: "6px",
|
|
818
|
+
roundedLarge: "8px",
|
|
819
|
+
roundedXLarge: "12px",
|
|
820
|
+
roundedXXLarge: "16px",
|
|
821
|
+
roundedCircle: "9999px"
|
|
822
|
+
};
|
|
823
|
+
|
|
824
|
+
// src/global/typographys.ts
|
|
825
|
+
var { fontFamily } = fontFamilies;
|
|
826
|
+
var { fontWeightRegular, fontWeightMedium, fontWeightSemibold, fontWeightBold, fontWeightHeavy } = fontWeights;
|
|
827
|
+
var typographys = {
|
|
828
|
+
heading1: {
|
|
829
|
+
fontFamily,
|
|
830
|
+
fontSize: fontSizes.fontSize1000,
|
|
831
|
+
fontWeight: fontWeightHeavy,
|
|
832
|
+
lineHeight: lineHeights.lineHeight1000
|
|
833
|
+
},
|
|
834
|
+
heading2: {
|
|
835
|
+
fontFamily,
|
|
836
|
+
fontSize: fontSizes.fontSize900,
|
|
837
|
+
fontWeight: fontWeightBold,
|
|
838
|
+
lineHeight: lineHeights.lineHeight900
|
|
839
|
+
},
|
|
840
|
+
heading3: {
|
|
841
|
+
fontFamily,
|
|
842
|
+
fontSize: fontSizes.fontSize800,
|
|
843
|
+
fontWeight: fontWeightBold,
|
|
844
|
+
lineHeight: lineHeights.lineHeight800
|
|
845
|
+
},
|
|
846
|
+
heading4: {
|
|
847
|
+
fontFamily,
|
|
848
|
+
fontSize: fontSizes.fontSize700,
|
|
849
|
+
fontWeight: fontWeightSemibold,
|
|
850
|
+
lineHeight: lineHeights.lineHeight700
|
|
851
|
+
},
|
|
852
|
+
title1: {
|
|
853
|
+
fontFamily,
|
|
854
|
+
fontSize: fontSizes.fontSize800,
|
|
855
|
+
fontWeight: fontWeightSemibold,
|
|
856
|
+
lineHeight: lineHeights.lineHeight800
|
|
857
|
+
},
|
|
858
|
+
title2: {
|
|
859
|
+
fontFamily,
|
|
860
|
+
fontSize: fontSizes.fontSize700,
|
|
861
|
+
fontWeight: fontWeightSemibold,
|
|
862
|
+
lineHeight: lineHeights.lineHeight700
|
|
863
|
+
},
|
|
864
|
+
title3: {
|
|
865
|
+
fontFamily,
|
|
866
|
+
fontSize: fontSizes.fontSize600,
|
|
867
|
+
fontWeight: fontWeightSemibold,
|
|
868
|
+
lineHeight: lineHeights.lineHeight600
|
|
869
|
+
},
|
|
870
|
+
subTitle1: {
|
|
871
|
+
fontFamily,
|
|
872
|
+
fontSize: fontSizes.fontSize500,
|
|
873
|
+
fontWeight: fontWeightSemibold,
|
|
874
|
+
lineHeight: lineHeights.lineHeight500
|
|
875
|
+
},
|
|
876
|
+
subTitle2: {
|
|
877
|
+
fontFamily,
|
|
878
|
+
fontSize: fontSizes.fontSize400,
|
|
879
|
+
fontWeight: fontWeightSemibold,
|
|
880
|
+
lineHeight: lineHeights.lineHeight400
|
|
881
|
+
},
|
|
882
|
+
body1: {
|
|
883
|
+
fontFamily,
|
|
884
|
+
fontSize: fontSizes.fontSize400,
|
|
885
|
+
fontWeight: fontWeightMedium,
|
|
886
|
+
lineHeight: lineHeights.lineHeight400
|
|
887
|
+
},
|
|
888
|
+
body2: {
|
|
889
|
+
fontFamily,
|
|
890
|
+
fontSize: fontSizes.fontSize300,
|
|
891
|
+
fontWeight: fontWeightMedium,
|
|
892
|
+
lineHeight: lineHeights.lineHeight300
|
|
893
|
+
},
|
|
894
|
+
body3: {
|
|
895
|
+
fontFamily,
|
|
896
|
+
fontSize: fontSizes.fontSize300,
|
|
897
|
+
fontWeight: fontWeightRegular,
|
|
898
|
+
lineHeight: lineHeights.lineHeight300
|
|
899
|
+
},
|
|
900
|
+
body4: {
|
|
901
|
+
fontFamily,
|
|
902
|
+
fontSize: fontSizes.fontSize200,
|
|
903
|
+
fontWeight: fontWeightRegular,
|
|
904
|
+
lineHeight: lineHeights.lineHeight200
|
|
905
|
+
},
|
|
906
|
+
caption1: {
|
|
907
|
+
fontFamily,
|
|
908
|
+
fontSize: fontSizes.fontSize200,
|
|
909
|
+
fontWeight: fontWeightMedium,
|
|
910
|
+
lineHeight: lineHeights.lineHeight200
|
|
911
|
+
},
|
|
912
|
+
caption2: {
|
|
913
|
+
fontFamily,
|
|
914
|
+
fontSize: fontSizes.fontSize200,
|
|
915
|
+
fontWeight: fontWeightRegular,
|
|
916
|
+
lineHeight: lineHeights.lineHeight200
|
|
917
|
+
},
|
|
918
|
+
caption3: {
|
|
919
|
+
fontFamily,
|
|
920
|
+
fontSize: fontSizes.fontSize100,
|
|
921
|
+
fontWeight: fontWeightRegular,
|
|
922
|
+
lineHeight: lineHeights.lineHeight100
|
|
923
|
+
}
|
|
924
|
+
};
|
|
925
|
+
|
|
926
|
+
// src/global/zIndex.ts
|
|
927
|
+
var zIndex = {
|
|
928
|
+
zIndexBackground: "0",
|
|
929
|
+
zIndexContent: "1",
|
|
930
|
+
zIndexOverlay: "100",
|
|
931
|
+
zIndexPopup: "1000",
|
|
932
|
+
zIndexMessages: "10000",
|
|
933
|
+
zIndexFloating: "1000",
|
|
934
|
+
zIndexPriority: "100000",
|
|
935
|
+
zIndexDebug: "999999"
|
|
936
|
+
};
|
|
937
|
+
|
|
938
|
+
// src/global/textAlignments.ts
|
|
939
|
+
var textAlignments = {
|
|
940
|
+
start: "start",
|
|
941
|
+
center: "center",
|
|
942
|
+
end: "end",
|
|
943
|
+
justify: "justify"
|
|
944
|
+
};
|
|
945
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
946
|
+
0 && (module.exports = {
|
|
947
|
+
SEMANTIC_COLOR_ROWS,
|
|
948
|
+
SEMANTIC_FOCUS_PAIRS,
|
|
949
|
+
SEMANTIC_PALETTE_PAIRS,
|
|
950
|
+
SEMANTIC_TEXT,
|
|
951
|
+
borderRadii,
|
|
952
|
+
colors,
|
|
953
|
+
componentSizeFoundationKeys,
|
|
954
|
+
componentSizes,
|
|
955
|
+
fontFamilies,
|
|
956
|
+
fontSizes,
|
|
957
|
+
fontWeights,
|
|
958
|
+
foundationSizes,
|
|
959
|
+
iconSizes,
|
|
960
|
+
lineHeights,
|
|
961
|
+
motion,
|
|
962
|
+
opacities,
|
|
963
|
+
overlays,
|
|
964
|
+
semanticColors,
|
|
965
|
+
semanticFocus,
|
|
966
|
+
semanticInteraction,
|
|
967
|
+
semanticShadows,
|
|
968
|
+
shadow2Lighter,
|
|
969
|
+
shadowColors,
|
|
970
|
+
shadows,
|
|
971
|
+
spacings,
|
|
972
|
+
strokeWidths,
|
|
973
|
+
surfaceOverlayRgba,
|
|
974
|
+
textAlignments,
|
|
975
|
+
toBoxShadow,
|
|
976
|
+
typographys,
|
|
977
|
+
zIndex
|
|
978
|
+
});
|