@sanity/ui 3.3.4 → 3.3.5

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