@vinyasa/tokens 1.0.28 → 2.0.2
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 +176 -43
- package/dist/cjs/index.cjs +250 -298
- package/dist/esm/VinyasaProvider.d.ts +5 -2
- package/dist/esm/border.d.ts +4 -0
- package/dist/esm/brands.d.ts +20 -0
- package/dist/esm/contract.css.d.ts +5 -0
- package/dist/esm/density.d.ts +1 -1
- package/dist/esm/focus-ring.d.ts +1 -0
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +240 -252
- package/dist/esm/radius.d.ts +7 -0
- package/dist/esm/shadow.d.ts +3 -0
- package/dist/esm/spacing.d.ts +10 -0
- package/dist/esm/themes/base.d.ts +13 -3
- package/dist/esm/themes.d.ts +1 -1
- package/dist/esm/use-assert-vinyasa-provider.d.ts +1 -0
- package/dist/esm/use-themed-ref.d.ts +1 -0
- package/dist/esm/vinyasa-provider.d.ts +1 -0
- package/package.json +1 -1
- package/dist/esm/primitives.d.ts +0 -107
- package/dist/esm/themes/orange.d.ts +0 -3
package/dist/cjs/index.cjs
CHANGED
|
@@ -33,19 +33,122 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
33
33
|
createTheme: ()=>createTheme,
|
|
34
34
|
darkHighContrastTheme: ()=>darkHighContrastTheme,
|
|
35
35
|
darkTheme: ()=>darkTheme,
|
|
36
|
+
duskBrand: ()=>duskBrand,
|
|
36
37
|
focusRingStyle: ()=>focusRingStyle,
|
|
37
38
|
grid: ()=>grid,
|
|
38
39
|
lightHighContrastTheme: ()=>lightHighContrastTheme,
|
|
39
40
|
lightTheme: ()=>lightTheme,
|
|
40
|
-
orangeHighContrastTheme: ()=>orangeHighContrastTheme,
|
|
41
|
-
orangeTheme: ()=>orangeTheme,
|
|
42
41
|
resolveBaseTheme: ()=>resolveBaseTheme,
|
|
43
42
|
resolveDensitySpacing: ()=>resolveDensitySpacing,
|
|
43
|
+
sunriseBrand: ()=>sunriseBrand,
|
|
44
44
|
themeContract: ()=>themeContract,
|
|
45
45
|
useAssertVinyasaProvider: ()=>useAssertVinyasaProvider,
|
|
46
46
|
useThemedRef: ()=>useThemedRef,
|
|
47
|
-
useVinyasaTheme: ()=>useVinyasaTheme
|
|
47
|
+
useVinyasaTheme: ()=>useVinyasaTheme,
|
|
48
|
+
yellowBrand: ()=>yellowBrand
|
|
48
49
|
});
|
|
50
|
+
const duskBrand = {
|
|
51
|
+
light: {
|
|
52
|
+
normal: {
|
|
53
|
+
primary: '#4B2E8C',
|
|
54
|
+
onPrimary: '#FFFFFF',
|
|
55
|
+
focus: '#4B2E8C',
|
|
56
|
+
tertiary: '#EEE9F9',
|
|
57
|
+
onTertiary: '#4B2E8C'
|
|
58
|
+
},
|
|
59
|
+
high: {
|
|
60
|
+
primary: '#37206B',
|
|
61
|
+
onPrimary: '#FFFFFF',
|
|
62
|
+
focus: '#37206B',
|
|
63
|
+
tertiary: '#EEE9F9',
|
|
64
|
+
onTertiary: '#37206B'
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
dark: {
|
|
68
|
+
normal: {
|
|
69
|
+
primary: '#B49BEA',
|
|
70
|
+
onPrimary: '#1A1425',
|
|
71
|
+
focus: '#B49BEA',
|
|
72
|
+
tertiary: '#2E2648',
|
|
73
|
+
onTertiary: '#B49BEA'
|
|
74
|
+
},
|
|
75
|
+
high: {
|
|
76
|
+
primary: '#CBB8F2',
|
|
77
|
+
onPrimary: '#1A1425',
|
|
78
|
+
focus: '#CBB8F2',
|
|
79
|
+
tertiary: '#2E2648',
|
|
80
|
+
onTertiary: '#CBB8F2'
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
const sunriseBrand = {
|
|
85
|
+
light: {
|
|
86
|
+
normal: {
|
|
87
|
+
primary: '#FF5A2B',
|
|
88
|
+
onPrimary: '#2A1206',
|
|
89
|
+
focus: '#B8380C',
|
|
90
|
+
tertiary: '#FFE9DF',
|
|
91
|
+
onTertiary: '#B8380C'
|
|
92
|
+
},
|
|
93
|
+
high: {
|
|
94
|
+
primary: '#8F2C08',
|
|
95
|
+
onPrimary: '#FFFFFF',
|
|
96
|
+
focus: '#8F2C08',
|
|
97
|
+
tertiary: '#FFE9DF',
|
|
98
|
+
onTertiary: '#8F2C08'
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
dark: {
|
|
102
|
+
normal: {
|
|
103
|
+
primary: '#FF8354',
|
|
104
|
+
onPrimary: '#200E05',
|
|
105
|
+
focus: '#FF8354',
|
|
106
|
+
tertiary: '#3D2113',
|
|
107
|
+
onTertiary: '#FF8354'
|
|
108
|
+
},
|
|
109
|
+
high: {
|
|
110
|
+
primary: '#FFA47C',
|
|
111
|
+
onPrimary: '#200E05',
|
|
112
|
+
focus: '#FFA47C',
|
|
113
|
+
tertiary: '#3D2113',
|
|
114
|
+
onTertiary: '#FFA47C'
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
const yellowBrand = {
|
|
119
|
+
light: {
|
|
120
|
+
normal: {
|
|
121
|
+
primary: '#EAB308',
|
|
122
|
+
onPrimary: '#422006',
|
|
123
|
+
focus: '#854D0E',
|
|
124
|
+
tertiary: '#FEF9C3',
|
|
125
|
+
onTertiary: '#854D0E'
|
|
126
|
+
},
|
|
127
|
+
high: {
|
|
128
|
+
primary: '#713F12',
|
|
129
|
+
onPrimary: '#FFFFFF',
|
|
130
|
+
focus: '#713F12',
|
|
131
|
+
tertiary: '#FEF9C3',
|
|
132
|
+
onTertiary: '#713F12'
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
dark: {
|
|
136
|
+
normal: {
|
|
137
|
+
primary: '#FDE047',
|
|
138
|
+
onPrimary: '#422006',
|
|
139
|
+
focus: '#FACC15',
|
|
140
|
+
tertiary: '#3F2D07',
|
|
141
|
+
onTertiary: '#FDE047'
|
|
142
|
+
},
|
|
143
|
+
high: {
|
|
144
|
+
primary: '#FEF08A',
|
|
145
|
+
onPrimary: '#422006',
|
|
146
|
+
focus: '#FEF08A',
|
|
147
|
+
tertiary: '#3F2D07',
|
|
148
|
+
onTertiary: '#FEF08A'
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
};
|
|
49
152
|
var themeContract = {
|
|
50
153
|
primary: 'var(--vinyasa-primary)',
|
|
51
154
|
onPrimary: 'var(--vinyasa-on-primary)',
|
|
@@ -73,10 +176,15 @@ var themeContract = {
|
|
|
73
176
|
space4: 'var(--vinyasa-space4)',
|
|
74
177
|
space5: 'var(--vinyasa-space5)',
|
|
75
178
|
space6: 'var(--vinyasa-space6)',
|
|
179
|
+
space7: 'var(--vinyasa-space7)',
|
|
180
|
+
space8: 'var(--vinyasa-space8)',
|
|
181
|
+
radiusXs: 'var(--vinyasa-radius-xs)',
|
|
76
182
|
radiusSm: 'var(--vinyasa-radius-sm)',
|
|
77
183
|
radiusMd: 'var(--vinyasa-radius-md)',
|
|
184
|
+
radiusLg: 'var(--vinyasa-radius-lg)',
|
|
78
185
|
radiusFull: 'var(--vinyasa-radius-full)',
|
|
79
186
|
borderWidthThin: 'var(--vinyasa-border-width-thin)',
|
|
187
|
+
borderWidthThick: 'var(--vinyasa-border-width-thick)',
|
|
80
188
|
borderColorDefault: 'var(--vinyasa-border-color-default)',
|
|
81
189
|
fontFamilySans: 'var(--vinyasa-font-family-sans)',
|
|
82
190
|
fontFamilyMono: 'var(--vinyasa-font-family-mono)',
|
|
@@ -130,46 +238,26 @@ const focusRingStyle = (vars)=>({
|
|
|
130
238
|
borderColor: vars.focus,
|
|
131
239
|
boxShadow: `0 0 0 1px ${vars.focus}, 0 0 0 4px color-mix(in srgb, ${vars.focus} 16%, transparent)`
|
|
132
240
|
});
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
700: '#37206B',
|
|
137
|
-
onDusk: '#FFFFFF'
|
|
138
|
-
};
|
|
139
|
-
const moss = {
|
|
140
|
-
tint: '#E4EEE8',
|
|
141
|
-
700: '#3F6650',
|
|
142
|
-
800: '#3B604B',
|
|
143
|
-
900: '#385B47'
|
|
144
|
-
};
|
|
145
|
-
const ember = {
|
|
146
|
-
tint: '#F7E7E1',
|
|
147
|
-
600: '#A64B2A',
|
|
148
|
-
700: '#8E4024',
|
|
149
|
-
800: '#863C22',
|
|
150
|
-
onEmber: '#FFFFFF'
|
|
151
|
-
};
|
|
152
|
-
const saffron = {
|
|
153
|
-
tint: '#F5EBDD',
|
|
154
|
-
700: '#A15C1F',
|
|
155
|
-
800: '#834B19',
|
|
156
|
-
900: '#7C4717'
|
|
157
|
-
};
|
|
158
|
-
const space = {
|
|
159
|
-
1: '0.25rem',
|
|
160
|
-
2: '0.5rem',
|
|
161
|
-
3: '0.625rem',
|
|
162
|
-
4: '1rem',
|
|
163
|
-
5: '1.25rem',
|
|
164
|
-
6: '1.5rem'
|
|
241
|
+
const borderWidth = {
|
|
242
|
+
thin: '1px',
|
|
243
|
+
thick: '2px'
|
|
165
244
|
};
|
|
166
245
|
const radius = {
|
|
246
|
+
xs: '0.125rem',
|
|
167
247
|
sm: '0.25rem',
|
|
168
248
|
md: '0.5rem',
|
|
249
|
+
lg: '0.75rem',
|
|
169
250
|
full: '9999px'
|
|
170
251
|
};
|
|
171
|
-
const
|
|
172
|
-
|
|
252
|
+
const spacing_spacing = {
|
|
253
|
+
1: '0.25rem',
|
|
254
|
+
2: '0.5rem',
|
|
255
|
+
3: '0.75rem',
|
|
256
|
+
4: '1rem',
|
|
257
|
+
5: '1.5rem',
|
|
258
|
+
6: '2rem',
|
|
259
|
+
7: '3rem',
|
|
260
|
+
8: '4rem'
|
|
173
261
|
};
|
|
174
262
|
const fontFamily = {
|
|
175
263
|
sans: "'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
|
|
@@ -219,7 +307,7 @@ const opacity = {
|
|
|
219
307
|
disabled: '0.5',
|
|
220
308
|
hover: '0.92'
|
|
221
309
|
};
|
|
222
|
-
const
|
|
310
|
+
const base_blur = {
|
|
223
311
|
sm: '4px',
|
|
224
312
|
md: '8px',
|
|
225
313
|
lg: '16px'
|
|
@@ -232,16 +320,21 @@ const zIndex = {
|
|
|
232
320
|
tooltip: '1400'
|
|
233
321
|
};
|
|
234
322
|
const base_base = {
|
|
235
|
-
space1:
|
|
236
|
-
space2:
|
|
237
|
-
space3:
|
|
238
|
-
space4:
|
|
239
|
-
space5:
|
|
240
|
-
space6:
|
|
323
|
+
space1: spacing_spacing["1"],
|
|
324
|
+
space2: spacing_spacing["2"],
|
|
325
|
+
space3: spacing_spacing["3"],
|
|
326
|
+
space4: spacing_spacing["4"],
|
|
327
|
+
space5: spacing_spacing["5"],
|
|
328
|
+
space6: spacing_spacing["6"],
|
|
329
|
+
space7: spacing_spacing["7"],
|
|
330
|
+
space8: spacing_spacing["8"],
|
|
331
|
+
radiusXs: radius.xs,
|
|
241
332
|
radiusSm: radius.sm,
|
|
242
333
|
radiusMd: radius.md,
|
|
334
|
+
radiusLg: radius.lg,
|
|
243
335
|
radiusFull: radius.full,
|
|
244
336
|
borderWidthThin: borderWidth.thin,
|
|
337
|
+
borderWidthThick: borderWidth.thick,
|
|
245
338
|
fontFamilySans: fontFamily.sans,
|
|
246
339
|
fontFamilyMono: fontFamily.mono,
|
|
247
340
|
fontSizeXs: fontSize.xs,
|
|
@@ -249,9 +342,9 @@ const base_base = {
|
|
|
249
342
|
fontSizeMd: fontSize.md,
|
|
250
343
|
fontSizeLg: fontSize.lg,
|
|
251
344
|
fontSizeXl: fontSize.xl,
|
|
252
|
-
fontSize2xl: fontSize[
|
|
253
|
-
fontSize3xl: fontSize[
|
|
254
|
-
fontSize4xl: fontSize[
|
|
345
|
+
fontSize2xl: fontSize['2xl'],
|
|
346
|
+
fontSize3xl: fontSize['3xl'],
|
|
347
|
+
fontSize4xl: fontSize['4xl'],
|
|
255
348
|
fontWeightRegular: fontWeight.regular,
|
|
256
349
|
fontWeightMedium: fontWeight.medium,
|
|
257
350
|
fontWeightSemibold: fontWeight.semibold,
|
|
@@ -274,9 +367,9 @@ const base_base = {
|
|
|
274
367
|
focusRingOffset: focusRing.offset,
|
|
275
368
|
opacityDisabled: opacity.disabled,
|
|
276
369
|
opacityHover: opacity.hover,
|
|
277
|
-
blurSm:
|
|
278
|
-
blurMd:
|
|
279
|
-
blurLg:
|
|
370
|
+
blurSm: base_blur.sm,
|
|
371
|
+
blurMd: base_blur.md,
|
|
372
|
+
blurLg: base_blur.lg,
|
|
280
373
|
zIndexDropdown: zIndex.dropdown,
|
|
281
374
|
zIndexOverlay: zIndex.overlay,
|
|
282
375
|
zIndexModal: zIndex.modal,
|
|
@@ -325,62 +418,46 @@ function _object_spread_props(target, source) {
|
|
|
325
418
|
});
|
|
326
419
|
return target;
|
|
327
420
|
}
|
|
328
|
-
const
|
|
329
|
-
|
|
330
|
-
100: '#F6F5F8',
|
|
331
|
-
200: '#E3E0EA',
|
|
332
|
-
300: '#CFCADC',
|
|
333
|
-
400: '#A79DBE',
|
|
334
|
-
500: '#7C7191',
|
|
335
|
-
600: '#5C5470',
|
|
336
|
-
700: '#4A4458',
|
|
337
|
-
800: '#332E40',
|
|
338
|
-
900: '#1E1A28'
|
|
339
|
-
};
|
|
340
|
-
const paper = '#FFFFFF';
|
|
341
|
-
const shadow = {
|
|
342
|
-
sm: '0 1px 1px rgba(30, 20, 50, 0.06)',
|
|
343
|
-
md: '0 1px 2px rgba(30, 20, 50, 0.05), 0 8px 20px -8px rgba(43, 26, 90, 0.18)',
|
|
344
|
-
lg: '0 2px 4px rgba(30, 20, 50, 0.06), 0 16px 40px -12px rgba(43, 26, 90, 0.28)'
|
|
345
|
-
};
|
|
421
|
+
const accent = duskBrand.light.normal;
|
|
422
|
+
const accentHigh = duskBrand.light.high;
|
|
346
423
|
const lightTheme = _object_spread_props(_object_spread({}, base_base), {
|
|
347
|
-
primary:
|
|
348
|
-
onPrimary:
|
|
349
|
-
secondary:
|
|
350
|
-
onSecondary:
|
|
351
|
-
surface:
|
|
352
|
-
tertiary:
|
|
353
|
-
onTertiary:
|
|
354
|
-
error:
|
|
355
|
-
onError:
|
|
356
|
-
focus:
|
|
357
|
-
textDefault:
|
|
358
|
-
textMuted:
|
|
359
|
-
statusInfoBg:
|
|
360
|
-
statusInfoText:
|
|
361
|
-
statusSuccessBg:
|
|
362
|
-
statusSuccessText:
|
|
363
|
-
statusWarningBg:
|
|
364
|
-
statusWarningText:
|
|
365
|
-
statusErrorBg:
|
|
366
|
-
statusErrorText:
|
|
367
|
-
borderColorDefault:
|
|
368
|
-
shadowSm:
|
|
369
|
-
shadowMd:
|
|
370
|
-
shadowLg:
|
|
371
|
-
elevationRaised:
|
|
372
|
-
elevationOverlay:
|
|
373
|
-
elevationModal:
|
|
424
|
+
primary: accent.primary,
|
|
425
|
+
onPrimary: accent.onPrimary,
|
|
426
|
+
secondary: '#E5E5E5',
|
|
427
|
+
onSecondary: '#171717',
|
|
428
|
+
surface: '#FFFFFF',
|
|
429
|
+
tertiary: accent.tertiary,
|
|
430
|
+
onTertiary: accent.onTertiary,
|
|
431
|
+
error: '#A64B2A',
|
|
432
|
+
onError: '#FFFFFF',
|
|
433
|
+
focus: accent.focus,
|
|
434
|
+
textDefault: '#171717',
|
|
435
|
+
textMuted: '#404040',
|
|
436
|
+
statusInfoBg: '#EEE9F9',
|
|
437
|
+
statusInfoText: '#4B2E8C',
|
|
438
|
+
statusSuccessBg: '#E4EEE8',
|
|
439
|
+
statusSuccessText: '#3F6650',
|
|
440
|
+
statusWarningBg: '#F5EBDD',
|
|
441
|
+
statusWarningText: '#A15C1F',
|
|
442
|
+
statusErrorBg: '#F7E7E1',
|
|
443
|
+
statusErrorText: '#A64B2A',
|
|
444
|
+
borderColorDefault: '#E5E5E5',
|
|
445
|
+
shadowSm: '0 1px 1px rgba(0, 0, 0, 0.06)',
|
|
446
|
+
shadowMd: '0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 20px -8px rgba(0, 0, 0, 0.18)',
|
|
447
|
+
shadowLg: '0 2px 4px rgba(0, 0, 0, 0.06), 0 16px 40px -12px rgba(0, 0, 0, 0.28)',
|
|
448
|
+
elevationRaised: '0 1px 1px rgba(0, 0, 0, 0.06)',
|
|
449
|
+
elevationOverlay: '0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 20px -8px rgba(0, 0, 0, 0.18)',
|
|
450
|
+
elevationModal: '0 2px 4px rgba(0, 0, 0, 0.06), 0 16px 40px -12px rgba(0, 0, 0, 0.28)'
|
|
374
451
|
});
|
|
375
452
|
const lightHighContrastTheme = _object_spread_props(_object_spread({}, lightTheme), {
|
|
376
|
-
primary:
|
|
377
|
-
onTertiary:
|
|
378
|
-
focus:
|
|
379
|
-
error:
|
|
380
|
-
statusErrorText:
|
|
381
|
-
statusWarningText:
|
|
382
|
-
statusSuccessText:
|
|
383
|
-
borderColorDefault:
|
|
453
|
+
primary: accentHigh.primary,
|
|
454
|
+
onTertiary: accentHigh.onTertiary,
|
|
455
|
+
focus: accentHigh.focus,
|
|
456
|
+
error: '#8E4024',
|
|
457
|
+
statusErrorText: '#8E4024',
|
|
458
|
+
statusWarningText: '#834B19',
|
|
459
|
+
statusSuccessText: '#3B604B',
|
|
460
|
+
borderColorDefault: '#525252'
|
|
384
461
|
});
|
|
385
462
|
const createTheme = (overrides = {})=>_object_spread({}, lightTheme, overrides);
|
|
386
463
|
function dark_define_property(obj, key, value) {
|
|
@@ -425,187 +502,44 @@ function dark_object_spread_props(target, source) {
|
|
|
425
502
|
});
|
|
426
503
|
return target;
|
|
427
504
|
}
|
|
428
|
-
const
|
|
429
|
-
|
|
430
|
-
100: '#161320',
|
|
431
|
-
200: '#221C30',
|
|
432
|
-
300: '#362E4C',
|
|
433
|
-
400: '#493D64',
|
|
434
|
-
500: '#7C7191',
|
|
435
|
-
600: '#B9B3CB',
|
|
436
|
-
700: '#D6D2E0',
|
|
437
|
-
800: '#E9E7EF',
|
|
438
|
-
900: '#F1EFF5'
|
|
439
|
-
};
|
|
440
|
-
const paperDark = stoneDark[200];
|
|
441
|
-
const duskDark = {
|
|
442
|
-
tint: '#2E2648',
|
|
443
|
-
600: '#B49BEA',
|
|
444
|
-
700: '#CBB8F2',
|
|
445
|
-
onDusk: '#1A1425'
|
|
446
|
-
};
|
|
447
|
-
const mossDark = {
|
|
448
|
-
tint: '#22332A',
|
|
449
|
-
700: '#7FB89A'
|
|
450
|
-
};
|
|
451
|
-
const emberDark = {
|
|
452
|
-
tint: '#3A281F',
|
|
453
|
-
600: '#E08D6D',
|
|
454
|
-
700: '#E3977A',
|
|
455
|
-
onEmber: '#2A1208'
|
|
456
|
-
};
|
|
457
|
-
const saffronDark = {
|
|
458
|
-
tint: '#3A2F1B',
|
|
459
|
-
700: '#D9A15C'
|
|
460
|
-
};
|
|
461
|
-
const shadowDark = {
|
|
462
|
-
sm: '0 1px 1px rgba(0, 0, 0, 0.45)',
|
|
463
|
-
md: '0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 20px -8px rgba(0, 0, 0, 0.55)',
|
|
464
|
-
lg: '0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 40px -12px rgba(0, 0, 0, 0.65)'
|
|
465
|
-
};
|
|
505
|
+
const dark_accent = duskBrand.dark.normal;
|
|
506
|
+
const dark_accentHigh = duskBrand.dark.high;
|
|
466
507
|
const darkTheme = dark_object_spread_props(dark_object_spread({}, base_base), {
|
|
467
|
-
primary:
|
|
468
|
-
onPrimary:
|
|
469
|
-
secondary:
|
|
470
|
-
onSecondary:
|
|
471
|
-
surface:
|
|
472
|
-
tertiary:
|
|
473
|
-
onTertiary:
|
|
474
|
-
error:
|
|
475
|
-
onError:
|
|
476
|
-
focus:
|
|
477
|
-
textDefault:
|
|
478
|
-
textMuted:
|
|
479
|
-
statusInfoBg:
|
|
480
|
-
statusInfoText:
|
|
481
|
-
statusSuccessBg:
|
|
482
|
-
statusSuccessText:
|
|
483
|
-
statusWarningBg:
|
|
484
|
-
statusWarningText:
|
|
485
|
-
statusErrorBg:
|
|
486
|
-
statusErrorText:
|
|
487
|
-
borderColorDefault:
|
|
488
|
-
shadowSm:
|
|
489
|
-
shadowMd:
|
|
490
|
-
shadowLg:
|
|
491
|
-
elevationRaised:
|
|
492
|
-
elevationOverlay:
|
|
493
|
-
elevationModal:
|
|
508
|
+
primary: dark_accent.primary,
|
|
509
|
+
onPrimary: dark_accent.onPrimary,
|
|
510
|
+
secondary: '#2E2E2E',
|
|
511
|
+
onSecondary: '#FAFAFA',
|
|
512
|
+
surface: '#1F1F1F',
|
|
513
|
+
tertiary: dark_accent.tertiary,
|
|
514
|
+
onTertiary: dark_accent.onTertiary,
|
|
515
|
+
error: '#E08D6D',
|
|
516
|
+
onError: '#2A1208',
|
|
517
|
+
focus: dark_accent.focus,
|
|
518
|
+
textDefault: '#FAFAFA',
|
|
519
|
+
textMuted: '#A3A3A3',
|
|
520
|
+
statusInfoBg: '#2E2648',
|
|
521
|
+
statusInfoText: '#B49BEA',
|
|
522
|
+
statusSuccessBg: '#22332A',
|
|
523
|
+
statusSuccessText: '#7FB89A',
|
|
524
|
+
statusWarningBg: '#3A2F1B',
|
|
525
|
+
statusWarningText: '#D9A15C',
|
|
526
|
+
statusErrorBg: '#3A281F',
|
|
527
|
+
statusErrorText: '#E08D6D',
|
|
528
|
+
borderColorDefault: '#2E2E2E',
|
|
529
|
+
shadowSm: '0 1px 1px rgba(0, 0, 0, 0.45)',
|
|
530
|
+
shadowMd: '0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 20px -8px rgba(0, 0, 0, 0.55)',
|
|
531
|
+
shadowLg: '0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 40px -12px rgba(0, 0, 0, 0.65)',
|
|
532
|
+
elevationRaised: '0 1px 1px rgba(0, 0, 0, 0.45)',
|
|
533
|
+
elevationOverlay: '0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 20px -8px rgba(0, 0, 0, 0.55)',
|
|
534
|
+
elevationModal: '0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 40px -12px rgba(0, 0, 0, 0.65)'
|
|
494
535
|
});
|
|
495
536
|
const darkHighContrastTheme = dark_object_spread_props(dark_object_spread({}, darkTheme), {
|
|
496
|
-
primary:
|
|
497
|
-
onTertiary:
|
|
498
|
-
focus:
|
|
499
|
-
error:
|
|
500
|
-
statusErrorText:
|
|
501
|
-
borderColorDefault:
|
|
502
|
-
});
|
|
503
|
-
function orange_define_property(obj, key, value) {
|
|
504
|
-
if (key in obj) Object.defineProperty(obj, key, {
|
|
505
|
-
value: value,
|
|
506
|
-
enumerable: true,
|
|
507
|
-
configurable: true,
|
|
508
|
-
writable: true
|
|
509
|
-
});
|
|
510
|
-
else obj[key] = value;
|
|
511
|
-
return obj;
|
|
512
|
-
}
|
|
513
|
-
function orange_object_spread(target) {
|
|
514
|
-
for(var i = 1; i < arguments.length; i++){
|
|
515
|
-
var source = null != arguments[i] ? arguments[i] : {};
|
|
516
|
-
var ownKeys = Object.keys(source);
|
|
517
|
-
if ("function" == typeof Object.getOwnPropertySymbols) ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
518
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
519
|
-
}));
|
|
520
|
-
ownKeys.forEach(function(key) {
|
|
521
|
-
orange_define_property(target, key, source[key]);
|
|
522
|
-
});
|
|
523
|
-
}
|
|
524
|
-
return target;
|
|
525
|
-
}
|
|
526
|
-
function orange_ownKeys(object, enumerableOnly) {
|
|
527
|
-
var keys = Object.keys(object);
|
|
528
|
-
if (Object.getOwnPropertySymbols) {
|
|
529
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
530
|
-
if (enumerableOnly) symbols = symbols.filter(function(sym) {
|
|
531
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
532
|
-
});
|
|
533
|
-
keys.push.apply(keys, symbols);
|
|
534
|
-
}
|
|
535
|
-
return keys;
|
|
536
|
-
}
|
|
537
|
-
function orange_object_spread_props(target, source) {
|
|
538
|
-
source = null != source ? source : {};
|
|
539
|
-
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
540
|
-
else orange_ownKeys(Object(source)).forEach(function(key) {
|
|
541
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
542
|
-
});
|
|
543
|
-
return target;
|
|
544
|
-
}
|
|
545
|
-
const sand = {
|
|
546
|
-
50: '#FFFBF5',
|
|
547
|
-
100: '#FDF0E1',
|
|
548
|
-
200: '#F0D9BC',
|
|
549
|
-
300: '#DEBB8C',
|
|
550
|
-
400: '#BE8F58',
|
|
551
|
-
500: '#8F6A3F',
|
|
552
|
-
600: '#6B4F30',
|
|
553
|
-
700: '#523D26',
|
|
554
|
-
800: '#382A1A',
|
|
555
|
-
900: '#221A10'
|
|
556
|
-
};
|
|
557
|
-
const paperSand = '#FFF8F0';
|
|
558
|
-
const sunrise = {
|
|
559
|
-
tint: '#FFE9DF',
|
|
560
|
-
600: '#FF5A2B',
|
|
561
|
-
700: '#B8380C',
|
|
562
|
-
800: '#8F2C08',
|
|
563
|
-
onSunrise: '#2A1206'
|
|
564
|
-
};
|
|
565
|
-
const shadowSand = {
|
|
566
|
-
sm: '0 1px 1px rgba(60, 30, 10, 0.06)',
|
|
567
|
-
md: '0 1px 2px rgba(60, 30, 10, 0.05), 0 8px 20px -8px rgba(90, 40, 10, 0.18)',
|
|
568
|
-
lg: '0 2px 4px rgba(60, 30, 10, 0.06), 0 16px 40px -12px rgba(90, 40, 10, 0.28)'
|
|
569
|
-
};
|
|
570
|
-
const orangeTheme = orange_object_spread_props(orange_object_spread({}, base_base), {
|
|
571
|
-
primary: sunrise[600],
|
|
572
|
-
onPrimary: sunrise.onSunrise,
|
|
573
|
-
secondary: sand[200],
|
|
574
|
-
onSecondary: sand[900],
|
|
575
|
-
surface: paperSand,
|
|
576
|
-
tertiary: sunrise.tint,
|
|
577
|
-
onTertiary: sunrise[700],
|
|
578
|
-
error: ember["600"],
|
|
579
|
-
onError: ember.onEmber,
|
|
580
|
-
focus: sunrise[700],
|
|
581
|
-
textDefault: sand[900],
|
|
582
|
-
textMuted: sand[700],
|
|
583
|
-
statusInfoBg: dusk.tint,
|
|
584
|
-
statusInfoText: dusk["600"],
|
|
585
|
-
statusSuccessBg: moss.tint,
|
|
586
|
-
statusSuccessText: moss["700"],
|
|
587
|
-
statusWarningBg: saffron.tint,
|
|
588
|
-
statusWarningText: saffron["700"],
|
|
589
|
-
statusErrorBg: ember.tint,
|
|
590
|
-
statusErrorText: ember["600"],
|
|
591
|
-
borderColorDefault: sand[200],
|
|
592
|
-
shadowSm: shadowSand.sm,
|
|
593
|
-
shadowMd: shadowSand.md,
|
|
594
|
-
shadowLg: shadowSand.lg,
|
|
595
|
-
elevationRaised: shadowSand.sm,
|
|
596
|
-
elevationOverlay: shadowSand.md,
|
|
597
|
-
elevationModal: shadowSand.lg
|
|
598
|
-
});
|
|
599
|
-
const orangeHighContrastTheme = orange_object_spread_props(orange_object_spread({}, orangeTheme), {
|
|
600
|
-
primary: sunrise[800],
|
|
601
|
-
onPrimary: '#FFFFFF',
|
|
602
|
-
onTertiary: sunrise[800],
|
|
603
|
-
focus: sunrise[800],
|
|
604
|
-
error: ember["800"],
|
|
605
|
-
statusErrorText: ember["800"],
|
|
606
|
-
statusWarningText: saffron["900"],
|
|
607
|
-
statusSuccessText: moss["900"],
|
|
608
|
-
borderColorDefault: sand[600]
|
|
537
|
+
primary: dark_accentHigh.primary,
|
|
538
|
+
onTertiary: dark_accentHigh.onTertiary,
|
|
539
|
+
focus: dark_accentHigh.focus,
|
|
540
|
+
error: '#E3977A',
|
|
541
|
+
statusErrorText: '#E3977A',
|
|
542
|
+
borderColorDefault: '#A3A3A3'
|
|
609
543
|
});
|
|
610
544
|
const themes = {
|
|
611
545
|
light: {
|
|
@@ -615,10 +549,6 @@ const themes = {
|
|
|
615
549
|
dark: {
|
|
616
550
|
normal: darkTheme,
|
|
617
551
|
high: darkHighContrastTheme
|
|
618
|
-
},
|
|
619
|
-
orange: {
|
|
620
|
-
normal: orangeTheme,
|
|
621
|
-
high: orangeHighContrastTheme
|
|
622
552
|
}
|
|
623
553
|
};
|
|
624
554
|
const resolveBaseTheme = (colorScheme, contrast)=>{
|
|
@@ -636,7 +566,9 @@ const comfortableSpacing = {
|
|
|
636
566
|
space3: base_base.space3,
|
|
637
567
|
space4: base_base.space4,
|
|
638
568
|
space5: base_base.space5,
|
|
639
|
-
space6: base_base.space6
|
|
569
|
+
space6: base_base.space6,
|
|
570
|
+
space7: base_base.space7,
|
|
571
|
+
space8: base_base.space8
|
|
640
572
|
};
|
|
641
573
|
const compactSpacing = {
|
|
642
574
|
space1: '0.125rem',
|
|
@@ -644,15 +576,19 @@ const compactSpacing = {
|
|
|
644
576
|
space3: '0.5rem',
|
|
645
577
|
space4: '0.75rem',
|
|
646
578
|
space5: '1rem',
|
|
647
|
-
space6: '1.
|
|
579
|
+
space6: '1.5rem',
|
|
580
|
+
space7: '2rem',
|
|
581
|
+
space8: '2.5rem'
|
|
648
582
|
};
|
|
649
583
|
const spaciousSpacing = {
|
|
650
584
|
space1: '0.375rem',
|
|
651
585
|
space2: '0.75rem',
|
|
652
|
-
space3: '
|
|
586
|
+
space3: '1rem',
|
|
653
587
|
space4: '1.5rem',
|
|
654
|
-
space5: '
|
|
655
|
-
space6: '
|
|
588
|
+
space5: '2rem',
|
|
589
|
+
space6: '3rem',
|
|
590
|
+
space7: '4rem',
|
|
591
|
+
space8: '6rem'
|
|
656
592
|
};
|
|
657
593
|
const density_densitySpacing = {
|
|
658
594
|
compact: compactSpacing,
|
|
@@ -729,20 +665,33 @@ function VinyasaProvider_object_spread(target) {
|
|
|
729
665
|
}
|
|
730
666
|
return target;
|
|
731
667
|
}
|
|
668
|
+
const brands = {
|
|
669
|
+
dusk: duskBrand,
|
|
670
|
+
sunrise: sunriseBrand,
|
|
671
|
+
yellow: yellowBrand
|
|
672
|
+
};
|
|
732
673
|
const ThemeContext = /*#__PURE__*/ (0, external_react_namespaceObject.createContext)(lightTheme);
|
|
733
674
|
const useVinyasaTheme = ()=>(0, external_react_namespaceObject.useContext)(ThemeContext);
|
|
734
|
-
const VinyasaProvider = ({ theme, colorScheme = 'light', contrast = 'normal', density = 'comfortable', children })=>{
|
|
675
|
+
const VinyasaProvider = ({ theme, colorScheme = 'light', brand = 'dusk', contrast = 'normal', density = 'comfortable', children })=>{
|
|
676
|
+
var _theme_colorScheme;
|
|
735
677
|
const base = (0, external_react_namespaceObject.useMemo)(()=>resolveBaseTheme(colorScheme, contrast), [
|
|
736
678
|
colorScheme,
|
|
737
679
|
contrast
|
|
738
680
|
]);
|
|
681
|
+
const brandAccent = (0, external_react_namespaceObject.useMemo)(()=>brands[brand][colorScheme][contrast], [
|
|
682
|
+
brand,
|
|
683
|
+
colorScheme,
|
|
684
|
+
contrast
|
|
685
|
+
]);
|
|
739
686
|
const densitySpacing = (0, external_react_namespaceObject.useMemo)(()=>resolveDensitySpacing(density), [
|
|
740
687
|
density
|
|
741
688
|
]);
|
|
742
|
-
const
|
|
689
|
+
const themeOverride = null == theme ? void 0 : null == (_theme_colorScheme = theme[colorScheme]) ? void 0 : _theme_colorScheme[contrast];
|
|
690
|
+
const resolvedTheme = (0, external_react_namespaceObject.useMemo)(()=>VinyasaProvider_object_spread({}, base, brandAccent, densitySpacing, themeOverride), [
|
|
743
691
|
base,
|
|
692
|
+
brandAccent,
|
|
744
693
|
densitySpacing,
|
|
745
|
-
|
|
694
|
+
themeOverride
|
|
746
695
|
]);
|
|
747
696
|
const cssVars = (0, external_react_namespaceObject.useMemo)(()=>(0, dynamic_namespaceObject.assignInlineVars)(themeContract, resolvedTheme), [
|
|
748
697
|
resolvedTheme
|
|
@@ -756,6 +705,7 @@ const VinyasaProvider = ({ theme, colorScheme = 'light', contrast = 'normal', de
|
|
|
756
705
|
className: resetScope,
|
|
757
706
|
style: style,
|
|
758
707
|
"data-vinyasa-color-scheme": colorScheme,
|
|
708
|
+
"data-vinyasa-brand": brand,
|
|
759
709
|
"data-vinyasa-contrast": contrast,
|
|
760
710
|
"data-vinyasa-density": density,
|
|
761
711
|
children: children
|
|
@@ -767,36 +717,38 @@ exports.breakpoints = __webpack_exports__.breakpoints;
|
|
|
767
717
|
exports.createTheme = __webpack_exports__.createTheme;
|
|
768
718
|
exports.darkHighContrastTheme = __webpack_exports__.darkHighContrastTheme;
|
|
769
719
|
exports.darkTheme = __webpack_exports__.darkTheme;
|
|
720
|
+
exports.duskBrand = __webpack_exports__.duskBrand;
|
|
770
721
|
exports.focusRingStyle = __webpack_exports__.focusRingStyle;
|
|
771
722
|
exports.grid = __webpack_exports__.grid;
|
|
772
723
|
exports.lightHighContrastTheme = __webpack_exports__.lightHighContrastTheme;
|
|
773
724
|
exports.lightTheme = __webpack_exports__.lightTheme;
|
|
774
|
-
exports.orangeHighContrastTheme = __webpack_exports__.orangeHighContrastTheme;
|
|
775
|
-
exports.orangeTheme = __webpack_exports__.orangeTheme;
|
|
776
725
|
exports.resolveBaseTheme = __webpack_exports__.resolveBaseTheme;
|
|
777
726
|
exports.resolveDensitySpacing = __webpack_exports__.resolveDensitySpacing;
|
|
727
|
+
exports.sunriseBrand = __webpack_exports__.sunriseBrand;
|
|
778
728
|
exports.themeContract = __webpack_exports__.themeContract;
|
|
779
729
|
exports.useAssertVinyasaProvider = __webpack_exports__.useAssertVinyasaProvider;
|
|
780
730
|
exports.useThemedRef = __webpack_exports__.useThemedRef;
|
|
781
731
|
exports.useVinyasaTheme = __webpack_exports__.useVinyasaTheme;
|
|
732
|
+
exports.yellowBrand = __webpack_exports__.yellowBrand;
|
|
782
733
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
783
734
|
"VinyasaProvider",
|
|
784
735
|
"breakpoints",
|
|
785
736
|
"createTheme",
|
|
786
737
|
"darkHighContrastTheme",
|
|
787
738
|
"darkTheme",
|
|
739
|
+
"duskBrand",
|
|
788
740
|
"focusRingStyle",
|
|
789
741
|
"grid",
|
|
790
742
|
"lightHighContrastTheme",
|
|
791
743
|
"lightTheme",
|
|
792
|
-
"orangeHighContrastTheme",
|
|
793
|
-
"orangeTheme",
|
|
794
744
|
"resolveBaseTheme",
|
|
795
745
|
"resolveDensitySpacing",
|
|
746
|
+
"sunriseBrand",
|
|
796
747
|
"themeContract",
|
|
797
748
|
"useAssertVinyasaProvider",
|
|
798
749
|
"useThemedRef",
|
|
799
|
-
"useVinyasaTheme"
|
|
750
|
+
"useVinyasaTheme",
|
|
751
|
+
"yellowBrand"
|
|
800
752
|
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
801
753
|
Object.defineProperty(exports, '__esModule', {
|
|
802
754
|
value: true
|