@sanity/ui 2.0.0-alpha.3 → 2.0.0-alpha.30

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 (637) hide show
  1. package/dist/index.cjs.mjs +37 -10
  2. package/dist/index.d.ts +445 -659
  3. package/dist/index.esm.js +735 -2923
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.js +1051 -3032
  6. package/dist/index.js.map +1 -1
  7. package/dist/theme.cjs.mjs +48 -0
  8. package/dist/theme.d.ts +1205 -0
  9. package/dist/theme.esm.js +4113 -0
  10. package/dist/theme.esm.js.map +1 -0
  11. package/dist/theme.js +4162 -0
  12. package/dist/theme.js.map +1 -0
  13. package/exports/index.ts +1 -0
  14. package/exports/theme.ts +1 -0
  15. package/package.json +56 -35
  16. package/src/{__workshop__ → core/__workshop__}/constants.ts +1 -3
  17. package/src/core/_compat.ts +115 -0
  18. package/src/{components → core/components}/autocomplete/__workshop__/async.tsx +4 -5
  19. package/src/{components → core/components}/autocomplete/__workshop__/constrainedHeight.tsx +27 -22
  20. package/src/{components → core/components}/autocomplete/__workshop__/custom.tsx +36 -31
  21. package/src/{components → core/components}/autocomplete/__workshop__/example.tsx +2 -2
  22. package/src/{components → core/components}/autocomplete/__workshop__/focusAndBlur.tsx +5 -3
  23. package/src/{components → core/components}/autocomplete/autocomplete.tsx +7 -1
  24. package/src/{components → core/components}/dialog/__workshop__/activate.tsx +0 -1
  25. package/src/{components → core/components}/dialog/__workshop__/layering.tsx +5 -1
  26. package/src/{components → core/components}/dialog/__workshop__/panes.tsx +2 -7
  27. package/src/{components → core/components}/dialog/dialog.tsx +25 -24
  28. package/src/{components → core/components}/dialog/styles.ts +40 -1
  29. package/src/{components → core/components}/hotkeys/hotkeys.tsx +2 -0
  30. package/src/{components → core/components}/menu/__workshop__/asComponent.tsx +4 -4
  31. package/src/{components → core/components}/menu/__workshop__/customMenuItem.tsx +9 -3
  32. package/src/{components → core/components}/menu/__workshop__/menuButton.tsx +1 -1
  33. package/src/{components → core/components}/menu/menu.test.tsx +1 -1
  34. package/src/{components → core/components}/menu/menu.tsx +2 -0
  35. package/src/{components → core/components}/menu/menuButton.tsx +3 -1
  36. package/src/{components → core/components}/menu/menuGroup.tsx +22 -23
  37. package/src/{components → core/components}/menu/menuItem.tsx +29 -35
  38. package/src/{components → core/components}/skeleton/textSkeleton.tsx +1 -1
  39. package/src/{components → core/components}/tab/tab.tsx +4 -2
  40. package/src/{components → core/components}/toast/toast.test.tsx +1 -1
  41. package/src/{components → core/components}/toast/toast.tsx +13 -4
  42. package/src/{components → core/components}/tree/__workshop__/tabFromElement.tsx +1 -1
  43. package/src/{components → core/components}/tree/style.ts +6 -6
  44. package/src/{components → core/components}/tree/treeItem.tsx +3 -3
  45. package/src/{constants.ts → core/constants.ts} +1 -0
  46. package/src/{hooks → core/hooks}/useElementRect/__workshop__/example.tsx +3 -1
  47. package/src/{hooks → core/hooks}/useMediaIndex/__workshop__/test.tsx +1 -1
  48. package/src/{hooks → core/hooks}/useMediaIndex/useMediaIndex.test.tsx +2 -1
  49. package/src/{index.ts → core/index.ts} +2 -0
  50. package/src/{lib → core/lib}/isRecord.ts +1 -1
  51. package/src/{primitives → core/primitives}/_selectable/style.ts +2 -1
  52. package/src/{primitives → core/primitives}/avatar/avatar.tsx +35 -21
  53. package/src/{primitives → core/primitives}/avatar/avatarCounter.tsx +3 -3
  54. package/src/{primitives → core/primitives}/avatar/styles.ts +15 -7
  55. package/src/{primitives → core/primitives}/avatar/types.ts +2 -1
  56. package/src/{primitives → core/primitives}/badge/badge.test.tsx +1 -1
  57. package/src/{primitives → core/primitives}/badge/badge.tsx +10 -5
  58. package/src/core/primitives/badge/styles.ts +20 -0
  59. package/src/{primitives → core/primitives}/badge/types.ts +1 -2
  60. package/src/{primitives → core/primitives}/box/box.tsx +3 -0
  61. package/src/{primitives → core/primitives}/button/__workshop__/sanityUploadButton.tsx +2 -1
  62. package/src/{primitives → core/primitives}/button/__workshop__/stacked.tsx +1 -1
  63. package/src/{primitives → core/primitives}/button/button.test.tsx +1 -1
  64. package/src/{primitives → core/primitives}/button/button.tsx +8 -4
  65. package/src/{primitives → core/primitives}/button/styles.ts +27 -10
  66. package/src/{primitives → core/primitives}/card/__workshop__/asButton.tsx +6 -6
  67. package/src/{primitives → core/primitives}/card/__workshop__/asComponent.tsx +1 -1
  68. package/src/{primitives → core/primitives}/card/__workshop__/selected.tsx +2 -12
  69. package/src/{primitives → core/primitives}/card/card.tsx +6 -1
  70. package/src/{primitives → core/primitives}/card/styles.ts +2 -0
  71. package/src/{primitives → core/primitives}/card/types.ts +1 -1
  72. package/src/{primitives → core/primitives}/checkbox/__workshop__/example.tsx +1 -1
  73. package/src/{primitives → core/primitives}/checkbox/__workshop__/props.tsx +1 -1
  74. package/src/{primitives → core/primitives}/checkbox/__workshop__/readOnly.tsx +1 -1
  75. package/src/{primitives → core/primitives}/checkbox/checkbox.tsx +2 -0
  76. package/src/{primitives → core/primitives}/checkbox/styles.ts +4 -3
  77. package/src/{primitives → core/primitives}/code/code.tsx +1 -0
  78. package/src/{primitives → core/primitives}/container/container.tsx +2 -0
  79. package/src/{primitives → core/primitives}/container/styles.ts +1 -1
  80. package/src/{primitives → core/primitives}/flex/flex.tsx +2 -0
  81. package/src/{primitives → core/primitives}/grid/grid.tsx +2 -0
  82. package/src/{primitives → core/primitives}/heading/heading.tsx +3 -1
  83. package/src/{primitives → core/primitives}/inline/inline.tsx +3 -0
  84. package/src/{primitives → core/primitives}/inline/styles.ts +1 -1
  85. package/src/{primitives → core/primitives}/kbd/kbd.tsx +2 -0
  86. package/src/{primitives → core/primitives}/label/label.tsx +3 -1
  87. package/src/{primitives → core/primitives}/popover/__workshop__/RecursiveStory.tsx +2 -9
  88. package/src/{primitives → core/primitives}/popover/__workshop__/TestStory.tsx +6 -3
  89. package/src/{primitives → core/primitives}/popover/constants.ts +3 -2
  90. package/src/{primitives → core/primitives}/popover/helpers.ts +1 -1
  91. package/src/{primitives → core/primitives}/popover/popover.tsx +12 -8
  92. package/src/{primitives → core/primitives}/popover/popoverCard.tsx +22 -16
  93. package/src/{primitives → core/primitives}/radio/radio.tsx +2 -0
  94. package/src/{primitives → core/primitives}/radio/styles.ts +1 -1
  95. package/src/{primitives → core/primitives}/select/select.tsx +2 -0
  96. package/src/{primitives → core/primitives}/select/styles.ts +4 -2
  97. package/src/{primitives → core/primitives}/spinner/spinner.tsx +2 -0
  98. package/src/{primitives → core/primitives}/stack/stack.tsx +2 -0
  99. package/src/{primitives → core/primitives}/stack/styles.ts +1 -1
  100. package/src/{primitives → core/primitives}/switch/__workshop__/example.tsx +1 -1
  101. package/src/{primitives → core/primitives}/switch/styles.ts +2 -2
  102. package/src/{primitives → core/primitives}/switch/switch.tsx +4 -0
  103. package/src/{primitives → core/primitives}/text/__workshop__/colored.tsx +2 -1
  104. package/src/{primitives → core/primitives}/text/text.tsx +4 -1
  105. package/src/{primitives → core/primitives}/textArea/__workshop__/plain.tsx +1 -1
  106. package/src/{primitives → core/primitives}/textArea/textArea.tsx +6 -2
  107. package/src/{primitives → core/primitives}/textInput/__workshop__/plain.tsx +1 -1
  108. package/src/{primitives → core/primitives}/textInput/__workshop__/states.tsx +3 -3
  109. package/src/{primitives → core/primitives}/textInput/textInput.tsx +12 -2
  110. package/src/core/primitives/tooltip/__workshop__/customPortal.tsx +99 -0
  111. package/src/core/primitives/tooltip/__workshop__/index.ts +29 -0
  112. package/src/core/primitives/tooltip/__workshop__/overflowingBoundary.tsx +73 -0
  113. package/src/core/primitives/tooltip/__workshop__/resizableBoundary.tsx +85 -0
  114. package/src/core/primitives/tooltip/conditionalWrapper.tsx +15 -0
  115. package/src/core/primitives/tooltip/constants.ts +23 -0
  116. package/src/{primitives → core/primitives}/tooltip/tooltip.test.tsx +192 -20
  117. package/src/{primitives → core/primitives}/tooltip/tooltip.tsx +199 -76
  118. package/src/{primitives → core/primitives}/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +4 -10
  119. package/src/{primitives → core/primitives}/types.ts +4 -0
  120. package/src/{styles → core/styles}/border/borderStyle.ts +16 -13
  121. package/src/{styles → core/styles}/box/boxStyle.ts +1 -1
  122. package/src/{styles → core/styles}/colorVars/colorVarsStyle.ts +3 -3
  123. package/src/{styles → core/styles}/flex/flexItemStyle.ts +1 -1
  124. package/src/{styles → core/styles}/flex/flexStyle.ts +1 -1
  125. package/src/{styles → core/styles}/focusRing/index.ts +2 -2
  126. package/src/{styles → core/styles}/font/codeFontStyle.ts +1 -1
  127. package/src/{styles → core/styles}/font/headingFontStyle.ts +1 -1
  128. package/src/{styles → core/styles}/font/labelFontStyle.ts +1 -1
  129. package/src/{styles → core/styles}/font/responsiveFont.ts +2 -2
  130. package/src/{styles → core/styles}/font/textAlignStyle.ts +1 -1
  131. package/src/{styles → core/styles}/font/textFontStyle.ts +1 -1
  132. package/src/{styles → core/styles}/font/types.ts +1 -1
  133. package/src/{styles → core/styles}/grid/gridItemStyle.ts +1 -1
  134. package/src/{styles → core/styles}/grid/gridStyle.ts +1 -1
  135. package/src/{styles → core/styles}/helpers.ts +2 -2
  136. package/src/{styles → core/styles}/input/responsiveInputPaddingStyle.ts +1 -1
  137. package/src/{styles → core/styles}/input/textInputStyle.ts +13 -8
  138. package/src/{styles → core/styles}/margin/marginStyle.ts +1 -1
  139. package/src/{styles → core/styles}/margin/marginsStyle.test.ts +1 -1
  140. package/src/{styles → core/styles}/padding/paddingStyle.test.ts +1 -1
  141. package/src/{styles → core/styles}/padding/paddingStyle.ts +1 -1
  142. package/src/{styles → core/styles}/radius/radiusStyle.ts +1 -1
  143. package/src/{styles → core/styles}/shadow/shadowStyle.ts +9 -7
  144. package/src/{styles → core/styles}/types.ts +1 -1
  145. package/src/core/theme/__workshop__/build/Root.tsx +346 -0
  146. package/src/core/theme/__workshop__/build/helpers.ts +46 -0
  147. package/src/core/theme/__workshop__/build/story.tsx +457 -0
  148. package/src/{theme → core/theme}/__workshop__/canvas.tsx +87 -113
  149. package/src/{theme → core/theme}/__workshop__/color.tsx +3 -6
  150. package/src/{theme → core/theme}/__workshop__/index.ts +5 -0
  151. package/src/{theme → core/theme}/defaults.ts +1 -1
  152. package/src/core/theme/index.ts +5 -0
  153. package/src/{theme → core/theme}/theme.test.tsx +2 -2
  154. package/src/{theme → core/theme}/themeColorProvider.tsx +2 -2
  155. package/src/{theme → core/theme}/themeProvider.tsx +3 -3
  156. package/src/core/theme/types.ts +11 -0
  157. package/src/{theme → core/theme}/useRootTheme.ts +1 -2
  158. package/src/{theme → core/theme}/useTheme.ts +1 -2
  159. package/src/core/types/badge.ts +12 -0
  160. package/src/core/types/button.ts +22 -0
  161. package/src/core/types/card.ts +6 -0
  162. package/src/{types → core/types}/index.ts +0 -1
  163. package/src/core/types/selectable.ts +6 -0
  164. package/src/core/utils/arrow/arrow.tsx +121 -0
  165. package/src/core/utils/arrow/cmds.ts +91 -0
  166. package/src/core/utils/arrow/index.ts +1 -0
  167. package/src/{utils → core/utils}/boundaryElement/__workshop__/plain.tsx +2 -6
  168. package/src/{utils → core/utils}/boundaryElement/boundaryElement.test.tsx +1 -1
  169. package/src/{utils → core/utils}/index.ts +1 -0
  170. package/src/{utils → core/utils}/layer/__workshop__/_debug.tsx +1 -1
  171. package/src/{utils → core/utils}/layer/layer.test.tsx +1 -1
  172. package/src/{utils → core/utils}/portal/__workshop__/named.tsx +3 -3
  173. package/src/{utils → core/utils}/portal/portal.test.tsx +1 -1
  174. package/src/theme/{lib/theme/color/selectable → build/_deprecated/color/_selectable}/createSelectableTones.ts +7 -4
  175. package/src/theme/{lib/theme/color/solid → build/_deprecated/color/_solid}/createSolidTones.ts +1 -3
  176. package/src/theme/{lib/theme → build/_deprecated}/color/button/createButtonModes.ts +6 -4
  177. package/src/theme/{lib/theme → build/_deprecated}/color/button/createButtonTones.ts +7 -4
  178. package/src/theme/{lib/theme → build/_deprecated}/color/card/createCardStates.ts +7 -5
  179. package/src/theme/{lib/theme → build/_deprecated}/color/color.test.ts +1 -1
  180. package/src/theme/{lib/theme → build/_deprecated}/color/defaults.ts +7 -7
  181. package/src/theme/{lib/theme → build/_deprecated}/color/factory.ts +25 -21
  182. package/src/theme/build/_deprecated/color/index.ts +1 -0
  183. package/src/theme/{lib/theme → build/_deprecated}/color/input/createInputModes.ts +1 -4
  184. package/src/theme/{lib/theme → build/_deprecated}/color/muted/createMuted.ts +2 -4
  185. package/src/theme/{lib/theme → build/_deprecated}/color/spot/createSpot.ts +1 -2
  186. package/src/theme/build/buildColorTheme.test.ts +184 -0
  187. package/src/theme/build/buildColorTheme.ts +537 -0
  188. package/src/theme/build/buildTheme.test.ts +85 -0
  189. package/src/theme/build/buildTheme.ts +28 -0
  190. package/src/theme/build/colorToken.ts +37 -0
  191. package/src/theme/build/defaults/colorPalette.ts +5 -0
  192. package/src/theme/build/defaults/colorTokens.ts +499 -0
  193. package/src/theme/{studioTheme/theme.ts → build/defaults/config.ts} +27 -28
  194. package/src/theme/build/defaults/fonts.ts +219 -0
  195. package/src/theme/build/index.ts +3 -0
  196. package/src/theme/{lib → build/lib}/color-fns/blend/index.ts +1 -0
  197. package/src/theme/build/lib/color-fns/blend/mix.ts +21 -0
  198. package/src/theme/build/lib/color-fns/blend/multiply.ts +18 -0
  199. package/src/theme/build/lib/color-fns/blend/screen.ts +18 -0
  200. package/src/theme/{lib → build/lib}/color-fns/color-fns.test.ts +10 -7
  201. package/src/theme/build/lib/color-fns/contrastRatio.ts +30 -0
  202. package/src/theme/{lib → build/lib}/color-fns/convert.ts +25 -2
  203. package/src/theme/{lib → build/lib}/color-fns/index.ts +2 -1
  204. package/src/theme/{lib → build/lib}/color-fns/parse.ts +7 -3
  205. package/src/theme/{lib/color-fns/helpers → build/lib/color-fns}/rgba.ts +1 -1
  206. package/src/theme/{lib → build/lib}/color-fns/types.ts +11 -0
  207. package/src/theme/build/lib/utils.ts +19 -0
  208. package/src/theme/build/merge.ts +23 -0
  209. package/src/theme/build/mixThemeColor.test.ts +21 -0
  210. package/src/theme/build/mixThemeColor.ts +53 -0
  211. package/src/theme/build/renderColorTheme.ts +544 -0
  212. package/src/theme/build/renderColorValue.ts +70 -0
  213. package/src/theme/build/resolveColorTokens.ts +352 -0
  214. package/src/theme/config/helpers.ts +47 -0
  215. package/src/theme/config/index.ts +4 -0
  216. package/src/theme/config/system.ts +83 -0
  217. package/src/theme/config/tokens/color/types.ts +112 -0
  218. package/src/theme/config/tokens/index.ts +4 -0
  219. package/src/theme/config/tokens/parseTokenKey.test.ts +64 -0
  220. package/src/theme/config/tokens/parseTokenKey.ts +66 -0
  221. package/src/theme/config/tokens/parseTokenValue.test.ts +45 -0
  222. package/src/theme/config/tokens/parseTokenValue.ts +102 -0
  223. package/src/theme/config/tokens/types.ts +44 -0
  224. package/src/theme/config/types.ts +51 -0
  225. package/src/theme/index.ts +4 -8
  226. package/src/theme/system/_system.ts +95 -0
  227. package/src/theme/system/avatar.ts +14 -0
  228. package/src/theme/system/color/_constants.ts +38 -0
  229. package/src/theme/{lib/theme/color/muted/types.ts → system/color/_deprecated/muted.ts} +3 -1
  230. package/src/theme/{lib/theme/color/solid/types.ts → system/color/_deprecated/solid.ts} +3 -1
  231. package/src/theme/system/color/_deprecated/spot.ts +13 -0
  232. package/src/theme/{lib/theme/color/_generic/types.ts → system/color/_generic.ts} +5 -1
  233. package/src/theme/system/color/_helpers.ts +23 -0
  234. package/src/theme/system/color/_system.ts +100 -0
  235. package/src/theme/system/color/avatar.ts +13 -0
  236. package/src/theme/system/color/badge.ts +9 -0
  237. package/src/theme/{lib/theme/color/button/types.ts → system/color/button.ts} +6 -11
  238. package/src/theme/system/color/card.ts +18 -0
  239. package/src/theme/system/color/index.ts +20 -0
  240. package/src/theme/{lib/theme/color/input/types.ts → system/color/input.ts} +3 -0
  241. package/src/theme/system/color/kbd.ts +8 -0
  242. package/src/theme/{lib/theme/color/selectable/types.ts → system/color/selectable.ts} +1 -1
  243. package/src/theme/{lib/theme → system}/index.ts +2 -1
  244. package/src/theme/{lib/theme → system}/input.ts +6 -6
  245. package/src/theme/system/shadow.ts +24 -0
  246. package/src/theme/themes/studio/config.ts +69 -0
  247. package/src/theme/{studioTheme → themes/studio}/fonts.ts +50 -50
  248. package/src/theme/themes/studio/index.ts +1 -0
  249. package/src/theme/themes/studio/studioTheme.test.ts +27 -0
  250. package/src/theme/themes/studio/studioTheme.ts +8 -0
  251. package/src/primitives/badge/styles.ts +0 -20
  252. package/src/primitives/popover/popoverArrow.tsx +0 -76
  253. package/src/primitives/tooltip/__workshop__/index.ts +0 -14
  254. package/src/primitives/tooltip/constants.ts +0 -16
  255. package/src/primitives/tooltip/tooltipArrow.tsx +0 -89
  256. package/src/theme/lib/color-fns/blend/multiply.ts +0 -22
  257. package/src/theme/lib/color-fns/blend/screen.ts +0 -22
  258. package/src/theme/lib/color-fns/helpers/index.ts +0 -1
  259. package/src/theme/lib/theme/avatar.ts +0 -12
  260. package/src/theme/lib/theme/color/base/index.ts +0 -1
  261. package/src/theme/lib/theme/color/button/index.ts +0 -1
  262. package/src/theme/lib/theme/color/card/index.ts +0 -1
  263. package/src/theme/lib/theme/color/card/types.ts +0 -18
  264. package/src/theme/lib/theme/color/index.ts +0 -14
  265. package/src/theme/lib/theme/color/input/index.ts +0 -1
  266. package/src/theme/lib/theme/color/muted/index.ts +0 -1
  267. package/src/theme/lib/theme/color/selectable/index.ts +0 -1
  268. package/src/theme/lib/theme/color/solid/index.ts +0 -1
  269. package/src/theme/lib/theme/color/spot/index.ts +0 -1
  270. package/src/theme/lib/theme/color/spot/types.ts +0 -28
  271. package/src/theme/lib/theme/color/syntax/index.ts +0 -1
  272. package/src/theme/lib/theme/color/types.ts +0 -72
  273. package/src/theme/lib/theme/shadow.ts +0 -20
  274. package/src/theme/lib/theme/theme.ts +0 -43
  275. package/src/theme/studioTheme/color.ts +0 -650
  276. package/src/theme/studioTheme/helpers.ts +0 -17
  277. package/src/theme/studioTheme/index.ts +0 -1
  278. package/src/theme/studioTheme/tints.ts +0 -152
  279. package/src/theme/types.ts +0 -47
  280. package/src/types/badge.ts +0 -9
  281. package/src/types/button.ts +0 -14
  282. package/src/types/card.ts +0 -6
  283. package/src/types/selectable.ts +0 -4
  284. package/src/types/styled.ts +0 -9
  285. /package/src/{components → core/components}/autocomplete/__fixtures__/countries.ts +0 -0
  286. /package/src/{components → core/components}/autocomplete/__mocks__/apiStore.ts +0 -0
  287. /package/src/{components → core/components}/autocomplete/__workshop__/.eslintrc +0 -0
  288. /package/src/{components → core/components}/autocomplete/__workshop__/fullscreen.tsx +0 -0
  289. /package/src/{components → core/components}/autocomplete/__workshop__/index.ts +0 -0
  290. /package/src/{components → core/components}/autocomplete/__workshop__/types.ts +0 -0
  291. /package/src/{components → core/components}/autocomplete/autocomplete.styles.tsx +0 -0
  292. /package/src/{components → core/components}/autocomplete/autocompleteOption.tsx +0 -0
  293. /package/src/{components → core/components}/autocomplete/autocompleteReducer.ts +0 -0
  294. /package/src/{components → core/components}/autocomplete/constants.ts +0 -0
  295. /package/src/{components → core/components}/autocomplete/index.ts +0 -0
  296. /package/src/{components → core/components}/autocomplete/types.ts +0 -0
  297. /package/src/{components → core/components}/breadcrumbs/__workshop__/.eslintrc +0 -0
  298. /package/src/{components → core/components}/breadcrumbs/__workshop__/example.tsx +0 -0
  299. /package/src/{components → core/components}/breadcrumbs/__workshop__/index.ts +0 -0
  300. /package/src/{components → core/components}/breadcrumbs/breadcrumbs.styles.ts +0 -0
  301. /package/src/{components → core/components}/breadcrumbs/breadcrumbs.tsx +0 -0
  302. /package/src/{components → core/components}/breadcrumbs/index.ts +0 -0
  303. /package/src/{components → core/components}/dialog/__workshop__/.eslintrc +0 -0
  304. /package/src/{components → core/components}/dialog/__workshop__/autoFocus.tsx +0 -0
  305. /package/src/{components → core/components}/dialog/__workshop__/index.ts +0 -0
  306. /package/src/{components → core/components}/dialog/__workshop__/nested.tsx +0 -0
  307. /package/src/{components → core/components}/dialog/__workshop__/onScroll.tsx +0 -0
  308. /package/src/{components → core/components}/dialog/__workshop__/position.tsx +0 -0
  309. /package/src/{components → core/components}/dialog/__workshop__/props.tsx +0 -0
  310. /package/src/{components → core/components}/dialog/__workshop__/provider.tsx +0 -0
  311. /package/src/{components → core/components}/dialog/__workshop__/wrapped.tsx +0 -0
  312. /package/src/{components → core/components}/dialog/dialogContext.ts +0 -0
  313. /package/src/{components → core/components}/dialog/dialogProvider.tsx +0 -0
  314. /package/src/{components → core/components}/dialog/index.ts +0 -0
  315. /package/src/{components → core/components}/dialog/useDialog.ts +0 -0
  316. /package/src/{components → core/components}/hotkeys/__workshop__/.eslintrc +0 -0
  317. /package/src/{components → core/components}/hotkeys/__workshop__/index.ts +0 -0
  318. /package/src/{components → core/components}/hotkeys/__workshop__/plain.tsx +0 -0
  319. /package/src/{components → core/components}/hotkeys/index.ts +0 -0
  320. /package/src/{components → core/components}/index.ts +0 -0
  321. /package/src/{components → core/components}/menu/__workshop__/.eslintrc +0 -0
  322. /package/src/{components → core/components}/menu/__workshop__/closableMenuButton.tsx +0 -0
  323. /package/src/{components → core/components}/menu/__workshop__/constrainedInBoundary.tsx +0 -0
  324. /package/src/{components → core/components}/menu/__workshop__/disableFocusOnClose.tsx +0 -0
  325. /package/src/{components → core/components}/menu/__workshop__/groups.tsx +0 -0
  326. /package/src/{components → core/components}/menu/__workshop__/index.ts +0 -0
  327. /package/src/{components → core/components}/menu/__workshop__/menuGroupRight.tsx +0 -0
  328. /package/src/{components → core/components}/menu/__workshop__/nestedMenu.tsx +0 -0
  329. /package/src/{components → core/components}/menu/__workshop__/onCloseMenuButton.tsx +0 -0
  330. /package/src/{components → core/components}/menu/__workshop__/selectedItem.tsx +0 -0
  331. /package/src/{components → core/components}/menu/__workshop__/shouldFocus.tsx +0 -0
  332. /package/src/{components → core/components}/menu/__workshop__/tones.tsx +0 -0
  333. /package/src/{components → core/components}/menu/__workshop__/withoutArrow.tsx +0 -0
  334. /package/src/{components → core/components}/menu/helpers.ts +0 -0
  335. /package/src/{components → core/components}/menu/index.ts +0 -0
  336. /package/src/{components → core/components}/menu/menuContext.ts +0 -0
  337. /package/src/{components → core/components}/menu/menuDivider.ts +0 -0
  338. /package/src/{components → core/components}/menu/useMenu.ts +0 -0
  339. /package/src/{components → core/components}/menu/useMenuController.ts +0 -0
  340. /package/src/{components → core/components}/skeleton/__workshop__/.eslintrc +0 -0
  341. /package/src/{components → core/components}/skeleton/__workshop__/delay.tsx +0 -0
  342. /package/src/{components → core/components}/skeleton/__workshop__/index.ts +0 -0
  343. /package/src/{components → core/components}/skeleton/__workshop__/skeleton.tsx +0 -0
  344. /package/src/{components → core/components}/skeleton/index.ts +0 -0
  345. /package/src/{components → core/components}/skeleton/skeleton.tsx +0 -0
  346. /package/src/{components → core/components}/skeleton/styles.ts +0 -0
  347. /package/src/{components → core/components}/tab/__workshop__/.eslintrc +0 -0
  348. /package/src/{components → core/components}/tab/__workshop__/example.tsx +0 -0
  349. /package/src/{components → core/components}/tab/__workshop__/index.ts +0 -0
  350. /package/src/{components → core/components}/tab/index.ts +0 -0
  351. /package/src/{components → core/components}/tab/tabList.tsx +0 -0
  352. /package/src/{components → core/components}/tab/tabPanel.tsx +0 -0
  353. /package/src/{components → core/components}/toast/__workshop__/.eslintrc +0 -0
  354. /package/src/{components → core/components}/toast/__workshop__/hook.tsx +0 -0
  355. /package/src/{components → core/components}/toast/__workshop__/index.ts +0 -0
  356. /package/src/{components → core/components}/toast/__workshop__/toast.tsx +0 -0
  357. /package/src/{components → core/components}/toast/index.ts +0 -0
  358. /package/src/{components → core/components}/toast/toastContext.ts +0 -0
  359. /package/src/{components → core/components}/toast/toastProvider.tsx +0 -0
  360. /package/src/{components → core/components}/toast/types.ts +0 -0
  361. /package/src/{components → core/components}/toast/useToast.ts +0 -0
  362. /package/src/{components → core/components}/tree/__workshop__/.eslintrc +0 -0
  363. /package/src/{components → core/components}/tree/__workshop__/basic.perf.ts +0 -0
  364. /package/src/{components → core/components}/tree/__workshop__/basic.tsx +0 -0
  365. /package/src/{components → core/components}/tree/__workshop__/index.ts +0 -0
  366. /package/src/{components → core/components}/tree/helpers.ts +0 -0
  367. /package/src/{components → core/components}/tree/index.ts +0 -0
  368. /package/src/{components → core/components}/tree/tree.tsx +0 -0
  369. /package/src/{components → core/components}/tree/treeContext.ts +0 -0
  370. /package/src/{components → core/components}/tree/treeGroup.tsx +0 -0
  371. /package/src/{components → core/components}/tree/types.ts +0 -0
  372. /package/src/{components → core/components}/tree/useTree.ts +0 -0
  373. /package/src/{global.ts → core/global.ts} +0 -0
  374. /package/src/{helpers → core/helpers}/animation.ts +0 -0
  375. /package/src/{helpers → core/helpers}/element.ts +0 -0
  376. /package/src/{helpers → core/helpers}/focus.ts +0 -0
  377. /package/src/{helpers → core/helpers}/index.ts +0 -0
  378. /package/src/{helpers → core/helpers}/scroll.ts +0 -0
  379. /package/src/{hooks → core/hooks}/_internal/index.ts +0 -0
  380. /package/src/{hooks → core/hooks}/_internal/useUnique.ts +0 -0
  381. /package/src/{hooks → core/hooks}/index.ts +0 -0
  382. /package/src/{hooks → core/hooks}/useArrayProp.ts +0 -0
  383. /package/src/{hooks → core/hooks}/useClickOutside.ts +0 -0
  384. /package/src/{hooks → core/hooks}/useCustomValidity.ts +0 -0
  385. /package/src/{hooks → core/hooks}/useDelayed.test.ts +0 -0
  386. /package/src/{hooks → core/hooks}/useDelayedState.ts +0 -0
  387. /package/src/{hooks → core/hooks}/useElementRect/__workshop__/.eslintrc +0 -0
  388. /package/src/{hooks → core/hooks}/useElementRect/__workshop__/index.ts +0 -0
  389. /package/src/{hooks → core/hooks}/useElementRect/index.ts +0 -0
  390. /package/src/{hooks → core/hooks}/useElementRect/useElementRect.ts +0 -0
  391. /package/src/{hooks → core/hooks}/useElementSize.ts +0 -0
  392. /package/src/{hooks → core/hooks}/useForwardedRef.ts +0 -0
  393. /package/src/{hooks → core/hooks}/useGlobalKeyDown.ts +0 -0
  394. /package/src/{hooks → core/hooks}/useIsomorphicEffect.ts +0 -0
  395. /package/src/{hooks → core/hooks}/useMediaIndex/__workshop__/.eslintrc +0 -0
  396. /package/src/{hooks → core/hooks}/useMediaIndex/__workshop__/index.ts +0 -0
  397. /package/src/{hooks → core/hooks}/useMediaIndex/index.ts +0 -0
  398. /package/src/{hooks → core/hooks}/useMediaIndex/useMediaIndex.ts +0 -0
  399. /package/src/{hooks → core/hooks}/useMounted.ts +0 -0
  400. /package/src/{hooks → core/hooks}/usePrefersDark.hydration.test.tsx +0 -0
  401. /package/src/{hooks → core/hooks}/usePrefersDark.test.tsx +0 -0
  402. /package/src/{hooks → core/hooks}/usePrefersDark.ts +0 -0
  403. /package/src/{hooks → core/hooks}/usePrefersReducedMotion.hydration.test.tsx +0 -0
  404. /package/src/{hooks → core/hooks}/usePrefersReducedMotion.test.tsx +0 -0
  405. /package/src/{hooks → core/hooks}/usePrefersReducedMotion.ts +0 -0
  406. /package/src/{lib → core/lib}/globalScope.ts +0 -0
  407. /package/src/{observers → core/observers}/elementSizeObserver.ts +0 -0
  408. /package/src/{observers → core/observers}/index.ts +0 -0
  409. /package/src/{observers → core/observers}/resizeObserver.ts +0 -0
  410. /package/src/{primitives → core/primitives}/_selectable/index.ts +0 -0
  411. /package/src/{primitives → core/primitives}/_selectable/selectable.tsx +0 -0
  412. /package/src/{primitives → core/primitives}/avatar/__workshop__/.eslintrc +0 -0
  413. /package/src/{primitives → core/primitives}/avatar/__workshop__/asButton.tsx +0 -0
  414. /package/src/{primitives → core/primitives}/avatar/__workshop__/index.ts +0 -0
  415. /package/src/{primitives → core/primitives}/avatar/__workshop__/stack.tsx +0 -0
  416. /package/src/{primitives → core/primitives}/avatar/avatarStack.tsx +0 -0
  417. /package/src/{primitives → core/primitives}/avatar/index.ts +0 -0
  418. /package/src/{primitives → core/primitives}/badge/__workshop__/.eslintrc +0 -0
  419. /package/src/{primitives → core/primitives}/badge/__workshop__/index.ts +0 -0
  420. /package/src/{primitives → core/primitives}/badge/__workshop__/props.tsx +0 -0
  421. /package/src/{primitives → core/primitives}/badge/__workshop__/tones.tsx +0 -0
  422. /package/src/{primitives → core/primitives}/badge/index.ts +0 -0
  423. /package/src/{primitives → core/primitives}/box/__workshop__/.eslintrc +0 -0
  424. /package/src/{primitives → core/primitives}/box/__workshop__/index.ts +0 -0
  425. /package/src/{primitives → core/primitives}/box/__workshop__/props.tsx +0 -0
  426. /package/src/{primitives → core/primitives}/box/__workshop__/responsive.tsx +0 -0
  427. /package/src/{primitives → core/primitives}/box/index.ts +0 -0
  428. /package/src/{primitives → core/primitives}/button/__workshop__/.eslintrc +0 -0
  429. /package/src/{primitives → core/primitives}/button/__workshop__/custom.tsx +0 -0
  430. /package/src/{primitives → core/primitives}/button/__workshop__/customIcons.tsx +0 -0
  431. /package/src/{primitives → core/primitives}/button/__workshop__/index.ts +0 -0
  432. /package/src/{primitives → core/primitives}/button/__workshop__/mixedChildren.tsx +0 -0
  433. /package/src/{primitives → core/primitives}/button/__workshop__/props.tsx +0 -0
  434. /package/src/{primitives → core/primitives}/button/__workshop__/styled1.tsx +0 -0
  435. /package/src/{primitives → core/primitives}/button/__workshop__/styled2.tsx +0 -0
  436. /package/src/{primitives → core/primitives}/button/__workshop__/uploadButton.tsx +0 -0
  437. /package/src/{primitives → core/primitives}/button/index.ts +0 -0
  438. /package/src/{primitives → core/primitives}/card/__workshop__/.eslintrc +0 -0
  439. /package/src/{primitives → core/primitives}/card/__workshop__/allTones.tsx +0 -0
  440. /package/src/{primitives → core/primitives}/card/__workshop__/checkered.tsx +0 -0
  441. /package/src/{primitives → core/primitives}/card/__workshop__/index.ts +0 -0
  442. /package/src/{primitives → core/primitives}/card/__workshop__/interactive.tsx +0 -0
  443. /package/src/{primitives → core/primitives}/card/__workshop__/listNavigation.tsx +0 -0
  444. /package/src/{primitives → core/primitives}/card/__workshop__/props.tsx +0 -0
  445. /package/src/{primitives → core/primitives}/card/__workshop__/styled.tsx +0 -0
  446. /package/src/{primitives → core/primitives}/card/index.ts +0 -0
  447. /package/src/{primitives → core/primitives}/checkbox/__workshop__/.eslintrc +0 -0
  448. /package/src/{primitives → core/primitives}/checkbox/__workshop__/index.ts +0 -0
  449. /package/src/{primitives → core/primitives}/checkbox/__workshop__/tones.tsx +0 -0
  450. /package/src/{primitives → core/primitives}/checkbox/index.ts +0 -0
  451. /package/src/{primitives → core/primitives}/code/__workshop__/.eslintrc +0 -0
  452. /package/src/{primitives → core/primitives}/code/__workshop__/index.ts +0 -0
  453. /package/src/{primitives → core/primitives}/code/__workshop__/opticalAlignment.tsx +0 -0
  454. /package/src/{primitives → core/primitives}/code/__workshop__/props.tsx +0 -0
  455. /package/src/{primitives → core/primitives}/code/index.ts +0 -0
  456. /package/src/{primitives → core/primitives}/code/styles.ts +0 -0
  457. /package/src/{primitives → core/primitives}/container/__workshop__/.eslintrc +0 -0
  458. /package/src/{primitives → core/primitives}/container/__workshop__/example.tsx +0 -0
  459. /package/src/{primitives → core/primitives}/container/__workshop__/index.ts +0 -0
  460. /package/src/{primitives → core/primitives}/container/index.ts +0 -0
  461. /package/src/{primitives → core/primitives}/container/types.ts +0 -0
  462. /package/src/{primitives → core/primitives}/flex/__workshop__/.eslintrc +0 -0
  463. /package/src/{primitives → core/primitives}/flex/__workshop__/example.tsx +0 -0
  464. /package/src/{primitives → core/primitives}/flex/__workshop__/gap.tsx +0 -0
  465. /package/src/{primitives → core/primitives}/flex/__workshop__/index.ts +0 -0
  466. /package/src/{primitives → core/primitives}/flex/index.ts +0 -0
  467. /package/src/{primitives → core/primitives}/grid/__workshop__/.eslintrc +0 -0
  468. /package/src/{primitives → core/primitives}/grid/__workshop__/index.ts +0 -0
  469. /package/src/{primitives → core/primitives}/grid/__workshop__/responsive.tsx +0 -0
  470. /package/src/{primitives → core/primitives}/grid/index.ts +0 -0
  471. /package/src/{primitives → core/primitives}/heading/__workshop__/.eslintrc +0 -0
  472. /package/src/{primitives → core/primitives}/heading/__workshop__/index.ts +0 -0
  473. /package/src/{primitives → core/primitives}/heading/__workshop__/opticalAlignment.tsx +0 -0
  474. /package/src/{primitives → core/primitives}/heading/__workshop__/plain.tsx +0 -0
  475. /package/src/{primitives → core/primitives}/heading/index.ts +0 -0
  476. /package/src/{primitives → core/primitives}/heading/styles.ts +0 -0
  477. /package/src/{primitives → core/primitives}/heading/types.ts +0 -0
  478. /package/src/{primitives → core/primitives}/helpers.ts +0 -0
  479. /package/src/{primitives → core/primitives}/index.ts +0 -0
  480. /package/src/{primitives → core/primitives}/inline/__workshop__/.eslintrc +0 -0
  481. /package/src/{primitives → core/primitives}/inline/__workshop__/index.ts +0 -0
  482. /package/src/{primitives → core/primitives}/inline/__workshop__/plain.tsx +0 -0
  483. /package/src/{primitives → core/primitives}/inline/index.ts +0 -0
  484. /package/src/{primitives → core/primitives}/inline/types.ts +0 -0
  485. /package/src/{primitives → core/primitives}/kbd/__workshop__/.eslintrc +0 -0
  486. /package/src/{primitives → core/primitives}/kbd/__workshop__/index.ts +0 -0
  487. /package/src/{primitives → core/primitives}/kbd/__workshop__/plain.tsx +0 -0
  488. /package/src/{primitives → core/primitives}/kbd/index.tsx +0 -0
  489. /package/src/{primitives → core/primitives}/label/__workshop__/.eslintrc +0 -0
  490. /package/src/{primitives → core/primitives}/label/__workshop__/index.ts +0 -0
  491. /package/src/{primitives → core/primitives}/label/__workshop__/opticalAlignment.tsx +0 -0
  492. /package/src/{primitives → core/primitives}/label/__workshop__/plain.tsx +0 -0
  493. /package/src/{primitives → core/primitives}/label/index.ts +0 -0
  494. /package/src/{primitives → core/primitives}/label/styles.ts +0 -0
  495. /package/src/{primitives → core/primitives}/popover/__workshop__/.eslintrc +0 -0
  496. /package/src/{primitives → core/primitives}/popover/__workshop__/AlignedStory.tsx +0 -0
  497. /package/src/{primitives → core/primitives}/popover/__workshop__/MarginsStory.tsx +0 -0
  498. /package/src/{primitives → core/primitives}/popover/__workshop__/MatchReferenceWidthStory.tsx +0 -0
  499. /package/src/{primitives → core/primitives}/popover/__workshop__/OpenOnMountStory.tsx +0 -0
  500. /package/src/{primitives → core/primitives}/popover/__workshop__/PlainStory.tsx +0 -0
  501. /package/src/{primitives → core/primitives}/popover/__workshop__/SidePanelStory.tsx +0 -0
  502. /package/src/{primitives → core/primitives}/popover/__workshop__/index.ts +0 -0
  503. /package/src/{primitives → core/primitives}/popover/floating-ui/size.ts +0 -0
  504. /package/src/{primitives → core/primitives}/popover/index.ts +0 -0
  505. /package/src/{primitives → core/primitives}/popover/types.ts +0 -0
  506. /package/src/{primitives → core/primitives}/radio/__workshop__/.eslintrc +0 -0
  507. /package/src/{primitives → core/primitives}/radio/__workshop__/example.tsx +0 -0
  508. /package/src/{primitives → core/primitives}/radio/__workshop__/index.ts +0 -0
  509. /package/src/{primitives → core/primitives}/radio/__workshop__/plain.tsx +0 -0
  510. /package/src/{primitives → core/primitives}/radio/index.ts +0 -0
  511. /package/src/{primitives → core/primitives}/select/__workshop__/.eslintrc +0 -0
  512. /package/src/{primitives → core/primitives}/select/__workshop__/index.ts +0 -0
  513. /package/src/{primitives → core/primitives}/select/__workshop__/plain.tsx +0 -0
  514. /package/src/{primitives → core/primitives}/select/__workshop__/readOnly.tsx +0 -0
  515. /package/src/{primitives → core/primitives}/select/index.ts +0 -0
  516. /package/src/{primitives → core/primitives}/spinner/__workshop__/.eslintrc +0 -0
  517. /package/src/{primitives → core/primitives}/spinner/__workshop__/Props.tsx +0 -0
  518. /package/src/{primitives → core/primitives}/spinner/__workshop__/index.ts +0 -0
  519. /package/src/{primitives → core/primitives}/spinner/index.ts +0 -0
  520. /package/src/{primitives → core/primitives}/stack/__workshop__/.eslintrc +0 -0
  521. /package/src/{primitives → core/primitives}/stack/__workshop__/index.ts +0 -0
  522. /package/src/{primitives → core/primitives}/stack/__workshop__/plain.tsx +0 -0
  523. /package/src/{primitives → core/primitives}/stack/index.ts +0 -0
  524. /package/src/{primitives → core/primitives}/switch/__workshop__/.eslintrc +0 -0
  525. /package/src/{primitives → core/primitives}/switch/__workshop__/index.ts +0 -0
  526. /package/src/{primitives → core/primitives}/switch/__workshop__/props.tsx +0 -0
  527. /package/src/{primitives → core/primitives}/switch/index.ts +0 -0
  528. /package/src/{primitives → core/primitives}/text/__workshop__/.eslintrc +0 -0
  529. /package/src/{primitives → core/primitives}/text/__workshop__/example.tsx +0 -0
  530. /package/src/{primitives → core/primitives}/text/__workshop__/index.ts +0 -0
  531. /package/src/{primitives → core/primitives}/text/__workshop__/opticalAlignment.tsx +0 -0
  532. /package/src/{primitives → core/primitives}/text/index.ts +0 -0
  533. /package/src/{primitives → core/primitives}/text/styles.ts +0 -0
  534. /package/src/{primitives → core/primitives}/textArea/__workshop__/.eslintrc +0 -0
  535. /package/src/{primitives → core/primitives}/textArea/__workshop__/index.ts +0 -0
  536. /package/src/{primitives → core/primitives}/textArea/index.ts +0 -0
  537. /package/src/{primitives → core/primitives}/textInput/__workshop__/.eslintrc +0 -0
  538. /package/src/{primitives → core/primitives}/textInput/__workshop__/clearButton.tsx +0 -0
  539. /package/src/{primitives → core/primitives}/textInput/__workshop__/customValidity.tsx +0 -0
  540. /package/src/{primitives → core/primitives}/textInput/__workshop__/index.ts +0 -0
  541. /package/src/{primitives → core/primitives}/textInput/__workshop__/multipleTones.tsx +0 -0
  542. /package/src/{primitives → core/primitives}/textInput/__workshop__/readOnly.tsx +0 -0
  543. /package/src/{primitives → core/primitives}/textInput/__workshop__/tones.tsx +0 -0
  544. /package/src/{primitives → core/primitives}/textInput/__workshop__/typed.tsx +0 -0
  545. /package/src/{primitives → core/primitives}/textInput/index.ts +0 -0
  546. /package/src/{primitives → core/primitives}/tooltip/__workshop__/.eslintrc +0 -0
  547. /package/src/{primitives → core/primitives}/tooltip/__workshop__/props.tsx +0 -0
  548. /package/src/{primitives → core/primitives}/tooltip/index.ts +0 -0
  549. /package/src/{primitives → core/primitives}/tooltip/tooltipDelayGroup/index.ts +0 -0
  550. /package/src/{primitives → core/primitives}/tooltip/tooltipDelayGroup/tooltipDelayGroupContext.tsx +0 -0
  551. /package/src/{primitives → core/primitives}/tooltip/tooltipDelayGroup/types.ts +0 -0
  552. /package/src/{primitives → core/primitives}/tooltip/tooltipDelayGroup/useTooltipDelayGroup.ts +0 -0
  553. /package/src/{styles → core/styles}/border/index.ts +0 -0
  554. /package/src/{styles → core/styles}/border/types.ts +0 -0
  555. /package/src/{styles → core/styles}/box/index.ts +0 -0
  556. /package/src/{styles → core/styles}/box/types.ts +0 -0
  557. /package/src/{styles → core/styles}/colorVars/index.ts +0 -0
  558. /package/src/{styles → core/styles}/flex/index.ts +0 -0
  559. /package/src/{styles → core/styles}/flex/types.ts +0 -0
  560. /package/src/{styles → core/styles}/font/index.ts +0 -0
  561. /package/src/{styles → core/styles}/grid/index.ts +0 -0
  562. /package/src/{styles → core/styles}/grid/types.ts +0 -0
  563. /package/src/{styles → core/styles}/index.ts +0 -0
  564. /package/src/{styles → core/styles}/input/index.ts +0 -0
  565. /package/src/{styles → core/styles}/internal.ts +0 -0
  566. /package/src/{styles → core/styles}/margin/index.ts +0 -0
  567. /package/src/{styles → core/styles}/margin/types.ts +0 -0
  568. /package/src/{styles → core/styles}/padding/index.ts +0 -0
  569. /package/src/{styles → core/styles}/padding/types.ts +0 -0
  570. /package/src/{styles → core/styles}/radius/index.ts +0 -0
  571. /package/src/{styles → core/styles}/radius/types.ts +0 -0
  572. /package/src/{styles → core/styles}/shadow/index.ts +0 -0
  573. /package/src/{styles → core/styles}/shadow/types.ts +0 -0
  574. /package/src/{theme → core/theme}/__workshop__/.eslintrc +0 -0
  575. /package/src/{theme → core/theme}/__workshop__/layer.tsx +0 -0
  576. /package/src/{theme → core/theme}/__workshop__/nestedProvider.tsx +0 -0
  577. /package/src/{theme → core/theme}/themeContext.ts +0 -0
  578. /package/src/{types → core/types}/avatar.ts +0 -0
  579. /package/src/{types → core/types}/box.ts +0 -0
  580. /package/src/{types → core/types}/dialog.ts +0 -0
  581. /package/src/{types → core/types}/flex.ts +0 -0
  582. /package/src/{types → core/types}/grid.ts +0 -0
  583. /package/src/{types → core/types}/gridItem.ts +0 -0
  584. /package/src/{types → core/types}/placement.ts +0 -0
  585. /package/src/{types → core/types}/popover.ts +0 -0
  586. /package/src/{types → core/types}/radius.ts +0 -0
  587. /package/src/{types → core/types}/text.ts +0 -0
  588. /package/src/{utils → core/utils}/boundaryElement/__workshop__/.eslintrc +0 -0
  589. /package/src/{utils → core/utils}/boundaryElement/__workshop__/index.ts +0 -0
  590. /package/src/{utils → core/utils}/boundaryElement/boundaryElementContext.ts +0 -0
  591. /package/src/{utils → core/utils}/boundaryElement/boundaryElementProvider.tsx +0 -0
  592. /package/src/{utils → core/utils}/boundaryElement/index.ts +0 -0
  593. /package/src/{utils → core/utils}/boundaryElement/types.ts +0 -0
  594. /package/src/{utils → core/utils}/boundaryElement/useBoundaryElement.ts +0 -0
  595. /package/src/{utils → core/utils}/elementQuery/__workshop__/.eslintrc +0 -0
  596. /package/src/{utils → core/utils}/elementQuery/__workshop__/customMedia.tsx +0 -0
  597. /package/src/{utils → core/utils}/elementQuery/__workshop__/index.ts +0 -0
  598. /package/src/{utils → core/utils}/elementQuery/elementQuery.tsx +0 -0
  599. /package/src/{utils → core/utils}/elementQuery/helpers.ts +0 -0
  600. /package/src/{utils → core/utils}/elementQuery/index.ts +0 -0
  601. /package/src/{utils → core/utils}/errorBoundary.tsx +0 -0
  602. /package/src/{utils → core/utils}/layer/__workshop__/.eslintrc +0 -0
  603. /package/src/{utils → core/utils}/layer/__workshop__/index.ts +0 -0
  604. /package/src/{utils → core/utils}/layer/__workshop__/multipleRoots.tsx +0 -0
  605. /package/src/{utils → core/utils}/layer/__workshop__/nested.tsx +0 -0
  606. /package/src/{utils → core/utils}/layer/__workshop__/responsiveZOffset.tsx +0 -0
  607. /package/src/{utils → core/utils}/layer/getLayerContext.test.ts +0 -0
  608. /package/src/{utils → core/utils}/layer/getLayerContext.ts +0 -0
  609. /package/src/{utils → core/utils}/layer/index.ts +0 -0
  610. /package/src/{utils → core/utils}/layer/layer.tsx +0 -0
  611. /package/src/{utils → core/utils}/layer/layerContext.ts +0 -0
  612. /package/src/{utils → core/utils}/layer/layerProvider.tsx +0 -0
  613. /package/src/{utils → core/utils}/layer/types.ts +0 -0
  614. /package/src/{utils → core/utils}/layer/useLayer.ts +0 -0
  615. /package/src/{utils → core/utils}/portal/__workshop__/.eslintrc +0 -0
  616. /package/src/{utils → core/utils}/portal/__workshop__/index.ts +0 -0
  617. /package/src/{utils → core/utils}/portal/index.ts +0 -0
  618. /package/src/{utils → core/utils}/portal/portal.ts +0 -0
  619. /package/src/{utils → core/utils}/portal/portalContext.ts +0 -0
  620. /package/src/{utils → core/utils}/portal/portalProvider.tsx +0 -0
  621. /package/src/{utils → core/utils}/portal/types.ts +0 -0
  622. /package/src/{utils → core/utils}/portal/usePortal.ts +0 -0
  623. /package/src/{utils → core/utils}/srOnly/index.ts +0 -0
  624. /package/src/{utils → core/utils}/srOnly/srOnly.tsx +0 -0
  625. /package/src/{utils → core/utils}/virtualList/__workshop__/.eslintrc +0 -0
  626. /package/src/{utils → core/utils}/virtualList/__workshop__/changingProps.tsx +0 -0
  627. /package/src/{utils → core/utils}/virtualList/__workshop__/elementScroll.tsx +0 -0
  628. /package/src/{utils → core/utils}/virtualList/__workshop__/index.ts +0 -0
  629. /package/src/{utils → core/utils}/virtualList/__workshop__/infiniteList.tsx +0 -0
  630. /package/src/{utils → core/utils}/virtualList/__workshop__/windowScrolll.tsx +0 -0
  631. /package/src/{utils → core/utils}/virtualList/index.ts +0 -0
  632. /package/src/{utils → core/utils}/virtualList/virtualList.tsx +0 -0
  633. /package/src/theme/{lib/theme/color/_generic → config/tokens/color}/index.ts +0 -0
  634. /package/src/theme/{lib/theme/color/base/types.ts → system/color/base.ts} +0 -0
  635. /package/src/theme/{lib/theme/color/syntax/types.ts → system/color/syntax.ts} +0 -0
  636. /package/src/theme/{lib/theme → system}/fonts.ts +0 -0
  637. /package/src/theme/{lib/theme → system}/layer.ts +0 -0
package/dist/index.d.ts CHANGED
@@ -2,24 +2,62 @@
2
2
 
3
3
  import {AnimationEventHandler} from 'react'
4
4
  import {AriaRole} from 'react'
5
+ import {BaseTheme} from '@sanity/ui/theme'
6
+ import {BoxShadow} from '@sanity/ui/theme'
7
+ import {buildTheme} from '@sanity/ui/theme'
5
8
  import {ClipboardEventHandler} from 'react'
9
+ import {COLOR_CONFIG_BASE_KEYS} from '@sanity/ui/theme'
10
+ import {COLOR_CONFIG_BASE_TONES} from '@sanity/ui/theme'
11
+ import {COLOR_CONFIG_BLEND_KEYS} from '@sanity/ui/theme'
12
+ import {COLOR_CONFIG_STATE_KEYS} from '@sanity/ui/theme'
13
+ import {COLOR_CONFIG_STATE_TONES} from '@sanity/ui/theme'
14
+ import {ColorBlendModeTokenValue} from '@sanity/ui/theme'
15
+ import {ColorConfigBaseKey} from '@sanity/ui/theme'
16
+ import {ColorConfigBaseTone} from '@sanity/ui/theme'
17
+ import {ColorConfigBlendKey} from '@sanity/ui/theme'
18
+ import {ColorConfigOpacityValue} from '@sanity/ui/theme'
19
+ import {ColorConfigStateKey} from '@sanity/ui/theme'
20
+ import {ColorConfigStateTone} from '@sanity/ui/theme'
21
+ import {ColorConfigValue} from '@sanity/ui/theme'
6
22
  import {Component} from 'react'
7
23
  import {CompositionEventHandler} from 'react'
24
+ import {createColorTheme} from '@sanity/ui/theme'
25
+ import {CSSObject} from '@sanity/ui/theme'
8
26
  import {CSSProperties} from 'react'
9
27
  import {DragEventHandler} from 'react'
10
28
  import {ElementType} from 'react'
11
29
  import {FocusEventHandler} from 'react'
12
30
  import {FormEventHandler} from 'react'
13
31
  import {ForwardRefExoticComponent} from 'react'
32
+ import {hexToRgb} from '@sanity/ui/theme'
33
+ import {HSL} from '@sanity/ui/theme'
34
+ import {hslToRgb} from '@sanity/ui/theme'
14
35
  import {HTMLProps} from 'react'
36
+ import {isColorBlendModeValue} from '@sanity/ui/theme'
37
+ import {isColorButtonMode} from '@sanity/ui/theme'
38
+ import {isColorConfigBaseKey} from '@sanity/ui/theme'
39
+ import {isColorConfigBaseTone} from '@sanity/ui/theme'
40
+ import {isColorConfigBlendKey} from '@sanity/ui/theme'
41
+ import {isColorConfigStateKey} from '@sanity/ui/theme'
42
+ import {isColorConfigStateTone} from '@sanity/ui/theme'
43
+ import {isColorHueKey} from '@sanity/ui/theme'
44
+ import {isColorOpacityValue} from '@sanity/ui/theme'
45
+ import {isColorTintKey} from '@sanity/ui/theme'
46
+ import {isColorTokenValue} from '@sanity/ui/theme'
47
+ import {isColorValue} from '@sanity/ui/theme'
15
48
  import {IStyledComponent} from 'styled-components'
16
49
  import {Key} from 'react'
17
50
  import {KeyboardEventHandler} from 'react'
18
51
  import {LegacyRef} from 'react'
19
52
  import {MemoExoticComponent} from 'react'
20
53
  import {MouseEventHandler} from 'react'
54
+ import {multiply} from '@sanity/ui/theme'
21
55
  import {MutableRefObject} from 'react'
22
56
  import {NamedExoticComponent} from 'react'
57
+ import {parseColor} from '@sanity/ui/theme'
58
+ import {parseTokenKey} from '@sanity/ui/theme'
59
+ import {parseTokenValue} from '@sanity/ui/theme'
60
+ import {PartialThemeColorBuilderOpts} from '@sanity/ui/theme'
23
61
  import {PointerEventHandler} from 'react'
24
62
  import {PropsWithChildren} from 'react'
25
63
  import {ReactElement} from 'react'
@@ -28,7 +66,81 @@ import {ReactNode} from 'react'
28
66
  import {Ref} from 'react'
29
67
  import {RefAttributes} from 'react'
30
68
  import {RefCallback} from 'react'
31
- import type {StyledObject} from 'styled-components'
69
+ import {RGB} from '@sanity/ui/theme'
70
+ import {RGBA} from '@sanity/ui/theme'
71
+ import {rgba} from '@sanity/ui/theme'
72
+ import {rgbaToRGBA} from '@sanity/ui/theme'
73
+ import {rgbToHex} from '@sanity/ui/theme'
74
+ import {rgbToHsl} from '@sanity/ui/theme'
75
+ import {RootTheme} from '@sanity/ui/theme'
76
+ import {screen as screen_2} from '@sanity/ui/theme'
77
+ import {studioTheme} from '@sanity/ui/theme'
78
+ import {Theme} from '@sanity/ui/theme'
79
+ import {THEME_COLOR_BASE_TONES} from '@sanity/ui/theme'
80
+ import {THEME_COLOR_BLEND_MODES} from '@sanity/ui/theme'
81
+ import {THEME_COLOR_BUTTON_MODES} from '@sanity/ui/theme'
82
+ import {THEME_COLOR_STATE_TONES} from '@sanity/ui/theme'
83
+ import {THEME_COLOR_STATES} from '@sanity/ui/theme'
84
+ import {ThemeAvatar} from '@sanity/ui/theme'
85
+ import {ThemeColor} from '@sanity/ui/theme'
86
+ import {ThemeColorAvatarColorKey} from '@sanity/ui/theme'
87
+ import {ThemeColorBase} from '@sanity/ui/theme'
88
+ import {ThemeColorBaseTokens} from '@sanity/ui/theme'
89
+ import {ThemeColorBaseToneKey} from '@sanity/ui/theme'
90
+ import {ThemeColorBlendModeKey} from '@sanity/ui/theme'
91
+ import {ThemeColorBuilderOpts} from '@sanity/ui/theme'
92
+ import {ThemeColorButton} from '@sanity/ui/theme'
93
+ import {ThemeColorButtonModeKey} from '@sanity/ui/theme'
94
+ import {ThemeColorButtonState} from '@sanity/ui/theme'
95
+ import {ThemeColorButtonStates} from '@sanity/ui/theme'
96
+ import {ThemeColorButtonTokens} from '@sanity/ui/theme'
97
+ import {ThemeColorButtonTones} from '@sanity/ui/theme'
98
+ import {ThemeColorCard} from '@sanity/ui/theme'
99
+ import {ThemeColorCardState} from '@sanity/ui/theme'
100
+ import {ThemeColorGenericState} from '@sanity/ui/theme'
101
+ import {ThemeColorInput} from '@sanity/ui/theme'
102
+ import {ThemeColorInputState} from '@sanity/ui/theme'
103
+ import {ThemeColorInputStates} from '@sanity/ui/theme'
104
+ import {ThemeColorMuted} from '@sanity/ui/theme'
105
+ import {ThemeColorMutedTone} from '@sanity/ui/theme'
106
+ import {ThemeColorName} from '@sanity/ui/theme'
107
+ import {ThemeColorScheme} from '@sanity/ui/theme'
108
+ import {ThemeColorSchemeKey} from '@sanity/ui/theme'
109
+ import {ThemeColorSchemes} from '@sanity/ui/theme'
110
+ import {ThemeColorSelectable} from '@sanity/ui/theme'
111
+ import {ThemeColorSelectableState} from '@sanity/ui/theme'
112
+ import {ThemeColorSelectableStates} from '@sanity/ui/theme'
113
+ import {ThemeColorSolid} from '@sanity/ui/theme'
114
+ import {ThemeColorSolidTone} from '@sanity/ui/theme'
115
+ import {ThemeColorSpot} from '@sanity/ui/theme'
116
+ import {ThemeColorSpotKey} from '@sanity/ui/theme'
117
+ import {ThemeColorStateKey} from '@sanity/ui/theme'
118
+ import {ThemeColorStatesTokens} from '@sanity/ui/theme'
119
+ import {ThemeColorStateTokens} from '@sanity/ui/theme'
120
+ import {ThemeColorStateToneKey} from '@sanity/ui/theme'
121
+ import {ThemeColorSyntax} from '@sanity/ui/theme'
122
+ import {ThemeColorTokens} from '@sanity/ui/theme'
123
+ import {ThemeColorTokenValue} from '@sanity/ui/theme'
124
+ import {ThemeColorToneKey} from '@sanity/ui/theme'
125
+ import {ThemeConfig} from '@sanity/ui/theme'
126
+ import {ThemeFocusRing} from '@sanity/ui/theme'
127
+ import {ThemeFont} from '@sanity/ui/theme'
128
+ import {ThemeFontKey} from '@sanity/ui/theme'
129
+ import {ThemeFonts} from '@sanity/ui/theme'
130
+ import {ThemeFontSize} from '@sanity/ui/theme'
131
+ import {ThemeFontWeight} from '@sanity/ui/theme'
132
+ import {ThemeFontWeightKey} from '@sanity/ui/theme'
133
+ import {ThemeInput} from '@sanity/ui/theme'
134
+ import {ThemeLayer} from '@sanity/ui/theme'
135
+ import {ThemeShadow} from '@sanity/ui/theme'
136
+ import {ThemeStyles} from '@sanity/ui/theme'
137
+ import {TokenBaseKeyNode} from '@sanity/ui/theme'
138
+ import {TokenBlendModeValueNode} from '@sanity/ui/theme'
139
+ import {TokenButtonKeyNode} from '@sanity/ui/theme'
140
+ import {TokenColorValueNode} from '@sanity/ui/theme'
141
+ import {TokenHueValueNode} from '@sanity/ui/theme'
142
+ import {TokenKeyNode} from '@sanity/ui/theme'
143
+ import {TokenValueNode} from '@sanity/ui/theme'
32
144
  import {TouchEventHandler} from 'react'
33
145
  import {TransitionEventHandler} from 'react'
34
146
  import {UIEventHandler} from 'react'
@@ -37,12 +149,28 @@ import {WheelEventHandler} from 'react'
37
149
  /** @beta */
38
150
  export declare type ArrayPropPrimitive = string | number | boolean | undefined | null
39
151
 
152
+ /** @internal */
153
+ export declare const Arrow: ForwardRefExoticComponent<
154
+ Omit<
155
+ {
156
+ width: number
157
+ height: number
158
+ radius?: number | undefined
159
+ } & Omit<HTMLProps<HTMLDivElement>, 'width' | 'height'>,
160
+ 'ref'
161
+ > &
162
+ RefAttributes<HTMLDivElement>
163
+ >
164
+
40
165
  /**
41
166
  * @internal
42
167
  */
43
168
  export declare function attemptFocus(element: HTMLElement): boolean
44
169
 
45
170
  /**
171
+ * The Autocomplete component is typically used for search components.
172
+ * It consists of a text input for writing a query, and properties for rendering suggestions.
173
+ *
46
174
  * @public
47
175
  */
48
176
  export declare const Autocomplete: <Option extends BaseAutocompleteOption>(
@@ -127,6 +255,7 @@ export declare interface AutocompleteProps<
127
255
  onSelect?: (value: string) => void
128
256
  /** @beta */
129
257
  openButton?: boolean | AutocompleteOpenButtonProps
258
+ /** The options to render. */
130
259
  options?: Option[]
131
260
  padding?: number | number[]
132
261
  popover?: Omit<PopoverProps, 'content' | 'onMouseEnter' | 'onMouseLeave' | 'open'> &
@@ -135,6 +264,7 @@ export declare interface AutocompleteProps<
135
264
  radius?: Radius | Radius[]
136
265
  /** @beta */
137
266
  relatedElements?: HTMLElement[]
267
+ /** The callback function for rendering each option. */
138
268
  renderOption?: (option: Option) => ReactElement
139
269
  /** @beta */
140
270
  renderPopover?: (
@@ -149,6 +279,7 @@ export declare interface AutocompleteProps<
149
279
  ) => ReactNode
150
280
  renderValue?: (value: string, option?: Option) => string
151
281
  suffix?: ReactNode
282
+ /** The current value. */
152
283
  value?: string
153
284
  }
154
285
 
@@ -218,6 +349,8 @@ export declare interface AutocompleteValueChangeMsg {
218
349
  }
219
350
 
220
351
  /**
352
+ * Avatars are used to represent people and other agents (e.g. bots).
353
+ *
221
354
  * @public
222
355
  */
223
356
  export declare const Avatar: ForwardRefExoticComponent<
@@ -250,10 +383,12 @@ export declare type AvatarPosition = 'top' | 'bottom' | 'inside'
250
383
  * @public
251
384
  */
252
385
  export declare interface AvatarProps {
386
+ /** @beta */
387
+ __unstable_hideInnerStroke?: boolean
253
388
  animateArrowFrom?: AvatarPosition
254
389
  arrowPosition?: AvatarPosition
255
390
  as?: React.ElementType | keyof JSX.IntrinsicElements
256
- color?: ThemeColorSpotKey
391
+ color?: ThemeColorAvatarColorKey
257
392
  initials?: string
258
393
  onImageLoadError?: (event: Error) => void
259
394
  size?: AvatarSize | AvatarSize[]
@@ -270,7 +405,7 @@ export declare interface AvatarProps {
270
405
  * @internal
271
406
  */
272
407
  export declare interface AvatarRootStyleProps {
273
- $color: string
408
+ $color: ThemeColorSpotKey
274
409
  }
275
410
 
276
411
  /**
@@ -302,6 +437,8 @@ export declare interface AvatarStackProps {
302
437
  export declare type AvatarStatus = 'online' | 'editing' | 'inactive'
303
438
 
304
439
  /**
440
+ * Badges are used to tag resources.
441
+ *
305
442
  * @public
306
443
  */
307
444
  export declare const Badge: ForwardRefExoticComponent<
@@ -310,6 +447,7 @@ export declare const Badge: ForwardRefExoticComponent<
310
447
 
311
448
  /**
312
449
  * @public
450
+ * @deprecated No longer used
313
451
  */
314
452
  export declare type BadgeMode = 'default' | 'outline'
315
453
 
@@ -319,6 +457,7 @@ export declare type BadgeMode = 'default' | 'outline'
319
457
  export declare interface BadgeProps extends BoxProps, ResponsiveRadiusProps {
320
458
  as?: React.ElementType | keyof JSX.IntrinsicElements
321
459
  fontSize?: number | number[]
460
+ /** @deprecated No longer used. */
322
461
  mode?: BadgeMode
323
462
  tone?: BadgeTone
324
463
  }
@@ -326,7 +465,7 @@ export declare interface BadgeProps extends BoxProps, ResponsiveRadiusProps {
326
465
  /**
327
466
  * @public
328
467
  */
329
- export declare type BadgeTone = 'default' | 'primary' | 'positive' | 'caution' | 'critical'
468
+ export declare type BadgeTone = ThemeColorStateToneKey
330
469
 
331
470
  /**
332
471
  * @public
@@ -335,38 +474,7 @@ export declare interface BaseAutocompleteOption {
335
474
  value: string
336
475
  }
337
476
 
338
- /**
339
- * @public
340
- */
341
- export declare interface BaseTheme<Styles extends {} = {}> {
342
- avatar: ThemeAvatar
343
- button: {
344
- textWeight: ThemeFontWeightKey
345
- focusRing: FocusRing
346
- }
347
- card: {
348
- focusRing: FocusRing
349
- }
350
- color: ThemeColorSchemes
351
- container: number[]
352
- /** @deprecated Use component-specific `focusRing` values instead */
353
- focusRing: {
354
- offset: number
355
- width: number
356
- }
357
- fonts: ThemeFonts
358
- input: ThemeInput
359
- /**
360
- * THIS API MAY BE UNSTABLE. DO NOT USE IN PRODUCTION.
361
- * @beta
362
- */
363
- layer?: ThemeLayer
364
- media: number[]
365
- radius: number[]
366
- shadows: Array<ThemeShadow | null>
367
- space: number[]
368
- styles?: Styles
369
- }
477
+ export {BaseTheme}
370
478
 
371
479
  /**
372
480
  * @public
@@ -392,10 +500,13 @@ export declare interface BoundaryElementProviderProps {
392
500
  }
393
501
 
394
502
  /**
503
+ * The `Box` component is a basic layout wrapper component which provides utility properties
504
+ * for flex, margins and padding.
505
+ *
395
506
  * @public
396
507
  */
397
508
  export declare const Box: ForwardRefExoticComponent<
398
- Omit<BoxProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
509
+ Omit<BoxProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height'>, 'ref'> &
399
510
  RefAttributes<HTMLDivElement>
400
511
  >
401
512
 
@@ -427,11 +538,7 @@ export declare interface BoxProps
427
538
  forwardedAs?: React.ElementType | keyof JSX.IntrinsicElements
428
539
  }
429
540
 
430
- /**
431
- * TODO: Rename to `ThemeBoxShadow`
432
- * @public
433
- */
434
- export declare type BoxShadow = [number, number, number, number]
541
+ export {BoxShadow}
435
542
 
436
543
  /**
437
544
  * @public
@@ -456,18 +563,20 @@ export declare interface BreadcrumbsProps {
456
563
  space?: number | number[]
457
564
  }
458
565
 
566
+ export {buildTheme}
567
+
459
568
  /**
460
569
  * @public
461
570
  */
462
571
  export declare const Button: ForwardRefExoticComponent<
463
- Omit<ButtonProps & Omit<HTMLProps<HTMLButtonElement>, 'as'>, 'ref'> &
572
+ Omit<ButtonProps & Omit<HTMLProps<HTMLButtonElement>, 'width' | 'as'>, 'ref'> &
464
573
  RefAttributes<HTMLButtonElement>
465
574
  >
466
575
 
467
576
  /**
468
577
  * @public
469
578
  */
470
- export declare type ButtonMode = 'default' | 'ghost' | 'bleed'
579
+ export declare type ButtonMode = ThemeColorButtonModeKey
471
580
 
472
581
  /**
473
582
  * @public
@@ -490,6 +599,7 @@ export declare interface ButtonProps extends ResponsivePaddingProps, ResponsiveR
490
599
  text?: React.ReactNode
491
600
  tone?: ButtonTone
492
601
  type?: 'button' | 'reset' | 'submit'
602
+ width?: ButtonWidth
493
603
  }
494
604
 
495
605
  /**
@@ -500,13 +610,21 @@ export declare type ButtonTextAlign = 'left' | 'right' | 'center'
500
610
  /**
501
611
  * @public
502
612
  */
503
- export declare type ButtonTone = 'default' | 'primary' | 'positive' | 'caution' | 'critical'
613
+ export declare type ButtonTone = ThemeColorStateToneKey
614
+
615
+ /**
616
+ * @public
617
+ */
618
+ export declare type ButtonWidth = 'fill'
504
619
 
505
620
  /**
621
+ * The `Card` component acts much like a `Box`, but with a background and foreground color.
622
+ * Components within a `Card` inherit its colors.
623
+ *
506
624
  * @public
507
625
  */
508
626
  export declare const Card: ForwardRefExoticComponent<
509
- Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
627
+ Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height'>, 'ref'> &
510
628
  RefAttributes<HTMLDivElement>
511
629
  >
512
630
 
@@ -545,9 +663,11 @@ export declare interface CardStyleProps {
545
663
  /**
546
664
  * @public
547
665
  */
548
- export declare type CardTone = ThemeColorToneKey | 'inherit'
666
+ export declare type CardTone = ThemeColorBaseToneKey | 'inherit'
549
667
 
550
668
  /**
669
+ * Checkboxes allow the user to select one or more items from a set.
670
+ *
551
671
  * @public
552
672
  */
553
673
  export declare const Checkbox: ForwardRefExoticComponent<
@@ -580,6 +700,7 @@ export declare const Code: ForwardRefExoticComponent<
580
700
  */
581
701
  export declare interface CodeProps {
582
702
  as?: React.ElementType | keyof JSX.IntrinsicElements
703
+ /** Define the language to use for syntax highlighting. */
583
704
  language?: string
584
705
  size?: number | number[]
585
706
  weight?: string
@@ -591,7 +712,7 @@ export declare interface CodeProps {
591
712
  */
592
713
  export declare const CodeSkeleton: ForwardRefExoticComponent<
593
714
  Omit<
594
- CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'size' | 'height' | 'as'>,
715
+ CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'children' | 'as' | 'height'>,
595
716
  'ref'
596
717
  > &
597
718
  RefAttributes<HTMLDivElement>
@@ -605,11 +726,39 @@ export declare interface CodeSkeletonProps extends SkeletonProps {
605
726
  size?: number | number[]
606
727
  }
607
728
 
729
+ export {COLOR_CONFIG_BASE_KEYS}
730
+
731
+ export {COLOR_CONFIG_BASE_TONES}
732
+
733
+ export {COLOR_CONFIG_BLEND_KEYS}
734
+
735
+ export {COLOR_CONFIG_STATE_KEYS}
736
+
737
+ export {COLOR_CONFIG_STATE_TONES}
738
+
739
+ export {ColorBlendModeTokenValue}
740
+
741
+ export {ColorConfigBaseKey}
742
+
743
+ export {ColorConfigBaseTone}
744
+
745
+ export {ColorConfigBlendKey}
746
+
747
+ export {ColorConfigOpacityValue}
748
+
749
+ export {ColorConfigStateKey}
750
+
751
+ export {ColorConfigStateTone}
752
+
753
+ export {ColorConfigValue}
754
+
608
755
  /**
756
+ * The `Container` component wraps content layout in a defined set of widths.
757
+ *
609
758
  * @public
610
759
  */
611
760
  export declare const Container: ForwardRefExoticComponent<
612
- Omit<ContainerProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'as'>, 'ref'> &
761
+ Omit<ContainerProps & Omit<HTMLProps<HTMLDivElement>, 'width' | 'as' | 'height'>, 'ref'> &
613
762
  RefAttributes<HTMLDivElement>
614
763
  >
615
764
 
@@ -623,15 +772,9 @@ export declare interface ContainerProps extends BoxProps, ResponsiveWidthProps {
623
772
  */
624
773
  export declare function containsOrEqualsElement(element: HTMLElement, node: Node): boolean
625
774
 
626
- /**
627
- * @public
628
- */
629
- export declare function createColorTheme(
630
- partialOpts?: PartialThemeColorBuilderOpts,
631
- ): ThemeColorSchemes
775
+ export {createColorTheme}
632
776
 
633
- /** @internal */
634
- export declare type CSSObject = StyledObject<any>
777
+ export {CSSObject}
635
778
 
636
779
  /**
637
780
  * @public
@@ -644,6 +787,8 @@ export declare type Delay =
644
787
  }>
645
788
 
646
789
  /**
790
+ * The Dialog component.
791
+ *
647
792
  * @public
648
793
  */
649
794
  export declare const Dialog: ForwardRefExoticComponent<
@@ -697,6 +842,13 @@ export declare interface DialogProps extends ResponsivePaddingProps, ResponsiveW
697
842
  position?: DialogPosition | DialogPosition[]
698
843
  scheme?: ThemeColorSchemeKey
699
844
  zOffset?: number | number[]
845
+ /**
846
+ * Whether the dialog should animate in on mount.
847
+ *
848
+ * @beta
849
+ * @defaultValue false
850
+ */
851
+ animate?: boolean
700
852
  }
701
853
 
702
854
  /**
@@ -802,6 +954,8 @@ export declare function _fillCSSObject(
802
954
  ): CSSObject
803
955
 
804
956
  /**
957
+ * The `Flex` component is a wrapper component for flexible elements (`Box`, `Card` and `Flex`).
958
+ *
805
959
  * @public
806
960
  */
807
961
  export declare const Flex: ForwardRefExoticComponent<
@@ -860,14 +1014,6 @@ export declare function focusFirstDescendant(element: HTMLElement): boolean
860
1014
  */
861
1015
  export declare function focusLastDescendant(element: HTMLElement): boolean
862
1016
 
863
- /**
864
- * @public
865
- */
866
- export declare interface FocusRing {
867
- offset: number
868
- width: number
869
- }
870
-
871
1017
  /**
872
1018
  * @internal
873
1019
  */
@@ -890,10 +1036,12 @@ export declare function _getResponsiveSpace(
890
1036
  ): CSSObject[] | null
891
1037
 
892
1038
  /**
1039
+ * The `Grid` component is for building 2-dimensional layers (based on CSS grid).
1040
+ *
893
1041
  * @public
894
1042
  */
895
1043
  export declare const Grid: ForwardRefExoticComponent<
896
- Omit<GridProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as' | 'rows'>, 'ref'> &
1044
+ Omit<GridProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height' | 'rows'>, 'ref'> &
897
1045
  RefAttributes<HTMLDivElement>
898
1046
  >
899
1047
 
@@ -953,6 +1101,8 @@ export declare interface GridProps extends Omit<BoxProps, 'display'>, Responsive
953
1101
  export declare function _hasFocus(element: HTMLElement): boolean
954
1102
 
955
1103
  /**
1104
+ * Typographic headings.
1105
+ *
956
1106
  * @public
957
1107
  */
958
1108
  export declare const Heading: ForwardRefExoticComponent<
@@ -984,7 +1134,7 @@ export declare interface HeadingProps {
984
1134
  */
985
1135
  export declare const HeadingSkeleton: ForwardRefExoticComponent<
986
1136
  Omit<
987
- HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'size' | 'height' | 'as'>,
1137
+ HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'children' | 'as' | 'height'>,
988
1138
  'ref'
989
1139
  > &
990
1140
  RefAttributes<HTMLDivElement>
@@ -998,16 +1148,15 @@ export declare interface HeadingSkeletonProps extends SkeletonProps {
998
1148
  size?: number | number[]
999
1149
  }
1000
1150
 
1001
- /**
1002
- * @internal
1003
- */
1004
- export declare function hexToRgb(hex: string): RGB
1151
+ export {hexToRgb}
1005
1152
 
1006
1153
  /**
1154
+ * Represent hotkeys (a keyboard combination) with semantic `<kbd>` elements.
1155
+ *
1007
1156
  * @public
1008
1157
  */
1009
1158
  export declare const Hotkeys: ForwardRefExoticComponent<
1010
- HotkeysProps & Omit<HTMLProps<HTMLElement>, 'ref' | 'size' | 'as'> & RefAttributes<HTMLElement>
1159
+ HotkeysProps & Omit<HTMLProps<HTMLElement>, 'size' | 'ref' | 'as'> & RefAttributes<HTMLElement>
1011
1160
  >
1012
1161
 
1013
1162
  /**
@@ -1021,21 +1170,13 @@ export declare interface HotkeysProps {
1021
1170
  keys?: string[]
1022
1171
  }
1023
1172
 
1024
- /**
1025
- * @internal
1026
- */
1027
- export declare interface HSL {
1028
- h: number
1029
- s: number
1030
- l: number
1031
- }
1173
+ export {HSL}
1032
1174
 
1033
- /**
1034
- * @internal
1035
- */
1036
- export declare function hslToRgb(hsl: HSL): RGB
1175
+ export {hslToRgb}
1037
1176
 
1038
1177
  /**
1178
+ * The `Inline` component is a layout utility for aligning and spacing items horizontally.
1179
+ *
1039
1180
  * @public
1040
1181
  */
1041
1182
  export declare const Inline: ForwardRefExoticComponent<
@@ -1046,9 +1187,34 @@ export declare const Inline: ForwardRefExoticComponent<
1046
1187
  * @public
1047
1188
  */
1048
1189
  export declare interface InlineProps extends Omit<BoxProps, 'display'> {
1190
+ /** The spacing between children. */
1049
1191
  space?: number | number[]
1050
1192
  }
1051
1193
 
1194
+ export {isColorBlendModeValue}
1195
+
1196
+ export {isColorButtonMode}
1197
+
1198
+ export {isColorConfigBaseKey}
1199
+
1200
+ export {isColorConfigBaseTone}
1201
+
1202
+ export {isColorConfigBlendKey}
1203
+
1204
+ export {isColorConfigStateKey}
1205
+
1206
+ export {isColorConfigStateTone}
1207
+
1208
+ export {isColorHueKey}
1209
+
1210
+ export {isColorOpacityValue}
1211
+
1212
+ export {isColorTintKey}
1213
+
1214
+ export {isColorTokenValue}
1215
+
1216
+ export {isColorValue}
1217
+
1052
1218
  /**
1053
1219
  * @internal
1054
1220
  */
@@ -1095,10 +1261,12 @@ export declare function isHTMLTextAreaElement(element: unknown): element is HTML
1095
1261
  export declare function _isScrollable(el: Node): boolean
1096
1262
 
1097
1263
  /**
1264
+ * Used to define some text as keyboard input.
1265
+ *
1098
1266
  * @public
1099
1267
  */
1100
1268
  export declare const KBD: ForwardRefExoticComponent<
1101
- KBDProps & Omit<HTMLProps<HTMLElement>, 'ref' | 'size' | 'as'> & RefAttributes<HTMLDivElement>
1269
+ KBDProps & Omit<HTMLProps<HTMLElement>, 'size' | 'ref' | 'as'> & RefAttributes<HTMLDivElement>
1102
1270
  >
1103
1271
 
1104
1272
  /**
@@ -1112,6 +1280,8 @@ export declare interface KBDProps {
1112
1280
  }
1113
1281
 
1114
1282
  /**
1283
+ * Typographic labels.
1284
+ *
1115
1285
  * @public
1116
1286
  */
1117
1287
  export declare const Label: ForwardRefExoticComponent<
@@ -1143,7 +1313,7 @@ export declare interface LabelProps {
1143
1313
  */
1144
1314
  export declare const LabelSkeleton: ForwardRefExoticComponent<
1145
1315
  Omit<
1146
- LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'size' | 'height' | 'as'>,
1316
+ LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'children' | 'as' | 'height'>,
1147
1317
  'ref'
1148
1318
  > &
1149
1319
  RefAttributes<HTMLDivElement>
@@ -1215,14 +1385,18 @@ export declare interface _MediaStore {
1215
1385
  }
1216
1386
 
1217
1387
  /**
1388
+ * The `Menu` component is a building block for application menus.
1389
+ *
1218
1390
  * @public
1219
1391
  */
1220
1392
  export declare const Menu: ForwardRefExoticComponent<
1221
- Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'tabIndex' | 'role' | 'as'>, 'ref'> &
1393
+ Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, 'tabIndex' | 'role' | 'as' | 'height'>, 'ref'> &
1222
1394
  RefAttributes<HTMLDivElement>
1223
1395
  >
1224
1396
 
1225
1397
  /**
1398
+ * The `MenuButton` component follows the WAI-ARIA specification for menu buttons.
1399
+ *
1226
1400
  * @public
1227
1401
  */
1228
1402
  export declare const MenuButton: ForwardRefExoticComponent<
@@ -1326,9 +1500,9 @@ export declare const MenuDivider: IStyledComponent<
1326
1500
  security?: string | undefined
1327
1501
  unselectable?: 'on' | 'off' | undefined
1328
1502
  inputMode?:
1503
+ | 'none'
1329
1504
  | 'text'
1330
1505
  | 'search'
1331
- | 'none'
1332
1506
  | 'tel'
1333
1507
  | 'url'
1334
1508
  | 'email'
@@ -1338,7 +1512,7 @@ export declare const MenuDivider: IStyledComponent<
1338
1512
  is?: string | undefined
1339
1513
  'aria-activedescendant'?: string | undefined
1340
1514
  'aria-atomic'?: (boolean | 'false' | 'true') | undefined
1341
- 'aria-autocomplete'?: 'both' | 'none' | 'inline' | 'list' | undefined
1515
+ 'aria-autocomplete'?: 'none' | 'both' | 'inline' | 'list' | undefined
1342
1516
  'aria-braillelabel'?: string | undefined
1343
1517
  'aria-brailleroledescription'?: string | undefined
1344
1518
  'aria-busy'?: (boolean | 'false' | 'true') | undefined
@@ -1362,17 +1536,17 @@ export declare const MenuDivider: IStyledComponent<
1362
1536
  'aria-description'?: string | undefined
1363
1537
  'aria-details'?: string | undefined
1364
1538
  'aria-disabled'?: (boolean | 'false' | 'true') | undefined
1365
- 'aria-dropeffect'?: 'link' | 'none' | 'copy' | 'move' | 'execute' | 'popup' | undefined
1539
+ 'aria-dropeffect'?: 'none' | 'link' | 'copy' | 'move' | 'execute' | 'popup' | undefined
1366
1540
  'aria-errormessage'?: string | undefined
1367
1541
  'aria-expanded'?: (boolean | 'false' | 'true') | undefined
1368
1542
  'aria-flowto'?: string | undefined
1369
1543
  'aria-grabbed'?: (boolean | 'false' | 'true') | undefined
1370
1544
  'aria-haspopup'?:
1371
1545
  | boolean
1546
+ | 'grid'
1372
1547
  | 'dialog'
1373
1548
  | 'menu'
1374
1549
  | 'listbox'
1375
- | 'grid'
1376
1550
  | 'false'
1377
1551
  | 'true'
1378
1552
  | 'tree'
@@ -1617,7 +1791,7 @@ export declare interface MenuGroupProps {
1617
1791
  */
1618
1792
  export declare const MenuItem: ForwardRefExoticComponent<
1619
1793
  MenuItemProps &
1620
- Omit<HTMLProps<HTMLDivElement>, 'selected' | 'ref' | 'height' | 'tabIndex' | 'as'> &
1794
+ Omit<HTMLProps<HTMLDivElement>, 'ref' | 'tabIndex' | 'as' | 'height' | 'selected'> &
1621
1795
  RefAttributes<HTMLDivElement>
1622
1796
  >
1623
1797
 
@@ -1659,22 +1833,15 @@ export declare interface MenuProps extends ResponsivePaddingProps {
1659
1833
  space?: number | number[]
1660
1834
  }
1661
1835
 
1662
- /**
1663
- * Apply the \`multiply\` blend mode
1664
- * Source: https://www.w3.org/TR/compositing-1/#blendingmultiply
1665
- * @internal
1666
- */
1667
- export declare function multiply(b: RGB, s: RGB): RGB
1836
+ export {multiply}
1668
1837
 
1669
- /**
1670
- * @internal
1671
- */
1672
- export declare function parseColor(color: unknown): RGB
1838
+ export {parseColor}
1673
1839
 
1674
- /**
1675
- * @public
1676
- */
1677
- export declare type PartialThemeColorBuilderOpts = Partial<ThemeColorBuilderOpts>
1840
+ export {parseTokenKey}
1841
+
1842
+ export {parseTokenValue}
1843
+
1844
+ export {PartialThemeColorBuilderOpts}
1678
1845
 
1679
1846
  /**
1680
1847
  * Placement of floating UI elements.
@@ -1695,11 +1862,15 @@ export declare type Placement =
1695
1862
  | 'left-start'
1696
1863
  | 'left-end'
1697
1864
 
1698
- /** @public */
1865
+ /**
1866
+ * The `Popover` component is used to display some content on top of another.
1867
+ *
1868
+ * @public
1869
+ */
1699
1870
  export declare const Popover: MemoExoticComponent<
1700
1871
  ForwardRefExoticComponent<
1701
1872
  Omit<
1702
- PopoverProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'content' | 'width' | 'as'>,
1873
+ PopoverProps & Omit<HTMLProps<HTMLDivElement>, 'content' | 'children' | 'width' | 'as'>,
1703
1874
  'ref'
1704
1875
  > &
1705
1876
  RefAttributes<HTMLDivElement>
@@ -1732,6 +1903,7 @@ export declare interface PopoverProps
1732
1903
  overflow?: BoxOverflow
1733
1904
  padding?: number | number[]
1734
1905
  placement?: Placement
1906
+ /** Whether or not to render the popover in a portal element. */
1735
1907
  portal?: boolean | string
1736
1908
  preventOverflow?: boolean
1737
1909
  referenceBoundary?: HTMLElement | null
@@ -1799,6 +1971,8 @@ export declare interface PortalProviderProps {
1799
1971
  }
1800
1972
 
1801
1973
  /**
1974
+ * The `Radio` component allows the user to select one option from a set.
1975
+ *
1802
1976
  * @public
1803
1977
  */
1804
1978
  export declare const Radio: ForwardRefExoticComponent<
@@ -1887,6 +2061,7 @@ export declare function responsiveCodeFontStyle(
1887
2061
  * @public
1888
2062
  */
1889
2063
  export declare interface ResponsiveFlexItemProps {
2064
+ /** Sets the flex CSS attribute. The property is responsive. */
1890
2065
  flex?: FlexValue | FlexValue[]
1891
2066
  }
1892
2067
 
@@ -1964,8 +2139,11 @@ export declare function responsiveLabelFont(
1964
2139
  * @public
1965
2140
  */
1966
2141
  export declare interface ResponsiveMarginProps {
2142
+ /** Applies margins to all sides. The property is responsive. */
1967
2143
  margin?: number | number[]
2144
+ /** Applies margins to the left and right sides. The property is responsive. */
1968
2145
  marginX?: number | number[]
2146
+ /** Applies margins to the top and bottom sides. The property is responsive. */
1969
2147
  marginY?: number | number[]
1970
2148
  marginTop?: number | number[]
1971
2149
  marginRight?: number | number[]
@@ -2037,45 +2215,25 @@ export declare interface ResponsiveWidthStyleProps {
2037
2215
  $width: (number | 'auto')[]
2038
2216
  }
2039
2217
 
2040
- /**
2041
- * @internal
2042
- */
2043
- export declare interface RGB {
2044
- r: number
2045
- g: number
2046
- b: number
2047
- }
2218
+ export {RGB}
2048
2219
 
2049
- /**
2050
- * @internal
2051
- */
2052
- export declare function rgba(color: unknown, a: number): string
2220
+ export {RGBA}
2053
2221
 
2054
- /**
2055
- * @internal
2056
- */
2057
- export declare function rgbToHex({r, g, b}: RGB): string
2222
+ export {rgba}
2058
2223
 
2059
- /**
2060
- * @internal
2061
- * @see https://css-tricks.com/converting-color-spaces-in-javascript/
2062
- */
2063
- export declare function rgbToHsl({r, g, b}: RGB): HSL
2224
+ export {rgbaToRGBA}
2064
2225
 
2065
- /**
2066
- * @public
2067
- */
2068
- export declare type RootTheme = BaseTheme<Styles>
2226
+ export {rgbToHex}
2227
+
2228
+ export {rgbToHsl}
2229
+
2230
+ export {RootTheme}
2069
2231
 
2070
- /**
2071
- * Apply the \`screen\` blend mode
2072
- * Source: https://www.w3.org/TR/compositing-1/#blendingscreen
2073
- * @internal
2074
- */
2075
- declare function screen_2(b: RGB, s: RGB): RGB
2076
2232
  export {screen_2 as screen}
2077
2233
 
2078
2234
  /**
2235
+ * The `Select` component provides control of options.
2236
+ *
2079
2237
  * @public
2080
2238
  */
2081
2239
  export declare const Select: ForwardRefExoticComponent<
@@ -2086,7 +2244,7 @@ export declare const Select: ForwardRefExoticComponent<
2086
2244
  /**
2087
2245
  * @public
2088
2246
  */
2089
- export declare type SelectableTone = 'default' | 'primary' | 'positive' | 'caution' | 'critical'
2247
+ export declare type SelectableTone = ThemeColorStateToneKey
2090
2248
 
2091
2249
  /**
2092
2250
  * @public
@@ -2117,6 +2275,8 @@ export declare interface SkeletonProps extends ResponsiveRadiusProps, Omit<BoxPr
2117
2275
  }
2118
2276
 
2119
2277
  /**
2278
+ * Indicate that something is loading for an indeterminate amount of time.
2279
+ *
2120
2280
  * @public
2121
2281
  */
2122
2282
  export declare const Spinner: ForwardRefExoticComponent<
@@ -2149,6 +2309,8 @@ export declare interface SrOnlyProps {
2149
2309
  }
2150
2310
 
2151
2311
  /**
2312
+ * The `Stack` component is used to place elements on top of each other.
2313
+ *
2152
2314
  * @public
2153
2315
  */
2154
2316
  export declare const Stack: ForwardRefExoticComponent<
@@ -2163,25 +2325,13 @@ export declare interface StackProps extends BoxProps {
2163
2325
  space?: number | number[]
2164
2326
  }
2165
2327
 
2166
- /**
2167
- * @public
2168
- */
2169
- export declare const studioTheme: RootTheme
2170
-
2171
- /**
2172
- * TODO: Rename to `ThemeStyles`
2173
- * @public
2174
- */
2175
- export declare interface Styles {
2176
- button?: {
2177
- root?: CSSObject
2178
- }
2179
- card?: {
2180
- root?: CSSObject
2181
- }
2182
- }
2328
+ export {studioTheme}
2183
2329
 
2184
2330
  /**
2331
+ * The `Switch` component allows the user to toggle a setting on and off.
2332
+ *
2333
+ * Extends all properties of an `<input type="checkbox" />` element, except type.
2334
+ *
2185
2335
  * @public
2186
2336
  */
2187
2337
  export declare const Switch: ForwardRefExoticComponent<
@@ -2201,7 +2351,11 @@ export declare interface SwitchProps {
2201
2351
  */
2202
2352
  export declare const Tab: ForwardRefExoticComponent<
2203
2353
  Omit<
2204
- TabProps & Omit<HTMLProps<HTMLButtonElement>, 'label' | 'id' | 'aria-controls' | 'as' | 'type'>,
2354
+ TabProps &
2355
+ Omit<
2356
+ HTMLProps<HTMLButtonElement>,
2357
+ 'label' | 'width' | 'id' | 'aria-controls' | 'as' | 'type'
2358
+ >,
2205
2359
  'ref'
2206
2360
  > &
2207
2361
  RefAttributes<HTMLButtonElement>
@@ -2211,7 +2365,7 @@ export declare const Tab: ForwardRefExoticComponent<
2211
2365
  * @public
2212
2366
  */
2213
2367
  export declare const TabList: ForwardRefExoticComponent<
2214
- Omit<TabListProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
2368
+ Omit<TabListProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height'>, 'ref'> &
2215
2369
  RefAttributes<unknown>
2216
2370
  >
2217
2371
 
@@ -2263,6 +2417,8 @@ export declare interface TabProps {
2263
2417
  }
2264
2418
 
2265
2419
  /**
2420
+ * The `Text` component is an agile, themed typographic element.
2421
+ *
2266
2422
  * @public
2267
2423
  */
2268
2424
  declare const Text_2: ForwardRefExoticComponent<
@@ -2277,6 +2433,9 @@ export {Text_2 as Text}
2277
2433
  export declare type TextAlign = 'left' | 'right' | 'center' | 'justify' | 'initial'
2278
2434
 
2279
2435
  /**
2436
+ * A multiline text input.
2437
+ *
2438
+
2280
2439
  * @public
2281
2440
  */
2282
2441
  export declare const TextArea: ForwardRefExoticComponent<
@@ -2296,6 +2455,8 @@ export declare interface TextAreaProps extends ResponsiveRadiusProps {
2296
2455
  }
2297
2456
 
2298
2457
  /**
2458
+ * Single line text input.
2459
+ *
2299
2460
  * @public
2300
2461
  */
2301
2462
  export declare const TextInput: ForwardRefExoticComponent<
@@ -2313,6 +2474,10 @@ export declare type TextInputClearButtonProps = Omit<ButtonProps, 'as'> &
2313
2474
  * @public
2314
2475
  */
2315
2476
  export declare interface TextInputProps {
2477
+ /**
2478
+ * @beta
2479
+ */
2480
+ __unstable_disableFocusRing?: boolean
2316
2481
  border?: boolean
2317
2482
  /**
2318
2483
  * @beta
@@ -2359,6 +2524,7 @@ export declare interface TextProps {
2359
2524
  accent?: boolean
2360
2525
  align?: TextAlign | TextAlign[]
2361
2526
  as?: React.ElementType | keyof JSX.IntrinsicElements
2527
+ /** When `true` the text color will be muted. */
2362
2528
  muted?: boolean
2363
2529
  size?: number | number[]
2364
2530
  /**
@@ -2376,7 +2542,7 @@ export declare interface TextProps {
2376
2542
  */
2377
2543
  export declare const TextSkeleton: ForwardRefExoticComponent<
2378
2544
  Omit<
2379
- TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'size' | 'height' | 'as'>,
2545
+ TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'children' | 'as' | 'height'>,
2380
2546
  'ref'
2381
2547
  > &
2382
2548
  RefAttributes<HTMLDivElement>
@@ -2390,269 +2556,61 @@ export declare interface TextSkeletonProps extends SkeletonProps {
2390
2556
  size?: number | number[]
2391
2557
  }
2392
2558
 
2393
- /**
2394
- * @public
2395
- */
2396
- export declare interface Theme {
2397
- sanity: Omit<RootTheme, 'color'> & {
2398
- color: ThemeColor
2399
- }
2400
- }
2559
+ export {Theme}
2401
2560
 
2402
- /**
2403
- * @public
2404
- */
2405
- export declare interface ThemeAvatar {
2406
- sizes: {
2407
- distance: number
2408
- size: number
2409
- }[]
2410
- focusRing: FocusRing
2411
- }
2561
+ export {THEME_COLOR_BASE_TONES}
2412
2562
 
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
- }
2563
+ export {THEME_COLOR_BLEND_MODES}
2428
2564
 
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
- }
2565
+ export {THEME_COLOR_BUTTON_MODES}
2448
2566
 
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
- }
2567
+ export {THEME_COLOR_STATE_TONES}
2502
2568
 
2503
- /**
2504
- * @public
2505
- */
2506
- export declare interface ThemeColorButton {
2507
- default: ThemeColorButtonTones
2508
- ghost: ThemeColorButtonTones
2509
- bleed: ThemeColorButtonTones
2510
- }
2569
+ export {THEME_COLOR_STATES}
2511
2570
 
2512
- /**
2513
- * @public
2514
- */
2515
- export declare type ThemeColorButtonModeKey = 'default' | 'ghost' | 'bleed'
2571
+ export {ThemeAvatar}
2516
2572
 
2517
- /**
2518
- * @deprecated Use `ThemeColorGenericState` instead.
2519
- * @public
2520
- */
2521
- export declare type ThemeColorButtonState = ThemeColorGenericState
2573
+ export {ThemeColor}
2522
2574
 
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
- }
2575
+ export {ThemeColorBase}
2533
2576
 
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
- }
2577
+ export {ThemeColorBaseTokens}
2545
2578
 
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
- }
2579
+ export {ThemeColorBaseToneKey}
2556
2580
 
2557
- /**
2558
- * @deprecated Use `ThemeColorGenericState` instead.
2559
- * @public
2560
- */
2561
- export declare type ThemeColorCardState = ThemeColorGenericState
2581
+ export {ThemeColorBlendModeKey}
2562
2582
 
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
- }
2583
+ export {ThemeColorBuilderOpts}
2593
2584
 
2594
- /**
2595
- * @public
2596
- */
2597
- export declare interface ThemeColorInput {
2598
- default: ThemeColorInputStates
2599
- invalid: ThemeColorInputStates
2600
- }
2585
+ export {ThemeColorButton}
2601
2586
 
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
- }
2587
+ export {ThemeColorButtonModeKey}
2612
2588
 
2613
- /**
2614
- * @public
2615
- */
2616
- export declare interface ThemeColorInputStates {
2617
- enabled: ThemeColorInputState
2618
- disabled: ThemeColorInputState
2619
- hovered: ThemeColorInputState
2620
- readOnly: ThemeColorInputState
2621
- }
2589
+ export {ThemeColorButtonState}
2622
2590
 
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
- }
2591
+ export {ThemeColorButtonStates}
2634
2592
 
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
- }
2593
+ export {ThemeColorButtonTokens}
2645
2594
 
2646
- /**
2647
- * @public
2648
- */
2649
- export declare type ThemeColorName =
2650
- | 'default'
2651
- | 'transparent'
2652
- | 'primary'
2653
- | 'positive'
2654
- | 'caution'
2655
- | 'critical'
2595
+ export {ThemeColorButtonTones}
2596
+
2597
+ export {ThemeColorCard}
2598
+
2599
+ export {ThemeColorCardState}
2600
+
2601
+ export {ThemeColorGenericState}
2602
+
2603
+ export {ThemeColorInput}
2604
+
2605
+ export {ThemeColorInputState}
2606
+
2607
+ export {ThemeColorInputStates}
2608
+
2609
+ export {ThemeColorMuted}
2610
+
2611
+ export {ThemeColorMutedTone}
2612
+
2613
+ export {ThemeColorName}
2656
2614
 
2657
2615
  /**
2658
2616
  * @public
@@ -2665,166 +2623,46 @@ export declare function ThemeColorProvider(props: ThemeColorProviderProps): Reac
2665
2623
  export declare interface ThemeColorProviderProps {
2666
2624
  children?: React.ReactNode
2667
2625
  scheme?: ThemeColorSchemeKey
2668
- tone?: ThemeColorName
2626
+ tone?: ThemeColorBaseToneKey
2669
2627
  }
2670
2628
 
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
- }
2629
+ export {ThemeColorScheme}
2682
2630
 
2683
- /**
2684
- * @public
2685
- */
2686
- export declare type ThemeColorSchemeKey = 'dark' | 'light'
2631
+ export {ThemeColorSchemeKey}
2687
2632
 
2688
- /**
2689
- * @public
2690
- */
2691
- export declare interface ThemeColorSchemes {
2692
- dark: ThemeColorScheme
2693
- light: ThemeColorScheme
2694
- }
2633
+ export {ThemeColorSchemes}
2695
2634
 
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
- }
2635
+ export {ThemeColorSelectable}
2706
2636
 
2707
- /**
2708
- * @deprecated Use `ThemeColorGenericState` instead.
2709
- * @public
2710
- */
2711
- export declare type ThemeColorSelectableState = ThemeColorGenericState
2637
+ export {ThemeColorSelectableState}
2712
2638
 
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
- }
2639
+ export {ThemeColorSelectableStates}
2723
2640
 
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
- }
2641
+ export {ThemeColorSolid}
2735
2642
 
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
- }
2643
+ export {ThemeColorSolidTone}
2746
2644
 
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
2760
- }
2645
+ export {ThemeColorSpot}
2761
2646
 
2762
- /**
2763
- * @public
2764
- */
2765
- export declare type ThemeColorSpotKey =
2766
- | 'gray'
2767
- | 'blue'
2768
- | 'purple'
2769
- | 'magenta'
2770
- | 'red'
2771
- | 'orange'
2772
- | 'yellow'
2773
- | 'green'
2774
- | 'cyan'
2647
+ export {ThemeColorSpotKey}
2775
2648
 
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
- }
2649
+ export {ThemeColorStateKey}
2817
2650
 
2818
- /**
2819
- * @public
2820
- */
2821
- export declare type ThemeColorToneKey =
2822
- | 'default'
2823
- | 'transparent'
2824
- | 'primary'
2825
- | 'positive'
2826
- | 'caution'
2827
- | 'critical'
2651
+ export {ThemeColorStatesTokens}
2652
+
2653
+ export {ThemeColorStateTokens}
2654
+
2655
+ export {ThemeColorStateToneKey}
2656
+
2657
+ export {ThemeColorSyntax}
2658
+
2659
+ export {ThemeColorTokens}
2660
+
2661
+ export {ThemeColorTokenValue}
2662
+
2663
+ export {ThemeColorToneKey}
2664
+
2665
+ export {ThemeConfig}
2828
2666
 
2829
2667
  /**
2830
2668
  * @public
@@ -2833,109 +2671,26 @@ export declare interface ThemeContextValue {
2833
2671
  version: 0.0
2834
2672
  scheme: ThemeColorSchemeKey
2835
2673
  theme: RootTheme
2836
- tone: ThemeColorName
2674
+ tone: ThemeColorBaseToneKey
2837
2675
  }
2838
2676
 
2839
- /**
2840
- * @public
2841
- */
2842
- export declare interface ThemeFont {
2843
- family: string
2844
- weights: ThemeFontWeight
2845
- sizes: ThemeFontSize[]
2846
- /** @deprecated No longer supported. */
2847
- horizontalOffset?: number
2848
- }
2677
+ export {ThemeFocusRing}
2849
2678
 
2850
- /**
2851
- * @public
2852
- */
2853
- export declare type ThemeFontKey = 'code' | 'heading' | 'label' | 'text'
2679
+ export {ThemeFont}
2854
2680
 
2855
- /**
2856
- * @public
2857
- */
2858
- export declare interface ThemeFonts {
2859
- code: ThemeFont
2860
- heading: ThemeFont
2861
- label: ThemeFont
2862
- text: ThemeFont
2863
- }
2681
+ export {ThemeFontKey}
2864
2682
 
2865
- /**
2866
- * @public
2867
- */
2868
- export declare interface ThemeFontSize {
2869
- ascenderHeight: number
2870
- descenderHeight: number
2871
- fontSize: number
2872
- iconSize: number
2873
- letterSpacing: number
2874
- lineHeight: number
2875
- }
2683
+ export {ThemeFonts}
2876
2684
 
2877
- /**
2878
- * @public
2879
- */
2880
- export declare interface ThemeFontWeight {
2881
- regular: number
2882
- medium: number
2883
- semibold: number
2884
- bold: number
2885
- }
2685
+ export {ThemeFontSize}
2886
2686
 
2887
- /**
2888
- * @public
2889
- */
2890
- export declare type ThemeFontWeightKey = 'regular' | 'medium' | 'semibold' | 'bold'
2687
+ export {ThemeFontWeight}
2891
2688
 
2892
- /**
2893
- * @public
2894
- */
2895
- export declare interface ThemeInput {
2896
- checkbox: {
2897
- size: number
2898
- focusRing: FocusRing
2899
- }
2900
- radio: {
2901
- size: number
2902
- markSize: number
2903
- focusRing: FocusRing
2904
- }
2905
- switch: {
2906
- width: number
2907
- height: number
2908
- padding: number
2909
- transitionDurationMs: number
2910
- transitionTimingFunction: string
2911
- focusRing: FocusRing
2912
- }
2913
- border: {
2914
- width: number
2915
- }
2916
- select: {
2917
- focusRing: FocusRing
2918
- }
2919
- text: {
2920
- focusRing: FocusRing
2921
- }
2922
- }
2689
+ export {ThemeFontWeightKey}
2923
2690
 
2924
- /**
2925
- * THIS API MAY BE UNSTABLE. DO NOT USE IN PRODUCTION.
2926
- * @beta
2927
- */
2928
- export declare interface ThemeLayer {
2929
- dialog: {
2930
- zOffset: number
2931
- }
2932
- popover: {
2933
- zOffset: number
2934
- }
2935
- tooltip: {
2936
- zOffset: number
2937
- }
2938
- }
2691
+ export {ThemeInput}
2692
+
2693
+ export {ThemeLayer}
2939
2694
 
2940
2695
  /**
2941
2696
  * @internal
@@ -2956,19 +2711,18 @@ export declare interface ThemeProviderProps {
2956
2711
  children?: React.ReactNode
2957
2712
  scheme?: ThemeColorSchemeKey
2958
2713
  theme?: RootTheme
2959
- tone?: ThemeColorName
2714
+ tone?: ThemeColorBaseToneKey
2960
2715
  }
2961
2716
 
2962
- /**
2963
- * @public
2964
- */
2965
- export declare interface ThemeShadow {
2966
- umbra: BoxShadow
2967
- penumbra: BoxShadow
2968
- ambient: BoxShadow
2969
- }
2717
+ export {ThemeShadow}
2718
+
2719
+ export {ThemeStyles}
2970
2720
 
2971
2721
  /**
2722
+ * The `Toast` component gives feedback to users when an action has taken place.
2723
+ *
2724
+ * Toasts can be closed with a close button, or auto-dismiss after a certain timeout.
2725
+ *
2972
2726
  * @public
2973
2727
  */
2974
2728
  export declare function Toast(
@@ -3003,6 +2757,7 @@ export declare interface ToastProps {
3003
2757
  closable?: boolean
3004
2758
  description?: React.ReactNode
3005
2759
  onClose?: () => void
2760
+ radius?: number | number[]
3006
2761
  title?: React.ReactNode
3007
2762
  status?: 'error' | 'warning' | 'success' | 'info'
3008
2763
  }
@@ -3023,11 +2778,27 @@ export declare interface ToastProviderProps {
3023
2778
  zOffset?: number | number[]
3024
2779
  }
3025
2780
 
2781
+ export {TokenBaseKeyNode}
2782
+
2783
+ export {TokenBlendModeValueNode}
2784
+
2785
+ export {TokenButtonKeyNode}
2786
+
2787
+ export {TokenColorValueNode}
2788
+
2789
+ export {TokenHueValueNode}
2790
+
2791
+ export {TokenKeyNode}
2792
+
2793
+ export {TokenValueNode}
2794
+
3026
2795
  /**
2796
+ * Tooltips display information when hovering, focusing or tapping.
2797
+ *
3027
2798
  * @public
3028
2799
  */
3029
2800
  export declare const Tooltip: ForwardRefExoticComponent<
3030
- Omit<TooltipProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'content' | 'as'>, 'ref'> &
2801
+ Omit<TooltipProps & Omit<HTMLProps<HTMLDivElement>, 'content' | 'children' | 'as'>, 'ref'> &
3031
2802
  RefAttributes<HTMLDivElement>
3032
2803
  >
3033
2804
 
@@ -3063,11 +2834,13 @@ export declare function TooltipDelayGroupProvider(
3063
2834
  export declare interface TooltipDelayGroupProviderProps {
3064
2835
  children?: React.ReactNode
3065
2836
  /**
3066
- * @public Handles the delays to open or close a tooltip inside a group
2837
+ * Handles the delays to open or close a tooltip inside a group
3067
2838
  *
3068
2839
  * If only a `number` is passed, it will be used for both opening and closing.
3069
2840
  *
3070
2841
  * If an object `{open: number; close:number}` is passed, it can be used to set different delays for each action.
2842
+ *
2843
+ * @public
3071
2844
  */
3072
2845
  delay: Delay
3073
2846
  }
@@ -3078,6 +2851,7 @@ export declare interface TooltipDelayGroupProviderProps {
3078
2851
  export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
3079
2852
  /** @deprecated Use `fallbackPlacements` instead. */
3080
2853
  allowedAutoPlacements?: Placement[]
2854
+ arrow?: boolean
3081
2855
  boundaryElement?: HTMLElement | null
3082
2856
  children?: React.ReactElement
3083
2857
  content?: React.ReactNode
@@ -3085,17 +2859,29 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
3085
2859
  fallbackPlacements?: Placement[]
3086
2860
  padding?: number | number[]
3087
2861
  placement?: Placement
2862
+ /** Whether or not to render the tooltip in a portal element. */
3088
2863
  portal?: boolean | string
2864
+ radius?: number | number[]
3089
2865
  scheme?: ThemeColorSchemeKey
3090
2866
  shadow?: number | number[]
3091
2867
  /**
3092
- * @public Adds a delay to open or close the tooltip. Defaults to 0.
2868
+ * Adds a delay to open or close the tooltip.
3093
2869
  *
3094
2870
  * If only a `number` is passed, it will be used for both opening and closing.
3095
2871
  *
3096
2872
  * If an object `{open: number; close:number}` is passed, it can be used to set different delays for each action.
2873
+ *
2874
+ * @public
2875
+ * @defaultValue 0
3097
2876
  */
3098
2877
  delay?: Delay
2878
+ /**
2879
+ * Whether the tooltip should animate in and out.
2880
+ *
2881
+ * @beta
2882
+ * @defaultValue false
2883
+ */
2884
+ animate?: boolean
3099
2885
  }
3100
2886
 
3101
2887
  /**
@@ -3105,7 +2891,7 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
3105
2891
  export declare const Tree: MemoExoticComponent<
3106
2892
  ForwardRefExoticComponent<
3107
2893
  TreeProps &
3108
- Omit<HTMLProps<HTMLDivElement>, 'ref' | 'wrap' | 'height' | 'role' | 'as' | 'align'> &
2894
+ Omit<HTMLProps<HTMLDivElement>, 'wrap' | 'ref' | 'role' | 'as' | 'height' | 'align'> &
3109
2895
  RefAttributes<HTMLDivElement>
3110
2896
  >
3111
2897
  >