@sanity/ui 3.0.0-static.10 → 3.0.0-static.2

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 (701) hide show
  1. package/dist/_chunks-cjs/_visual-editing.js +207 -286
  2. package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
  3. package/dist/_chunks-cjs/buildCommand.js +1 -1
  4. package/dist/_chunks-cjs/buildCommand.js.map +1 -1
  5. package/dist/_chunks-cjs/refractor.js.map +1 -1
  6. package/dist/_chunks-cjs/v3_v2.js +251 -0
  7. package/dist/_chunks-cjs/v3_v2.js.map +1 -0
  8. package/dist/_chunks-es/_visual-editing.mjs +210 -289
  9. package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
  10. package/dist/_chunks-es/refractor.mjs.map +1 -1
  11. package/dist/_chunks-es/v3_v2.mjs +252 -0
  12. package/dist/_chunks-es/v3_v2.mjs.map +1 -0
  13. package/dist/_visual-editing.d.mts +12 -17
  14. package/dist/_visual-editing.d.ts +12 -17
  15. package/dist/cli.js +1 -1
  16. package/dist/css.d.mts +1089 -427
  17. package/dist/css.d.ts +1089 -427
  18. package/dist/css.js +2384 -2550
  19. package/dist/css.js.map +1 -1
  20. package/dist/css.mjs +2385 -2551
  21. package/dist/css.mjs.map +1 -1
  22. package/dist/index.d.mts +14 -46
  23. package/dist/index.d.ts +14 -46
  24. package/dist/index.js +31 -20
  25. package/dist/index.js.map +1 -1
  26. package/dist/index.mjs +33 -22
  27. package/dist/index.mjs.map +1 -1
  28. package/dist/sanity-palette.css +9 -1
  29. package/dist/sanity-theme.css +1 -1
  30. package/dist/system.css +3569 -23230
  31. package/dist/theme.d.mts +122 -88
  32. package/dist/theme.d.ts +122 -88
  33. package/dist/theme.js +217 -430
  34. package/dist/theme.js.map +1 -1
  35. package/dist/theme.mjs +200 -411
  36. package/dist/theme.mjs.map +1 -1
  37. package/exports/_visual-editing.ts +27 -27
  38. package/exports/index.ts +1 -1
  39. package/package.json +40 -40
  40. package/src/cli/buildCommand.ts +2 -2
  41. package/src/{ui → core}/StyleTags.tsx +1 -1
  42. package/src/core/_compat/theme/themeContext.ts +10 -0
  43. package/src/{ui → core}/_compat/theme/themeProvider.tsx +3 -15
  44. package/src/{ui → core}/_compat/types.ts +1 -11
  45. package/src/{ui → core}/components/autocomplete/__workshop__/async.tsx +1 -1
  46. package/src/{ui → core}/components/autocomplete/__workshop__/constrainedHeight.tsx +13 -6
  47. package/src/{ui → core}/components/autocomplete/__workshop__/fullscreen.tsx +4 -3
  48. package/src/{ui → core}/components/autocomplete/autocomplete.tsx +10 -4
  49. package/src/{ui → core}/components/dialog/dialog.tsx +4 -3
  50. package/src/{ui → core}/components/hotkeys/hotkeys.tsx +10 -8
  51. package/src/{ui → core}/components/toast/toast.tsx +1 -0
  52. package/src/{ui → core}/constants.ts +0 -6
  53. package/src/core/hooks/useMatchMedia.ts +46 -0
  54. package/src/{ui → core}/hooks/useMediaIndex/useMediaIndex.ts +4 -4
  55. package/src/{ui → core}/primitives/box/box.tsx +1 -9
  56. package/src/{ui → core}/primitives/button/button.tsx +12 -14
  57. package/src/{ui → core}/primitives/card/card.tsx +19 -35
  58. package/src/core/primitives/card/index.ts +2 -0
  59. package/src/core/primitives/card/types.ts +12 -0
  60. package/src/{ui → core}/primitives/code/code.tsx +1 -1
  61. package/src/{ui → core}/primitives/heading/heading.tsx +1 -1
  62. package/src/{ui → core}/primitives/kbd/kbd.tsx +2 -2
  63. package/src/{ui → core}/primitives/popover/__workshop__/OpenOnMountStory.tsx +1 -1
  64. package/src/{ui → core}/primitives/popover/__workshop__/SidePanelStory.tsx +3 -7
  65. package/src/{ui → core}/primitives/popover/popover.tsx +70 -9
  66. package/src/{ui → core}/primitives/popover/popoverCard.tsx +38 -51
  67. package/src/{ui → core}/primitives/select/select.tsx +3 -3
  68. package/src/{ui → core}/primitives/stack/stack.tsx +5 -10
  69. package/src/{ui → core}/primitives/text/text.tsx +1 -1
  70. package/src/{ui → core}/primitives/textInput/textInput.tsx +1 -1
  71. package/src/{ui → core}/primitives/tooltip/tooltip.test.tsx +2 -2
  72. package/src/{ui → core}/primitives/tooltip/tooltip.tsx +3 -2
  73. package/src/{ui → core}/utils/layer/layerProvider.tsx +1 -1
  74. package/src/{ui → core}/utils/portal/portal.ts +2 -15
  75. package/src/{ui → core}/utils/virtualList/virtualList.tsx +1 -2
  76. package/src/css/_resp.ts +5 -12
  77. package/src/css/compile/compilePalette.ts +41 -8
  78. package/src/css/compile/compileRule.ts +1 -8
  79. package/src/css/compile/compileRules.test.ts +0 -1
  80. package/src/css/compile/compileRules.ts +3 -6
  81. package/src/css/compile/compileSystem.ts +3 -6
  82. package/src/css/compile/compileTheme_v3.ts +55 -46
  83. package/src/css/components/breadcrumbs/breadcrumbs.ts +2 -2
  84. package/src/css/components/dialog/dialog.ts +8 -9
  85. package/src/css/components/dialog/rules.ts +0 -2
  86. package/src/css/components/menu/menu.ts +3 -3
  87. package/src/css/components/skeleton/rules.ts +0 -1
  88. package/src/css/components/skeleton/skeleton.ts +7 -7
  89. package/src/css/components/skeleton/types.ts +1 -1
  90. package/src/css/components/toast/rules.ts +0 -1
  91. package/src/css/components/toast/toast.ts +6 -6
  92. package/src/css/components/tree/tree.ts +2 -2
  93. package/src/css/composeClassNames.ts +5 -9
  94. package/src/css/index.ts +2 -3
  95. package/src/css/primitives/_arrow/_arrow.ts +6 -6
  96. package/src/css/primitives/_arrow/{_arrow.style.ts → rules.ts} +5 -7
  97. package/src/css/primitives/_input/input.ts +12 -12
  98. package/src/css/primitives/_input/{_input.style.ts → rules.ts} +20 -19
  99. package/src/css/primitives/_input/types.ts +1 -1
  100. package/src/css/primitives/_selectable/_contants.ts +1 -1
  101. package/src/css/primitives/_selectable/{_selectable.style.ts → rules.ts} +3 -6
  102. package/src/css/primitives/_selectable/selectable.ts +3 -3
  103. package/src/css/primitives/_selectable/types.ts +1 -1
  104. package/src/css/primitives/avatar/avatar.ts +7 -7
  105. package/src/css/primitives/badge/badge.ts +3 -3
  106. package/src/css/primitives/badge/rules.ts +22 -0
  107. package/src/css/primitives/badge/types.ts +1 -1
  108. package/src/css/primitives/box/box.ts +6 -10
  109. package/src/css/primitives/box/rules.ts +28 -0
  110. package/src/css/primitives/box/types.ts +7 -5
  111. package/src/css/primitives/button/_constants.ts +1 -1
  112. package/src/css/primitives/button/button.ts +3 -3
  113. package/src/css/primitives/button/rules.ts +10 -19
  114. package/src/css/primitives/card/_constants.ts +2 -2
  115. package/src/css/primitives/card/card.ts +6 -4
  116. package/src/css/primitives/card/rules.ts +471 -0
  117. package/src/css/primitives/card/types.ts +2 -1
  118. package/src/css/primitives/checkbox/checkbox.ts +3 -3
  119. package/src/css/primitives/code/code.ts +3 -3
  120. package/src/css/primitives/code/types.ts +1 -1
  121. package/src/css/primitives/container/container.ts +3 -3
  122. package/src/css/primitives/heading/heading.ts +5 -5
  123. package/src/css/primitives/heading/types.ts +1 -1
  124. package/src/css/primitives/kbd/kbd.ts +3 -3
  125. package/src/css/primitives/kbd/types.ts +1 -1
  126. package/src/css/primitives/label/label.ts +3 -3
  127. package/src/css/primitives/label/types.ts +1 -1
  128. package/src/css/primitives/popover/popover.ts +2 -6
  129. package/src/css/primitives/radio/radio.ts +2 -2
  130. package/src/css/primitives/select/select.ts +2 -3
  131. package/src/css/primitives/spinner/rules.ts +0 -1
  132. package/src/css/primitives/spinner/spinner.ts +3 -3
  133. package/src/css/primitives/switch/switch.ts +6 -6
  134. package/src/css/primitives/text/text.ts +3 -3
  135. package/src/css/primitives/text/types.ts +1 -1
  136. package/src/css/primitives/textArea/textArea.ts +1 -2
  137. package/src/css/primitives/textInput/textInput.ts +2 -2
  138. package/src/css/primitives/tooltip/tooltip.ts +3 -3
  139. package/src/css/rules.ts +113 -0
  140. package/src/css/styles/border/border.ts +22 -0
  141. package/src/css/styles/border/rules.ts +24 -0
  142. package/src/css/styles/display/rules.ts +62 -0
  143. package/src/css/styles/flex/flex.ts +20 -0
  144. package/src/css/styles/flex/rules.ts +28 -0
  145. package/src/css/{aspects → styles}/flexItem/flexItem.ts +1 -1
  146. package/src/css/styles/flexItem/rules.ts +12 -0
  147. package/src/css/{aspects → styles}/flexItem/types.ts +1 -17
  148. package/src/css/{aspects → styles}/font/font.ts +7 -2
  149. package/src/css/{aspects/font/font.style.ts → styles/font/rules.ts} +25 -28
  150. package/src/css/styles/gap/rules.ts +34 -0
  151. package/src/css/{aspects → styles}/grid/grid.ts +2 -2
  152. package/src/css/styles/grid/rules.ts +146 -0
  153. package/src/css/{aspects → styles}/grid/types.ts +2 -2
  154. package/src/css/styles/gridItem/rules.ts +96 -0
  155. package/src/css/{aspects → styles}/index.ts +0 -2
  156. package/src/css/styles/inset/rules.ts +16 -0
  157. package/src/css/styles/margin/rules.ts +64 -0
  158. package/src/css/styles/maxWidth/rules.ts +13 -0
  159. package/src/css/{aspects → styles}/maxWidth/types.ts +1 -1
  160. package/src/css/styles/outline/rules.ts +7 -0
  161. package/src/css/styles/overflow/rules.ts +9 -0
  162. package/src/css/styles/padding/rules.ts +62 -0
  163. package/src/css/styles/pointerEvents/rules.ts +11 -0
  164. package/src/css/{aspects → styles}/position/position.ts +1 -1
  165. package/src/css/styles/position/rules.ts +24 -0
  166. package/src/css/styles/radius/rules.ts +13 -0
  167. package/src/css/{aspects → styles}/radius/types.ts +1 -1
  168. package/src/css/styles/shadow/rules.ts +53 -0
  169. package/src/css/styles/textOverflow/rules.ts +17 -0
  170. package/src/css/styles/textOverflow/textOverflow.ts +6 -0
  171. package/src/css/{aspects → styles}/width/rules.ts +0 -1
  172. package/src/css/{aspects → styles}/width/types.ts +1 -1
  173. package/src/css/types.ts +253 -311
  174. package/src/css/utils/srOnly/rules.ts +11 -0
  175. package/src/css/varNames.ts +81 -128
  176. package/src/css/vars.ts +76 -122
  177. package/src/theme/_constants.ts +1 -1
  178. package/src/theme/_types.ts +2 -2
  179. package/src/theme/build/buildTheme.ts +2 -2
  180. package/src/theme/defaults/colorTokens.ts +2 -2
  181. package/src/theme/defaults/config.ts +1 -1
  182. package/src/theme/defaults/fonts.ts +4 -4
  183. package/src/theme/palette/constants.ts +3 -1
  184. package/src/theme/palette/types.ts +12 -0
  185. package/src/theme/v3/buildTheme_v3.ts +2 -1
  186. package/src/theme/v3/color/buildColor_v3.ts +38 -43
  187. package/src/theme/v3/color/card.ts +38 -43
  188. package/src/theme/v3/color/color.ts +38 -42
  189. package/src/theme/v3/defaults.ts +72 -69
  190. package/src/theme/v3/resolveTokens.ts +38 -43
  191. package/src/theme/v3/types.ts +3 -0
  192. package/src/theme/versioning/themeColor_v3_v2.ts +1 -1
  193. package/src/css/_comp.test.ts +0 -7
  194. package/src/css/_comp.ts +0 -11
  195. package/src/css/_mergeStyles.ts +0 -31
  196. package/src/css/_responsiveRule.ts +0 -38
  197. package/src/css/aspects/border/border.style.ts +0 -13
  198. package/src/css/aspects/border/border.ts +0 -14
  199. package/src/css/aspects/display/display.style.ts +0 -34
  200. package/src/css/aspects/flex/flex.style.ts +0 -30
  201. package/src/css/aspects/flex/flex.ts +0 -13
  202. package/src/css/aspects/flex/flexAlign.style.ts +0 -12
  203. package/src/css/aspects/flex/flexDirection.style.ts +0 -11
  204. package/src/css/aspects/flex/flexJustify.style.ts +0 -13
  205. package/src/css/aspects/flex/flexWrap.style.ts +0 -10
  206. package/src/css/aspects/flexItem/flex.style.ts +0 -22
  207. package/src/css/aspects/gap/gap.style.ts +0 -21
  208. package/src/css/aspects/grid/gridAutoColumns.style.ts +0 -11
  209. package/src/css/aspects/grid/gridAutoFlow.style.ts +0 -11
  210. package/src/css/aspects/grid/gridAutoRows.style.ts +0 -11
  211. package/src/css/aspects/grid/gridColumns.style.ts +0 -18
  212. package/src/css/aspects/grid/gridRows.style.ts +0 -18
  213. package/src/css/aspects/gridItem/gridColumn.style.ts +0 -20
  214. package/src/css/aspects/gridItem/gridColumnEnd.style.ts +0 -20
  215. package/src/css/aspects/gridItem/gridColumnStart.style.ts +0 -20
  216. package/src/css/aspects/gridItem/gridRow.style.ts +0 -20
  217. package/src/css/aspects/gridItem/gridRowEnd.style.ts +0 -20
  218. package/src/css/aspects/gridItem/gridRowStart.style.ts +0 -20
  219. package/src/css/aspects/height/height.style.ts +0 -9
  220. package/src/css/aspects/height/height.ts +0 -17
  221. package/src/css/aspects/height/index.ts +0 -1
  222. package/src/css/aspects/inset/inset.style.ts +0 -12
  223. package/src/css/aspects/margin/margin.style.ts +0 -46
  224. package/src/css/aspects/maxWidth/maxWidth.style.ts +0 -16
  225. package/src/css/aspects/minWidth/index.ts +0 -2
  226. package/src/css/aspects/minWidth/minWidth.style.ts +0 -13
  227. package/src/css/aspects/minWidth/minWidth.ts +0 -6
  228. package/src/css/aspects/minWidth/types.ts +0 -7
  229. package/src/css/aspects/outline/outline.style.ts +0 -9
  230. package/src/css/aspects/overflow/overflow.style.ts +0 -11
  231. package/src/css/aspects/padding/padding.style.ts +0 -46
  232. package/src/css/aspects/pointerEvents/pointerEvents.style.ts +0 -13
  233. package/src/css/aspects/position/position.style.ts +0 -12
  234. package/src/css/aspects/radius/radius.style.ts +0 -16
  235. package/src/css/aspects/shadow/shadow.style.ts +0 -49
  236. package/src/css/aspects/textOverflow/textOverflow.style.ts +0 -21
  237. package/src/css/aspects/textOverflow/textOverflow.ts +0 -6
  238. package/src/css/aspects/width/width.style.ts +0 -11
  239. package/src/css/compile/compileStyle.ts +0 -148
  240. package/src/css/components/breadcrumbs/breadcrumbs.style.ts +0 -9
  241. package/src/css/components/dialog/dialog.style.ts +0 -79
  242. package/src/css/components/menu/menu.style.ts +0 -17
  243. package/src/css/components/skeleton/skeleton.style.ts +0 -96
  244. package/src/css/components/toast/toast.style.ts +0 -20
  245. package/src/css/components/tree/tree.style.ts +0 -55
  246. package/src/css/constants.ts +0 -1
  247. package/src/css/primitives/_input/__workshop__/customInput.tsx +0 -16
  248. package/src/css/primitives/_input/__workshop__/index.ts +0 -14
  249. package/src/css/primitives/avatar/avatar.style.ts +0 -175
  250. package/src/css/primitives/badge/badge.style.ts +0 -22
  251. package/src/css/primitives/box/box.style.ts +0 -31
  252. package/src/css/primitives/button/button.style.ts +0 -201
  253. package/src/css/primitives/card/card.style.ts +0 -270
  254. package/src/css/primitives/checkbox/checkbox.style.ts +0 -154
  255. package/src/css/primitives/code/code.style.ts +0 -62
  256. package/src/css/primitives/container/container.style.ts +0 -10
  257. package/src/css/primitives/heading/heading.style.ts +0 -47
  258. package/src/css/primitives/kbd/kbd.style.ts +0 -22
  259. package/src/css/primitives/label/label.style.ts +0 -48
  260. package/src/css/primitives/popover/popover.style.ts +0 -5
  261. package/src/css/primitives/radio/radio.style.ts +0 -123
  262. package/src/css/primitives/select/select.style.ts +0 -24
  263. package/src/css/primitives/spinner/spinner.style.ts +0 -22
  264. package/src/css/primitives/stack/stack.style.ts +0 -9
  265. package/src/css/primitives/stack/stack.ts +0 -6
  266. package/src/css/primitives/switch/switch.style.ts +0 -94
  267. package/src/css/primitives/text/text.style.ts +0 -64
  268. package/src/css/primitives/textArea/textArea.style.ts +0 -9
  269. package/src/css/primitives/textInput/textInput.style.ts +0 -167
  270. package/src/css/primitives/token/token.style.ts +0 -49
  271. package/src/css/primitives/tooltip/tooltip.style.ts +0 -21
  272. package/src/css/scopeClassName.ts +0 -6
  273. package/src/css/system.style.ts +0 -158
  274. package/src/css/utils/srOnly/srOnly.style.ts +0 -14
  275. package/src/ui/_compat/theme/themeContext.ts +0 -10
  276. package/src/ui/hooks/useMatchMedia.ts +0 -28
  277. package/src/ui/primitives/card/cardContext.ts +0 -10
  278. package/src/ui/primitives/card/cardProvider.tsx +0 -19
  279. package/src/ui/primitives/card/index.ts +0 -4
  280. package/src/ui/primitives/card/types.ts +0 -27
  281. package/src/ui/primitives/card/useCard.ts +0 -7
  282. package/src/ui/primitives/stack/index.ts +0 -1
  283. /package/src/{ui → core}/_compat/index.ts +0 -0
  284. /package/src/{ui → core}/_compat/styles/_responsive.ts +0 -0
  285. /package/src/{ui → core}/_compat/styles/index.ts +0 -0
  286. /package/src/{ui → core}/_compat/theme/index.ts +0 -0
  287. /package/src/{ui → core}/_compat/theme/theme.test.tsx +0 -0
  288. /package/src/{ui → core}/_compat/theme/themeColorProvider.tsx +0 -0
  289. /package/src/{ui → core}/_compat/theme/types.ts +0 -0
  290. /package/src/{ui → core}/_compat/theme/useRootTheme.ts +0 -0
  291. /package/src/{ui → core}/_compat/theme/useTheme.ts +0 -0
  292. /package/src/{ui → core}/components/autocomplete/__mocks__/apiStore.ts +0 -0
  293. /package/src/{ui → core}/components/autocomplete/__mocks__/countries.ts +0 -0
  294. /package/src/{ui → core}/components/autocomplete/__workshop__/custom.tsx +0 -0
  295. /package/src/{ui → core}/components/autocomplete/__workshop__/example.tsx +0 -0
  296. /package/src/{ui → core}/components/autocomplete/__workshop__/focusAndBlur.tsx +0 -0
  297. /package/src/{ui → core}/components/autocomplete/__workshop__/index.ts +0 -0
  298. /package/src/{ui → core}/components/autocomplete/__workshop__/types.ts +0 -0
  299. /package/src/{ui → core}/components/autocomplete/autocompleteOption.tsx +0 -0
  300. /package/src/{ui → core}/components/autocomplete/autocompleteReducer.ts +0 -0
  301. /package/src/{ui → core}/components/autocomplete/constants.ts +0 -0
  302. /package/src/{ui → core}/components/autocomplete/index.ts +0 -0
  303. /package/src/{ui → core}/components/autocomplete/types.ts +0 -0
  304. /package/src/{ui → core}/components/breadcrumbs/__workshop__/example.tsx +0 -0
  305. /package/src/{ui → core}/components/breadcrumbs/__workshop__/index.ts +0 -0
  306. /package/src/{ui → core}/components/breadcrumbs/breadcrumbs.tsx +0 -0
  307. /package/src/{ui → core}/components/breadcrumbs/index.ts +0 -0
  308. /package/src/{ui → core}/components/dialog/__workshop__/activate.tsx +0 -0
  309. /package/src/{ui → core}/components/dialog/__workshop__/autoFocus.tsx +0 -0
  310. /package/src/{ui → core}/components/dialog/__workshop__/index.ts +0 -0
  311. /package/src/{ui → core}/components/dialog/__workshop__/layering.tsx +0 -0
  312. /package/src/{ui → core}/components/dialog/__workshop__/nested.tsx +0 -0
  313. /package/src/{ui → core}/components/dialog/__workshop__/onScroll.tsx +0 -0
  314. /package/src/{ui → core}/components/dialog/__workshop__/panes.tsx +0 -0
  315. /package/src/{ui → core}/components/dialog/__workshop__/position.tsx +0 -0
  316. /package/src/{ui → core}/components/dialog/__workshop__/props.tsx +0 -0
  317. /package/src/{ui → core}/components/dialog/__workshop__/provider.tsx +0 -0
  318. /package/src/{ui → core}/components/dialog/__workshop__/wrapped.tsx +0 -0
  319. /package/src/{ui → core}/components/dialog/dialogContext.ts +0 -0
  320. /package/src/{ui → core}/components/dialog/dialogProvider.tsx +0 -0
  321. /package/src/{ui → core}/components/dialog/index.ts +0 -0
  322. /package/src/{ui → core}/components/dialog/useDialog.ts +0 -0
  323. /package/src/{ui → core}/components/hotkeys/__workshop__/index.ts +0 -0
  324. /package/src/{ui → core}/components/hotkeys/__workshop__/plain.tsx +0 -0
  325. /package/src/{ui → core}/components/hotkeys/index.ts +0 -0
  326. /package/src/{ui → core}/components/index.ts +0 -0
  327. /package/src/{ui → core}/components/menu/__workshop__/asComponent.tsx +0 -0
  328. /package/src/{ui → core}/components/menu/__workshop__/avatarMenu.tsx +0 -0
  329. /package/src/{ui → core}/components/menu/__workshop__/closableMenuButton.tsx +0 -0
  330. /package/src/{ui → core}/components/menu/__workshop__/constrainedInBoundary.tsx +0 -0
  331. /package/src/{ui → core}/components/menu/__workshop__/customMenuItem.tsx +0 -0
  332. /package/src/{ui → core}/components/menu/__workshop__/customSelectedState.tsx +0 -0
  333. /package/src/{ui → core}/components/menu/__workshop__/disableFocusOnClose.tsx +0 -0
  334. /package/src/{ui → core}/components/menu/__workshop__/groups.tsx +0 -0
  335. /package/src/{ui → core}/components/menu/__workshop__/index.ts +0 -0
  336. /package/src/{ui → core}/components/menu/__workshop__/menuButton.tsx +0 -0
  337. /package/src/{ui → core}/components/menu/__workshop__/menuGroupRight.tsx +0 -0
  338. /package/src/{ui → core}/components/menu/__workshop__/nestedMenu.tsx +0 -0
  339. /package/src/{ui → core}/components/menu/__workshop__/onCloseMenuButton.tsx +0 -0
  340. /package/src/{ui → core}/components/menu/__workshop__/selectedItem.tsx +0 -0
  341. /package/src/{ui → core}/components/menu/__workshop__/shouldFocus.tsx +0 -0
  342. /package/src/{ui → core}/components/menu/__workshop__/tones.tsx +0 -0
  343. /package/src/{ui → core}/components/menu/__workshop__/withoutArrow.tsx +0 -0
  344. /package/src/{ui → core}/components/menu/helpers.ts +0 -0
  345. /package/src/{ui → core}/components/menu/index.ts +0 -0
  346. /package/src/{ui → core}/components/menu/menu.test.tsx +0 -0
  347. /package/src/{ui → core}/components/menu/menu.tsx +0 -0
  348. /package/src/{ui → core}/components/menu/menuButton.tsx +0 -0
  349. /package/src/{ui → core}/components/menu/menuContext.ts +0 -0
  350. /package/src/{ui → core}/components/menu/menuDivider.tsx +0 -0
  351. /package/src/{ui → core}/components/menu/menuGroup.tsx +0 -0
  352. /package/src/{ui → core}/components/menu/menuItem.tsx +0 -0
  353. /package/src/{ui → core}/components/menu/useMenu.ts +0 -0
  354. /package/src/{ui → core}/components/menu/useMenuController.ts +0 -0
  355. /package/src/{ui → core}/components/skeleton/__workshop__/delay.tsx +0 -0
  356. /package/src/{ui → core}/components/skeleton/__workshop__/index.ts +0 -0
  357. /package/src/{ui → core}/components/skeleton/__workshop__/skeleton.tsx +0 -0
  358. /package/src/{ui → core}/components/skeleton/index.ts +0 -0
  359. /package/src/{ui → core}/components/skeleton/skeleton.tsx +0 -0
  360. /package/src/{ui → core}/components/skeleton/textSkeleton.tsx +0 -0
  361. /package/src/{ui → core}/components/tab/__workshop__/example.tsx +0 -0
  362. /package/src/{ui → core}/components/tab/__workshop__/index.ts +0 -0
  363. /package/src/{ui → core}/components/tab/index.ts +0 -0
  364. /package/src/{ui → core}/components/tab/tab.tsx +0 -0
  365. /package/src/{ui → core}/components/tab/tabList.tsx +0 -0
  366. /package/src/{ui → core}/components/tab/tabPanel.tsx +0 -0
  367. /package/src/{ui → core}/components/toast/__workshop__/hook.tsx +0 -0
  368. /package/src/{ui → core}/components/toast/__workshop__/index.ts +0 -0
  369. /package/src/{ui → core}/components/toast/__workshop__/toast.tsx +0 -0
  370. /package/src/{ui → core}/components/toast/index.ts +0 -0
  371. /package/src/{ui → core}/components/toast/toast.test.tsx +0 -0
  372. /package/src/{ui → core}/components/toast/toastContext.ts +0 -0
  373. /package/src/{ui → core}/components/toast/toastLayer.tsx +0 -0
  374. /package/src/{ui → core}/components/toast/toastProvider.tsx +0 -0
  375. /package/src/{ui → core}/components/toast/toastState.ts +0 -0
  376. /package/src/{ui → core}/components/toast/types.ts +0 -0
  377. /package/src/{ui → core}/components/toast/useToast.ts +0 -0
  378. /package/src/{ui → core}/components/tree/__workshop__/basic.perf.ts +0 -0
  379. /package/src/{ui → core}/components/tree/__workshop__/basic.tsx +0 -0
  380. /package/src/{ui → core}/components/tree/__workshop__/index.ts +0 -0
  381. /package/src/{ui → core}/components/tree/__workshop__/tabFromElement.tsx +0 -0
  382. /package/src/{ui → core}/components/tree/helpers.ts +0 -0
  383. /package/src/{ui → core}/components/tree/index.ts +0 -0
  384. /package/src/{ui → core}/components/tree/tree.tsx +0 -0
  385. /package/src/{ui → core}/components/tree/treeContext.ts +0 -0
  386. /package/src/{ui → core}/components/tree/treeGroup.tsx +0 -0
  387. /package/src/{ui → core}/components/tree/treeItem.tsx +0 -0
  388. /package/src/{ui → core}/components/tree/types.ts +0 -0
  389. /package/src/{ui → core}/components/tree/useTree.ts +0 -0
  390. /package/src/{ui → core}/global.ts +0 -0
  391. /package/src/{ui → core}/helpers/animation.ts +0 -0
  392. /package/src/{ui → core}/helpers/element.ts +0 -0
  393. /package/src/{ui → core}/helpers/focus.ts +0 -0
  394. /package/src/{ui → core}/helpers/index.ts +0 -0
  395. /package/src/{ui → core}/helpers/props.ts +0 -0
  396. /package/src/{ui → core}/helpers/scroll.ts +0 -0
  397. /package/src/{ui → core}/hooks/index.ts +0 -0
  398. /package/src/{ui → core}/hooks/useArrayProp.ts +0 -0
  399. /package/src/{ui → core}/hooks/useClickOutside.test.tsx +0 -0
  400. /package/src/{ui → core}/hooks/useClickOutside.ts +0 -0
  401. /package/src/{ui → core}/hooks/useClickOutsideEvent.test.tsx +0 -0
  402. /package/src/{ui → core}/hooks/useClickOutsideEvent.ts +0 -0
  403. /package/src/{ui → core}/hooks/useCustomValidity.ts +0 -0
  404. /package/src/{ui → core}/hooks/useDelayed.test.ts +0 -0
  405. /package/src/{ui → core}/hooks/useDelayedState.ts +0 -0
  406. /package/src/{ui → core}/hooks/useElementRect/__workshop__/example.tsx +0 -0
  407. /package/src/{ui → core}/hooks/useElementRect/__workshop__/index.ts +0 -0
  408. /package/src/{ui → core}/hooks/useElementRect/index.ts +0 -0
  409. /package/src/{ui → core}/hooks/useElementRect/useElementRect.ts +0 -0
  410. /package/src/{ui → core}/hooks/useElementSize.ts +0 -0
  411. /package/src/{ui → core}/hooks/useForwardedRef.ts +0 -0
  412. /package/src/{ui → core}/hooks/useGlobalKeyDown.ts +0 -0
  413. /package/src/{ui → core}/hooks/useIsomorphicEffect.ts +0 -0
  414. /package/src/{ui → core}/hooks/useMediaIndex/__workshop__/index.ts +0 -0
  415. /package/src/{ui → core}/hooks/useMediaIndex/__workshop__/test.tsx +0 -0
  416. /package/src/{ui → core}/hooks/useMediaIndex/index.ts +0 -0
  417. /package/src/{ui → core}/hooks/useMediaIndex/useMediaIndex.test.tsx +0 -0
  418. /package/src/{ui → core}/hooks/useMounted.ts +0 -0
  419. /package/src/{ui → core}/hooks/usePrefersDark.hydration.test.tsx +0 -0
  420. /package/src/{ui → core}/hooks/usePrefersDark.test.tsx +0 -0
  421. /package/src/{ui → core}/hooks/usePrefersDark.ts +0 -0
  422. /package/src/{ui → core}/hooks/usePrefersReducedMotion.hydration.test.tsx +0 -0
  423. /package/src/{ui → core}/hooks/usePrefersReducedMotion.test.tsx +0 -0
  424. /package/src/{ui → core}/hooks/usePrefersReducedMotion.ts +0 -0
  425. /package/src/{ui → core}/index.ts +0 -0
  426. /package/src/{ui → core}/lib/createGlobalScopedContext.ts +0 -0
  427. /package/src/{ui → core}/lib/globalScope.ts +0 -0
  428. /package/src/{ui → core}/lib/isRecord.ts +0 -0
  429. /package/src/{ui → core}/middleware/origin.ts +0 -0
  430. /package/src/{ui → core}/observers/elementSizeObserver.ts +0 -0
  431. /package/src/{ui → core}/observers/index.ts +0 -0
  432. /package/src/{ui → core}/observers/resizeObserver.ts +0 -0
  433. /package/src/{ui → core}/primitives/_selectable/index.ts +0 -0
  434. /package/src/{ui → core}/primitives/_selectable/selectable.tsx +0 -0
  435. /package/src/{ui → core}/primitives/avatar/__workshop__/asButton.tsx +0 -0
  436. /package/src/{ui → core}/primitives/avatar/__workshop__/index.ts +0 -0
  437. /package/src/{ui → core}/primitives/avatar/__workshop__/stack.tsx +0 -0
  438. /package/src/{ui → core}/primitives/avatar/__workshop__/withinButton.tsx +0 -0
  439. /package/src/{ui → core}/primitives/avatar/__workshop__/withinMenuItem.tsx +0 -0
  440. /package/src/{ui → core}/primitives/avatar/avatar.tsx +0 -0
  441. /package/src/{ui → core}/primitives/avatar/avatarCounter.tsx +0 -0
  442. /package/src/{ui → core}/primitives/avatar/avatarStack.tsx +0 -0
  443. /package/src/{ui → core}/primitives/avatar/index.ts +0 -0
  444. /package/src/{ui → core}/primitives/avatar/types.ts +0 -0
  445. /package/src/{ui → core}/primitives/badge/__workshop__/index.ts +0 -0
  446. /package/src/{ui → core}/primitives/badge/__workshop__/props.tsx +0 -0
  447. /package/src/{ui → core}/primitives/badge/__workshop__/tones.tsx +0 -0
  448. /package/src/{ui → core}/primitives/badge/badge.test.tsx +0 -0
  449. /package/src/{ui → core}/primitives/badge/badge.tsx +0 -0
  450. /package/src/{ui → core}/primitives/badge/index.ts +0 -0
  451. /package/src/{ui → core}/primitives/badge/types.ts +0 -0
  452. /package/src/{ui → core}/primitives/box/__workshop__/index.ts +0 -0
  453. /package/src/{ui → core}/primitives/box/__workshop__/props.tsx +0 -0
  454. /package/src/{ui → core}/primitives/box/__workshop__/responsive.tsx +0 -0
  455. /package/src/{ui → core}/primitives/box/index.ts +0 -0
  456. /package/src/{ui → core}/primitives/button/__workshop__/custom.tsx +0 -0
  457. /package/src/{ui → core}/primitives/button/__workshop__/customIcons.tsx +0 -0
  458. /package/src/{ui → core}/primitives/button/__workshop__/disabled.tsx +0 -0
  459. /package/src/{ui → core}/primitives/button/__workshop__/index.ts +0 -0
  460. /package/src/{ui → core}/primitives/button/__workshop__/mixedChildren.tsx +0 -0
  461. /package/src/{ui → core}/primitives/button/__workshop__/props.tsx +0 -0
  462. /package/src/{ui → core}/primitives/button/__workshop__/sanityUploadButton.tsx +0 -0
  463. /package/src/{ui → core}/primitives/button/__workshop__/stacked.tsx +0 -0
  464. /package/src/{ui → core}/primitives/button/__workshop__/styled1.tsx +0 -0
  465. /package/src/{ui → core}/primitives/button/__workshop__/styled2.tsx +0 -0
  466. /package/src/{ui → core}/primitives/button/__workshop__/uploadButton.tsx +0 -0
  467. /package/src/{ui → core}/primitives/button/button.test.tsx +0 -0
  468. /package/src/{ui → core}/primitives/button/index.ts +0 -0
  469. /package/src/{ui → core}/primitives/card/__workshop__/allTones.tsx +0 -0
  470. /package/src/{ui → core}/primitives/card/__workshop__/asButton.tsx +0 -0
  471. /package/src/{ui → core}/primitives/card/__workshop__/asComponent.tsx +0 -0
  472. /package/src/{ui → core}/primitives/card/__workshop__/checkered.tsx +0 -0
  473. /package/src/{ui → core}/primitives/card/__workshop__/index.ts +0 -0
  474. /package/src/{ui → core}/primitives/card/__workshop__/interactive.tsx +0 -0
  475. /package/src/{ui → core}/primitives/card/__workshop__/listNavigation.tsx +0 -0
  476. /package/src/{ui → core}/primitives/card/__workshop__/props.tsx +0 -0
  477. /package/src/{ui → core}/primitives/card/__workshop__/selected.tsx +0 -0
  478. /package/src/{ui → core}/primitives/card/__workshop__/styled.tsx +0 -0
  479. /package/src/{ui → core}/primitives/checkbox/__workshop__/example.tsx +0 -0
  480. /package/src/{ui → core}/primitives/checkbox/__workshop__/index.ts +0 -0
  481. /package/src/{ui → core}/primitives/checkbox/__workshop__/props.tsx +0 -0
  482. /package/src/{ui → core}/primitives/checkbox/__workshop__/readOnly.tsx +0 -0
  483. /package/src/{ui → core}/primitives/checkbox/__workshop__/tones.tsx +0 -0
  484. /package/src/{ui → core}/primitives/checkbox/checkbox.tsx +0 -0
  485. /package/src/{ui → core}/primitives/checkbox/index.ts +0 -0
  486. /package/src/{ui → core}/primitives/code/__workshop__/index.ts +0 -0
  487. /package/src/{ui → core}/primitives/code/__workshop__/opticalAlignment.tsx +0 -0
  488. /package/src/{ui → core}/primitives/code/__workshop__/props.tsx +0 -0
  489. /package/src/{ui → core}/primitives/code/index.ts +0 -0
  490. /package/src/{ui → core}/primitives/code/refractor.tsx +0 -0
  491. /package/src/{ui → core}/primitives/container/__workshop__/example.tsx +0 -0
  492. /package/src/{ui → core}/primitives/container/__workshop__/index.ts +0 -0
  493. /package/src/{ui → core}/primitives/container/container.tsx +0 -0
  494. /package/src/{ui → core}/primitives/container/index.ts +0 -0
  495. /package/src/{ui → core}/primitives/container/types.ts +0 -0
  496. /package/src/{ui → core}/primitives/flex/__workshop__/example.tsx +0 -0
  497. /package/src/{ui → core}/primitives/flex/__workshop__/gap.tsx +0 -0
  498. /package/src/{ui → core}/primitives/flex/__workshop__/index.ts +0 -0
  499. /package/src/{ui → core}/primitives/flex/flex.tsx +0 -0
  500. /package/src/{ui → core}/primitives/flex/index.ts +0 -0
  501. /package/src/{ui → core}/primitives/grid/__workshop__/index.ts +0 -0
  502. /package/src/{ui → core}/primitives/grid/__workshop__/responsive.tsx +0 -0
  503. /package/src/{ui → core}/primitives/grid/grid.tsx +0 -0
  504. /package/src/{ui → core}/primitives/grid/index.ts +0 -0
  505. /package/src/{ui → core}/primitives/heading/__workshop__/index.ts +0 -0
  506. /package/src/{ui → core}/primitives/heading/__workshop__/opticalAlignment.tsx +0 -0
  507. /package/src/{ui → core}/primitives/heading/__workshop__/plain.tsx +0 -0
  508. /package/src/{ui → core}/primitives/heading/index.ts +0 -0
  509. /package/src/{ui → core}/primitives/index.ts +0 -0
  510. /package/src/{ui → core}/primitives/inline/__workshop__/index.ts +0 -0
  511. /package/src/{ui → core}/primitives/inline/__workshop__/plain.tsx +0 -0
  512. /package/src/{ui → core}/primitives/inline/index.ts +0 -0
  513. /package/src/{ui → core}/primitives/inline/inline.tsx +0 -0
  514. /package/src/{ui → core}/primitives/inline/types.ts +0 -0
  515. /package/src/{ui → core}/primitives/kbd/__workshop__/index.ts +0 -0
  516. /package/src/{ui → core}/primitives/kbd/__workshop__/plain.tsx +0 -0
  517. /package/src/{ui → core}/primitives/kbd/index.ts +0 -0
  518. /package/src/{ui → core}/primitives/label/__workshop__/index.ts +0 -0
  519. /package/src/{ui → core}/primitives/label/__workshop__/opticalAlignment.tsx +0 -0
  520. /package/src/{ui → core}/primitives/label/__workshop__/plain.tsx +0 -0
  521. /package/src/{ui → core}/primitives/label/index.ts +0 -0
  522. /package/src/{ui → core}/primitives/label/label.tsx +0 -0
  523. /package/src/{ui → core}/primitives/popover/__workshop__/AlignedStory.tsx +0 -0
  524. /package/src/{ui → core}/primitives/popover/__workshop__/MarginsStory.tsx +0 -0
  525. /package/src/{ui → core}/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +0 -0
  526. /package/src/{ui → core}/primitives/popover/__workshop__/PlainStory.tsx +0 -0
  527. /package/src/{ui → core}/primitives/popover/__workshop__/RecursiveStory.tsx +0 -0
  528. /package/src/{ui → core}/primitives/popover/__workshop__/TestStory.tsx +0 -0
  529. /package/src/{ui → core}/primitives/popover/__workshop__/index.ts +0 -0
  530. /package/src/{ui → core}/primitives/popover/constants.ts +0 -0
  531. /package/src/{ui → core}/primitives/popover/floating-ui/size.ts +0 -0
  532. /package/src/{ui → core}/primitives/popover/helpers.ts +0 -0
  533. /package/src/{ui → core}/primitives/popover/index.ts +0 -0
  534. /package/src/{ui → core}/primitives/popover/types.ts +0 -0
  535. /package/src/{ui → core}/primitives/radio/__workshop__/example.tsx +0 -0
  536. /package/src/{ui → core}/primitives/radio/__workshop__/index.ts +0 -0
  537. /package/src/{ui → core}/primitives/radio/__workshop__/plain.tsx +0 -0
  538. /package/src/{ui → core}/primitives/radio/index.ts +0 -0
  539. /package/src/{ui → core}/primitives/radio/radio.tsx +0 -0
  540. /package/src/{ui → core}/primitives/select/__workshop__/index.ts +0 -0
  541. /package/src/{ui → core}/primitives/select/__workshop__/plain.tsx +0 -0
  542. /package/src/{ui → core}/primitives/select/__workshop__/readOnly.tsx +0 -0
  543. /package/src/{ui → core}/primitives/select/index.ts +0 -0
  544. /package/src/{ui → core}/primitives/spinner/__workshop__/Props.tsx +0 -0
  545. /package/src/{ui → core}/primitives/spinner/__workshop__/index.ts +0 -0
  546. /package/src/{ui → core}/primitives/spinner/animatedSpinnerIcon.tsx +0 -0
  547. /package/src/{ui → core}/primitives/spinner/index.ts +0 -0
  548. /package/src/{ui → core}/primitives/spinner/spinner.tsx +0 -0
  549. /package/src/{ui → core}/primitives/stack/__workshop__/index.ts +0 -0
  550. /package/src/{ui → core}/primitives/stack/__workshop__/plain.tsx +0 -0
  551. /package/src/{css → core}/primitives/stack/index.ts +0 -0
  552. /package/src/{ui → core}/primitives/switch/__workshop__/example.tsx +0 -0
  553. /package/src/{ui → core}/primitives/switch/__workshop__/index.ts +0 -0
  554. /package/src/{ui → core}/primitives/switch/__workshop__/props.tsx +0 -0
  555. /package/src/{ui → core}/primitives/switch/index.ts +0 -0
  556. /package/src/{ui → core}/primitives/switch/switch.tsx +0 -0
  557. /package/src/{ui → core}/primitives/text/__workshop__/colored.tsx +0 -0
  558. /package/src/{ui → core}/primitives/text/__workshop__/example.tsx +0 -0
  559. /package/src/{ui → core}/primitives/text/__workshop__/index.ts +0 -0
  560. /package/src/{ui → core}/primitives/text/__workshop__/opticalAlignment.tsx +0 -0
  561. /package/src/{ui → core}/primitives/text/index.ts +0 -0
  562. /package/src/{ui → core}/primitives/textArea/__workshop__/index.ts +0 -0
  563. /package/src/{ui → core}/primitives/textArea/__workshop__/plain.tsx +0 -0
  564. /package/src/{ui → core}/primitives/textArea/index.ts +0 -0
  565. /package/src/{ui → core}/primitives/textArea/textArea.tsx +0 -0
  566. /package/src/{ui → core}/primitives/textInput/__workshop__/clearButton.tsx +0 -0
  567. /package/src/{ui → core}/primitives/textInput/__workshop__/customValidity.tsx +0 -0
  568. /package/src/{ui → core}/primitives/textInput/__workshop__/index.ts +0 -0
  569. /package/src/{ui → core}/primitives/textInput/__workshop__/plain.tsx +0 -0
  570. /package/src/{ui → core}/primitives/textInput/__workshop__/readOnly.tsx +0 -0
  571. /package/src/{ui → core}/primitives/textInput/__workshop__/states.tsx +0 -0
  572. /package/src/{ui → core}/primitives/textInput/__workshop__/tones.tsx +0 -0
  573. /package/src/{ui → core}/primitives/textInput/__workshop__/typed.tsx +0 -0
  574. /package/src/{ui → core}/primitives/textInput/index.ts +0 -0
  575. /package/src/{ui → core}/primitives/tooltip/__workshop__/customPortal.tsx +0 -0
  576. /package/src/{ui → core}/primitives/tooltip/__workshop__/index.ts +0 -0
  577. /package/src/{ui → core}/primitives/tooltip/__workshop__/overflowingBoundary.tsx +0 -0
  578. /package/src/{ui → core}/primitives/tooltip/__workshop__/props.tsx +0 -0
  579. /package/src/{ui → core}/primitives/tooltip/__workshop__/resizableBoundary.tsx +0 -0
  580. /package/src/{ui → core}/primitives/tooltip/constants.ts +0 -0
  581. /package/src/{ui → core}/primitives/tooltip/index.ts +0 -0
  582. /package/src/{ui → core}/primitives/tooltip/tooltipCard.tsx +0 -0
  583. /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/index.ts +0 -0
  584. /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupContext.tsx +0 -0
  585. /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +0 -0
  586. /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/types.ts +0 -0
  587. /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/useTooltipDelayGroup.ts +0 -0
  588. /package/src/{ui → core}/primitives/types.ts +0 -0
  589. /package/src/{ui → core}/types/avatar.ts +0 -0
  590. /package/src/{ui → core}/types/badge.ts +0 -0
  591. /package/src/{ui → core}/types/box.ts +0 -0
  592. /package/src/{ui → core}/types/button.ts +0 -0
  593. /package/src/{ui → core}/types/card.ts +0 -0
  594. /package/src/{ui → core}/types/dialog.ts +0 -0
  595. /package/src/{ui → core}/types/flex.ts +0 -0
  596. /package/src/{ui → core}/types/grid.ts +0 -0
  597. /package/src/{ui → core}/types/gridItem.ts +0 -0
  598. /package/src/{ui → core}/types/index.ts +0 -0
  599. /package/src/{ui → core}/types/placement.ts +0 -0
  600. /package/src/{ui → core}/types/popover.ts +0 -0
  601. /package/src/{ui → core}/types/props.ts +0 -0
  602. /package/src/{ui → core}/types/radius.ts +0 -0
  603. /package/src/{ui → core}/types/selectable.ts +0 -0
  604. /package/src/{ui → core}/types/text.ts +0 -0
  605. /package/src/{ui → core}/utils/arrow/arrow.tsx +0 -0
  606. /package/src/{ui → core}/utils/arrow/cmds.ts +0 -0
  607. /package/src/{ui → core}/utils/arrow/index.ts +0 -0
  608. /package/src/{ui → core}/utils/boundaryElement/__workshop__/index.ts +0 -0
  609. /package/src/{ui → core}/utils/boundaryElement/__workshop__/plain.tsx +0 -0
  610. /package/src/{ui → core}/utils/boundaryElement/boundaryElement.test.tsx +0 -0
  611. /package/src/{ui → core}/utils/boundaryElement/boundaryElementContext.ts +0 -0
  612. /package/src/{ui → core}/utils/boundaryElement/boundaryElementProvider.tsx +0 -0
  613. /package/src/{ui → core}/utils/boundaryElement/index.ts +0 -0
  614. /package/src/{ui → core}/utils/boundaryElement/types.ts +0 -0
  615. /package/src/{ui → core}/utils/boundaryElement/useBoundaryElement.ts +0 -0
  616. /package/src/{ui → core}/utils/conditionalWrapper/conditionalWrapper.tsx +0 -0
  617. /package/src/{ui → core}/utils/conditionalWrapper/index.ts +0 -0
  618. /package/src/{ui → core}/utils/elementQuery/__workshop__/customMedia.tsx +0 -0
  619. /package/src/{ui → core}/utils/elementQuery/__workshop__/index.ts +0 -0
  620. /package/src/{ui → core}/utils/elementQuery/elementQuery.tsx +0 -0
  621. /package/src/{ui → core}/utils/elementQuery/helpers.ts +0 -0
  622. /package/src/{ui → core}/utils/elementQuery/index.ts +0 -0
  623. /package/src/{ui → core}/utils/errorBoundary.tsx +0 -0
  624. /package/src/{ui → core}/utils/getElementRef.ts +0 -0
  625. /package/src/{ui → core}/utils/index.ts +0 -0
  626. /package/src/{ui → core}/utils/layer/__workshop__/_debug.tsx +0 -0
  627. /package/src/{ui → core}/utils/layer/__workshop__/index.ts +0 -0
  628. /package/src/{ui → core}/utils/layer/__workshop__/multipleRoots.tsx +0 -0
  629. /package/src/{ui → core}/utils/layer/__workshop__/nested.tsx +0 -0
  630. /package/src/{ui → core}/utils/layer/__workshop__/responsiveZOffset.tsx +0 -0
  631. /package/src/{ui → core}/utils/layer/getLayerContext.test.ts +0 -0
  632. /package/src/{ui → core}/utils/layer/getLayerContext.ts +0 -0
  633. /package/src/{ui → core}/utils/layer/index.ts +0 -0
  634. /package/src/{ui → core}/utils/layer/layer.test.tsx +0 -0
  635. /package/src/{ui → core}/utils/layer/layer.tsx +0 -0
  636. /package/src/{ui → core}/utils/layer/layerContext.ts +0 -0
  637. /package/src/{ui → core}/utils/layer/types.ts +0 -0
  638. /package/src/{ui → core}/utils/layer/useLayer.ts +0 -0
  639. /package/src/{ui → core}/utils/portal/__workshop__/index.ts +0 -0
  640. /package/src/{ui → core}/utils/portal/__workshop__/named.tsx +0 -0
  641. /package/src/{ui → core}/utils/portal/index.ts +0 -0
  642. /package/src/{ui → core}/utils/portal/portal.test.tsx +0 -0
  643. /package/src/{ui → core}/utils/portal/portalContext.ts +0 -0
  644. /package/src/{ui → core}/utils/portal/portalProvider.tsx +0 -0
  645. /package/src/{ui → core}/utils/portal/types.ts +0 -0
  646. /package/src/{ui → core}/utils/portal/usePortal.ts +0 -0
  647. /package/src/{ui → core}/utils/spanWithTextOverflow.tsx +0 -0
  648. /package/src/{ui → core}/utils/srOnly/index.ts +0 -0
  649. /package/src/{ui → core}/utils/srOnly/srOnly.tsx +0 -0
  650. /package/src/{ui → core}/utils/virtualList/__workshop__/changingProps.tsx +0 -0
  651. /package/src/{ui → core}/utils/virtualList/__workshop__/elementScroll.tsx +0 -0
  652. /package/src/{ui → core}/utils/virtualList/__workshop__/index.ts +0 -0
  653. /package/src/{ui → core}/utils/virtualList/__workshop__/infiniteList.tsx +0 -0
  654. /package/src/{ui → core}/utils/virtualList/__workshop__/windowScrolll.tsx +0 -0
  655. /package/src/{ui → core}/utils/virtualList/index.ts +0 -0
  656. /package/src/css/{aspects → styles}/border/index.ts +0 -0
  657. /package/src/css/{aspects → styles}/border/types.ts +0 -0
  658. /package/src/css/{aspects → styles}/display/display.ts +0 -0
  659. /package/src/css/{aspects → styles}/display/index.ts +0 -0
  660. /package/src/css/{aspects → styles}/display/types.ts +0 -0
  661. /package/src/css/{aspects → styles}/flex/index.ts +0 -0
  662. /package/src/css/{aspects → styles}/flex/types.ts +0 -0
  663. /package/src/css/{aspects → styles}/flexItem/index.ts +0 -0
  664. /package/src/css/{aspects → styles}/font/index.ts +0 -0
  665. /package/src/css/{aspects → styles}/font/types.ts +0 -0
  666. /package/src/css/{aspects → styles}/gap/gap.ts +0 -0
  667. /package/src/css/{aspects → styles}/gap/index.ts +0 -0
  668. /package/src/css/{aspects → styles}/gap/types.ts +0 -0
  669. /package/src/css/{aspects → styles}/grid/index.ts +0 -0
  670. /package/src/css/{aspects → styles}/gridItem/gridItem.ts +0 -0
  671. /package/src/css/{aspects → styles}/gridItem/index.ts +0 -0
  672. /package/src/css/{aspects → styles}/gridItem/types.ts +0 -0
  673. /package/src/css/{aspects → styles}/height/rules.ts +0 -0
  674. /package/src/css/{aspects → styles}/inset/index.ts +0 -0
  675. /package/src/css/{aspects → styles}/inset/inset.ts +0 -0
  676. /package/src/css/{aspects → styles}/inset/types.ts +0 -0
  677. /package/src/css/{aspects → styles}/margin/index.ts +0 -0
  678. /package/src/css/{aspects → styles}/margin/margin.ts +0 -0
  679. /package/src/css/{aspects → styles}/margin/types.ts +0 -0
  680. /package/src/css/{aspects → styles}/maxWidth/index.ts +0 -0
  681. /package/src/css/{aspects → styles}/maxWidth/maxWidth.ts +0 -0
  682. /package/src/css/{aspects → styles}/overflow/index.ts +0 -0
  683. /package/src/css/{aspects → styles}/overflow/overflow.ts +0 -0
  684. /package/src/css/{aspects → styles}/overflow/types.ts +0 -0
  685. /package/src/css/{aspects → styles}/padding/index.ts +0 -0
  686. /package/src/css/{aspects → styles}/padding/padding.ts +0 -0
  687. /package/src/css/{aspects → styles}/padding/types.ts +0 -0
  688. /package/src/css/{aspects → styles}/pointerEvents/index.ts +0 -0
  689. /package/src/css/{aspects → styles}/pointerEvents/pointerEvents.ts +0 -0
  690. /package/src/css/{aspects → styles}/pointerEvents/types.ts +0 -0
  691. /package/src/css/{aspects → styles}/position/index.ts +0 -0
  692. /package/src/css/{aspects → styles}/position/types.ts +0 -0
  693. /package/src/css/{aspects → styles}/radius/index.ts +0 -0
  694. /package/src/css/{aspects → styles}/radius/radius.ts +0 -0
  695. /package/src/css/{aspects → styles}/shadow/index.ts +0 -0
  696. /package/src/css/{aspects → styles}/shadow/shadow.ts +0 -0
  697. /package/src/css/{aspects → styles}/shadow/types.ts +0 -0
  698. /package/src/css/{aspects → styles}/textOverflow/index.ts +0 -0
  699. /package/src/css/{aspects → styles}/textOverflow/types.ts +0 -0
  700. /package/src/css/{aspects → styles}/width/index.ts +0 -0
  701. /package/src/css/{aspects → styles}/width/width.ts +0 -0
package/dist/theme.js CHANGED
@@ -1,7 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: !0 });
3
- var color = require("@sanity/color");
4
- const AVATAR_SIZE = [0, 1, 2, 3], CONTAINER = [0, 1, 2, 3, 4, 5, "auto"], RADIUS = [0, 1, 2, 3, 4, 5, 6, "full"], SPACE = [0, 0.5, 1, 2, 3, 4, 5, 6, 7, 8, 9], FONT_CODE_SIZE = [0, 1, 2, 3, 4], FONT_HEADING_SIZE = [0, 1, 2, 3, 4, 5], FONT_LABEL_SIZE = [0, 1, 2, 3, 4, 5], FONT_TEXT_SIZE = [0, 1, 2, 3, 4], SHADOW = [0, 1, 2, 3, 4, 5];
3
+ var v3_v2 = require("./_chunks-cjs/v3_v2.js"), color = require("@sanity/color");
4
+ function isColorBlendModeValue(str) {
5
+ return v3_v2.THEME_COLOR_BLEND_MODES.includes(str);
6
+ }
7
+ function isColorHueKey(str) {
8
+ return color.COLOR_HUES.includes(str);
9
+ }
10
+ function isColorTintKey(str) {
11
+ return color.COLOR_TINTS.includes(str);
12
+ }
13
+ function isColorButtonMode(str) {
14
+ return v3_v2.THEME_COLOR_BUTTON_MODES.includes(str);
15
+ }
16
+ const AVATAR_SIZE = [0, 1, 2, 3], CONTAINER = [0, 1, 2, 3, 4, 5], RADIUS = [0, 1, 2, 3, 4, 5, 6, "full"], SPACE = [0, 0.5, 1, 2, 3, 4, 5, 6, 7, 8, 9], FONT_CODE_SIZE = [0, 1, 2, 3, 4], FONT_HEADING_SIZE = [0, 1, 2, 3, 4, 5], FONT_LABEL_SIZE = [0, 1, 2, 3, 4, 5], FONT_TEXT_SIZE = [0, 1, 2, 3, 4], SHADOW = [0, 1, 2, 3, 4, 5];
5
17
  function createSelectableTones(opts, base, dark, solid, muted) {
6
18
  return {
7
19
  default: _createSelectableStates(opts, base, dark, solid, muted, "default"),
@@ -1173,7 +1185,7 @@ const defaultThemeConfig = {
1173
1185
  zOffset: 200
1174
1186
  }
1175
1187
  },
1176
- radius: [0, 1, 3, 7, 11, 15, 23, 43, 75, 127],
1188
+ radius: [0, 1, 5, 9, 13, 17, 25, 45, 77, 129],
1177
1189
  shadow: [null, {
1178
1190
  umbra: [0, 0, 0, 0],
1179
1191
  penumbra: [0, 0, 0, 0],
@@ -1289,10 +1301,10 @@ const defaultThemeConfig = {
1289
1301
  family: 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Helvetica, Arial, system-ui, sans-serif',
1290
1302
  featureSettings: "'liga' 1, 'calt' 1, 'ss01' 1, 'ss03' 1, 'zero' 1",
1291
1303
  weights: {
1292
- regular: 600,
1293
- medium: 700,
1294
- semibold: 800,
1295
- bold: 900
1304
+ regular: 400,
1305
+ medium: 500,
1306
+ semibold: 600,
1307
+ bold: 700
1296
1308
  },
1297
1309
  sizes: [{
1298
1310
  ascenderHeight: 5,
@@ -1435,39 +1447,7 @@ const defaultThemeConfig = {
1435
1447
  letterSpacing: 0
1436
1448
  }]
1437
1449
  }
1438
- }, THEME_COLOR_SCHEMES = ["light", "dark"], THEME_COLOR_BLEND_MODES = ["multiply", "screen"], THEME_COLOR_CARD_TONES = [
1439
- "transparent",
1440
- "default",
1441
- "neutral",
1442
- "primary",
1443
- // deprecated
1444
- "suggest",
1445
- "positive",
1446
- "caution",
1447
- "critical"
1448
- ], THEME_COLOR_STATE_TONES = [
1449
- "default",
1450
- "neutral",
1451
- "primary",
1452
- // deprecated
1453
- "suggest",
1454
- "positive",
1455
- "caution",
1456
- "critical"
1457
- ], THEME_COLOR_STATES = ["enabled", "hovered", "pressed", "selected", "disabled"], THEME_COLOR_BUTTON_MODES = ["default", "ghost", "bleed"], THEME_COLOR_INPUT_MODES = ["default", "invalid"], THEME_COLOR_INPUT_STATES = ["enabled", "hovered", "readOnly", "disabled"], THEME_COLOR_AVATAR_COLORS = color.COLOR_HUES;
1458
- function isColorBlendModeValue(str) {
1459
- return THEME_COLOR_BLEND_MODES.includes(str);
1460
- }
1461
- function isColorHueKey(str) {
1462
- return color.COLOR_HUES.includes(str);
1463
- }
1464
- function isColorTintKey(str) {
1465
- return color.COLOR_TINTS.includes(str);
1466
- }
1467
- function isColorButtonMode(str) {
1468
- return THEME_COLOR_BUTTON_MODES.includes(str);
1469
- }
1470
- const HUES = ["gray", "blue", "purple", "magenta", "red", "orange", "yellow", "green", "cyan"], TINTS = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950], RE_PERCENTAGE = /^([0-9]+)%/, RE_OPACITY = /^(1|0\.[0-9]+)?/;
1450
+ }, HUES = ["gray", "blue", "purple", "magenta", "red", "orange", "yellow", "green", "cyan"], TINTS = [50, 100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600, 650, 700, 750, 800, 850, 900, 950], RE_PERCENTAGE = /^([0-9]+)%/, RE_OPACITY = /^(1|0\.[0-9]+)?/;
1471
1451
  function parseColor$1(str) {
1472
1452
  let cursor = 0;
1473
1453
  const color2 = getColor();
@@ -1566,7 +1546,7 @@ function buildColorScheme_v3(tokens, options) {
1566
1546
  scheme
1567
1547
  } = options;
1568
1548
  return {
1569
- card: THEME_COLOR_CARD_TONES.reduce((acc, tone) => (acc[tone] = buildColorCard_v3(tokens[tone], {
1549
+ card: v3_v2.THEME_COLOR_CARD_TONES.reduce((acc, tone) => (acc[tone] = buildColorCard_v3(tokens[tone], {
1570
1550
  scheme
1571
1551
  }), acc), {})
1572
1552
  };
@@ -1581,7 +1561,7 @@ function buildColorCard_v3(tokens, options) {
1581
1561
  };
1582
1562
  return {
1583
1563
  _hue: tokens._hue ?? "gray",
1584
- avatar: THEME_COLOR_AVATAR_COLORS.reduce((acc, hue) => {
1564
+ avatar: v3_v2.THEME_COLOR_AVATAR_COLORS.reduce((acc, hue) => {
1585
1565
  const avatarTokens = tokens.avatar[hue];
1586
1566
  return acc[hue] = {
1587
1567
  bg: renderColor(avatarTokens.bg, {
@@ -1597,48 +1577,6 @@ function buildColorCard_v3(tokens, options) {
1597
1577
  }, acc;
1598
1578
  }, {}),
1599
1579
  backdrop: renderColor(tokens.backdrop, context),
1600
- code: {
1601
- bg: renderColor(tokens.code.bg, context),
1602
- fg: renderColor(tokens.code.fg, context),
1603
- token: {
1604
- atrule: renderColor(tokens.code.token.atrule, context),
1605
- attrName: renderColor(tokens.code.token.attrName, context),
1606
- attrValue: renderColor(tokens.code.token.attrValue, context),
1607
- attribute: renderColor(tokens.code.token.attribute, context),
1608
- boolean: renderColor(tokens.code.token.boolean, context),
1609
- builtin: renderColor(tokens.code.token.builtin, context),
1610
- cdata: renderColor(tokens.code.token.cdata, context),
1611
- char: renderColor(tokens.code.token.char, context),
1612
- class: renderColor(tokens.code.token.class, context),
1613
- className: renderColor(tokens.code.token.className, context),
1614
- comment: renderColor(tokens.code.token.comment, context),
1615
- constant: renderColor(tokens.code.token.constant, context),
1616
- deleted: renderColor(tokens.code.token.deleted, context),
1617
- doctype: renderColor(tokens.code.token.doctype, context),
1618
- entity: renderColor(tokens.code.token.entity, context),
1619
- function: renderColor(tokens.code.token.function, context),
1620
- hexcode: renderColor(tokens.code.token.hexcode, context),
1621
- id: renderColor(tokens.code.token.id, context),
1622
- important: renderColor(tokens.code.token.important, context),
1623
- inserted: renderColor(tokens.code.token.inserted, context),
1624
- keyword: renderColor(tokens.code.token.keyword, context),
1625
- number: renderColor(tokens.code.token.number, context),
1626
- operator: renderColor(tokens.code.token.operator, context),
1627
- prolog: renderColor(tokens.code.token.prolog, context),
1628
- property: renderColor(tokens.code.token.property, context),
1629
- pseudoClass: renderColor(tokens.code.token.pseudoClass, context),
1630
- pseudoElement: renderColor(tokens.code.token.pseudoElement, context),
1631
- punctuation: renderColor(tokens.code.token.punctuation, context),
1632
- regex: renderColor(tokens.code.token.regex, context),
1633
- selector: renderColor(tokens.code.token.selector, context),
1634
- string: renderColor(tokens.code.token.string, context),
1635
- symbol: renderColor(tokens.code.token.symbol, context),
1636
- tag: renderColor(tokens.code.token.tag, context),
1637
- unit: renderColor(tokens.code.token.unit, context),
1638
- url: renderColor(tokens.code.token.url, context),
1639
- variable: renderColor(tokens.code.token.variable, context)
1640
- }
1641
- },
1642
1580
  focusRing: renderColor(tokens.focusRing, context),
1643
1581
  shadow: {
1644
1582
  outline: renderColor(tokens.shadow.outline, context),
@@ -1650,9 +1588,47 @@ function buildColorCard_v3(tokens, options) {
1650
1588
  from: renderColor(tokens.skeleton.from, context),
1651
1589
  to: renderColor(tokens.skeleton.to, context)
1652
1590
  },
1591
+ token: {
1592
+ atrule: renderColor(tokens.token.atrule, context),
1593
+ attrName: renderColor(tokens.token.attrName, context),
1594
+ attrValue: renderColor(tokens.token.attrValue, context),
1595
+ attribute: renderColor(tokens.token.attribute, context),
1596
+ boolean: renderColor(tokens.token.boolean, context),
1597
+ builtin: renderColor(tokens.token.builtin, context),
1598
+ cdata: renderColor(tokens.token.cdata, context),
1599
+ char: renderColor(tokens.token.char, context),
1600
+ class: renderColor(tokens.token.class, context),
1601
+ className: renderColor(tokens.token.className, context),
1602
+ comment: renderColor(tokens.token.comment, context),
1603
+ constant: renderColor(tokens.token.constant, context),
1604
+ deleted: renderColor(tokens.token.deleted, context),
1605
+ doctype: renderColor(tokens.token.doctype, context),
1606
+ entity: renderColor(tokens.token.entity, context),
1607
+ function: renderColor(tokens.token.function, context),
1608
+ hexcode: renderColor(tokens.token.hexcode, context),
1609
+ id: renderColor(tokens.token.id, context),
1610
+ important: renderColor(tokens.token.important, context),
1611
+ inserted: renderColor(tokens.token.inserted, context),
1612
+ keyword: renderColor(tokens.token.keyword, context),
1613
+ number: renderColor(tokens.token.number, context),
1614
+ operator: renderColor(tokens.token.operator, context),
1615
+ prolog: renderColor(tokens.token.prolog, context),
1616
+ property: renderColor(tokens.token.property, context),
1617
+ pseudoClass: renderColor(tokens.token.pseudoClass, context),
1618
+ pseudoElement: renderColor(tokens.token.pseudoElement, context),
1619
+ punctuation: renderColor(tokens.token.punctuation, context),
1620
+ regex: renderColor(tokens.token.regex, context),
1621
+ selector: renderColor(tokens.token.selector, context),
1622
+ string: renderColor(tokens.token.string, context),
1623
+ symbol: renderColor(tokens.token.symbol, context),
1624
+ tag: renderColor(tokens.token.tag, context),
1625
+ unit: renderColor(tokens.token.unit, context),
1626
+ url: renderColor(tokens.token.url, context),
1627
+ variable: renderColor(tokens.token.variable, context)
1628
+ },
1653
1629
  variant: {
1654
1630
  solid: {
1655
- ...THEME_COLOR_STATE_TONES.reduce((acc, tone) => ({
1631
+ ...v3_v2.THEME_COLOR_STATE_TONES.reduce((acc, tone) => ({
1656
1632
  ...acc,
1657
1633
  [tone]: buildColorElement_v3(tokens.variant.solid[tone], {
1658
1634
  scheme
@@ -1660,7 +1636,7 @@ function buildColorCard_v3(tokens, options) {
1660
1636
  }), {})
1661
1637
  },
1662
1638
  tinted: {
1663
- ...THEME_COLOR_STATE_TONES.reduce((acc, tone) => ({
1639
+ ...v3_v2.THEME_COLOR_STATE_TONES.reduce((acc, tone) => ({
1664
1640
  ...acc,
1665
1641
  [tone]: buildColorElement_v3(tokens.variant.tinted[tone], {
1666
1642
  scheme
@@ -1694,53 +1670,59 @@ function buildColorElement_v3(tokens, options) {
1694
1670
  }
1695
1671
  };
1696
1672
  }
1697
- const defaultTokens = {
1673
+ const defaultPalette = {
1674
+ chroma: {
1675
+ min: 5e-3,
1676
+ max: 0.2325
1677
+ },
1678
+ luminosity: {
1679
+ min: 0.1875,
1680
+ max: 1
1681
+ },
1682
+ hues: {
1683
+ gray: {
1684
+ h: 277,
1685
+ c: 0.04
1686
+ },
1687
+ blue: {
1688
+ h: 273,
1689
+ c: 0.185
1690
+ },
1691
+ purple: {
1692
+ h: 295,
1693
+ c: 0.4
1694
+ },
1695
+ magenta: {
1696
+ h: 12,
1697
+ c: 0.4
1698
+ },
1699
+ red: {
1700
+ h: 30,
1701
+ c: 0.4
1702
+ },
1703
+ orange: {
1704
+ h: 68,
1705
+ c: 0.4
1706
+ },
1707
+ yellow: {
1708
+ h: 90,
1709
+ c: 0.4
1710
+ },
1711
+ green: {
1712
+ h: 171,
1713
+ c: 0.4
1714
+ },
1715
+ cyan: {
1716
+ h: 194,
1717
+ c: 0.4
1718
+ }
1719
+ }
1720
+ }, defaultTokens = {
1698
1721
  color: {
1699
1722
  "*": {
1700
1723
  // backdrop: ['black/0.2', '200/0.2'],
1701
1724
  backdrop: ["black/0.5", "gray/100/0.5"],
1702
- code: {
1703
- bg: ["950", "50"],
1704
- fg: ["300", "700"],
1705
- token: {
1706
- atrule: ["purple/300", "purple/600"],
1707
- attrName: ["green/300", "green/600"],
1708
- attrValue: ["yellow/300", "yellow/600"],
1709
- attribute: ["yellow/300", "yellow/600"],
1710
- boolean: ["purple/300", "purple/600"],
1711
- builtin: ["purple/300", "purple/600"],
1712
- cdata: ["yellow/300", "yellow/600"],
1713
- char: ["yellow/300", "yellow/600"],
1714
- class: ["orange/300", "orange/600"],
1715
- className: ["cyan/300", "cyan/600"],
1716
- comment: ["gray/600", "gray/300"],
1717
- constant: ["purple/300", "purple/600"],
1718
- deleted: ["red/300", "red/600"],
1719
- entity: ["red/300", "red/600"],
1720
- function: ["green/300", "green/600"],
1721
- hexcode: ["blue/300", "blue/600"],
1722
- id: ["purple/300", "purple/600"],
1723
- important: ["purple/300", "purple/600"],
1724
- inserted: ["green/300", "green/600"],
1725
- keyword: ["magenta/300", "magenta/600"],
1726
- number: ["purple/300", "purple/600"],
1727
- operator: ["magenta/300", "magenta/600"],
1728
- prolog: ["gray/300", "gray/600"],
1729
- property: ["blue/300", "blue/600"],
1730
- pseudoClass: ["yellow/300", "yellow/600"],
1731
- pseudoElement: ["yellow/300", "yellow/600"],
1732
- punctuation: ["gray/300", "gray/600"],
1733
- regex: ["blue/300", "blue/600"],
1734
- selector: ["red/300", "red/600"],
1735
- string: ["yellow/300", "yellow/600"],
1736
- symbol: ["purple/300", "purple/600"],
1737
- tag: ["red/300", "red/600"],
1738
- unit: ["orange/300", "orange/600"],
1739
- url: ["red/300", "red/600"],
1740
- variable: ["red/300", "red/600"]
1741
- }
1742
- },
1743
- focusRing: ["blue/500", "blue/500"],
1725
+ focusRing: ["blue/500", "blue/300"],
1744
1726
  link: {
1745
1727
  fg: ["blue/400", "blue/600"]
1746
1728
  },
@@ -1750,16 +1732,53 @@ const defaultTokens = {
1750
1732
  penumbra: ["black/0.14", "500/0.07"],
1751
1733
  ambient: ["black/0.12", "500/0.06"]
1752
1734
  },
1735
+ token: {
1736
+ atrule: ["purple/300", "purple/600"],
1737
+ attrName: ["green/300", "green/600"],
1738
+ attrValue: ["yellow/300", "yellow/600"],
1739
+ attribute: ["yellow/300", "yellow/600"],
1740
+ boolean: ["purple/300", "purple/600"],
1741
+ builtin: ["purple/300", "purple/600"],
1742
+ cdata: ["yellow/300", "yellow/600"],
1743
+ char: ["yellow/300", "yellow/600"],
1744
+ class: ["orange/300", "orange/600"],
1745
+ className: ["cyan/300", "cyan/600"],
1746
+ comment: ["gray/600", "gray/300"],
1747
+ constant: ["purple/300", "purple/600"],
1748
+ deleted: ["red/300", "red/600"],
1749
+ entity: ["red/300", "red/600"],
1750
+ function: ["green/300", "green/600"],
1751
+ hexcode: ["blue/300", "blue/600"],
1752
+ id: ["purple/300", "purple/600"],
1753
+ important: ["purple/300", "purple/600"],
1754
+ inserted: ["green/300", "green/600"],
1755
+ keyword: ["magenta/300", "magenta/600"],
1756
+ number: ["purple/300", "purple/600"],
1757
+ operator: ["magenta/300", "magenta/600"],
1758
+ prolog: ["gray/300", "gray/600"],
1759
+ property: ["blue/300", "blue/600"],
1760
+ pseudoClass: ["yellow/300", "yellow/600"],
1761
+ pseudoElement: ["yellow/300", "yellow/600"],
1762
+ punctuation: ["gray/300", "gray/600"],
1763
+ regex: ["blue/300", "blue/600"],
1764
+ selector: ["red/300", "red/600"],
1765
+ string: ["yellow/300", "yellow/600"],
1766
+ symbol: ["purple/300", "purple/600"],
1767
+ tag: ["red/300", "red/600"],
1768
+ unit: ["orange/300", "orange/600"],
1769
+ url: ["red/300", "red/600"],
1770
+ variable: ["red/300", "red/600"]
1771
+ },
1753
1772
  variant: {
1754
1773
  tinted: {
1755
1774
  "*": {
1756
1775
  bg: {
1757
- 0: ["950", "50"],
1758
- 4: ["800", "200"]
1776
+ 0: ["900", "50"],
1777
+ 4: ["800", "150"]
1759
1778
  },
1760
1779
  border: {
1761
- 0: ["700", "100"],
1762
- 4: ["500", "300"]
1780
+ 0: ["800", "150"],
1781
+ 4: ["600", "350"]
1763
1782
  },
1764
1783
  fg: {
1765
1784
  0: ["100", "900"],
@@ -1785,8 +1804,8 @@ const defaultTokens = {
1785
1804
  solid: {
1786
1805
  "*": {
1787
1806
  bg: {
1788
- 0: ["400", "500"],
1789
- 4: ["300", "600"]
1807
+ 0: ["300", "500"],
1808
+ 4: ["200", "600"]
1790
1809
  },
1791
1810
  border: {
1792
1811
  0: ["200", "400"],
@@ -1831,15 +1850,15 @@ const defaultTokens = {
1831
1850
  "*": {
1832
1851
  bg: {
1833
1852
  0: ["black", "gray/50"],
1834
- 4: ["800", "300 50%"]
1853
+ 4: ["900", "150"]
1835
1854
  },
1836
1855
  border: {
1837
- 0: ["800", "300 40%"],
1838
- 4: ["600", "300"]
1856
+ 0: ["900", "150"],
1857
+ 4: ["700", "350"]
1839
1858
  },
1840
1859
  fg: {
1841
- 0: ["100", "black"],
1842
- 4: ["400", "700"]
1860
+ 0: ["150", "black"],
1861
+ 4: ["550", "600"]
1843
1862
  }
1844
1863
  }
1845
1864
  }
@@ -1850,12 +1869,12 @@ const defaultTokens = {
1850
1869
  tinted: {
1851
1870
  "*": {
1852
1871
  bg: {
1853
- 0: ["950", "white"],
1854
- 4: ["800", "200"]
1872
+ 0: ["gray/950", "white"],
1873
+ 4: ["850", "100"]
1855
1874
  },
1856
1875
  border: {
1857
- 0: ["800", "100"],
1858
- 4: ["600", "300"]
1876
+ 0: ["850", "100"],
1877
+ 4: ["650", "300"]
1859
1878
  },
1860
1879
  fg: {
1861
1880
  0: ["white", "black"],
@@ -1865,18 +1884,6 @@ const defaultTokens = {
1865
1884
  }
1866
1885
  }
1867
1886
  },
1868
- neutral: {
1869
- variant: {
1870
- tinted: {
1871
- "*": {
1872
- bg: {
1873
- 0: ["900", "50"],
1874
- 4: ["700", "200"]
1875
- }
1876
- }
1877
- }
1878
- }
1879
- },
1880
1887
  primary: {
1881
1888
  _hue: "blue"
1882
1889
  },
@@ -1925,7 +1932,7 @@ function resolveTokens(tokens = {}) {
1925
1932
  return {
1926
1933
  color: {
1927
1934
  "*": resolveCardColorTokens(tokens.color?.["*"]),
1928
- ...THEME_COLOR_CARD_TONES.reduce((acc, tone) => ({
1935
+ ...v3_v2.THEME_COLOR_CARD_TONES.reduce((acc, tone) => ({
1929
1936
  ...acc,
1930
1937
  [tone]: resolveCardColorTokens(merge(tokens.color?.["*"], tokens.color?.[tone]))
1931
1938
  }), {})
@@ -1983,48 +1990,6 @@ function resolveCardColorTokens(tokens) {
1983
1990
  }
1984
1991
  },
1985
1992
  backdrop: tokens?.backdrop ?? ["900", "100"],
1986
- code: {
1987
- bg: tokens?.code?.bg ?? ["950", "50"],
1988
- fg: tokens?.code?.fg ?? ["400", "600"],
1989
- token: {
1990
- atrule: tokens?.code?.token?.atrule ?? ["400", "600"],
1991
- attribute: tokens?.code?.token?.attribute ?? ["400", "600"],
1992
- attrName: tokens?.code?.token?.attrName ?? ["400", "600"],
1993
- attrValue: tokens?.code?.token?.attrValue ?? ["400", "600"],
1994
- boolean: tokens?.code?.token?.boolean ?? ["400", "600"],
1995
- builtin: tokens?.code?.token?.builtin ?? ["400", "600"],
1996
- cdata: tokens?.code?.token?.cdata ?? ["400", "600"],
1997
- char: tokens?.code?.token?.char ?? ["400", "600"],
1998
- class: tokens?.code?.token?.class ?? ["400", "600"],
1999
- className: tokens?.code?.token?.className ?? ["400", "600"],
2000
- comment: tokens?.code?.token?.comment ?? ["600", "400"],
2001
- constant: tokens?.code?.token?.constant ?? ["400", "600"],
2002
- deleted: tokens?.code?.token?.deleted ?? ["400", "600"],
2003
- doctype: tokens?.code?.token?.doctype ?? ["400", "600"],
2004
- entity: tokens?.code?.token?.entity ?? ["400", "600"],
2005
- function: tokens?.code?.token?.function ?? ["400", "600"],
2006
- hexcode: tokens?.code?.token?.hexcode ?? ["400", "600"],
2007
- id: tokens?.code?.token?.id ?? ["400", "600"],
2008
- important: tokens?.code?.token?.important ?? ["400", "600"],
2009
- inserted: tokens?.code?.token?.inserted ?? ["400", "600"],
2010
- keyword: tokens?.code?.token?.keyword ?? ["400", "600"],
2011
- number: tokens?.code?.token?.number ?? ["400", "600"],
2012
- operator: tokens?.code?.token?.operator ?? ["400", "600"],
2013
- prolog: tokens?.code?.token?.prolog ?? ["400", "600"],
2014
- property: tokens?.code?.token?.property ?? ["400", "600"],
2015
- pseudoClass: tokens?.code?.token?.pseudoClass ?? ["400", "600"],
2016
- pseudoElement: tokens?.code?.token?.pseudoElement ?? ["400", "600"],
2017
- punctuation: tokens?.code?.token?.punctuation ?? ["400", "600"],
2018
- regex: tokens?.code?.token?.regex ?? ["400", "600"],
2019
- selector: tokens?.code?.token?.selector ?? ["400", "600"],
2020
- string: tokens?.code?.token?.string ?? ["400", "600"],
2021
- symbol: tokens?.code?.token?.symbol ?? ["400", "600"],
2022
- tag: tokens?.code?.token?.tag ?? ["400", "600"],
2023
- unit: tokens?.code?.token?.unit ?? ["400", "600"],
2024
- url: tokens?.code?.token?.url ?? ["400", "600"],
2025
- variable: tokens?.code?.token?.variable ?? ["400", "600"]
2026
- }
2027
- },
2028
1993
  focusRing: tokens?.focusRing ?? ["500", "500"],
2029
1994
  link: {
2030
1995
  fg: tokens?.link?.fg ?? ["400", "600"]
@@ -2039,14 +2004,52 @@ function resolveCardColorTokens(tokens) {
2039
2004
  from: tokens?.skeleton?.from ?? ["900", "100"],
2040
2005
  to: tokens?.skeleton?.to ?? ["950", "50"]
2041
2006
  },
2007
+ token: {
2008
+ atrule: tokens?.token?.atrule ?? ["400", "600"],
2009
+ attribute: tokens?.token?.attribute ?? ["400", "600"],
2010
+ attrName: tokens?.token?.attrName ?? ["400", "600"],
2011
+ attrValue: tokens?.token?.attrValue ?? ["400", "600"],
2012
+ boolean: tokens?.token?.boolean ?? ["400", "600"],
2013
+ builtin: tokens?.token?.builtin ?? ["400", "600"],
2014
+ cdata: tokens?.token?.cdata ?? ["400", "600"],
2015
+ char: tokens?.token?.char ?? ["400", "600"],
2016
+ class: tokens?.token?.class ?? ["400", "600"],
2017
+ className: tokens?.token?.className ?? ["400", "600"],
2018
+ comment: tokens?.token?.comment ?? ["600", "400"],
2019
+ constant: tokens?.token?.constant ?? ["400", "600"],
2020
+ deleted: tokens?.token?.deleted ?? ["400", "600"],
2021
+ doctype: tokens?.token?.doctype ?? ["400", "600"],
2022
+ entity: tokens?.token?.entity ?? ["400", "600"],
2023
+ function: tokens?.token?.function ?? ["400", "600"],
2024
+ hexcode: tokens?.token?.hexcode ?? ["400", "600"],
2025
+ id: tokens?.token?.id ?? ["400", "600"],
2026
+ important: tokens?.token?.important ?? ["400", "600"],
2027
+ inserted: tokens?.token?.inserted ?? ["400", "600"],
2028
+ keyword: tokens?.token?.keyword ?? ["400", "600"],
2029
+ number: tokens?.token?.number ?? ["400", "600"],
2030
+ operator: tokens?.token?.operator ?? ["400", "600"],
2031
+ prolog: tokens?.token?.prolog ?? ["400", "600"],
2032
+ property: tokens?.token?.property ?? ["400", "600"],
2033
+ pseudoClass: tokens?.token?.pseudoClass ?? ["400", "600"],
2034
+ pseudoElement: tokens?.token?.pseudoElement ?? ["400", "600"],
2035
+ punctuation: tokens?.token?.punctuation ?? ["400", "600"],
2036
+ regex: tokens?.token?.regex ?? ["400", "600"],
2037
+ selector: tokens?.token?.selector ?? ["400", "600"],
2038
+ string: tokens?.token?.string ?? ["400", "600"],
2039
+ symbol: tokens?.token?.symbol ?? ["400", "600"],
2040
+ tag: tokens?.token?.tag ?? ["400", "600"],
2041
+ unit: tokens?.token?.unit ?? ["400", "600"],
2042
+ url: tokens?.token?.url ?? ["400", "600"],
2043
+ variable: tokens?.token?.variable ?? ["400", "600"]
2044
+ },
2042
2045
  variant: {
2043
2046
  solid: {
2044
2047
  "*": resolveElementTokens(tokens?.variant?.solid?.["*"]),
2045
- ...THEME_COLOR_STATE_TONES.reduce((acc, tone) => (acc[tone] = resolveElementTokens(merge(tokens, tokens?.variant?.solid?.["*"], tokens?.variant?.solid?.[tone])), acc), {})
2048
+ ...v3_v2.THEME_COLOR_STATE_TONES.reduce((acc, tone) => (acc[tone] = resolveElementTokens(merge(tokens, tokens?.variant?.solid?.["*"], tokens?.variant?.solid?.[tone])), acc), {})
2046
2049
  },
2047
2050
  tinted: {
2048
2051
  "*": resolveElementTokens(tokens?.variant?.tinted?.["*"]),
2049
- ...THEME_COLOR_STATE_TONES.reduce((acc, tone) => (acc[tone] = resolveElementTokens(merge(tokens, tokens?.variant?.tinted?.["*"], tokens?.variant?.tinted?.[tone])), acc), {})
2052
+ ...v3_v2.THEME_COLOR_STATE_TONES.reduce((acc, tone) => (acc[tone] = resolveElementTokens(merge(tokens, tokens?.variant?.tinted?.["*"], tokens?.variant?.tinted?.[tone])), acc), {})
2050
2053
  }
2051
2054
  }
2052
2055
  };
@@ -2074,6 +2077,7 @@ function buildTheme_v3(options) {
2074
2077
  } = options ?? {}, tokens = resolveTokens(options?.tokens ?? defaultTokens);
2075
2078
  return {
2076
2079
  _version: 3,
2080
+ _palette: options?.palette ?? defaultPalette,
2077
2081
  _tokens: tokens,
2078
2082
  avatar: v2?.avatar ?? defaultThemeConfig.avatar,
2079
2083
  button: v2?.button ?? defaultThemeConfig.button,
@@ -2197,229 +2201,11 @@ function inputStateThemeColor_v2_v0(t) {
2197
2201
  placeholder: t.placeholder
2198
2202
  };
2199
2203
  }
2200
- function themeColor_v3_v2(options) {
2201
- const {
2202
- color: color2,
2203
- dark
2204
- } = options;
2205
- return {
2206
- _blend: "screen",
2207
- _dark: dark,
2208
- ...buildColorState({
2209
- cardColor: color2,
2210
- state: "enabled",
2211
- tone: "default",
2212
- variant: "tinted"
2213
- }),
2214
- backdrop: color2.backdrop,
2215
- button: THEME_COLOR_BUTTON_MODES.reduce((modes, mode) => (modes[mode] = THEME_COLOR_STATE_TONES.reduce((tones2, tone) => (tones2[tone] = THEME_COLOR_STATES.reduce((states, state) => (states[state] = buildColorState({
2216
- cardColor: color2,
2217
- state,
2218
- tone,
2219
- variant: mode === "default" ? "solid" : "tinted"
2220
- }), mode === "bleed" && (states[state].border = "transparent"), states), {}), tones2), {}), modes), {}),
2221
- focusRing: color2.focusRing,
2222
- input: THEME_COLOR_INPUT_MODES.reduce((modes, mode) => (modes[mode] = THEME_COLOR_INPUT_STATES.reduce((states, state) => (states[state] = buildInputState(color2.variant.tinted.default), states), {}), modes), {}),
2223
- selectable: THEME_COLOR_STATE_TONES.reduce((tones2, tone) => (tones2[tone] = THEME_COLOR_STATES.reduce((states, state) => (states[state] = buildColorState({
2224
- cardColor: color2,
2225
- // cardVars: vars,
2226
- state,
2227
- tone,
2228
- variant: "tinted"
2229
- }), states), {}), tones2), {}),
2230
- shadow: color2.shadow,
2231
- syntax: color2.code.token
2232
- };
2233
- }
2234
- const stateShades = {
2235
- enabled: {
2236
- bg: [0, 1, 2],
2237
- border: [0, 1, 2],
2238
- fg: [0, 1, 2]
2239
- },
2240
- hovered: {
2241
- bg: [1, 2, 3],
2242
- border: [1, 2, 3],
2243
- fg: [1, 2, 3]
2244
- },
2245
- pressed: {
2246
- bg: [2, 3, 4],
2247
- border: [2, 3, 4],
2248
- fg: [2, 3, 4]
2249
- },
2250
- selected: {
2251
- bg: [3, 4, 4],
2252
- border: [3, 4, 4],
2253
- fg: [3, 4, 4]
2254
- },
2255
- disabled: {
2256
- bg: [4, 4, 4],
2257
- border: [4, 4, 4],
2258
- fg: [4, 4, 4]
2259
- }
2260
- };
2261
- function mix$1(tokens, index) {
2262
- return index === 0 ? tokens[0] : index === 4 ? tokens[4] : `color-mix(in oklch, ${tokens[0]}, ${tokens[4]} ${index * 25}%)`;
2263
- }
2264
- function buildColorState(options) {
2265
- const {
2266
- cardColor,
2267
- state,
2268
- tone,
2269
- variant
2270
- } = options, color2 = cardColor.variant[variant][tone], shades = stateShades[state];
2271
- return {
2272
- accent: {
2273
- fg: color2.fg[4]
2274
- },
2275
- avatar: cardColor.avatar,
2276
- badge: THEME_COLOR_STATE_TONES.reduce((tones2, tone2) => (tones2[tone2] = {
2277
- bg: mix$1(color2.bg, 1),
2278
- fg: mix$1(color2.fg, 1),
2279
- dot: mix$1(color2.fg, 3),
2280
- icon: mix$1(color2.fg, 3)
2281
- }, tones2), {}),
2282
- bg: mix$1(color2.bg, shades.bg[0]),
2283
- border: mix$1(color2.border, shades.border[0]),
2284
- fg: mix$1(color2.fg, shades.fg[0]),
2285
- code: {
2286
- bg: mix$1(color2.bg, shades.bg[1]),
2287
- fg: mix$1(color2.fg, shades.fg[2])
2288
- },
2289
- icon: mix$1(color2.fg, shades.fg[2]),
2290
- kbd: {
2291
- bg: mix$1(color2.bg, 0),
2292
- fg: mix$1(color2.fg, 0),
2293
- border: mix$1(color2.bg, 0)
2294
- },
2295
- link: {
2296
- fg: mix$1(color2.fg, shades.fg[2])
2297
- },
2298
- muted: {
2299
- bg: mix$1(color2.bg, shades.bg[1]),
2300
- fg: mix$1(color2.fg, shades.fg[2])
2301
- },
2302
- skeleton: cardColor.skeleton
2303
- };
2304
- }
2305
- function buildInputState(colorElement) {
2306
- return {
2307
- bg: colorElement.bg[0],
2308
- border: colorElement.bg[0],
2309
- fg: colorElement.fg[0],
2310
- muted: {
2311
- bg: colorElement.bg[0]
2312
- },
2313
- placeholder: colorElement.fg[0]
2314
- };
2315
- }
2316
- function v3_v2(theme_v3) {
2317
- return {
2318
- _version: 2,
2319
- avatar: theme_v3.avatar,
2320
- button: theme_v3.button,
2321
- card: theme_v3.card,
2322
- color: {
2323
- dark: {
2324
- transparent: themeColor_v3_v2({
2325
- color: theme_v3.color.dark.card.transparent,
2326
- dark: !0
2327
- // vars: vars.color.dark.transparent,
2328
- }),
2329
- default: themeColor_v3_v2({
2330
- color: theme_v3.color.dark.card.default,
2331
- dark: !0
2332
- // vars: vars.color.dark.default,
2333
- }),
2334
- neutral: themeColor_v3_v2({
2335
- color: theme_v3.color.dark.card.neutral,
2336
- dark: !0
2337
- // vars: vars.color.dark.neutral,
2338
- }),
2339
- primary: themeColor_v3_v2({
2340
- color: theme_v3.color.dark.card.primary,
2341
- dark: !0
2342
- // vars: vars.color.dark.primary,
2343
- }),
2344
- suggest: themeColor_v3_v2({
2345
- color: theme_v3.color.dark.card.suggest,
2346
- dark: !0
2347
- // vars: vars.color.dark.suggest,
2348
- }),
2349
- positive: themeColor_v3_v2({
2350
- color: theme_v3.color.dark.card.positive,
2351
- dark: !0
2352
- // vars: vars.color.dark.positive,
2353
- }),
2354
- caution: themeColor_v3_v2({
2355
- color: theme_v3.color.dark.card.caution,
2356
- dark: !0
2357
- // vars: vars.color.dark.caution,
2358
- }),
2359
- critical: themeColor_v3_v2({
2360
- color: theme_v3.color.dark.card.critical,
2361
- dark: !0
2362
- // vars: vars.color.dark.critical,
2363
- })
2364
- },
2365
- light: {
2366
- transparent: themeColor_v3_v2({
2367
- color: theme_v3.color.light.card.transparent,
2368
- dark: !1
2369
- // vars: vars.color.light.transparent,
2370
- }),
2371
- default: themeColor_v3_v2({
2372
- color: theme_v3.color.light.card.default,
2373
- dark: !1
2374
- // vars: vars.color.light.default,
2375
- }),
2376
- neutral: themeColor_v3_v2({
2377
- color: theme_v3.color.light.card.neutral,
2378
- dark: !1
2379
- // vars: vars.color.light.neutral,
2380
- }),
2381
- primary: themeColor_v3_v2({
2382
- color: theme_v3.color.light.card.primary,
2383
- dark: !1
2384
- // vars: vars.color.light.primary,
2385
- }),
2386
- suggest: themeColor_v3_v2({
2387
- color: theme_v3.color.light.card.suggest,
2388
- dark: !1
2389
- // vars: vars.color.light.suggest,
2390
- }),
2391
- positive: themeColor_v3_v2({
2392
- color: theme_v3.color.light.card.positive,
2393
- dark: !1
2394
- // vars: vars.color.light.positive,
2395
- }),
2396
- caution: themeColor_v3_v2({
2397
- color: theme_v3.color.light.card.caution,
2398
- dark: !1
2399
- // vars: vars.color.light.caution,
2400
- }),
2401
- critical: themeColor_v3_v2({
2402
- color: theme_v3.color.light.card.critical,
2403
- dark: !1
2404
- // vars: vars.color.light.critical,
2405
- })
2406
- }
2407
- },
2408
- container: theme_v3.container,
2409
- font: theme_v3.font,
2410
- input: theme_v3.input,
2411
- layer: theme_v3.layer,
2412
- media: theme_v3.media,
2413
- radius: theme_v3.radius,
2414
- shadow: theme_v3.shadow,
2415
- space: theme_v3.space
2416
- };
2417
- }
2418
2204
  function buildTheme(_config) {
2419
2205
  const v3 = buildTheme_v3({
2420
2206
  v2: _config
2421
2207
  });
2422
- return v2_v0(v3_v2(v3), v3);
2208
+ return v2_v0(v3_v2.v3_v2(v3), v3);
2423
2209
  }
2424
2210
  function mixChannel(b, s, weight) {
2425
2211
  const delta = (s - b) * weight;
@@ -2568,7 +2354,7 @@ function rgba(color2, a) {
2568
2354
  const rgb = parseColor(color2);
2569
2355
  return `rgba(${rgb.r},${rgb.g},${rgb.b},${a})`;
2570
2356
  }
2571
- const COLOR_CONFIG_STATE_KEYS = ["_hue", "bg", "fg", "border", "focusRing", "muted/fg", "accent/fg", "link/fg", "code/bg", "code/fg", "skeleton/from", "skeleton/to", "status/dot", "status/icon"], COLOR_CONFIG_CARD_KEYS = [...COLOR_CONFIG_STATE_KEYS, "_hue", "bg", "fg", "border", "focusRing", "shadow/outline", "shadow/umbra", "shadow/penumbra", "shadow/ambient"], COLOR_CONFIG_BLEND_KEYS = ["_blend"], COLOR_CONFIG_AVATAR_COLORS = ["*", ...THEME_COLOR_AVATAR_COLORS], COLOR_CONFIG_CARD_TONES = ["*", ...THEME_COLOR_CARD_TONES], COLOR_CONFIG_STATE_TONES = ["*", ...THEME_COLOR_STATE_TONES], COLOR_CONFIG_STATES = ["*", ...THEME_COLOR_STATES], COLOR_CONFIG_INPUT_MODES = ["*", ...THEME_COLOR_INPUT_MODES], COLOR_CONFIG_INPUT_STATES = ["*", ...THEME_COLOR_INPUT_STATES];
2357
+ const COLOR_CONFIG_STATE_KEYS = ["_hue", "bg", "fg", "border", "focusRing", "muted/fg", "accent/fg", "link/fg", "code/bg", "code/fg", "skeleton/from", "skeleton/to", "status/dot", "status/icon"], COLOR_CONFIG_CARD_KEYS = [...COLOR_CONFIG_STATE_KEYS, "_hue", "bg", "fg", "border", "focusRing", "shadow/outline", "shadow/umbra", "shadow/penumbra", "shadow/ambient"], COLOR_CONFIG_BLEND_KEYS = ["_blend"], COLOR_CONFIG_AVATAR_COLORS = ["*", ...v3_v2.THEME_COLOR_AVATAR_COLORS], COLOR_CONFIG_CARD_TONES = ["*", ...v3_v2.THEME_COLOR_CARD_TONES], COLOR_CONFIG_STATE_TONES = ["*", ...v3_v2.THEME_COLOR_STATE_TONES], COLOR_CONFIG_STATES = ["*", ...v3_v2.THEME_COLOR_STATES], COLOR_CONFIG_INPUT_MODES = ["*", ...v3_v2.THEME_COLOR_INPUT_MODES], COLOR_CONFIG_INPUT_STATES = ["*", ...v3_v2.THEME_COLOR_INPUT_STATES];
2572
2358
  function parseTokenKey(str) {
2573
2359
  const segments = str.split("/"), segment0 = segments.shift() || "";
2574
2360
  if (isColorConfigBaseTone(segment0)) {
@@ -3134,6 +2920,15 @@ function getTheme_v2(theme) {
3134
2920
  };
3135
2921
  return cache.set(theme, v2), v2;
3136
2922
  }
2923
+ exports.THEME_COLOR_AVATAR_COLORS = v3_v2.THEME_COLOR_AVATAR_COLORS;
2924
+ exports.THEME_COLOR_BLEND_MODES = v3_v2.THEME_COLOR_BLEND_MODES;
2925
+ exports.THEME_COLOR_BUTTON_MODES = v3_v2.THEME_COLOR_BUTTON_MODES;
2926
+ exports.THEME_COLOR_CARD_TONES = v3_v2.THEME_COLOR_CARD_TONES;
2927
+ exports.THEME_COLOR_INPUT_MODES = v3_v2.THEME_COLOR_INPUT_MODES;
2928
+ exports.THEME_COLOR_INPUT_STATES = v3_v2.THEME_COLOR_INPUT_STATES;
2929
+ exports.THEME_COLOR_SCHEMES = v3_v2.THEME_COLOR_SCHEMES;
2930
+ exports.THEME_COLOR_STATES = v3_v2.THEME_COLOR_STATES;
2931
+ exports.THEME_COLOR_STATE_TONES = v3_v2.THEME_COLOR_STATE_TONES;
3137
2932
  exports.AVATAR_SIZE = AVATAR_SIZE;
3138
2933
  exports.COLOR_CONFIG_AVATAR_COLORS = COLOR_CONFIG_AVATAR_COLORS;
3139
2934
  exports.COLOR_CONFIG_BLEND_KEYS = COLOR_CONFIG_BLEND_KEYS;
@@ -3153,20 +2948,12 @@ exports.HUES = HUES;
3153
2948
  exports.RADIUS = RADIUS;
3154
2949
  exports.SHADOW = SHADOW;
3155
2950
  exports.SPACE = SPACE;
3156
- exports.THEME_COLOR_AVATAR_COLORS = THEME_COLOR_AVATAR_COLORS;
3157
- exports.THEME_COLOR_BLEND_MODES = THEME_COLOR_BLEND_MODES;
3158
- exports.THEME_COLOR_BUTTON_MODES = THEME_COLOR_BUTTON_MODES;
3159
- exports.THEME_COLOR_CARD_TONES = THEME_COLOR_CARD_TONES;
3160
- exports.THEME_COLOR_INPUT_MODES = THEME_COLOR_INPUT_MODES;
3161
- exports.THEME_COLOR_INPUT_STATES = THEME_COLOR_INPUT_STATES;
3162
- exports.THEME_COLOR_SCHEMES = THEME_COLOR_SCHEMES;
3163
- exports.THEME_COLOR_STATES = THEME_COLOR_STATES;
3164
- exports.THEME_COLOR_STATE_TONES = THEME_COLOR_STATE_TONES;
3165
2951
  exports.TINTS = TINTS;
3166
2952
  exports.buildColor_v3 = buildColor_v3;
3167
2953
  exports.buildTheme = buildTheme;
3168
2954
  exports.buildTheme_v3 = buildTheme_v3;
3169
2955
  exports.createColorTheme = createColorTheme;
2956
+ exports.defaultPalette = defaultPalette;
3170
2957
  exports.defaultTokens = defaultTokens;
3171
2958
  exports.getContrastRatio = getContrastRatio;
3172
2959
  exports.getScopedTheme = getScopedTheme;