@sanity/ui 2.0.0-alpha.4 → 2.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.mjs +3 -1
- package/dist/index.d.ts +294 -407
- package/dist/index.esm.js +794 -2148
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +795 -2147
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/dialog/dialog.tsx +3 -3
- 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 +3 -0
- package/src/components/menu/menuItem.tsx +6 -3
- package/src/components/skeleton/styles.ts +8 -7
- package/src/components/tree/style.ts +19 -20
- package/src/primitives/_selectable/style.ts +27 -21
- 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/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 +71 -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/cssVariables/cardVariables.ts +92 -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 +2 -12
- package/src/theme/lib/theme/color/types.ts +6 -37
- package/src/theme/studioTheme/color.ts +2 -641
- package/src/theme/studioTheme/helpers.ts +15 -1
- package/src/theme/studioTheme/theme.ts +8 -2
- package/src/theme/themeColorProvider.tsx +2 -0
- package/src/theme/themeProvider.tsx +27 -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
|
},
|
|
@@ -395,7 +396,7 @@ export declare interface BoundaryElementProviderProps {
|
|
|
395
396
|
* @public
|
|
396
397
|
*/
|
|
397
398
|
export declare const Box: ForwardRefExoticComponent<
|
|
398
|
-
Omit<BoxProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
399
|
+
Omit<BoxProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height'>, 'ref'> &
|
|
399
400
|
RefAttributes<HTMLDivElement>
|
|
400
401
|
>
|
|
401
402
|
|
|
@@ -443,7 +444,7 @@ export declare type BoxSizing = 'content' | 'border'
|
|
|
443
444
|
*/
|
|
444
445
|
export declare const Breadcrumbs: ForwardRefExoticComponent<
|
|
445
446
|
BreadcrumbsProps &
|
|
446
|
-
Omit<HTMLProps<HTMLOListElement>, '
|
|
447
|
+
Omit<HTMLProps<HTMLOListElement>, 'type' | 'ref' | 'as'> &
|
|
447
448
|
RefAttributes<HTMLOListElement>
|
|
448
449
|
>
|
|
449
450
|
|
|
@@ -506,7 +507,7 @@ export declare type ButtonTone = 'default' | 'primary' | 'positive' | 'caution'
|
|
|
506
507
|
* @public
|
|
507
508
|
*/
|
|
508
509
|
export declare const Card: ForwardRefExoticComponent<
|
|
509
|
-
Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
510
|
+
Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height'>, 'ref'> &
|
|
510
511
|
RefAttributes<HTMLDivElement>
|
|
511
512
|
>
|
|
512
513
|
|
|
@@ -531,6 +532,12 @@ export declare interface CardProps
|
|
|
531
532
|
pressed?: boolean
|
|
532
533
|
scheme?: ThemeColorSchemeKey
|
|
533
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
|
|
534
541
|
}
|
|
535
542
|
|
|
536
543
|
/**
|
|
@@ -540,6 +547,8 @@ export declare interface CardStyleProps {
|
|
|
540
547
|
$checkered: boolean
|
|
541
548
|
$focusRing: boolean
|
|
542
549
|
$tone: ThemeColorToneKey
|
|
550
|
+
$scheme: ThemeColorSchemeKey
|
|
551
|
+
$updateCssVars: boolean
|
|
543
552
|
}
|
|
544
553
|
|
|
545
554
|
/**
|
|
@@ -551,7 +560,7 @@ export declare type CardTone = ThemeColorToneKey | 'inherit'
|
|
|
551
560
|
* @public
|
|
552
561
|
*/
|
|
553
562
|
export declare const Checkbox: ForwardRefExoticComponent<
|
|
554
|
-
Omit<Omit<HTMLProps<HTMLInputElement>, '
|
|
563
|
+
Omit<Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & CheckboxProps, 'ref'> &
|
|
555
564
|
RefAttributes<HTMLInputElement>
|
|
556
565
|
>
|
|
557
566
|
|
|
@@ -572,7 +581,7 @@ export declare type ClickOutsideListener = (event: MouseEvent) => void
|
|
|
572
581
|
* @public
|
|
573
582
|
*/
|
|
574
583
|
export declare const Code: ForwardRefExoticComponent<
|
|
575
|
-
Omit<CodeProps & Omit<HTMLProps<HTMLElement>, '
|
|
584
|
+
Omit<CodeProps & Omit<HTMLProps<HTMLElement>, 'as' | 'size'>, 'ref'> & RefAttributes<HTMLElement>
|
|
576
585
|
>
|
|
577
586
|
|
|
578
587
|
/**
|
|
@@ -591,7 +600,7 @@ export declare interface CodeProps {
|
|
|
591
600
|
*/
|
|
592
601
|
export declare const CodeSkeleton: ForwardRefExoticComponent<
|
|
593
602
|
Omit<
|
|
594
|
-
CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | '
|
|
603
|
+
CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'as' | 'size' | 'height'>,
|
|
595
604
|
'ref'
|
|
596
605
|
> &
|
|
597
606
|
RefAttributes<HTMLDivElement>
|
|
@@ -609,7 +618,7 @@ export declare interface CodeSkeletonProps extends SkeletonProps {
|
|
|
609
618
|
* @public
|
|
610
619
|
*/
|
|
611
620
|
export declare const Container: ForwardRefExoticComponent<
|
|
612
|
-
Omit<ContainerProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
621
|
+
Omit<ContainerProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height' | 'width'>, 'ref'> &
|
|
613
622
|
RefAttributes<HTMLDivElement>
|
|
614
623
|
>
|
|
615
624
|
|
|
@@ -624,15 +633,234 @@ export declare interface ContainerProps extends BoxProps, ResponsiveWidthProps {
|
|
|
624
633
|
export declare function containsOrEqualsElement(element: HTMLElement, node: Node): boolean
|
|
625
634
|
|
|
626
635
|
/**
|
|
627
|
-
* @
|
|
636
|
+
* @beta
|
|
628
637
|
*/
|
|
629
|
-
export declare
|
|
630
|
-
|
|
631
|
-
|
|
638
|
+
export declare const createCssVars: (
|
|
639
|
+
scheme: ThemeColorSchemeKey,
|
|
640
|
+
tones: Record<ThemeColorName, ColorTints>,
|
|
641
|
+
defaultTone?: ThemeColorName,
|
|
642
|
+
) => Record<string, string>
|
|
632
643
|
|
|
633
644
|
/** @internal */
|
|
634
645
|
export declare type CSSObject = StyledObject<any>
|
|
635
646
|
|
|
647
|
+
/**
|
|
648
|
+
* @beta
|
|
649
|
+
*/
|
|
650
|
+
export declare type CSSVariableKey = ThemeColorName & ('spot' | 'syntax' | 'mutable')
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* @beta
|
|
654
|
+
*/
|
|
655
|
+
export declare const cssVars: {
|
|
656
|
+
/**
|
|
657
|
+
* This variables are mutable, they can be updated by other components.
|
|
658
|
+
* The main component that updates them is the card, these are the only ones that should be exposed for use from the cards.
|
|
659
|
+
*/
|
|
660
|
+
mutable: Record<
|
|
661
|
+
'bg-color' | 'muted-fg-color' | 'icon-color' | 'fg-color' | 'bg-image' | 'accent-color',
|
|
662
|
+
string
|
|
663
|
+
>
|
|
664
|
+
default: Record<
|
|
665
|
+
| 'text-primary'
|
|
666
|
+
| 'text-secondary'
|
|
667
|
+
| 'text-inactive'
|
|
668
|
+
| 'text-code'
|
|
669
|
+
| 'text-muted'
|
|
670
|
+
| 'text-link'
|
|
671
|
+
| 'text-accent'
|
|
672
|
+
| 'bg-base'
|
|
673
|
+
| 'bg-base-hover'
|
|
674
|
+
| 'bg-base-active'
|
|
675
|
+
| 'bg-accent'
|
|
676
|
+
| 'bg-accent-hover'
|
|
677
|
+
| 'bg-accent-active'
|
|
678
|
+
| 'bg-tint'
|
|
679
|
+
| 'bg-tint-code'
|
|
680
|
+
| 'icon-default'
|
|
681
|
+
| 'icon-inverted'
|
|
682
|
+
| 'border-base'
|
|
683
|
+
| 'border-base-hover'
|
|
684
|
+
| 'border-accent'
|
|
685
|
+
| 'border-accent-inverted'
|
|
686
|
+
| 'base-bg-card'
|
|
687
|
+
| 'base-bg-raw'
|
|
688
|
+
| 'base-shadow-outline-color'
|
|
689
|
+
| 'base-shadow-umbra-color'
|
|
690
|
+
| 'base-shadow-penumbra-color'
|
|
691
|
+
| 'base-shadow-ambient-color'
|
|
692
|
+
| 'base-text-color'
|
|
693
|
+
| 'skeleton-from'
|
|
694
|
+
| 'skeleton-to',
|
|
695
|
+
string
|
|
696
|
+
>
|
|
697
|
+
transparent: Record<
|
|
698
|
+
| 'text-primary'
|
|
699
|
+
| 'text-secondary'
|
|
700
|
+
| 'text-inactive'
|
|
701
|
+
| 'text-code'
|
|
702
|
+
| 'text-muted'
|
|
703
|
+
| 'text-link'
|
|
704
|
+
| 'text-accent'
|
|
705
|
+
| 'bg-base'
|
|
706
|
+
| 'bg-base-hover'
|
|
707
|
+
| 'bg-base-active'
|
|
708
|
+
| 'bg-accent'
|
|
709
|
+
| 'bg-accent-hover'
|
|
710
|
+
| 'bg-accent-active'
|
|
711
|
+
| 'bg-tint'
|
|
712
|
+
| 'bg-tint-code'
|
|
713
|
+
| 'icon-default'
|
|
714
|
+
| 'icon-inverted'
|
|
715
|
+
| 'border-base'
|
|
716
|
+
| 'border-base-hover'
|
|
717
|
+
| 'border-accent'
|
|
718
|
+
| 'border-accent-inverted'
|
|
719
|
+
| 'base-bg-card'
|
|
720
|
+
| 'base-bg-raw'
|
|
721
|
+
| 'base-shadow-outline-color'
|
|
722
|
+
| 'base-shadow-umbra-color'
|
|
723
|
+
| 'base-shadow-penumbra-color'
|
|
724
|
+
| 'base-shadow-ambient-color'
|
|
725
|
+
| 'base-text-color'
|
|
726
|
+
| 'skeleton-from'
|
|
727
|
+
| 'skeleton-to',
|
|
728
|
+
string
|
|
729
|
+
>
|
|
730
|
+
primary: Record<
|
|
731
|
+
| 'text-primary'
|
|
732
|
+
| 'text-secondary'
|
|
733
|
+
| 'text-inactive'
|
|
734
|
+
| 'text-code'
|
|
735
|
+
| 'text-muted'
|
|
736
|
+
| 'text-link'
|
|
737
|
+
| 'text-accent'
|
|
738
|
+
| 'bg-base'
|
|
739
|
+
| 'bg-base-hover'
|
|
740
|
+
| 'bg-base-active'
|
|
741
|
+
| 'bg-accent'
|
|
742
|
+
| 'bg-accent-hover'
|
|
743
|
+
| 'bg-accent-active'
|
|
744
|
+
| 'bg-tint'
|
|
745
|
+
| 'bg-tint-code'
|
|
746
|
+
| 'icon-default'
|
|
747
|
+
| 'icon-inverted'
|
|
748
|
+
| 'border-base'
|
|
749
|
+
| 'border-base-hover'
|
|
750
|
+
| 'border-accent'
|
|
751
|
+
| 'border-accent-inverted'
|
|
752
|
+
| 'base-bg-card'
|
|
753
|
+
| 'base-bg-raw'
|
|
754
|
+
| 'base-shadow-outline-color'
|
|
755
|
+
| 'base-shadow-umbra-color'
|
|
756
|
+
| 'base-shadow-penumbra-color'
|
|
757
|
+
| 'base-shadow-ambient-color'
|
|
758
|
+
| 'base-text-color'
|
|
759
|
+
| 'skeleton-from'
|
|
760
|
+
| 'skeleton-to',
|
|
761
|
+
string
|
|
762
|
+
>
|
|
763
|
+
positive: Record<
|
|
764
|
+
| 'text-primary'
|
|
765
|
+
| 'text-secondary'
|
|
766
|
+
| 'text-inactive'
|
|
767
|
+
| 'text-code'
|
|
768
|
+
| 'text-muted'
|
|
769
|
+
| 'text-link'
|
|
770
|
+
| 'text-accent'
|
|
771
|
+
| 'bg-base'
|
|
772
|
+
| 'bg-base-hover'
|
|
773
|
+
| 'bg-base-active'
|
|
774
|
+
| 'bg-accent'
|
|
775
|
+
| 'bg-accent-hover'
|
|
776
|
+
| 'bg-accent-active'
|
|
777
|
+
| 'bg-tint'
|
|
778
|
+
| 'bg-tint-code'
|
|
779
|
+
| 'icon-default'
|
|
780
|
+
| 'icon-inverted'
|
|
781
|
+
| 'border-base'
|
|
782
|
+
| 'border-base-hover'
|
|
783
|
+
| 'border-accent'
|
|
784
|
+
| 'border-accent-inverted'
|
|
785
|
+
| 'base-bg-card'
|
|
786
|
+
| 'base-bg-raw'
|
|
787
|
+
| 'base-shadow-outline-color'
|
|
788
|
+
| 'base-shadow-umbra-color'
|
|
789
|
+
| 'base-shadow-penumbra-color'
|
|
790
|
+
| 'base-shadow-ambient-color'
|
|
791
|
+
| 'base-text-color'
|
|
792
|
+
| 'skeleton-from'
|
|
793
|
+
| 'skeleton-to',
|
|
794
|
+
string
|
|
795
|
+
>
|
|
796
|
+
caution: Record<
|
|
797
|
+
| 'text-primary'
|
|
798
|
+
| 'text-secondary'
|
|
799
|
+
| 'text-inactive'
|
|
800
|
+
| 'text-code'
|
|
801
|
+
| 'text-muted'
|
|
802
|
+
| 'text-link'
|
|
803
|
+
| 'text-accent'
|
|
804
|
+
| 'bg-base'
|
|
805
|
+
| 'bg-base-hover'
|
|
806
|
+
| 'bg-base-active'
|
|
807
|
+
| 'bg-accent'
|
|
808
|
+
| 'bg-accent-hover'
|
|
809
|
+
| 'bg-accent-active'
|
|
810
|
+
| 'bg-tint'
|
|
811
|
+
| 'bg-tint-code'
|
|
812
|
+
| 'icon-default'
|
|
813
|
+
| 'icon-inverted'
|
|
814
|
+
| 'border-base'
|
|
815
|
+
| 'border-base-hover'
|
|
816
|
+
| 'border-accent'
|
|
817
|
+
| 'border-accent-inverted'
|
|
818
|
+
| 'base-bg-card'
|
|
819
|
+
| 'base-bg-raw'
|
|
820
|
+
| 'base-shadow-outline-color'
|
|
821
|
+
| 'base-shadow-umbra-color'
|
|
822
|
+
| 'base-shadow-penumbra-color'
|
|
823
|
+
| 'base-shadow-ambient-color'
|
|
824
|
+
| 'base-text-color'
|
|
825
|
+
| 'skeleton-from'
|
|
826
|
+
| 'skeleton-to',
|
|
827
|
+
string
|
|
828
|
+
>
|
|
829
|
+
critical: Record<
|
|
830
|
+
| 'text-primary'
|
|
831
|
+
| 'text-secondary'
|
|
832
|
+
| 'text-inactive'
|
|
833
|
+
| 'text-code'
|
|
834
|
+
| 'text-muted'
|
|
835
|
+
| 'text-link'
|
|
836
|
+
| 'text-accent'
|
|
837
|
+
| 'bg-base'
|
|
838
|
+
| 'bg-base-hover'
|
|
839
|
+
| 'bg-base-active'
|
|
840
|
+
| 'bg-accent'
|
|
841
|
+
| 'bg-accent-hover'
|
|
842
|
+
| 'bg-accent-active'
|
|
843
|
+
| 'bg-tint'
|
|
844
|
+
| 'bg-tint-code'
|
|
845
|
+
| 'icon-default'
|
|
846
|
+
| 'icon-inverted'
|
|
847
|
+
| 'border-base'
|
|
848
|
+
| 'border-base-hover'
|
|
849
|
+
| 'border-accent'
|
|
850
|
+
| 'border-accent-inverted'
|
|
851
|
+
| 'base-bg-card'
|
|
852
|
+
| 'base-bg-raw'
|
|
853
|
+
| 'base-shadow-outline-color'
|
|
854
|
+
| 'base-shadow-umbra-color'
|
|
855
|
+
| 'base-shadow-penumbra-color'
|
|
856
|
+
| 'base-shadow-ambient-color'
|
|
857
|
+
| 'base-text-color'
|
|
858
|
+
| 'skeleton-from'
|
|
859
|
+
| 'skeleton-to',
|
|
860
|
+
string
|
|
861
|
+
>
|
|
862
|
+
}
|
|
863
|
+
|
|
636
864
|
/**
|
|
637
865
|
* @public
|
|
638
866
|
*/
|
|
@@ -647,7 +875,7 @@ export declare type Delay =
|
|
|
647
875
|
* @public
|
|
648
876
|
*/
|
|
649
877
|
export declare const Dialog: ForwardRefExoticComponent<
|
|
650
|
-
Omit<DialogProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
878
|
+
Omit<DialogProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'width' | 'id'>, 'ref'> &
|
|
651
879
|
RefAttributes<HTMLDivElement>
|
|
652
880
|
>
|
|
653
881
|
|
|
@@ -805,7 +1033,7 @@ export declare function _fillCSSObject(
|
|
|
805
1033
|
* @public
|
|
806
1034
|
*/
|
|
807
1035
|
export declare const Flex: ForwardRefExoticComponent<
|
|
808
|
-
Omit<FlexProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
1036
|
+
Omit<FlexProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'wrap'>, 'ref'> &
|
|
809
1037
|
RefAttributes<HTMLDivElement>
|
|
810
1038
|
>
|
|
811
1039
|
|
|
@@ -893,7 +1121,7 @@ export declare function _getResponsiveSpace(
|
|
|
893
1121
|
* @public
|
|
894
1122
|
*/
|
|
895
1123
|
export declare const Grid: ForwardRefExoticComponent<
|
|
896
|
-
Omit<GridProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
1124
|
+
Omit<GridProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height' | 'rows'>, 'ref'> &
|
|
897
1125
|
RefAttributes<HTMLDivElement>
|
|
898
1126
|
>
|
|
899
1127
|
|
|
@@ -956,7 +1184,7 @@ export declare function _hasFocus(element: HTMLElement): boolean
|
|
|
956
1184
|
* @public
|
|
957
1185
|
*/
|
|
958
1186
|
export declare const Heading: ForwardRefExoticComponent<
|
|
959
|
-
Omit<HeadingProps & Omit<HTMLProps<HTMLElement>, '
|
|
1187
|
+
Omit<HeadingProps & Omit<HTMLProps<HTMLElement>, 'as' | 'size'>, 'ref'> &
|
|
960
1188
|
RefAttributes<HTMLElement>
|
|
961
1189
|
>
|
|
962
1190
|
|
|
@@ -984,7 +1212,7 @@ export declare interface HeadingProps {
|
|
|
984
1212
|
*/
|
|
985
1213
|
export declare const HeadingSkeleton: ForwardRefExoticComponent<
|
|
986
1214
|
Omit<
|
|
987
|
-
HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | '
|
|
1215
|
+
HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'as' | 'size' | 'height'>,
|
|
988
1216
|
'ref'
|
|
989
1217
|
> &
|
|
990
1218
|
RefAttributes<HTMLDivElement>
|
|
@@ -1007,7 +1235,7 @@ export declare function hexToRgb(hex: string): RGB
|
|
|
1007
1235
|
* @public
|
|
1008
1236
|
*/
|
|
1009
1237
|
export declare const Hotkeys: ForwardRefExoticComponent<
|
|
1010
|
-
HotkeysProps & Omit<HTMLProps<HTMLElement>, 'ref' | '
|
|
1238
|
+
HotkeysProps & Omit<HTMLProps<HTMLElement>, 'ref' | 'as' | 'size'> & RefAttributes<HTMLElement>
|
|
1011
1239
|
>
|
|
1012
1240
|
|
|
1013
1241
|
/**
|
|
@@ -1098,7 +1326,7 @@ export declare function _isScrollable(el: Node): boolean
|
|
|
1098
1326
|
* @public
|
|
1099
1327
|
*/
|
|
1100
1328
|
export declare const KBD: ForwardRefExoticComponent<
|
|
1101
|
-
KBDProps & Omit<HTMLProps<HTMLElement>, 'ref' | '
|
|
1329
|
+
KBDProps & Omit<HTMLProps<HTMLElement>, 'ref' | 'as' | 'size'> & RefAttributes<HTMLDivElement>
|
|
1102
1330
|
>
|
|
1103
1331
|
|
|
1104
1332
|
/**
|
|
@@ -1115,7 +1343,7 @@ export declare interface KBDProps {
|
|
|
1115
1343
|
* @public
|
|
1116
1344
|
*/
|
|
1117
1345
|
export declare const Label: ForwardRefExoticComponent<
|
|
1118
|
-
Omit<LabelProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
1346
|
+
Omit<LabelProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'size'>, 'ref'> &
|
|
1119
1347
|
RefAttributes<HTMLDivElement>
|
|
1120
1348
|
>
|
|
1121
1349
|
|
|
@@ -1143,7 +1371,7 @@ export declare interface LabelProps {
|
|
|
1143
1371
|
*/
|
|
1144
1372
|
export declare const LabelSkeleton: ForwardRefExoticComponent<
|
|
1145
1373
|
Omit<
|
|
1146
|
-
LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | '
|
|
1374
|
+
LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'as' | 'size' | 'height'>,
|
|
1147
1375
|
'ref'
|
|
1148
1376
|
> &
|
|
1149
1377
|
RefAttributes<HTMLDivElement>
|
|
@@ -1218,7 +1446,7 @@ export declare interface _MediaStore {
|
|
|
1218
1446
|
* @public
|
|
1219
1447
|
*/
|
|
1220
1448
|
export declare const Menu: ForwardRefExoticComponent<
|
|
1221
|
-
Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
1449
|
+
Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height' | 'tabIndex' | 'role'>, 'ref'> &
|
|
1222
1450
|
RefAttributes<HTMLDivElement>
|
|
1223
1451
|
>
|
|
1224
1452
|
|
|
@@ -1326,8 +1554,8 @@ export declare const MenuDivider: IStyledComponent<
|
|
|
1326
1554
|
security?: string | undefined
|
|
1327
1555
|
unselectable?: 'on' | 'off' | undefined
|
|
1328
1556
|
inputMode?:
|
|
1329
|
-
| 'text'
|
|
1330
1557
|
| 'search'
|
|
1558
|
+
| 'text'
|
|
1331
1559
|
| 'none'
|
|
1332
1560
|
| 'tel'
|
|
1333
1561
|
| 'url'
|
|
@@ -1617,7 +1845,7 @@ export declare interface MenuGroupProps {
|
|
|
1617
1845
|
*/
|
|
1618
1846
|
export declare const MenuItem: ForwardRefExoticComponent<
|
|
1619
1847
|
MenuItemProps &
|
|
1620
|
-
Omit<HTMLProps<HTMLDivElement>, '
|
|
1848
|
+
Omit<HTMLProps<HTMLDivElement>, 'ref' | 'as' | 'height' | 'tabIndex' | 'selected'> &
|
|
1621
1849
|
RefAttributes<HTMLDivElement>
|
|
1622
1850
|
>
|
|
1623
1851
|
|
|
@@ -1634,7 +1862,7 @@ export declare interface MenuItemProps extends ResponsivePaddingProps, Responsiv
|
|
|
1634
1862
|
selected?: boolean
|
|
1635
1863
|
space?: number | number[]
|
|
1636
1864
|
text?: React.ReactNode
|
|
1637
|
-
tone?:
|
|
1865
|
+
tone?: ThemeColorToneKey
|
|
1638
1866
|
}
|
|
1639
1867
|
|
|
1640
1868
|
/**
|
|
@@ -1664,17 +1892,12 @@ export declare interface MenuProps extends ResponsivePaddingProps {
|
|
|
1664
1892
|
* Source: https://www.w3.org/TR/compositing-1/#blendingmultiply
|
|
1665
1893
|
* @internal
|
|
1666
1894
|
*/
|
|
1667
|
-
export declare function multiply(b: RGB, s: RGB): RGB
|
|
1895
|
+
export declare function multiply(b: RGB | RGBA, s: RGB | RGBA): RGB
|
|
1668
1896
|
|
|
1669
1897
|
/**
|
|
1670
1898
|
* @internal
|
|
1671
1899
|
*/
|
|
1672
|
-
export declare function parseColor(color: unknown): RGB
|
|
1673
|
-
|
|
1674
|
-
/**
|
|
1675
|
-
* @public
|
|
1676
|
-
*/
|
|
1677
|
-
export declare type PartialThemeColorBuilderOpts = Partial<ThemeColorBuilderOpts>
|
|
1900
|
+
export declare function parseColor(color: unknown): RGB | RGBA
|
|
1678
1901
|
|
|
1679
1902
|
/**
|
|
1680
1903
|
* Placement of floating UI elements.
|
|
@@ -1699,7 +1922,7 @@ export declare type Placement =
|
|
|
1699
1922
|
export declare const Popover: MemoExoticComponent<
|
|
1700
1923
|
ForwardRefExoticComponent<
|
|
1701
1924
|
Omit<
|
|
1702
|
-
PopoverProps & Omit<HTMLProps<HTMLDivElement>, 'children' | '
|
|
1925
|
+
PopoverProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'as' | 'content' | 'width'>,
|
|
1703
1926
|
'ref'
|
|
1704
1927
|
> &
|
|
1705
1928
|
RefAttributes<HTMLDivElement>
|
|
@@ -1802,7 +2025,7 @@ export declare interface PortalProviderProps {
|
|
|
1802
2025
|
* @public
|
|
1803
2026
|
*/
|
|
1804
2027
|
export declare const Radio: ForwardRefExoticComponent<
|
|
1805
|
-
Omit<Omit<HTMLProps<HTMLInputElement>, '
|
|
2028
|
+
Omit<Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & RadioProps, 'ref'> &
|
|
1806
2029
|
RefAttributes<HTMLInputElement>
|
|
1807
2030
|
>
|
|
1808
2031
|
|
|
@@ -2044,6 +2267,17 @@ export declare interface RGB {
|
|
|
2044
2267
|
r: number
|
|
2045
2268
|
g: number
|
|
2046
2269
|
b: number
|
|
2270
|
+
a?: undefined
|
|
2271
|
+
}
|
|
2272
|
+
|
|
2273
|
+
/**
|
|
2274
|
+
* @internal
|
|
2275
|
+
*/
|
|
2276
|
+
export declare interface RGBA {
|
|
2277
|
+
r: number
|
|
2278
|
+
g: number
|
|
2279
|
+
b: number
|
|
2280
|
+
a: number
|
|
2047
2281
|
}
|
|
2048
2282
|
|
|
2049
2283
|
/**
|
|
@@ -2051,6 +2285,11 @@ export declare interface RGB {
|
|
|
2051
2285
|
*/
|
|
2052
2286
|
export declare function rgba(color: unknown, a: number): string
|
|
2053
2287
|
|
|
2288
|
+
/**
|
|
2289
|
+
* @internal
|
|
2290
|
+
*/
|
|
2291
|
+
export declare function rgbaToRGBA(rgba: string): RGBA
|
|
2292
|
+
|
|
2054
2293
|
/**
|
|
2055
2294
|
* @internal
|
|
2056
2295
|
*/
|
|
@@ -2072,7 +2311,7 @@ export declare type RootTheme = BaseTheme<Styles>
|
|
|
2072
2311
|
* Source: https://www.w3.org/TR/compositing-1/#blendingscreen
|
|
2073
2312
|
* @internal
|
|
2074
2313
|
*/
|
|
2075
|
-
declare function screen_2(b: RGB, s: RGB): RGB
|
|
2314
|
+
declare function screen_2(b: RGB | RGBA, s: RGB | RGBA): RGB
|
|
2076
2315
|
export {screen_2 as screen}
|
|
2077
2316
|
|
|
2078
2317
|
/**
|
|
@@ -2120,7 +2359,7 @@ export declare interface SkeletonProps extends ResponsiveRadiusProps, Omit<BoxPr
|
|
|
2120
2359
|
* @public
|
|
2121
2360
|
*/
|
|
2122
2361
|
export declare const Spinner: ForwardRefExoticComponent<
|
|
2123
|
-
Omit<SpinnerProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
2362
|
+
Omit<SpinnerProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'size'>, 'ref'> &
|
|
2124
2363
|
RefAttributes<HTMLDivElement>
|
|
2125
2364
|
>
|
|
2126
2365
|
|
|
@@ -2136,7 +2375,7 @@ export declare interface SpinnerProps {
|
|
|
2136
2375
|
* @public
|
|
2137
2376
|
*/
|
|
2138
2377
|
export declare const SrOnly: ForwardRefExoticComponent<
|
|
2139
|
-
Omit<SrOnlyProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
2378
|
+
Omit<SrOnlyProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'aria-hidden'>, 'ref'> &
|
|
2140
2379
|
RefAttributes<HTMLDivElement>
|
|
2141
2380
|
>
|
|
2142
2381
|
|
|
@@ -2185,7 +2424,7 @@ export declare interface Styles {
|
|
|
2185
2424
|
* @public
|
|
2186
2425
|
*/
|
|
2187
2426
|
export declare const Switch: ForwardRefExoticComponent<
|
|
2188
|
-
Omit<Omit<HTMLProps<HTMLInputElement>, '
|
|
2427
|
+
Omit<Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & SwitchProps, 'ref'> &
|
|
2189
2428
|
RefAttributes<HTMLInputElement>
|
|
2190
2429
|
>
|
|
2191
2430
|
|
|
@@ -2201,7 +2440,7 @@ export declare interface SwitchProps {
|
|
|
2201
2440
|
*/
|
|
2202
2441
|
export declare const Tab: ForwardRefExoticComponent<
|
|
2203
2442
|
Omit<
|
|
2204
|
-
TabProps & Omit<HTMLProps<HTMLButtonElement>, '
|
|
2443
|
+
TabProps & Omit<HTMLProps<HTMLButtonElement>, 'type' | 'label' | 'as' | 'id' | 'aria-controls'>,
|
|
2205
2444
|
'ref'
|
|
2206
2445
|
> &
|
|
2207
2446
|
RefAttributes<HTMLButtonElement>
|
|
@@ -2211,7 +2450,7 @@ export declare const Tab: ForwardRefExoticComponent<
|
|
|
2211
2450
|
* @public
|
|
2212
2451
|
*/
|
|
2213
2452
|
export declare const TabList: ForwardRefExoticComponent<
|
|
2214
|
-
Omit<TabListProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
2453
|
+
Omit<TabListProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height'>, 'ref'> &
|
|
2215
2454
|
RefAttributes<unknown>
|
|
2216
2455
|
>
|
|
2217
2456
|
|
|
@@ -2227,7 +2466,7 @@ export declare interface TabListProps extends Omit<InlineProps, 'as' | 'height'>
|
|
|
2227
2466
|
*/
|
|
2228
2467
|
export declare const TabPanel: ForwardRefExoticComponent<
|
|
2229
2468
|
Omit<
|
|
2230
|
-
TabPanelProps & Omit<HTMLProps<HTMLDivElement>, 'id' | 'role' | 'aria-labelledby'
|
|
2469
|
+
TabPanelProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'id' | 'role' | 'aria-labelledby'>,
|
|
2231
2470
|
'ref'
|
|
2232
2471
|
> &
|
|
2233
2472
|
RefAttributes<HTMLDivElement>
|
|
@@ -2266,7 +2505,7 @@ export declare interface TabProps {
|
|
|
2266
2505
|
* @public
|
|
2267
2506
|
*/
|
|
2268
2507
|
declare const Text_2: ForwardRefExoticComponent<
|
|
2269
|
-
Omit<TextProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
2508
|
+
Omit<TextProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'size'>, 'ref'> &
|
|
2270
2509
|
RefAttributes<HTMLDivElement>
|
|
2271
2510
|
>
|
|
2272
2511
|
export {Text_2 as Text}
|
|
@@ -2293,13 +2532,14 @@ export declare interface TextAreaProps extends ResponsiveRadiusProps {
|
|
|
2293
2532
|
fontSize?: number | number[]
|
|
2294
2533
|
padding?: number | number[]
|
|
2295
2534
|
weight?: ThemeFontWeightKey
|
|
2535
|
+
tone?: ThemeColorToneKey
|
|
2296
2536
|
}
|
|
2297
2537
|
|
|
2298
2538
|
/**
|
|
2299
2539
|
* @public
|
|
2300
2540
|
*/
|
|
2301
2541
|
export declare const TextInput: ForwardRefExoticComponent<
|
|
2302
|
-
Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, '
|
|
2542
|
+
Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, 'type' | 'as' | 'prefix'>, 'ref'> &
|
|
2303
2543
|
RefAttributes<HTMLInputElement>
|
|
2304
2544
|
>
|
|
2305
2545
|
|
|
@@ -2333,6 +2573,7 @@ export declare interface TextInputProps {
|
|
|
2333
2573
|
suffix?: React.ReactNode
|
|
2334
2574
|
type?: TextInputType
|
|
2335
2575
|
weight?: ThemeFontWeightKey
|
|
2576
|
+
tone?: ThemeColorToneKey
|
|
2336
2577
|
}
|
|
2337
2578
|
|
|
2338
2579
|
/**
|
|
@@ -2376,7 +2617,7 @@ export declare interface TextProps {
|
|
|
2376
2617
|
*/
|
|
2377
2618
|
export declare const TextSkeleton: ForwardRefExoticComponent<
|
|
2378
2619
|
Omit<
|
|
2379
|
-
TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | '
|
|
2620
|
+
TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'as' | 'size' | 'height'>,
|
|
2380
2621
|
'ref'
|
|
2381
2622
|
> &
|
|
2382
2623
|
RefAttributes<HTMLDivElement>
|
|
@@ -2394,9 +2635,7 @@ export declare interface TextSkeletonProps extends SkeletonProps {
|
|
|
2394
2635
|
* @public
|
|
2395
2636
|
*/
|
|
2396
2637
|
export declare interface Theme {
|
|
2397
|
-
sanity:
|
|
2398
|
-
color: ThemeColor
|
|
2399
|
-
}
|
|
2638
|
+
sanity: RootTheme
|
|
2400
2639
|
}
|
|
2401
2640
|
|
|
2402
2641
|
/**
|
|
@@ -2410,239 +2649,6 @@ export declare interface ThemeAvatar {
|
|
|
2410
2649
|
focusRing: FocusRing
|
|
2411
2650
|
}
|
|
2412
2651
|
|
|
2413
|
-
/**
|
|
2414
|
-
* @public
|
|
2415
|
-
*/
|
|
2416
|
-
export declare interface ThemeColor {
|
|
2417
|
-
dark: boolean
|
|
2418
|
-
base: ThemeColorBase
|
|
2419
|
-
button: ThemeColorButton
|
|
2420
|
-
card: ThemeColorCard
|
|
2421
|
-
input: ThemeColorInput
|
|
2422
|
-
selectable?: ThemeColorSelectable
|
|
2423
|
-
spot: ThemeColorSpot
|
|
2424
|
-
syntax: ThemeColorSyntax
|
|
2425
|
-
solid: ThemeColorSolid
|
|
2426
|
-
muted: ThemeColorMuted
|
|
2427
|
-
}
|
|
2428
|
-
|
|
2429
|
-
/**
|
|
2430
|
-
* @public
|
|
2431
|
-
*/
|
|
2432
|
-
export declare interface ThemeColorBase {
|
|
2433
|
-
bg: string
|
|
2434
|
-
fg: string
|
|
2435
|
-
border: string
|
|
2436
|
-
focusRing: string
|
|
2437
|
-
shadow: {
|
|
2438
|
-
outline: string
|
|
2439
|
-
umbra: string
|
|
2440
|
-
penumbra: string
|
|
2441
|
-
ambient: string
|
|
2442
|
-
}
|
|
2443
|
-
skeleton?: {
|
|
2444
|
-
from: string
|
|
2445
|
-
to: string
|
|
2446
|
-
}
|
|
2447
|
-
}
|
|
2448
|
-
|
|
2449
|
-
/**
|
|
2450
|
-
* @public
|
|
2451
|
-
*/
|
|
2452
|
-
export declare interface ThemeColorBuilderOpts {
|
|
2453
|
-
base: (opts: {dark: boolean; name: ThemeColorName}) => ThemeColorBase
|
|
2454
|
-
solid: (opts: {
|
|
2455
|
-
base: ThemeColorBase
|
|
2456
|
-
dark: boolean
|
|
2457
|
-
tone: ThemeColorToneKey
|
|
2458
|
-
name: ThemeColorName
|
|
2459
|
-
state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected'
|
|
2460
|
-
}) => ThemeColorGenericState
|
|
2461
|
-
muted: (opts: {
|
|
2462
|
-
base: ThemeColorBase
|
|
2463
|
-
dark: boolean
|
|
2464
|
-
tone: ThemeColorToneKey
|
|
2465
|
-
name: ThemeColorName
|
|
2466
|
-
state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected'
|
|
2467
|
-
}) => ThemeColorGenericState
|
|
2468
|
-
card: (opts: {
|
|
2469
|
-
base: ThemeColorBase
|
|
2470
|
-
dark: boolean
|
|
2471
|
-
muted: ThemeColorMuted
|
|
2472
|
-
name: ThemeColorName
|
|
2473
|
-
solid: ThemeColorSolid
|
|
2474
|
-
state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected'
|
|
2475
|
-
}) => ThemeColorCardState
|
|
2476
|
-
button: (opts: {
|
|
2477
|
-
dark: boolean
|
|
2478
|
-
mode: ThemeColorButtonModeKey
|
|
2479
|
-
base: ThemeColorBase
|
|
2480
|
-
solid: ThemeColorSolidTone
|
|
2481
|
-
muted: ThemeColorMutedTone
|
|
2482
|
-
}) => ThemeColorButtonStates
|
|
2483
|
-
input: (opts: {
|
|
2484
|
-
base: ThemeColorBase
|
|
2485
|
-
solid: ThemeColorSolidTone
|
|
2486
|
-
muted: ThemeColorMutedTone
|
|
2487
|
-
dark: boolean
|
|
2488
|
-
mode: 'default' | 'invalid'
|
|
2489
|
-
state: 'enabled' | 'disabled' | 'hovered' | 'readOnly'
|
|
2490
|
-
}) => ThemeColorInputState
|
|
2491
|
-
selectable: (opts: {
|
|
2492
|
-
dark: boolean
|
|
2493
|
-
base: ThemeColorBase
|
|
2494
|
-
solid: ThemeColorSolid
|
|
2495
|
-
muted: ThemeColorMuted
|
|
2496
|
-
state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected'
|
|
2497
|
-
tone: 'default' | 'primary' | 'positive' | 'caution' | 'critical'
|
|
2498
|
-
}) => ThemeColorSelectableState
|
|
2499
|
-
syntax: (opts: {base: ThemeColorBase; dark: boolean}) => ThemeColorSyntax
|
|
2500
|
-
spot: (opts: {base: ThemeColorBase; dark: boolean; key: ThemeColorSpotKey}) => string
|
|
2501
|
-
}
|
|
2502
|
-
|
|
2503
|
-
/**
|
|
2504
|
-
* @public
|
|
2505
|
-
*/
|
|
2506
|
-
export declare interface ThemeColorButton {
|
|
2507
|
-
default: ThemeColorButtonTones
|
|
2508
|
-
ghost: ThemeColorButtonTones
|
|
2509
|
-
bleed: ThemeColorButtonTones
|
|
2510
|
-
}
|
|
2511
|
-
|
|
2512
|
-
/**
|
|
2513
|
-
* @public
|
|
2514
|
-
*/
|
|
2515
|
-
export declare type ThemeColorButtonModeKey = 'default' | 'ghost' | 'bleed'
|
|
2516
|
-
|
|
2517
|
-
/**
|
|
2518
|
-
* @deprecated Use `ThemeColorGenericState` instead.
|
|
2519
|
-
* @public
|
|
2520
|
-
*/
|
|
2521
|
-
export declare type ThemeColorButtonState = ThemeColorGenericState
|
|
2522
|
-
|
|
2523
|
-
/**
|
|
2524
|
-
* @public
|
|
2525
|
-
*/
|
|
2526
|
-
export declare interface ThemeColorButtonStates {
|
|
2527
|
-
enabled: ThemeColorButtonState
|
|
2528
|
-
hovered: ThemeColorButtonState
|
|
2529
|
-
pressed: ThemeColorButtonState
|
|
2530
|
-
selected: ThemeColorButtonState
|
|
2531
|
-
disabled: ThemeColorButtonState
|
|
2532
|
-
}
|
|
2533
|
-
|
|
2534
|
-
/**
|
|
2535
|
-
* TODO: Rename to `ThemeColorButtonMode`.
|
|
2536
|
-
* @public
|
|
2537
|
-
*/
|
|
2538
|
-
export declare interface ThemeColorButtonTones {
|
|
2539
|
-
default: ThemeColorButtonStates
|
|
2540
|
-
primary: ThemeColorButtonStates
|
|
2541
|
-
positive: ThemeColorButtonStates
|
|
2542
|
-
caution: ThemeColorButtonStates
|
|
2543
|
-
critical: ThemeColorButtonStates
|
|
2544
|
-
}
|
|
2545
|
-
|
|
2546
|
-
/**
|
|
2547
|
-
* @public
|
|
2548
|
-
*/
|
|
2549
|
-
export declare interface ThemeColorCard {
|
|
2550
|
-
enabled: ThemeColorCardState
|
|
2551
|
-
hovered: ThemeColorCardState
|
|
2552
|
-
pressed: ThemeColorCardState
|
|
2553
|
-
selected: ThemeColorCardState
|
|
2554
|
-
disabled: ThemeColorCardState
|
|
2555
|
-
}
|
|
2556
|
-
|
|
2557
|
-
/**
|
|
2558
|
-
* @deprecated Use `ThemeColorGenericState` instead.
|
|
2559
|
-
* @public
|
|
2560
|
-
*/
|
|
2561
|
-
export declare type ThemeColorCardState = ThemeColorGenericState
|
|
2562
|
-
|
|
2563
|
-
/**
|
|
2564
|
-
* @public
|
|
2565
|
-
*/
|
|
2566
|
-
export declare interface ThemeColorGenericState {
|
|
2567
|
-
bg: string
|
|
2568
|
-
/**
|
|
2569
|
-
* @beta
|
|
2570
|
-
*/
|
|
2571
|
-
bg2?: string
|
|
2572
|
-
border: string
|
|
2573
|
-
fg: string
|
|
2574
|
-
iconColor: string
|
|
2575
|
-
muted: {
|
|
2576
|
-
fg: string
|
|
2577
|
-
}
|
|
2578
|
-
accent: {
|
|
2579
|
-
fg: string
|
|
2580
|
-
}
|
|
2581
|
-
link: {
|
|
2582
|
-
fg: string
|
|
2583
|
-
}
|
|
2584
|
-
code: {
|
|
2585
|
-
bg: string
|
|
2586
|
-
fg: string
|
|
2587
|
-
}
|
|
2588
|
-
skeleton?: {
|
|
2589
|
-
from: string
|
|
2590
|
-
to: string
|
|
2591
|
-
}
|
|
2592
|
-
}
|
|
2593
|
-
|
|
2594
|
-
/**
|
|
2595
|
-
* @public
|
|
2596
|
-
*/
|
|
2597
|
-
export declare interface ThemeColorInput {
|
|
2598
|
-
default: ThemeColorInputStates
|
|
2599
|
-
invalid: ThemeColorInputStates
|
|
2600
|
-
}
|
|
2601
|
-
|
|
2602
|
-
/**
|
|
2603
|
-
* @public
|
|
2604
|
-
*/
|
|
2605
|
-
export declare interface ThemeColorInputState {
|
|
2606
|
-
bg: string
|
|
2607
|
-
bg2: string
|
|
2608
|
-
fg: string
|
|
2609
|
-
border: string
|
|
2610
|
-
placeholder: string
|
|
2611
|
-
}
|
|
2612
|
-
|
|
2613
|
-
/**
|
|
2614
|
-
* @public
|
|
2615
|
-
*/
|
|
2616
|
-
export declare interface ThemeColorInputStates {
|
|
2617
|
-
enabled: ThemeColorInputState
|
|
2618
|
-
disabled: ThemeColorInputState
|
|
2619
|
-
hovered: ThemeColorInputState
|
|
2620
|
-
readOnly: ThemeColorInputState
|
|
2621
|
-
}
|
|
2622
|
-
|
|
2623
|
-
/**
|
|
2624
|
-
* @public
|
|
2625
|
-
*/
|
|
2626
|
-
export declare interface ThemeColorMuted {
|
|
2627
|
-
default: ThemeColorMutedTone
|
|
2628
|
-
transparent: ThemeColorMutedTone
|
|
2629
|
-
primary: ThemeColorMutedTone
|
|
2630
|
-
positive: ThemeColorMutedTone
|
|
2631
|
-
caution: ThemeColorMutedTone
|
|
2632
|
-
critical: ThemeColorMutedTone
|
|
2633
|
-
}
|
|
2634
|
-
|
|
2635
|
-
/**
|
|
2636
|
-
* @public
|
|
2637
|
-
*/
|
|
2638
|
-
export declare interface ThemeColorMutedTone {
|
|
2639
|
-
enabled: ThemeColorGenericState
|
|
2640
|
-
disabled: ThemeColorGenericState
|
|
2641
|
-
hovered: ThemeColorGenericState
|
|
2642
|
-
pressed: ThemeColorGenericState
|
|
2643
|
-
selected: ThemeColorGenericState
|
|
2644
|
-
}
|
|
2645
|
-
|
|
2646
2652
|
/**
|
|
2647
2653
|
* @public
|
|
2648
2654
|
*/
|
|
@@ -2656,11 +2662,13 @@ export declare type ThemeColorName =
|
|
|
2656
2662
|
|
|
2657
2663
|
/**
|
|
2658
2664
|
* @public
|
|
2665
|
+
* @deprecated Use `toneContext` instead.
|
|
2659
2666
|
*/
|
|
2660
2667
|
export declare function ThemeColorProvider(props: ThemeColorProviderProps): React.ReactElement
|
|
2661
2668
|
|
|
2662
2669
|
/**
|
|
2663
2670
|
* @public
|
|
2671
|
+
* @deprecated
|
|
2664
2672
|
*/
|
|
2665
2673
|
export declare interface ThemeColorProviderProps {
|
|
2666
2674
|
children?: React.ReactNode
|
|
@@ -2668,18 +2676,6 @@ export declare interface ThemeColorProviderProps {
|
|
|
2668
2676
|
tone?: ThemeColorName
|
|
2669
2677
|
}
|
|
2670
2678
|
|
|
2671
|
-
/**
|
|
2672
|
-
* @public
|
|
2673
|
-
*/
|
|
2674
|
-
export declare interface ThemeColorScheme {
|
|
2675
|
-
default: ThemeColor
|
|
2676
|
-
transparent: ThemeColor
|
|
2677
|
-
primary: ThemeColor
|
|
2678
|
-
positive: ThemeColor
|
|
2679
|
-
caution: ThemeColor
|
|
2680
|
-
critical: ThemeColor
|
|
2681
|
-
}
|
|
2682
|
-
|
|
2683
2679
|
/**
|
|
2684
2680
|
* @public
|
|
2685
2681
|
*/
|
|
@@ -2689,74 +2685,7 @@ export declare type ThemeColorSchemeKey = 'dark' | 'light'
|
|
|
2689
2685
|
* @public
|
|
2690
2686
|
*/
|
|
2691
2687
|
export declare interface ThemeColorSchemes {
|
|
2692
|
-
|
|
2693
|
-
light: ThemeColorScheme
|
|
2694
|
-
}
|
|
2695
|
-
|
|
2696
|
-
/**
|
|
2697
|
-
* @public
|
|
2698
|
-
*/
|
|
2699
|
-
export declare interface ThemeColorSelectable {
|
|
2700
|
-
default: ThemeColorSelectableStates
|
|
2701
|
-
primary: ThemeColorSelectableStates
|
|
2702
|
-
positive: ThemeColorSelectableStates
|
|
2703
|
-
caution: ThemeColorSelectableStates
|
|
2704
|
-
critical: ThemeColorSelectableStates
|
|
2705
|
-
}
|
|
2706
|
-
|
|
2707
|
-
/**
|
|
2708
|
-
* @deprecated Use `ThemeColorGenericState` instead.
|
|
2709
|
-
* @public
|
|
2710
|
-
*/
|
|
2711
|
-
export declare type ThemeColorSelectableState = ThemeColorGenericState
|
|
2712
|
-
|
|
2713
|
-
/**
|
|
2714
|
-
* @public
|
|
2715
|
-
*/
|
|
2716
|
-
export declare interface ThemeColorSelectableStates {
|
|
2717
|
-
enabled: ThemeColorSelectableState
|
|
2718
|
-
hovered: ThemeColorSelectableState
|
|
2719
|
-
pressed: ThemeColorSelectableState
|
|
2720
|
-
selected: ThemeColorSelectableState
|
|
2721
|
-
disabled: ThemeColorSelectableState
|
|
2722
|
-
}
|
|
2723
|
-
|
|
2724
|
-
/**
|
|
2725
|
-
* @public
|
|
2726
|
-
*/
|
|
2727
|
-
export declare interface ThemeColorSolid {
|
|
2728
|
-
default: ThemeColorSolidTone
|
|
2729
|
-
transparent: ThemeColorSolidTone
|
|
2730
|
-
primary: ThemeColorSolidTone
|
|
2731
|
-
positive: ThemeColorSolidTone
|
|
2732
|
-
caution: ThemeColorSolidTone
|
|
2733
|
-
critical: ThemeColorSolidTone
|
|
2734
|
-
}
|
|
2735
|
-
|
|
2736
|
-
/**
|
|
2737
|
-
* @public
|
|
2738
|
-
*/
|
|
2739
|
-
export declare interface ThemeColorSolidTone {
|
|
2740
|
-
enabled: ThemeColorGenericState
|
|
2741
|
-
disabled: ThemeColorGenericState
|
|
2742
|
-
hovered: ThemeColorGenericState
|
|
2743
|
-
pressed: ThemeColorGenericState
|
|
2744
|
-
selected: ThemeColorGenericState
|
|
2745
|
-
}
|
|
2746
|
-
|
|
2747
|
-
/**
|
|
2748
|
-
* @public
|
|
2749
|
-
*/
|
|
2750
|
-
export declare interface ThemeColorSpot {
|
|
2751
|
-
gray: string
|
|
2752
|
-
blue: string
|
|
2753
|
-
purple: string
|
|
2754
|
-
magenta: string
|
|
2755
|
-
red: string
|
|
2756
|
-
orange: string
|
|
2757
|
-
yellow: string
|
|
2758
|
-
green: string
|
|
2759
|
-
cyan: string
|
|
2688
|
+
tones: Record<ThemeColorName, ColorTints>
|
|
2760
2689
|
}
|
|
2761
2690
|
|
|
2762
2691
|
/**
|
|
@@ -2773,48 +2702,6 @@ export declare type ThemeColorSpotKey =
|
|
|
2773
2702
|
| 'green'
|
|
2774
2703
|
| 'cyan'
|
|
2775
2704
|
|
|
2776
|
-
/**
|
|
2777
|
-
* @public
|
|
2778
|
-
*/
|
|
2779
|
-
export declare interface ThemeColorSyntax {
|
|
2780
|
-
atrule: string
|
|
2781
|
-
attrName: string
|
|
2782
|
-
attrValue: string
|
|
2783
|
-
attribute: string
|
|
2784
|
-
boolean: string
|
|
2785
|
-
builtin: string
|
|
2786
|
-
cdata: string
|
|
2787
|
-
char: string
|
|
2788
|
-
class: string
|
|
2789
|
-
className: string
|
|
2790
|
-
comment: string
|
|
2791
|
-
constant: string
|
|
2792
|
-
deleted: string
|
|
2793
|
-
doctype: string
|
|
2794
|
-
entity: string
|
|
2795
|
-
function: string
|
|
2796
|
-
hexcode: string
|
|
2797
|
-
id: string
|
|
2798
|
-
important: string
|
|
2799
|
-
inserted: string
|
|
2800
|
-
keyword: string
|
|
2801
|
-
number: string
|
|
2802
|
-
operator: string
|
|
2803
|
-
prolog: string
|
|
2804
|
-
property: string
|
|
2805
|
-
pseudoClass: string
|
|
2806
|
-
pseudoElement: string
|
|
2807
|
-
punctuation: string
|
|
2808
|
-
regex: string
|
|
2809
|
-
selector: string
|
|
2810
|
-
string: string
|
|
2811
|
-
symbol: string
|
|
2812
|
-
tag: string
|
|
2813
|
-
unit: string
|
|
2814
|
-
url: string
|
|
2815
|
-
variable: string
|
|
2816
|
-
}
|
|
2817
|
-
|
|
2818
2705
|
/**
|
|
2819
2706
|
* @public
|
|
2820
2707
|
*/
|
|
@@ -3027,7 +2914,7 @@ export declare interface ToastProviderProps {
|
|
|
3027
2914
|
* @public
|
|
3028
2915
|
*/
|
|
3029
2916
|
export declare const Tooltip: ForwardRefExoticComponent<
|
|
3030
|
-
Omit<TooltipProps & Omit<HTMLProps<HTMLDivElement>, 'children' | '
|
|
2917
|
+
Omit<TooltipProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'as' | 'content'>, 'ref'> &
|
|
3031
2918
|
RefAttributes<HTMLDivElement>
|
|
3032
2919
|
>
|
|
3033
2920
|
|
|
@@ -3105,7 +2992,7 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
|
|
|
3105
2992
|
export declare const Tree: MemoExoticComponent<
|
|
3106
2993
|
ForwardRefExoticComponent<
|
|
3107
2994
|
TreeProps &
|
|
3108
|
-
Omit<HTMLProps<HTMLDivElement>, 'ref' | '
|
|
2995
|
+
Omit<HTMLProps<HTMLDivElement>, 'ref' | 'as' | 'wrap' | 'height' | 'role' | 'align'> &
|
|
3109
2996
|
RefAttributes<HTMLDivElement>
|
|
3110
2997
|
>
|
|
3111
2998
|
>
|
|
@@ -3130,7 +3017,7 @@ export declare interface TreeContextValue {
|
|
|
3130
3017
|
* @beta
|
|
3131
3018
|
*/
|
|
3132
3019
|
export declare const TreeItem: NamedExoticComponent<
|
|
3133
|
-
TreeItemProps & Omit<HTMLProps<HTMLLIElement>, 'ref' | '
|
|
3020
|
+
TreeItemProps & Omit<HTMLProps<HTMLLIElement>, 'ref' | 'as' | 'role'>
|
|
3134
3021
|
>
|
|
3135
3022
|
|
|
3136
3023
|
/**
|
|
@@ -3295,7 +3182,7 @@ export declare function useTree(): TreeContextValue
|
|
|
3295
3182
|
export declare const VirtualList: ForwardRefExoticComponent<
|
|
3296
3183
|
VirtualListProps<any> &
|
|
3297
3184
|
StackProps &
|
|
3298
|
-
Omit<HTMLProps<HTMLDivElement>, 'children' | 'ref' | '
|
|
3185
|
+
Omit<HTMLProps<HTMLDivElement>, 'children' | 'ref' | 'as' | 'onChange'> &
|
|
3299
3186
|
RefAttributes<HTMLDivElement>
|
|
3300
3187
|
>
|
|
3301
3188
|
|