@sanity/ui 2.0.0-alpha.1 → 2.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.mjs +3 -0
- package/dist/index.d.ts +309 -411
- package/dist/index.esm.js +5098 -2428
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5230 -2557
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/dialog/constants.ts +4 -0
- package/src/components/dialog/dialog.tsx +86 -24
- package/src/components/dialog/styles.ts +3 -4
- package/src/components/menu/__workshop__/closableMenuButton.tsx +2 -2
- package/src/components/menu/menuDivider.ts +2 -1
- package/src/components/menu/menuGroup.tsx +22 -23
- package/src/components/menu/menuItem.tsx +31 -37
- package/src/components/skeleton/styles.ts +8 -7
- package/src/components/tree/style.ts +19 -20
- package/src/primitives/_selectable/style.ts +25 -22
- package/src/primitives/avatar/avatar.tsx +8 -3
- package/src/primitives/avatar/avatarCounter.tsx +5 -4
- package/src/primitives/avatar/spotColors.ts +53 -0
- package/src/primitives/avatar/styles.ts +5 -7
- package/src/primitives/avatar/types.ts +14 -0
- package/src/primitives/badge/badge.tsx +5 -3
- package/src/primitives/badge/styles.ts +7 -8
- package/src/primitives/box/__workshop__/responsive.tsx +2 -2
- package/src/primitives/button/button.tsx +2 -2
- package/src/primitives/button/styles.ts +82 -16
- package/src/primitives/card/__workshop__/selected.tsx +8 -9
- package/src/primitives/card/card.tsx +43 -7
- package/src/primitives/card/styles.ts +30 -22
- package/src/primitives/card/types.ts +3 -1
- package/src/primitives/checkbox/styles.ts +20 -20
- package/src/primitives/code/code.tsx +15 -3
- package/src/primitives/code/styles.ts +51 -42
- package/src/primitives/heading/styles.ts +6 -5
- package/src/primitives/kbd/kbd.tsx +2 -1
- package/src/primitives/label/styles.ts +3 -2
- package/src/primitives/popover/popoverArrow.tsx +3 -2
- package/src/primitives/popover/popoverCard.tsx +6 -2
- package/src/primitives/radio/styles.ts +15 -15
- package/src/primitives/select/styles.ts +20 -22
- package/src/primitives/switch/styles.ts +13 -13
- package/src/primitives/text/__workshop__/colored.tsx +10 -11
- package/src/primitives/text/styles.ts +10 -9
- package/src/primitives/textArea/textArea.tsx +8 -12
- package/src/primitives/textInput/textInput.tsx +13 -13
- package/src/primitives/tooltip/__workshop__/props.tsx +20 -3
- package/src/primitives/tooltip/tooltipArrow.tsx +3 -2
- package/src/styles/border/borderStyle.ts +2 -1
- package/src/styles/colorVars/colorVarsStyle.ts +73 -32
- package/src/styles/focusRing/index.ts +6 -4
- package/src/styles/input/textInputStyle.ts +76 -93
- package/src/styles/margin/marginsStyle.test.ts +1 -2
- package/src/styles/padding/paddingStyle.test.ts +1 -2
- package/src/styles/shadow/shadowStyle.ts +5 -5
- package/src/theme/__workshop__/color.tsx +2 -2
- package/src/theme/__workshop__/index.ts +0 -5
- package/src/theme/lib/color-fns/blend/multiply.ts +2 -2
- package/src/theme/lib/color-fns/blend/screen.ts +2 -2
- package/src/theme/lib/color-fns/convert.ts +15 -1
- package/src/theme/lib/color-fns/parse.ts +7 -3
- package/src/theme/lib/color-fns/types.ts +11 -0
- package/src/theme/lib/theme/color/_legacy/createColorTheme.ts +7 -0
- package/src/theme/lib/theme/color/_legacy/index.ts +1 -0
- package/src/theme/lib/theme/color/_legacy/legacyColor.ts +3997 -0
- package/src/theme/lib/theme/color/cssVariables/cardVariables.ts +88 -0
- package/src/theme/lib/theme/color/cssVariables/createCssVars.ts +31 -0
- package/src/theme/lib/theme/color/cssVariables/cssVars.test.ts +262 -0
- package/src/theme/lib/theme/color/cssVariables/index.ts +1 -0
- package/src/theme/lib/theme/color/cssVariables/tints.ts +312 -0
- package/src/theme/lib/theme/color/cssVariables/tones.ts +67 -0
- package/src/theme/lib/theme/color/cssVariables/utils.test.ts +15 -0
- package/src/theme/lib/theme/color/cssVariables/utils.ts +9 -0
- package/src/theme/lib/theme/color/index.ts +3 -12
- package/src/theme/lib/theme/color/types.ts +6 -37
- package/src/theme/lib/theme/theme.ts +9 -4
- package/src/theme/studioTheme/color.ts +2 -641
- package/src/theme/studioTheme/helpers.ts +15 -1
- package/src/theme/studioTheme/theme.ts +13 -3
- package/src/theme/themeColorProvider.tsx +2 -0
- package/src/theme/themeProvider.tsx +28 -8
- package/src/theme/toneContext/toneContext.ts +12 -0
- package/src/theme/toneContext/toneProvider.tsx +31 -0
- package/src/theme/toneContext/types.ts +10 -0
- package/src/theme/toneContext/useToneContext.tsx +26 -0
- package/src/theme/types.ts +2 -4
- package/src/utils/elementQuery/__workshop__/customMedia.tsx +4 -3
- package/src/theme/__workshop__/canvas.tsx +0 -395
- package/src/theme/lib/theme/color/_generic/index.ts +0 -1
- package/src/theme/lib/theme/color/_generic/types.ts +0 -30
- package/src/theme/lib/theme/color/base/index.ts +0 -1
- package/src/theme/lib/theme/color/base/types.ts +0 -19
- package/src/theme/lib/theme/color/button/createButtonModes.ts +0 -20
- package/src/theme/lib/theme/color/button/createButtonTones.ts +0 -52
- package/src/theme/lib/theme/color/button/index.ts +0 -1
- package/src/theme/lib/theme/color/button/types.ts +0 -44
- package/src/theme/lib/theme/color/card/createCardStates.ts +0 -58
- package/src/theme/lib/theme/color/card/index.ts +0 -1
- package/src/theme/lib/theme/color/card/types.ts +0 -18
- package/src/theme/lib/theme/color/color.test.ts +0 -63
- package/src/theme/lib/theme/color/defaults.ts +0 -390
- package/src/theme/lib/theme/color/factory.ts +0 -138
- package/src/theme/lib/theme/color/input/createInputModes.ts +0 -84
- package/src/theme/lib/theme/color/input/index.ts +0 -1
- package/src/theme/lib/theme/color/input/types.ts +0 -28
- package/src/theme/lib/theme/color/muted/createMuted.ts +0 -56
- package/src/theme/lib/theme/color/muted/index.ts +0 -1
- package/src/theme/lib/theme/color/muted/types.ts +0 -24
- package/src/theme/lib/theme/color/selectable/createSelectableTones.ts +0 -73
- package/src/theme/lib/theme/color/selectable/index.ts +0 -1
- package/src/theme/lib/theme/color/selectable/types.ts +0 -29
- package/src/theme/lib/theme/color/solid/createSolidTones.ts +0 -56
- package/src/theme/lib/theme/color/solid/index.ts +0 -1
- package/src/theme/lib/theme/color/solid/types.ts +0 -24
- package/src/theme/lib/theme/color/spot/createSpot.ts +0 -21
- package/src/theme/lib/theme/color/spot/index.ts +0 -1
- package/src/theme/lib/theme/color/spot/types.ts +0 -28
- package/src/theme/lib/theme/color/syntax/index.ts +0 -1
- package/src/theme/lib/theme/color/syntax/types.ts +0 -41
- package/src/theme/studioTheme/tints.ts +0 -152
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 {ColorTints} from '@sanity/color'
|
|
6
7
|
import {Component} from 'react'
|
|
7
8
|
import {CompositionEventHandler} from 'react'
|
|
8
9
|
import {CSSProperties} from 'react'
|
|
@@ -49,8 +50,10 @@ 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'
|
|
56
|
+
| 'as'
|
|
54
57
|
| 'id'
|
|
55
58
|
| 'spellCheck'
|
|
56
59
|
| 'role'
|
|
@@ -64,9 +67,7 @@ export declare const Autocomplete: <Option extends BaseAutocompleteOption>(
|
|
|
64
67
|
| 'aria-owns'
|
|
65
68
|
| 'onChange'
|
|
66
69
|
| 'onSelect'
|
|
67
|
-
| 'as'
|
|
68
70
|
| 'autoComplete'
|
|
69
|
-
| 'type'
|
|
70
71
|
> & {
|
|
71
72
|
ref?: Ref<HTMLInputElement> | undefined
|
|
72
73
|
},
|
|
@@ -344,9 +345,18 @@ export declare interface BaseTheme<Styles extends {} = {}> {
|
|
|
344
345
|
textWeight: ThemeFontWeightKey
|
|
345
346
|
focusRing: FocusRing
|
|
346
347
|
}
|
|
348
|
+
card: {
|
|
349
|
+
focusRing: FocusRing
|
|
350
|
+
}
|
|
347
351
|
color: ThemeColorSchemes
|
|
348
352
|
container: number[]
|
|
353
|
+
/** @deprecated Use component-specific `focusRing` values instead */
|
|
354
|
+
focusRing: {
|
|
355
|
+
offset: number
|
|
356
|
+
width: number
|
|
357
|
+
}
|
|
349
358
|
fonts: ThemeFonts
|
|
359
|
+
input: ThemeInput
|
|
350
360
|
/**
|
|
351
361
|
* THIS API MAY BE UNSTABLE. DO NOT USE IN PRODUCTION.
|
|
352
362
|
* @beta
|
|
@@ -356,10 +366,6 @@ export declare interface BaseTheme<Styles extends {} = {}> {
|
|
|
356
366
|
radius: number[]
|
|
357
367
|
shadows: Array<ThemeShadow | null>
|
|
358
368
|
space: number[]
|
|
359
|
-
input: ThemeInput
|
|
360
|
-
card: {
|
|
361
|
-
focusRing: FocusRing
|
|
362
|
-
}
|
|
363
369
|
styles?: Styles
|
|
364
370
|
}
|
|
365
371
|
|
|
@@ -390,7 +396,7 @@ export declare interface BoundaryElementProviderProps {
|
|
|
390
396
|
* @public
|
|
391
397
|
*/
|
|
392
398
|
export declare const Box: ForwardRefExoticComponent<
|
|
393
|
-
Omit<BoxProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
399
|
+
Omit<BoxProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height'>, 'ref'> &
|
|
394
400
|
RefAttributes<HTMLDivElement>
|
|
395
401
|
>
|
|
396
402
|
|
|
@@ -438,7 +444,7 @@ export declare type BoxSizing = 'content' | 'border'
|
|
|
438
444
|
*/
|
|
439
445
|
export declare const Breadcrumbs: ForwardRefExoticComponent<
|
|
440
446
|
BreadcrumbsProps &
|
|
441
|
-
Omit<HTMLProps<HTMLOListElement>, '
|
|
447
|
+
Omit<HTMLProps<HTMLOListElement>, 'type' | 'ref' | 'as'> &
|
|
442
448
|
RefAttributes<HTMLOListElement>
|
|
443
449
|
>
|
|
444
450
|
|
|
@@ -501,7 +507,7 @@ export declare type ButtonTone = 'default' | 'primary' | 'positive' | 'caution'
|
|
|
501
507
|
* @public
|
|
502
508
|
*/
|
|
503
509
|
export declare const Card: ForwardRefExoticComponent<
|
|
504
|
-
Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
510
|
+
Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height'>, 'ref'> &
|
|
505
511
|
RefAttributes<HTMLDivElement>
|
|
506
512
|
>
|
|
507
513
|
|
|
@@ -526,6 +532,12 @@ export declare interface CardProps
|
|
|
526
532
|
pressed?: boolean
|
|
527
533
|
scheme?: ThemeColorSchemeKey
|
|
528
534
|
tone?: CardTone
|
|
535
|
+
/**
|
|
536
|
+
* @internal
|
|
537
|
+
* Used by the popover, as it creates a new html element that it's ouside of the previous scope of the card.
|
|
538
|
+
* So if it's inheriting styles from the parent, it needs to create a new cars context
|
|
539
|
+
*/
|
|
540
|
+
updateCssVars?: boolean
|
|
529
541
|
}
|
|
530
542
|
|
|
531
543
|
/**
|
|
@@ -535,6 +547,8 @@ export declare interface CardStyleProps {
|
|
|
535
547
|
$checkered: boolean
|
|
536
548
|
$focusRing: boolean
|
|
537
549
|
$tone: ThemeColorToneKey
|
|
550
|
+
$scheme: ThemeColorSchemeKey
|
|
551
|
+
$updateCssVars: boolean
|
|
538
552
|
}
|
|
539
553
|
|
|
540
554
|
/**
|
|
@@ -546,7 +560,7 @@ export declare type CardTone = ThemeColorToneKey | 'inherit'
|
|
|
546
560
|
* @public
|
|
547
561
|
*/
|
|
548
562
|
export declare const Checkbox: ForwardRefExoticComponent<
|
|
549
|
-
Omit<Omit<HTMLProps<HTMLInputElement>, '
|
|
563
|
+
Omit<Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & CheckboxProps, 'ref'> &
|
|
550
564
|
RefAttributes<HTMLInputElement>
|
|
551
565
|
>
|
|
552
566
|
|
|
@@ -567,7 +581,7 @@ export declare type ClickOutsideListener = (event: MouseEvent) => void
|
|
|
567
581
|
* @public
|
|
568
582
|
*/
|
|
569
583
|
export declare const Code: ForwardRefExoticComponent<
|
|
570
|
-
Omit<CodeProps & Omit<HTMLProps<HTMLElement>, '
|
|
584
|
+
Omit<CodeProps & Omit<HTMLProps<HTMLElement>, 'as' | 'size'>, 'ref'> & RefAttributes<HTMLElement>
|
|
571
585
|
>
|
|
572
586
|
|
|
573
587
|
/**
|
|
@@ -586,7 +600,7 @@ export declare interface CodeProps {
|
|
|
586
600
|
*/
|
|
587
601
|
export declare const CodeSkeleton: ForwardRefExoticComponent<
|
|
588
602
|
Omit<
|
|
589
|
-
CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | '
|
|
603
|
+
CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'as' | 'size' | 'height'>,
|
|
590
604
|
'ref'
|
|
591
605
|
> &
|
|
592
606
|
RefAttributes<HTMLDivElement>
|
|
@@ -604,7 +618,7 @@ export declare interface CodeSkeletonProps extends SkeletonProps {
|
|
|
604
618
|
* @public
|
|
605
619
|
*/
|
|
606
620
|
export declare const Container: ForwardRefExoticComponent<
|
|
607
|
-
Omit<ContainerProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
621
|
+
Omit<ContainerProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height' | 'width'>, 'ref'> &
|
|
608
622
|
RefAttributes<HTMLDivElement>
|
|
609
623
|
>
|
|
610
624
|
|
|
@@ -619,15 +633,240 @@ export declare interface ContainerProps extends BoxProps, ResponsiveWidthProps {
|
|
|
619
633
|
export declare function containsOrEqualsElement(element: HTMLElement, node: Node): boolean
|
|
620
634
|
|
|
621
635
|
/**
|
|
622
|
-
* @
|
|
636
|
+
* @internal
|
|
637
|
+
* @deprecated Use studioTheme instead.
|
|
623
638
|
*/
|
|
624
|
-
export declare function createColorTheme(
|
|
625
|
-
|
|
626
|
-
|
|
639
|
+
export declare function createColorTheme(): null
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* @beta
|
|
643
|
+
*/
|
|
644
|
+
export declare const createCssVars: (
|
|
645
|
+
scheme: ThemeColorSchemeKey,
|
|
646
|
+
tones: Record<ThemeColorName, ColorTints>,
|
|
647
|
+
defaultTone?: ThemeColorName,
|
|
648
|
+
) => Record<string, string>
|
|
627
649
|
|
|
628
650
|
/** @internal */
|
|
629
651
|
export declare type CSSObject = StyledObject<any>
|
|
630
652
|
|
|
653
|
+
/**
|
|
654
|
+
* @beta
|
|
655
|
+
*/
|
|
656
|
+
export declare type CSSVariableKey = ThemeColorName & ('spot' | 'syntax' | 'mutable')
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* @beta
|
|
660
|
+
*/
|
|
661
|
+
export declare const cssVars: {
|
|
662
|
+
/**
|
|
663
|
+
* This variables are mutable, they can be updated by other components.
|
|
664
|
+
* The main component that updates them is the card, these are the only ones that should be exposed for use from the cards.
|
|
665
|
+
*/
|
|
666
|
+
mutable: Record<
|
|
667
|
+
'bg-color' | 'muted-fg-color' | 'icon-color' | 'fg-color' | 'bg-image' | 'accent-color',
|
|
668
|
+
string
|
|
669
|
+
>
|
|
670
|
+
default: Record<
|
|
671
|
+
| 'text-primary'
|
|
672
|
+
| 'text-secondary'
|
|
673
|
+
| 'text-inactive'
|
|
674
|
+
| 'text-code'
|
|
675
|
+
| 'text-muted'
|
|
676
|
+
| 'text-link'
|
|
677
|
+
| 'text-accent'
|
|
678
|
+
| 'bg-base'
|
|
679
|
+
| 'bg-base-hover'
|
|
680
|
+
| 'bg-base-active'
|
|
681
|
+
| 'bg-accent'
|
|
682
|
+
| 'bg-accent-hover'
|
|
683
|
+
| 'bg-accent-active'
|
|
684
|
+
| 'bg-tint'
|
|
685
|
+
| 'bg-tint-code'
|
|
686
|
+
| 'icon-default'
|
|
687
|
+
| 'icon-inverted'
|
|
688
|
+
| 'border-base'
|
|
689
|
+
| 'border-base-hover'
|
|
690
|
+
| 'border-accent'
|
|
691
|
+
| 'border-accent-inverted'
|
|
692
|
+
| 'base-bg-card'
|
|
693
|
+
| 'base-bg-raw'
|
|
694
|
+
| 'base-shadow-outline-color'
|
|
695
|
+
| 'base-shadow-umbra-color'
|
|
696
|
+
| 'base-shadow-penumbra-color'
|
|
697
|
+
| 'base-shadow-ambient-color'
|
|
698
|
+
| 'base-text-color'
|
|
699
|
+
| 'skeleton-from'
|
|
700
|
+
| 'skeleton-to',
|
|
701
|
+
string
|
|
702
|
+
>
|
|
703
|
+
transparent: Record<
|
|
704
|
+
| 'text-primary'
|
|
705
|
+
| 'text-secondary'
|
|
706
|
+
| 'text-inactive'
|
|
707
|
+
| 'text-code'
|
|
708
|
+
| 'text-muted'
|
|
709
|
+
| 'text-link'
|
|
710
|
+
| 'text-accent'
|
|
711
|
+
| 'bg-base'
|
|
712
|
+
| 'bg-base-hover'
|
|
713
|
+
| 'bg-base-active'
|
|
714
|
+
| 'bg-accent'
|
|
715
|
+
| 'bg-accent-hover'
|
|
716
|
+
| 'bg-accent-active'
|
|
717
|
+
| 'bg-tint'
|
|
718
|
+
| 'bg-tint-code'
|
|
719
|
+
| 'icon-default'
|
|
720
|
+
| 'icon-inverted'
|
|
721
|
+
| 'border-base'
|
|
722
|
+
| 'border-base-hover'
|
|
723
|
+
| 'border-accent'
|
|
724
|
+
| 'border-accent-inverted'
|
|
725
|
+
| 'base-bg-card'
|
|
726
|
+
| 'base-bg-raw'
|
|
727
|
+
| 'base-shadow-outline-color'
|
|
728
|
+
| 'base-shadow-umbra-color'
|
|
729
|
+
| 'base-shadow-penumbra-color'
|
|
730
|
+
| 'base-shadow-ambient-color'
|
|
731
|
+
| 'base-text-color'
|
|
732
|
+
| 'skeleton-from'
|
|
733
|
+
| 'skeleton-to',
|
|
734
|
+
string
|
|
735
|
+
>
|
|
736
|
+
primary: Record<
|
|
737
|
+
| 'text-primary'
|
|
738
|
+
| 'text-secondary'
|
|
739
|
+
| 'text-inactive'
|
|
740
|
+
| 'text-code'
|
|
741
|
+
| 'text-muted'
|
|
742
|
+
| 'text-link'
|
|
743
|
+
| 'text-accent'
|
|
744
|
+
| 'bg-base'
|
|
745
|
+
| 'bg-base-hover'
|
|
746
|
+
| 'bg-base-active'
|
|
747
|
+
| 'bg-accent'
|
|
748
|
+
| 'bg-accent-hover'
|
|
749
|
+
| 'bg-accent-active'
|
|
750
|
+
| 'bg-tint'
|
|
751
|
+
| 'bg-tint-code'
|
|
752
|
+
| 'icon-default'
|
|
753
|
+
| 'icon-inverted'
|
|
754
|
+
| 'border-base'
|
|
755
|
+
| 'border-base-hover'
|
|
756
|
+
| 'border-accent'
|
|
757
|
+
| 'border-accent-inverted'
|
|
758
|
+
| 'base-bg-card'
|
|
759
|
+
| 'base-bg-raw'
|
|
760
|
+
| 'base-shadow-outline-color'
|
|
761
|
+
| 'base-shadow-umbra-color'
|
|
762
|
+
| 'base-shadow-penumbra-color'
|
|
763
|
+
| 'base-shadow-ambient-color'
|
|
764
|
+
| 'base-text-color'
|
|
765
|
+
| 'skeleton-from'
|
|
766
|
+
| 'skeleton-to',
|
|
767
|
+
string
|
|
768
|
+
>
|
|
769
|
+
positive: Record<
|
|
770
|
+
| 'text-primary'
|
|
771
|
+
| 'text-secondary'
|
|
772
|
+
| 'text-inactive'
|
|
773
|
+
| 'text-code'
|
|
774
|
+
| 'text-muted'
|
|
775
|
+
| 'text-link'
|
|
776
|
+
| 'text-accent'
|
|
777
|
+
| 'bg-base'
|
|
778
|
+
| 'bg-base-hover'
|
|
779
|
+
| 'bg-base-active'
|
|
780
|
+
| 'bg-accent'
|
|
781
|
+
| 'bg-accent-hover'
|
|
782
|
+
| 'bg-accent-active'
|
|
783
|
+
| 'bg-tint'
|
|
784
|
+
| 'bg-tint-code'
|
|
785
|
+
| 'icon-default'
|
|
786
|
+
| 'icon-inverted'
|
|
787
|
+
| 'border-base'
|
|
788
|
+
| 'border-base-hover'
|
|
789
|
+
| 'border-accent'
|
|
790
|
+
| 'border-accent-inverted'
|
|
791
|
+
| 'base-bg-card'
|
|
792
|
+
| 'base-bg-raw'
|
|
793
|
+
| 'base-shadow-outline-color'
|
|
794
|
+
| 'base-shadow-umbra-color'
|
|
795
|
+
| 'base-shadow-penumbra-color'
|
|
796
|
+
| 'base-shadow-ambient-color'
|
|
797
|
+
| 'base-text-color'
|
|
798
|
+
| 'skeleton-from'
|
|
799
|
+
| 'skeleton-to',
|
|
800
|
+
string
|
|
801
|
+
>
|
|
802
|
+
caution: Record<
|
|
803
|
+
| 'text-primary'
|
|
804
|
+
| 'text-secondary'
|
|
805
|
+
| 'text-inactive'
|
|
806
|
+
| 'text-code'
|
|
807
|
+
| 'text-muted'
|
|
808
|
+
| 'text-link'
|
|
809
|
+
| 'text-accent'
|
|
810
|
+
| 'bg-base'
|
|
811
|
+
| 'bg-base-hover'
|
|
812
|
+
| 'bg-base-active'
|
|
813
|
+
| 'bg-accent'
|
|
814
|
+
| 'bg-accent-hover'
|
|
815
|
+
| 'bg-accent-active'
|
|
816
|
+
| 'bg-tint'
|
|
817
|
+
| 'bg-tint-code'
|
|
818
|
+
| 'icon-default'
|
|
819
|
+
| 'icon-inverted'
|
|
820
|
+
| 'border-base'
|
|
821
|
+
| 'border-base-hover'
|
|
822
|
+
| 'border-accent'
|
|
823
|
+
| 'border-accent-inverted'
|
|
824
|
+
| 'base-bg-card'
|
|
825
|
+
| 'base-bg-raw'
|
|
826
|
+
| 'base-shadow-outline-color'
|
|
827
|
+
| 'base-shadow-umbra-color'
|
|
828
|
+
| 'base-shadow-penumbra-color'
|
|
829
|
+
| 'base-shadow-ambient-color'
|
|
830
|
+
| 'base-text-color'
|
|
831
|
+
| 'skeleton-from'
|
|
832
|
+
| 'skeleton-to',
|
|
833
|
+
string
|
|
834
|
+
>
|
|
835
|
+
critical: Record<
|
|
836
|
+
| 'text-primary'
|
|
837
|
+
| 'text-secondary'
|
|
838
|
+
| 'text-inactive'
|
|
839
|
+
| 'text-code'
|
|
840
|
+
| 'text-muted'
|
|
841
|
+
| 'text-link'
|
|
842
|
+
| 'text-accent'
|
|
843
|
+
| 'bg-base'
|
|
844
|
+
| 'bg-base-hover'
|
|
845
|
+
| 'bg-base-active'
|
|
846
|
+
| 'bg-accent'
|
|
847
|
+
| 'bg-accent-hover'
|
|
848
|
+
| 'bg-accent-active'
|
|
849
|
+
| 'bg-tint'
|
|
850
|
+
| 'bg-tint-code'
|
|
851
|
+
| 'icon-default'
|
|
852
|
+
| 'icon-inverted'
|
|
853
|
+
| 'border-base'
|
|
854
|
+
| 'border-base-hover'
|
|
855
|
+
| 'border-accent'
|
|
856
|
+
| 'border-accent-inverted'
|
|
857
|
+
| 'base-bg-card'
|
|
858
|
+
| 'base-bg-raw'
|
|
859
|
+
| 'base-shadow-outline-color'
|
|
860
|
+
| 'base-shadow-umbra-color'
|
|
861
|
+
| 'base-shadow-penumbra-color'
|
|
862
|
+
| 'base-shadow-ambient-color'
|
|
863
|
+
| 'base-text-color'
|
|
864
|
+
| 'skeleton-from'
|
|
865
|
+
| 'skeleton-to',
|
|
866
|
+
string
|
|
867
|
+
>
|
|
868
|
+
}
|
|
869
|
+
|
|
631
870
|
/**
|
|
632
871
|
* @public
|
|
633
872
|
*/
|
|
@@ -642,7 +881,7 @@ export declare type Delay =
|
|
|
642
881
|
* @public
|
|
643
882
|
*/
|
|
644
883
|
export declare const Dialog: ForwardRefExoticComponent<
|
|
645
|
-
Omit<DialogProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
884
|
+
Omit<DialogProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'width' | 'id'>, 'ref'> &
|
|
646
885
|
RefAttributes<HTMLDivElement>
|
|
647
886
|
>
|
|
648
887
|
|
|
@@ -800,7 +1039,7 @@ export declare function _fillCSSObject(
|
|
|
800
1039
|
* @public
|
|
801
1040
|
*/
|
|
802
1041
|
export declare const Flex: ForwardRefExoticComponent<
|
|
803
|
-
Omit<FlexProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
1042
|
+
Omit<FlexProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'wrap'>, 'ref'> &
|
|
804
1043
|
RefAttributes<HTMLDivElement>
|
|
805
1044
|
>
|
|
806
1045
|
|
|
@@ -888,7 +1127,7 @@ export declare function _getResponsiveSpace(
|
|
|
888
1127
|
* @public
|
|
889
1128
|
*/
|
|
890
1129
|
export declare const Grid: ForwardRefExoticComponent<
|
|
891
|
-
Omit<GridProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
1130
|
+
Omit<GridProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height' | 'rows'>, 'ref'> &
|
|
892
1131
|
RefAttributes<HTMLDivElement>
|
|
893
1132
|
>
|
|
894
1133
|
|
|
@@ -951,7 +1190,7 @@ export declare function _hasFocus(element: HTMLElement): boolean
|
|
|
951
1190
|
* @public
|
|
952
1191
|
*/
|
|
953
1192
|
export declare const Heading: ForwardRefExoticComponent<
|
|
954
|
-
Omit<HeadingProps & Omit<HTMLProps<HTMLElement>, '
|
|
1193
|
+
Omit<HeadingProps & Omit<HTMLProps<HTMLElement>, 'as' | 'size'>, 'ref'> &
|
|
955
1194
|
RefAttributes<HTMLElement>
|
|
956
1195
|
>
|
|
957
1196
|
|
|
@@ -979,7 +1218,7 @@ export declare interface HeadingProps {
|
|
|
979
1218
|
*/
|
|
980
1219
|
export declare const HeadingSkeleton: ForwardRefExoticComponent<
|
|
981
1220
|
Omit<
|
|
982
|
-
HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | '
|
|
1221
|
+
HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'as' | 'size' | 'height'>,
|
|
983
1222
|
'ref'
|
|
984
1223
|
> &
|
|
985
1224
|
RefAttributes<HTMLDivElement>
|
|
@@ -1002,7 +1241,7 @@ export declare function hexToRgb(hex: string): RGB
|
|
|
1002
1241
|
* @public
|
|
1003
1242
|
*/
|
|
1004
1243
|
export declare const Hotkeys: ForwardRefExoticComponent<
|
|
1005
|
-
HotkeysProps & Omit<HTMLProps<HTMLElement>, 'ref' | '
|
|
1244
|
+
HotkeysProps & Omit<HTMLProps<HTMLElement>, 'ref' | 'as' | 'size'> & RefAttributes<HTMLElement>
|
|
1006
1245
|
>
|
|
1007
1246
|
|
|
1008
1247
|
/**
|
|
@@ -1093,7 +1332,7 @@ export declare function _isScrollable(el: Node): boolean
|
|
|
1093
1332
|
* @public
|
|
1094
1333
|
*/
|
|
1095
1334
|
export declare const KBD: ForwardRefExoticComponent<
|
|
1096
|
-
KBDProps & Omit<HTMLProps<HTMLElement>, 'ref' | '
|
|
1335
|
+
KBDProps & Omit<HTMLProps<HTMLElement>, 'ref' | 'as' | 'size'> & RefAttributes<HTMLDivElement>
|
|
1097
1336
|
>
|
|
1098
1337
|
|
|
1099
1338
|
/**
|
|
@@ -1110,7 +1349,7 @@ export declare interface KBDProps {
|
|
|
1110
1349
|
* @public
|
|
1111
1350
|
*/
|
|
1112
1351
|
export declare const Label: ForwardRefExoticComponent<
|
|
1113
|
-
Omit<LabelProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
1352
|
+
Omit<LabelProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'size'>, 'ref'> &
|
|
1114
1353
|
RefAttributes<HTMLDivElement>
|
|
1115
1354
|
>
|
|
1116
1355
|
|
|
@@ -1138,7 +1377,7 @@ export declare interface LabelProps {
|
|
|
1138
1377
|
*/
|
|
1139
1378
|
export declare const LabelSkeleton: ForwardRefExoticComponent<
|
|
1140
1379
|
Omit<
|
|
1141
|
-
LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | '
|
|
1380
|
+
LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'as' | 'size' | 'height'>,
|
|
1142
1381
|
'ref'
|
|
1143
1382
|
> &
|
|
1144
1383
|
RefAttributes<HTMLDivElement>
|
|
@@ -1213,7 +1452,7 @@ export declare interface _MediaStore {
|
|
|
1213
1452
|
* @public
|
|
1214
1453
|
*/
|
|
1215
1454
|
export declare const Menu: ForwardRefExoticComponent<
|
|
1216
|
-
Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
1455
|
+
Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height' | 'tabIndex' | 'role'>, 'ref'> &
|
|
1217
1456
|
RefAttributes<HTMLDivElement>
|
|
1218
1457
|
>
|
|
1219
1458
|
|
|
@@ -1321,8 +1560,8 @@ export declare const MenuDivider: IStyledComponent<
|
|
|
1321
1560
|
security?: string | undefined
|
|
1322
1561
|
unselectable?: 'on' | 'off' | undefined
|
|
1323
1562
|
inputMode?:
|
|
1324
|
-
| 'text'
|
|
1325
1563
|
| 'search'
|
|
1564
|
+
| 'text'
|
|
1326
1565
|
| 'none'
|
|
1327
1566
|
| 'tel'
|
|
1328
1567
|
| 'url'
|
|
@@ -1612,7 +1851,7 @@ export declare interface MenuGroupProps {
|
|
|
1612
1851
|
*/
|
|
1613
1852
|
export declare const MenuItem: ForwardRefExoticComponent<
|
|
1614
1853
|
MenuItemProps &
|
|
1615
|
-
Omit<HTMLProps<HTMLDivElement>, '
|
|
1854
|
+
Omit<HTMLProps<HTMLDivElement>, 'ref' | 'as' | 'height' | 'tabIndex' | 'selected'> &
|
|
1616
1855
|
RefAttributes<HTMLDivElement>
|
|
1617
1856
|
>
|
|
1618
1857
|
|
|
@@ -1629,7 +1868,7 @@ export declare interface MenuItemProps extends ResponsivePaddingProps, Responsiv
|
|
|
1629
1868
|
selected?: boolean
|
|
1630
1869
|
space?: number | number[]
|
|
1631
1870
|
text?: React.ReactNode
|
|
1632
|
-
tone?:
|
|
1871
|
+
tone?: ThemeColorToneKey
|
|
1633
1872
|
}
|
|
1634
1873
|
|
|
1635
1874
|
/**
|
|
@@ -1659,17 +1898,12 @@ export declare interface MenuProps extends ResponsivePaddingProps {
|
|
|
1659
1898
|
* Source: https://www.w3.org/TR/compositing-1/#blendingmultiply
|
|
1660
1899
|
* @internal
|
|
1661
1900
|
*/
|
|
1662
|
-
export declare function multiply(b: RGB, s: RGB): RGB
|
|
1901
|
+
export declare function multiply(b: RGB | RGBA, s: RGB | RGBA): RGB
|
|
1663
1902
|
|
|
1664
1903
|
/**
|
|
1665
1904
|
* @internal
|
|
1666
1905
|
*/
|
|
1667
|
-
export declare function parseColor(color: unknown): RGB
|
|
1668
|
-
|
|
1669
|
-
/**
|
|
1670
|
-
* @public
|
|
1671
|
-
*/
|
|
1672
|
-
export declare type PartialThemeColorBuilderOpts = Partial<ThemeColorBuilderOpts>
|
|
1906
|
+
export declare function parseColor(color: unknown): RGB | RGBA
|
|
1673
1907
|
|
|
1674
1908
|
/**
|
|
1675
1909
|
* Placement of floating UI elements.
|
|
@@ -1694,7 +1928,7 @@ export declare type Placement =
|
|
|
1694
1928
|
export declare const Popover: MemoExoticComponent<
|
|
1695
1929
|
ForwardRefExoticComponent<
|
|
1696
1930
|
Omit<
|
|
1697
|
-
PopoverProps & Omit<HTMLProps<HTMLDivElement>, 'children' | '
|
|
1931
|
+
PopoverProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'as' | 'content' | 'width'>,
|
|
1698
1932
|
'ref'
|
|
1699
1933
|
> &
|
|
1700
1934
|
RefAttributes<HTMLDivElement>
|
|
@@ -1797,7 +2031,7 @@ export declare interface PortalProviderProps {
|
|
|
1797
2031
|
* @public
|
|
1798
2032
|
*/
|
|
1799
2033
|
export declare const Radio: ForwardRefExoticComponent<
|
|
1800
|
-
Omit<Omit<HTMLProps<HTMLInputElement>, '
|
|
2034
|
+
Omit<Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & RadioProps, 'ref'> &
|
|
1801
2035
|
RefAttributes<HTMLInputElement>
|
|
1802
2036
|
>
|
|
1803
2037
|
|
|
@@ -2039,6 +2273,17 @@ export declare interface RGB {
|
|
|
2039
2273
|
r: number
|
|
2040
2274
|
g: number
|
|
2041
2275
|
b: number
|
|
2276
|
+
a?: undefined
|
|
2277
|
+
}
|
|
2278
|
+
|
|
2279
|
+
/**
|
|
2280
|
+
* @internal
|
|
2281
|
+
*/
|
|
2282
|
+
export declare interface RGBA {
|
|
2283
|
+
r: number
|
|
2284
|
+
g: number
|
|
2285
|
+
b: number
|
|
2286
|
+
a: number
|
|
2042
2287
|
}
|
|
2043
2288
|
|
|
2044
2289
|
/**
|
|
@@ -2046,6 +2291,11 @@ export declare interface RGB {
|
|
|
2046
2291
|
*/
|
|
2047
2292
|
export declare function rgba(color: unknown, a: number): string
|
|
2048
2293
|
|
|
2294
|
+
/**
|
|
2295
|
+
* @internal
|
|
2296
|
+
*/
|
|
2297
|
+
export declare function rgbaToRGBA(rgba: string): RGBA
|
|
2298
|
+
|
|
2049
2299
|
/**
|
|
2050
2300
|
* @internal
|
|
2051
2301
|
*/
|
|
@@ -2067,7 +2317,7 @@ export declare type RootTheme = BaseTheme<Styles>
|
|
|
2067
2317
|
* Source: https://www.w3.org/TR/compositing-1/#blendingscreen
|
|
2068
2318
|
* @internal
|
|
2069
2319
|
*/
|
|
2070
|
-
declare function screen_2(b: RGB, s: RGB): RGB
|
|
2320
|
+
declare function screen_2(b: RGB | RGBA, s: RGB | RGBA): RGB
|
|
2071
2321
|
export {screen_2 as screen}
|
|
2072
2322
|
|
|
2073
2323
|
/**
|
|
@@ -2115,7 +2365,7 @@ export declare interface SkeletonProps extends ResponsiveRadiusProps, Omit<BoxPr
|
|
|
2115
2365
|
* @public
|
|
2116
2366
|
*/
|
|
2117
2367
|
export declare const Spinner: ForwardRefExoticComponent<
|
|
2118
|
-
Omit<SpinnerProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
2368
|
+
Omit<SpinnerProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'size'>, 'ref'> &
|
|
2119
2369
|
RefAttributes<HTMLDivElement>
|
|
2120
2370
|
>
|
|
2121
2371
|
|
|
@@ -2131,7 +2381,7 @@ export declare interface SpinnerProps {
|
|
|
2131
2381
|
* @public
|
|
2132
2382
|
*/
|
|
2133
2383
|
export declare const SrOnly: ForwardRefExoticComponent<
|
|
2134
|
-
Omit<SrOnlyProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
2384
|
+
Omit<SrOnlyProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'aria-hidden'>, 'ref'> &
|
|
2135
2385
|
RefAttributes<HTMLDivElement>
|
|
2136
2386
|
>
|
|
2137
2387
|
|
|
@@ -2180,7 +2430,7 @@ export declare interface Styles {
|
|
|
2180
2430
|
* @public
|
|
2181
2431
|
*/
|
|
2182
2432
|
export declare const Switch: ForwardRefExoticComponent<
|
|
2183
|
-
Omit<Omit<HTMLProps<HTMLInputElement>, '
|
|
2433
|
+
Omit<Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & SwitchProps, 'ref'> &
|
|
2184
2434
|
RefAttributes<HTMLInputElement>
|
|
2185
2435
|
>
|
|
2186
2436
|
|
|
@@ -2196,7 +2446,7 @@ export declare interface SwitchProps {
|
|
|
2196
2446
|
*/
|
|
2197
2447
|
export declare const Tab: ForwardRefExoticComponent<
|
|
2198
2448
|
Omit<
|
|
2199
|
-
TabProps & Omit<HTMLProps<HTMLButtonElement>, '
|
|
2449
|
+
TabProps & Omit<HTMLProps<HTMLButtonElement>, 'type' | 'label' | 'as' | 'id' | 'aria-controls'>,
|
|
2200
2450
|
'ref'
|
|
2201
2451
|
> &
|
|
2202
2452
|
RefAttributes<HTMLButtonElement>
|
|
@@ -2206,7 +2456,7 @@ export declare const Tab: ForwardRefExoticComponent<
|
|
|
2206
2456
|
* @public
|
|
2207
2457
|
*/
|
|
2208
2458
|
export declare const TabList: ForwardRefExoticComponent<
|
|
2209
|
-
Omit<TabListProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
2459
|
+
Omit<TabListProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height'>, 'ref'> &
|
|
2210
2460
|
RefAttributes<unknown>
|
|
2211
2461
|
>
|
|
2212
2462
|
|
|
@@ -2222,7 +2472,7 @@ export declare interface TabListProps extends Omit<InlineProps, 'as' | 'height'>
|
|
|
2222
2472
|
*/
|
|
2223
2473
|
export declare const TabPanel: ForwardRefExoticComponent<
|
|
2224
2474
|
Omit<
|
|
2225
|
-
TabPanelProps & Omit<HTMLProps<HTMLDivElement>, 'id' | 'role' | 'aria-labelledby'
|
|
2475
|
+
TabPanelProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'id' | 'role' | 'aria-labelledby'>,
|
|
2226
2476
|
'ref'
|
|
2227
2477
|
> &
|
|
2228
2478
|
RefAttributes<HTMLDivElement>
|
|
@@ -2261,7 +2511,7 @@ export declare interface TabProps {
|
|
|
2261
2511
|
* @public
|
|
2262
2512
|
*/
|
|
2263
2513
|
declare const Text_2: ForwardRefExoticComponent<
|
|
2264
|
-
Omit<TextProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
2514
|
+
Omit<TextProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'size'>, 'ref'> &
|
|
2265
2515
|
RefAttributes<HTMLDivElement>
|
|
2266
2516
|
>
|
|
2267
2517
|
export {Text_2 as Text}
|
|
@@ -2288,13 +2538,14 @@ export declare interface TextAreaProps extends ResponsiveRadiusProps {
|
|
|
2288
2538
|
fontSize?: number | number[]
|
|
2289
2539
|
padding?: number | number[]
|
|
2290
2540
|
weight?: ThemeFontWeightKey
|
|
2541
|
+
tone?: ThemeColorToneKey
|
|
2291
2542
|
}
|
|
2292
2543
|
|
|
2293
2544
|
/**
|
|
2294
2545
|
* @public
|
|
2295
2546
|
*/
|
|
2296
2547
|
export declare const TextInput: ForwardRefExoticComponent<
|
|
2297
|
-
Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, '
|
|
2548
|
+
Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, 'type' | 'as' | 'prefix'>, 'ref'> &
|
|
2298
2549
|
RefAttributes<HTMLInputElement>
|
|
2299
2550
|
>
|
|
2300
2551
|
|
|
@@ -2328,6 +2579,7 @@ export declare interface TextInputProps {
|
|
|
2328
2579
|
suffix?: React.ReactNode
|
|
2329
2580
|
type?: TextInputType
|
|
2330
2581
|
weight?: ThemeFontWeightKey
|
|
2582
|
+
tone?: ThemeColorToneKey
|
|
2331
2583
|
}
|
|
2332
2584
|
|
|
2333
2585
|
/**
|
|
@@ -2371,7 +2623,7 @@ export declare interface TextProps {
|
|
|
2371
2623
|
*/
|
|
2372
2624
|
export declare const TextSkeleton: ForwardRefExoticComponent<
|
|
2373
2625
|
Omit<
|
|
2374
|
-
TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | '
|
|
2626
|
+
TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'as' | 'size' | 'height'>,
|
|
2375
2627
|
'ref'
|
|
2376
2628
|
> &
|
|
2377
2629
|
RefAttributes<HTMLDivElement>
|
|
@@ -2389,9 +2641,7 @@ export declare interface TextSkeletonProps extends SkeletonProps {
|
|
|
2389
2641
|
* @public
|
|
2390
2642
|
*/
|
|
2391
2643
|
export declare interface Theme {
|
|
2392
|
-
sanity:
|
|
2393
|
-
color: ThemeColor
|
|
2394
|
-
}
|
|
2644
|
+
sanity: RootTheme
|
|
2395
2645
|
}
|
|
2396
2646
|
|
|
2397
2647
|
/**
|
|
@@ -2405,239 +2655,6 @@ export declare interface ThemeAvatar {
|
|
|
2405
2655
|
focusRing: FocusRing
|
|
2406
2656
|
}
|
|
2407
2657
|
|
|
2408
|
-
/**
|
|
2409
|
-
* @public
|
|
2410
|
-
*/
|
|
2411
|
-
export declare interface ThemeColor {
|
|
2412
|
-
dark: boolean
|
|
2413
|
-
base: ThemeColorBase
|
|
2414
|
-
button: ThemeColorButton
|
|
2415
|
-
card: ThemeColorCard
|
|
2416
|
-
input: ThemeColorInput
|
|
2417
|
-
selectable?: ThemeColorSelectable
|
|
2418
|
-
spot: ThemeColorSpot
|
|
2419
|
-
syntax: ThemeColorSyntax
|
|
2420
|
-
solid: ThemeColorSolid
|
|
2421
|
-
muted: ThemeColorMuted
|
|
2422
|
-
}
|
|
2423
|
-
|
|
2424
|
-
/**
|
|
2425
|
-
* @public
|
|
2426
|
-
*/
|
|
2427
|
-
export declare interface ThemeColorBase {
|
|
2428
|
-
bg: string
|
|
2429
|
-
fg: string
|
|
2430
|
-
border: string
|
|
2431
|
-
focusRing: string
|
|
2432
|
-
shadow: {
|
|
2433
|
-
outline: string
|
|
2434
|
-
umbra: string
|
|
2435
|
-
penumbra: string
|
|
2436
|
-
ambient: string
|
|
2437
|
-
}
|
|
2438
|
-
skeleton?: {
|
|
2439
|
-
from: string
|
|
2440
|
-
to: string
|
|
2441
|
-
}
|
|
2442
|
-
}
|
|
2443
|
-
|
|
2444
|
-
/**
|
|
2445
|
-
* @public
|
|
2446
|
-
*/
|
|
2447
|
-
export declare interface ThemeColorBuilderOpts {
|
|
2448
|
-
base: (opts: {dark: boolean; name: ThemeColorName}) => ThemeColorBase
|
|
2449
|
-
solid: (opts: {
|
|
2450
|
-
base: ThemeColorBase
|
|
2451
|
-
dark: boolean
|
|
2452
|
-
tone: ThemeColorToneKey
|
|
2453
|
-
name: ThemeColorName
|
|
2454
|
-
state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected'
|
|
2455
|
-
}) => ThemeColorGenericState
|
|
2456
|
-
muted: (opts: {
|
|
2457
|
-
base: ThemeColorBase
|
|
2458
|
-
dark: boolean
|
|
2459
|
-
tone: ThemeColorToneKey
|
|
2460
|
-
name: ThemeColorName
|
|
2461
|
-
state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected'
|
|
2462
|
-
}) => ThemeColorGenericState
|
|
2463
|
-
card: (opts: {
|
|
2464
|
-
base: ThemeColorBase
|
|
2465
|
-
dark: boolean
|
|
2466
|
-
muted: ThemeColorMuted
|
|
2467
|
-
name: ThemeColorName
|
|
2468
|
-
solid: ThemeColorSolid
|
|
2469
|
-
state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected'
|
|
2470
|
-
}) => ThemeColorCardState
|
|
2471
|
-
button: (opts: {
|
|
2472
|
-
dark: boolean
|
|
2473
|
-
mode: ThemeColorButtonModeKey
|
|
2474
|
-
base: ThemeColorBase
|
|
2475
|
-
solid: ThemeColorSolidTone
|
|
2476
|
-
muted: ThemeColorMutedTone
|
|
2477
|
-
}) => ThemeColorButtonStates
|
|
2478
|
-
input: (opts: {
|
|
2479
|
-
base: ThemeColorBase
|
|
2480
|
-
solid: ThemeColorSolidTone
|
|
2481
|
-
muted: ThemeColorMutedTone
|
|
2482
|
-
dark: boolean
|
|
2483
|
-
mode: 'default' | 'invalid'
|
|
2484
|
-
state: 'enabled' | 'disabled' | 'hovered' | 'readOnly'
|
|
2485
|
-
}) => ThemeColorInputState
|
|
2486
|
-
selectable: (opts: {
|
|
2487
|
-
dark: boolean
|
|
2488
|
-
base: ThemeColorBase
|
|
2489
|
-
solid: ThemeColorSolid
|
|
2490
|
-
muted: ThemeColorMuted
|
|
2491
|
-
state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected'
|
|
2492
|
-
tone: 'default' | 'primary' | 'positive' | 'caution' | 'critical'
|
|
2493
|
-
}) => ThemeColorSelectableState
|
|
2494
|
-
syntax: (opts: {base: ThemeColorBase; dark: boolean}) => ThemeColorSyntax
|
|
2495
|
-
spot: (opts: {base: ThemeColorBase; dark: boolean; key: ThemeColorSpotKey}) => string
|
|
2496
|
-
}
|
|
2497
|
-
|
|
2498
|
-
/**
|
|
2499
|
-
* @public
|
|
2500
|
-
*/
|
|
2501
|
-
export declare interface ThemeColorButton {
|
|
2502
|
-
default: ThemeColorButtonTones
|
|
2503
|
-
ghost: ThemeColorButtonTones
|
|
2504
|
-
bleed: ThemeColorButtonTones
|
|
2505
|
-
}
|
|
2506
|
-
|
|
2507
|
-
/**
|
|
2508
|
-
* @public
|
|
2509
|
-
*/
|
|
2510
|
-
export declare type ThemeColorButtonModeKey = 'default' | 'ghost' | 'bleed'
|
|
2511
|
-
|
|
2512
|
-
/**
|
|
2513
|
-
* @deprecated Use `ThemeColorGenericState` instead.
|
|
2514
|
-
* @public
|
|
2515
|
-
*/
|
|
2516
|
-
export declare type ThemeColorButtonState = ThemeColorGenericState
|
|
2517
|
-
|
|
2518
|
-
/**
|
|
2519
|
-
* @public
|
|
2520
|
-
*/
|
|
2521
|
-
export declare interface ThemeColorButtonStates {
|
|
2522
|
-
enabled: ThemeColorButtonState
|
|
2523
|
-
hovered: ThemeColorButtonState
|
|
2524
|
-
pressed: ThemeColorButtonState
|
|
2525
|
-
selected: ThemeColorButtonState
|
|
2526
|
-
disabled: ThemeColorButtonState
|
|
2527
|
-
}
|
|
2528
|
-
|
|
2529
|
-
/**
|
|
2530
|
-
* TODO: Rename to `ThemeColorButtonMode`.
|
|
2531
|
-
* @public
|
|
2532
|
-
*/
|
|
2533
|
-
export declare interface ThemeColorButtonTones {
|
|
2534
|
-
default: ThemeColorButtonStates
|
|
2535
|
-
primary: ThemeColorButtonStates
|
|
2536
|
-
positive: ThemeColorButtonStates
|
|
2537
|
-
caution: ThemeColorButtonStates
|
|
2538
|
-
critical: ThemeColorButtonStates
|
|
2539
|
-
}
|
|
2540
|
-
|
|
2541
|
-
/**
|
|
2542
|
-
* @public
|
|
2543
|
-
*/
|
|
2544
|
-
export declare interface ThemeColorCard {
|
|
2545
|
-
enabled: ThemeColorCardState
|
|
2546
|
-
hovered: ThemeColorCardState
|
|
2547
|
-
pressed: ThemeColorCardState
|
|
2548
|
-
selected: ThemeColorCardState
|
|
2549
|
-
disabled: ThemeColorCardState
|
|
2550
|
-
}
|
|
2551
|
-
|
|
2552
|
-
/**
|
|
2553
|
-
* @deprecated Use `ThemeColorGenericState` instead.
|
|
2554
|
-
* @public
|
|
2555
|
-
*/
|
|
2556
|
-
export declare type ThemeColorCardState = ThemeColorGenericState
|
|
2557
|
-
|
|
2558
|
-
/**
|
|
2559
|
-
* @public
|
|
2560
|
-
*/
|
|
2561
|
-
export declare interface ThemeColorGenericState {
|
|
2562
|
-
bg: string
|
|
2563
|
-
/**
|
|
2564
|
-
* @beta
|
|
2565
|
-
*/
|
|
2566
|
-
bg2?: string
|
|
2567
|
-
border: string
|
|
2568
|
-
fg: string
|
|
2569
|
-
iconColor: string
|
|
2570
|
-
muted: {
|
|
2571
|
-
fg: string
|
|
2572
|
-
}
|
|
2573
|
-
accent: {
|
|
2574
|
-
fg: string
|
|
2575
|
-
}
|
|
2576
|
-
link: {
|
|
2577
|
-
fg: string
|
|
2578
|
-
}
|
|
2579
|
-
code: {
|
|
2580
|
-
bg: string
|
|
2581
|
-
fg: string
|
|
2582
|
-
}
|
|
2583
|
-
skeleton?: {
|
|
2584
|
-
from: string
|
|
2585
|
-
to: string
|
|
2586
|
-
}
|
|
2587
|
-
}
|
|
2588
|
-
|
|
2589
|
-
/**
|
|
2590
|
-
* @public
|
|
2591
|
-
*/
|
|
2592
|
-
export declare interface ThemeColorInput {
|
|
2593
|
-
default: ThemeColorInputStates
|
|
2594
|
-
invalid: ThemeColorInputStates
|
|
2595
|
-
}
|
|
2596
|
-
|
|
2597
|
-
/**
|
|
2598
|
-
* @public
|
|
2599
|
-
*/
|
|
2600
|
-
export declare interface ThemeColorInputState {
|
|
2601
|
-
bg: string
|
|
2602
|
-
bg2: string
|
|
2603
|
-
fg: string
|
|
2604
|
-
border: string
|
|
2605
|
-
placeholder: string
|
|
2606
|
-
}
|
|
2607
|
-
|
|
2608
|
-
/**
|
|
2609
|
-
* @public
|
|
2610
|
-
*/
|
|
2611
|
-
export declare interface ThemeColorInputStates {
|
|
2612
|
-
enabled: ThemeColorInputState
|
|
2613
|
-
disabled: ThemeColorInputState
|
|
2614
|
-
hovered: ThemeColorInputState
|
|
2615
|
-
readOnly: ThemeColorInputState
|
|
2616
|
-
}
|
|
2617
|
-
|
|
2618
|
-
/**
|
|
2619
|
-
* @public
|
|
2620
|
-
*/
|
|
2621
|
-
export declare interface ThemeColorMuted {
|
|
2622
|
-
default: ThemeColorMutedTone
|
|
2623
|
-
transparent: ThemeColorMutedTone
|
|
2624
|
-
primary: ThemeColorMutedTone
|
|
2625
|
-
positive: ThemeColorMutedTone
|
|
2626
|
-
caution: ThemeColorMutedTone
|
|
2627
|
-
critical: ThemeColorMutedTone
|
|
2628
|
-
}
|
|
2629
|
-
|
|
2630
|
-
/**
|
|
2631
|
-
* @public
|
|
2632
|
-
*/
|
|
2633
|
-
export declare interface ThemeColorMutedTone {
|
|
2634
|
-
enabled: ThemeColorGenericState
|
|
2635
|
-
disabled: ThemeColorGenericState
|
|
2636
|
-
hovered: ThemeColorGenericState
|
|
2637
|
-
pressed: ThemeColorGenericState
|
|
2638
|
-
selected: ThemeColorGenericState
|
|
2639
|
-
}
|
|
2640
|
-
|
|
2641
2658
|
/**
|
|
2642
2659
|
* @public
|
|
2643
2660
|
*/
|
|
@@ -2651,11 +2668,13 @@ export declare type ThemeColorName =
|
|
|
2651
2668
|
|
|
2652
2669
|
/**
|
|
2653
2670
|
* @public
|
|
2671
|
+
* @deprecated Use `toneContext` instead.
|
|
2654
2672
|
*/
|
|
2655
2673
|
export declare function ThemeColorProvider(props: ThemeColorProviderProps): React.ReactElement
|
|
2656
2674
|
|
|
2657
2675
|
/**
|
|
2658
2676
|
* @public
|
|
2677
|
+
* @deprecated
|
|
2659
2678
|
*/
|
|
2660
2679
|
export declare interface ThemeColorProviderProps {
|
|
2661
2680
|
children?: React.ReactNode
|
|
@@ -2663,18 +2682,6 @@ export declare interface ThemeColorProviderProps {
|
|
|
2663
2682
|
tone?: ThemeColorName
|
|
2664
2683
|
}
|
|
2665
2684
|
|
|
2666
|
-
/**
|
|
2667
|
-
* @public
|
|
2668
|
-
*/
|
|
2669
|
-
export declare interface ThemeColorScheme {
|
|
2670
|
-
default: ThemeColor
|
|
2671
|
-
transparent: ThemeColor
|
|
2672
|
-
primary: ThemeColor
|
|
2673
|
-
positive: ThemeColor
|
|
2674
|
-
caution: ThemeColor
|
|
2675
|
-
critical: ThemeColor
|
|
2676
|
-
}
|
|
2677
|
-
|
|
2678
2685
|
/**
|
|
2679
2686
|
* @public
|
|
2680
2687
|
*/
|
|
@@ -2684,74 +2691,7 @@ export declare type ThemeColorSchemeKey = 'dark' | 'light'
|
|
|
2684
2691
|
* @public
|
|
2685
2692
|
*/
|
|
2686
2693
|
export declare interface ThemeColorSchemes {
|
|
2687
|
-
|
|
2688
|
-
light: ThemeColorScheme
|
|
2689
|
-
}
|
|
2690
|
-
|
|
2691
|
-
/**
|
|
2692
|
-
* @public
|
|
2693
|
-
*/
|
|
2694
|
-
export declare interface ThemeColorSelectable {
|
|
2695
|
-
default: ThemeColorSelectableStates
|
|
2696
|
-
primary: ThemeColorSelectableStates
|
|
2697
|
-
positive: ThemeColorSelectableStates
|
|
2698
|
-
caution: ThemeColorSelectableStates
|
|
2699
|
-
critical: ThemeColorSelectableStates
|
|
2700
|
-
}
|
|
2701
|
-
|
|
2702
|
-
/**
|
|
2703
|
-
* @deprecated Use `ThemeColorGenericState` instead.
|
|
2704
|
-
* @public
|
|
2705
|
-
*/
|
|
2706
|
-
export declare type ThemeColorSelectableState = ThemeColorGenericState
|
|
2707
|
-
|
|
2708
|
-
/**
|
|
2709
|
-
* @public
|
|
2710
|
-
*/
|
|
2711
|
-
export declare interface ThemeColorSelectableStates {
|
|
2712
|
-
enabled: ThemeColorSelectableState
|
|
2713
|
-
hovered: ThemeColorSelectableState
|
|
2714
|
-
pressed: ThemeColorSelectableState
|
|
2715
|
-
selected: ThemeColorSelectableState
|
|
2716
|
-
disabled: ThemeColorSelectableState
|
|
2717
|
-
}
|
|
2718
|
-
|
|
2719
|
-
/**
|
|
2720
|
-
* @public
|
|
2721
|
-
*/
|
|
2722
|
-
export declare interface ThemeColorSolid {
|
|
2723
|
-
default: ThemeColorSolidTone
|
|
2724
|
-
transparent: ThemeColorSolidTone
|
|
2725
|
-
primary: ThemeColorSolidTone
|
|
2726
|
-
positive: ThemeColorSolidTone
|
|
2727
|
-
caution: ThemeColorSolidTone
|
|
2728
|
-
critical: ThemeColorSolidTone
|
|
2729
|
-
}
|
|
2730
|
-
|
|
2731
|
-
/**
|
|
2732
|
-
* @public
|
|
2733
|
-
*/
|
|
2734
|
-
export declare interface ThemeColorSolidTone {
|
|
2735
|
-
enabled: ThemeColorGenericState
|
|
2736
|
-
disabled: ThemeColorGenericState
|
|
2737
|
-
hovered: ThemeColorGenericState
|
|
2738
|
-
pressed: ThemeColorGenericState
|
|
2739
|
-
selected: ThemeColorGenericState
|
|
2740
|
-
}
|
|
2741
|
-
|
|
2742
|
-
/**
|
|
2743
|
-
* @public
|
|
2744
|
-
*/
|
|
2745
|
-
export declare interface ThemeColorSpot {
|
|
2746
|
-
gray: string
|
|
2747
|
-
blue: string
|
|
2748
|
-
purple: string
|
|
2749
|
-
magenta: string
|
|
2750
|
-
red: string
|
|
2751
|
-
orange: string
|
|
2752
|
-
yellow: string
|
|
2753
|
-
green: string
|
|
2754
|
-
cyan: string
|
|
2694
|
+
tones: Record<ThemeColorName, ColorTints>
|
|
2755
2695
|
}
|
|
2756
2696
|
|
|
2757
2697
|
/**
|
|
@@ -2768,48 +2708,6 @@ export declare type ThemeColorSpotKey =
|
|
|
2768
2708
|
| 'green'
|
|
2769
2709
|
| 'cyan'
|
|
2770
2710
|
|
|
2771
|
-
/**
|
|
2772
|
-
* @public
|
|
2773
|
-
*/
|
|
2774
|
-
export declare interface ThemeColorSyntax {
|
|
2775
|
-
atrule: string
|
|
2776
|
-
attrName: string
|
|
2777
|
-
attrValue: string
|
|
2778
|
-
attribute: string
|
|
2779
|
-
boolean: string
|
|
2780
|
-
builtin: string
|
|
2781
|
-
cdata: string
|
|
2782
|
-
char: string
|
|
2783
|
-
class: string
|
|
2784
|
-
className: string
|
|
2785
|
-
comment: string
|
|
2786
|
-
constant: string
|
|
2787
|
-
deleted: string
|
|
2788
|
-
doctype: string
|
|
2789
|
-
entity: string
|
|
2790
|
-
function: string
|
|
2791
|
-
hexcode: string
|
|
2792
|
-
id: string
|
|
2793
|
-
important: string
|
|
2794
|
-
inserted: string
|
|
2795
|
-
keyword: string
|
|
2796
|
-
number: string
|
|
2797
|
-
operator: string
|
|
2798
|
-
prolog: string
|
|
2799
|
-
property: string
|
|
2800
|
-
pseudoClass: string
|
|
2801
|
-
pseudoElement: string
|
|
2802
|
-
punctuation: string
|
|
2803
|
-
regex: string
|
|
2804
|
-
selector: string
|
|
2805
|
-
string: string
|
|
2806
|
-
symbol: string
|
|
2807
|
-
tag: string
|
|
2808
|
-
unit: string
|
|
2809
|
-
url: string
|
|
2810
|
-
variable: string
|
|
2811
|
-
}
|
|
2812
|
-
|
|
2813
2711
|
/**
|
|
2814
2712
|
* @public
|
|
2815
2713
|
*/
|
|
@@ -3022,7 +2920,7 @@ export declare interface ToastProviderProps {
|
|
|
3022
2920
|
* @public
|
|
3023
2921
|
*/
|
|
3024
2922
|
export declare const Tooltip: ForwardRefExoticComponent<
|
|
3025
|
-
Omit<TooltipProps & Omit<HTMLProps<HTMLDivElement>, 'children' | '
|
|
2923
|
+
Omit<TooltipProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'as' | 'content'>, 'ref'> &
|
|
3026
2924
|
RefAttributes<HTMLDivElement>
|
|
3027
2925
|
>
|
|
3028
2926
|
|
|
@@ -3100,7 +2998,7 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
|
|
|
3100
2998
|
export declare const Tree: MemoExoticComponent<
|
|
3101
2999
|
ForwardRefExoticComponent<
|
|
3102
3000
|
TreeProps &
|
|
3103
|
-
Omit<HTMLProps<HTMLDivElement>, 'ref' | '
|
|
3001
|
+
Omit<HTMLProps<HTMLDivElement>, 'ref' | 'as' | 'wrap' | 'height' | 'role' | 'align'> &
|
|
3104
3002
|
RefAttributes<HTMLDivElement>
|
|
3105
3003
|
>
|
|
3106
3004
|
>
|
|
@@ -3125,7 +3023,7 @@ export declare interface TreeContextValue {
|
|
|
3125
3023
|
* @beta
|
|
3126
3024
|
*/
|
|
3127
3025
|
export declare const TreeItem: NamedExoticComponent<
|
|
3128
|
-
TreeItemProps & Omit<HTMLProps<HTMLLIElement>, 'ref' | '
|
|
3026
|
+
TreeItemProps & Omit<HTMLProps<HTMLLIElement>, 'ref' | 'as' | 'role'>
|
|
3129
3027
|
>
|
|
3130
3028
|
|
|
3131
3029
|
/**
|
|
@@ -3290,7 +3188,7 @@ export declare function useTree(): TreeContextValue
|
|
|
3290
3188
|
export declare const VirtualList: ForwardRefExoticComponent<
|
|
3291
3189
|
VirtualListProps<any> &
|
|
3292
3190
|
StackProps &
|
|
3293
|
-
Omit<HTMLProps<HTMLDivElement>, 'children' | 'ref' | '
|
|
3191
|
+
Omit<HTMLProps<HTMLDivElement>, 'children' | 'ref' | 'as' | 'onChange'> &
|
|
3294
3192
|
RefAttributes<HTMLDivElement>
|
|
3295
3193
|
>
|
|
3296
3194
|
|