@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.
Files changed (216) hide show
  1. package/dist/_chunks-cjs/buildCommand.js +1387 -681
  2. package/dist/_chunks-cjs/buildCommand.js.map +1 -1
  3. package/dist/cli.js +4 -2
  4. package/dist/cli.js.map +1 -1
  5. package/dist/css.d.mts +131 -12
  6. package/dist/css.d.ts +131 -12
  7. package/dist/css.esm.js +1450 -791
  8. package/dist/css.esm.js.map +1 -1
  9. package/dist/css.js +1449 -790
  10. package/dist/css.js.map +1 -1
  11. package/dist/css.mjs +1450 -791
  12. package/dist/css.mjs.map +1 -1
  13. package/dist/index.d.mts +84 -76
  14. package/dist/index.d.ts +84 -76
  15. package/dist/index.esm.js +2734 -3146
  16. package/dist/index.esm.js.map +1 -1
  17. package/dist/index.js +2733 -3145
  18. package/dist/index.js.map +1 -1
  19. package/dist/index.mjs +2734 -3146
  20. package/dist/index.mjs.map +1 -1
  21. package/dist/sanity-theme.css +1 -1
  22. package/dist/system.css +1590 -1158
  23. package/dist/theme.esm.js +1565 -452
  24. package/dist/theme.esm.js.map +1 -1
  25. package/dist/theme.js +1599 -484
  26. package/dist/theme.js.map +1 -1
  27. package/dist/theme.mjs +1565 -452
  28. package/dist/theme.mjs.map +1 -1
  29. package/package.json +22 -22
  30. package/src/core/__workshop__/constants.ts +14 -5
  31. package/src/core/__workshop__/fontsPlugin.tsx +1 -1
  32. package/src/core/_compat/index.ts +2 -0
  33. package/src/core/{styles → _compat/styles}/box/boxStyle.ts +1 -1
  34. package/src/core/{styles → _compat/styles}/box/types.ts +1 -1
  35. package/src/core/{styles → _compat/styles}/card/_cardColorStyle.ts +2 -2
  36. package/src/core/{styles → _compat/styles}/flex/flexItemStyle.ts +1 -1
  37. package/src/core/{styles → _compat/styles}/font/types.ts +1 -1
  38. package/src/core/{styles → _compat/styles}/grid/types.ts +1 -1
  39. package/src/core/{styles → _compat/styles}/helpers.ts +1 -1
  40. package/src/core/{styles → _compat/styles}/input/textInputStyle.ts +2 -2
  41. package/src/core/{styles → _compat/styles}/radius/types.ts +1 -1
  42. package/src/core/{styles → _compat/styles}/shadow/shadowStyle.ts +1 -1
  43. package/src/core/components/autocomplete/__workshop__/custom.tsx +5 -4
  44. package/src/core/components/autocomplete/__workshop__/example.tsx +3 -2
  45. package/src/core/components/autocomplete/autocomplete.tsx +5 -5
  46. package/src/core/components/dialog/__workshop__/panes.tsx +1 -1
  47. package/src/core/components/dialog/__workshop__/props.tsx +2 -0
  48. package/src/core/components/dialog/dialog.tsx +1 -5
  49. package/src/core/components/hotkeys/hotkeys.tsx +1 -1
  50. package/src/core/components/menu/menu.tsx +8 -10
  51. package/src/core/components/menu/menuDivider.tsx +16 -0
  52. package/src/core/components/menu/menuGroup.tsx +2 -8
  53. package/src/core/components/menu/menuItem.tsx +1 -1
  54. package/src/core/components/skeleton/skeleton.tsx +14 -20
  55. package/src/core/components/skeleton/textSkeleton.tsx +72 -48
  56. package/src/core/components/tab/tab.tsx +0 -1
  57. package/src/core/components/tab/tabList.tsx +4 -21
  58. package/src/core/components/tab/tabPanel.tsx +1 -0
  59. package/src/core/components/toast/toast.tsx +27 -14
  60. package/src/core/components/toast/toastProvider.tsx +4 -13
  61. package/src/core/components/tree/tree.tsx +1 -2
  62. package/src/core/components/tree/treeGroup.tsx +4 -1
  63. package/src/core/components/tree/treeItem.tsx +11 -15
  64. package/src/core/hooks/useArrayProp.ts +1 -1
  65. package/src/core/index.ts +0 -1
  66. package/src/core/lib/styled/members.ts +2 -2
  67. package/src/core/primitives/avatar/avatar.tsx +0 -21
  68. package/src/core/primitives/avatar/avatarCounter.tsx +1 -1
  69. package/src/core/primitives/avatar/avatarStack.tsx +1 -1
  70. package/src/core/primitives/avatar/styles.ts +2 -2
  71. package/src/core/primitives/box/box.tsx +4 -1
  72. package/src/core/primitives/button/__workshop__/props.tsx +2 -1
  73. package/src/core/primitives/button/__workshop__/sanityUploadButton.tsx +1 -1
  74. package/src/core/primitives/button/__workshop__/stacked.tsx +2 -1
  75. package/src/core/primitives/button/__workshop__/styled1.tsx +1 -1
  76. package/src/core/primitives/button/__workshop__/styled2.tsx +1 -1
  77. package/src/core/primitives/button/styles.ts +3 -3
  78. package/src/core/primitives/card/__workshop__/props.tsx +2 -2
  79. package/src/core/primitives/card/__workshop__/selected.tsx +1 -1
  80. package/src/core/primitives/card/__workshop__/styled.tsx +1 -1
  81. package/src/core/primitives/card/card.tsx +7 -10
  82. package/src/core/primitives/code/code.tsx +2 -4
  83. package/src/core/primitives/container/styles.ts +1 -1
  84. package/src/core/primitives/flex/__workshop__/example.tsx +1 -1
  85. package/src/core/primitives/flex/flex.tsx +1 -13
  86. package/src/core/primitives/grid/grid.tsx +5 -19
  87. package/src/core/primitives/heading/heading.tsx +8 -25
  88. package/src/core/primitives/heading/styles.ts +1 -1
  89. package/src/core/primitives/inline/inline.tsx +3 -12
  90. package/src/core/primitives/inline/styles.ts +1 -1
  91. package/src/core/primitives/label/label.tsx +4 -9
  92. package/src/core/primitives/label/styles.ts +1 -1
  93. package/src/core/primitives/popover/__workshop__/PlainStory.tsx +2 -2
  94. package/src/core/primitives/popover/__workshop__/TestStory.tsx +2 -1
  95. package/src/core/primitives/popover/popover.tsx +1 -1
  96. package/src/core/primitives/popover/popoverCard.tsx +1 -1
  97. package/src/core/primitives/radio/radio.tsx +1 -1
  98. package/src/core/primitives/radio/styles.ts +2 -2
  99. package/src/core/primitives/select/select.tsx +1 -1
  100. package/src/core/primitives/select/styles.ts +3 -3
  101. package/src/core/primitives/spinner/__workshop__/Props.tsx +2 -1
  102. package/src/core/primitives/spinner/animatedSpinnerIcon.tsx +16 -0
  103. package/src/core/primitives/spinner/spinner.tsx +2 -2
  104. package/src/core/primitives/stack/styles.ts +1 -1
  105. package/src/core/primitives/switch/styles.ts +2 -2
  106. package/src/core/primitives/text/__workshop__/colored.tsx +1 -1
  107. package/src/core/primitives/text/styles.ts +1 -1
  108. package/src/core/primitives/text/text.tsx +1 -4
  109. package/src/core/primitives/textArea/__workshop__/plain.tsx +2 -2
  110. package/src/core/primitives/textArea/textArea.tsx +3 -3
  111. package/src/core/primitives/textInput/__workshop__/plain.tsx +3 -2
  112. package/src/core/primitives/textInput/textInput.tsx +16 -83
  113. package/src/core/primitives/tooltip/tooltipCard.tsx +5 -5
  114. package/src/core/primitives/types.ts +1 -0
  115. package/src/core/theme/__workshop__/build/Root.tsx +1 -1
  116. package/src/core/theme/__workshop__/build/story.tsx +2 -4
  117. package/src/core/theme/themeProvider.tsx +1 -1
  118. package/src/core/types/box.ts +22 -16
  119. package/src/core/types/grid.ts +17 -12
  120. package/src/core/types/text.ts +7 -4
  121. package/src/core/utils/elementQuery/__workshop__/customMedia.tsx +1 -1
  122. package/src/core/utils/layer/layer.tsx +2 -2
  123. package/src/core/utils/virtualList/virtualList.tsx +1 -1
  124. package/src/css/compile/{comileRules.ts → compileRules.ts} +2 -5
  125. package/src/css/compile/compileSystem.ts +1 -1
  126. package/src/css/compile/compileTheme.ts +4 -1
  127. package/src/css/components/breadcrumbs/rules.ts +18 -0
  128. package/src/css/components/menu/index.ts +1 -0
  129. package/src/css/components/menu/menu.ts +5 -0
  130. package/src/css/components/menu/rules.ts +10 -0
  131. package/src/css/components/skeleton/index.ts +2 -0
  132. package/src/css/components/skeleton/rules.ts +106 -0
  133. package/src/css/components/skeleton/skeleton.ts +31 -0
  134. package/src/css/components/skeleton/types.ts +24 -0
  135. package/src/css/components/toast/rules.ts +68 -0
  136. package/src/css/components/tree/rules.ts +115 -0
  137. package/src/css/index.ts +4 -0
  138. package/src/css/primitives/box/box.ts +5 -1
  139. package/src/css/primitives/box/types.ts +7 -8
  140. package/src/css/primitives/card/rules.ts +161 -13
  141. package/src/css/primitives/checkbox/__styles.ts +115 -113
  142. package/src/css/primitives/selectable/__style.ts +117 -115
  143. package/src/css/primitives/spinner/rules.ts +5 -7
  144. package/src/css/primitives/spinner/spinner.ts +4 -0
  145. package/src/css/primitives/textInput/index.ts +1 -0
  146. package/src/css/primitives/textInput/rules.ts +159 -64
  147. package/src/css/primitives/textInput/textInput.ts +11 -3
  148. package/src/css/primitives/textInput/types.ts +8 -0
  149. package/src/css/rules.ts +16 -38
  150. package/src/css/styles/font/font.ts +7 -2
  151. package/src/css/styles/font/rules.ts +23 -0
  152. package/src/css/styles/font/types.ts +6 -0
  153. package/src/css/styles/gap/rules.ts +6 -6
  154. package/src/css/styles/grid/grid.ts +13 -0
  155. package/src/css/styles/grid/index.ts +2 -0
  156. package/src/css/styles/grid/rules.ts +112 -1
  157. package/src/css/styles/grid/types.ts +29 -0
  158. package/src/css/styles/margin/rules.ts +58 -54
  159. package/src/css/styles/outline/rules.ts +7 -0
  160. package/src/css/styles/overflow/index.ts +2 -0
  161. package/src/css/styles/overflow/overflow.ts +11 -0
  162. package/src/css/styles/overflow/types.ts +11 -0
  163. package/src/css/styles/padding/rules.ts +50 -48
  164. package/src/css/types.ts +36 -1
  165. package/src/css/varNames.ts +1 -1
  166. package/src/css/vars.ts +86 -0
  167. package/dist/_chunks-cjs/getTheme_v2.js +0 -316
  168. package/dist/_chunks-cjs/getTheme_v2.js.map +0 -1
  169. package/dist/_chunks-es/getTheme_v2.mjs +0 -317
  170. package/dist/_chunks-es/getTheme_v2.mjs.map +0 -1
  171. package/dist/_legacy/getTheme_v2.esm.js +0 -317
  172. package/dist/_legacy/getTheme_v2.esm.js.map +0 -1
  173. package/src/core/components/autocomplete/autocomplete.styles.tsx +0 -38
  174. package/src/core/components/breadcrumbs/breadcrumbs.styles.ts +0 -17
  175. package/src/core/components/menu/menuDivider.ts +0 -13
  176. package/src/core/components/skeleton/styles.ts +0 -50
  177. package/src/core/components/toast/styles.ts +0 -61
  178. package/src/core/components/tree/style.ts +0 -104
  179. package/src/core/primitives/card/styles.ts +0 -146
  180. /package/src/core/{styles → _compat/styles}/border/borderStyle.ts +0 -0
  181. /package/src/core/{styles → _compat/styles}/border/index.ts +0 -0
  182. /package/src/core/{styles → _compat/styles}/border/types.ts +0 -0
  183. /package/src/core/{styles → _compat/styles}/box/index.ts +0 -0
  184. /package/src/core/{styles → _compat/styles}/card/index.ts +0 -0
  185. /package/src/core/{styles → _compat/styles}/flex/flexStyle.ts +0 -0
  186. /package/src/core/{styles → _compat/styles}/flex/index.ts +0 -0
  187. /package/src/core/{styles → _compat/styles}/flex/types.ts +0 -0
  188. /package/src/core/{styles → _compat/styles}/focusRing/index.ts +0 -0
  189. /package/src/core/{styles → _compat/styles}/font/codeFontStyle.ts +0 -0
  190. /package/src/core/{styles → _compat/styles}/font/headingFontStyle.ts +0 -0
  191. /package/src/core/{styles → _compat/styles}/font/index.ts +0 -0
  192. /package/src/core/{styles → _compat/styles}/font/labelFontStyle.ts +0 -0
  193. /package/src/core/{styles → _compat/styles}/font/responsiveFont.ts +0 -0
  194. /package/src/core/{styles → _compat/styles}/font/textAlignStyle.ts +0 -0
  195. /package/src/core/{styles → _compat/styles}/font/textFontStyle.ts +0 -0
  196. /package/src/core/{styles → _compat/styles}/grid/gridItemStyle.ts +0 -0
  197. /package/src/core/{styles → _compat/styles}/grid/gridStyle.ts +0 -0
  198. /package/src/core/{styles → _compat/styles}/grid/index.ts +0 -0
  199. /package/src/core/{styles → _compat/styles}/index.ts +0 -0
  200. /package/src/core/{styles → _compat/styles}/input/index.ts +0 -0
  201. /package/src/core/{styles → _compat/styles}/input/responsiveInputPaddingStyle.ts +0 -0
  202. /package/src/core/{styles → _compat/styles}/internal.ts +0 -0
  203. /package/src/core/{styles → _compat/styles}/margin/index.ts +0 -0
  204. /package/src/core/{styles → _compat/styles}/margin/marginStyle.ts +0 -0
  205. /package/src/core/{styles → _compat/styles}/margin/marginsStyle.test.ts +0 -0
  206. /package/src/core/{styles → _compat/styles}/margin/types.ts +0 -0
  207. /package/src/core/{styles → _compat/styles}/padding/index.ts +0 -0
  208. /package/src/core/{styles → _compat/styles}/padding/paddingStyle.test.ts +0 -0
  209. /package/src/core/{styles → _compat/styles}/padding/paddingStyle.ts +0 -0
  210. /package/src/core/{styles → _compat/styles}/padding/types.ts +0 -0
  211. /package/src/core/{styles → _compat/styles}/radius/index.ts +0 -0
  212. /package/src/core/{styles → _compat/styles}/radius/radiusStyle.ts +0 -0
  213. /package/src/core/{styles → _compat/styles}/shadow/index.ts +0 -0
  214. /package/src/core/{styles → _compat/styles}/shadow/types.ts +0 -0
  215. /package/src/core/{styles → _compat/styles}/types.ts +0 -0
  216. /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<BoxProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'wrap' | 'as'>, 'ref'> &
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 & Omit<HTMLProps<HTMLDivElement>, 'height' | 'size' | 'children' | 'as'>,
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?: number | number[]
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 & Omit<HTMLProps<HTMLDivElement>, 'id' | 'height' | 'width' | 'wrap' | 'as'>,
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'>, ResponsiveGridProps {}
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?: number | number[]
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 & Omit<HTMLProps<HTMLDivElement>, 'height' | 'size' | 'children' | 'as'>,
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?: number | number[]
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<unknown>
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 & Omit<HTMLProps<HTMLDivElement>, 'height' | 'size' | 'children' | 'as'>,
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?: number | number[]
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<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'wrap' | 'role' | 'tabIndex' | 'as'>,
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: IStyledComponentBase<
1395
- 'web',
1396
- FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLHRElement>, HTMLHRElement>, never>
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<SkeletonProps & HTMLProps<HTMLDivElement>, 'ref'> & RefAttributes<HTMLDivElement>
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 ResponsiveRadiusProps, Omit<BoxProps, 'children'> {
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<unknown>
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: ResponsiveProp<Space>
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 & Omit<HTMLProps<HTMLDivElement>, 'height' | 'size' | 'children' | 'as'>,
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?: number | number[]
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<React.HTMLProps<HTMLDivElement>, 'as' | 'height' | 'ref' | 'title' | 'width' | 'wrap'>,
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
  /**