@sanity/ui 3.0.0-static.0 → 3.0.0-static.1
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/_chunks-cjs/buildCommand.js +1387 -681
- package/dist/_chunks-cjs/buildCommand.js.map +1 -1
- package/dist/cli.js +4 -2
- package/dist/cli.js.map +1 -1
- package/dist/css.d.mts +131 -12
- package/dist/css.d.ts +131 -12
- package/dist/css.esm.js +1450 -791
- package/dist/css.esm.js.map +1 -1
- package/dist/css.js +1449 -790
- package/dist/css.js.map +1 -1
- package/dist/css.mjs +1450 -791
- package/dist/css.mjs.map +1 -1
- package/dist/index.d.mts +84 -76
- package/dist/index.d.ts +84 -76
- package/dist/index.esm.js +2734 -3146
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2733 -3145
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2734 -3146
- package/dist/index.mjs.map +1 -1
- package/dist/sanity-theme.css +1 -1
- package/dist/system.css +1590 -1158
- package/dist/theme.esm.js +1565 -452
- package/dist/theme.esm.js.map +1 -1
- package/dist/theme.js +1599 -484
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +1565 -452
- package/dist/theme.mjs.map +1 -1
- package/package.json +22 -22
- package/src/core/__workshop__/constants.ts +14 -5
- package/src/core/__workshop__/fontsPlugin.tsx +1 -1
- package/src/core/_compat/index.ts +2 -0
- package/src/core/{styles → _compat/styles}/box/boxStyle.ts +1 -1
- package/src/core/{styles → _compat/styles}/box/types.ts +1 -1
- package/src/core/{styles → _compat/styles}/card/_cardColorStyle.ts +2 -2
- package/src/core/{styles → _compat/styles}/flex/flexItemStyle.ts +1 -1
- package/src/core/{styles → _compat/styles}/font/types.ts +1 -1
- package/src/core/{styles → _compat/styles}/grid/types.ts +1 -1
- package/src/core/{styles → _compat/styles}/helpers.ts +1 -1
- package/src/core/{styles → _compat/styles}/input/textInputStyle.ts +2 -2
- package/src/core/{styles → _compat/styles}/radius/types.ts +1 -1
- package/src/core/{styles → _compat/styles}/shadow/shadowStyle.ts +1 -1
- package/src/core/components/autocomplete/__workshop__/custom.tsx +5 -4
- package/src/core/components/autocomplete/__workshop__/example.tsx +3 -2
- package/src/core/components/autocomplete/autocomplete.tsx +5 -5
- package/src/core/components/dialog/__workshop__/panes.tsx +1 -1
- package/src/core/components/dialog/__workshop__/props.tsx +2 -0
- package/src/core/components/dialog/dialog.tsx +1 -5
- package/src/core/components/hotkeys/hotkeys.tsx +1 -1
- package/src/core/components/menu/menu.tsx +8 -10
- package/src/core/components/menu/menuDivider.tsx +16 -0
- package/src/core/components/menu/menuGroup.tsx +2 -8
- package/src/core/components/menu/menuItem.tsx +1 -1
- package/src/core/components/skeleton/skeleton.tsx +14 -20
- package/src/core/components/skeleton/textSkeleton.tsx +72 -48
- package/src/core/components/tab/tab.tsx +0 -1
- package/src/core/components/tab/tabList.tsx +4 -21
- package/src/core/components/tab/tabPanel.tsx +1 -0
- package/src/core/components/toast/toast.tsx +27 -14
- package/src/core/components/toast/toastProvider.tsx +4 -13
- package/src/core/components/tree/tree.tsx +1 -2
- package/src/core/components/tree/treeGroup.tsx +4 -1
- package/src/core/components/tree/treeItem.tsx +11 -15
- package/src/core/hooks/useArrayProp.ts +1 -1
- package/src/core/index.ts +0 -1
- package/src/core/lib/styled/members.ts +2 -2
- package/src/core/primitives/avatar/avatar.tsx +0 -21
- package/src/core/primitives/avatar/avatarCounter.tsx +1 -1
- package/src/core/primitives/avatar/avatarStack.tsx +1 -1
- package/src/core/primitives/avatar/styles.ts +2 -2
- package/src/core/primitives/box/box.tsx +4 -1
- package/src/core/primitives/button/__workshop__/props.tsx +2 -1
- package/src/core/primitives/button/__workshop__/sanityUploadButton.tsx +1 -1
- package/src/core/primitives/button/__workshop__/stacked.tsx +2 -1
- package/src/core/primitives/button/__workshop__/styled1.tsx +1 -1
- package/src/core/primitives/button/__workshop__/styled2.tsx +1 -1
- package/src/core/primitives/button/styles.ts +3 -3
- package/src/core/primitives/card/__workshop__/props.tsx +2 -2
- package/src/core/primitives/card/__workshop__/selected.tsx +1 -1
- package/src/core/primitives/card/__workshop__/styled.tsx +1 -1
- package/src/core/primitives/card/card.tsx +7 -10
- package/src/core/primitives/code/code.tsx +2 -4
- package/src/core/primitives/container/styles.ts +1 -1
- package/src/core/primitives/flex/__workshop__/example.tsx +1 -1
- package/src/core/primitives/flex/flex.tsx +1 -13
- package/src/core/primitives/grid/grid.tsx +5 -19
- package/src/core/primitives/heading/heading.tsx +8 -25
- package/src/core/primitives/heading/styles.ts +1 -1
- package/src/core/primitives/inline/inline.tsx +3 -12
- package/src/core/primitives/inline/styles.ts +1 -1
- package/src/core/primitives/label/label.tsx +4 -9
- package/src/core/primitives/label/styles.ts +1 -1
- package/src/core/primitives/popover/__workshop__/PlainStory.tsx +2 -2
- package/src/core/primitives/popover/__workshop__/TestStory.tsx +2 -1
- package/src/core/primitives/popover/popover.tsx +1 -1
- package/src/core/primitives/popover/popoverCard.tsx +1 -1
- package/src/core/primitives/radio/radio.tsx +1 -1
- package/src/core/primitives/radio/styles.ts +2 -2
- package/src/core/primitives/select/select.tsx +1 -1
- package/src/core/primitives/select/styles.ts +3 -3
- package/src/core/primitives/spinner/__workshop__/Props.tsx +2 -1
- package/src/core/primitives/spinner/animatedSpinnerIcon.tsx +16 -0
- package/src/core/primitives/spinner/spinner.tsx +2 -2
- package/src/core/primitives/stack/styles.ts +1 -1
- package/src/core/primitives/switch/styles.ts +2 -2
- package/src/core/primitives/text/__workshop__/colored.tsx +1 -1
- package/src/core/primitives/text/styles.ts +1 -1
- package/src/core/primitives/text/text.tsx +1 -4
- package/src/core/primitives/textArea/__workshop__/plain.tsx +2 -2
- package/src/core/primitives/textArea/textArea.tsx +3 -3
- package/src/core/primitives/textInput/__workshop__/plain.tsx +3 -2
- package/src/core/primitives/textInput/textInput.tsx +16 -83
- package/src/core/primitives/tooltip/tooltipCard.tsx +5 -5
- package/src/core/primitives/types.ts +1 -0
- package/src/core/theme/__workshop__/build/Root.tsx +1 -1
- package/src/core/theme/__workshop__/build/story.tsx +2 -4
- package/src/core/theme/themeProvider.tsx +1 -1
- package/src/core/types/box.ts +22 -16
- package/src/core/types/grid.ts +17 -12
- package/src/core/types/text.ts +7 -4
- package/src/core/utils/elementQuery/__workshop__/customMedia.tsx +1 -1
- package/src/core/utils/layer/layer.tsx +2 -2
- package/src/core/utils/virtualList/virtualList.tsx +1 -1
- package/src/css/compile/{comileRules.ts → compileRules.ts} +2 -5
- package/src/css/compile/compileSystem.ts +1 -1
- package/src/css/compile/compileTheme.ts +4 -1
- package/src/css/components/breadcrumbs/rules.ts +18 -0
- package/src/css/components/menu/index.ts +1 -0
- package/src/css/components/menu/menu.ts +5 -0
- package/src/css/components/menu/rules.ts +10 -0
- package/src/css/components/skeleton/index.ts +2 -0
- package/src/css/components/skeleton/rules.ts +106 -0
- package/src/css/components/skeleton/skeleton.ts +31 -0
- package/src/css/components/skeleton/types.ts +24 -0
- package/src/css/components/toast/rules.ts +68 -0
- package/src/css/components/tree/rules.ts +115 -0
- package/src/css/index.ts +4 -0
- package/src/css/primitives/box/box.ts +5 -1
- package/src/css/primitives/box/types.ts +7 -8
- package/src/css/primitives/card/rules.ts +161 -13
- package/src/css/primitives/checkbox/__styles.ts +115 -113
- package/src/css/primitives/selectable/__style.ts +117 -115
- package/src/css/primitives/spinner/rules.ts +5 -7
- package/src/css/primitives/spinner/spinner.ts +4 -0
- package/src/css/primitives/textInput/index.ts +1 -0
- package/src/css/primitives/textInput/rules.ts +159 -64
- package/src/css/primitives/textInput/textInput.ts +11 -3
- package/src/css/primitives/textInput/types.ts +8 -0
- package/src/css/rules.ts +16 -38
- package/src/css/styles/font/font.ts +7 -2
- package/src/css/styles/font/rules.ts +23 -0
- package/src/css/styles/font/types.ts +6 -0
- package/src/css/styles/gap/rules.ts +6 -6
- package/src/css/styles/grid/grid.ts +13 -0
- package/src/css/styles/grid/index.ts +2 -0
- package/src/css/styles/grid/rules.ts +112 -1
- package/src/css/styles/grid/types.ts +29 -0
- package/src/css/styles/margin/rules.ts +58 -54
- package/src/css/styles/outline/rules.ts +7 -0
- package/src/css/styles/overflow/index.ts +2 -0
- package/src/css/styles/overflow/overflow.ts +11 -0
- package/src/css/styles/overflow/types.ts +11 -0
- package/src/css/styles/padding/rules.ts +50 -48
- package/src/css/types.ts +36 -1
- package/src/css/varNames.ts +1 -1
- package/src/css/vars.ts +86 -0
- package/dist/_chunks-cjs/getTheme_v2.js +0 -316
- package/dist/_chunks-cjs/getTheme_v2.js.map +0 -1
- package/dist/_chunks-es/getTheme_v2.mjs +0 -317
- package/dist/_chunks-es/getTheme_v2.mjs.map +0 -1
- package/dist/_legacy/getTheme_v2.esm.js +0 -317
- package/dist/_legacy/getTheme_v2.esm.js.map +0 -1
- package/src/core/components/autocomplete/autocomplete.styles.tsx +0 -38
- package/src/core/components/breadcrumbs/breadcrumbs.styles.ts +0 -17
- package/src/core/components/menu/menuDivider.ts +0 -13
- package/src/core/components/skeleton/styles.ts +0 -50
- package/src/core/components/toast/styles.ts +0 -61
- package/src/core/components/tree/style.ts +0 -104
- package/src/core/primitives/card/styles.ts +0 -146
- /package/src/core/{styles → _compat/styles}/border/borderStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/border/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/border/types.ts +0 -0
- /package/src/core/{styles → _compat/styles}/box/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/card/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/flex/flexStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/flex/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/flex/types.ts +0 -0
- /package/src/core/{styles → _compat/styles}/focusRing/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/codeFontStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/headingFontStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/labelFontStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/responsiveFont.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/textAlignStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/textFontStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/grid/gridItemStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/grid/gridStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/grid/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/input/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/input/responsiveInputPaddingStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/internal.ts +0 -0
- /package/src/core/{styles → _compat/styles}/margin/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/margin/marginStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/margin/marginsStyle.test.ts +0 -0
- /package/src/core/{styles → _compat/styles}/margin/types.ts +0 -0
- /package/src/core/{styles → _compat/styles}/padding/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/padding/paddingStyle.test.ts +0 -0
- /package/src/core/{styles → _compat/styles}/padding/paddingStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/padding/types.ts +0 -0
- /package/src/core/{styles → _compat/styles}/radius/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/radius/radiusStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/shadow/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/shadow/types.ts +0 -0
- /package/src/core/{styles → _compat/styles}/types.ts +0 -0
- /package/src/core/{_compat.ts → _compat/types.ts} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import {AvatarSize} from '@sanity/ui/theme'
|
|
2
2
|
import {BaseTheme as BaseTheme_2} from '@sanity/ui/theme'
|
|
3
|
+
import {Display as BoxDisplay} from '@sanity/ui/css'
|
|
4
|
+
import {BoxHeight} from '@sanity/ui/css'
|
|
5
|
+
import {BoxOverflow} from '@sanity/ui/css'
|
|
6
|
+
import {BoxSizing} from '@sanity/ui/css'
|
|
3
7
|
import {BoxStyleProps} from '@sanity/ui/css'
|
|
4
8
|
import {CardStyleProps as CardStyleProps_2} from '@sanity/ui/css'
|
|
5
9
|
import {Component} from 'react'
|
|
@@ -7,18 +11,22 @@ import {ContainerStyleProps} from '@sanity/ui/css'
|
|
|
7
11
|
import {Context} from 'react'
|
|
8
12
|
import {createColorTheme as createColorTheme_2} from '@sanity/ui/theme'
|
|
9
13
|
import {CSSObject} from '@sanity/ui/theme'
|
|
10
|
-
import {DetailedHTMLProps} from 'react'
|
|
11
14
|
import {ElementType} from 'react'
|
|
12
|
-
import {FastOmit} from 'styled-components'
|
|
13
15
|
import {FlexAlign} from '@sanity/ui/css'
|
|
14
16
|
import {FlexDirection} from '@sanity/ui/css'
|
|
15
17
|
import {FlexJustify} from '@sanity/ui/css'
|
|
16
18
|
import {FlexValue} from '@sanity/ui/css'
|
|
17
19
|
import {FlexWrap} from '@sanity/ui/css'
|
|
20
|
+
import {FontCodeSize} from '@sanity/ui/theme'
|
|
21
|
+
import {FontHeadingSize} from '@sanity/ui/theme'
|
|
22
|
+
import {FontLabelSize} from '@sanity/ui/theme'
|
|
23
|
+
import {FontStyleProps} from '@sanity/ui/css'
|
|
18
24
|
import {FontTextSize} from '@sanity/ui/theme'
|
|
19
|
-
import {FontWeight} from '@sanity/ui/theme'
|
|
20
25
|
import {ForwardRefExoticComponent} from 'react'
|
|
21
26
|
import {GapStyleProps} from '@sanity/ui/css'
|
|
27
|
+
import {GridAutoCols} from '@sanity/ui/css'
|
|
28
|
+
import {GridAutoFlow} from '@sanity/ui/css'
|
|
29
|
+
import {GridAutoRows} from '@sanity/ui/css'
|
|
22
30
|
import {GridItemColumn} from '@sanity/ui/css'
|
|
23
31
|
import {GridItemColumnEnd} from '@sanity/ui/css'
|
|
24
32
|
import {GridItemColumnStart} from '@sanity/ui/css'
|
|
@@ -28,9 +36,7 @@ import {GridItemRowStart} from '@sanity/ui/css'
|
|
|
28
36
|
import {hexToRgb as hexToRgb_2} from '@sanity/ui/theme'
|
|
29
37
|
import {HSL as HSL_2} from '@sanity/ui/theme'
|
|
30
38
|
import {hslToRgb as hslToRgb_2} from '@sanity/ui/theme'
|
|
31
|
-
import {HTMLAttributes} from 'react'
|
|
32
39
|
import {HTMLProps} from 'react'
|
|
33
|
-
import {IStyledComponentBase} from 'styled-components/dist/types'
|
|
34
40
|
import {MemoExoticComponent} from 'react'
|
|
35
41
|
import {multiply as multiply_2} from '@sanity/ui/theme'
|
|
36
42
|
import {MutableRefObject} from 'react'
|
|
@@ -54,7 +60,9 @@ import {rgbToHex as rgbToHex_2} from '@sanity/ui/theme'
|
|
|
54
60
|
import {rgbToHsl as rgbToHsl_2} from '@sanity/ui/theme'
|
|
55
61
|
import {RootTheme as RootTheme_2} from '@sanity/ui/theme'
|
|
56
62
|
import {screen as screen_3} from '@sanity/ui/theme'
|
|
63
|
+
import {SkeletonStyleProps} from '@sanity/ui/css'
|
|
57
64
|
import {Space} from '@sanity/ui/theme'
|
|
65
|
+
import {TextAlign} from '@sanity/ui/css'
|
|
58
66
|
import {TextStyleProps} from '@sanity/ui/css'
|
|
59
67
|
import {Theme as Theme_2} from '@sanity/ui/theme'
|
|
60
68
|
import {Theme_v2} from '@sanity/ui/theme'
|
|
@@ -474,24 +482,18 @@ export declare interface BoundaryElementProviderProps {
|
|
|
474
482
|
* @public
|
|
475
483
|
*/
|
|
476
484
|
export declare const Box: ForwardRefExoticComponent<
|
|
477
|
-
Omit<
|
|
485
|
+
Omit<
|
|
486
|
+
BoxProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'wrap' | 'as' | 'rows'>,
|
|
487
|
+
'ref'
|
|
488
|
+
> &
|
|
478
489
|
RefAttributes<HTMLDivElement>
|
|
479
490
|
>
|
|
480
491
|
|
|
481
|
-
|
|
482
|
-
* @public
|
|
483
|
-
*/
|
|
484
|
-
export declare type BoxDisplay = 'none' | 'block' | 'grid' | 'flex' | 'inline-block'
|
|
492
|
+
export {BoxDisplay}
|
|
485
493
|
|
|
486
|
-
|
|
487
|
-
* @public
|
|
488
|
-
*/
|
|
489
|
-
export declare type BoxHeight = 'stretch' | 'fill'
|
|
494
|
+
export {BoxHeight}
|
|
490
495
|
|
|
491
|
-
|
|
492
|
-
* @public
|
|
493
|
-
*/
|
|
494
|
-
export declare type BoxOverflow = 'visible' | 'hidden' | 'auto'
|
|
496
|
+
export {BoxOverflow}
|
|
495
497
|
|
|
496
498
|
/**
|
|
497
499
|
* @public
|
|
@@ -507,10 +509,7 @@ export declare interface BoxProps extends BoxStyleProps, GapStyleProps, Position
|
|
|
507
509
|
*/
|
|
508
510
|
export declare type BoxShadow = ThemeBoxShadow
|
|
509
511
|
|
|
510
|
-
|
|
511
|
-
* @public
|
|
512
|
-
*/
|
|
513
|
-
export declare type BoxSizing = 'content' | 'border'
|
|
512
|
+
export {BoxSizing}
|
|
514
513
|
|
|
515
514
|
/**
|
|
516
515
|
* @beta
|
|
@@ -685,12 +684,11 @@ export declare const Code: ForwardRefExoticComponent<
|
|
|
685
684
|
/**
|
|
686
685
|
* @public
|
|
687
686
|
*/
|
|
688
|
-
export declare interface CodeProps {
|
|
687
|
+
export declare interface CodeProps extends Omit<FontStyleProps, 'align'> {
|
|
689
688
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
690
689
|
/** Define the language to use for syntax highlighting. */
|
|
691
690
|
language?: string
|
|
692
691
|
size?: number | number[]
|
|
693
|
-
weight?: FontWeight
|
|
694
692
|
}
|
|
695
693
|
|
|
696
694
|
/**
|
|
@@ -699,7 +697,11 @@ export declare interface CodeProps {
|
|
|
699
697
|
*/
|
|
700
698
|
export declare const CodeSkeleton: ForwardRefExoticComponent<
|
|
701
699
|
Omit<
|
|
702
|
-
CodeSkeletonProps &
|
|
700
|
+
CodeSkeletonProps &
|
|
701
|
+
Omit<
|
|
702
|
+
HTMLProps<HTMLDivElement>,
|
|
703
|
+
'height' | 'width' | 'size' | 'wrap' | 'children' | 'as' | 'rows'
|
|
704
|
+
>,
|
|
703
705
|
'ref'
|
|
704
706
|
> &
|
|
705
707
|
RefAttributes<HTMLDivElement>
|
|
@@ -710,7 +712,7 @@ export declare const CodeSkeleton: ForwardRefExoticComponent<
|
|
|
710
712
|
* @beta
|
|
711
713
|
*/
|
|
712
714
|
export declare interface CodeSkeletonProps extends SkeletonProps {
|
|
713
|
-
size?:
|
|
715
|
+
size?: ResponsiveProp<FontCodeSize>
|
|
714
716
|
}
|
|
715
717
|
|
|
716
718
|
/**
|
|
@@ -774,7 +776,8 @@ export declare type Delay =
|
|
|
774
776
|
*/
|
|
775
777
|
export declare const Dialog: ForwardRefExoticComponent<
|
|
776
778
|
Omit<
|
|
777
|
-
DialogProps &
|
|
779
|
+
DialogProps &
|
|
780
|
+
Omit<HTMLProps<HTMLDivElement>, 'id' | 'height' | 'width' | 'wrap' | 'as' | 'rows'>,
|
|
778
781
|
'ref'
|
|
779
782
|
> &
|
|
780
783
|
RefAttributes<HTMLDivElement>
|
|
@@ -1007,20 +1010,11 @@ export declare const Grid: ForwardRefExoticComponent<
|
|
|
1007
1010
|
RefAttributes<HTMLDivElement>
|
|
1008
1011
|
>
|
|
1009
1012
|
|
|
1010
|
-
|
|
1011
|
-
* @public
|
|
1012
|
-
*/
|
|
1013
|
-
export declare type GridAutoCols = 'auto' | 'min' | 'max' | 'fr'
|
|
1013
|
+
export {GridAutoCols}
|
|
1014
1014
|
|
|
1015
|
-
|
|
1016
|
-
* @public
|
|
1017
|
-
*/
|
|
1018
|
-
export declare type GridAutoFlow = 'row' | 'column' | 'row dense' | 'column dense'
|
|
1015
|
+
export {GridAutoFlow}
|
|
1019
1016
|
|
|
1020
|
-
|
|
1021
|
-
* @public
|
|
1022
|
-
*/
|
|
1023
|
-
export declare type GridAutoRows = 'auto' | 'min' | 'max' | 'fr'
|
|
1017
|
+
export {GridAutoRows}
|
|
1024
1018
|
|
|
1025
1019
|
export {GridItemColumn}
|
|
1026
1020
|
|
|
@@ -1037,7 +1031,7 @@ export {GridItemRowStart}
|
|
|
1037
1031
|
/**
|
|
1038
1032
|
* @public
|
|
1039
1033
|
*/
|
|
1040
|
-
export declare interface GridProps extends Omit<BoxProps, 'display'
|
|
1034
|
+
export declare interface GridProps extends Omit<BoxProps, 'display'> {}
|
|
1041
1035
|
|
|
1042
1036
|
/**
|
|
1043
1037
|
* @internal
|
|
@@ -1057,19 +1051,17 @@ export declare const Heading: ForwardRefExoticComponent<
|
|
|
1057
1051
|
/**
|
|
1058
1052
|
* @public
|
|
1059
1053
|
*/
|
|
1060
|
-
export declare interface HeadingProps {
|
|
1054
|
+
export declare interface HeadingProps extends FontStyleProps {
|
|
1061
1055
|
accent?: boolean
|
|
1062
|
-
align?: TextAlign | TextAlign[]
|
|
1063
1056
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
1064
1057
|
muted?: boolean
|
|
1065
|
-
size?:
|
|
1058
|
+
size?: ResponsiveProp<FontHeadingSize>
|
|
1066
1059
|
/**
|
|
1067
1060
|
* Controls how overflowing text is treated.
|
|
1068
1061
|
* Use `textOverflow="ellipsis"` to render text as a single line which is concatenated with a `…` symbol.
|
|
1069
1062
|
* @beta
|
|
1070
1063
|
*/
|
|
1071
1064
|
textOverflow?: 'ellipsis'
|
|
1072
|
-
weight?: ThemeFontWeightKey_2
|
|
1073
1065
|
}
|
|
1074
1066
|
|
|
1075
1067
|
/**
|
|
@@ -1078,7 +1070,11 @@ export declare interface HeadingProps {
|
|
|
1078
1070
|
*/
|
|
1079
1071
|
export declare const HeadingSkeleton: ForwardRefExoticComponent<
|
|
1080
1072
|
Omit<
|
|
1081
|
-
HeadingSkeletonProps &
|
|
1073
|
+
HeadingSkeletonProps &
|
|
1074
|
+
Omit<
|
|
1075
|
+
HTMLProps<HTMLDivElement>,
|
|
1076
|
+
'height' | 'width' | 'size' | 'wrap' | 'children' | 'as' | 'rows'
|
|
1077
|
+
>,
|
|
1082
1078
|
'ref'
|
|
1083
1079
|
> &
|
|
1084
1080
|
RefAttributes<HTMLDivElement>
|
|
@@ -1089,7 +1085,7 @@ export declare const HeadingSkeleton: ForwardRefExoticComponent<
|
|
|
1089
1085
|
* @beta
|
|
1090
1086
|
*/
|
|
1091
1087
|
export declare interface HeadingSkeletonProps extends SkeletonProps {
|
|
1092
|
-
size?:
|
|
1088
|
+
size?: ResponsiveProp<FontHeadingSize>
|
|
1093
1089
|
}
|
|
1094
1090
|
|
|
1095
1091
|
/**
|
|
@@ -1107,7 +1103,7 @@ export declare const Hotkeys: ForwardRefExoticComponent<
|
|
|
1107
1103
|
HotkeysProps &
|
|
1108
1104
|
Omit<
|
|
1109
1105
|
HTMLProps<HTMLDivElement>,
|
|
1110
|
-
'display' | 'height' | 'width' | 'size' | 'wrap' | 'ref' | 'as'
|
|
1106
|
+
'display' | 'height' | 'width' | 'size' | 'wrap' | 'ref' | 'as' | 'rows'
|
|
1111
1107
|
> &
|
|
1112
1108
|
RefAttributes<HTMLDivElement>
|
|
1113
1109
|
>
|
|
@@ -1140,7 +1136,7 @@ export declare const hslToRgb: typeof hslToRgb_2
|
|
|
1140
1136
|
* @public
|
|
1141
1137
|
*/
|
|
1142
1138
|
export declare const Inline: ForwardRefExoticComponent<
|
|
1143
|
-
Omit<InlineProps & Omit<HTMLProps<HTMLDivElement>, 'wrap'>, 'ref'> & RefAttributes<
|
|
1139
|
+
Omit<InlineProps & Omit<HTMLProps<HTMLDivElement>, 'wrap'>, 'ref'> & RefAttributes<HTMLDivElement>
|
|
1144
1140
|
>
|
|
1145
1141
|
|
|
1146
1142
|
/**
|
|
@@ -1228,9 +1224,8 @@ export declare const Label: ForwardRefExoticComponent<
|
|
|
1228
1224
|
/**
|
|
1229
1225
|
* @public
|
|
1230
1226
|
*/
|
|
1231
|
-
export declare interface LabelProps {
|
|
1227
|
+
export declare interface LabelProps extends FontStyleProps {
|
|
1232
1228
|
accent?: boolean
|
|
1233
|
-
align?: TextAlign | TextAlign[]
|
|
1234
1229
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
1235
1230
|
muted?: boolean
|
|
1236
1231
|
size?: number | number[]
|
|
@@ -1249,7 +1244,11 @@ export declare interface LabelProps {
|
|
|
1249
1244
|
*/
|
|
1250
1245
|
export declare const LabelSkeleton: ForwardRefExoticComponent<
|
|
1251
1246
|
Omit<
|
|
1252
|
-
LabelSkeletonProps &
|
|
1247
|
+
LabelSkeletonProps &
|
|
1248
|
+
Omit<
|
|
1249
|
+
HTMLProps<HTMLDivElement>,
|
|
1250
|
+
'height' | 'width' | 'size' | 'wrap' | 'children' | 'as' | 'rows'
|
|
1251
|
+
>,
|
|
1253
1252
|
'ref'
|
|
1254
1253
|
> &
|
|
1255
1254
|
RefAttributes<HTMLDivElement>
|
|
@@ -1260,14 +1259,14 @@ export declare const LabelSkeleton: ForwardRefExoticComponent<
|
|
|
1260
1259
|
* @beta
|
|
1261
1260
|
*/
|
|
1262
1261
|
export declare interface LabelSkeletonProps extends SkeletonProps {
|
|
1263
|
-
size?:
|
|
1262
|
+
size?: ResponsiveProp<FontLabelSize>
|
|
1264
1263
|
}
|
|
1265
1264
|
|
|
1266
1265
|
/**
|
|
1267
1266
|
* @public
|
|
1268
1267
|
*/
|
|
1269
1268
|
export declare const Layer: ForwardRefExoticComponent<
|
|
1270
|
-
Omit<LayerProps & Omit<HTMLProps<HTMLDivElement>, 'width' | 'wrap' | 'as'>, 'ref'> &
|
|
1269
|
+
Omit<LayerProps & Omit<HTMLProps<HTMLDivElement>, 'width' | 'wrap' | 'as' | 'rows'>, 'ref'> &
|
|
1271
1270
|
RefAttributes<HTMLDivElement>
|
|
1272
1271
|
>
|
|
1273
1272
|
|
|
@@ -1332,7 +1331,10 @@ export declare interface _MediaStore {
|
|
|
1332
1331
|
export declare const Menu: ForwardRefExoticComponent<
|
|
1333
1332
|
Omit<
|
|
1334
1333
|
MenuProps &
|
|
1335
|
-
Omit<
|
|
1334
|
+
Omit<
|
|
1335
|
+
HTMLProps<HTMLDivElement>,
|
|
1336
|
+
'height' | 'width' | 'wrap' | 'role' | 'tabIndex' | 'as' | 'rows'
|
|
1337
|
+
>,
|
|
1336
1338
|
'ref'
|
|
1337
1339
|
> &
|
|
1338
1340
|
RefAttributes<HTMLDivElement>
|
|
@@ -1391,11 +1393,9 @@ export declare interface MenuButtonProps {
|
|
|
1391
1393
|
/**
|
|
1392
1394
|
* @public
|
|
1393
1395
|
*/
|
|
1394
|
-
export declare const MenuDivider:
|
|
1395
|
-
'
|
|
1396
|
-
|
|
1397
|
-
> &
|
|
1398
|
-
string
|
|
1396
|
+
export declare const MenuDivider: ForwardRefExoticComponent<
|
|
1397
|
+
Omit<HTMLProps<HTMLHRElement>, 'ref'> & RefAttributes<HTMLHRElement>
|
|
1398
|
+
>
|
|
1399
1399
|
|
|
1400
1400
|
/**
|
|
1401
1401
|
* @public
|
|
@@ -1403,7 +1403,7 @@ export declare const MenuDivider: IStyledComponentBase<
|
|
|
1403
1403
|
export declare function MenuGroup(
|
|
1404
1404
|
props: Omit<
|
|
1405
1405
|
React.HTMLProps<HTMLDivElement>,
|
|
1406
|
-
'as' | 'height' | 'popover' | 'ref' | 'tabIndex' | 'width' | 'wrap'
|
|
1406
|
+
'as' | 'height' | 'popover' | 'ref' | 'rows' | 'tabIndex' | 'width' | 'wrap'
|
|
1407
1407
|
> &
|
|
1408
1408
|
MenuGroupProps,
|
|
1409
1409
|
): React.ReactElement
|
|
@@ -1434,7 +1434,7 @@ export declare const MenuItem: ForwardRefExoticComponent<
|
|
|
1434
1434
|
MenuItemProps &
|
|
1435
1435
|
Omit<
|
|
1436
1436
|
HTMLProps<HTMLDivElement>,
|
|
1437
|
-
'selected' | 'height' | 'width' | 'wrap' | 'tabIndex' | 'ref' | 'as'
|
|
1437
|
+
'selected' | 'height' | 'width' | 'wrap' | 'tabIndex' | 'ref' | 'as' | 'rows'
|
|
1438
1438
|
> &
|
|
1439
1439
|
RefAttributes<HTMLDivElement>
|
|
1440
1440
|
>
|
|
@@ -1521,7 +1521,7 @@ export declare const Popover: MemoExoticComponent<
|
|
|
1521
1521
|
PopoverProps &
|
|
1522
1522
|
Omit<
|
|
1523
1523
|
HTMLProps<HTMLDivElement>,
|
|
1524
|
-
'content' | 'height' | 'width' | 'wrap' | 'children' | 'as'
|
|
1524
|
+
'content' | 'height' | 'width' | 'wrap' | 'children' | 'as' | 'rows'
|
|
1525
1525
|
>,
|
|
1526
1526
|
'ref'
|
|
1527
1527
|
> &
|
|
@@ -1804,6 +1804,7 @@ export declare interface ResponsiveGridItemProps {
|
|
|
1804
1804
|
|
|
1805
1805
|
/**
|
|
1806
1806
|
* @public
|
|
1807
|
+
* @deprecated
|
|
1807
1808
|
*/
|
|
1808
1809
|
export declare interface ResponsiveGridProps {
|
|
1809
1810
|
autoRows?: GridAutoRows | GridAutoRows[]
|
|
@@ -1982,14 +1983,18 @@ export declare interface SelectProps {
|
|
|
1982
1983
|
* @beta
|
|
1983
1984
|
*/
|
|
1984
1985
|
export declare const Skeleton: ForwardRefExoticComponent<
|
|
1985
|
-
Omit<
|
|
1986
|
+
Omit<
|
|
1987
|
+
SkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'wrap' | 'as' | 'rows'>,
|
|
1988
|
+
'ref'
|
|
1989
|
+
> &
|
|
1990
|
+
RefAttributes<HTMLDivElement>
|
|
1986
1991
|
>
|
|
1987
1992
|
|
|
1988
1993
|
/**
|
|
1989
1994
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
1990
1995
|
* @beta
|
|
1991
1996
|
*/
|
|
1992
|
-
export declare interface SkeletonProps extends
|
|
1997
|
+
export declare interface SkeletonProps extends SkeletonStyleProps, Omit<BoxProps, 'children'> {
|
|
1993
1998
|
animated?: boolean
|
|
1994
1999
|
delay?: number
|
|
1995
2000
|
}
|
|
@@ -2099,7 +2104,7 @@ export declare const Tab: ForwardRefExoticComponent<
|
|
|
2099
2104
|
*/
|
|
2100
2105
|
export declare const TabList: ForwardRefExoticComponent<
|
|
2101
2106
|
Omit<TabListProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
|
|
2102
|
-
RefAttributes<
|
|
2107
|
+
RefAttributes<HTMLDivElement>
|
|
2103
2108
|
>
|
|
2104
2109
|
|
|
2105
2110
|
/**
|
|
@@ -2160,10 +2165,7 @@ declare const Text_2: ForwardRefExoticComponent<
|
|
|
2160
2165
|
>
|
|
2161
2166
|
export {Text_2 as Text}
|
|
2162
2167
|
|
|
2163
|
-
|
|
2164
|
-
* @public
|
|
2165
|
-
*/
|
|
2166
|
-
export declare type TextAlign = 'left' | 'right' | 'center' | 'justify' | 'initial'
|
|
2168
|
+
export {TextAlign}
|
|
2167
2169
|
|
|
2168
2170
|
/**
|
|
2169
2171
|
* A multiline text input.
|
|
@@ -2228,7 +2230,7 @@ export declare interface TextInputProps extends RadiusStyleProps {
|
|
|
2228
2230
|
* @beta
|
|
2229
2231
|
*/
|
|
2230
2232
|
onClear?: () => void
|
|
2231
|
-
padding
|
|
2233
|
+
padding?: ResponsiveProp<Space>
|
|
2232
2234
|
prefix?: React.ReactNode
|
|
2233
2235
|
space?: ResponsiveProp<Space>
|
|
2234
2236
|
suffix?: React.ReactNode
|
|
@@ -2258,7 +2260,6 @@ export declare type TextInputType =
|
|
|
2258
2260
|
*/
|
|
2259
2261
|
export declare interface TextProps extends TextStyleProps {
|
|
2260
2262
|
accent?: boolean
|
|
2261
|
-
align?: TextAlign | TextAlign[]
|
|
2262
2263
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
2263
2264
|
/** When `true` the text color will be muted. */
|
|
2264
2265
|
muted?: boolean
|
|
@@ -2277,7 +2278,11 @@ export declare interface TextProps extends TextStyleProps {
|
|
|
2277
2278
|
*/
|
|
2278
2279
|
export declare const TextSkeleton: ForwardRefExoticComponent<
|
|
2279
2280
|
Omit<
|
|
2280
|
-
TextSkeletonProps &
|
|
2281
|
+
TextSkeletonProps &
|
|
2282
|
+
Omit<
|
|
2283
|
+
HTMLProps<HTMLDivElement>,
|
|
2284
|
+
'height' | 'width' | 'size' | 'wrap' | 'children' | 'as' | 'rows'
|
|
2285
|
+
>,
|
|
2281
2286
|
'ref'
|
|
2282
2287
|
> &
|
|
2283
2288
|
RefAttributes<HTMLDivElement>
|
|
@@ -2288,7 +2293,7 @@ export declare const TextSkeleton: ForwardRefExoticComponent<
|
|
|
2288
2293
|
* @beta
|
|
2289
2294
|
*/
|
|
2290
2295
|
export declare interface TextSkeletonProps extends SkeletonProps {
|
|
2291
|
-
size?:
|
|
2296
|
+
size?: ResponsiveProp<FontTextSize>
|
|
2292
2297
|
}
|
|
2293
2298
|
|
|
2294
2299
|
/**
|
|
@@ -2483,7 +2488,10 @@ export declare type ThemeShadow = ThemeShadow_2
|
|
|
2483
2488
|
*/
|
|
2484
2489
|
export declare function Toast(
|
|
2485
2490
|
props: ToastProps &
|
|
2486
|
-
Omit<
|
|
2491
|
+
Omit<
|
|
2492
|
+
React.HTMLProps<HTMLDivElement>,
|
|
2493
|
+
'as' | 'height' | 'ref' | 'rows' | 'title' | 'width' | 'wrap'
|
|
2494
|
+
>,
|
|
2487
2495
|
): React.ReactElement
|
|
2488
2496
|
|
|
2489
2497
|
export declare namespace Toast {
|
|
@@ -2651,7 +2659,7 @@ export declare const Tree: MemoExoticComponent<
|
|
|
2651
2659
|
TreeProps &
|
|
2652
2660
|
Omit<
|
|
2653
2661
|
HTMLProps<HTMLDivElement>,
|
|
2654
|
-
'height' | 'width' | 'wrap' | 'role' | 'ref' | 'as' | 'align'
|
|
2662
|
+
'height' | 'width' | 'wrap' | 'role' | 'ref' | 'as' | 'rows' | 'align'
|
|
2655
2663
|
> &
|
|
2656
2664
|
RefAttributes<HTMLDivElement>
|
|
2657
2665
|
>
|
|
@@ -2678,7 +2686,7 @@ export declare interface TreeContextValue {
|
|
|
2678
2686
|
*/
|
|
2679
2687
|
export declare const TreeItem: NamedExoticComponent<
|
|
2680
2688
|
TreeItemProps &
|
|
2681
|
-
Omit<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'wrap' | 'role' | 'ref' | 'as'>
|
|
2689
|
+
Omit<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'wrap' | 'role' | 'ref' | 'as' | 'rows'>
|
|
2682
2690
|
>
|
|
2683
2691
|
|
|
2684
2692
|
/**
|