@sanity/ui 2.0.0-alpha.26 → 2.0.0-alpha.28

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 (653) hide show
  1. package/dist/index.cjs.mjs +37 -38
  2. package/dist/index.d.ts +302 -1001
  3. package/dist/index.esm.js +570 -3598
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.js +897 -3746
  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 +38 -15
  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}/dialog/__workshop__/activate.tsx +0 -1
  24. package/src/{components → core/components}/dialog/__workshop__/layering.tsx +5 -1
  25. package/src/{components → core/components}/dialog/__workshop__/panes.tsx +2 -7
  26. package/src/{components → core/components}/dialog/dialog.tsx +7 -5
  27. package/src/{components → core/components}/dialog/styles.ts +1 -1
  28. package/src/{components → core/components}/menu/__workshop__/asComponent.tsx +4 -4
  29. package/src/{components → core/components}/menu/__workshop__/customMenuItem.tsx +9 -3
  30. package/src/{components → core/components}/menu/__workshop__/menuButton.tsx +1 -1
  31. package/src/{components → core/components}/menu/menu.test.tsx +1 -1
  32. package/src/{components → core/components}/menu/menuButton.tsx +1 -1
  33. package/src/{components → core/components}/skeleton/textSkeleton.tsx +1 -1
  34. package/src/{components → core/components}/toast/toast.test.tsx +1 -1
  35. package/src/{components → core/components}/toast/toast.tsx +1 -1
  36. package/src/{components → core/components}/tree/__workshop__/tabFromElement.tsx +1 -1
  37. package/src/{components → core/components}/tree/style.ts +6 -6
  38. package/src/{components → core/components}/tree/treeItem.tsx +3 -3
  39. package/src/{constants.ts → core/constants.ts} +1 -0
  40. package/src/{hooks → core/hooks}/useElementRect/__workshop__/example.tsx +3 -1
  41. package/src/{hooks → core/hooks}/useMediaIndex/__workshop__/test.tsx +1 -1
  42. package/src/{hooks → core/hooks}/useMediaIndex/useMediaIndex.test.tsx +2 -1
  43. package/src/{index.ts → core/index.ts} +2 -0
  44. package/src/{lib → core/lib}/isRecord.ts +1 -1
  45. package/src/{primitives → core/primitives}/avatar/avatar.tsx +16 -11
  46. package/src/{primitives → core/primitives}/avatar/styles.ts +8 -7
  47. package/src/{primitives → core/primitives}/avatar/types.ts +2 -1
  48. package/src/{primitives → core/primitives}/badge/badge.test.tsx +1 -1
  49. package/src/{primitives → core/primitives}/badge/badge.tsx +3 -2
  50. package/src/core/primitives/badge/styles.ts +20 -0
  51. package/src/{primitives → core/primitives}/badge/types.ts +1 -2
  52. package/src/{primitives → core/primitives}/button/__workshop__/stacked.tsx +1 -1
  53. package/src/{primitives → core/primitives}/button/button.test.tsx +1 -1
  54. package/src/{primitives → core/primitives}/button/button.tsx +1 -1
  55. package/src/{primitives → core/primitives}/button/styles.ts +19 -9
  56. package/src/{primitives → core/primitives}/card/__workshop__/asButton.tsx +6 -6
  57. package/src/{primitives → core/primitives}/card/__workshop__/asComponent.tsx +1 -1
  58. package/src/{primitives → core/primitives}/card/__workshop__/selected.tsx +2 -12
  59. package/src/{primitives → core/primitives}/card/card.tsx +2 -1
  60. package/src/{primitives → core/primitives}/card/types.ts +1 -1
  61. package/src/{primitives → core/primitives}/checkbox/__workshop__/example.tsx +1 -1
  62. package/src/{primitives → core/primitives}/checkbox/__workshop__/props.tsx +1 -1
  63. package/src/{primitives → core/primitives}/checkbox/__workshop__/readOnly.tsx +1 -1
  64. package/src/{primitives → core/primitives}/checkbox/styles.ts +4 -3
  65. package/src/{primitives → core/primitives}/container/styles.ts +1 -1
  66. package/src/{primitives → core/primitives}/heading/heading.tsx +1 -1
  67. package/src/{primitives → core/primitives}/inline/styles.ts +1 -1
  68. package/src/{primitives → core/primitives}/label/label.tsx +1 -1
  69. package/src/{primitives → core/primitives}/popover/__workshop__/RecursiveStory.tsx +2 -9
  70. package/src/{primitives → core/primitives}/popover/__workshop__/TestStory.tsx +6 -3
  71. package/src/{primitives → core/primitives}/popover/constants.ts +3 -2
  72. package/src/{primitives → core/primitives}/popover/helpers.ts +1 -1
  73. package/src/{primitives → core/primitives}/popover/popover.tsx +6 -7
  74. package/src/{primitives → core/primitives}/popover/popoverCard.tsx +22 -16
  75. package/src/{primitives → core/primitives}/radio/styles.ts +1 -1
  76. package/src/{primitives → core/primitives}/select/styles.ts +2 -2
  77. package/src/{primitives → core/primitives}/stack/styles.ts +1 -1
  78. package/src/{primitives → core/primitives}/switch/__workshop__/example.tsx +1 -1
  79. package/src/{primitives → core/primitives}/switch/styles.ts +2 -2
  80. package/src/{primitives → core/primitives}/text/__workshop__/colored.tsx +2 -1
  81. package/src/{primitives → core/primitives}/text/text.tsx +1 -1
  82. package/src/{primitives → core/primitives}/textArea/__workshop__/plain.tsx +1 -1
  83. package/src/{primitives → core/primitives}/textArea/textArea.tsx +2 -1
  84. package/src/{primitives → core/primitives}/textInput/__workshop__/plain.tsx +1 -1
  85. package/src/{primitives → core/primitives}/textInput/__workshop__/states.tsx +3 -3
  86. package/src/{primitives → core/primitives}/textInput/textInput.tsx +2 -1
  87. package/src/{primitives → core/primitives}/tooltip/constants.ts +5 -0
  88. package/src/{primitives → core/primitives}/tooltip/tooltip.test.tsx +3 -3
  89. package/src/{primitives → core/primitives}/tooltip/tooltip.tsx +25 -18
  90. package/src/{styles → core/styles}/border/borderStyle.ts +16 -13
  91. package/src/{styles → core/styles}/box/boxStyle.ts +1 -1
  92. package/src/{styles → core/styles}/colorVars/colorVarsStyle.ts +3 -3
  93. package/src/{styles → core/styles}/flex/flexItemStyle.ts +1 -1
  94. package/src/{styles → core/styles}/flex/flexStyle.ts +1 -1
  95. package/src/{styles → core/styles}/focusRing/index.ts +2 -2
  96. package/src/{styles → core/styles}/font/codeFontStyle.ts +1 -1
  97. package/src/{styles → core/styles}/font/headingFontStyle.ts +1 -1
  98. package/src/{styles → core/styles}/font/labelFontStyle.ts +1 -1
  99. package/src/{styles → core/styles}/font/responsiveFont.ts +2 -2
  100. package/src/{styles → core/styles}/font/textAlignStyle.ts +1 -1
  101. package/src/{styles → core/styles}/font/textFontStyle.ts +1 -1
  102. package/src/{styles → core/styles}/font/types.ts +1 -1
  103. package/src/{styles → core/styles}/grid/gridItemStyle.ts +1 -1
  104. package/src/{styles → core/styles}/grid/gridStyle.ts +1 -1
  105. package/src/{styles → core/styles}/helpers.ts +2 -2
  106. package/src/{styles → core/styles}/input/responsiveInputPaddingStyle.ts +1 -1
  107. package/src/{styles → core/styles}/input/textInputStyle.ts +2 -2
  108. package/src/{styles → core/styles}/margin/marginStyle.ts +1 -1
  109. package/src/{styles → core/styles}/margin/marginsStyle.test.ts +1 -1
  110. package/src/{styles → core/styles}/padding/paddingStyle.test.ts +1 -1
  111. package/src/{styles → core/styles}/padding/paddingStyle.ts +1 -1
  112. package/src/{styles → core/styles}/radius/radiusStyle.ts +1 -1
  113. package/src/{styles → core/styles}/shadow/shadowStyle.ts +9 -7
  114. package/src/{styles → core/styles}/types.ts +1 -1
  115. package/src/core/theme/__workshop__/build/Root.tsx +346 -0
  116. package/src/core/theme/__workshop__/build/helpers.ts +46 -0
  117. package/src/core/theme/__workshop__/build/story.tsx +457 -0
  118. package/src/{theme → core/theme}/__workshop__/canvas.tsx +87 -113
  119. package/src/{theme → core/theme}/__workshop__/color.tsx +3 -6
  120. package/src/{theme → core/theme}/__workshop__/index.ts +5 -0
  121. package/src/{theme → core/theme}/defaults.ts +1 -1
  122. package/src/core/theme/index.ts +5 -0
  123. package/src/{theme → core/theme}/theme.test.tsx +2 -2
  124. package/src/{theme → core/theme}/themeColorProvider.tsx +2 -2
  125. package/src/{theme → core/theme}/themeProvider.tsx +3 -3
  126. package/src/core/theme/types.ts +11 -0
  127. package/src/{theme → core/theme}/useRootTheme.ts +1 -2
  128. package/src/{theme → core/theme}/useTheme.ts +1 -2
  129. package/src/core/types/badge.ts +12 -0
  130. package/src/core/types/button.ts +22 -0
  131. package/src/core/types/card.ts +6 -0
  132. package/src/{types → core/types}/index.ts +0 -1
  133. package/src/core/types/selectable.ts +6 -0
  134. package/src/core/utils/arrow/arrow.tsx +121 -0
  135. package/src/core/utils/arrow/cmds.ts +91 -0
  136. package/src/core/utils/arrow/index.ts +1 -0
  137. package/src/{utils → core/utils}/boundaryElement/__workshop__/plain.tsx +2 -6
  138. package/src/{utils → core/utils}/boundaryElement/boundaryElement.test.tsx +1 -1
  139. package/src/{utils → core/utils}/index.ts +1 -0
  140. package/src/{utils → core/utils}/layer/__workshop__/_debug.tsx +1 -1
  141. package/src/{utils → core/utils}/layer/layer.test.tsx +1 -1
  142. package/src/{utils → core/utils}/portal/__workshop__/named.tsx +3 -3
  143. package/src/{utils → core/utils}/portal/portal.test.tsx +1 -1
  144. package/src/theme/{lib/theme/color/selectable → build/_deprecated/color/_selectable}/createSelectableTones.ts +7 -4
  145. package/src/theme/{lib/theme/color/solid → build/_deprecated/color/_solid}/createSolidTones.ts +1 -3
  146. package/src/theme/{lib/theme → build/_deprecated}/color/button/createButtonModes.ts +6 -4
  147. package/src/theme/{lib/theme → build/_deprecated}/color/button/createButtonTones.ts +7 -4
  148. package/src/theme/{lib/theme → build/_deprecated}/color/card/createCardStates.ts +7 -5
  149. package/src/theme/{lib/theme → build/_deprecated}/color/color.test.ts +1 -1
  150. package/src/theme/{lib/theme → build/_deprecated}/color/defaults.ts +7 -7
  151. package/src/theme/{lib/theme → build/_deprecated}/color/factory.ts +25 -21
  152. package/src/theme/build/_deprecated/color/index.ts +1 -0
  153. package/src/theme/{lib/theme → build/_deprecated}/color/input/createInputModes.ts +1 -4
  154. package/src/theme/{lib/theme → build/_deprecated}/color/muted/createMuted.ts +2 -4
  155. package/src/theme/{lib/theme → build/_deprecated}/color/spot/createSpot.ts +1 -2
  156. package/src/theme/{_internal/build/colorTheme → build}/buildColorTheme.test.ts +52 -53
  157. package/src/theme/build/buildColorTheme.ts +537 -0
  158. package/src/theme/{_internal/build → build}/buildTheme.test.ts +19 -12
  159. package/src/theme/build/buildTheme.ts +28 -0
  160. package/src/theme/build/colorToken.ts +37 -0
  161. package/src/theme/build/defaults/colorPalette.ts +5 -0
  162. package/src/theme/build/defaults/colorTokens.ts +499 -0
  163. package/src/theme/build/defaults/config.ts +81 -0
  164. package/src/theme/build/defaults/fonts.ts +219 -0
  165. package/src/theme/build/index.ts +3 -0
  166. package/src/theme/{lib → build/lib}/color-fns/blend/index.ts +1 -0
  167. package/src/theme/build/lib/color-fns/blend/mix.ts +21 -0
  168. package/src/theme/{lib → build/lib}/color-fns/blend/multiply.ts +3 -7
  169. package/src/theme/{lib → build/lib}/color-fns/blend/screen.ts +3 -7
  170. package/src/theme/{lib → build/lib}/color-fns/color-fns.test.ts +10 -7
  171. package/src/theme/build/lib/color-fns/contrastRatio.ts +30 -0
  172. package/src/theme/{lib → build/lib}/color-fns/convert.ts +10 -1
  173. package/src/theme/{lib → build/lib}/color-fns/index.ts +2 -1
  174. package/src/theme/{lib/color-fns/helpers → build/lib/color-fns}/rgba.ts +1 -1
  175. package/src/theme/build/lib/utils.ts +19 -0
  176. package/src/theme/build/merge.ts +23 -0
  177. package/src/theme/build/mixThemeColor.test.ts +21 -0
  178. package/src/theme/build/mixThemeColor.ts +53 -0
  179. package/src/theme/build/renderColorTheme.ts +544 -0
  180. package/src/theme/build/renderColorValue.ts +70 -0
  181. package/src/theme/build/resolveColorTokens.ts +352 -0
  182. package/src/theme/{_internal/config → config}/helpers.ts +2 -2
  183. package/src/theme/{_internal/config → config}/index.ts +2 -1
  184. package/src/theme/config/system.ts +83 -0
  185. package/src/theme/config/tokens/color/types.ts +112 -0
  186. package/src/theme/{_internal/config/token → config/tokens}/index.ts +2 -0
  187. package/src/theme/{_internal/config/token → config/tokens}/parseTokenKey.test.ts +0 -8
  188. package/src/theme/{_internal/config/token → config/tokens}/parseTokenKey.ts +2 -24
  189. package/src/theme/{_internal/config/token → config/tokens}/parseTokenValue.ts +5 -26
  190. package/src/theme/config/tokens/types.ts +44 -0
  191. package/src/theme/config/types.ts +51 -0
  192. package/src/theme/index.ts +4 -9
  193. package/src/theme/system/_system.ts +95 -0
  194. package/src/theme/system/avatar.ts +14 -0
  195. package/src/theme/system/color/_constants.ts +38 -0
  196. package/src/theme/{lib/theme/color/muted/types.ts → system/color/_deprecated/muted.ts} +3 -1
  197. package/src/theme/{lib/theme/color/solid/types.ts → system/color/_deprecated/solid.ts} +3 -1
  198. package/src/theme/system/color/_deprecated/spot.ts +13 -0
  199. package/src/theme/{lib/theme/color/_generic/types.ts → system/color/_generic.ts} +5 -1
  200. package/src/theme/system/color/_helpers.ts +23 -0
  201. package/src/theme/system/color/_system.ts +100 -0
  202. package/src/theme/system/color/avatar.ts +13 -0
  203. package/src/theme/system/color/badge.ts +9 -0
  204. package/src/theme/{lib/theme/color/button/types.ts → system/color/button.ts} +6 -11
  205. package/src/theme/system/color/card.ts +18 -0
  206. package/src/theme/system/color/index.ts +20 -0
  207. package/src/theme/{lib/theme/color/input/types.ts → system/color/input.ts} +3 -0
  208. package/src/theme/system/color/kbd.ts +8 -0
  209. package/src/theme/{lib/theme/color/selectable/types.ts → system/color/selectable.ts} +1 -1
  210. package/src/theme/{lib/theme → system}/index.ts +2 -1
  211. package/src/theme/{lib/theme → system}/input.ts +6 -6
  212. package/src/theme/system/shadow.ts +24 -0
  213. package/src/theme/{studioTheme/theme.ts → themes/studio/config.ts} +12 -25
  214. package/src/theme/{studioTheme → themes/studio}/fonts.ts +50 -50
  215. package/src/theme/themes/studio/index.ts +1 -0
  216. package/src/theme/themes/studio/studioTheme.test.ts +27 -0
  217. package/src/theme/themes/studio/studioTheme.ts +8 -0
  218. package/src/primitives/badge/styles.ts +0 -22
  219. package/src/primitives/popover/popoverArrow.tsx +0 -76
  220. package/src/primitives/tooltip/tooltipArrow.tsx +0 -89
  221. package/src/theme/_internal/__workshop__/build/story.tsx +0 -288
  222. package/src/theme/_internal/__workshop__/build/theme.ts +0 -3
  223. package/src/theme/_internal/__workshop__/index.ts +0 -14
  224. package/src/theme/_internal/build/buildTheme.ts +0 -16
  225. package/src/theme/_internal/build/colorTheme/buildColorTheme.ts +0 -164
  226. package/src/theme/_internal/build/colorTheme/renderColorTheme.ts +0 -242
  227. package/src/theme/_internal/build/colorTheme/resolveColorTokens.ts +0 -121
  228. package/src/theme/_internal/build/defaults/colorPalette.ts +0 -8
  229. package/src/theme/_internal/build/defaults/colorTokens.ts +0 -147
  230. package/src/theme/_internal/build/helpers.ts +0 -65
  231. package/src/theme/_internal/build/index.ts +0 -1
  232. package/src/theme/_internal/config/types.ts +0 -137
  233. package/src/theme/_internal/constants.ts +0 -48
  234. package/src/theme/_internal/helpers.ts +0 -19
  235. package/src/theme/_internal/index.ts +0 -5
  236. package/src/theme/_internal/types.ts +0 -91
  237. package/src/theme/lib/color-fns/helpers/index.ts +0 -1
  238. package/src/theme/lib/theme/avatar.ts +0 -14
  239. package/src/theme/lib/theme/color/_legacy/createColorTheme.ts +0 -7
  240. package/src/theme/lib/theme/color/_legacy/index.ts +0 -1
  241. package/src/theme/lib/theme/color/_legacy/legacyColor.ts +0 -3997
  242. package/src/theme/lib/theme/color/base/index.ts +0 -1
  243. package/src/theme/lib/theme/color/button/index.ts +0 -1
  244. package/src/theme/lib/theme/color/card/index.ts +0 -1
  245. package/src/theme/lib/theme/color/card/types.ts +0 -18
  246. package/src/theme/lib/theme/color/index.ts +0 -14
  247. package/src/theme/lib/theme/color/input/index.ts +0 -1
  248. package/src/theme/lib/theme/color/muted/index.ts +0 -1
  249. package/src/theme/lib/theme/color/selectable/index.ts +0 -1
  250. package/src/theme/lib/theme/color/solid/index.ts +0 -1
  251. package/src/theme/lib/theme/color/spot/index.ts +0 -1
  252. package/src/theme/lib/theme/color/spot/types.ts +0 -28
  253. package/src/theme/lib/theme/color/syntax/index.ts +0 -1
  254. package/src/theme/lib/theme/color/types.ts +0 -72
  255. package/src/theme/lib/theme/shadow.ts +0 -20
  256. package/src/theme/lib/theme/theme.ts +0 -43
  257. package/src/theme/studioTheme/color.ts +0 -666
  258. package/src/theme/studioTheme/helpers.ts +0 -31
  259. package/src/theme/studioTheme/index.ts +0 -1
  260. package/src/theme/studioTheme/tints.ts +0 -312
  261. package/src/theme/types.ts +0 -47
  262. package/src/types/badge.ts +0 -9
  263. package/src/types/button.ts +0 -19
  264. package/src/types/card.ts +0 -6
  265. package/src/types/selectable.ts +0 -4
  266. package/src/types/styled.ts +0 -9
  267. /package/src/{components → core/components}/autocomplete/__fixtures__/countries.ts +0 -0
  268. /package/src/{components → core/components}/autocomplete/__mocks__/apiStore.ts +0 -0
  269. /package/src/{components → core/components}/autocomplete/__workshop__/.eslintrc +0 -0
  270. /package/src/{components → core/components}/autocomplete/__workshop__/fullscreen.tsx +0 -0
  271. /package/src/{components → core/components}/autocomplete/__workshop__/index.ts +0 -0
  272. /package/src/{components → core/components}/autocomplete/__workshop__/types.ts +0 -0
  273. /package/src/{components → core/components}/autocomplete/autocomplete.styles.tsx +0 -0
  274. /package/src/{components → core/components}/autocomplete/autocomplete.tsx +0 -0
  275. /package/src/{components → core/components}/autocomplete/autocompleteOption.tsx +0 -0
  276. /package/src/{components → core/components}/autocomplete/autocompleteReducer.ts +0 -0
  277. /package/src/{components → core/components}/autocomplete/constants.ts +0 -0
  278. /package/src/{components → core/components}/autocomplete/index.ts +0 -0
  279. /package/src/{components → core/components}/autocomplete/types.ts +0 -0
  280. /package/src/{components → core/components}/breadcrumbs/__workshop__/.eslintrc +0 -0
  281. /package/src/{components → core/components}/breadcrumbs/__workshop__/example.tsx +0 -0
  282. /package/src/{components → core/components}/breadcrumbs/__workshop__/index.ts +0 -0
  283. /package/src/{components → core/components}/breadcrumbs/breadcrumbs.styles.ts +0 -0
  284. /package/src/{components → core/components}/breadcrumbs/breadcrumbs.tsx +0 -0
  285. /package/src/{components → core/components}/breadcrumbs/index.ts +0 -0
  286. /package/src/{components → core/components}/dialog/__workshop__/.eslintrc +0 -0
  287. /package/src/{components → core/components}/dialog/__workshop__/autoFocus.tsx +0 -0
  288. /package/src/{components → core/components}/dialog/__workshop__/index.ts +0 -0
  289. /package/src/{components → core/components}/dialog/__workshop__/nested.tsx +0 -0
  290. /package/src/{components → core/components}/dialog/__workshop__/onScroll.tsx +0 -0
  291. /package/src/{components → core/components}/dialog/__workshop__/position.tsx +0 -0
  292. /package/src/{components → core/components}/dialog/__workshop__/props.tsx +0 -0
  293. /package/src/{components → core/components}/dialog/__workshop__/provider.tsx +0 -0
  294. /package/src/{components → core/components}/dialog/__workshop__/wrapped.tsx +0 -0
  295. /package/src/{components → core/components}/dialog/constants.ts +0 -0
  296. /package/src/{components → core/components}/dialog/dialogContext.ts +0 -0
  297. /package/src/{components → core/components}/dialog/dialogProvider.tsx +0 -0
  298. /package/src/{components → core/components}/dialog/index.ts +0 -0
  299. /package/src/{components → core/components}/dialog/useDialog.ts +0 -0
  300. /package/src/{components → core/components}/hotkeys/__workshop__/.eslintrc +0 -0
  301. /package/src/{components → core/components}/hotkeys/__workshop__/index.ts +0 -0
  302. /package/src/{components → core/components}/hotkeys/__workshop__/plain.tsx +0 -0
  303. /package/src/{components → core/components}/hotkeys/hotkeys.tsx +0 -0
  304. /package/src/{components → core/components}/hotkeys/index.ts +0 -0
  305. /package/src/{components → core/components}/index.ts +0 -0
  306. /package/src/{components → core/components}/menu/__workshop__/.eslintrc +0 -0
  307. /package/src/{components → core/components}/menu/__workshop__/closableMenuButton.tsx +0 -0
  308. /package/src/{components → core/components}/menu/__workshop__/constrainedInBoundary.tsx +0 -0
  309. /package/src/{components → core/components}/menu/__workshop__/disableFocusOnClose.tsx +0 -0
  310. /package/src/{components → core/components}/menu/__workshop__/groups.tsx +0 -0
  311. /package/src/{components → core/components}/menu/__workshop__/index.ts +0 -0
  312. /package/src/{components → core/components}/menu/__workshop__/menuGroupRight.tsx +0 -0
  313. /package/src/{components → core/components}/menu/__workshop__/nestedMenu.tsx +0 -0
  314. /package/src/{components → core/components}/menu/__workshop__/onCloseMenuButton.tsx +0 -0
  315. /package/src/{components → core/components}/menu/__workshop__/selectedItem.tsx +0 -0
  316. /package/src/{components → core/components}/menu/__workshop__/shouldFocus.tsx +0 -0
  317. /package/src/{components → core/components}/menu/__workshop__/tones.tsx +0 -0
  318. /package/src/{components → core/components}/menu/__workshop__/withoutArrow.tsx +0 -0
  319. /package/src/{components → core/components}/menu/helpers.ts +0 -0
  320. /package/src/{components → core/components}/menu/index.ts +0 -0
  321. /package/src/{components → core/components}/menu/menu.tsx +0 -0
  322. /package/src/{components → core/components}/menu/menuContext.ts +0 -0
  323. /package/src/{components → core/components}/menu/menuDivider.ts +0 -0
  324. /package/src/{components → core/components}/menu/menuGroup.tsx +0 -0
  325. /package/src/{components → core/components}/menu/menuItem.tsx +0 -0
  326. /package/src/{components → core/components}/menu/useMenu.ts +0 -0
  327. /package/src/{components → core/components}/menu/useMenuController.ts +0 -0
  328. /package/src/{components → core/components}/skeleton/__workshop__/.eslintrc +0 -0
  329. /package/src/{components → core/components}/skeleton/__workshop__/delay.tsx +0 -0
  330. /package/src/{components → core/components}/skeleton/__workshop__/index.ts +0 -0
  331. /package/src/{components → core/components}/skeleton/__workshop__/skeleton.tsx +0 -0
  332. /package/src/{components → core/components}/skeleton/index.ts +0 -0
  333. /package/src/{components → core/components}/skeleton/skeleton.tsx +0 -0
  334. /package/src/{components → core/components}/skeleton/styles.ts +0 -0
  335. /package/src/{components → core/components}/tab/__workshop__/.eslintrc +0 -0
  336. /package/src/{components → core/components}/tab/__workshop__/example.tsx +0 -0
  337. /package/src/{components → core/components}/tab/__workshop__/index.ts +0 -0
  338. /package/src/{components → core/components}/tab/index.ts +0 -0
  339. /package/src/{components → core/components}/tab/tab.tsx +0 -0
  340. /package/src/{components → core/components}/tab/tabList.tsx +0 -0
  341. /package/src/{components → core/components}/tab/tabPanel.tsx +0 -0
  342. /package/src/{components → core/components}/toast/__workshop__/.eslintrc +0 -0
  343. /package/src/{components → core/components}/toast/__workshop__/hook.tsx +0 -0
  344. /package/src/{components → core/components}/toast/__workshop__/index.ts +0 -0
  345. /package/src/{components → core/components}/toast/__workshop__/toast.tsx +0 -0
  346. /package/src/{components → core/components}/toast/index.ts +0 -0
  347. /package/src/{components → core/components}/toast/toastContext.ts +0 -0
  348. /package/src/{components → core/components}/toast/toastProvider.tsx +0 -0
  349. /package/src/{components → core/components}/toast/types.ts +0 -0
  350. /package/src/{components → core/components}/toast/useToast.ts +0 -0
  351. /package/src/{components → core/components}/tree/__workshop__/.eslintrc +0 -0
  352. /package/src/{components → core/components}/tree/__workshop__/basic.perf.ts +0 -0
  353. /package/src/{components → core/components}/tree/__workshop__/basic.tsx +0 -0
  354. /package/src/{components → core/components}/tree/__workshop__/index.ts +0 -0
  355. /package/src/{components → core/components}/tree/helpers.ts +0 -0
  356. /package/src/{components → core/components}/tree/index.ts +0 -0
  357. /package/src/{components → core/components}/tree/tree.tsx +0 -0
  358. /package/src/{components → core/components}/tree/treeContext.ts +0 -0
  359. /package/src/{components → core/components}/tree/treeGroup.tsx +0 -0
  360. /package/src/{components → core/components}/tree/types.ts +0 -0
  361. /package/src/{components → core/components}/tree/useTree.ts +0 -0
  362. /package/src/{global.ts → core/global.ts} +0 -0
  363. /package/src/{helpers → core/helpers}/animation.ts +0 -0
  364. /package/src/{helpers → core/helpers}/element.ts +0 -0
  365. /package/src/{helpers → core/helpers}/focus.ts +0 -0
  366. /package/src/{helpers → core/helpers}/index.ts +0 -0
  367. /package/src/{helpers → core/helpers}/scroll.ts +0 -0
  368. /package/src/{hooks → core/hooks}/_internal/index.ts +0 -0
  369. /package/src/{hooks → core/hooks}/_internal/useUnique.ts +0 -0
  370. /package/src/{hooks → core/hooks}/index.ts +0 -0
  371. /package/src/{hooks → core/hooks}/useArrayProp.ts +0 -0
  372. /package/src/{hooks → core/hooks}/useClickOutside.ts +0 -0
  373. /package/src/{hooks → core/hooks}/useCustomValidity.ts +0 -0
  374. /package/src/{hooks → core/hooks}/useDelayed.test.ts +0 -0
  375. /package/src/{hooks → core/hooks}/useDelayedState.ts +0 -0
  376. /package/src/{hooks → core/hooks}/useElementRect/__workshop__/.eslintrc +0 -0
  377. /package/src/{hooks → core/hooks}/useElementRect/__workshop__/index.ts +0 -0
  378. /package/src/{hooks → core/hooks}/useElementRect/index.ts +0 -0
  379. /package/src/{hooks → core/hooks}/useElementRect/useElementRect.ts +0 -0
  380. /package/src/{hooks → core/hooks}/useElementSize.ts +0 -0
  381. /package/src/{hooks → core/hooks}/useForwardedRef.ts +0 -0
  382. /package/src/{hooks → core/hooks}/useGlobalKeyDown.ts +0 -0
  383. /package/src/{hooks → core/hooks}/useIsomorphicEffect.ts +0 -0
  384. /package/src/{hooks → core/hooks}/useMediaIndex/__workshop__/.eslintrc +0 -0
  385. /package/src/{hooks → core/hooks}/useMediaIndex/__workshop__/index.ts +0 -0
  386. /package/src/{hooks → core/hooks}/useMediaIndex/index.ts +0 -0
  387. /package/src/{hooks → core/hooks}/useMediaIndex/useMediaIndex.ts +0 -0
  388. /package/src/{hooks → core/hooks}/useMounted.ts +0 -0
  389. /package/src/{hooks → core/hooks}/usePrefersDark.hydration.test.tsx +0 -0
  390. /package/src/{hooks → core/hooks}/usePrefersDark.test.tsx +0 -0
  391. /package/src/{hooks → core/hooks}/usePrefersDark.ts +0 -0
  392. /package/src/{hooks → core/hooks}/usePrefersReducedMotion.hydration.test.tsx +0 -0
  393. /package/src/{hooks → core/hooks}/usePrefersReducedMotion.test.tsx +0 -0
  394. /package/src/{hooks → core/hooks}/usePrefersReducedMotion.ts +0 -0
  395. /package/src/{lib → core/lib}/globalScope.ts +0 -0
  396. /package/src/{observers → core/observers}/elementSizeObserver.ts +0 -0
  397. /package/src/{observers → core/observers}/index.ts +0 -0
  398. /package/src/{observers → core/observers}/resizeObserver.ts +0 -0
  399. /package/src/{primitives → core/primitives}/_selectable/index.ts +0 -0
  400. /package/src/{primitives → core/primitives}/_selectable/selectable.tsx +0 -0
  401. /package/src/{primitives → core/primitives}/_selectable/style.ts +0 -0
  402. /package/src/{primitives → core/primitives}/avatar/__workshop__/.eslintrc +0 -0
  403. /package/src/{primitives → core/primitives}/avatar/__workshop__/asButton.tsx +0 -0
  404. /package/src/{primitives → core/primitives}/avatar/__workshop__/index.ts +0 -0
  405. /package/src/{primitives → core/primitives}/avatar/__workshop__/stack.tsx +0 -0
  406. /package/src/{primitives → core/primitives}/avatar/avatarCounter.tsx +0 -0
  407. /package/src/{primitives → core/primitives}/avatar/avatarStack.tsx +0 -0
  408. /package/src/{primitives → core/primitives}/avatar/index.ts +0 -0
  409. /package/src/{primitives → core/primitives}/badge/__workshop__/.eslintrc +0 -0
  410. /package/src/{primitives → core/primitives}/badge/__workshop__/index.ts +0 -0
  411. /package/src/{primitives → core/primitives}/badge/__workshop__/props.tsx +0 -0
  412. /package/src/{primitives → core/primitives}/badge/__workshop__/tones.tsx +0 -0
  413. /package/src/{primitives → core/primitives}/badge/index.ts +0 -0
  414. /package/src/{primitives → core/primitives}/box/__workshop__/.eslintrc +0 -0
  415. /package/src/{primitives → core/primitives}/box/__workshop__/index.ts +0 -0
  416. /package/src/{primitives → core/primitives}/box/__workshop__/props.tsx +0 -0
  417. /package/src/{primitives → core/primitives}/box/__workshop__/responsive.tsx +0 -0
  418. /package/src/{primitives → core/primitives}/box/box.tsx +0 -0
  419. /package/src/{primitives → core/primitives}/box/index.ts +0 -0
  420. /package/src/{primitives → core/primitives}/button/__workshop__/.eslintrc +0 -0
  421. /package/src/{primitives → core/primitives}/button/__workshop__/custom.tsx +0 -0
  422. /package/src/{primitives → core/primitives}/button/__workshop__/customIcons.tsx +0 -0
  423. /package/src/{primitives → core/primitives}/button/__workshop__/index.ts +0 -0
  424. /package/src/{primitives → core/primitives}/button/__workshop__/mixedChildren.tsx +0 -0
  425. /package/src/{primitives → core/primitives}/button/__workshop__/props.tsx +0 -0
  426. /package/src/{primitives → core/primitives}/button/__workshop__/sanityUploadButton.tsx +0 -0
  427. /package/src/{primitives → core/primitives}/button/__workshop__/styled1.tsx +0 -0
  428. /package/src/{primitives → core/primitives}/button/__workshop__/styled2.tsx +0 -0
  429. /package/src/{primitives → core/primitives}/button/__workshop__/uploadButton.tsx +0 -0
  430. /package/src/{primitives → core/primitives}/button/index.ts +0 -0
  431. /package/src/{primitives → core/primitives}/card/__workshop__/.eslintrc +0 -0
  432. /package/src/{primitives → core/primitives}/card/__workshop__/allTones.tsx +0 -0
  433. /package/src/{primitives → core/primitives}/card/__workshop__/checkered.tsx +0 -0
  434. /package/src/{primitives → core/primitives}/card/__workshop__/index.ts +0 -0
  435. /package/src/{primitives → core/primitives}/card/__workshop__/interactive.tsx +0 -0
  436. /package/src/{primitives → core/primitives}/card/__workshop__/listNavigation.tsx +0 -0
  437. /package/src/{primitives → core/primitives}/card/__workshop__/props.tsx +0 -0
  438. /package/src/{primitives → core/primitives}/card/__workshop__/styled.tsx +0 -0
  439. /package/src/{primitives → core/primitives}/card/index.ts +0 -0
  440. /package/src/{primitives → core/primitives}/card/styles.ts +0 -0
  441. /package/src/{primitives → core/primitives}/checkbox/__workshop__/.eslintrc +0 -0
  442. /package/src/{primitives → core/primitives}/checkbox/__workshop__/index.ts +0 -0
  443. /package/src/{primitives → core/primitives}/checkbox/__workshop__/tones.tsx +0 -0
  444. /package/src/{primitives → core/primitives}/checkbox/checkbox.tsx +0 -0
  445. /package/src/{primitives → core/primitives}/checkbox/index.ts +0 -0
  446. /package/src/{primitives → core/primitives}/code/__workshop__/.eslintrc +0 -0
  447. /package/src/{primitives → core/primitives}/code/__workshop__/index.ts +0 -0
  448. /package/src/{primitives → core/primitives}/code/__workshop__/opticalAlignment.tsx +0 -0
  449. /package/src/{primitives → core/primitives}/code/__workshop__/props.tsx +0 -0
  450. /package/src/{primitives → core/primitives}/code/code.tsx +0 -0
  451. /package/src/{primitives → core/primitives}/code/index.ts +0 -0
  452. /package/src/{primitives → core/primitives}/code/styles.ts +0 -0
  453. /package/src/{primitives → core/primitives}/container/__workshop__/.eslintrc +0 -0
  454. /package/src/{primitives → core/primitives}/container/__workshop__/example.tsx +0 -0
  455. /package/src/{primitives → core/primitives}/container/__workshop__/index.ts +0 -0
  456. /package/src/{primitives → core/primitives}/container/container.tsx +0 -0
  457. /package/src/{primitives → core/primitives}/container/index.ts +0 -0
  458. /package/src/{primitives → core/primitives}/container/types.ts +0 -0
  459. /package/src/{primitives → core/primitives}/flex/__workshop__/.eslintrc +0 -0
  460. /package/src/{primitives → core/primitives}/flex/__workshop__/example.tsx +0 -0
  461. /package/src/{primitives → core/primitives}/flex/__workshop__/gap.tsx +0 -0
  462. /package/src/{primitives → core/primitives}/flex/__workshop__/index.ts +0 -0
  463. /package/src/{primitives → core/primitives}/flex/flex.tsx +0 -0
  464. /package/src/{primitives → core/primitives}/flex/index.ts +0 -0
  465. /package/src/{primitives → core/primitives}/grid/__workshop__/.eslintrc +0 -0
  466. /package/src/{primitives → core/primitives}/grid/__workshop__/index.ts +0 -0
  467. /package/src/{primitives → core/primitives}/grid/__workshop__/responsive.tsx +0 -0
  468. /package/src/{primitives → core/primitives}/grid/grid.tsx +0 -0
  469. /package/src/{primitives → core/primitives}/grid/index.ts +0 -0
  470. /package/src/{primitives → core/primitives}/heading/__workshop__/.eslintrc +0 -0
  471. /package/src/{primitives → core/primitives}/heading/__workshop__/index.ts +0 -0
  472. /package/src/{primitives → core/primitives}/heading/__workshop__/opticalAlignment.tsx +0 -0
  473. /package/src/{primitives → core/primitives}/heading/__workshop__/plain.tsx +0 -0
  474. /package/src/{primitives → core/primitives}/heading/index.ts +0 -0
  475. /package/src/{primitives → core/primitives}/heading/styles.ts +0 -0
  476. /package/src/{primitives → core/primitives}/heading/types.ts +0 -0
  477. /package/src/{primitives → core/primitives}/helpers.ts +0 -0
  478. /package/src/{primitives → core/primitives}/index.ts +0 -0
  479. /package/src/{primitives → core/primitives}/inline/__workshop__/.eslintrc +0 -0
  480. /package/src/{primitives → core/primitives}/inline/__workshop__/index.ts +0 -0
  481. /package/src/{primitives → core/primitives}/inline/__workshop__/plain.tsx +0 -0
  482. /package/src/{primitives → core/primitives}/inline/index.ts +0 -0
  483. /package/src/{primitives → core/primitives}/inline/inline.tsx +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}/kbd/kbd.tsx +0 -0
  490. /package/src/{primitives → core/primitives}/label/__workshop__/.eslintrc +0 -0
  491. /package/src/{primitives → core/primitives}/label/__workshop__/index.ts +0 -0
  492. /package/src/{primitives → core/primitives}/label/__workshop__/opticalAlignment.tsx +0 -0
  493. /package/src/{primitives → core/primitives}/label/__workshop__/plain.tsx +0 -0
  494. /package/src/{primitives → core/primitives}/label/index.ts +0 -0
  495. /package/src/{primitives → core/primitives}/label/styles.ts +0 -0
  496. /package/src/{primitives → core/primitives}/popover/__workshop__/.eslintrc +0 -0
  497. /package/src/{primitives → core/primitives}/popover/__workshop__/AlignedStory.tsx +0 -0
  498. /package/src/{primitives → core/primitives}/popover/__workshop__/MarginsStory.tsx +0 -0
  499. /package/src/{primitives → core/primitives}/popover/__workshop__/MatchReferenceWidthStory.tsx +0 -0
  500. /package/src/{primitives → core/primitives}/popover/__workshop__/OpenOnMountStory.tsx +0 -0
  501. /package/src/{primitives → core/primitives}/popover/__workshop__/PlainStory.tsx +0 -0
  502. /package/src/{primitives → core/primitives}/popover/__workshop__/SidePanelStory.tsx +0 -0
  503. /package/src/{primitives → core/primitives}/popover/__workshop__/index.ts +0 -0
  504. /package/src/{primitives → core/primitives}/popover/floating-ui/size.ts +0 -0
  505. /package/src/{primitives → core/primitives}/popover/index.ts +0 -0
  506. /package/src/{primitives → core/primitives}/popover/types.ts +0 -0
  507. /package/src/{primitives → core/primitives}/radio/__workshop__/.eslintrc +0 -0
  508. /package/src/{primitives → core/primitives}/radio/__workshop__/example.tsx +0 -0
  509. /package/src/{primitives → core/primitives}/radio/__workshop__/index.ts +0 -0
  510. /package/src/{primitives → core/primitives}/radio/__workshop__/plain.tsx +0 -0
  511. /package/src/{primitives → core/primitives}/radio/index.ts +0 -0
  512. /package/src/{primitives → core/primitives}/radio/radio.tsx +0 -0
  513. /package/src/{primitives → core/primitives}/select/__workshop__/.eslintrc +0 -0
  514. /package/src/{primitives → core/primitives}/select/__workshop__/index.ts +0 -0
  515. /package/src/{primitives → core/primitives}/select/__workshop__/plain.tsx +0 -0
  516. /package/src/{primitives → core/primitives}/select/__workshop__/readOnly.tsx +0 -0
  517. /package/src/{primitives → core/primitives}/select/index.ts +0 -0
  518. /package/src/{primitives → core/primitives}/select/select.tsx +0 -0
  519. /package/src/{primitives → core/primitives}/spinner/__workshop__/.eslintrc +0 -0
  520. /package/src/{primitives → core/primitives}/spinner/__workshop__/Props.tsx +0 -0
  521. /package/src/{primitives → core/primitives}/spinner/__workshop__/index.ts +0 -0
  522. /package/src/{primitives → core/primitives}/spinner/index.ts +0 -0
  523. /package/src/{primitives → core/primitives}/spinner/spinner.tsx +0 -0
  524. /package/src/{primitives → core/primitives}/stack/__workshop__/.eslintrc +0 -0
  525. /package/src/{primitives → core/primitives}/stack/__workshop__/index.ts +0 -0
  526. /package/src/{primitives → core/primitives}/stack/__workshop__/plain.tsx +0 -0
  527. /package/src/{primitives → core/primitives}/stack/index.ts +0 -0
  528. /package/src/{primitives → core/primitives}/stack/stack.tsx +0 -0
  529. /package/src/{primitives → core/primitives}/switch/__workshop__/.eslintrc +0 -0
  530. /package/src/{primitives → core/primitives}/switch/__workshop__/index.ts +0 -0
  531. /package/src/{primitives → core/primitives}/switch/__workshop__/props.tsx +0 -0
  532. /package/src/{primitives → core/primitives}/switch/index.ts +0 -0
  533. /package/src/{primitives → core/primitives}/switch/switch.tsx +0 -0
  534. /package/src/{primitives → core/primitives}/text/__workshop__/.eslintrc +0 -0
  535. /package/src/{primitives → core/primitives}/text/__workshop__/example.tsx +0 -0
  536. /package/src/{primitives → core/primitives}/text/__workshop__/index.ts +0 -0
  537. /package/src/{primitives → core/primitives}/text/__workshop__/opticalAlignment.tsx +0 -0
  538. /package/src/{primitives → core/primitives}/text/index.ts +0 -0
  539. /package/src/{primitives → core/primitives}/text/styles.ts +0 -0
  540. /package/src/{primitives → core/primitives}/textArea/__workshop__/.eslintrc +0 -0
  541. /package/src/{primitives → core/primitives}/textArea/__workshop__/index.ts +0 -0
  542. /package/src/{primitives → core/primitives}/textArea/index.ts +0 -0
  543. /package/src/{primitives → core/primitives}/textInput/__workshop__/.eslintrc +0 -0
  544. /package/src/{primitives → core/primitives}/textInput/__workshop__/clearButton.tsx +0 -0
  545. /package/src/{primitives → core/primitives}/textInput/__workshop__/customValidity.tsx +0 -0
  546. /package/src/{primitives → core/primitives}/textInput/__workshop__/index.ts +0 -0
  547. /package/src/{primitives → core/primitives}/textInput/__workshop__/multipleTones.tsx +0 -0
  548. /package/src/{primitives → core/primitives}/textInput/__workshop__/readOnly.tsx +0 -0
  549. /package/src/{primitives → core/primitives}/textInput/__workshop__/tones.tsx +0 -0
  550. /package/src/{primitives → core/primitives}/textInput/__workshop__/typed.tsx +0 -0
  551. /package/src/{primitives → core/primitives}/textInput/index.ts +0 -0
  552. /package/src/{primitives → core/primitives}/tooltip/__workshop__/.eslintrc +0 -0
  553. /package/src/{primitives → core/primitives}/tooltip/__workshop__/customPortal.tsx +0 -0
  554. /package/src/{primitives → core/primitives}/tooltip/__workshop__/index.ts +0 -0
  555. /package/src/{primitives → core/primitives}/tooltip/__workshop__/overflowingBoundary.tsx +0 -0
  556. /package/src/{primitives → core/primitives}/tooltip/__workshop__/props.tsx +0 -0
  557. /package/src/{primitives → core/primitives}/tooltip/__workshop__/resizableBoundary.tsx +0 -0
  558. /package/src/{primitives → core/primitives}/tooltip/conditionalWrapper.tsx +0 -0
  559. /package/src/{primitives → core/primitives}/tooltip/index.ts +0 -0
  560. /package/src/{primitives → core/primitives}/tooltip/tooltipDelayGroup/index.ts +0 -0
  561. /package/src/{primitives → core/primitives}/tooltip/tooltipDelayGroup/tooltipDelayGroupContext.tsx +0 -0
  562. /package/src/{primitives → core/primitives}/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +0 -0
  563. /package/src/{primitives → core/primitives}/tooltip/tooltipDelayGroup/types.ts +0 -0
  564. /package/src/{primitives → core/primitives}/tooltip/tooltipDelayGroup/useTooltipDelayGroup.ts +0 -0
  565. /package/src/{primitives → core/primitives}/types.ts +0 -0
  566. /package/src/{styles → core/styles}/border/index.ts +0 -0
  567. /package/src/{styles → core/styles}/border/types.ts +0 -0
  568. /package/src/{styles → core/styles}/box/index.ts +0 -0
  569. /package/src/{styles → core/styles}/box/types.ts +0 -0
  570. /package/src/{styles → core/styles}/colorVars/index.ts +0 -0
  571. /package/src/{styles → core/styles}/flex/index.ts +0 -0
  572. /package/src/{styles → core/styles}/flex/types.ts +0 -0
  573. /package/src/{styles → core/styles}/font/index.ts +0 -0
  574. /package/src/{styles → core/styles}/grid/index.ts +0 -0
  575. /package/src/{styles → core/styles}/grid/types.ts +0 -0
  576. /package/src/{styles → core/styles}/index.ts +0 -0
  577. /package/src/{styles → core/styles}/input/index.ts +0 -0
  578. /package/src/{styles → core/styles}/internal.ts +0 -0
  579. /package/src/{styles → core/styles}/margin/index.ts +0 -0
  580. /package/src/{styles → core/styles}/margin/types.ts +0 -0
  581. /package/src/{styles → core/styles}/padding/index.ts +0 -0
  582. /package/src/{styles → core/styles}/padding/types.ts +0 -0
  583. /package/src/{styles → core/styles}/radius/index.ts +0 -0
  584. /package/src/{styles → core/styles}/radius/types.ts +0 -0
  585. /package/src/{styles → core/styles}/shadow/index.ts +0 -0
  586. /package/src/{styles → core/styles}/shadow/types.ts +0 -0
  587. /package/src/{theme → core/theme}/__workshop__/.eslintrc +0 -0
  588. /package/src/{theme → core/theme}/__workshop__/layer.tsx +0 -0
  589. /package/src/{theme → core/theme}/__workshop__/nestedProvider.tsx +0 -0
  590. /package/src/{theme → core/theme}/themeContext.ts +0 -0
  591. /package/src/{types → core/types}/avatar.ts +0 -0
  592. /package/src/{types → core/types}/box.ts +0 -0
  593. /package/src/{types → core/types}/dialog.ts +0 -0
  594. /package/src/{types → core/types}/flex.ts +0 -0
  595. /package/src/{types → core/types}/grid.ts +0 -0
  596. /package/src/{types → core/types}/gridItem.ts +0 -0
  597. /package/src/{types → core/types}/placement.ts +0 -0
  598. /package/src/{types → core/types}/popover.ts +0 -0
  599. /package/src/{types → core/types}/radius.ts +0 -0
  600. /package/src/{types → core/types}/text.ts +0 -0
  601. /package/src/{utils → core/utils}/boundaryElement/__workshop__/.eslintrc +0 -0
  602. /package/src/{utils → core/utils}/boundaryElement/__workshop__/index.ts +0 -0
  603. /package/src/{utils → core/utils}/boundaryElement/boundaryElementContext.ts +0 -0
  604. /package/src/{utils → core/utils}/boundaryElement/boundaryElementProvider.tsx +0 -0
  605. /package/src/{utils → core/utils}/boundaryElement/index.ts +0 -0
  606. /package/src/{utils → core/utils}/boundaryElement/types.ts +0 -0
  607. /package/src/{utils → core/utils}/boundaryElement/useBoundaryElement.ts +0 -0
  608. /package/src/{utils → core/utils}/elementQuery/__workshop__/.eslintrc +0 -0
  609. /package/src/{utils → core/utils}/elementQuery/__workshop__/customMedia.tsx +0 -0
  610. /package/src/{utils → core/utils}/elementQuery/__workshop__/index.ts +0 -0
  611. /package/src/{utils → core/utils}/elementQuery/elementQuery.tsx +0 -0
  612. /package/src/{utils → core/utils}/elementQuery/helpers.ts +0 -0
  613. /package/src/{utils → core/utils}/elementQuery/index.ts +0 -0
  614. /package/src/{utils → core/utils}/errorBoundary.tsx +0 -0
  615. /package/src/{utils → core/utils}/layer/__workshop__/.eslintrc +0 -0
  616. /package/src/{utils → core/utils}/layer/__workshop__/index.ts +0 -0
  617. /package/src/{utils → core/utils}/layer/__workshop__/multipleRoots.tsx +0 -0
  618. /package/src/{utils → core/utils}/layer/__workshop__/nested.tsx +0 -0
  619. /package/src/{utils → core/utils}/layer/__workshop__/responsiveZOffset.tsx +0 -0
  620. /package/src/{utils → core/utils}/layer/getLayerContext.test.ts +0 -0
  621. /package/src/{utils → core/utils}/layer/getLayerContext.ts +0 -0
  622. /package/src/{utils → core/utils}/layer/index.ts +0 -0
  623. /package/src/{utils → core/utils}/layer/layer.tsx +0 -0
  624. /package/src/{utils → core/utils}/layer/layerContext.ts +0 -0
  625. /package/src/{utils → core/utils}/layer/layerProvider.tsx +0 -0
  626. /package/src/{utils → core/utils}/layer/types.ts +0 -0
  627. /package/src/{utils → core/utils}/layer/useLayer.ts +0 -0
  628. /package/src/{utils → core/utils}/portal/__workshop__/.eslintrc +0 -0
  629. /package/src/{utils → core/utils}/portal/__workshop__/index.ts +0 -0
  630. /package/src/{utils → core/utils}/portal/index.ts +0 -0
  631. /package/src/{utils → core/utils}/portal/portal.ts +0 -0
  632. /package/src/{utils → core/utils}/portal/portalContext.ts +0 -0
  633. /package/src/{utils → core/utils}/portal/portalProvider.tsx +0 -0
  634. /package/src/{utils → core/utils}/portal/types.ts +0 -0
  635. /package/src/{utils → core/utils}/portal/usePortal.ts +0 -0
  636. /package/src/{utils → core/utils}/srOnly/index.ts +0 -0
  637. /package/src/{utils → core/utils}/srOnly/srOnly.tsx +0 -0
  638. /package/src/{utils → core/utils}/virtualList/__workshop__/.eslintrc +0 -0
  639. /package/src/{utils → core/utils}/virtualList/__workshop__/changingProps.tsx +0 -0
  640. /package/src/{utils → core/utils}/virtualList/__workshop__/elementScroll.tsx +0 -0
  641. /package/src/{utils → core/utils}/virtualList/__workshop__/index.ts +0 -0
  642. /package/src/{utils → core/utils}/virtualList/__workshop__/infiniteList.tsx +0 -0
  643. /package/src/{utils → core/utils}/virtualList/__workshop__/windowScrolll.tsx +0 -0
  644. /package/src/{utils → core/utils}/virtualList/index.ts +0 -0
  645. /package/src/{utils → core/utils}/virtualList/virtualList.tsx +0 -0
  646. /package/src/theme/{lib → build/lib}/color-fns/parse.ts +0 -0
  647. /package/src/theme/{lib → build/lib}/color-fns/types.ts +0 -0
  648. /package/src/theme/{lib/theme/color/_generic → config/tokens/color}/index.ts +0 -0
  649. /package/src/theme/{_internal/config/token → config/tokens}/parseTokenValue.test.ts +0 -0
  650. /package/src/theme/{lib/theme/color/base/types.ts → system/color/base.ts} +0 -0
  651. /package/src/theme/{lib/theme/color/syntax/types.ts → system/color/syntax.ts} +0 -0
  652. /package/src/theme/{lib/theme → system}/fonts.ts +0 -0
  653. /package/src/theme/{lib/theme → system}/layer.ts +0 -0
package/dist/index.d.ts CHANGED
@@ -2,25 +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'
6
- import {ColorTint} from '@sanity/color'
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'
7
22
  import {Component} from 'react'
8
23
  import {CompositionEventHandler} from 'react'
24
+ import {createColorTheme} from '@sanity/ui/theme'
25
+ import {CSSObject} from '@sanity/ui/theme'
9
26
  import {CSSProperties} from 'react'
10
27
  import {DragEventHandler} from 'react'
11
28
  import {ElementType} from 'react'
12
29
  import {FocusEventHandler} from 'react'
13
30
  import {FormEventHandler} from 'react'
14
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'
15
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'
16
48
  import {IStyledComponent} from 'styled-components'
17
49
  import {Key} from 'react'
18
50
  import {KeyboardEventHandler} from 'react'
19
51
  import {LegacyRef} from 'react'
20
52
  import {MemoExoticComponent} from 'react'
21
53
  import {MouseEventHandler} from 'react'
54
+ import {multiply} from '@sanity/ui/theme'
22
55
  import {MutableRefObject} from 'react'
23
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'
24
61
  import {PointerEventHandler} from 'react'
25
62
  import {PropsWithChildren} from 'react'
26
63
  import {ReactElement} from 'react'
@@ -29,7 +66,81 @@ import {ReactNode} from 'react'
29
66
  import {Ref} from 'react'
30
67
  import {RefAttributes} from 'react'
31
68
  import {RefCallback} from 'react'
32
- 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'
33
144
  import {TouchEventHandler} from 'react'
34
145
  import {TransitionEventHandler} from 'react'
35
146
  import {UIEventHandler} from 'react'
@@ -38,6 +149,19 @@ import {WheelEventHandler} from 'react'
38
149
  /** @beta */
39
150
  export declare type ArrayPropPrimitive = string | number | boolean | undefined | null
40
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
+
41
165
  /**
42
166
  * @internal
43
167
  */
@@ -53,7 +177,6 @@ export declare const Autocomplete: <Option extends BaseAutocompleteOption>(
53
177
  props: AutocompleteProps<Option> &
54
178
  Omit<
55
179
  HTMLProps<HTMLInputElement>,
56
- | 'type'
57
180
  | 'value'
58
181
  | 'ref'
59
182
  | 'id'
@@ -71,6 +194,7 @@ export declare const Autocomplete: <Option extends BaseAutocompleteOption>(
71
194
  | 'onSelect'
72
195
  | 'as'
73
196
  | 'autoComplete'
197
+ | 'type'
74
198
  > & {
75
199
  ref?: Ref<HTMLInputElement> | undefined
76
200
  },
@@ -264,7 +388,7 @@ export declare interface AvatarProps {
264
388
  animateArrowFrom?: AvatarPosition
265
389
  arrowPosition?: AvatarPosition
266
390
  as?: React.ElementType | keyof JSX.IntrinsicElements
267
- color?: ThemeColorSpotKey
391
+ color?: ThemeColorAvatarColorKey
268
392
  initials?: string
269
393
  onImageLoadError?: (event: Error) => void
270
394
  size?: AvatarSize | AvatarSize[]
@@ -281,7 +405,7 @@ export declare interface AvatarProps {
281
405
  * @internal
282
406
  */
283
407
  export declare interface AvatarRootStyleProps {
284
- $color: string
408
+ $color: ThemeColorSpotKey
285
409
  }
286
410
 
287
411
  /**
@@ -323,6 +447,7 @@ export declare const Badge: ForwardRefExoticComponent<
323
447
 
324
448
  /**
325
449
  * @public
450
+ * @deprecated No longer used
326
451
  */
327
452
  export declare type BadgeMode = 'default' | 'outline'
328
453
 
@@ -332,6 +457,7 @@ export declare type BadgeMode = 'default' | 'outline'
332
457
  export declare interface BadgeProps extends BoxProps, ResponsiveRadiusProps {
333
458
  as?: React.ElementType | keyof JSX.IntrinsicElements
334
459
  fontSize?: number | number[]
460
+ /** @deprecated No longer used. */
335
461
  mode?: BadgeMode
336
462
  tone?: BadgeTone
337
463
  }
@@ -339,7 +465,7 @@ export declare interface BadgeProps extends BoxProps, ResponsiveRadiusProps {
339
465
  /**
340
466
  * @public
341
467
  */
342
- export declare type BadgeTone = 'default' | 'primary' | 'positive' | 'caution' | 'critical'
468
+ export declare type BadgeTone = ThemeColorStateToneKey
343
469
 
344
470
  /**
345
471
  * @public
@@ -348,57 +474,7 @@ export declare interface BaseAutocompleteOption {
348
474
  value: string
349
475
  }
350
476
 
351
- export declare interface BaseColorTokens {
352
- _blend?: ColorBlendModeTokenValue
353
- _hue?: ColorHueValue
354
- bg?: ColorTokenValue
355
- fg?: ColorTokenValue
356
- border?: ColorTokenValue
357
- focusRing?: ColorTokenValue
358
- shadow?: {
359
- outline?: ColorTokenValue
360
- umbra?: ColorTokenValue
361
- penumbra?: ColorTokenValue
362
- ambient?: ColorTokenValue
363
- }
364
- skeleton?: {
365
- from?: ColorTokenValue
366
- to?: ColorTokenValue
367
- }
368
- }
369
-
370
- /**
371
- * @public
372
- */
373
- export declare interface BaseTheme<Styles extends {} = {}> {
374
- avatar: ThemeAvatar
375
- button: {
376
- textWeight: ThemeFontWeightKey
377
- focusRing: FocusRing
378
- }
379
- card: {
380
- focusRing: FocusRing
381
- }
382
- color: ThemeColorSchemes
383
- container: number[]
384
- /** @deprecated Use component-specific `focusRing` values instead */
385
- focusRing: {
386
- offset: number
387
- width: number
388
- }
389
- fonts: ThemeFonts
390
- input: ThemeInput
391
- /**
392
- * THIS API MAY BE UNSTABLE. DO NOT USE IN PRODUCTION.
393
- * @beta
394
- */
395
- layer?: ThemeLayer
396
- media: number[]
397
- radius: number[]
398
- shadows: Array<ThemeShadow | null>
399
- space: number[]
400
- styles?: Styles
401
- }
477
+ export {BaseTheme}
402
478
 
403
479
  /**
404
480
  * @public
@@ -430,7 +506,7 @@ export declare interface BoundaryElementProviderProps {
430
506
  * @public
431
507
  */
432
508
  export declare const Box: ForwardRefExoticComponent<
433
- Omit<BoxProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
509
+ Omit<BoxProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height'>, 'ref'> &
434
510
  RefAttributes<HTMLDivElement>
435
511
  >
436
512
 
@@ -462,11 +538,7 @@ export declare interface BoxProps
462
538
  forwardedAs?: React.ElementType | keyof JSX.IntrinsicElements
463
539
  }
464
540
 
465
- /**
466
- * TODO: Rename to `ThemeBoxShadow`
467
- * @public
468
- */
469
- export declare type BoxShadow = [number, number, number, number]
541
+ export {BoxShadow}
470
542
 
471
543
  /**
472
544
  * @public
@@ -478,7 +550,7 @@ export declare type BoxSizing = 'content' | 'border'
478
550
  */
479
551
  export declare const Breadcrumbs: ForwardRefExoticComponent<
480
552
  BreadcrumbsProps &
481
- Omit<HTMLProps<HTMLOListElement>, 'type' | 'ref' | 'as'> &
553
+ Omit<HTMLProps<HTMLOListElement>, 'ref' | 'as' | 'type'> &
482
554
  RefAttributes<HTMLOListElement>
483
555
  >
484
556
 
@@ -491,8 +563,7 @@ export declare interface BreadcrumbsProps {
491
563
  space?: number | number[]
492
564
  }
493
565
 
494
- /** @internal */
495
- export declare function buildTheme(config?: ThemeConfig): TMP_Theme
566
+ export {buildTheme}
496
567
 
497
568
  /**
498
569
  * @public
@@ -502,17 +573,10 @@ export declare const Button: ForwardRefExoticComponent<
502
573
  RefAttributes<HTMLButtonElement>
503
574
  >
504
575
 
505
- export declare interface ButtonColorTokens
506
- extends Partial<Record<ColorButtonMode, ButtonModeColorTokens>> {
507
- _hue?: ColorHueValue
508
- }
509
-
510
576
  /**
511
577
  * @public
512
578
  */
513
- export declare type ButtonMode = 'default' | 'ghost' | 'bleed'
514
-
515
- export declare type ButtonModeColorTokens = Partial<Record<'*' | ColorState, StateColorTokens>>
579
+ export declare type ButtonMode = ThemeColorButtonModeKey
516
580
 
517
581
  /**
518
582
  * @public
@@ -546,7 +610,7 @@ export declare type ButtonTextAlign = 'left' | 'right' | 'center'
546
610
  /**
547
611
  * @public
548
612
  */
549
- export declare type ButtonTone = 'default' | 'primary' | 'positive' | 'caution' | 'critical'
613
+ export declare type ButtonTone = ThemeColorStateToneKey
550
614
 
551
615
  /**
552
616
  * @public
@@ -560,7 +624,7 @@ export declare type ButtonWidth = 'fill'
560
624
  * @public
561
625
  */
562
626
  export declare const Card: ForwardRefExoticComponent<
563
- Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
627
+ Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height'>, 'ref'> &
564
628
  RefAttributes<HTMLDivElement>
565
629
  >
566
630
 
@@ -599,7 +663,7 @@ export declare interface CardStyleProps {
599
663
  /**
600
664
  * @public
601
665
  */
602
- export declare type CardTone = ThemeColorToneKey | 'inherit'
666
+ export declare type CardTone = ThemeColorBaseToneKey | 'inherit'
603
667
 
604
668
  /**
605
669
  * Checkboxes allow the user to select one or more items from a set.
@@ -607,7 +671,7 @@ export declare type CardTone = ThemeColorToneKey | 'inherit'
607
671
  * @public
608
672
  */
609
673
  export declare const Checkbox: ForwardRefExoticComponent<
610
- Omit<Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & CheckboxProps, 'ref'> &
674
+ Omit<Omit<HTMLProps<HTMLInputElement>, 'as' | 'type'> & CheckboxProps, 'ref'> &
611
675
  RefAttributes<HTMLInputElement>
612
676
  >
613
677
 
@@ -648,7 +712,7 @@ export declare interface CodeProps {
648
712
  */
649
713
  export declare const CodeSkeleton: ForwardRefExoticComponent<
650
714
  Omit<
651
- CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'size' | 'height' | 'as'>,
715
+ CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'children' | 'as' | 'height'>,
652
716
  'ref'
653
717
  > &
654
718
  RefAttributes<HTMLDivElement>
@@ -662,164 +726,31 @@ export declare interface CodeSkeletonProps extends SkeletonProps {
662
726
  size?: number | number[]
663
727
  }
664
728
 
665
- export declare const COLOR_BASE_TONES: readonly [
666
- 'transparent',
667
- 'default',
668
- 'primary',
669
- 'positive',
670
- 'caution',
671
- 'critical',
672
- ]
673
-
674
- export declare const COLOR_BLEND_MODES: readonly ['multiply', 'screen']
675
-
676
- export declare const COLOR_BUTTON_MODES: readonly ['default', 'ghost', 'bleed']
677
-
678
- export declare const COLOR_CONFIG_BASE_KEYS: readonly [
679
- '_hue',
680
- 'bg',
681
- 'fg',
682
- 'border',
683
- 'focusRing',
684
- 'muted/fg',
685
- 'link/fg',
686
- 'code/bg',
687
- 'code/fg',
688
- 'shadow/outline',
689
- 'shadow/umbra',
690
- 'shadow/penumbra',
691
- 'shadow/ambient',
692
- 'skeleton/from',
693
- 'skeleton/to',
694
- ]
695
-
696
- export declare const COLOR_CONFIG_BASE_TONES: readonly [
697
- '*',
698
- 'transparent',
699
- 'default',
700
- 'primary',
701
- 'positive',
702
- 'caution',
703
- 'critical',
704
- ]
705
-
706
- export declare const COLOR_CONFIG_BLEND_KEYS: readonly ['_blend']
707
-
708
- export declare const COLOR_CONFIG_STATE_KEYS: readonly [
709
- '_hue',
710
- 'bg',
711
- 'fg',
712
- 'border',
713
- 'focusRing',
714
- 'muted/fg',
715
- 'link/fg',
716
- 'code/bg',
717
- 'code/fg',
718
- 'skeleton/from',
719
- 'skeleton/to',
720
- ]
721
-
722
- export declare const COLOR_CONFIG_STATE_TONES: readonly [
723
- '*',
724
- 'default',
725
- 'primary',
726
- 'positive',
727
- 'caution',
728
- 'critical',
729
- ]
730
-
731
- export declare const COLOR_HUES: readonly [
732
- 'gray',
733
- 'cyan',
734
- 'blue',
735
- 'purple',
736
- 'magenta',
737
- 'red',
738
- 'orange',
739
- 'yellow',
740
- 'green',
741
- ]
742
-
743
- export declare const COLOR_STATE_TONES: readonly [
744
- 'default',
745
- 'primary',
746
- 'positive',
747
- 'caution',
748
- 'critical',
749
- ]
750
-
751
- export declare const COLOR_STATES: readonly [
752
- 'enabled',
753
- 'hovered',
754
- 'pressed',
755
- 'selected',
756
- 'disabled',
757
- ]
758
-
759
- export declare const COLOR_TINTS: readonly [
760
- '50',
761
- '100',
762
- '200',
763
- '300',
764
- '400',
765
- '500',
766
- '600',
767
- '700',
768
- '800',
769
- '900',
770
- '950',
771
- ]
772
-
773
- export declare type ColorBaseTone = (typeof COLOR_BASE_TONES)[number]
774
-
775
- export declare type ColorBlendModeTokenValue = [ColorBlendModeValue, ColorBlendModeValue]
776
-
777
- export declare type ColorBlendModeValue = (typeof COLOR_BLEND_MODES)[number]
778
-
779
- export declare type ColorButtonMode = (typeof COLOR_BUTTON_MODES)[number]
780
-
781
- export declare type ColorConfigBaseKey = (typeof COLOR_CONFIG_BASE_KEYS)[number]
782
-
783
- export declare type ColorConfigBaseTone = (typeof COLOR_CONFIG_BASE_TONES)[number]
784
-
785
- export declare type ColorConfigBlendKey = (typeof COLOR_CONFIG_BLEND_KEYS)[number]
786
-
787
- export declare type ColorConfigOpacityValue = `0` | `0.${number}` | `1`
788
-
789
- export declare type ColorConfigStateKey = (typeof COLOR_CONFIG_STATE_KEYS)[number]
790
-
791
- export declare type ColorConfigStateTone = (typeof COLOR_CONFIG_STATE_TONES)[number]
792
-
793
- export declare type ColorConfigValue =
794
- | `black`
795
- | `white`
796
- | `black/${ColorConfigOpacityValue}`
797
- | `white/${ColorConfigOpacityValue}`
798
- | `${ColorHueValue}`
799
- | `${ColorHueValue}/${ColorTintValue}`
800
- | `${ColorHueValue}/${ColorTintValue}/${ColorConfigOpacityValue}`
801
- | `${ColorTintValue}`
802
- | `${ColorTintValue}/${ColorConfigOpacityValue}`
803
- | ColorBlendModeValue
804
-
805
- export declare type ColorHueValue = (typeof COLOR_HUES)[number]
806
-
807
- export declare type ColorState = (typeof COLOR_STATES)[number]
808
-
809
- export declare type ColorStateTone = (typeof COLOR_STATE_TONES)[number]
810
-
811
- export declare interface ColorThemeConfig {
812
- palette?: TMP_ColorPalette
813
- tokens?: ColorTokens
814
- }
729
+ export {COLOR_CONFIG_BASE_KEYS}
815
730
 
816
- export declare type ColorTintValue = (typeof COLOR_TINTS)[number]
731
+ export {COLOR_CONFIG_BASE_TONES}
817
732
 
818
- export declare interface ColorTokens extends Partial<Record<ColorConfigBaseTone, BaseColorTokens>> {
819
- button?: Partial<Record<ColorConfigStateTone, ButtonColorTokens>>
820
- }
733
+ export {COLOR_CONFIG_BLEND_KEYS}
821
734
 
822
- export declare type ColorTokenValue = [ColorConfigValue, ColorConfigValue]
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}
823
754
 
824
755
  /**
825
756
  * The `Container` component wraps content layout in a defined set of widths.
@@ -827,7 +758,7 @@ export declare type ColorTokenValue = [ColorConfigValue, ColorConfigValue]
827
758
  * @public
828
759
  */
829
760
  export declare const Container: ForwardRefExoticComponent<
830
- Omit<ContainerProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'as'>, 'ref'> &
761
+ Omit<ContainerProps & Omit<HTMLProps<HTMLDivElement>, 'width' | 'as' | 'height'>, 'ref'> &
831
762
  RefAttributes<HTMLDivElement>
832
763
  >
833
764
 
@@ -841,15 +772,9 @@ export declare interface ContainerProps extends BoxProps, ResponsiveWidthProps {
841
772
  */
842
773
  export declare function containsOrEqualsElement(element: HTMLElement, node: Node): boolean
843
774
 
844
- /**
845
- * @public
846
- */
847
- export declare function createColorTheme(
848
- partialOpts?: PartialThemeColorBuilderOpts,
849
- ): ThemeColorSchemes
775
+ export {createColorTheme}
850
776
 
851
- /** @internal */
852
- export declare type CSSObject = StyledObject<any>
777
+ export {CSSObject}
853
778
 
854
779
  /**
855
780
  * @public
@@ -1089,14 +1014,6 @@ export declare function focusFirstDescendant(element: HTMLElement): boolean
1089
1014
  */
1090
1015
  export declare function focusLastDescendant(element: HTMLElement): boolean
1091
1016
 
1092
- /**
1093
- * @public
1094
- */
1095
- export declare interface FocusRing {
1096
- offset: number
1097
- width: number
1098
- }
1099
-
1100
1017
  /**
1101
1018
  * @internal
1102
1019
  */
@@ -1124,7 +1041,7 @@ export declare function _getResponsiveSpace(
1124
1041
  * @public
1125
1042
  */
1126
1043
  export declare const Grid: ForwardRefExoticComponent<
1127
- Omit<GridProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as' | 'rows'>, 'ref'> &
1044
+ Omit<GridProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height' | 'rows'>, 'ref'> &
1128
1045
  RefAttributes<HTMLDivElement>
1129
1046
  >
1130
1047
 
@@ -1217,7 +1134,7 @@ export declare interface HeadingProps {
1217
1134
  */
1218
1135
  export declare const HeadingSkeleton: ForwardRefExoticComponent<
1219
1136
  Omit<
1220
- HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'size' | 'height' | 'as'>,
1137
+ HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'children' | 'as' | 'height'>,
1221
1138
  'ref'
1222
1139
  > &
1223
1140
  RefAttributes<HTMLDivElement>
@@ -1231,10 +1148,7 @@ export declare interface HeadingSkeletonProps extends SkeletonProps {
1231
1148
  size?: number | number[]
1232
1149
  }
1233
1150
 
1234
- /**
1235
- * @internal
1236
- */
1237
- export declare function hexToRgb(hex: string): RGB
1151
+ export {hexToRgb}
1238
1152
 
1239
1153
  /**
1240
1154
  * Represent hotkeys (a keyboard combination) with semantic `<kbd>` elements.
@@ -1242,7 +1156,7 @@ export declare function hexToRgb(hex: string): RGB
1242
1156
  * @public
1243
1157
  */
1244
1158
  export declare const Hotkeys: ForwardRefExoticComponent<
1245
- HotkeysProps & Omit<HTMLProps<HTMLElement>, 'ref' | 'size' | 'as'> & RefAttributes<HTMLElement>
1159
+ HotkeysProps & Omit<HTMLProps<HTMLElement>, 'size' | 'ref' | 'as'> & RefAttributes<HTMLElement>
1246
1160
  >
1247
1161
 
1248
1162
  /**
@@ -1256,19 +1170,9 @@ export declare interface HotkeysProps {
1256
1170
  keys?: string[]
1257
1171
  }
1258
1172
 
1259
- /**
1260
- * @internal
1261
- */
1262
- export declare interface HSL {
1263
- h: number
1264
- s: number
1265
- l: number
1266
- }
1173
+ export {HSL}
1267
1174
 
1268
- /**
1269
- * @internal
1270
- */
1271
- export declare function hslToRgb(hsl: HSL): RGB
1175
+ export {hslToRgb}
1272
1176
 
1273
1177
  /**
1274
1178
  * The `Inline` component is a layout utility for aligning and spacing items horizontally.
@@ -1287,29 +1191,29 @@ export declare interface InlineProps extends Omit<BoxProps, 'display'> {
1287
1191
  space?: number | number[]
1288
1192
  }
1289
1193
 
1290
- export declare function isColorBlendModeValue(str: string): str is ColorBlendModeValue
1194
+ export {isColorBlendModeValue}
1291
1195
 
1292
- export declare function isColorButtonMode(str: string): str is ColorButtonMode
1196
+ export {isColorButtonMode}
1293
1197
 
1294
- export declare function isColorConfigBaseKey(str: string): str is ColorConfigBaseKey
1198
+ export {isColorConfigBaseKey}
1295
1199
 
1296
- export declare function isColorConfigBaseTone(str: string): str is ColorConfigBaseTone
1200
+ export {isColorConfigBaseTone}
1297
1201
 
1298
- export declare function isColorConfigBlendKey(str: string): str is ColorConfigBlendKey
1202
+ export {isColorConfigBlendKey}
1299
1203
 
1300
- export declare function isColorConfigStateKey(str: string): str is ColorConfigStateKey
1204
+ export {isColorConfigStateKey}
1301
1205
 
1302
- export declare function isColorConfigStateTone(str: string): str is ColorConfigStateTone
1206
+ export {isColorConfigStateTone}
1303
1207
 
1304
- export declare function isColorHueValue(str: string): str is ColorHueValue
1208
+ export {isColorHueKey}
1305
1209
 
1306
- export declare function isColorOpacityValue(str: string): str is ColorConfigOpacityValue
1210
+ export {isColorOpacityValue}
1307
1211
 
1308
- export declare function isColorTintValue(str: string): str is ColorTintValue
1212
+ export {isColorTintKey}
1309
1213
 
1310
- export declare function isColorTokenValue(str: string): str is ColorConfigValue
1214
+ export {isColorTokenValue}
1311
1215
 
1312
- export declare function isColorValue(str: string): str is 'black' | 'white'
1216
+ export {isColorValue}
1313
1217
 
1314
1218
  /**
1315
1219
  * @internal
@@ -1362,7 +1266,7 @@ export declare function _isScrollable(el: Node): boolean
1362
1266
  * @public
1363
1267
  */
1364
1268
  export declare const KBD: ForwardRefExoticComponent<
1365
- KBDProps & Omit<HTMLProps<HTMLElement>, 'ref' | 'size' | 'as'> & RefAttributes<HTMLDivElement>
1269
+ KBDProps & Omit<HTMLProps<HTMLElement>, 'size' | 'ref' | 'as'> & RefAttributes<HTMLDivElement>
1366
1270
  >
1367
1271
 
1368
1272
  /**
@@ -1409,7 +1313,7 @@ export declare interface LabelProps {
1409
1313
  */
1410
1314
  export declare const LabelSkeleton: ForwardRefExoticComponent<
1411
1315
  Omit<
1412
- LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'size' | 'height' | 'as'>,
1316
+ LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'children' | 'as' | 'height'>,
1413
1317
  'ref'
1414
1318
  > &
1415
1319
  RefAttributes<HTMLDivElement>
@@ -1486,7 +1390,7 @@ export declare interface _MediaStore {
1486
1390
  * @public
1487
1391
  */
1488
1392
  export declare const Menu: ForwardRefExoticComponent<
1489
- Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'tabIndex' | 'role' | 'as'>, 'ref'> &
1393
+ Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, 'tabIndex' | 'role' | 'as' | 'height'>, 'ref'> &
1490
1394
  RefAttributes<HTMLDivElement>
1491
1395
  >
1492
1396
 
@@ -1596,9 +1500,9 @@ export declare const MenuDivider: IStyledComponent<
1596
1500
  security?: string | undefined
1597
1501
  unselectable?: 'on' | 'off' | undefined
1598
1502
  inputMode?:
1503
+ | 'none'
1599
1504
  | 'text'
1600
1505
  | 'search'
1601
- | 'none'
1602
1506
  | 'tel'
1603
1507
  | 'url'
1604
1508
  | 'email'
@@ -1608,7 +1512,7 @@ export declare const MenuDivider: IStyledComponent<
1608
1512
  is?: string | undefined
1609
1513
  'aria-activedescendant'?: string | undefined
1610
1514
  'aria-atomic'?: (boolean | 'false' | 'true') | undefined
1611
- 'aria-autocomplete'?: 'both' | 'none' | 'inline' | 'list' | undefined
1515
+ 'aria-autocomplete'?: 'none' | 'both' | 'inline' | 'list' | undefined
1612
1516
  'aria-braillelabel'?: string | undefined
1613
1517
  'aria-brailleroledescription'?: string | undefined
1614
1518
  'aria-busy'?: (boolean | 'false' | 'true') | undefined
@@ -1632,17 +1536,17 @@ export declare const MenuDivider: IStyledComponent<
1632
1536
  'aria-description'?: string | undefined
1633
1537
  'aria-details'?: string | undefined
1634
1538
  'aria-disabled'?: (boolean | 'false' | 'true') | undefined
1635
- 'aria-dropeffect'?: 'link' | 'none' | 'copy' | 'move' | 'execute' | 'popup' | undefined
1539
+ 'aria-dropeffect'?: 'none' | 'link' | 'copy' | 'move' | 'execute' | 'popup' | undefined
1636
1540
  'aria-errormessage'?: string | undefined
1637
1541
  'aria-expanded'?: (boolean | 'false' | 'true') | undefined
1638
1542
  'aria-flowto'?: string | undefined
1639
1543
  'aria-grabbed'?: (boolean | 'false' | 'true') | undefined
1640
1544
  'aria-haspopup'?:
1641
1545
  | boolean
1546
+ | 'grid'
1642
1547
  | 'dialog'
1643
1548
  | 'menu'
1644
1549
  | 'listbox'
1645
- | 'grid'
1646
1550
  | 'false'
1647
1551
  | 'true'
1648
1552
  | 'tree'
@@ -1887,7 +1791,7 @@ export declare interface MenuGroupProps {
1887
1791
  */
1888
1792
  export declare const MenuItem: ForwardRefExoticComponent<
1889
1793
  MenuItemProps &
1890
- Omit<HTMLProps<HTMLDivElement>, 'selected' | 'ref' | 'height' | 'tabIndex' | 'as'> &
1794
+ Omit<HTMLProps<HTMLDivElement>, 'ref' | 'tabIndex' | 'as' | 'height' | 'selected'> &
1891
1795
  RefAttributes<HTMLDivElement>
1892
1796
  >
1893
1797
 
@@ -1929,26 +1833,15 @@ export declare interface MenuProps extends ResponsivePaddingProps {
1929
1833
  space?: number | number[]
1930
1834
  }
1931
1835
 
1932
- /**
1933
- * Apply the \`multiply\` blend mode
1934
- * Source: https://www.w3.org/TR/compositing-1/#blendingmultiply
1935
- * @internal
1936
- */
1937
- export declare function multiply(b: RGB | RGBA, s: RGB | RGBA): RGB
1836
+ export {multiply}
1938
1837
 
1939
- /**
1940
- * @internal
1941
- */
1942
- export declare function parseColor(color: unknown): RGB | RGBA
1838
+ export {parseColor}
1943
1839
 
1944
- export declare function parseTokenKey(str: string): TokenKeyNode | undefined
1840
+ export {parseTokenKey}
1945
1841
 
1946
- export declare function parseTokenValue(str: string): TokenValueNode | undefined
1842
+ export {parseTokenValue}
1947
1843
 
1948
- /**
1949
- * @public
1950
- */
1951
- export declare type PartialThemeColorBuilderOpts = Partial<ThemeColorBuilderOpts>
1844
+ export {PartialThemeColorBuilderOpts}
1952
1845
 
1953
1846
  /**
1954
1847
  * Placement of floating UI elements.
@@ -1977,7 +1870,7 @@ export declare type Placement =
1977
1870
  export declare const Popover: MemoExoticComponent<
1978
1871
  ForwardRefExoticComponent<
1979
1872
  Omit<
1980
- PopoverProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'content' | 'width' | 'as'>,
1873
+ PopoverProps & Omit<HTMLProps<HTMLDivElement>, 'content' | 'children' | 'width' | 'as'>,
1981
1874
  'ref'
1982
1875
  > &
1983
1876
  RefAttributes<HTMLDivElement>
@@ -2083,7 +1976,7 @@ export declare interface PortalProviderProps {
2083
1976
  * @public
2084
1977
  */
2085
1978
  export declare const Radio: ForwardRefExoticComponent<
2086
- Omit<Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & RadioProps, 'ref'> &
1979
+ Omit<Omit<HTMLProps<HTMLInputElement>, 'as' | 'type'> & RadioProps, 'ref'> &
2087
1980
  RefAttributes<HTMLInputElement>
2088
1981
  >
2089
1982
 
@@ -2322,58 +2215,20 @@ export declare interface ResponsiveWidthStyleProps {
2322
2215
  $width: (number | 'auto')[]
2323
2216
  }
2324
2217
 
2325
- /**
2326
- * @internal
2327
- */
2328
- export declare interface RGB {
2329
- r: number
2330
- g: number
2331
- b: number
2332
- a?: undefined
2333
- }
2218
+ export {RGB}
2334
2219
 
2335
- /**
2336
- * @internal
2337
- */
2338
- export declare interface RGBA {
2339
- r: number
2340
- g: number
2341
- b: number
2342
- a: number
2343
- }
2220
+ export {RGBA}
2344
2221
 
2345
- /**
2346
- * @internal
2347
- */
2348
- export declare function rgba(color: unknown, a: number): string
2222
+ export {rgba}
2349
2223
 
2350
- /**
2351
- * @internal
2352
- */
2353
- export declare function rgbaToRGBA(rgba: string): RGBA
2224
+ export {rgbaToRGBA}
2354
2225
 
2355
- /**
2356
- * @internal
2357
- */
2358
- export declare function rgbToHex({r, g, b}: RGB): string
2226
+ export {rgbToHex}
2359
2227
 
2360
- /**
2361
- * @internal
2362
- * @see https://css-tricks.com/converting-color-spaces-in-javascript/
2363
- */
2364
- export declare function rgbToHsl({r, g, b}: RGB): HSL
2228
+ export {rgbToHsl}
2365
2229
 
2366
- /**
2367
- * @public
2368
- */
2369
- export declare type RootTheme = BaseTheme<Styles>
2230
+ export {RootTheme}
2370
2231
 
2371
- /**
2372
- * Apply the \`screen\` blend mode
2373
- * Source: https://www.w3.org/TR/compositing-1/#blendingscreen
2374
- * @internal
2375
- */
2376
- declare function screen_2(b: RGB | RGBA, s: RGB | RGBA): RGB
2377
2232
  export {screen_2 as screen}
2378
2233
 
2379
2234
  /**
@@ -2389,7 +2244,7 @@ export declare const Select: ForwardRefExoticComponent<
2389
2244
  /**
2390
2245
  * @public
2391
2246
  */
2392
- export declare type SelectableTone = 'default' | 'primary' | 'positive' | 'caution' | 'critical'
2247
+ export declare type SelectableTone = ThemeColorStateToneKey
2393
2248
 
2394
2249
  /**
2395
2250
  * @public
@@ -2470,49 +2325,7 @@ export declare interface StackProps extends BoxProps {
2470
2325
  space?: number | number[]
2471
2326
  }
2472
2327
 
2473
- export declare interface StateColorTokens {
2474
- _blend?: ColorBlendModeTokenValue
2475
- _hue?: ColorHueValue
2476
- bg?: ColorTokenValue
2477
- bg2?: ColorTokenValue
2478
- fg?: ColorTokenValue
2479
- border?: ColorTokenValue
2480
- muted?: {
2481
- fg?: ColorTokenValue
2482
- }
2483
- accent?: {
2484
- fg?: ColorTokenValue
2485
- }
2486
- link?: {
2487
- fg?: ColorTokenValue
2488
- }
2489
- code?: {
2490
- bg?: ColorTokenValue
2491
- fg?: ColorTokenValue
2492
- }
2493
- skeleton?: {
2494
- from?: ColorTokenValue
2495
- to?: ColorTokenValue
2496
- }
2497
- }
2498
-
2499
- /**
2500
- * @public
2501
- */
2502
- export declare const studioTheme: RootTheme
2503
-
2504
- /**
2505
- * TODO: Rename to `ThemeStyles`
2506
- * @public
2507
- */
2508
- export declare interface Styles {
2509
- button?: {
2510
- root?: CSSObject
2511
- }
2512
- card?: {
2513
- root?: CSSObject
2514
- }
2515
- }
2328
+ export {studioTheme}
2516
2329
 
2517
2330
  /**
2518
2331
  * The `Switch` component allows the user to toggle a setting on and off.
@@ -2522,7 +2335,7 @@ export declare interface Styles {
2522
2335
  * @public
2523
2336
  */
2524
2337
  export declare const Switch: ForwardRefExoticComponent<
2525
- Omit<Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & SwitchProps, 'ref'> &
2338
+ Omit<Omit<HTMLProps<HTMLInputElement>, 'as' | 'type'> & SwitchProps, 'ref'> &
2526
2339
  RefAttributes<HTMLInputElement>
2527
2340
  >
2528
2341
 
@@ -2541,7 +2354,7 @@ export declare const Tab: ForwardRefExoticComponent<
2541
2354
  TabProps &
2542
2355
  Omit<
2543
2356
  HTMLProps<HTMLButtonElement>,
2544
- 'type' | 'label' | 'width' | 'id' | 'aria-controls' | 'as'
2357
+ 'label' | 'width' | 'id' | 'aria-controls' | 'as' | 'type'
2545
2358
  >,
2546
2359
  'ref'
2547
2360
  > &
@@ -2552,7 +2365,7 @@ export declare const Tab: ForwardRefExoticComponent<
2552
2365
  * @public
2553
2366
  */
2554
2367
  export declare const TabList: ForwardRefExoticComponent<
2555
- Omit<TabListProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
2368
+ Omit<TabListProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height'>, 'ref'> &
2556
2369
  RefAttributes<unknown>
2557
2370
  >
2558
2371
 
@@ -2647,7 +2460,7 @@ export declare interface TextAreaProps extends ResponsiveRadiusProps {
2647
2460
  * @public
2648
2461
  */
2649
2462
  export declare const TextInput: ForwardRefExoticComponent<
2650
- Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, 'type' | 'prefix' | 'as'>, 'ref'> &
2463
+ Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, 'prefix' | 'as' | 'type'>, 'ref'> &
2651
2464
  RefAttributes<HTMLInputElement>
2652
2465
  >
2653
2466
 
@@ -2729,7 +2542,7 @@ export declare interface TextProps {
2729
2542
  */
2730
2543
  export declare const TextSkeleton: ForwardRefExoticComponent<
2731
2544
  Omit<
2732
- TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'size' | 'height' | 'as'>,
2545
+ TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'children' | 'as' | 'height'>,
2733
2546
  'ref'
2734
2547
  > &
2735
2548
  RefAttributes<HTMLDivElement>
@@ -2743,271 +2556,61 @@ export declare interface TextSkeletonProps extends SkeletonProps {
2743
2556
  size?: number | number[]
2744
2557
  }
2745
2558
 
2746
- /**
2747
- * @public
2748
- */
2749
- export declare interface Theme {
2750
- sanity: Omit<RootTheme, 'color'> & {
2751
- color: ThemeColor
2752
- }
2753
- }
2559
+ export {Theme}
2754
2560
 
2755
- /**
2756
- * @public
2757
- */
2758
- export declare interface ThemeAvatar {
2759
- sizes: {
2760
- /** Distance between avatars in an <AvatarStack> component (px) */
2761
- distance: number
2762
- /** Diameter (px) */
2763
- size: number
2764
- }[]
2765
- focusRing: FocusRing
2766
- }
2561
+ export {THEME_COLOR_BASE_TONES}
2767
2562
 
2768
- /**
2769
- * @public
2770
- */
2771
- export declare interface ThemeColor {
2772
- dark: boolean
2773
- base: ThemeColorBase
2774
- button: ThemeColorButton
2775
- card: ThemeColorCard
2776
- input: ThemeColorInput
2777
- selectable?: ThemeColorSelectable
2778
- spot: ThemeColorSpot
2779
- syntax: ThemeColorSyntax
2780
- solid: ThemeColorSolid
2781
- muted: ThemeColorMuted
2782
- }
2563
+ export {THEME_COLOR_BLEND_MODES}
2783
2564
 
2784
- /**
2785
- * @public
2786
- */
2787
- export declare interface ThemeColorBase {
2788
- bg: string
2789
- fg: string
2790
- border: string
2791
- focusRing: string
2792
- shadow: {
2793
- outline: string
2794
- umbra: string
2795
- penumbra: string
2796
- ambient: string
2797
- }
2798
- skeleton?: {
2799
- from: string
2800
- to: string
2801
- }
2802
- }
2565
+ export {THEME_COLOR_BUTTON_MODES}
2803
2566
 
2804
- /**
2805
- * @public
2806
- */
2807
- export declare interface ThemeColorBuilderOpts {
2808
- base: (opts: {dark: boolean; name: ThemeColorName}) => ThemeColorBase
2809
- solid: (opts: {
2810
- base: ThemeColorBase
2811
- dark: boolean
2812
- tone: ThemeColorToneKey
2813
- name: ThemeColorName
2814
- state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected'
2815
- }) => ThemeColorGenericState
2816
- muted: (opts: {
2817
- base: ThemeColorBase
2818
- dark: boolean
2819
- tone: ThemeColorToneKey
2820
- name: ThemeColorName
2821
- state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected'
2822
- }) => ThemeColorGenericState
2823
- card: (opts: {
2824
- base: ThemeColorBase
2825
- dark: boolean
2826
- muted: ThemeColorMuted
2827
- name: ThemeColorName
2828
- solid: ThemeColorSolid
2829
- state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected'
2830
- }) => ThemeColorCardState
2831
- button: (opts: {
2832
- dark: boolean
2833
- mode: ThemeColorButtonModeKey
2834
- base: ThemeColorBase
2835
- solid: ThemeColorSolidTone
2836
- muted: ThemeColorMutedTone
2837
- }) => ThemeColorButtonStates
2838
- input: (opts: {
2839
- base: ThemeColorBase
2840
- solid: ThemeColorSolidTone
2841
- muted: ThemeColorMutedTone
2842
- dark: boolean
2843
- mode: 'default' | 'invalid'
2844
- state: 'enabled' | 'disabled' | 'hovered' | 'readOnly'
2845
- }) => ThemeColorInputState
2846
- selectable: (opts: {
2847
- dark: boolean
2848
- base: ThemeColorBase
2849
- solid: ThemeColorSolid
2850
- muted: ThemeColorMuted
2851
- state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected'
2852
- tone: 'default' | 'primary' | 'positive' | 'caution' | 'critical'
2853
- }) => ThemeColorSelectableState
2854
- syntax: (opts: {base: ThemeColorBase; dark: boolean}) => ThemeColorSyntax
2855
- spot: (opts: {base: ThemeColorBase; dark: boolean; key: ThemeColorSpotKey}) => string
2856
- }
2567
+ export {THEME_COLOR_STATE_TONES}
2857
2568
 
2858
- /**
2859
- * @public
2860
- */
2861
- export declare interface ThemeColorButton {
2862
- default: ThemeColorButtonTones
2863
- ghost: ThemeColorButtonTones
2864
- bleed: ThemeColorButtonTones
2865
- }
2569
+ export {THEME_COLOR_STATES}
2866
2570
 
2867
- /**
2868
- * @public
2869
- */
2870
- export declare type ThemeColorButtonModeKey = 'default' | 'ghost' | 'bleed'
2571
+ export {ThemeAvatar}
2871
2572
 
2872
- /**
2873
- * @deprecated Use `ThemeColorGenericState` instead.
2874
- * @public
2875
- */
2876
- export declare type ThemeColorButtonState = ThemeColorGenericState
2573
+ export {ThemeColor}
2877
2574
 
2878
- /**
2879
- * @public
2880
- */
2881
- export declare interface ThemeColorButtonStates {
2882
- enabled: ThemeColorButtonState
2883
- hovered: ThemeColorButtonState
2884
- pressed: ThemeColorButtonState
2885
- selected: ThemeColorButtonState
2886
- disabled: ThemeColorButtonState
2887
- }
2575
+ export {ThemeColorBase}
2888
2576
 
2889
- /**
2890
- * TODO: Rename to `ThemeColorButtonMode`.
2891
- * @public
2892
- */
2893
- export declare interface ThemeColorButtonTones {
2894
- default: ThemeColorButtonStates
2895
- primary: ThemeColorButtonStates
2896
- positive: ThemeColorButtonStates
2897
- caution: ThemeColorButtonStates
2898
- critical: ThemeColorButtonStates
2899
- }
2577
+ export {ThemeColorBaseTokens}
2900
2578
 
2901
- /**
2902
- * @public
2903
- */
2904
- export declare interface ThemeColorCard {
2905
- enabled: ThemeColorCardState
2906
- hovered: ThemeColorCardState
2907
- pressed: ThemeColorCardState
2908
- selected: ThemeColorCardState
2909
- disabled: ThemeColorCardState
2910
- }
2579
+ export {ThemeColorBaseToneKey}
2911
2580
 
2912
- /**
2913
- * @deprecated Use `ThemeColorGenericState` instead.
2914
- * @public
2915
- */
2916
- export declare type ThemeColorCardState = ThemeColorGenericState
2581
+ export {ThemeColorBlendModeKey}
2917
2582
 
2918
- /**
2919
- * @public
2920
- */
2921
- export declare interface ThemeColorGenericState {
2922
- bg: string
2923
- /**
2924
- * @beta
2925
- */
2926
- bg2?: string
2927
- border: string
2928
- fg: string
2929
- iconColor: string
2930
- muted: {
2931
- fg: string
2932
- }
2933
- accent: {
2934
- fg: string
2935
- }
2936
- link: {
2937
- fg: string
2938
- }
2939
- code: {
2940
- bg: string
2941
- fg: string
2942
- }
2943
- skeleton?: {
2944
- from: string
2945
- to: string
2946
- }
2947
- }
2583
+ export {ThemeColorBuilderOpts}
2948
2584
 
2949
- /**
2950
- * @public
2951
- */
2952
- export declare interface ThemeColorInput {
2953
- default: ThemeColorInputStates
2954
- invalid: ThemeColorInputStates
2955
- }
2585
+ export {ThemeColorButton}
2956
2586
 
2957
- /**
2958
- * @public
2959
- */
2960
- export declare interface ThemeColorInputState {
2961
- bg: string
2962
- bg2: string
2963
- fg: string
2964
- border: string
2965
- placeholder: string
2966
- }
2587
+ export {ThemeColorButtonModeKey}
2967
2588
 
2968
- /**
2969
- * @public
2970
- */
2971
- export declare interface ThemeColorInputStates {
2972
- enabled: ThemeColorInputState
2973
- disabled: ThemeColorInputState
2974
- hovered: ThemeColorInputState
2975
- readOnly: ThemeColorInputState
2976
- }
2589
+ export {ThemeColorButtonState}
2977
2590
 
2978
- /**
2979
- * @public
2980
- */
2981
- export declare interface ThemeColorMuted {
2982
- default: ThemeColorMutedTone
2983
- transparent: ThemeColorMutedTone
2984
- primary: ThemeColorMutedTone
2985
- positive: ThemeColorMutedTone
2986
- caution: ThemeColorMutedTone
2987
- critical: ThemeColorMutedTone
2988
- }
2591
+ export {ThemeColorButtonStates}
2989
2592
 
2990
- /**
2991
- * @public
2992
- */
2993
- export declare interface ThemeColorMutedTone {
2994
- enabled: ThemeColorGenericState
2995
- disabled: ThemeColorGenericState
2996
- hovered: ThemeColorGenericState
2997
- pressed: ThemeColorGenericState
2998
- selected: ThemeColorGenericState
2999
- }
2593
+ export {ThemeColorButtonTokens}
3000
2594
 
3001
- /**
3002
- * @public
3003
- */
3004
- export declare type ThemeColorName =
3005
- | 'default'
3006
- | 'transparent'
3007
- | 'primary'
3008
- | 'positive'
3009
- | 'caution'
3010
- | '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}
3011
2614
 
3012
2615
  /**
3013
2616
  * @public
@@ -3020,170 +2623,46 @@ export declare function ThemeColorProvider(props: ThemeColorProviderProps): Reac
3020
2623
  export declare interface ThemeColorProviderProps {
3021
2624
  children?: React.ReactNode
3022
2625
  scheme?: ThemeColorSchemeKey
3023
- tone?: ThemeColorName
2626
+ tone?: ThemeColorBaseToneKey
3024
2627
  }
3025
2628
 
3026
- /**
3027
- * @public
3028
- */
3029
- export declare interface ThemeColorScheme {
3030
- default: ThemeColor
3031
- transparent: ThemeColor
3032
- primary: ThemeColor
3033
- positive: ThemeColor
3034
- caution: ThemeColor
3035
- critical: ThemeColor
3036
- }
2629
+ export {ThemeColorScheme}
3037
2630
 
3038
- /**
3039
- * @public
3040
- */
3041
- export declare type ThemeColorSchemeKey = 'dark' | 'light'
2631
+ export {ThemeColorSchemeKey}
3042
2632
 
3043
- /**
3044
- * @public
3045
- */
3046
- export declare interface ThemeColorSchemes {
3047
- dark: ThemeColorScheme
3048
- light: ThemeColorScheme
3049
- }
2633
+ export {ThemeColorSchemes}
3050
2634
 
3051
- /**
3052
- * @public
3053
- */
3054
- export declare interface ThemeColorSelectable {
3055
- default: ThemeColorSelectableStates
3056
- primary: ThemeColorSelectableStates
3057
- positive: ThemeColorSelectableStates
3058
- caution: ThemeColorSelectableStates
3059
- critical: ThemeColorSelectableStates
3060
- }
2635
+ export {ThemeColorSelectable}
3061
2636
 
3062
- /**
3063
- * @deprecated Use `ThemeColorGenericState` instead.
3064
- * @public
3065
- */
3066
- export declare type ThemeColorSelectableState = ThemeColorGenericState
2637
+ export {ThemeColorSelectableState}
3067
2638
 
3068
- /**
3069
- * @public
3070
- */
3071
- export declare interface ThemeColorSelectableStates {
3072
- enabled: ThemeColorSelectableState
3073
- hovered: ThemeColorSelectableState
3074
- pressed: ThemeColorSelectableState
3075
- selected: ThemeColorSelectableState
3076
- disabled: ThemeColorSelectableState
3077
- }
2639
+ export {ThemeColorSelectableStates}
3078
2640
 
3079
- /**
3080
- * @public
3081
- */
3082
- export declare interface ThemeColorSolid {
3083
- default: ThemeColorSolidTone
3084
- transparent: ThemeColorSolidTone
3085
- primary: ThemeColorSolidTone
3086
- positive: ThemeColorSolidTone
3087
- caution: ThemeColorSolidTone
3088
- critical: ThemeColorSolidTone
3089
- }
2641
+ export {ThemeColorSolid}
3090
2642
 
3091
- /**
3092
- * @public
3093
- */
3094
- export declare interface ThemeColorSolidTone {
3095
- enabled: ThemeColorGenericState
3096
- disabled: ThemeColorGenericState
3097
- hovered: ThemeColorGenericState
3098
- pressed: ThemeColorGenericState
3099
- selected: ThemeColorGenericState
3100
- }
2643
+ export {ThemeColorSolidTone}
3101
2644
 
3102
- /**
3103
- * @public
3104
- */
3105
- export declare interface ThemeColorSpot {
3106
- gray: string
3107
- blue: string
3108
- purple: string
3109
- magenta: string
3110
- red: string
3111
- orange: string
3112
- yellow: string
3113
- green: string
3114
- cyan: string
3115
- }
2645
+ export {ThemeColorSpot}
3116
2646
 
3117
- /**
3118
- * @public
3119
- */
3120
- export declare type ThemeColorSpotKey =
3121
- | 'gray'
3122
- | 'blue'
3123
- | 'purple'
3124
- | 'magenta'
3125
- | 'red'
3126
- | 'orange'
3127
- | 'yellow'
3128
- | 'green'
3129
- | 'cyan'
2647
+ export {ThemeColorSpotKey}
3130
2648
 
3131
- /**
3132
- * @public
3133
- */
3134
- export declare interface ThemeColorSyntax {
3135
- atrule: string
3136
- attrName: string
3137
- attrValue: string
3138
- attribute: string
3139
- boolean: string
3140
- builtin: string
3141
- cdata: string
3142
- char: string
3143
- class: string
3144
- className: string
3145
- comment: string
3146
- constant: string
3147
- deleted: string
3148
- doctype: string
3149
- entity: string
3150
- function: string
3151
- hexcode: string
3152
- id: string
3153
- important: string
3154
- inserted: string
3155
- keyword: string
3156
- number: string
3157
- operator: string
3158
- prolog: string
3159
- property: string
3160
- pseudoClass: string
3161
- pseudoElement: string
3162
- punctuation: string
3163
- regex: string
3164
- selector: string
3165
- string: string
3166
- symbol: string
3167
- tag: string
3168
- unit: string
3169
- url: string
3170
- variable: string
3171
- }
2649
+ export {ThemeColorStateKey}
3172
2650
 
3173
- /**
3174
- * @public
3175
- */
3176
- export declare type ThemeColorToneKey =
3177
- | 'default'
3178
- | 'transparent'
3179
- | 'primary'
3180
- | 'positive'
3181
- | 'caution'
3182
- | 'critical'
2651
+ export {ThemeColorStatesTokens}
3183
2652
 
3184
- export declare interface ThemeConfig {
3185
- color?: ColorThemeConfig
3186
- }
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}
3187
2666
 
3188
2667
  /**
3189
2668
  * @public
@@ -3192,109 +2671,26 @@ export declare interface ThemeContextValue {
3192
2671
  version: 0.0
3193
2672
  scheme: ThemeColorSchemeKey
3194
2673
  theme: RootTheme
3195
- tone: ThemeColorName
2674
+ tone: ThemeColorBaseToneKey
3196
2675
  }
3197
2676
 
3198
- /**
3199
- * @public
3200
- */
3201
- export declare interface ThemeFont {
3202
- family: string
3203
- weights: ThemeFontWeight
3204
- sizes: ThemeFontSize[]
3205
- /** @deprecated No longer supported. */
3206
- horizontalOffset?: number
3207
- }
2677
+ export {ThemeFocusRing}
3208
2678
 
3209
- /**
3210
- * @public
3211
- */
3212
- export declare type ThemeFontKey = 'code' | 'heading' | 'label' | 'text'
2679
+ export {ThemeFont}
3213
2680
 
3214
- /**
3215
- * @public
3216
- */
3217
- export declare interface ThemeFonts {
3218
- code: ThemeFont
3219
- heading: ThemeFont
3220
- label: ThemeFont
3221
- text: ThemeFont
3222
- }
2681
+ export {ThemeFontKey}
3223
2682
 
3224
- /**
3225
- * @public
3226
- */
3227
- export declare interface ThemeFontSize {
3228
- ascenderHeight: number
3229
- descenderHeight: number
3230
- fontSize: number
3231
- iconSize: number
3232
- letterSpacing: number
3233
- lineHeight: number
3234
- }
2683
+ export {ThemeFonts}
3235
2684
 
3236
- /**
3237
- * @public
3238
- */
3239
- export declare interface ThemeFontWeight {
3240
- regular: number
3241
- medium: number
3242
- semibold: number
3243
- bold: number
3244
- }
2685
+ export {ThemeFontSize}
3245
2686
 
3246
- /**
3247
- * @public
3248
- */
3249
- export declare type ThemeFontWeightKey = 'regular' | 'medium' | 'semibold' | 'bold'
2687
+ export {ThemeFontWeight}
3250
2688
 
3251
- /**
3252
- * @public
3253
- */
3254
- export declare interface ThemeInput {
3255
- checkbox: {
3256
- size: number
3257
- focusRing: FocusRing
3258
- }
3259
- radio: {
3260
- size: number
3261
- markSize: number
3262
- focusRing: FocusRing
3263
- }
3264
- switch: {
3265
- width: number
3266
- height: number
3267
- padding: number
3268
- transitionDurationMs: number
3269
- transitionTimingFunction: string
3270
- focusRing: FocusRing
3271
- }
3272
- border: {
3273
- width: number
3274
- }
3275
- select: {
3276
- focusRing: FocusRing
3277
- }
3278
- text: {
3279
- focusRing: FocusRing
3280
- }
3281
- }
2689
+ export {ThemeFontWeightKey}
3282
2690
 
3283
- /**
3284
- * THIS API MAY BE UNSTABLE. DO NOT USE IN PRODUCTION.
3285
- * @beta
3286
- */
3287
- export declare interface ThemeLayer {
3288
- dialog: {
3289
- zOffset: number
3290
- }
3291
- popover: {
3292
- zOffset: number
3293
- }
3294
- tooltip: {
3295
- zOffset: number
3296
- }
3297
- }
2691
+ export {ThemeInput}
2692
+
2693
+ export {ThemeLayer}
3298
2694
 
3299
2695
  /**
3300
2696
  * @internal
@@ -3315,84 +2711,12 @@ export declare interface ThemeProviderProps {
3315
2711
  children?: React.ReactNode
3316
2712
  scheme?: ThemeColorSchemeKey
3317
2713
  theme?: RootTheme
3318
- tone?: ThemeColorName
3319
- }
3320
-
3321
- /**
3322
- * @public
3323
- */
3324
- export declare interface ThemeShadow {
3325
- umbra: BoxShadow
3326
- penumbra: BoxShadow
3327
- ambient: BoxShadow
2714
+ tone?: ThemeColorBaseToneKey
3328
2715
  }
3329
2716
 
3330
- export declare interface TMP_BaseColorTheme {
3331
- _blend: ColorBlendModeValue
3332
- dark: boolean
3333
- base: {
3334
- bg: string
3335
- fg: string
3336
- border: string
3337
- focusRing: string
3338
- shadow: {
3339
- outline: string
3340
- umbra: string
3341
- penumbra: string
3342
- ambient: string
3343
- }
3344
- skeleton: {
3345
- from: string
3346
- to: string
3347
- }
3348
- }
3349
- button: TMP_ButtonColorTheme
3350
- }
2717
+ export {ThemeShadow}
3351
2718
 
3352
- export declare type TMP_ButtonColorTheme = Record<ColorStateTone, TMP_ButtonModesColorTheme>
3353
-
3354
- export declare type TMP_ButtonModesColorTheme = Record<ColorButtonMode, TMP_ButtonStatesColorTheme>
3355
-
3356
- export declare type TMP_ButtonStatesColorTheme = Record<ColorState, TMP_StateColorTheme>
3357
-
3358
- export declare type TMP_ColorPalette = {
3359
- black: string | ColorTint
3360
- white: string | ColorTint
3361
- } & Record<ColorHueValue, Record<ColorTintValue, string | ColorTint>>
3362
-
3363
- export declare type TMP_ColorTheme = Record<ColorBaseTone, TMP_BaseColorTheme>
3364
-
3365
- export declare interface TMP_StateColorTheme {
3366
- _blend: ColorBlendModeValue
3367
- bg: string
3368
- bg2?: string
3369
- fg: string
3370
- border: string
3371
- muted: {
3372
- fg: string
3373
- }
3374
- accent: {
3375
- fg: string
3376
- }
3377
- link: {
3378
- fg: string
3379
- }
3380
- code: {
3381
- bg: string
3382
- fg: string
3383
- }
3384
- skeleton?: {
3385
- from: string
3386
- to: string
3387
- }
3388
- }
3389
-
3390
- export declare interface TMP_Theme {
3391
- color: {
3392
- light: TMP_ColorTheme
3393
- dark: TMP_ColorTheme
3394
- }
3395
- }
2719
+ export {ThemeStyles}
3396
2720
 
3397
2721
  /**
3398
2722
  * The `Toast` component gives feedback to users when an action has taken place.
@@ -3454,43 +2778,19 @@ export declare interface ToastProviderProps {
3454
2778
  zOffset?: number | number[]
3455
2779
  }
3456
2780
 
3457
- export declare interface TokenBaseKeyNode {
3458
- type: 'base'
3459
- tone: ColorConfigBaseTone
3460
- key: ColorConfigBaseKey | ColorConfigBlendKey
3461
- }
2781
+ export {TokenBaseKeyNode}
3462
2782
 
3463
- export declare interface TokenBlendModeValueNode {
3464
- type: 'blendMode'
3465
- value?: ColorBlendModeValue
3466
- }
2783
+ export {TokenBlendModeValueNode}
3467
2784
 
3468
- export declare interface TokenButtonKeyNode {
3469
- type: 'button'
3470
- tone: ColorConfigStateTone
3471
- mode: ColorButtonMode
3472
- key: ColorConfigStateKey | ColorConfigBlendKey
3473
- }
2785
+ export {TokenButtonKeyNode}
3474
2786
 
3475
- export declare interface TokenColorValueNode {
3476
- type: 'color'
3477
- key?: 'black' | 'white' | `${ColorHueValue}/${ColorTintValue}` | ColorTintValue
3478
- hue?: ColorHueValue
3479
- tint?: ColorTintValue
3480
- opacity?: number
3481
- }
2787
+ export {TokenColorValueNode}
3482
2788
 
3483
- export declare interface TokenHueValueNode {
3484
- type: 'hue'
3485
- value?: ColorHueValue
3486
- }
2789
+ export {TokenHueValueNode}
3487
2790
 
3488
- export declare type TokenKeyNode = TokenBaseKeyNode | TokenButtonKeyNode
2791
+ export {TokenKeyNode}
3489
2792
 
3490
- export declare type TokenValueNode =
3491
- | TokenColorValueNode
3492
- | TokenHueValueNode
3493
- | TokenBlendModeValueNode
2793
+ export {TokenValueNode}
3494
2794
 
3495
2795
  /**
3496
2796
  * Tooltips display information when hovering, focusing or tapping.
@@ -3498,7 +2798,7 @@ export declare type TokenValueNode =
3498
2798
  * @public
3499
2799
  */
3500
2800
  export declare const Tooltip: ForwardRefExoticComponent<
3501
- Omit<TooltipProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'content' | 'as'>, 'ref'> &
2801
+ Omit<TooltipProps & Omit<HTMLProps<HTMLDivElement>, 'content' | 'children' | 'as'>, 'ref'> &
3502
2802
  RefAttributes<HTMLDivElement>
3503
2803
  >
3504
2804
 
@@ -3561,6 +2861,7 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
3561
2861
  placement?: Placement
3562
2862
  /** Whether or not to render the tooltip in a portal element. */
3563
2863
  portal?: boolean | string
2864
+ radius?: number | number[]
3564
2865
  scheme?: ThemeColorSchemeKey
3565
2866
  shadow?: number | number[]
3566
2867
  /**
@@ -3590,7 +2891,7 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
3590
2891
  export declare const Tree: MemoExoticComponent<
3591
2892
  ForwardRefExoticComponent<
3592
2893
  TreeProps &
3593
- Omit<HTMLProps<HTMLDivElement>, 'ref' | 'wrap' | 'height' | 'role' | 'as' | 'align'> &
2894
+ Omit<HTMLProps<HTMLDivElement>, 'wrap' | 'ref' | 'role' | 'as' | 'height' | 'align'> &
3594
2895
  RefAttributes<HTMLDivElement>
3595
2896
  >
3596
2897
  >