@sanity/ui 2.0.0-alpha.10 → 2.0.0-alpha.12
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 +0 -2
- package/dist/index.d.ts +404 -281
- package/dist/index.esm.js +2305 -5015
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2332 -5044
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/dialog/dialog.tsx +3 -3
- package/src/components/dialog/styles.ts +4 -3
- package/src/components/menu/__workshop__/closableMenuButton.tsx +2 -2
- package/src/components/menu/menuDivider.ts +1 -2
- package/src/components/menu/menuGroup.tsx +2 -2
- package/src/components/menu/menuItem.tsx +4 -4
- package/src/components/skeleton/styles.ts +7 -8
- package/src/components/tree/style.ts +20 -19
- package/src/primitives/_selectable/style.ts +21 -25
- package/src/primitives/avatar/avatar.tsx +3 -8
- package/src/primitives/avatar/avatarCounter.tsx +4 -5
- package/src/primitives/avatar/styles.ts +7 -5
- package/src/primitives/avatar/types.ts +0 -14
- package/src/primitives/badge/styles.ts +8 -7
- package/src/primitives/box/__workshop__/responsive.tsx +2 -2
- package/src/primitives/button/button.tsx +2 -2
- package/src/primitives/button/styles.ts +16 -82
- package/src/primitives/card/__workshop__/selected.tsx +9 -8
- package/src/primitives/card/card.tsx +8 -43
- package/src/primitives/card/styles.ts +22 -30
- package/src/primitives/card/types.ts +1 -3
- package/src/primitives/checkbox/styles.ts +20 -20
- package/src/primitives/code/code.tsx +3 -15
- package/src/primitives/code/styles.ts +42 -51
- package/src/primitives/heading/styles.ts +5 -6
- package/src/primitives/kbd/kbd.tsx +1 -2
- package/src/primitives/label/styles.ts +2 -3
- package/src/primitives/popover/popoverArrow.tsx +2 -3
- package/src/primitives/popover/popoverCard.tsx +2 -6
- package/src/primitives/radio/styles.ts +15 -15
- package/src/primitives/select/styles.ts +22 -20
- package/src/primitives/switch/styles.ts +13 -13
- package/src/primitives/text/__workshop__/colored.tsx +11 -10
- package/src/primitives/text/styles.ts +9 -10
- package/src/primitives/textArea/textArea.tsx +11 -7
- package/src/primitives/textInput/textInput.tsx +12 -12
- package/src/primitives/tooltip/__workshop__/props.tsx +3 -20
- package/src/primitives/tooltip/tooltipArrow.tsx +2 -3
- package/src/styles/border/borderStyle.ts +1 -2
- package/src/styles/colorVars/colorVarsStyle.ts +32 -73
- package/src/styles/focusRing/index.ts +4 -6
- package/src/styles/input/textInputStyle.ts +93 -76
- package/src/styles/margin/marginsStyle.test.ts +2 -1
- package/src/styles/padding/paddingStyle.test.ts +2 -1
- package/src/styles/shadow/shadowStyle.ts +5 -5
- package/src/theme/__workshop__/canvas.tsx +395 -0
- package/src/theme/__workshop__/color.tsx +2 -2
- package/src/theme/__workshop__/index.ts +5 -0
- package/src/theme/lib/theme/color/_generic/index.ts +1 -0
- package/src/theme/lib/theme/color/_generic/types.ts +30 -0
- package/src/theme/lib/theme/color/base/index.ts +1 -0
- package/src/theme/lib/theme/color/base/types.ts +19 -0
- package/src/theme/lib/theme/color/button/createButtonModes.ts +20 -0
- package/src/theme/lib/theme/color/button/createButtonTones.ts +52 -0
- package/src/theme/lib/theme/color/button/index.ts +1 -0
- package/src/theme/lib/theme/color/button/types.ts +44 -0
- package/src/theme/lib/theme/color/card/createCardStates.ts +58 -0
- package/src/theme/lib/theme/color/card/index.ts +1 -0
- package/src/theme/lib/theme/color/card/types.ts +18 -0
- package/src/theme/lib/theme/color/color.test.ts +63 -0
- package/src/theme/lib/theme/color/defaults.ts +390 -0
- package/src/theme/lib/theme/color/factory.ts +138 -0
- package/src/theme/lib/theme/color/index.ts +12 -3
- package/src/theme/lib/theme/color/input/createInputModes.ts +84 -0
- package/src/theme/lib/theme/color/input/index.ts +1 -0
- package/src/theme/lib/theme/color/input/types.ts +28 -0
- package/src/theme/lib/theme/color/muted/createMuted.ts +56 -0
- package/src/theme/lib/theme/color/muted/index.ts +1 -0
- package/src/theme/lib/theme/color/muted/types.ts +24 -0
- package/src/theme/lib/theme/color/selectable/createSelectableTones.ts +73 -0
- package/src/theme/lib/theme/color/selectable/index.ts +1 -0
- package/src/theme/lib/theme/color/selectable/types.ts +29 -0
- package/src/theme/lib/theme/color/solid/createSolidTones.ts +56 -0
- package/src/theme/lib/theme/color/solid/index.ts +1 -0
- package/src/theme/lib/theme/color/solid/types.ts +24 -0
- package/src/theme/lib/theme/color/spot/createSpot.ts +21 -0
- package/src/theme/lib/theme/color/spot/index.ts +1 -0
- package/src/theme/lib/theme/color/spot/types.ts +28 -0
- package/src/theme/lib/theme/color/syntax/index.ts +1 -0
- package/src/theme/lib/theme/color/syntax/types.ts +41 -0
- package/src/theme/lib/theme/color/types.ts +37 -6
- package/src/theme/studioTheme/color.ts +661 -6
- package/src/theme/studioTheme/theme.ts +2 -8
- package/src/theme/{lib/theme/color/cssVariables → studioTheme}/tints.ts +2 -2
- package/src/theme/themeColorProvider.tsx +0 -2
- package/src/theme/themeProvider.tsx +8 -28
- package/src/theme/types.ts +4 -2
- package/src/utils/elementQuery/__workshop__/customMedia.tsx +3 -4
- package/src/primitives/avatar/spotColors.ts +0 -53
- package/src/theme/lib/theme/color/cssVariables/cardVariables.ts +0 -88
- package/src/theme/lib/theme/color/cssVariables/createCssVars.ts +0 -31
- package/src/theme/lib/theme/color/cssVariables/cssVars.test.ts +0 -262
- package/src/theme/lib/theme/color/cssVariables/index.ts +0 -1
- package/src/theme/lib/theme/color/cssVariables/tones.ts +0 -67
- package/src/theme/lib/theme/color/cssVariables/utils.test.ts +0 -15
- package/src/theme/lib/theme/color/cssVariables/utils.ts +0 -9
- package/src/theme/toneContext/toneContext.ts +0 -12
- package/src/theme/toneContext/toneProvider.tsx +0 -31
- package/src/theme/toneContext/types.ts +0 -10
- package/src/theme/toneContext/useToneContext.tsx +0 -26
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import {AnimationEventHandler} from 'react'
|
|
4
4
|
import {AriaRole} from 'react'
|
|
5
5
|
import {ClipboardEventHandler} from 'react'
|
|
6
|
-
import {ColorTints} from '@sanity/color'
|
|
7
6
|
import {Component} from 'react'
|
|
8
7
|
import {CompositionEventHandler} from 'react'
|
|
9
8
|
import {CSSProperties} from 'react'
|
|
@@ -50,10 +49,8 @@ export declare const Autocomplete: <Option extends BaseAutocompleteOption>(
|
|
|
50
49
|
props: AutocompleteProps<Option> &
|
|
51
50
|
Omit<
|
|
52
51
|
HTMLProps<HTMLInputElement>,
|
|
53
|
-
| 'type'
|
|
54
52
|
| 'value'
|
|
55
53
|
| 'ref'
|
|
56
|
-
| 'as'
|
|
57
54
|
| 'id'
|
|
58
55
|
| 'spellCheck'
|
|
59
56
|
| 'role'
|
|
@@ -67,7 +64,9 @@ export declare const Autocomplete: <Option extends BaseAutocompleteOption>(
|
|
|
67
64
|
| 'aria-owns'
|
|
68
65
|
| 'onChange'
|
|
69
66
|
| 'onSelect'
|
|
67
|
+
| 'as'
|
|
70
68
|
| 'autoComplete'
|
|
69
|
+
| 'type'
|
|
71
70
|
> & {
|
|
72
71
|
ref?: Ref<HTMLInputElement> | undefined
|
|
73
72
|
},
|
|
@@ -396,7 +395,7 @@ export declare interface BoundaryElementProviderProps {
|
|
|
396
395
|
* @public
|
|
397
396
|
*/
|
|
398
397
|
export declare const Box: ForwardRefExoticComponent<
|
|
399
|
-
Omit<BoxProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
398
|
+
Omit<BoxProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
|
|
400
399
|
RefAttributes<HTMLDivElement>
|
|
401
400
|
>
|
|
402
401
|
|
|
@@ -444,7 +443,7 @@ export declare type BoxSizing = 'content' | 'border'
|
|
|
444
443
|
*/
|
|
445
444
|
export declare const Breadcrumbs: ForwardRefExoticComponent<
|
|
446
445
|
BreadcrumbsProps &
|
|
447
|
-
Omit<HTMLProps<HTMLOListElement>, '
|
|
446
|
+
Omit<HTMLProps<HTMLOListElement>, 'ref' | 'as' | 'type'> &
|
|
448
447
|
RefAttributes<HTMLOListElement>
|
|
449
448
|
>
|
|
450
449
|
|
|
@@ -507,7 +506,7 @@ export declare type ButtonTone = 'default' | 'primary' | 'positive' | 'caution'
|
|
|
507
506
|
* @public
|
|
508
507
|
*/
|
|
509
508
|
export declare const Card: ForwardRefExoticComponent<
|
|
510
|
-
Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
509
|
+
Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
|
|
511
510
|
RefAttributes<HTMLDivElement>
|
|
512
511
|
>
|
|
513
512
|
|
|
@@ -532,12 +531,6 @@ export declare interface CardProps
|
|
|
532
531
|
pressed?: boolean
|
|
533
532
|
scheme?: ThemeColorSchemeKey
|
|
534
533
|
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
|
|
541
534
|
}
|
|
542
535
|
|
|
543
536
|
/**
|
|
@@ -547,8 +540,6 @@ export declare interface CardStyleProps {
|
|
|
547
540
|
$checkered: boolean
|
|
548
541
|
$focusRing: boolean
|
|
549
542
|
$tone: ThemeColorToneKey
|
|
550
|
-
$scheme: ThemeColorSchemeKey
|
|
551
|
-
$updateCssVars: boolean
|
|
552
543
|
}
|
|
553
544
|
|
|
554
545
|
/**
|
|
@@ -560,7 +551,7 @@ export declare type CardTone = ThemeColorToneKey | 'inherit'
|
|
|
560
551
|
* @public
|
|
561
552
|
*/
|
|
562
553
|
export declare const Checkbox: ForwardRefExoticComponent<
|
|
563
|
-
Omit<Omit<HTMLProps<HTMLInputElement>, '
|
|
554
|
+
Omit<Omit<HTMLProps<HTMLInputElement>, 'as' | 'type'> & CheckboxProps, 'ref'> &
|
|
564
555
|
RefAttributes<HTMLInputElement>
|
|
565
556
|
>
|
|
566
557
|
|
|
@@ -581,7 +572,7 @@ export declare type ClickOutsideListener = (event: MouseEvent) => void
|
|
|
581
572
|
* @public
|
|
582
573
|
*/
|
|
583
574
|
export declare const Code: ForwardRefExoticComponent<
|
|
584
|
-
Omit<CodeProps & Omit<HTMLProps<HTMLElement>, '
|
|
575
|
+
Omit<CodeProps & Omit<HTMLProps<HTMLElement>, 'size' | 'as'>, 'ref'> & RefAttributes<HTMLElement>
|
|
585
576
|
>
|
|
586
577
|
|
|
587
578
|
/**
|
|
@@ -600,7 +591,7 @@ export declare interface CodeProps {
|
|
|
600
591
|
*/
|
|
601
592
|
export declare const CodeSkeleton: ForwardRefExoticComponent<
|
|
602
593
|
Omit<
|
|
603
|
-
CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | '
|
|
594
|
+
CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'size' | 'height' | 'as'>,
|
|
604
595
|
'ref'
|
|
605
596
|
> &
|
|
606
597
|
RefAttributes<HTMLDivElement>
|
|
@@ -618,7 +609,7 @@ export declare interface CodeSkeletonProps extends SkeletonProps {
|
|
|
618
609
|
* @public
|
|
619
610
|
*/
|
|
620
611
|
export declare const Container: ForwardRefExoticComponent<
|
|
621
|
-
Omit<ContainerProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
612
|
+
Omit<ContainerProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'as'>, 'ref'> &
|
|
622
613
|
RefAttributes<HTMLDivElement>
|
|
623
614
|
>
|
|
624
615
|
|
|
@@ -633,240 +624,15 @@ export declare interface ContainerProps extends BoxProps, ResponsiveWidthProps {
|
|
|
633
624
|
export declare function containsOrEqualsElement(element: HTMLElement, node: Node): boolean
|
|
634
625
|
|
|
635
626
|
/**
|
|
636
|
-
* @
|
|
637
|
-
* @deprecated Use studioTheme instead.
|
|
638
|
-
*/
|
|
639
|
-
export declare function createColorTheme(): null
|
|
640
|
-
|
|
641
|
-
/**
|
|
642
|
-
* @beta
|
|
627
|
+
* @public
|
|
643
628
|
*/
|
|
644
|
-
export declare
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
defaultTone?: ThemeColorName,
|
|
648
|
-
) => Record<string, string>
|
|
629
|
+
export declare function createColorTheme(
|
|
630
|
+
partialOpts?: PartialThemeColorBuilderOpts,
|
|
631
|
+
): ThemeColorSchemes
|
|
649
632
|
|
|
650
633
|
/** @internal */
|
|
651
634
|
export declare type CSSObject = StyledObject<any>
|
|
652
635
|
|
|
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
|
-
|
|
870
636
|
/**
|
|
871
637
|
* @public
|
|
872
638
|
*/
|
|
@@ -881,7 +647,7 @@ export declare type Delay =
|
|
|
881
647
|
* @public
|
|
882
648
|
*/
|
|
883
649
|
export declare const Dialog: ForwardRefExoticComponent<
|
|
884
|
-
Omit<DialogProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
650
|
+
Omit<DialogProps & Omit<HTMLProps<HTMLDivElement>, 'width' | 'id' | 'as'>, 'ref'> &
|
|
885
651
|
RefAttributes<HTMLDivElement>
|
|
886
652
|
>
|
|
887
653
|
|
|
@@ -1039,7 +805,7 @@ export declare function _fillCSSObject(
|
|
|
1039
805
|
* @public
|
|
1040
806
|
*/
|
|
1041
807
|
export declare const Flex: ForwardRefExoticComponent<
|
|
1042
|
-
Omit<FlexProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
808
|
+
Omit<FlexProps & Omit<HTMLProps<HTMLDivElement>, 'wrap' | 'as'>, 'ref'> &
|
|
1043
809
|
RefAttributes<HTMLDivElement>
|
|
1044
810
|
>
|
|
1045
811
|
|
|
@@ -1127,7 +893,7 @@ export declare function _getResponsiveSpace(
|
|
|
1127
893
|
* @public
|
|
1128
894
|
*/
|
|
1129
895
|
export declare const Grid: ForwardRefExoticComponent<
|
|
1130
|
-
Omit<GridProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
896
|
+
Omit<GridProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as' | 'rows'>, 'ref'> &
|
|
1131
897
|
RefAttributes<HTMLDivElement>
|
|
1132
898
|
>
|
|
1133
899
|
|
|
@@ -1190,7 +956,7 @@ export declare function _hasFocus(element: HTMLElement): boolean
|
|
|
1190
956
|
* @public
|
|
1191
957
|
*/
|
|
1192
958
|
export declare const Heading: ForwardRefExoticComponent<
|
|
1193
|
-
Omit<HeadingProps & Omit<HTMLProps<HTMLElement>, '
|
|
959
|
+
Omit<HeadingProps & Omit<HTMLProps<HTMLElement>, 'size' | 'as'>, 'ref'> &
|
|
1194
960
|
RefAttributes<HTMLElement>
|
|
1195
961
|
>
|
|
1196
962
|
|
|
@@ -1218,7 +984,7 @@ export declare interface HeadingProps {
|
|
|
1218
984
|
*/
|
|
1219
985
|
export declare const HeadingSkeleton: ForwardRefExoticComponent<
|
|
1220
986
|
Omit<
|
|
1221
|
-
HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | '
|
|
987
|
+
HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'size' | 'height' | 'as'>,
|
|
1222
988
|
'ref'
|
|
1223
989
|
> &
|
|
1224
990
|
RefAttributes<HTMLDivElement>
|
|
@@ -1241,7 +1007,7 @@ export declare function hexToRgb(hex: string): RGB
|
|
|
1241
1007
|
* @public
|
|
1242
1008
|
*/
|
|
1243
1009
|
export declare const Hotkeys: ForwardRefExoticComponent<
|
|
1244
|
-
HotkeysProps & Omit<HTMLProps<HTMLElement>, 'ref' | '
|
|
1010
|
+
HotkeysProps & Omit<HTMLProps<HTMLElement>, 'ref' | 'size' | 'as'> & RefAttributes<HTMLElement>
|
|
1245
1011
|
>
|
|
1246
1012
|
|
|
1247
1013
|
/**
|
|
@@ -1332,7 +1098,7 @@ export declare function _isScrollable(el: Node): boolean
|
|
|
1332
1098
|
* @public
|
|
1333
1099
|
*/
|
|
1334
1100
|
export declare const KBD: ForwardRefExoticComponent<
|
|
1335
|
-
KBDProps & Omit<HTMLProps<HTMLElement>, 'ref' | '
|
|
1101
|
+
KBDProps & Omit<HTMLProps<HTMLElement>, 'ref' | 'size' | 'as'> & RefAttributes<HTMLDivElement>
|
|
1336
1102
|
>
|
|
1337
1103
|
|
|
1338
1104
|
/**
|
|
@@ -1349,7 +1115,7 @@ export declare interface KBDProps {
|
|
|
1349
1115
|
* @public
|
|
1350
1116
|
*/
|
|
1351
1117
|
export declare const Label: ForwardRefExoticComponent<
|
|
1352
|
-
Omit<LabelProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
1118
|
+
Omit<LabelProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'as'>, 'ref'> &
|
|
1353
1119
|
RefAttributes<HTMLDivElement>
|
|
1354
1120
|
>
|
|
1355
1121
|
|
|
@@ -1377,7 +1143,7 @@ export declare interface LabelProps {
|
|
|
1377
1143
|
*/
|
|
1378
1144
|
export declare const LabelSkeleton: ForwardRefExoticComponent<
|
|
1379
1145
|
Omit<
|
|
1380
|
-
LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | '
|
|
1146
|
+
LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'size' | 'height' | 'as'>,
|
|
1381
1147
|
'ref'
|
|
1382
1148
|
> &
|
|
1383
1149
|
RefAttributes<HTMLDivElement>
|
|
@@ -1452,7 +1218,7 @@ export declare interface _MediaStore {
|
|
|
1452
1218
|
* @public
|
|
1453
1219
|
*/
|
|
1454
1220
|
export declare const Menu: ForwardRefExoticComponent<
|
|
1455
|
-
Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
1221
|
+
Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'tabIndex' | 'role' | 'as'>, 'ref'> &
|
|
1456
1222
|
RefAttributes<HTMLDivElement>
|
|
1457
1223
|
>
|
|
1458
1224
|
|
|
@@ -1560,8 +1326,8 @@ export declare const MenuDivider: IStyledComponent<
|
|
|
1560
1326
|
security?: string | undefined
|
|
1561
1327
|
unselectable?: 'on' | 'off' | undefined
|
|
1562
1328
|
inputMode?:
|
|
1563
|
-
| 'search'
|
|
1564
1329
|
| 'text'
|
|
1330
|
+
| 'search'
|
|
1565
1331
|
| 'none'
|
|
1566
1332
|
| 'tel'
|
|
1567
1333
|
| 'url'
|
|
@@ -1851,7 +1617,7 @@ export declare interface MenuGroupProps {
|
|
|
1851
1617
|
*/
|
|
1852
1618
|
export declare const MenuItem: ForwardRefExoticComponent<
|
|
1853
1619
|
MenuItemProps &
|
|
1854
|
-
Omit<HTMLProps<HTMLDivElement>, '
|
|
1620
|
+
Omit<HTMLProps<HTMLDivElement>, 'selected' | 'ref' | 'height' | 'tabIndex' | 'as'> &
|
|
1855
1621
|
RefAttributes<HTMLDivElement>
|
|
1856
1622
|
>
|
|
1857
1623
|
|
|
@@ -1868,7 +1634,7 @@ export declare interface MenuItemProps extends ResponsivePaddingProps, Responsiv
|
|
|
1868
1634
|
selected?: boolean
|
|
1869
1635
|
space?: number | number[]
|
|
1870
1636
|
text?: React.ReactNode
|
|
1871
|
-
tone?:
|
|
1637
|
+
tone?: SelectableTone
|
|
1872
1638
|
}
|
|
1873
1639
|
|
|
1874
1640
|
/**
|
|
@@ -1905,6 +1671,11 @@ export declare function multiply(b: RGB | RGBA, s: RGB | RGBA): RGB
|
|
|
1905
1671
|
*/
|
|
1906
1672
|
export declare function parseColor(color: unknown): RGB | RGBA
|
|
1907
1673
|
|
|
1674
|
+
/**
|
|
1675
|
+
* @public
|
|
1676
|
+
*/
|
|
1677
|
+
export declare type PartialThemeColorBuilderOpts = Partial<ThemeColorBuilderOpts>
|
|
1678
|
+
|
|
1908
1679
|
/**
|
|
1909
1680
|
* Placement of floating UI elements.
|
|
1910
1681
|
*
|
|
@@ -1928,7 +1699,7 @@ export declare type Placement =
|
|
|
1928
1699
|
export declare const Popover: MemoExoticComponent<
|
|
1929
1700
|
ForwardRefExoticComponent<
|
|
1930
1701
|
Omit<
|
|
1931
|
-
PopoverProps & Omit<HTMLProps<HTMLDivElement>, 'children' | '
|
|
1702
|
+
PopoverProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'content' | 'width' | 'as'>,
|
|
1932
1703
|
'ref'
|
|
1933
1704
|
> &
|
|
1934
1705
|
RefAttributes<HTMLDivElement>
|
|
@@ -2031,7 +1802,7 @@ export declare interface PortalProviderProps {
|
|
|
2031
1802
|
* @public
|
|
2032
1803
|
*/
|
|
2033
1804
|
export declare const Radio: ForwardRefExoticComponent<
|
|
2034
|
-
Omit<Omit<HTMLProps<HTMLInputElement>, '
|
|
1805
|
+
Omit<Omit<HTMLProps<HTMLInputElement>, 'as' | 'type'> & RadioProps, 'ref'> &
|
|
2035
1806
|
RefAttributes<HTMLInputElement>
|
|
2036
1807
|
>
|
|
2037
1808
|
|
|
@@ -2365,7 +2136,7 @@ export declare interface SkeletonProps extends ResponsiveRadiusProps, Omit<BoxPr
|
|
|
2365
2136
|
* @public
|
|
2366
2137
|
*/
|
|
2367
2138
|
export declare const Spinner: ForwardRefExoticComponent<
|
|
2368
|
-
Omit<SpinnerProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
2139
|
+
Omit<SpinnerProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'as'>, 'ref'> &
|
|
2369
2140
|
RefAttributes<HTMLDivElement>
|
|
2370
2141
|
>
|
|
2371
2142
|
|
|
@@ -2381,7 +2152,7 @@ export declare interface SpinnerProps {
|
|
|
2381
2152
|
* @public
|
|
2382
2153
|
*/
|
|
2383
2154
|
export declare const SrOnly: ForwardRefExoticComponent<
|
|
2384
|
-
Omit<SrOnlyProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
2155
|
+
Omit<SrOnlyProps & Omit<HTMLProps<HTMLDivElement>, 'aria-hidden' | 'as'>, 'ref'> &
|
|
2385
2156
|
RefAttributes<HTMLDivElement>
|
|
2386
2157
|
>
|
|
2387
2158
|
|
|
@@ -2430,7 +2201,7 @@ export declare interface Styles {
|
|
|
2430
2201
|
* @public
|
|
2431
2202
|
*/
|
|
2432
2203
|
export declare const Switch: ForwardRefExoticComponent<
|
|
2433
|
-
Omit<Omit<HTMLProps<HTMLInputElement>, '
|
|
2204
|
+
Omit<Omit<HTMLProps<HTMLInputElement>, 'as' | 'type'> & SwitchProps, 'ref'> &
|
|
2434
2205
|
RefAttributes<HTMLInputElement>
|
|
2435
2206
|
>
|
|
2436
2207
|
|
|
@@ -2446,7 +2217,7 @@ export declare interface SwitchProps {
|
|
|
2446
2217
|
*/
|
|
2447
2218
|
export declare const Tab: ForwardRefExoticComponent<
|
|
2448
2219
|
Omit<
|
|
2449
|
-
TabProps & Omit<HTMLProps<HTMLButtonElement>, '
|
|
2220
|
+
TabProps & Omit<HTMLProps<HTMLButtonElement>, 'label' | 'id' | 'aria-controls' | 'as' | 'type'>,
|
|
2450
2221
|
'ref'
|
|
2451
2222
|
> &
|
|
2452
2223
|
RefAttributes<HTMLButtonElement>
|
|
@@ -2456,7 +2227,7 @@ export declare const Tab: ForwardRefExoticComponent<
|
|
|
2456
2227
|
* @public
|
|
2457
2228
|
*/
|
|
2458
2229
|
export declare const TabList: ForwardRefExoticComponent<
|
|
2459
|
-
Omit<TabListProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
2230
|
+
Omit<TabListProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
|
|
2460
2231
|
RefAttributes<unknown>
|
|
2461
2232
|
>
|
|
2462
2233
|
|
|
@@ -2472,7 +2243,7 @@ export declare interface TabListProps extends Omit<InlineProps, 'as' | 'height'>
|
|
|
2472
2243
|
*/
|
|
2473
2244
|
export declare const TabPanel: ForwardRefExoticComponent<
|
|
2474
2245
|
Omit<
|
|
2475
|
-
TabPanelProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
2246
|
+
TabPanelProps & Omit<HTMLProps<HTMLDivElement>, 'id' | 'role' | 'aria-labelledby' | 'as'>,
|
|
2476
2247
|
'ref'
|
|
2477
2248
|
> &
|
|
2478
2249
|
RefAttributes<HTMLDivElement>
|
|
@@ -2511,7 +2282,7 @@ export declare interface TabProps {
|
|
|
2511
2282
|
* @public
|
|
2512
2283
|
*/
|
|
2513
2284
|
declare const Text_2: ForwardRefExoticComponent<
|
|
2514
|
-
Omit<TextProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
2285
|
+
Omit<TextProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'as'>, 'ref'> &
|
|
2515
2286
|
RefAttributes<HTMLDivElement>
|
|
2516
2287
|
>
|
|
2517
2288
|
export {Text_2 as Text}
|
|
@@ -2538,14 +2309,13 @@ export declare interface TextAreaProps extends ResponsiveRadiusProps {
|
|
|
2538
2309
|
fontSize?: number | number[]
|
|
2539
2310
|
padding?: number | number[]
|
|
2540
2311
|
weight?: ThemeFontWeightKey
|
|
2541
|
-
tone?: ThemeColorToneKey
|
|
2542
2312
|
}
|
|
2543
2313
|
|
|
2544
2314
|
/**
|
|
2545
2315
|
* @public
|
|
2546
2316
|
*/
|
|
2547
2317
|
export declare const TextInput: ForwardRefExoticComponent<
|
|
2548
|
-
Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, '
|
|
2318
|
+
Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, 'prefix' | 'as' | 'type'>, 'ref'> &
|
|
2549
2319
|
RefAttributes<HTMLInputElement>
|
|
2550
2320
|
>
|
|
2551
2321
|
|
|
@@ -2579,7 +2349,6 @@ export declare interface TextInputProps {
|
|
|
2579
2349
|
suffix?: React.ReactNode
|
|
2580
2350
|
type?: TextInputType
|
|
2581
2351
|
weight?: ThemeFontWeightKey
|
|
2582
|
-
tone?: ThemeColorToneKey
|
|
2583
2352
|
}
|
|
2584
2353
|
|
|
2585
2354
|
/**
|
|
@@ -2623,7 +2392,7 @@ export declare interface TextProps {
|
|
|
2623
2392
|
*/
|
|
2624
2393
|
export declare const TextSkeleton: ForwardRefExoticComponent<
|
|
2625
2394
|
Omit<
|
|
2626
|
-
TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | '
|
|
2395
|
+
TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'size' | 'height' | 'as'>,
|
|
2627
2396
|
'ref'
|
|
2628
2397
|
> &
|
|
2629
2398
|
RefAttributes<HTMLDivElement>
|
|
@@ -2641,7 +2410,9 @@ export declare interface TextSkeletonProps extends SkeletonProps {
|
|
|
2641
2410
|
* @public
|
|
2642
2411
|
*/
|
|
2643
2412
|
export declare interface Theme {
|
|
2644
|
-
sanity: RootTheme
|
|
2413
|
+
sanity: Omit<RootTheme, 'color'> & {
|
|
2414
|
+
color: ThemeColor
|
|
2415
|
+
}
|
|
2645
2416
|
}
|
|
2646
2417
|
|
|
2647
2418
|
/**
|
|
@@ -2655,6 +2426,239 @@ export declare interface ThemeAvatar {
|
|
|
2655
2426
|
focusRing: FocusRing
|
|
2656
2427
|
}
|
|
2657
2428
|
|
|
2429
|
+
/**
|
|
2430
|
+
* @public
|
|
2431
|
+
*/
|
|
2432
|
+
export declare interface ThemeColor {
|
|
2433
|
+
dark: boolean
|
|
2434
|
+
base: ThemeColorBase
|
|
2435
|
+
button: ThemeColorButton
|
|
2436
|
+
card: ThemeColorCard
|
|
2437
|
+
input: ThemeColorInput
|
|
2438
|
+
selectable?: ThemeColorSelectable
|
|
2439
|
+
spot: ThemeColorSpot
|
|
2440
|
+
syntax: ThemeColorSyntax
|
|
2441
|
+
solid: ThemeColorSolid
|
|
2442
|
+
muted: ThemeColorMuted
|
|
2443
|
+
}
|
|
2444
|
+
|
|
2445
|
+
/**
|
|
2446
|
+
* @public
|
|
2447
|
+
*/
|
|
2448
|
+
export declare interface ThemeColorBase {
|
|
2449
|
+
bg: string
|
|
2450
|
+
fg: string
|
|
2451
|
+
border: string
|
|
2452
|
+
focusRing: string
|
|
2453
|
+
shadow: {
|
|
2454
|
+
outline: string
|
|
2455
|
+
umbra: string
|
|
2456
|
+
penumbra: string
|
|
2457
|
+
ambient: string
|
|
2458
|
+
}
|
|
2459
|
+
skeleton?: {
|
|
2460
|
+
from: string
|
|
2461
|
+
to: string
|
|
2462
|
+
}
|
|
2463
|
+
}
|
|
2464
|
+
|
|
2465
|
+
/**
|
|
2466
|
+
* @public
|
|
2467
|
+
*/
|
|
2468
|
+
export declare interface ThemeColorBuilderOpts {
|
|
2469
|
+
base: (opts: {dark: boolean; name: ThemeColorName}) => ThemeColorBase
|
|
2470
|
+
solid: (opts: {
|
|
2471
|
+
base: ThemeColorBase
|
|
2472
|
+
dark: boolean
|
|
2473
|
+
tone: ThemeColorToneKey
|
|
2474
|
+
name: ThemeColorName
|
|
2475
|
+
state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected'
|
|
2476
|
+
}) => ThemeColorGenericState
|
|
2477
|
+
muted: (opts: {
|
|
2478
|
+
base: ThemeColorBase
|
|
2479
|
+
dark: boolean
|
|
2480
|
+
tone: ThemeColorToneKey
|
|
2481
|
+
name: ThemeColorName
|
|
2482
|
+
state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected'
|
|
2483
|
+
}) => ThemeColorGenericState
|
|
2484
|
+
card: (opts: {
|
|
2485
|
+
base: ThemeColorBase
|
|
2486
|
+
dark: boolean
|
|
2487
|
+
muted: ThemeColorMuted
|
|
2488
|
+
name: ThemeColorName
|
|
2489
|
+
solid: ThemeColorSolid
|
|
2490
|
+
state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected'
|
|
2491
|
+
}) => ThemeColorCardState
|
|
2492
|
+
button: (opts: {
|
|
2493
|
+
dark: boolean
|
|
2494
|
+
mode: ThemeColorButtonModeKey
|
|
2495
|
+
base: ThemeColorBase
|
|
2496
|
+
solid: ThemeColorSolidTone
|
|
2497
|
+
muted: ThemeColorMutedTone
|
|
2498
|
+
}) => ThemeColorButtonStates
|
|
2499
|
+
input: (opts: {
|
|
2500
|
+
base: ThemeColorBase
|
|
2501
|
+
solid: ThemeColorSolidTone
|
|
2502
|
+
muted: ThemeColorMutedTone
|
|
2503
|
+
dark: boolean
|
|
2504
|
+
mode: 'default' | 'invalid'
|
|
2505
|
+
state: 'enabled' | 'disabled' | 'hovered' | 'readOnly'
|
|
2506
|
+
}) => ThemeColorInputState
|
|
2507
|
+
selectable: (opts: {
|
|
2508
|
+
dark: boolean
|
|
2509
|
+
base: ThemeColorBase
|
|
2510
|
+
solid: ThemeColorSolid
|
|
2511
|
+
muted: ThemeColorMuted
|
|
2512
|
+
state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected'
|
|
2513
|
+
tone: 'default' | 'primary' | 'positive' | 'caution' | 'critical'
|
|
2514
|
+
}) => ThemeColorSelectableState
|
|
2515
|
+
syntax: (opts: {base: ThemeColorBase; dark: boolean}) => ThemeColorSyntax
|
|
2516
|
+
spot: (opts: {base: ThemeColorBase; dark: boolean; key: ThemeColorSpotKey}) => string
|
|
2517
|
+
}
|
|
2518
|
+
|
|
2519
|
+
/**
|
|
2520
|
+
* @public
|
|
2521
|
+
*/
|
|
2522
|
+
export declare interface ThemeColorButton {
|
|
2523
|
+
default: ThemeColorButtonTones
|
|
2524
|
+
ghost: ThemeColorButtonTones
|
|
2525
|
+
bleed: ThemeColorButtonTones
|
|
2526
|
+
}
|
|
2527
|
+
|
|
2528
|
+
/**
|
|
2529
|
+
* @public
|
|
2530
|
+
*/
|
|
2531
|
+
export declare type ThemeColorButtonModeKey = 'default' | 'ghost' | 'bleed'
|
|
2532
|
+
|
|
2533
|
+
/**
|
|
2534
|
+
* @deprecated Use `ThemeColorGenericState` instead.
|
|
2535
|
+
* @public
|
|
2536
|
+
*/
|
|
2537
|
+
export declare type ThemeColorButtonState = ThemeColorGenericState
|
|
2538
|
+
|
|
2539
|
+
/**
|
|
2540
|
+
* @public
|
|
2541
|
+
*/
|
|
2542
|
+
export declare interface ThemeColorButtonStates {
|
|
2543
|
+
enabled: ThemeColorButtonState
|
|
2544
|
+
hovered: ThemeColorButtonState
|
|
2545
|
+
pressed: ThemeColorButtonState
|
|
2546
|
+
selected: ThemeColorButtonState
|
|
2547
|
+
disabled: ThemeColorButtonState
|
|
2548
|
+
}
|
|
2549
|
+
|
|
2550
|
+
/**
|
|
2551
|
+
* TODO: Rename to `ThemeColorButtonMode`.
|
|
2552
|
+
* @public
|
|
2553
|
+
*/
|
|
2554
|
+
export declare interface ThemeColorButtonTones {
|
|
2555
|
+
default: ThemeColorButtonStates
|
|
2556
|
+
primary: ThemeColorButtonStates
|
|
2557
|
+
positive: ThemeColorButtonStates
|
|
2558
|
+
caution: ThemeColorButtonStates
|
|
2559
|
+
critical: ThemeColorButtonStates
|
|
2560
|
+
}
|
|
2561
|
+
|
|
2562
|
+
/**
|
|
2563
|
+
* @public
|
|
2564
|
+
*/
|
|
2565
|
+
export declare interface ThemeColorCard {
|
|
2566
|
+
enabled: ThemeColorCardState
|
|
2567
|
+
hovered: ThemeColorCardState
|
|
2568
|
+
pressed: ThemeColorCardState
|
|
2569
|
+
selected: ThemeColorCardState
|
|
2570
|
+
disabled: ThemeColorCardState
|
|
2571
|
+
}
|
|
2572
|
+
|
|
2573
|
+
/**
|
|
2574
|
+
* @deprecated Use `ThemeColorGenericState` instead.
|
|
2575
|
+
* @public
|
|
2576
|
+
*/
|
|
2577
|
+
export declare type ThemeColorCardState = ThemeColorGenericState
|
|
2578
|
+
|
|
2579
|
+
/**
|
|
2580
|
+
* @public
|
|
2581
|
+
*/
|
|
2582
|
+
export declare interface ThemeColorGenericState {
|
|
2583
|
+
bg: string
|
|
2584
|
+
/**
|
|
2585
|
+
* @beta
|
|
2586
|
+
*/
|
|
2587
|
+
bg2?: string
|
|
2588
|
+
border: string
|
|
2589
|
+
fg: string
|
|
2590
|
+
iconColor: string
|
|
2591
|
+
muted: {
|
|
2592
|
+
fg: string
|
|
2593
|
+
}
|
|
2594
|
+
accent: {
|
|
2595
|
+
fg: string
|
|
2596
|
+
}
|
|
2597
|
+
link: {
|
|
2598
|
+
fg: string
|
|
2599
|
+
}
|
|
2600
|
+
code: {
|
|
2601
|
+
bg: string
|
|
2602
|
+
fg: string
|
|
2603
|
+
}
|
|
2604
|
+
skeleton?: {
|
|
2605
|
+
from: string
|
|
2606
|
+
to: string
|
|
2607
|
+
}
|
|
2608
|
+
}
|
|
2609
|
+
|
|
2610
|
+
/**
|
|
2611
|
+
* @public
|
|
2612
|
+
*/
|
|
2613
|
+
export declare interface ThemeColorInput {
|
|
2614
|
+
default: ThemeColorInputStates
|
|
2615
|
+
invalid: ThemeColorInputStates
|
|
2616
|
+
}
|
|
2617
|
+
|
|
2618
|
+
/**
|
|
2619
|
+
* @public
|
|
2620
|
+
*/
|
|
2621
|
+
export declare interface ThemeColorInputState {
|
|
2622
|
+
bg: string
|
|
2623
|
+
bg2: string
|
|
2624
|
+
fg: string
|
|
2625
|
+
border: string
|
|
2626
|
+
placeholder: string
|
|
2627
|
+
}
|
|
2628
|
+
|
|
2629
|
+
/**
|
|
2630
|
+
* @public
|
|
2631
|
+
*/
|
|
2632
|
+
export declare interface ThemeColorInputStates {
|
|
2633
|
+
enabled: ThemeColorInputState
|
|
2634
|
+
disabled: ThemeColorInputState
|
|
2635
|
+
hovered: ThemeColorInputState
|
|
2636
|
+
readOnly: ThemeColorInputState
|
|
2637
|
+
}
|
|
2638
|
+
|
|
2639
|
+
/**
|
|
2640
|
+
* @public
|
|
2641
|
+
*/
|
|
2642
|
+
export declare interface ThemeColorMuted {
|
|
2643
|
+
default: ThemeColorMutedTone
|
|
2644
|
+
transparent: ThemeColorMutedTone
|
|
2645
|
+
primary: ThemeColorMutedTone
|
|
2646
|
+
positive: ThemeColorMutedTone
|
|
2647
|
+
caution: ThemeColorMutedTone
|
|
2648
|
+
critical: ThemeColorMutedTone
|
|
2649
|
+
}
|
|
2650
|
+
|
|
2651
|
+
/**
|
|
2652
|
+
* @public
|
|
2653
|
+
*/
|
|
2654
|
+
export declare interface ThemeColorMutedTone {
|
|
2655
|
+
enabled: ThemeColorGenericState
|
|
2656
|
+
disabled: ThemeColorGenericState
|
|
2657
|
+
hovered: ThemeColorGenericState
|
|
2658
|
+
pressed: ThemeColorGenericState
|
|
2659
|
+
selected: ThemeColorGenericState
|
|
2660
|
+
}
|
|
2661
|
+
|
|
2658
2662
|
/**
|
|
2659
2663
|
* @public
|
|
2660
2664
|
*/
|
|
@@ -2668,13 +2672,11 @@ export declare type ThemeColorName =
|
|
|
2668
2672
|
|
|
2669
2673
|
/**
|
|
2670
2674
|
* @public
|
|
2671
|
-
* @deprecated Use `toneContext` instead.
|
|
2672
2675
|
*/
|
|
2673
2676
|
export declare function ThemeColorProvider(props: ThemeColorProviderProps): React.ReactElement
|
|
2674
2677
|
|
|
2675
2678
|
/**
|
|
2676
2679
|
* @public
|
|
2677
|
-
* @deprecated
|
|
2678
2680
|
*/
|
|
2679
2681
|
export declare interface ThemeColorProviderProps {
|
|
2680
2682
|
children?: React.ReactNode
|
|
@@ -2682,6 +2684,18 @@ export declare interface ThemeColorProviderProps {
|
|
|
2682
2684
|
tone?: ThemeColorName
|
|
2683
2685
|
}
|
|
2684
2686
|
|
|
2687
|
+
/**
|
|
2688
|
+
* @public
|
|
2689
|
+
*/
|
|
2690
|
+
export declare interface ThemeColorScheme {
|
|
2691
|
+
default: ThemeColor
|
|
2692
|
+
transparent: ThemeColor
|
|
2693
|
+
primary: ThemeColor
|
|
2694
|
+
positive: ThemeColor
|
|
2695
|
+
caution: ThemeColor
|
|
2696
|
+
critical: ThemeColor
|
|
2697
|
+
}
|
|
2698
|
+
|
|
2685
2699
|
/**
|
|
2686
2700
|
* @public
|
|
2687
2701
|
*/
|
|
@@ -2691,7 +2705,74 @@ export declare type ThemeColorSchemeKey = 'dark' | 'light'
|
|
|
2691
2705
|
* @public
|
|
2692
2706
|
*/
|
|
2693
2707
|
export declare interface ThemeColorSchemes {
|
|
2694
|
-
|
|
2708
|
+
dark: ThemeColorScheme
|
|
2709
|
+
light: ThemeColorScheme
|
|
2710
|
+
}
|
|
2711
|
+
|
|
2712
|
+
/**
|
|
2713
|
+
* @public
|
|
2714
|
+
*/
|
|
2715
|
+
export declare interface ThemeColorSelectable {
|
|
2716
|
+
default: ThemeColorSelectableStates
|
|
2717
|
+
primary: ThemeColorSelectableStates
|
|
2718
|
+
positive: ThemeColorSelectableStates
|
|
2719
|
+
caution: ThemeColorSelectableStates
|
|
2720
|
+
critical: ThemeColorSelectableStates
|
|
2721
|
+
}
|
|
2722
|
+
|
|
2723
|
+
/**
|
|
2724
|
+
* @deprecated Use `ThemeColorGenericState` instead.
|
|
2725
|
+
* @public
|
|
2726
|
+
*/
|
|
2727
|
+
export declare type ThemeColorSelectableState = ThemeColorGenericState
|
|
2728
|
+
|
|
2729
|
+
/**
|
|
2730
|
+
* @public
|
|
2731
|
+
*/
|
|
2732
|
+
export declare interface ThemeColorSelectableStates {
|
|
2733
|
+
enabled: ThemeColorSelectableState
|
|
2734
|
+
hovered: ThemeColorSelectableState
|
|
2735
|
+
pressed: ThemeColorSelectableState
|
|
2736
|
+
selected: ThemeColorSelectableState
|
|
2737
|
+
disabled: ThemeColorSelectableState
|
|
2738
|
+
}
|
|
2739
|
+
|
|
2740
|
+
/**
|
|
2741
|
+
* @public
|
|
2742
|
+
*/
|
|
2743
|
+
export declare interface ThemeColorSolid {
|
|
2744
|
+
default: ThemeColorSolidTone
|
|
2745
|
+
transparent: ThemeColorSolidTone
|
|
2746
|
+
primary: ThemeColorSolidTone
|
|
2747
|
+
positive: ThemeColorSolidTone
|
|
2748
|
+
caution: ThemeColorSolidTone
|
|
2749
|
+
critical: ThemeColorSolidTone
|
|
2750
|
+
}
|
|
2751
|
+
|
|
2752
|
+
/**
|
|
2753
|
+
* @public
|
|
2754
|
+
*/
|
|
2755
|
+
export declare interface ThemeColorSolidTone {
|
|
2756
|
+
enabled: ThemeColorGenericState
|
|
2757
|
+
disabled: ThemeColorGenericState
|
|
2758
|
+
hovered: ThemeColorGenericState
|
|
2759
|
+
pressed: ThemeColorGenericState
|
|
2760
|
+
selected: ThemeColorGenericState
|
|
2761
|
+
}
|
|
2762
|
+
|
|
2763
|
+
/**
|
|
2764
|
+
* @public
|
|
2765
|
+
*/
|
|
2766
|
+
export declare interface ThemeColorSpot {
|
|
2767
|
+
gray: string
|
|
2768
|
+
blue: string
|
|
2769
|
+
purple: string
|
|
2770
|
+
magenta: string
|
|
2771
|
+
red: string
|
|
2772
|
+
orange: string
|
|
2773
|
+
yellow: string
|
|
2774
|
+
green: string
|
|
2775
|
+
cyan: string
|
|
2695
2776
|
}
|
|
2696
2777
|
|
|
2697
2778
|
/**
|
|
@@ -2708,6 +2789,48 @@ export declare type ThemeColorSpotKey =
|
|
|
2708
2789
|
| 'green'
|
|
2709
2790
|
| 'cyan'
|
|
2710
2791
|
|
|
2792
|
+
/**
|
|
2793
|
+
* @public
|
|
2794
|
+
*/
|
|
2795
|
+
export declare interface ThemeColorSyntax {
|
|
2796
|
+
atrule: string
|
|
2797
|
+
attrName: string
|
|
2798
|
+
attrValue: string
|
|
2799
|
+
attribute: string
|
|
2800
|
+
boolean: string
|
|
2801
|
+
builtin: string
|
|
2802
|
+
cdata: string
|
|
2803
|
+
char: string
|
|
2804
|
+
class: string
|
|
2805
|
+
className: string
|
|
2806
|
+
comment: string
|
|
2807
|
+
constant: string
|
|
2808
|
+
deleted: string
|
|
2809
|
+
doctype: string
|
|
2810
|
+
entity: string
|
|
2811
|
+
function: string
|
|
2812
|
+
hexcode: string
|
|
2813
|
+
id: string
|
|
2814
|
+
important: string
|
|
2815
|
+
inserted: string
|
|
2816
|
+
keyword: string
|
|
2817
|
+
number: string
|
|
2818
|
+
operator: string
|
|
2819
|
+
prolog: string
|
|
2820
|
+
property: string
|
|
2821
|
+
pseudoClass: string
|
|
2822
|
+
pseudoElement: string
|
|
2823
|
+
punctuation: string
|
|
2824
|
+
regex: string
|
|
2825
|
+
selector: string
|
|
2826
|
+
string: string
|
|
2827
|
+
symbol: string
|
|
2828
|
+
tag: string
|
|
2829
|
+
unit: string
|
|
2830
|
+
url: string
|
|
2831
|
+
variable: string
|
|
2832
|
+
}
|
|
2833
|
+
|
|
2711
2834
|
/**
|
|
2712
2835
|
* @public
|
|
2713
2836
|
*/
|
|
@@ -2920,7 +3043,7 @@ export declare interface ToastProviderProps {
|
|
|
2920
3043
|
* @public
|
|
2921
3044
|
*/
|
|
2922
3045
|
export declare const Tooltip: ForwardRefExoticComponent<
|
|
2923
|
-
Omit<TooltipProps & Omit<HTMLProps<HTMLDivElement>, 'children' | '
|
|
3046
|
+
Omit<TooltipProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'content' | 'as'>, 'ref'> &
|
|
2924
3047
|
RefAttributes<HTMLDivElement>
|
|
2925
3048
|
>
|
|
2926
3049
|
|
|
@@ -2998,7 +3121,7 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
|
|
|
2998
3121
|
export declare const Tree: MemoExoticComponent<
|
|
2999
3122
|
ForwardRefExoticComponent<
|
|
3000
3123
|
TreeProps &
|
|
3001
|
-
Omit<HTMLProps<HTMLDivElement>, 'ref' | '
|
|
3124
|
+
Omit<HTMLProps<HTMLDivElement>, 'ref' | 'wrap' | 'height' | 'role' | 'as' | 'align'> &
|
|
3002
3125
|
RefAttributes<HTMLDivElement>
|
|
3003
3126
|
>
|
|
3004
3127
|
>
|
|
@@ -3023,7 +3146,7 @@ export declare interface TreeContextValue {
|
|
|
3023
3146
|
* @beta
|
|
3024
3147
|
*/
|
|
3025
3148
|
export declare const TreeItem: NamedExoticComponent<
|
|
3026
|
-
TreeItemProps & Omit<HTMLProps<HTMLLIElement>, 'ref' | '
|
|
3149
|
+
TreeItemProps & Omit<HTMLProps<HTMLLIElement>, 'ref' | 'role' | 'as'>
|
|
3027
3150
|
>
|
|
3028
3151
|
|
|
3029
3152
|
/**
|
|
@@ -3188,7 +3311,7 @@ export declare function useTree(): TreeContextValue
|
|
|
3188
3311
|
export declare const VirtualList: ForwardRefExoticComponent<
|
|
3189
3312
|
VirtualListProps<any> &
|
|
3190
3313
|
StackProps &
|
|
3191
|
-
Omit<HTMLProps<HTMLDivElement>, 'children' | 'ref' | '
|
|
3314
|
+
Omit<HTMLProps<HTMLDivElement>, 'children' | 'ref' | 'onChange' | 'as'> &
|
|
3192
3315
|
RefAttributes<HTMLDivElement>
|
|
3193
3316
|
>
|
|
3194
3317
|
|