@sanity/ui 3.3.4 → 3.3.6

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.
Files changed (46) hide show
  1. package/dist/{refractor.js → _chunks/refractor.js} +2 -0
  2. package/dist/_chunks/refractor.js.map +1 -0
  3. package/dist/_chunks/refractor.mjs.map +1 -0
  4. package/dist/{tabList.js → _chunks/tabList.js} +10 -11
  5. package/dist/_chunks/tabList.js.map +1 -0
  6. package/dist/{tabList.mjs → _chunks/tabList.mjs} +8 -11
  7. package/dist/_chunks/tabList.mjs.map +1 -0
  8. package/dist/_chunks/theme.d.mts +1204 -0
  9. package/dist/_chunks/theme.d.mts.map +1 -0
  10. package/dist/_chunks/theme.d.ts +1204 -0
  11. package/dist/_chunks/theme.d.ts.map +1 -0
  12. package/dist/{theme2.js → _chunks/theme.js} +3 -1
  13. package/dist/_chunks/theme.js.map +1 -0
  14. package/dist/{theme2.mjs → _chunks/theme.mjs} +2 -2
  15. package/dist/_chunks/theme.mjs.map +1 -0
  16. package/dist/{useTheme.d.mts → _chunks/useTheme.d.mts} +18 -47
  17. package/dist/_chunks/useTheme.d.mts.map +1 -0
  18. package/dist/{useTheme.d.ts → _chunks/useTheme.d.ts} +18 -47
  19. package/dist/_chunks/useTheme.d.ts.map +1 -0
  20. package/dist/_visual-editing.d.mts +1 -1
  21. package/dist/_visual-editing.d.ts +1 -1
  22. package/dist/_visual-editing.js +1 -1
  23. package/dist/_visual-editing.mjs +1 -1
  24. package/dist/index.d.mts +38 -14
  25. package/dist/index.d.mts.map +1 -1
  26. package/dist/index.d.ts +38 -14
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +16 -14
  29. package/dist/index.js.map +1 -0
  30. package/dist/index.mjs +15 -15
  31. package/dist/index.mjs.map +1 -1
  32. package/dist/theme.d.mts +2 -1206
  33. package/dist/theme.d.ts +2 -1206
  34. package/dist/theme.js +1 -1
  35. package/dist/theme.mjs +1 -1
  36. package/package.json +8 -13
  37. package/dist/refractor.mjs.map +0 -1
  38. package/dist/tabList.mjs.map +0 -1
  39. package/dist/theme.d.mts.map +0 -1
  40. package/dist/theme.d.ts.map +0 -1
  41. package/dist/theme2.d.mts +0 -2
  42. package/dist/theme2.d.ts +0 -2
  43. package/dist/theme2.mjs.map +0 -1
  44. package/dist/useTheme.d.mts.map +0 -1
  45. package/dist/useTheme.d.ts.map +0 -1
  46. /package/dist/{refractor.mjs → _chunks/refractor.mjs} +0 -0
@@ -0,0 +1,1204 @@
1
+ import { ColorHueKey, ColorTint, ColorTintKey } from "@sanity/color";
2
+ import * as CSS from "csstype";
3
+ /**
4
+ * @public
5
+ */
6
+ interface ThemeFocusRing {
7
+ offset: number;
8
+ width: number;
9
+ }
10
+ /**
11
+ * @public
12
+ */
13
+ interface ThemeAvatar_v2 {
14
+ sizes: {
15
+ /** Spacing between avatars in an <AvatarStack> component (px) */
16
+ distance: number;
17
+ /** Diameter of the avatar (px) */
18
+ size: number;
19
+ }[];
20
+ focusRing: ThemeFocusRing;
21
+ }
22
+ /** @public */
23
+ declare const THEME_COLOR_SCHEMES: readonly ["light", "dark"];
24
+ /** @public */
25
+ declare const THEME_COLOR_BLEND_MODES: readonly ["multiply", "screen"];
26
+ /** @public */
27
+ declare const THEME_COLOR_CARD_TONES: readonly ["transparent", "default", "neutral", "primary", "suggest", "positive", "caution", "critical"];
28
+ /** @public */
29
+ declare const THEME_COLOR_STATE_TONES: readonly ["default", "neutral", "primary", "suggest", "positive", "caution", "critical"];
30
+ /** @public */
31
+ declare const THEME_COLOR_STATES: readonly ["enabled", "hovered", "pressed", "selected", "disabled"];
32
+ /** @public */
33
+ declare const THEME_COLOR_BUTTON_MODES: readonly ["default", "ghost", "bleed"];
34
+ /** @public */
35
+ declare const THEME_COLOR_INPUT_MODES: readonly ["default", "invalid"];
36
+ /** @public */
37
+ declare const THEME_COLOR_INPUT_STATES: readonly ["enabled", "hovered", "readOnly", "disabled"];
38
+ /** @public */
39
+ declare const THEME_COLOR_AVATAR_COLORS: import("@sanity/color").ColorHueKey[];
40
+ /**
41
+ * @public
42
+ */
43
+ type ThemeColorSchemeKey = (typeof THEME_COLOR_SCHEMES)[number];
44
+ /** @public */
45
+ type ThemeColorBlendModeKey = (typeof THEME_COLOR_BLEND_MODES)[number];
46
+ /** @public */
47
+ type ThemeColorCardToneKey = (typeof THEME_COLOR_CARD_TONES)[number];
48
+ /** @public */
49
+ type ThemeColorButtonModeKey = (typeof THEME_COLOR_BUTTON_MODES)[number];
50
+ /** @public */
51
+ type ThemeColorStateKey = (typeof THEME_COLOR_STATES)[number];
52
+ /** @public */
53
+ type ThemeColorStateToneKey = (typeof THEME_COLOR_STATE_TONES)[number];
54
+ /** @public */
55
+ type ThemeColorInputModeKey = (typeof THEME_COLOR_INPUT_MODES)[number];
56
+ /** @public */
57
+ type ThemeColorInputStateKey = (typeof THEME_COLOR_INPUT_STATES)[number];
58
+ /** @public */
59
+ type ThemeColorAvatarColorKey = (typeof THEME_COLOR_AVATAR_COLORS)[number];
60
+ /** @internal */
61
+ declare function isColorBlendModeValue(str: string): str is ThemeColorBlendModeKey;
62
+ /** @internal */
63
+ declare function isColorHueKey(str: string): str is ColorHueKey;
64
+ /** @internal */
65
+ declare function isColorTintKey(str: string): str is ColorTintKey;
66
+ /** @internal */
67
+ declare function isColorButtonMode(str: string): str is ThemeColorButtonModeKey;
68
+ /**
69
+ * @public
70
+ */
71
+ interface ThemeColorAvatarHue_v2 {
72
+ _blend?: ThemeColorBlendModeKey;
73
+ bg: string;
74
+ fg: string;
75
+ }
76
+ /**
77
+ * @public
78
+ */
79
+ type ThemeColorAvatar_v2 = Record<ThemeColorAvatarColorKey, ThemeColorAvatarHue_v2>;
80
+ /**
81
+ * @public
82
+ */
83
+ interface ThemeColorBadgeTone_v2 {
84
+ bg: string;
85
+ fg: string;
86
+ dot: string;
87
+ icon: string;
88
+ }
89
+ /**
90
+ * @public
91
+ */
92
+ type ThemeColorBadge_v2 = Record<ThemeColorStateToneKey, ThemeColorBadgeTone_v2>;
93
+ /**
94
+ * @public
95
+ */
96
+ interface ThemeColorKBD {
97
+ bg: string;
98
+ fg: string;
99
+ border: string;
100
+ }
101
+ /**
102
+ * @public
103
+ */
104
+ interface ThemeColorState_v2 {
105
+ /** @internal */
106
+ _blend?: ThemeColorBlendModeKey;
107
+ accent: {
108
+ fg: string;
109
+ };
110
+ /**
111
+ * @internal This may be removed in a future release
112
+ * */
113
+ avatar: ThemeColorAvatar_v2;
114
+ /**
115
+ * @internal This may be removed in a future release
116
+ * */
117
+ badge: ThemeColorBadge_v2;
118
+ bg: string;
119
+ border: string;
120
+ code: {
121
+ bg: string;
122
+ fg: string;
123
+ };
124
+ fg: string;
125
+ icon: string;
126
+ kbd: ThemeColorKBD;
127
+ link: {
128
+ fg: string;
129
+ };
130
+ muted: {
131
+ bg: string;
132
+ fg: string;
133
+ };
134
+ skeleton: {
135
+ from: string;
136
+ to: string;
137
+ };
138
+ }
139
+ /**
140
+ * @public
141
+ */
142
+ type ThemeColorButtonTone_v2 = Record<ThemeColorStateKey, ThemeColorState_v2>;
143
+ /**
144
+ * @public
145
+ */
146
+ type ThemeColorButtonMode_v2 = Record<ThemeColorStateToneKey, ThemeColorButtonTone_v2>;
147
+ /**
148
+ * @public
149
+ */
150
+ type ThemeColorButton_v2 = Record<ThemeColorButtonModeKey, ThemeColorButtonMode_v2>;
151
+ /**
152
+ * @public
153
+ */
154
+ interface ThemeColorInputState_v2 {
155
+ _blend?: ThemeColorBlendModeKey;
156
+ bg: string;
157
+ border: string;
158
+ fg: string;
159
+ muted: {
160
+ bg: string;
161
+ };
162
+ placeholder: string;
163
+ }
164
+ /**
165
+ * @public
166
+ */
167
+ type ThemeColorInputMode_v2 = Record<ThemeColorInputStateKey, ThemeColorInputState_v2>;
168
+ /**
169
+ * @public
170
+ */
171
+ type ThemeColorInput_v2 = Record<ThemeColorInputModeKey, ThemeColorInputMode_v2>;
172
+ /**
173
+ * @public
174
+ */
175
+ type ThemeColorSelectableTone_v2 = Record<ThemeColorStateKey, ThemeColorState_v2>;
176
+ /**
177
+ * @public
178
+ */
179
+ type ThemeColorSelectable_v2 = Record<ThemeColorStateToneKey, ThemeColorSelectableTone_v2>;
180
+ /** @public */
181
+ interface ThemeColorShadow {
182
+ outline: string;
183
+ umbra: string;
184
+ penumbra: string;
185
+ ambient: string;
186
+ }
187
+ /**
188
+ * @public
189
+ */
190
+ interface ThemeColorSyntax {
191
+ atrule: string;
192
+ attrName: string;
193
+ attrValue: string;
194
+ attribute: string;
195
+ boolean: string;
196
+ builtin: string;
197
+ cdata: string;
198
+ char: string;
199
+ class: string;
200
+ className: string;
201
+ comment: string;
202
+ constant: string;
203
+ deleted: string;
204
+ doctype: string;
205
+ entity: string;
206
+ function: string;
207
+ hexcode: string;
208
+ id: string;
209
+ important: string;
210
+ inserted: string;
211
+ keyword: string;
212
+ number: string;
213
+ operator: string;
214
+ prolog: string;
215
+ property: string;
216
+ pseudoClass: string;
217
+ pseudoElement: string;
218
+ punctuation: string;
219
+ regex: string;
220
+ selector: string;
221
+ string: string;
222
+ symbol: string;
223
+ tag: string;
224
+ unit: string;
225
+ url: string;
226
+ variable: string;
227
+ }
228
+ /**
229
+ * @public
230
+ */
231
+ interface ThemeColorCard_v2 extends ThemeColorState_v2 {
232
+ /** @internal */
233
+ _blend: ThemeColorBlendModeKey;
234
+ _dark: boolean;
235
+ backdrop: string;
236
+ button: ThemeColorButton_v2;
237
+ focusRing: string;
238
+ input: ThemeColorInput_v2;
239
+ selectable: ThemeColorSelectable_v2;
240
+ shadow: ThemeColorShadow;
241
+ syntax: ThemeColorSyntax;
242
+ }
243
+ /**
244
+ * @public
245
+ */
246
+ type ThemeColorScheme_v2 = Record<ThemeColorCardToneKey, ThemeColorCard_v2>;
247
+ /**
248
+ * @public
249
+ */
250
+ type ThemeColorSchemes_v2 = Record<ThemeColorSchemeKey, ThemeColorScheme_v2>;
251
+ /**
252
+ * A CSS-in-JS style object: standard CSS properties plus an index signature that allows nested
253
+ * selectors, at-rules and custom properties.
254
+ *
255
+ * This is a self-owned definition (based on `csstype`) so the published `.d.ts` types stay fully
256
+ * controlled by us and do not reference any external CSS-in-JS library types.
257
+ *
258
+ * @internal
259
+ */
260
+ interface CSSObject extends CSS.Properties<number | (string & {})> {
261
+ [key: string]: CSSObject | string | number | undefined;
262
+ }
263
+ /**
264
+ * @public
265
+ */
266
+ type ThemeFontKey = 'code' | 'heading' | 'label' | 'text';
267
+ /**
268
+ * @public
269
+ */
270
+ type ThemeFontWeightKey = 'regular' | 'medium' | 'semibold' | 'bold';
271
+ /**
272
+ * @public
273
+ */
274
+ interface ThemeFontSize {
275
+ ascenderHeight: number;
276
+ descenderHeight: number;
277
+ fontSize: number;
278
+ iconSize: number;
279
+ letterSpacing: number;
280
+ lineHeight: number;
281
+ }
282
+ /**
283
+ * @public
284
+ */
285
+ interface ThemeFontWeight {
286
+ regular: number;
287
+ medium: number;
288
+ semibold: number;
289
+ bold: number;
290
+ }
291
+ /**
292
+ * @public
293
+ */
294
+ interface ThemeFont {
295
+ family: string;
296
+ weights: ThemeFontWeight;
297
+ sizes: ThemeFontSize[];
298
+ /** @deprecated No longer supported. */
299
+ horizontalOffset?: number;
300
+ }
301
+ /**
302
+ * @public
303
+ */
304
+ interface ThemeFonts {
305
+ code: ThemeFont;
306
+ heading: ThemeFont;
307
+ label: ThemeFont;
308
+ text: ThemeFont;
309
+ }
310
+ /**
311
+ * @public
312
+ */
313
+ interface ThemeInput_v2 {
314
+ checkbox: {
315
+ size: number;
316
+ focusRing: ThemeFocusRing;
317
+ };
318
+ radio: {
319
+ size: number;
320
+ markSize: number;
321
+ focusRing: ThemeFocusRing;
322
+ };
323
+ switch: {
324
+ width: number;
325
+ height: number;
326
+ padding: number;
327
+ transitionDurationMs: number;
328
+ transitionTimingFunction: string;
329
+ focusRing: ThemeFocusRing;
330
+ };
331
+ border: {
332
+ width: number;
333
+ };
334
+ select: {
335
+ focusRing: ThemeFocusRing;
336
+ };
337
+ text: {
338
+ focusRing: ThemeFocusRing;
339
+ };
340
+ }
341
+ /**
342
+ * @public
343
+ */
344
+ interface ThemeLayer {
345
+ dialog: {
346
+ zOffset: number;
347
+ };
348
+ popover: {
349
+ zOffset: number;
350
+ };
351
+ tooltip: {
352
+ zOffset: number;
353
+ };
354
+ }
355
+ /**
356
+ * @public
357
+ */
358
+ type ThemeBoxShadow = [number, number, number, number];
359
+ /**
360
+ * @public
361
+ */
362
+ interface ThemeShadow {
363
+ umbra: ThemeBoxShadow;
364
+ penumbra: ThemeBoxShadow;
365
+ ambient: ThemeBoxShadow;
366
+ }
367
+ /**
368
+ * @internal
369
+ */
370
+ interface ThemeStyles {
371
+ button?: {
372
+ root?: CSSObject;
373
+ };
374
+ card?: {
375
+ root?: CSSObject;
376
+ };
377
+ }
378
+ /**
379
+ * @public
380
+ * @deprecated Use `ThemeAvatar_v2` from `@sanity/ui/theme` instead.
381
+ */
382
+ interface ThemeAvatar {
383
+ sizes: {
384
+ distance: number;
385
+ size: number;
386
+ }[];
387
+ }
388
+ /**
389
+ * @public
390
+ * @deprecated Use `ThemeColorState_v2` instead.
391
+ */
392
+ interface ThemeColorGenericState {
393
+ /** @internal */
394
+ _blend?: ThemeColorBlendModeKey;
395
+ bg: string;
396
+ /**
397
+ * @beta
398
+ */
399
+ bg2?: string;
400
+ border: string;
401
+ fg: string;
402
+ icon: string;
403
+ muted: {
404
+ fg: string;
405
+ };
406
+ accent: {
407
+ fg: string;
408
+ };
409
+ link: {
410
+ fg: string;
411
+ };
412
+ code: {
413
+ bg: string;
414
+ fg: string;
415
+ };
416
+ skeleton?: {
417
+ from: string;
418
+ to: string;
419
+ };
420
+ }
421
+ /**
422
+ * @public
423
+ * @deprecated Use `ThemeColorCardToneKey` instead.
424
+ */
425
+ type ThemeColorName = 'transparent' | 'default' | 'primary' | 'positive' | 'caution' | 'critical';
426
+ /**
427
+ * @public
428
+ * @deprecated Use `ThemeColorCardToneKey` instead.
429
+ */
430
+ type ThemeColorToneKey = ThemeColorName;
431
+ /**
432
+ * @public
433
+ * @deprecated Use `ThemeColorCard_v2` instead.
434
+ */
435
+ interface ThemeColorBase {
436
+ bg: string;
437
+ fg: string;
438
+ border: string;
439
+ focusRing: string;
440
+ backdrop?: string;
441
+ shadow: {
442
+ outline: string;
443
+ umbra: string;
444
+ penumbra: string;
445
+ ambient: string;
446
+ };
447
+ skeleton?: {
448
+ from: string;
449
+ to: string;
450
+ };
451
+ }
452
+ /**
453
+ * @public
454
+ * @deprecated Use `ThemeColorState_v2` instead.
455
+ */
456
+ type ThemeColorButtonState = ThemeColorGenericState;
457
+ /**
458
+ * @public
459
+ * @deprecated Use `ThemeColorButtonStates_v2` instead.
460
+ */
461
+ interface ThemeColorButtonStates {
462
+ enabled: ThemeColorGenericState;
463
+ hovered: ThemeColorGenericState;
464
+ pressed: ThemeColorGenericState;
465
+ selected: ThemeColorGenericState;
466
+ disabled: ThemeColorGenericState;
467
+ }
468
+ /**
469
+ * TODO: Rename to `ThemeColorButtonMode`.
470
+ * @public
471
+ * @deprecated Use `ThemeColorButtonTones_v2` instead.
472
+ */
473
+ interface ThemeColorButtonTones {
474
+ default: ThemeColorButtonStates;
475
+ primary: ThemeColorButtonStates;
476
+ positive: ThemeColorButtonStates;
477
+ caution: ThemeColorButtonStates;
478
+ critical: ThemeColorButtonStates;
479
+ }
480
+ /**
481
+ * @public
482
+ * @deprecated Use `ThemeColorButton_v2` instead.
483
+ */
484
+ interface ThemeColorButton {
485
+ default: ThemeColorButtonTones;
486
+ ghost: ThemeColorButtonTones;
487
+ bleed: ThemeColorButtonTones;
488
+ }
489
+ /**
490
+ * @public
491
+ * @deprecated Use `ThemeColorState_v2` instead.
492
+ */
493
+ type ThemeColorCardState = ThemeColorGenericState;
494
+ /**
495
+ * @public
496
+ * @deprecated Use `ThemeColorSelectable_v2` instead.
497
+ */
498
+ interface ThemeColorCard {
499
+ enabled: ThemeColorGenericState;
500
+ hovered: ThemeColorGenericState;
501
+ pressed: ThemeColorGenericState;
502
+ selected: ThemeColorGenericState;
503
+ disabled: ThemeColorGenericState;
504
+ }
505
+ /**
506
+ * @public
507
+ * @deprecated Use `ThemeColorInputState_v2` instead.
508
+ */
509
+ interface ThemeColorInputState {
510
+ _blend?: ThemeColorBlendModeKey;
511
+ bg: string;
512
+ bg2: string;
513
+ border: string;
514
+ fg: string;
515
+ placeholder: string;
516
+ }
517
+ /**
518
+ * @public
519
+ * @deprecated Use `ThemeColorInputMode_v2` instead.
520
+ */
521
+ interface ThemeColorInputStates {
522
+ enabled: ThemeColorInputState;
523
+ disabled: ThemeColorInputState;
524
+ hovered: ThemeColorInputState;
525
+ readOnly: ThemeColorInputState;
526
+ }
527
+ /**
528
+ * @public
529
+ * @deprecated Use `ThemeColorInput_v2` instead.
530
+ */
531
+ interface ThemeColorInput {
532
+ default: ThemeColorInputStates;
533
+ invalid: ThemeColorInputStates;
534
+ }
535
+ /**
536
+ * @public
537
+ * @deprecated Use `ThemeColorSelectableTone_v2` instead.
538
+ */
539
+ interface ThemeColorMutedTone {
540
+ enabled: ThemeColorGenericState;
541
+ disabled: ThemeColorGenericState;
542
+ hovered: ThemeColorGenericState;
543
+ pressed: ThemeColorGenericState;
544
+ selected: ThemeColorGenericState;
545
+ }
546
+ /**
547
+ * @public
548
+ * @deprecated Use `ThemeColorSelectable_v2` instead.
549
+ */
550
+ interface ThemeColorMuted {
551
+ default: ThemeColorMutedTone;
552
+ transparent: ThemeColorMutedTone;
553
+ primary: ThemeColorMutedTone;
554
+ positive: ThemeColorMutedTone;
555
+ caution: ThemeColorMutedTone;
556
+ critical: ThemeColorMutedTone;
557
+ }
558
+ /**
559
+ * @public
560
+ * @deprecated Use `ThemeColorState_v2` instead.
561
+ */
562
+ type ThemeColorSelectableState = ThemeColorGenericState;
563
+ /**
564
+ * @public
565
+ * @deprecated Use `ThemeColorSelectableStates_v2` instead.
566
+ */
567
+ interface ThemeColorSelectableStates {
568
+ enabled: ThemeColorSelectableState;
569
+ hovered: ThemeColorSelectableState;
570
+ pressed: ThemeColorSelectableState;
571
+ selected: ThemeColorSelectableState;
572
+ disabled: ThemeColorSelectableState;
573
+ }
574
+ /**
575
+ * @public
576
+ * @deprecated Use `ThemeColorSelectable_v2` instead.
577
+ */
578
+ interface ThemeColorSelectable {
579
+ default: ThemeColorSelectableStates;
580
+ primary: ThemeColorSelectableStates;
581
+ positive: ThemeColorSelectableStates;
582
+ caution: ThemeColorSelectableStates;
583
+ critical: ThemeColorSelectableStates;
584
+ }
585
+ /**
586
+ * @public
587
+ * @deprecated Use `ThemeColorSelectableTone_v2` instead.
588
+ */
589
+ interface ThemeColorSolidTone {
590
+ enabled: ThemeColorGenericState;
591
+ disabled: ThemeColorGenericState;
592
+ hovered: ThemeColorGenericState;
593
+ pressed: ThemeColorGenericState;
594
+ selected: ThemeColorGenericState;
595
+ }
596
+ /**
597
+ * @public
598
+ * @deprecated Use `ThemeColorSelectable_v2` instead.
599
+ */
600
+ interface ThemeColorSolid {
601
+ default: ThemeColorSolidTone;
602
+ transparent: ThemeColorSolidTone;
603
+ primary: ThemeColorSolidTone;
604
+ positive: ThemeColorSolidTone;
605
+ caution: ThemeColorSolidTone;
606
+ critical: ThemeColorSolidTone;
607
+ }
608
+ /**
609
+ * @public
610
+ * @deprecated Use `ThemeColorAvatarColorKey` instead
611
+ */
612
+ type ThemeColorSpotKey = ThemeColorAvatarColorKey;
613
+ /**
614
+ * @public
615
+ * @deprecated Use `ThemeColorAvatar_v2` instead
616
+ */
617
+ type ThemeColorSpot = Record<ThemeColorSpotKey, string>;
618
+ /**
619
+ * @public
620
+ * @deprecated Use `ThemeColor_v2` instead.
621
+ */
622
+ interface ThemeColor extends Partial<Omit<ThemeColorGenericState, 'muted'>> {
623
+ base: ThemeColorBase;
624
+ button: ThemeColorButton;
625
+ card: ThemeColorCard;
626
+ dark: boolean;
627
+ input: ThemeColorInput;
628
+ muted: ThemeColorMuted;
629
+ selectable?: ThemeColorSelectable;
630
+ solid: ThemeColorSolid;
631
+ spot: ThemeColorSpot;
632
+ syntax: ThemeColorSyntax;
633
+ }
634
+ /**
635
+ * @public
636
+ * @deprecated Use `ThemeColorScheme_v2` instead.
637
+ */
638
+ type ThemeColorScheme = Record<ThemeColorName, ThemeColor>;
639
+ /**
640
+ * @public
641
+ * @deprecated Use `ThemeColorSchemes_v2` instead.
642
+ */
643
+ type ThemeColorSchemes = Record<ThemeColorSchemeKey, ThemeColorScheme>;
644
+ /**
645
+ * @public
646
+ * @deprecated Use `ThemeInput_v2` instead
647
+ */
648
+ interface ThemeInput {
649
+ checkbox: {
650
+ size: number;
651
+ };
652
+ radio: {
653
+ size: number;
654
+ markSize: number;
655
+ };
656
+ switch: {
657
+ width: number;
658
+ height: number;
659
+ padding: number;
660
+ transitionDurationMs: number;
661
+ transitionTimingFunction: string;
662
+ };
663
+ border: {
664
+ width: number;
665
+ };
666
+ }
667
+ /**
668
+ * @public
669
+ */
670
+ interface RootTheme_v2 {
671
+ _version: 2;
672
+ avatar: ThemeAvatar_v2;
673
+ button: {
674
+ border: {
675
+ width: number;
676
+ };
677
+ focusRing: ThemeFocusRing;
678
+ textWeight: ThemeFontWeightKey;
679
+ };
680
+ card: {
681
+ border: {
682
+ width: number;
683
+ };
684
+ focusRing: ThemeFocusRing;
685
+ shadow: {
686
+ outline: number;
687
+ };
688
+ };
689
+ color: ThemeColorSchemes_v2;
690
+ container: number[];
691
+ font: ThemeFonts;
692
+ input: ThemeInput_v2;
693
+ layer: ThemeLayer;
694
+ media: number[];
695
+ radius: number[];
696
+ shadow: Array<ThemeShadow | null>;
697
+ space: number[];
698
+ /** @internal */
699
+ style?: ThemeStyles;
700
+ }
701
+ /**
702
+ * @public
703
+ */
704
+ interface BaseTheme {
705
+ _version?: 0;
706
+ /**
707
+ * @deprecated Use `v2.avatar` instead
708
+ */
709
+ avatar: ThemeAvatar;
710
+ /**
711
+ * @deprecated Use `v2.button` instead
712
+ */
713
+ button: {
714
+ textWeight: ThemeFontWeightKey;
715
+ };
716
+ /**
717
+ * @deprecated Use `v2.color` instead
718
+ */
719
+ color: ThemeColorSchemes;
720
+ /**
721
+ * @deprecated Use `v2.container` instead
722
+ */
723
+ container: number[];
724
+ /**
725
+ * @deprecated Use component-specific `v2.{button | card | input}.focusRing` values instead
726
+ */
727
+ focusRing: {
728
+ offset: number;
729
+ width: number;
730
+ };
731
+ /**
732
+ * @deprecated Use `v2.font` instead
733
+ */
734
+ fonts: ThemeFonts;
735
+ /**
736
+ * @deprecated Use `v2.input` instead
737
+ */
738
+ input: ThemeInput;
739
+ /**
740
+ * THIS API MAY BE UNSTABLE. DO NOT USE IN PRODUCTION.
741
+ * @beta
742
+ * @deprecated Use `v2.layer` instead
743
+ */
744
+ layer?: ThemeLayer;
745
+ /**
746
+ * @deprecated Use `v2.media` instead
747
+ */
748
+ media: number[];
749
+ /**
750
+ * @deprecated Use `v2.radius` instead
751
+ */
752
+ radius: number[];
753
+ /**
754
+ * @deprecated Use `v2.shadow` instead
755
+ */
756
+ shadows: Array<ThemeShadow | null>;
757
+ /**
758
+ * @deprecated Use `v2.space` instead
759
+ */
760
+ space: number[];
761
+ /**
762
+ * @internal
763
+ * @deprecated Use `v2.style` instead
764
+ */
765
+ styles?: ThemeStyles;
766
+ v2?: RootTheme_v2;
767
+ }
768
+ /**
769
+ * @public
770
+ */
771
+ type RootTheme = BaseTheme;
772
+ /**
773
+ * @public
774
+ */
775
+ type Theme_v2 = Omit<RootTheme_v2, 'color'> & {
776
+ color: ThemeColorCard_v2;
777
+ /**
778
+ * Indicates whether the theme is resolved or raw, it's necessary to avoid issues
779
+ * with sanity V2 components accessing a v1 <ThemeProvider>.
780
+ * See https://github.com/sanity-io/ui/pull/1203 for more info.
781
+ */
782
+ _resolved: boolean;
783
+ };
784
+ /**
785
+ * @public
786
+ */
787
+ interface Theme {
788
+ sanity: Omit<RootTheme, 'color' | 'v2'> & {
789
+ /**
790
+ * @deprecated Use `v2.color` instead
791
+ */
792
+ color: ThemeColor;
793
+ v2?: Theme_v2;
794
+ };
795
+ }
796
+ /**
797
+ * @public
798
+ * @deprecated Use `buildColorTheme` instead.
799
+ */
800
+ interface ThemeColorBuilderOpts {
801
+ base: (opts: {
802
+ dark: boolean;
803
+ name: ThemeColorName;
804
+ }) => ThemeColorBase;
805
+ solid: (opts: {
806
+ base: ThemeColorBase;
807
+ dark: boolean;
808
+ tone: ThemeColorName;
809
+ name: ThemeColorName;
810
+ state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected';
811
+ }) => ThemeColorGenericState;
812
+ muted: (opts: {
813
+ base: ThemeColorBase;
814
+ dark: boolean;
815
+ tone: ThemeColorToneKey;
816
+ name: ThemeColorName;
817
+ state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected';
818
+ }) => ThemeColorGenericState;
819
+ card: (opts: {
820
+ base: ThemeColorBase;
821
+ dark: boolean;
822
+ muted: ThemeColorMuted;
823
+ name: ThemeColorName;
824
+ solid: ThemeColorSolid;
825
+ state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected';
826
+ }) => ThemeColorGenericState;
827
+ button: (opts: {
828
+ dark: boolean;
829
+ mode: ThemeColorButtonModeKey;
830
+ base: ThemeColorBase;
831
+ solid: ThemeColorSolidTone;
832
+ muted: ThemeColorMutedTone;
833
+ }) => ThemeColorButtonStates;
834
+ input: (opts: {
835
+ base: ThemeColorBase;
836
+ solid: ThemeColorSolidTone;
837
+ muted: ThemeColorMutedTone;
838
+ dark: boolean;
839
+ mode: 'default' | 'invalid';
840
+ state: 'enabled' | 'disabled' | 'hovered' | 'readOnly';
841
+ }) => ThemeColorInputState;
842
+ selectable: (opts: {
843
+ dark: boolean;
844
+ base: ThemeColorBase;
845
+ solid: ThemeColorSolid;
846
+ muted: ThemeColorMuted;
847
+ state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected';
848
+ tone: 'default' | 'primary' | 'positive' | 'caution' | 'critical';
849
+ }) => ThemeColorGenericState;
850
+ syntax: (opts: {
851
+ base: ThemeColorBase;
852
+ dark: boolean;
853
+ }) => ThemeColorSyntax;
854
+ spot: (opts: {
855
+ base: ThemeColorBase;
856
+ dark: boolean;
857
+ key: ThemeColorSpotKey;
858
+ }) => string;
859
+ }
860
+ /**
861
+ * @public
862
+ * @deprecated Use `ThemeConfig` instead.
863
+ */
864
+ type PartialThemeColorBuilderOpts = Partial<ThemeColorBuilderOpts>;
865
+ /**
866
+ * @public
867
+ * @deprecated Use `buildColorTheme` instead.
868
+ */
869
+ declare function createColorTheme(partialOpts?: PartialThemeColorBuilderOpts): ThemeColorSchemes;
870
+ /** @public */
871
+ declare const COLOR_CONFIG_STATE_KEYS: readonly ["_hue", "bg", "fg", "border", "focusRing", "muted/fg", "accent/fg", "link/fg", "code/bg", "code/fg", "skeleton/from", "skeleton/to", "status/dot", "status/icon"];
872
+ /** @public */
873
+ type ColorConfigStateKey = (typeof COLOR_CONFIG_STATE_KEYS)[number];
874
+ /** @public */
875
+ declare const COLOR_CONFIG_CARD_KEYS: readonly ["_hue", "bg", "fg", "border", "focusRing", "muted/fg", "accent/fg", "link/fg", "code/bg", "code/fg", "skeleton/from", "skeleton/to", "status/dot", "status/icon", "_hue", "bg", "fg", "border", "focusRing", "shadow/outline", "shadow/umbra", "shadow/penumbra", "shadow/ambient"];
876
+ /** @public */
877
+ type ColorConfigCardKey = (typeof COLOR_CONFIG_CARD_KEYS)[number];
878
+ /** @public */
879
+ declare const COLOR_CONFIG_BLEND_KEYS: readonly ["_blend"];
880
+ /** @public */
881
+ type ColorConfigBlendKey = (typeof COLOR_CONFIG_BLEND_KEYS)[number];
882
+ /** @public */
883
+ type ColorConfigOpacityValue = `0` | `0.${number}` | `1`;
884
+ /** @public */
885
+ type ColorConfigValue = `black` | `white` | `black/${ColorConfigOpacityValue}` | `white/${ColorConfigOpacityValue}` | `${ColorHueKey}` | `${ColorHueKey} ${number}%` | `${ColorHueKey}/${ColorTintKey}` | `${ColorHueKey}/${ColorTintKey} ${number}%` | `${ColorHueKey}/${ColorTintKey}/${ColorConfigOpacityValue}` | `${ColorTintKey}` | `${ColorTintKey} ${number}%` | `${ColorTintKey}/${ColorConfigOpacityValue}`;
886
+ /** @public */
887
+ type ThemeColorTokenValue = [ColorConfigValue, ColorConfigValue];
888
+ /** @public */
889
+ type ColorBlendModeTokenValue = [ThemeColorBlendModeKey, ThemeColorBlendModeKey];
890
+ /** @public */
891
+ declare const COLOR_CONFIG_AVATAR_COLORS: readonly ["*", ...ColorHueKey[]];
892
+ /** @public */
893
+ type ColorConfigAvatarColor = (typeof COLOR_CONFIG_AVATAR_COLORS)[number];
894
+ /** @public */
895
+ declare const COLOR_CONFIG_CARD_TONES: readonly ["*", "transparent", "default", "neutral", "primary", "suggest", "positive", "caution", "critical"];
896
+ /** @public */
897
+ type ColorConfigCardTone = (typeof COLOR_CONFIG_CARD_TONES)[number];
898
+ /** @public */
899
+ declare const COLOR_CONFIG_STATE_TONES: readonly ["*", "default", "neutral", "primary", "suggest", "positive", "caution", "critical"];
900
+ /** @public */
901
+ type ColorConfigStateTone = (typeof COLOR_CONFIG_STATE_TONES)[number];
902
+ /** @public */
903
+ declare const COLOR_CONFIG_STATES: readonly ["*", "enabled", "hovered", "pressed", "selected", "disabled"];
904
+ /** @public */
905
+ type ColorConfigState = (typeof COLOR_CONFIG_STATES)[number];
906
+ /** @public */
907
+ declare const COLOR_CONFIG_INPUT_MODES: readonly ["*", "default", "invalid"];
908
+ /** @public */
909
+ type ColorConfigInputMode = (typeof COLOR_CONFIG_INPUT_MODES)[number];
910
+ /** @public */
911
+ declare const COLOR_CONFIG_INPUT_STATES: readonly ["*", "enabled", "hovered", "readOnly", "disabled"];
912
+ /** @public */
913
+ type ColorConfigInputState = (typeof COLOR_CONFIG_INPUT_STATES)[number];
914
+ /** @internal */
915
+ declare function isColorConfigBaseTone(str: string): str is ColorConfigCardTone;
916
+ /** @internal */
917
+ declare function isColorConfigBaseKey(str: string): str is ColorConfigCardKey;
918
+ /** @internal */
919
+ declare function isColorConfigStateKey(str: string): str is ColorConfigStateKey;
920
+ /** @internal */
921
+ declare function isColorConfigStateTone(str: string): str is ColorConfigStateTone;
922
+ /** @internal */
923
+ declare function isColorConfigBlendKey(str: string): str is ColorConfigBlendKey;
924
+ /** @internal */
925
+ declare function isColorTokenValue(str: string): str is ColorConfigValue;
926
+ /** @internal */
927
+ declare function isColorValue(str: string): str is 'black' | 'white';
928
+ /** @internal */
929
+ declare function isColorOpacityValue(str: string): str is ColorConfigOpacityValue;
930
+ /** @public */
931
+ interface ThemeColorAvatarHueTokens {
932
+ _blend?: ColorBlendModeTokenValue;
933
+ _hue?: ColorHueKey;
934
+ bg?: ThemeColorTokenValue;
935
+ fg?: ThemeColorTokenValue;
936
+ }
937
+ /** @public */
938
+ interface ThemeColorAvatarTokens {
939
+ '*'?: ThemeColorAvatarHueTokens;
940
+ 'gray'?: ThemeColorAvatarHueTokens;
941
+ 'blue'?: ThemeColorAvatarHueTokens;
942
+ 'purple'?: ThemeColorAvatarHueTokens;
943
+ 'magenta'?: ThemeColorAvatarHueTokens;
944
+ 'red'?: ThemeColorAvatarHueTokens;
945
+ 'orange'?: ThemeColorAvatarHueTokens;
946
+ 'yellow'?: ThemeColorAvatarHueTokens;
947
+ 'green'?: ThemeColorAvatarHueTokens;
948
+ 'cyan'?: ThemeColorAvatarHueTokens;
949
+ }
950
+ /** @public */
951
+ interface ThemeColorBaseTokens extends ThemeColorStateTokens {
952
+ focusRing?: ThemeColorTokenValue;
953
+ backdrop?: ThemeColorTokenValue;
954
+ shadow?: {
955
+ outline?: ThemeColorTokenValue;
956
+ umbra?: ThemeColorTokenValue;
957
+ penumbra?: ThemeColorTokenValue;
958
+ ambient?: ThemeColorTokenValue;
959
+ };
960
+ }
961
+ /** @public */
962
+ interface ThemeColorBadgeToneTokens {
963
+ _blend?: ColorBlendModeTokenValue;
964
+ _hue?: ColorHueKey;
965
+ bg?: ThemeColorTokenValue;
966
+ dot?: ThemeColorTokenValue;
967
+ fg?: ThemeColorTokenValue;
968
+ icon?: ThemeColorTokenValue;
969
+ }
970
+ /** @public */
971
+ type ThemeColorBadgeTokens = Partial<Record<'*' | ThemeColorStateToneKey, ThemeColorBadgeToneTokens>>;
972
+ /** @public */
973
+ interface ThemeColorStateTokens {
974
+ _blend?: ColorBlendModeTokenValue;
975
+ _hue?: ColorHueKey;
976
+ accent?: {
977
+ fg?: ThemeColorTokenValue;
978
+ };
979
+ avatar?: ThemeColorAvatarTokens;
980
+ badge?: ThemeColorBadgeTokens;
981
+ bg?: ThemeColorTokenValue;
982
+ border?: ThemeColorTokenValue;
983
+ code?: {
984
+ bg?: ThemeColorTokenValue;
985
+ fg?: ThemeColorTokenValue;
986
+ };
987
+ fg?: ThemeColorTokenValue;
988
+ icon?: ThemeColorTokenValue;
989
+ kbd?: {
990
+ bg?: ThemeColorTokenValue;
991
+ fg?: ThemeColorTokenValue;
992
+ border?: ThemeColorTokenValue;
993
+ };
994
+ link?: {
995
+ fg?: ThemeColorTokenValue;
996
+ };
997
+ muted?: {
998
+ bg?: ThemeColorTokenValue;
999
+ fg?: ThemeColorTokenValue;
1000
+ };
1001
+ skeleton?: {
1002
+ from?: ThemeColorTokenValue;
1003
+ to?: ThemeColorTokenValue;
1004
+ };
1005
+ }
1006
+ /** @public */
1007
+ type ThemeColorStatesTokens = Partial<Record<ColorConfigState, ThemeColorStateTokens>>;
1008
+ /** @public */
1009
+ interface ThemeColorButtonTokens extends Partial<Record<ColorConfigStateTone, ThemeColorStatesTokens>> {
1010
+ _hue?: ColorHueKey;
1011
+ }
1012
+ /** @public */
1013
+ interface ThemeColorInputStateTokens {
1014
+ _blend?: ColorBlendModeTokenValue;
1015
+ _hue?: ColorHueKey;
1016
+ bg?: ThemeColorTokenValue;
1017
+ border?: ThemeColorTokenValue;
1018
+ fg?: ThemeColorTokenValue;
1019
+ muted?: {
1020
+ bg?: ThemeColorTokenValue;
1021
+ };
1022
+ placeholder?: ThemeColorTokenValue;
1023
+ }
1024
+ /** @public */
1025
+ interface ThemeColorInputTokens extends Partial<Record<ColorConfigInputState, ThemeColorInputStateTokens>> {
1026
+ _hue?: ColorHueKey;
1027
+ }
1028
+ /** @public */
1029
+ interface ThemeColorTokens {
1030
+ base?: Partial<Record<ColorConfigCardTone, ThemeColorBaseTokens>>;
1031
+ button?: Partial<Record<ThemeColorButtonModeKey, ThemeColorButtonTokens>>;
1032
+ input?: Partial<Record<ColorConfigInputMode, ThemeColorInputTokens>>;
1033
+ selectable?: Partial<Record<ColorConfigStateTone, {
1034
+ _hue?: ColorHueKey;
1035
+ } & ThemeColorStatesTokens>>;
1036
+ syntax?: Partial<Record<keyof ThemeColorSyntax, ThemeColorTokenValue>>;
1037
+ }
1038
+ /** @internal */
1039
+ interface TokenBaseKeyNode {
1040
+ type: 'base';
1041
+ tone: ColorConfigCardTone;
1042
+ key: ColorConfigCardKey | ColorConfigBlendKey;
1043
+ }
1044
+ /** @internal */
1045
+ interface TokenButtonKeyNode {
1046
+ type: 'button';
1047
+ tone: ColorConfigStateTone;
1048
+ mode: ThemeColorButtonModeKey;
1049
+ key: ColorConfigStateKey | ColorConfigBlendKey;
1050
+ }
1051
+ /** @internal */
1052
+ type TokenKeyNode = TokenBaseKeyNode | TokenButtonKeyNode;
1053
+ /** @internal */
1054
+ interface TokenColorValueNode {
1055
+ type: 'color';
1056
+ key?: 'black' | 'white';
1057
+ hue?: ColorHueKey;
1058
+ mix?: number;
1059
+ opacity?: number;
1060
+ tint?: ColorTintKey;
1061
+ }
1062
+ /** @internal */
1063
+ interface TokenHueValueNode {
1064
+ type: 'hue';
1065
+ value?: ColorHueKey;
1066
+ }
1067
+ /** @internal */
1068
+ interface TokenBlendModeValueNode {
1069
+ type: 'blendMode';
1070
+ value?: ThemeColorBlendModeKey;
1071
+ }
1072
+ /** @internal */
1073
+ type TokenValueNode = TokenColorValueNode | TokenHueValueNode | TokenBlendModeValueNode;
1074
+ /** @internal */
1075
+ declare function parseTokenKey(str: string): TokenKeyNode | undefined;
1076
+ /** @internal */
1077
+ declare function parseTokenValue(str: string): TokenValueNode | undefined;
1078
+ /** @public */
1079
+ type ThemeColorPalette = {
1080
+ black: string | ColorTint;
1081
+ white: string | ColorTint;
1082
+ } & Record<ColorHueKey, Record<ColorTintKey, string | ColorTint>>;
1083
+ /** @public */
1084
+ interface ThemeConfig {
1085
+ avatar?: ThemeAvatar_v2;
1086
+ button?: {
1087
+ border: {
1088
+ width: number;
1089
+ };
1090
+ focusRing: ThemeFocusRing;
1091
+ textWeight: ThemeFontWeightKey;
1092
+ };
1093
+ card?: {
1094
+ border: {
1095
+ width: number;
1096
+ };
1097
+ focusRing: ThemeFocusRing;
1098
+ shadow: {
1099
+ outline: number;
1100
+ };
1101
+ };
1102
+ color?: ThemeColorTokens;
1103
+ container?: number[];
1104
+ font?: ThemeFonts;
1105
+ input?: ThemeInput_v2;
1106
+ layer?: ThemeLayer;
1107
+ media?: number[];
1108
+ palette?: ThemeColorPalette;
1109
+ radius?: number[];
1110
+ shadow?: Array<ThemeShadow | null>;
1111
+ space?: number[];
1112
+ /** @internal */
1113
+ style?: ThemeStyles;
1114
+ }
1115
+ /** @internal */
1116
+ declare function buildTheme(config?: ThemeConfig): RootTheme;
1117
+ /**
1118
+ * @internal
1119
+ */
1120
+ interface RGB {
1121
+ r: number;
1122
+ g: number;
1123
+ b: number;
1124
+ a?: undefined;
1125
+ }
1126
+ /**
1127
+ * @internal
1128
+ */
1129
+ interface RGBA {
1130
+ r: number;
1131
+ g: number;
1132
+ b: number;
1133
+ a: number;
1134
+ }
1135
+ /**
1136
+ * @internal
1137
+ */
1138
+ interface HSL {
1139
+ h: number;
1140
+ s: number;
1141
+ l: number;
1142
+ }
1143
+ /**
1144
+ * Apply the \`mix\` blend mode
1145
+ * @internal
1146
+ */
1147
+ declare function mix(b: RGB | RGBA, s: RGB | RGBA, weight: number): RGB;
1148
+ /**
1149
+ * Apply the \`multiply\` blend mode
1150
+ * Source: https://www.w3.org/TR/compositing-1/#blendingmultiply
1151
+ * @internal
1152
+ */
1153
+ declare function multiply(b: RGB | RGBA, s: RGB | RGBA): RGB;
1154
+ /**
1155
+ * Apply the \`screen\` blend mode
1156
+ * Source: https://www.w3.org/TR/compositing-1/#blendingscreen
1157
+ * @internal
1158
+ */
1159
+ declare function screen(b: RGB | RGBA, s: RGB | RGBA): RGB;
1160
+ /** @internal */
1161
+ declare function getContrastRatio(bg: string, fg: string): number;
1162
+ /**
1163
+ * @internal
1164
+ */
1165
+ declare function hexToRgb(hex: string): RGB;
1166
+ /**
1167
+ * @internal
1168
+ */
1169
+ declare function rgbaToRGBA(rgba: string): RGBA;
1170
+ /**
1171
+ * @internal
1172
+ */
1173
+ declare function rgbToHex(color: RGB | RGBA): string;
1174
+ /**
1175
+ * @internal
1176
+ * @see https://css-tricks.com/converting-color-spaces-in-javascript/
1177
+ */
1178
+ declare function rgbToHsl({ r, g, b }: RGB): HSL;
1179
+ /**
1180
+ * @internal
1181
+ */
1182
+ declare function hslToRgb(hsl: HSL): RGB;
1183
+ /**
1184
+ * @internal
1185
+ */
1186
+ declare function parseColor(color: unknown): RGB | RGBA;
1187
+ /**
1188
+ * @internal
1189
+ */
1190
+ declare function rgba(color: unknown, a: number): string;
1191
+ /** @internal */
1192
+ declare function getScopedTheme(themeProp: RootTheme | RootTheme_v2, scheme: ThemeColorSchemeKey, tone: ThemeColorCardToneKey): Theme;
1193
+ /** @public */
1194
+ declare function getTheme_v2(theme: Theme): Theme_v2;
1195
+ /** @internal */
1196
+ declare function is_v0(themeProp: RootTheme | RootTheme_v2): themeProp is RootTheme;
1197
+ /** @internal */
1198
+ declare function is_v2(themeProp: RootTheme | RootTheme_v2): themeProp is RootTheme_v2;
1199
+ /** @internal */
1200
+ declare function v0_v2(v0: RootTheme): RootTheme_v2;
1201
+ /** @internal */
1202
+ declare function v2_v0(v2: RootTheme_v2): RootTheme;
1203
+ export { COLOR_CONFIG_BLEND_KEYS as $, THEME_COLOR_STATE_TONES as $n, ThemeColorGenericState as $t, TokenHueValueNode as A, ThemeColorAvatarHue_v2 as An, ThemeColorScheme as At, ThemeColorInputTokens as B, ThemeColorInputModeKey as Bn, ThemeColorMutedTone as Bt, ThemeConfig as C, ThemeColorButtonMode_v2 as Cn, BaseTheme as Ct, TokenBlendModeValueNode as D, ThemeColorKBD as Dn, Theme_v2 as Dt, TokenBaseKeyNode as E, ThemeColorState_v2 as En, Theme as Et, ThemeColorBadgeTokens as F, isColorTintKey as Fn, ThemeColorSolidTone as Ft, isColorConfigBaseTone as G, THEME_COLOR_AVATAR_COLORS as Gn, ThemeColorCardState as Gt, ThemeColorStatesTokens as H, ThemeColorSchemeKey as Hn, ThemeColorInputState as Ht, ThemeColorBadgeToneTokens as I, ThemeColorAvatarColorKey as In, ThemeColorSelectable as It, isColorConfigStateTone as J, THEME_COLOR_CARD_TONES as Jn, ThemeColorButtonStates as Jt, isColorConfigBlendKey as K, THEME_COLOR_BLEND_MODES as Kn, ThemeColorButton as Kt, ThemeColorBaseTokens as L, ThemeColorBlendModeKey as Ln, ThemeColorSelectableState as Lt, TokenValueNode as M, isColorBlendModeValue as Mn, ThemeColorSpot as Mt, ThemeColorAvatarHueTokens as N, isColorButtonMode as Nn, ThemeColorSpotKey as Nt, TokenButtonKeyNode as O, ThemeColorBadgeTone_v2 as On, ThemeInput as Ot, ThemeColorAvatarTokens as P, isColorHueKey as Pn, ThemeColorSolid as Pt, COLOR_CONFIG_AVATAR_COLORS as Q, THEME_COLOR_STATES as Qn, ThemeColorToneKey as Qt, ThemeColorButtonTokens as R, ThemeColorButtonModeKey as Rn, ThemeColorSelectableStates as Rt, ThemeColorPalette as S, ThemeColorInput_v2 as Sn, createColorTheme as St, parseTokenKey as T, ThemeColorButton_v2 as Tn, RootTheme_v2 as Tt, ThemeColorTokens as U, ThemeColorStateKey as Un, ThemeColorInputStates as Ut, ThemeColorStateTokens as V, ThemeColorInputStateKey as Vn, ThemeColorInput as Vt, isColorConfigBaseKey as W, ThemeColorStateToneKey as Wn, ThemeColorCard as Wt, isColorTokenValue as X, THEME_COLOR_INPUT_STATES as Xn, ThemeColorBase as Xt, isColorOpacityValue as Y, THEME_COLOR_INPUT_MODES as Yn, ThemeColorButtonTones as Yt, isColorValue as Z, THEME_COLOR_SCHEMES as Zn, ThemeColorName as Zt, mix as _, ThemeColorShadow as _n, ColorConfigStateTone as _t, getTheme_v2 as a, ThemeInput_v2 as an, COLOR_CONFIG_STATE_KEYS as at, RGBA as b, ThemeColorInputMode_v2 as bn, PartialThemeColorBuilderOpts as bt, parseColor as c, ThemeFontSize as cn, ColorConfigAvatarColor as ct, rgbToHex as d, ThemeFonts as dn, ColorConfigCardTone as dt, ThemeAvatar as en, ThemeAvatar_v2 as er, COLOR_CONFIG_CARD_KEYS as et, rgbToHsl as f, CSSObject as fn, ColorConfigInputMode as ft, multiply as g, ThemeColorSyntax as gn, ColorConfigStateKey as gt, screen as h, ThemeColorSchemes_v2 as hn, ColorConfigState as ht, is_v0 as i, ThemeLayer as in, COLOR_CONFIG_STATES as it, TokenKeyNode as j, ThemeColorAvatar_v2 as jn, ThemeColorSchemes as jt, TokenColorValueNode as k, ThemeColorBadge_v2 as kn, ThemeColor as kt, hexToRgb as l, ThemeFontWeight as ln, ColorConfigBlendKey as lt, getContrastRatio as m, ThemeColorScheme_v2 as mn, ColorConfigOpacityValue as mt, v0_v2 as n, ThemeBoxShadow as nn, COLOR_CONFIG_INPUT_MODES as nt, getScopedTheme as o, ThemeFont as on, COLOR_CONFIG_STATE_TONES as ot, rgbaToRGBA as p, ThemeColorCard_v2 as pn, ColorConfigInputState as pt, isColorConfigStateKey as q, THEME_COLOR_BUTTON_MODES as qn, ThemeColorButtonState as qt, is_v2 as r, ThemeShadow as rn, COLOR_CONFIG_INPUT_STATES as rt, rgba as s, ThemeFontKey as sn, ColorBlendModeTokenValue as st, v2_v0 as t, ThemeStyles as tn, ThemeFocusRing as tr, COLOR_CONFIG_CARD_TONES as tt, hslToRgb as u, ThemeFontWeightKey as un, ColorConfigCardKey as ut, HSL as v, ThemeColorSelectableTone_v2 as vn, ColorConfigValue as vt, parseTokenValue as w, ThemeColorButtonTone_v2 as wn, RootTheme as wt, buildTheme as x, ThemeColorInputState_v2 as xn, ThemeColorBuilderOpts as xt, RGB as y, ThemeColorSelectable_v2 as yn, ThemeColorTokenValue as yt, ThemeColorInputStateTokens as z, ThemeColorCardToneKey as zn, ThemeColorMuted as zt };
1204
+ //# sourceMappingURL=theme.d.ts.map