@sanity/ui 2.0.0-alpha.13 → 2.0.0-alpha.15

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 (34) hide show
  1. package/dist/index.cjs.mjs +27 -0
  2. package/dist/index.d.ts +359 -7
  3. package/dist/index.esm.js +860 -60
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.js +887 -60
  6. package/dist/index.js.map +1 -1
  7. package/package.json +2 -2
  8. package/src/components/dialog/dialog.tsx +4 -2
  9. package/src/theme/_internal/__workshop__/build/story.tsx +288 -0
  10. package/src/theme/_internal/__workshop__/build/theme.ts +3 -0
  11. package/src/theme/_internal/__workshop__/index.ts +14 -0
  12. package/src/theme/_internal/build/buildTheme.test.ts +78 -0
  13. package/src/theme/_internal/build/buildTheme.ts +16 -0
  14. package/src/theme/_internal/build/colorTheme/buildColorTheme.test.ts +185 -0
  15. package/src/theme/_internal/build/colorTheme/buildColorTheme.ts +164 -0
  16. package/src/theme/_internal/build/colorTheme/renderColorTheme.ts +242 -0
  17. package/src/theme/_internal/build/colorTheme/resolveColorTokens.ts +121 -0
  18. package/src/theme/_internal/build/defaults/colorPalette.ts +8 -0
  19. package/src/theme/_internal/build/defaults/colorTokens.ts +147 -0
  20. package/src/theme/_internal/build/helpers.ts +65 -0
  21. package/src/theme/_internal/build/index.ts +1 -0
  22. package/src/theme/_internal/config/helpers.ts +47 -0
  23. package/src/theme/_internal/config/index.ts +3 -0
  24. package/src/theme/_internal/config/token/index.ts +2 -0
  25. package/src/theme/_internal/config/token/parseTokenKey.test.ts +72 -0
  26. package/src/theme/_internal/config/token/parseTokenKey.ts +88 -0
  27. package/src/theme/_internal/config/token/parseTokenValue.test.ts +45 -0
  28. package/src/theme/_internal/config/token/parseTokenValue.ts +123 -0
  29. package/src/theme/_internal/config/types.ts +137 -0
  30. package/src/theme/_internal/constants.ts +48 -0
  31. package/src/theme/_internal/helpers.ts +19 -0
  32. package/src/theme/_internal/index.ts +5 -0
  33. package/src/theme/_internal/types.ts +91 -0
  34. package/src/theme/index.ts +1 -0
@@ -9,6 +9,18 @@ export const BoundaryElementProvider = cjs.BoundaryElementProvider;
9
9
  export const Box = cjs.Box;
10
10
  export const Breadcrumbs = cjs.Breadcrumbs;
11
11
  export const Button = cjs.Button;
12
+ export const COLOR_BASE_TONES = cjs.COLOR_BASE_TONES;
13
+ export const COLOR_BLEND_MODES = cjs.COLOR_BLEND_MODES;
14
+ export const COLOR_BUTTON_MODES = cjs.COLOR_BUTTON_MODES;
15
+ export const COLOR_CONFIG_BASE_KEYS = cjs.COLOR_CONFIG_BASE_KEYS;
16
+ export const COLOR_CONFIG_BASE_TONES = cjs.COLOR_CONFIG_BASE_TONES;
17
+ export const COLOR_CONFIG_BLEND_KEYS = cjs.COLOR_CONFIG_BLEND_KEYS;
18
+ export const COLOR_CONFIG_STATE_KEYS = cjs.COLOR_CONFIG_STATE_KEYS;
19
+ export const COLOR_CONFIG_STATE_TONES = cjs.COLOR_CONFIG_STATE_TONES;
20
+ export const COLOR_HUES = cjs.COLOR_HUES;
21
+ export const COLOR_STATES = cjs.COLOR_STATES;
22
+ export const COLOR_STATE_TONES = cjs.COLOR_STATE_TONES;
23
+ export const COLOR_TINTS = cjs.COLOR_TINTS;
12
24
  export const Card = cjs.Card;
13
25
  export const Checkbox = cjs.Checkbox;
14
26
  export const Code = cjs.Code;
@@ -74,12 +86,25 @@ export const _raf = cjs._raf;
74
86
  export const _raf2 = cjs._raf2;
75
87
  export const _responsive = cjs._responsive;
76
88
  export const attemptFocus = cjs.attemptFocus;
89
+ export const buildTheme = cjs.buildTheme;
77
90
  export const containsOrEqualsElement = cjs.containsOrEqualsElement;
78
91
  export const createColorTheme = cjs.createColorTheme;
79
92
  export const focusFirstDescendant = cjs.focusFirstDescendant;
80
93
  export const focusLastDescendant = cjs.focusLastDescendant;
81
94
  export const hexToRgb = cjs.hexToRgb;
82
95
  export const hslToRgb = cjs.hslToRgb;
96
+ export const isColorBlendModeValue = cjs.isColorBlendModeValue;
97
+ export const isColorButtonMode = cjs.isColorButtonMode;
98
+ export const isColorConfigBaseKey = cjs.isColorConfigBaseKey;
99
+ export const isColorConfigBaseTone = cjs.isColorConfigBaseTone;
100
+ export const isColorConfigBlendKey = cjs.isColorConfigBlendKey;
101
+ export const isColorConfigStateKey = cjs.isColorConfigStateKey;
102
+ export const isColorConfigStateTone = cjs.isColorConfigStateTone;
103
+ export const isColorHueValue = cjs.isColorHueValue;
104
+ export const isColorOpacityValue = cjs.isColorOpacityValue;
105
+ export const isColorTintValue = cjs.isColorTintValue;
106
+ export const isColorTokenValue = cjs.isColorTokenValue;
107
+ export const isColorValue = cjs.isColorValue;
83
108
  export const isFocusable = cjs.isFocusable;
84
109
  export const isHTMLAnchorElement = cjs.isHTMLAnchorElement;
85
110
  export const isHTMLButtonElement = cjs.isHTMLButtonElement;
@@ -89,6 +114,8 @@ export const isHTMLSelectElement = cjs.isHTMLSelectElement;
89
114
  export const isHTMLTextAreaElement = cjs.isHTMLTextAreaElement;
90
115
  export const multiply = cjs.multiply;
91
116
  export const parseColor = cjs.parseColor;
117
+ export const parseTokenKey = cjs.parseTokenKey;
118
+ export const parseTokenValue = cjs.parseTokenValue;
92
119
  export const rem = cjs.rem;
93
120
  export const responsiveCodeFontStyle = cjs.responsiveCodeFontStyle;
94
121
  export const responsiveHeadingFont = cjs.responsiveHeadingFont;
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@
3
3
  import {AnimationEventHandler} from 'react'
4
4
  import {AriaRole} from 'react'
5
5
  import {ClipboardEventHandler} from 'react'
6
+ import {ColorTint} from '@sanity/color'
6
7
  import {Component} from 'react'
7
8
  import {CompositionEventHandler} from 'react'
8
9
  import {CSSProperties} from 'react'
@@ -49,6 +50,7 @@ export declare const Autocomplete: <Option extends BaseAutocompleteOption>(
49
50
  props: AutocompleteProps<Option> &
50
51
  Omit<
51
52
  HTMLProps<HTMLInputElement>,
53
+ | 'type'
52
54
  | 'value'
53
55
  | 'ref'
54
56
  | 'id'
@@ -66,7 +68,6 @@ export declare const Autocomplete: <Option extends BaseAutocompleteOption>(
66
68
  | 'onSelect'
67
69
  | 'as'
68
70
  | 'autoComplete'
69
- | 'type'
70
71
  > & {
71
72
  ref?: Ref<HTMLInputElement> | undefined
72
73
  },
@@ -335,6 +336,25 @@ export declare interface BaseAutocompleteOption {
335
336
  value: string
336
337
  }
337
338
 
339
+ export declare interface BaseColorTokens {
340
+ _blend?: ColorBlendModeTokenValue
341
+ _hue?: ColorHueValue
342
+ bg?: ColorTokenValue
343
+ fg?: ColorTokenValue
344
+ border?: ColorTokenValue
345
+ focusRing?: ColorTokenValue
346
+ shadow?: {
347
+ outline?: ColorTokenValue
348
+ umbra?: ColorTokenValue
349
+ penumbra?: ColorTokenValue
350
+ ambient?: ColorTokenValue
351
+ }
352
+ skeleton?: {
353
+ from?: ColorTokenValue
354
+ to?: ColorTokenValue
355
+ }
356
+ }
357
+
338
358
  /**
339
359
  * @public
340
360
  */
@@ -443,7 +463,7 @@ export declare type BoxSizing = 'content' | 'border'
443
463
  */
444
464
  export declare const Breadcrumbs: ForwardRefExoticComponent<
445
465
  BreadcrumbsProps &
446
- Omit<HTMLProps<HTMLOListElement>, 'ref' | 'as' | 'type'> &
466
+ Omit<HTMLProps<HTMLOListElement>, 'type' | 'ref' | 'as'> &
447
467
  RefAttributes<HTMLOListElement>
448
468
  >
449
469
 
@@ -456,6 +476,9 @@ export declare interface BreadcrumbsProps {
456
476
  space?: number | number[]
457
477
  }
458
478
 
479
+ /** @internal */
480
+ export declare function buildTheme(config?: ThemeConfig): TMP_Theme
481
+
459
482
  /**
460
483
  * @public
461
484
  */
@@ -464,11 +487,18 @@ export declare const Button: ForwardRefExoticComponent<
464
487
  RefAttributes<HTMLButtonElement>
465
488
  >
466
489
 
490
+ export declare interface ButtonColorTokens
491
+ extends Partial<Record<ColorButtonMode, ButtonModeColorTokens>> {
492
+ _hue?: ColorHueValue
493
+ }
494
+
467
495
  /**
468
496
  * @public
469
497
  */
470
498
  export declare type ButtonMode = 'default' | 'ghost' | 'bleed'
471
499
 
500
+ export declare type ButtonModeColorTokens = Partial<Record<'*' | ColorState, StateColorTokens>>
501
+
472
502
  /**
473
503
  * @public
474
504
  */
@@ -557,7 +587,7 @@ export declare type CardTone = ThemeColorToneKey | 'inherit'
557
587
  * @public
558
588
  */
559
589
  export declare const Checkbox: ForwardRefExoticComponent<
560
- Omit<Omit<HTMLProps<HTMLInputElement>, 'as' | 'type'> & CheckboxProps, 'ref'> &
590
+ Omit<Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & CheckboxProps, 'ref'> &
561
591
  RefAttributes<HTMLInputElement>
562
592
  >
563
593
 
@@ -611,6 +641,165 @@ export declare interface CodeSkeletonProps extends SkeletonProps {
611
641
  size?: number | number[]
612
642
  }
613
643
 
644
+ export declare const COLOR_BASE_TONES: readonly [
645
+ 'transparent',
646
+ 'default',
647
+ 'primary',
648
+ 'positive',
649
+ 'caution',
650
+ 'critical',
651
+ ]
652
+
653
+ export declare const COLOR_BLEND_MODES: readonly ['multiply', 'screen']
654
+
655
+ export declare const COLOR_BUTTON_MODES: readonly ['default', 'ghost', 'bleed']
656
+
657
+ export declare const COLOR_CONFIG_BASE_KEYS: readonly [
658
+ '_hue',
659
+ 'bg',
660
+ 'fg',
661
+ 'border',
662
+ 'focusRing',
663
+ 'muted/fg',
664
+ 'link/fg',
665
+ 'code/bg',
666
+ 'code/fg',
667
+ 'shadow/outline',
668
+ 'shadow/umbra',
669
+ 'shadow/penumbra',
670
+ 'shadow/ambient',
671
+ 'skeleton/from',
672
+ 'skeleton/to',
673
+ ]
674
+
675
+ export declare const COLOR_CONFIG_BASE_TONES: readonly [
676
+ '*',
677
+ 'transparent',
678
+ 'default',
679
+ 'primary',
680
+ 'positive',
681
+ 'caution',
682
+ 'critical',
683
+ ]
684
+
685
+ export declare const COLOR_CONFIG_BLEND_KEYS: readonly ['_blend']
686
+
687
+ export declare const COLOR_CONFIG_STATE_KEYS: readonly [
688
+ '_hue',
689
+ 'bg',
690
+ 'fg',
691
+ 'border',
692
+ 'focusRing',
693
+ 'muted/fg',
694
+ 'link/fg',
695
+ 'code/bg',
696
+ 'code/fg',
697
+ 'skeleton/from',
698
+ 'skeleton/to',
699
+ ]
700
+
701
+ export declare const COLOR_CONFIG_STATE_TONES: readonly [
702
+ '*',
703
+ 'default',
704
+ 'primary',
705
+ 'positive',
706
+ 'caution',
707
+ 'critical',
708
+ ]
709
+
710
+ export declare const COLOR_HUES: readonly [
711
+ 'gray',
712
+ 'cyan',
713
+ 'blue',
714
+ 'purple',
715
+ 'magenta',
716
+ 'red',
717
+ 'orange',
718
+ 'yellow',
719
+ 'green',
720
+ ]
721
+
722
+ export declare const COLOR_STATE_TONES: readonly [
723
+ 'default',
724
+ 'primary',
725
+ 'positive',
726
+ 'caution',
727
+ 'critical',
728
+ ]
729
+
730
+ export declare const COLOR_STATES: readonly [
731
+ 'enabled',
732
+ 'hovered',
733
+ 'pressed',
734
+ 'selected',
735
+ 'disabled',
736
+ ]
737
+
738
+ export declare const COLOR_TINTS: readonly [
739
+ '50',
740
+ '100',
741
+ '200',
742
+ '300',
743
+ '400',
744
+ '500',
745
+ '600',
746
+ '700',
747
+ '800',
748
+ '900',
749
+ '950',
750
+ ]
751
+
752
+ export declare type ColorBaseTone = (typeof COLOR_BASE_TONES)[number]
753
+
754
+ export declare type ColorBlendModeTokenValue = [ColorBlendModeValue, ColorBlendModeValue]
755
+
756
+ export declare type ColorBlendModeValue = (typeof COLOR_BLEND_MODES)[number]
757
+
758
+ export declare type ColorButtonMode = (typeof COLOR_BUTTON_MODES)[number]
759
+
760
+ export declare type ColorConfigBaseKey = (typeof COLOR_CONFIG_BASE_KEYS)[number]
761
+
762
+ export declare type ColorConfigBaseTone = (typeof COLOR_CONFIG_BASE_TONES)[number]
763
+
764
+ export declare type ColorConfigBlendKey = (typeof COLOR_CONFIG_BLEND_KEYS)[number]
765
+
766
+ export declare type ColorConfigOpacityValue = `0` | `0.${number}` | `1`
767
+
768
+ export declare type ColorConfigStateKey = (typeof COLOR_CONFIG_STATE_KEYS)[number]
769
+
770
+ export declare type ColorConfigStateTone = (typeof COLOR_CONFIG_STATE_TONES)[number]
771
+
772
+ export declare type ColorConfigValue =
773
+ | `black`
774
+ | `white`
775
+ | `black/${ColorConfigOpacityValue}`
776
+ | `white/${ColorConfigOpacityValue}`
777
+ | `${ColorHueValue}`
778
+ | `${ColorHueValue}/${ColorTintValue}`
779
+ | `${ColorHueValue}/${ColorTintValue}/${ColorConfigOpacityValue}`
780
+ | `${ColorTintValue}`
781
+ | `${ColorTintValue}/${ColorConfigOpacityValue}`
782
+ | ColorBlendModeValue
783
+
784
+ export declare type ColorHueValue = (typeof COLOR_HUES)[number]
785
+
786
+ export declare type ColorState = (typeof COLOR_STATES)[number]
787
+
788
+ export declare type ColorStateTone = (typeof COLOR_STATE_TONES)[number]
789
+
790
+ export declare interface ColorThemeConfig {
791
+ palette?: TMP_ColorPalette
792
+ tokens?: ColorTokens
793
+ }
794
+
795
+ export declare type ColorTintValue = (typeof COLOR_TINTS)[number]
796
+
797
+ export declare interface ColorTokens extends Partial<Record<ColorConfigBaseTone, BaseColorTokens>> {
798
+ button?: Partial<Record<ColorConfigStateTone, ButtonColorTokens>>
799
+ }
800
+
801
+ export declare type ColorTokenValue = [ColorConfigValue, ColorConfigValue]
802
+
614
803
  /**
615
804
  * @public
616
805
  */
@@ -1055,6 +1244,30 @@ export declare interface InlineProps extends Omit<BoxProps, 'display'> {
1055
1244
  space?: number | number[]
1056
1245
  }
1057
1246
 
1247
+ export declare function isColorBlendModeValue(str: string): str is ColorBlendModeValue
1248
+
1249
+ export declare function isColorButtonMode(str: string): str is ColorButtonMode
1250
+
1251
+ export declare function isColorConfigBaseKey(str: string): str is ColorConfigBaseKey
1252
+
1253
+ export declare function isColorConfigBaseTone(str: string): str is ColorConfigBaseTone
1254
+
1255
+ export declare function isColorConfigBlendKey(str: string): str is ColorConfigBlendKey
1256
+
1257
+ export declare function isColorConfigStateKey(str: string): str is ColorConfigStateKey
1258
+
1259
+ export declare function isColorConfigStateTone(str: string): str is ColorConfigStateTone
1260
+
1261
+ export declare function isColorHueValue(str: string): str is ColorHueValue
1262
+
1263
+ export declare function isColorOpacityValue(str: string): str is ColorConfigOpacityValue
1264
+
1265
+ export declare function isColorTintValue(str: string): str is ColorTintValue
1266
+
1267
+ export declare function isColorTokenValue(str: string): str is ColorConfigValue
1268
+
1269
+ export declare function isColorValue(str: string): str is 'black' | 'white'
1270
+
1058
1271
  /**
1059
1272
  * @internal
1060
1273
  */
@@ -1677,6 +1890,10 @@ export declare function multiply(b: RGB | RGBA, s: RGB | RGBA): RGB
1677
1890
  */
1678
1891
  export declare function parseColor(color: unknown): RGB | RGBA
1679
1892
 
1893
+ export declare function parseTokenKey(str: string): TokenKeyNode | undefined
1894
+
1895
+ export declare function parseTokenValue(str: string): TokenValueNode | undefined
1896
+
1680
1897
  /**
1681
1898
  * @public
1682
1899
  */
@@ -1808,7 +2025,7 @@ export declare interface PortalProviderProps {
1808
2025
  * @public
1809
2026
  */
1810
2027
  export declare const Radio: ForwardRefExoticComponent<
1811
- Omit<Omit<HTMLProps<HTMLInputElement>, 'as' | 'type'> & RadioProps, 'ref'> &
2028
+ Omit<Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & RadioProps, 'ref'> &
1812
2029
  RefAttributes<HTMLInputElement>
1813
2030
  >
1814
2031
 
@@ -2185,6 +2402,32 @@ export declare interface StackProps extends BoxProps {
2185
2402
  space?: number | number[]
2186
2403
  }
2187
2404
 
2405
+ export declare interface StateColorTokens {
2406
+ _blend?: ColorBlendModeTokenValue
2407
+ _hue?: ColorHueValue
2408
+ bg?: ColorTokenValue
2409
+ bg2?: ColorTokenValue
2410
+ fg?: ColorTokenValue
2411
+ border?: ColorTokenValue
2412
+ muted?: {
2413
+ fg?: ColorTokenValue
2414
+ }
2415
+ accent?: {
2416
+ fg?: ColorTokenValue
2417
+ }
2418
+ link?: {
2419
+ fg?: ColorTokenValue
2420
+ }
2421
+ code?: {
2422
+ bg?: ColorTokenValue
2423
+ fg?: ColorTokenValue
2424
+ }
2425
+ skeleton?: {
2426
+ from?: ColorTokenValue
2427
+ to?: ColorTokenValue
2428
+ }
2429
+ }
2430
+
2188
2431
  /**
2189
2432
  * @public
2190
2433
  */
@@ -2207,7 +2450,7 @@ export declare interface Styles {
2207
2450
  * @public
2208
2451
  */
2209
2452
  export declare const Switch: ForwardRefExoticComponent<
2210
- Omit<Omit<HTMLProps<HTMLInputElement>, 'as' | 'type'> & SwitchProps, 'ref'> &
2453
+ Omit<Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & SwitchProps, 'ref'> &
2211
2454
  RefAttributes<HTMLInputElement>
2212
2455
  >
2213
2456
 
@@ -2226,7 +2469,7 @@ export declare const Tab: ForwardRefExoticComponent<
2226
2469
  TabProps &
2227
2470
  Omit<
2228
2471
  HTMLProps<HTMLButtonElement>,
2229
- 'label' | 'width' | 'id' | 'aria-controls' | 'as' | 'type'
2472
+ 'type' | 'label' | 'width' | 'id' | 'aria-controls' | 'as'
2230
2473
  >,
2231
2474
  'ref'
2232
2475
  > &
@@ -2325,7 +2568,7 @@ export declare interface TextAreaProps extends ResponsiveRadiusProps {
2325
2568
  * @public
2326
2569
  */
2327
2570
  export declare const TextInput: ForwardRefExoticComponent<
2328
- Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, 'prefix' | 'as' | 'type'>, 'ref'> &
2571
+ Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, 'type' | 'prefix' | 'as'>, 'ref'> &
2329
2572
  RefAttributes<HTMLInputElement>
2330
2573
  >
2331
2574
 
@@ -2852,6 +3095,10 @@ export declare type ThemeColorToneKey =
2852
3095
  | 'caution'
2853
3096
  | 'critical'
2854
3097
 
3098
+ export declare interface ThemeConfig {
3099
+ color?: ColorThemeConfig
3100
+ }
3101
+
2855
3102
  /**
2856
3103
  * @public
2857
3104
  */
@@ -2994,6 +3241,73 @@ export declare interface ThemeShadow {
2994
3241
  ambient: BoxShadow
2995
3242
  }
2996
3243
 
3244
+ export declare interface TMP_BaseColorTheme {
3245
+ _blend: ColorBlendModeValue
3246
+ dark: boolean
3247
+ base: {
3248
+ bg: string
3249
+ fg: string
3250
+ border: string
3251
+ focusRing: string
3252
+ shadow: {
3253
+ outline: string
3254
+ umbra: string
3255
+ penumbra: string
3256
+ ambient: string
3257
+ }
3258
+ skeleton: {
3259
+ from: string
3260
+ to: string
3261
+ }
3262
+ }
3263
+ button: TMP_ButtonColorTheme
3264
+ }
3265
+
3266
+ export declare type TMP_ButtonColorTheme = Record<ColorStateTone, TMP_ButtonModesColorTheme>
3267
+
3268
+ export declare type TMP_ButtonModesColorTheme = Record<ColorButtonMode, TMP_ButtonStatesColorTheme>
3269
+
3270
+ export declare type TMP_ButtonStatesColorTheme = Record<ColorState, TMP_StateColorTheme>
3271
+
3272
+ export declare type TMP_ColorPalette = {
3273
+ black: string | ColorTint
3274
+ white: string | ColorTint
3275
+ } & Record<ColorHueValue, Record<ColorTintValue, string | ColorTint>>
3276
+
3277
+ export declare type TMP_ColorTheme = Record<ColorBaseTone, TMP_BaseColorTheme>
3278
+
3279
+ export declare interface TMP_StateColorTheme {
3280
+ _blend: ColorBlendModeValue
3281
+ bg: string
3282
+ bg2?: string
3283
+ fg: string
3284
+ border: string
3285
+ muted: {
3286
+ fg: string
3287
+ }
3288
+ accent: {
3289
+ fg: string
3290
+ }
3291
+ link: {
3292
+ fg: string
3293
+ }
3294
+ code: {
3295
+ bg: string
3296
+ fg: string
3297
+ }
3298
+ skeleton?: {
3299
+ from: string
3300
+ to: string
3301
+ }
3302
+ }
3303
+
3304
+ export declare interface TMP_Theme {
3305
+ color: {
3306
+ light: TMP_ColorTheme
3307
+ dark: TMP_ColorTheme
3308
+ }
3309
+ }
3310
+
2997
3311
  /**
2998
3312
  * @public
2999
3313
  */
@@ -3049,6 +3363,44 @@ export declare interface ToastProviderProps {
3049
3363
  zOffset?: number | number[]
3050
3364
  }
3051
3365
 
3366
+ export declare interface TokenBaseKeyNode {
3367
+ type: 'base'
3368
+ tone: ColorConfigBaseTone
3369
+ key: ColorConfigBaseKey | ColorConfigBlendKey
3370
+ }
3371
+
3372
+ export declare interface TokenBlendModeValueNode {
3373
+ type: 'blendMode'
3374
+ value?: ColorBlendModeValue
3375
+ }
3376
+
3377
+ export declare interface TokenButtonKeyNode {
3378
+ type: 'button'
3379
+ tone: ColorConfigStateTone
3380
+ mode: ColorButtonMode
3381
+ key: ColorConfigStateKey | ColorConfigBlendKey
3382
+ }
3383
+
3384
+ export declare interface TokenColorValueNode {
3385
+ type: 'color'
3386
+ key?: 'black' | 'white' | `${ColorHueValue}/${ColorTintValue}` | ColorTintValue
3387
+ hue?: ColorHueValue
3388
+ tint?: ColorTintValue
3389
+ opacity?: number
3390
+ }
3391
+
3392
+ export declare interface TokenHueValueNode {
3393
+ type: 'hue'
3394
+ value?: ColorHueValue
3395
+ }
3396
+
3397
+ export declare type TokenKeyNode = TokenBaseKeyNode | TokenButtonKeyNode
3398
+
3399
+ export declare type TokenValueNode =
3400
+ | TokenColorValueNode
3401
+ | TokenHueValueNode
3402
+ | TokenBlendModeValueNode
3403
+
3052
3404
  /**
3053
3405
  * @public
3054
3406
  */