@sanity/ui 3.0.0-static.15 → 3.0.0-static.17

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 (526) hide show
  1. package/README.md +6 -6
  2. package/bin/{ui.js → sanity-ui.cjs} +1 -1
  3. package/dist/_chunks-cjs/{_visual-editing.js → _visual-editing.cjs} +67 -77
  4. package/dist/_chunks-cjs/_visual-editing.cjs.map +1 -0
  5. package/dist/_chunks-cjs/{buildCommand.js → buildCommand.cjs} +26 -10
  6. package/dist/_chunks-cjs/buildCommand.cjs.map +1 -0
  7. package/dist/_chunks-cjs/{refractor.js → refractor.cjs} +1 -1
  8. package/dist/_chunks-cjs/refractor.cjs.map +1 -0
  9. package/dist/_chunks-es/{_visual-editing.mjs → _visual-editing.js} +68 -78
  10. package/dist/_chunks-es/_visual-editing.js.map +1 -0
  11. package/dist/_chunks-es/{refractor.mjs → refractor.js} +1 -1
  12. package/dist/_chunks-es/refractor.js.map +1 -0
  13. package/dist/_visual-editing.cjs +30 -0
  14. package/dist/_visual-editing.cjs.map +1 -0
  15. package/dist/{_visual-editing.d.mts → _visual-editing.d.cts} +5 -15
  16. package/dist/_visual-editing.d.ts +5 -15
  17. package/dist/_visual-editing.js +29 -30
  18. package/dist/_visual-editing.js.map +1 -1
  19. package/dist/{cli.js → cli.cjs} +4 -4
  20. package/dist/cli.cjs.map +1 -0
  21. package/dist/{css.mjs → css.cjs} +809 -923
  22. package/dist/css.cjs.map +1 -0
  23. package/dist/{css.d.mts → css.d.cts} +31 -24
  24. package/dist/css.d.ts +31 -24
  25. package/dist/css.js +809 -921
  26. package/dist/css.js.map +1 -1
  27. package/dist/{index.mjs → index.cjs} +373 -406
  28. package/dist/index.cjs.map +1 -0
  29. package/dist/{index.d.mts → index.d.cts} +10 -20
  30. package/dist/index.d.ts +10 -20
  31. package/dist/index.js +371 -406
  32. package/dist/index.js.map +1 -1
  33. package/dist/{theme.mjs → theme.cjs} +219 -196
  34. package/dist/theme.cjs.map +1 -0
  35. package/dist/{theme.d.mts → theme.d.cts} +2 -0
  36. package/dist/theme.d.ts +2 -0
  37. package/dist/theme.js +218 -195
  38. package/dist/theme.js.map +1 -1
  39. package/dist/{sanity-palette.css → ui-palette.css} +1 -1
  40. package/dist/ui-palette.min.css +1 -0
  41. package/dist/{system.css → ui-system.css} +1135 -245
  42. package/dist/ui-system.min.css +1 -0
  43. package/dist/{sanity-theme.css → ui-theme.css} +199 -199
  44. package/dist/ui-theme.min.css +1 -0
  45. package/dist/ui.css +29152 -0
  46. package/dist/ui.min.css +1 -0
  47. package/exports/_visual-editing.ts +27 -27
  48. package/exports/index.ts +1 -1
  49. package/package.json +24 -24
  50. package/src/cli/buildCommand.ts +55 -20
  51. package/src/cli/index.ts +2 -14
  52. package/src/{ui → core}/StyleTags.tsx +4 -4
  53. package/src/{ui → core}/_compat/index.ts +0 -1
  54. package/src/{ui → core}/_compat/theme/themeProvider.tsx +3 -3
  55. package/src/{ui → core}/components/autocomplete/__workshop__/async.tsx +2 -2
  56. package/src/{ui → core}/components/autocomplete/__workshop__/custom.tsx +2 -2
  57. package/src/{ui → core}/components/autocomplete/__workshop__/focusAndBlur.tsx +3 -3
  58. package/src/{ui → core}/components/tab/tabList.tsx +19 -4
  59. package/src/{ui → core}/index.ts +0 -1
  60. package/src/{ui → core}/primitives/box/box.tsx +3 -0
  61. package/src/core/primitives/button/__workshop__/custom.tsx +27 -0
  62. package/src/{ui → core}/primitives/button/button.tsx +3 -1
  63. package/src/{ui → core}/primitives/card/__workshop__/asButton.tsx +0 -9
  64. package/src/{ui → core}/primitives/card/__workshop__/interactive.tsx +0 -1
  65. package/src/{ui → core}/primitives/card/__workshop__/props.tsx +0 -3
  66. package/src/{ui → core}/primitives/card/__workshop__/selected.tsx +6 -37
  67. package/src/{ui → core}/primitives/card/card.tsx +15 -21
  68. package/src/core/primitives/card/cardProvider.tsx +27 -0
  69. package/src/{ui → core}/primitives/card/types.ts +5 -4
  70. package/src/{ui → core}/primitives/heading/__workshop__/opticalAlignment.tsx +1 -1
  71. package/src/{ui → core}/primitives/heading/__workshop__/plain.tsx +1 -8
  72. package/src/{ui → core}/primitives/label/__workshop__/plain.tsx +1 -9
  73. package/src/{ui → core}/primitives/popover/popover.tsx +1 -1
  74. package/src/{ui → core}/primitives/text/__workshop__/example.tsx +1 -9
  75. package/src/{ui → core}/primitives/tooltip/tooltip.tsx +1 -1
  76. package/src/{ui/utils/portal/portal.ts → core/utils/portal/portal.tsx} +8 -10
  77. package/src/css/{compilePalette.ts → _compilePalette.ts} +2 -2
  78. package/src/css/{compileSystem.ts → _compileSystem.ts} +1 -1
  79. package/src/css/{compileTheme.ts → _compileTheme.ts} +3 -3
  80. package/src/css/{compileTheme_v3.ts → _compileTheme_v3.ts} +7 -1
  81. package/src/css/_mergeStyles.ts +0 -7
  82. package/src/css/_system.style.ts +3 -0
  83. package/src/css/aspects/font/font.style.ts +0 -21
  84. package/src/css/aspects/font/font.ts +1 -6
  85. package/src/css/aspects/font/types.ts +0 -4
  86. package/src/css/aspects/index.ts +1 -0
  87. package/src/css/aspects/textAlign/index.ts +2 -0
  88. package/src/css/aspects/textAlign/textAlign.style.ts +26 -0
  89. package/src/css/aspects/textAlign/textAlign.ts +8 -0
  90. package/src/css/aspects/textAlign/types.ts +7 -0
  91. package/src/css/index.ts +3 -3
  92. package/src/css/primitives/_input/_input.style.ts +9 -11
  93. package/src/css/primitives/box/box.style.ts +5 -1
  94. package/src/css/primitives/box/box.ts +2 -0
  95. package/src/css/primitives/box/types.ts +2 -0
  96. package/src/css/primitives/button/button.style.ts +23 -9
  97. package/src/css/primitives/button/button.ts +1 -12
  98. package/src/css/primitives/button/types.ts +1 -6
  99. package/src/css/primitives/card/card.style.ts +12 -21
  100. package/src/css/primitives/heading/heading.ts +2 -1
  101. package/src/css/primitives/heading/types.ts +2 -1
  102. package/src/css/primitives/kbd/kbd.style.ts +3 -6
  103. package/src/css/primitives/label/label.ts +2 -1
  104. package/src/css/primitives/label/types.ts +2 -1
  105. package/src/css/primitives/text/text.style.ts +0 -5
  106. package/src/css/primitives/text/text.ts +2 -1
  107. package/src/css/primitives/text/types.ts +2 -1
  108. package/src/css/primitives/textInput/textInput.style.ts +1 -120
  109. package/src/css/types.ts +9 -9
  110. package/src/theme/v3/color/buildColor_v3.ts +53 -25
  111. package/src/theme/v3/color/card.ts +0 -42
  112. package/src/theme/v3/color/renderColor.test.ts +1 -0
  113. package/src/theme/v3/color/renderColor.ts +9 -2
  114. package/src/theme/v3/color/token.ts +1 -0
  115. package/src/theme/v3/defaultTokens.ts +7 -2
  116. package/dist/_chunks-cjs/_visual-editing.js.map +0 -1
  117. package/dist/_chunks-cjs/buildCommand.js.map +0 -1
  118. package/dist/_chunks-cjs/refractor.js.map +0 -1
  119. package/dist/_chunks-es/_visual-editing.mjs.map +0 -1
  120. package/dist/_chunks-es/refractor.mjs.map +0 -1
  121. package/dist/_visual-editing.mjs +0 -31
  122. package/dist/_visual-editing.mjs.map +0 -1
  123. package/dist/cli.js.map +0 -1
  124. package/dist/css.mjs.map +0 -1
  125. package/dist/index.mjs.map +0 -1
  126. package/dist/sanity-palette.min.css +0 -1
  127. package/dist/sanity-theme.min.css +0 -1
  128. package/dist/system.min.css +0 -1
  129. package/dist/theme.mjs.map +0 -1
  130. package/src/css/primitives/button/_constants.ts +0 -17
  131. package/src/ui/RootClassNames.tsx +0 -44
  132. package/src/ui/_compat/studioTheme.ts +0 -7
  133. package/src/ui/primitives/button/__workshop__/custom.tsx +0 -50
  134. package/src/ui/primitives/card/cardProvider.tsx +0 -21
  135. /package/dist/{cli.d.ts → cli.d.cts} +0 -0
  136. /package/src/{ui → core}/_compat/helpers.ts +0 -0
  137. /package/src/{ui → core}/_compat/styles/_responsive.ts +0 -0
  138. /package/src/{ui → core}/_compat/styles/index.ts +0 -0
  139. /package/src/{ui → core}/_compat/theme/index.ts +0 -0
  140. /package/src/{ui → core}/_compat/theme/theme.test.tsx +0 -0
  141. /package/src/{ui → core}/_compat/theme/themeColorProvider.tsx +0 -0
  142. /package/src/{ui → core}/_compat/theme/themeContext.ts +0 -0
  143. /package/src/{ui → core}/_compat/theme/types.ts +0 -0
  144. /package/src/{ui → core}/_compat/theme/useRootTheme.ts +0 -0
  145. /package/src/{ui → core}/_compat/theme/useTheme.ts +0 -0
  146. /package/src/{ui → core}/_compat/types.ts +0 -0
  147. /package/src/{ui → core}/components/autocomplete/__mocks__/apiStore.ts +0 -0
  148. /package/src/{ui → core}/components/autocomplete/__mocks__/countries.ts +0 -0
  149. /package/src/{ui → core}/components/autocomplete/__workshop__/constrainedHeight.tsx +0 -0
  150. /package/src/{ui → core}/components/autocomplete/__workshop__/example.tsx +0 -0
  151. /package/src/{ui → core}/components/autocomplete/__workshop__/fullscreen.tsx +0 -0
  152. /package/src/{ui → core}/components/autocomplete/__workshop__/index.ts +0 -0
  153. /package/src/{ui → core}/components/autocomplete/__workshop__/types.ts +0 -0
  154. /package/src/{ui → core}/components/autocomplete/autocomplete.tsx +0 -0
  155. /package/src/{ui → core}/components/autocomplete/autocompleteOption.tsx +0 -0
  156. /package/src/{ui → core}/components/autocomplete/autocompleteReducer.ts +0 -0
  157. /package/src/{ui → core}/components/autocomplete/constants.ts +0 -0
  158. /package/src/{ui → core}/components/autocomplete/index.ts +0 -0
  159. /package/src/{ui → core}/components/autocomplete/types.ts +0 -0
  160. /package/src/{ui → core}/components/breadcrumbs/__workshop__/example.tsx +0 -0
  161. /package/src/{ui → core}/components/breadcrumbs/__workshop__/index.ts +0 -0
  162. /package/src/{ui → core}/components/breadcrumbs/breadcrumbs.tsx +0 -0
  163. /package/src/{ui → core}/components/breadcrumbs/index.ts +0 -0
  164. /package/src/{ui → core}/components/dialog/__workshop__/activate.tsx +0 -0
  165. /package/src/{ui → core}/components/dialog/__workshop__/autoFocus.tsx +0 -0
  166. /package/src/{ui → core}/components/dialog/__workshop__/index.ts +0 -0
  167. /package/src/{ui → core}/components/dialog/__workshop__/layering.tsx +0 -0
  168. /package/src/{ui → core}/components/dialog/__workshop__/nested.tsx +0 -0
  169. /package/src/{ui → core}/components/dialog/__workshop__/onScroll.tsx +0 -0
  170. /package/src/{ui → core}/components/dialog/__workshop__/panes.tsx +0 -0
  171. /package/src/{ui → core}/components/dialog/__workshop__/position.tsx +0 -0
  172. /package/src/{ui → core}/components/dialog/__workshop__/props.tsx +0 -0
  173. /package/src/{ui → core}/components/dialog/__workshop__/provider.tsx +0 -0
  174. /package/src/{ui → core}/components/dialog/__workshop__/wrapped.tsx +0 -0
  175. /package/src/{ui → core}/components/dialog/dialog.tsx +0 -0
  176. /package/src/{ui → core}/components/dialog/dialogCard.tsx +0 -0
  177. /package/src/{ui → core}/components/dialog/dialogContext.ts +0 -0
  178. /package/src/{ui → core}/components/dialog/dialogProvider.tsx +0 -0
  179. /package/src/{ui → core}/components/dialog/index.ts +0 -0
  180. /package/src/{ui → core}/components/dialog/isTargetWithinScope.ts +0 -0
  181. /package/src/{ui → core}/components/dialog/useDialog.ts +0 -0
  182. /package/src/{ui → core}/components/hotkeys/__workshop__/index.ts +0 -0
  183. /package/src/{ui → core}/components/hotkeys/__workshop__/plain.tsx +0 -0
  184. /package/src/{ui → core}/components/hotkeys/hotkeys.tsx +0 -0
  185. /package/src/{ui → core}/components/hotkeys/index.ts +0 -0
  186. /package/src/{ui → core}/components/index.ts +0 -0
  187. /package/src/{ui → core}/components/menu/__workshop__/asComponent.tsx +0 -0
  188. /package/src/{ui → core}/components/menu/__workshop__/avatarMenu.tsx +0 -0
  189. /package/src/{ui → core}/components/menu/__workshop__/closableMenuButton.tsx +0 -0
  190. /package/src/{ui → core}/components/menu/__workshop__/constrainedInBoundary.tsx +0 -0
  191. /package/src/{ui → core}/components/menu/__workshop__/customMenuItem.tsx +0 -0
  192. /package/src/{ui → core}/components/menu/__workshop__/customSelectedState.tsx +0 -0
  193. /package/src/{ui → core}/components/menu/__workshop__/disableFocusOnClose.tsx +0 -0
  194. /package/src/{ui → core}/components/menu/__workshop__/groups.tsx +0 -0
  195. /package/src/{ui → core}/components/menu/__workshop__/index.ts +0 -0
  196. /package/src/{ui → core}/components/menu/__workshop__/menuButton.tsx +0 -0
  197. /package/src/{ui → core}/components/menu/__workshop__/menuGroupRight.tsx +0 -0
  198. /package/src/{ui → core}/components/menu/__workshop__/nestedMenu.tsx +0 -0
  199. /package/src/{ui → core}/components/menu/__workshop__/onCloseMenuButton.tsx +0 -0
  200. /package/src/{ui → core}/components/menu/__workshop__/selectedItem.tsx +0 -0
  201. /package/src/{ui → core}/components/menu/__workshop__/shouldFocus.tsx +0 -0
  202. /package/src/{ui → core}/components/menu/__workshop__/tones.tsx +0 -0
  203. /package/src/{ui → core}/components/menu/__workshop__/withoutArrow.tsx +0 -0
  204. /package/src/{ui → core}/components/menu/helpers.ts +0 -0
  205. /package/src/{ui → core}/components/menu/index.ts +0 -0
  206. /package/src/{ui → core}/components/menu/menu.test.tsx +0 -0
  207. /package/src/{ui → core}/components/menu/menu.tsx +0 -0
  208. /package/src/{ui → core}/components/menu/menuButton.tsx +0 -0
  209. /package/src/{ui → core}/components/menu/menuContext.ts +0 -0
  210. /package/src/{ui → core}/components/menu/menuDivider.tsx +0 -0
  211. /package/src/{ui → core}/components/menu/menuGroup.tsx +0 -0
  212. /package/src/{ui → core}/components/menu/menuItem.tsx +0 -0
  213. /package/src/{ui → core}/components/menu/useMenu.ts +0 -0
  214. /package/src/{ui → core}/components/menu/useMenuController.ts +0 -0
  215. /package/src/{ui → core}/components/skeleton/__workshop__/delay.tsx +0 -0
  216. /package/src/{ui → core}/components/skeleton/__workshop__/index.ts +0 -0
  217. /package/src/{ui → core}/components/skeleton/__workshop__/skeleton.tsx +0 -0
  218. /package/src/{ui → core}/components/skeleton/codeSkeleton.tsx +0 -0
  219. /package/src/{ui → core}/components/skeleton/headingSkeleton.tsx +0 -0
  220. /package/src/{ui → core}/components/skeleton/index.ts +0 -0
  221. /package/src/{ui → core}/components/skeleton/labelSkeleton.tsx +0 -0
  222. /package/src/{ui → core}/components/skeleton/skeleton.tsx +0 -0
  223. /package/src/{ui → core}/components/skeleton/textSkeleton.tsx +0 -0
  224. /package/src/{ui → core}/components/tab/__workshop__/example.tsx +0 -0
  225. /package/src/{ui → core}/components/tab/__workshop__/index.ts +0 -0
  226. /package/src/{ui → core}/components/tab/index.ts +0 -0
  227. /package/src/{ui → core}/components/tab/tab.tsx +0 -0
  228. /package/src/{ui → core}/components/tab/tabPanel.tsx +0 -0
  229. /package/src/{ui → core}/components/toast/__workshop__/hook.tsx +0 -0
  230. /package/src/{ui → core}/components/toast/__workshop__/index.ts +0 -0
  231. /package/src/{ui → core}/components/toast/__workshop__/toast.tsx +0 -0
  232. /package/src/{ui → core}/components/toast/index.ts +0 -0
  233. /package/src/{ui → core}/components/toast/toast.test.tsx +0 -0
  234. /package/src/{ui → core}/components/toast/toast.tsx +0 -0
  235. /package/src/{ui → core}/components/toast/toastContext.ts +0 -0
  236. /package/src/{ui → core}/components/toast/toastLayer.tsx +0 -0
  237. /package/src/{ui → core}/components/toast/toastProvider.tsx +0 -0
  238. /package/src/{ui → core}/components/toast/toastState.ts +0 -0
  239. /package/src/{ui → core}/components/toast/types.ts +0 -0
  240. /package/src/{ui → core}/components/toast/useToast.ts +0 -0
  241. /package/src/{ui → core}/components/tree/__workshop__/basic.perf.ts +0 -0
  242. /package/src/{ui → core}/components/tree/__workshop__/basic.tsx +0 -0
  243. /package/src/{ui → core}/components/tree/__workshop__/index.ts +0 -0
  244. /package/src/{ui → core}/components/tree/__workshop__/tabFromElement.tsx +0 -0
  245. /package/src/{ui → core}/components/tree/helpers.ts +0 -0
  246. /package/src/{ui → core}/components/tree/index.ts +0 -0
  247. /package/src/{ui → core}/components/tree/tree.tsx +0 -0
  248. /package/src/{ui → core}/components/tree/treeContext.ts +0 -0
  249. /package/src/{ui → core}/components/tree/treeGroup.tsx +0 -0
  250. /package/src/{ui → core}/components/tree/treeItem.tsx +0 -0
  251. /package/src/{ui → core}/components/tree/types.ts +0 -0
  252. /package/src/{ui → core}/components/tree/useTree.ts +0 -0
  253. /package/src/{ui → core}/constants.ts +0 -0
  254. /package/src/{ui → core}/global.ts +0 -0
  255. /package/src/{ui → core}/helpers/animation.ts +0 -0
  256. /package/src/{ui → core}/helpers/element.ts +0 -0
  257. /package/src/{ui → core}/helpers/focus.ts +0 -0
  258. /package/src/{ui → core}/helpers/index.ts +0 -0
  259. /package/src/{ui → core}/helpers/props.ts +0 -0
  260. /package/src/{ui → core}/helpers/scroll.ts +0 -0
  261. /package/src/{ui → core}/hooks/index.ts +0 -0
  262. /package/src/{ui → core}/hooks/useArrayProp.ts +0 -0
  263. /package/src/{ui → core}/hooks/useClickOutside.test.tsx +0 -0
  264. /package/src/{ui → core}/hooks/useClickOutside.ts +0 -0
  265. /package/src/{ui → core}/hooks/useClickOutsideEvent.test.tsx +0 -0
  266. /package/src/{ui → core}/hooks/useClickOutsideEvent.ts +0 -0
  267. /package/src/{ui → core}/hooks/useCustomValidity.ts +0 -0
  268. /package/src/{ui → core}/hooks/useDelayed.test.ts +0 -0
  269. /package/src/{ui → core}/hooks/useDelayedState.ts +0 -0
  270. /package/src/{ui → core}/hooks/useElementRect/__workshop__/example.tsx +0 -0
  271. /package/src/{ui → core}/hooks/useElementRect/__workshop__/index.ts +0 -0
  272. /package/src/{ui → core}/hooks/useElementRect/index.ts +0 -0
  273. /package/src/{ui → core}/hooks/useElementRect/useElementRect.ts +0 -0
  274. /package/src/{ui → core}/hooks/useElementSize.ts +0 -0
  275. /package/src/{ui → core}/hooks/useForwardedRef.ts +0 -0
  276. /package/src/{ui → core}/hooks/useGlobalKeyDown.ts +0 -0
  277. /package/src/{ui → core}/hooks/useIsomorphicEffect.ts +0 -0
  278. /package/src/{ui → core}/hooks/useMatchMedia.ts +0 -0
  279. /package/src/{ui → core}/hooks/useMediaIndex/__workshop__/index.ts +0 -0
  280. /package/src/{ui → core}/hooks/useMediaIndex/__workshop__/test.tsx +0 -0
  281. /package/src/{ui → core}/hooks/useMediaIndex/index.ts +0 -0
  282. /package/src/{ui → core}/hooks/useMediaIndex/useMediaIndex.test.tsx +0 -0
  283. /package/src/{ui → core}/hooks/useMediaIndex/useMediaIndex.ts +0 -0
  284. /package/src/{ui → core}/hooks/useMounted.ts +0 -0
  285. /package/src/{ui → core}/hooks/usePrefersDark.hydration.test.tsx +0 -0
  286. /package/src/{ui → core}/hooks/usePrefersDark.test.tsx +0 -0
  287. /package/src/{ui → core}/hooks/usePrefersDark.ts +0 -0
  288. /package/src/{ui → core}/hooks/usePrefersReducedMotion.hydration.test.tsx +0 -0
  289. /package/src/{ui → core}/hooks/usePrefersReducedMotion.test.tsx +0 -0
  290. /package/src/{ui → core}/hooks/usePrefersReducedMotion.ts +0 -0
  291. /package/src/{ui → core}/lib/createGlobalScopedContext.ts +0 -0
  292. /package/src/{ui → core}/lib/globalScope.ts +0 -0
  293. /package/src/{ui → core}/lib/isRecord.ts +0 -0
  294. /package/src/{ui → core}/middleware/origin.ts +0 -0
  295. /package/src/{ui → core}/observers/elementSizeObserver.ts +0 -0
  296. /package/src/{ui → core}/observers/index.ts +0 -0
  297. /package/src/{ui → core}/observers/resizeObserver.ts +0 -0
  298. /package/src/{ui → core}/primitives/_selectable/index.ts +0 -0
  299. /package/src/{ui → core}/primitives/_selectable/selectable.tsx +0 -0
  300. /package/src/{ui → core}/primitives/avatar/__workshop__/asButton.tsx +0 -0
  301. /package/src/{ui → core}/primitives/avatar/__workshop__/index.ts +0 -0
  302. /package/src/{ui → core}/primitives/avatar/__workshop__/stack.tsx +0 -0
  303. /package/src/{ui → core}/primitives/avatar/__workshop__/withinButton.tsx +0 -0
  304. /package/src/{ui → core}/primitives/avatar/__workshop__/withinMenuItem.tsx +0 -0
  305. /package/src/{ui → core}/primitives/avatar/avatar.tsx +0 -0
  306. /package/src/{ui → core}/primitives/avatar/avatarCounter.tsx +0 -0
  307. /package/src/{ui → core}/primitives/avatar/avatarStack.tsx +0 -0
  308. /package/src/{ui → core}/primitives/avatar/index.ts +0 -0
  309. /package/src/{ui → core}/primitives/avatar/types.ts +0 -0
  310. /package/src/{ui → core}/primitives/badge/__workshop__/index.ts +0 -0
  311. /package/src/{ui → core}/primitives/badge/__workshop__/props.tsx +0 -0
  312. /package/src/{ui → core}/primitives/badge/__workshop__/tones.tsx +0 -0
  313. /package/src/{ui → core}/primitives/badge/badge.test.tsx +0 -0
  314. /package/src/{ui → core}/primitives/badge/badge.tsx +0 -0
  315. /package/src/{ui → core}/primitives/badge/index.ts +0 -0
  316. /package/src/{ui → core}/primitives/badge/types.ts +0 -0
  317. /package/src/{ui → core}/primitives/box/__workshop__/index.ts +0 -0
  318. /package/src/{ui → core}/primitives/box/__workshop__/props.tsx +0 -0
  319. /package/src/{ui → core}/primitives/box/__workshop__/responsive.tsx +0 -0
  320. /package/src/{ui → core}/primitives/box/index.ts +0 -0
  321. /package/src/{ui → core}/primitives/button/__workshop__/customIcons.tsx +0 -0
  322. /package/src/{ui → core}/primitives/button/__workshop__/disabled.tsx +0 -0
  323. /package/src/{ui → core}/primitives/button/__workshop__/index.ts +0 -0
  324. /package/src/{ui → core}/primitives/button/__workshop__/mixedChildren.tsx +0 -0
  325. /package/src/{ui → core}/primitives/button/__workshop__/props.tsx +0 -0
  326. /package/src/{ui → core}/primitives/button/__workshop__/sanityUploadButton.tsx +0 -0
  327. /package/src/{ui → core}/primitives/button/__workshop__/stacked.tsx +0 -0
  328. /package/src/{ui → core}/primitives/button/__workshop__/styled1.tsx +0 -0
  329. /package/src/{ui → core}/primitives/button/__workshop__/styled2.tsx +0 -0
  330. /package/src/{ui → core}/primitives/button/__workshop__/uploadButton.tsx +0 -0
  331. /package/src/{ui → core}/primitives/button/button.test.tsx +0 -0
  332. /package/src/{ui → core}/primitives/button/index.ts +0 -0
  333. /package/src/{ui → core}/primitives/card/__workshop__/allTones.tsx +0 -0
  334. /package/src/{ui → core}/primitives/card/__workshop__/asComponent.tsx +0 -0
  335. /package/src/{ui → core}/primitives/card/__workshop__/checkered.tsx +0 -0
  336. /package/src/{ui → core}/primitives/card/__workshop__/index.ts +0 -0
  337. /package/src/{ui → core}/primitives/card/__workshop__/listNavigation.tsx +0 -0
  338. /package/src/{ui → core}/primitives/card/__workshop__/styled.tsx +0 -0
  339. /package/src/{ui → core}/primitives/card/cardContext.ts +0 -0
  340. /package/src/{ui → core}/primitives/card/index.ts +0 -0
  341. /package/src/{ui → core}/primitives/card/useCard.ts +0 -0
  342. /package/src/{ui → core}/primitives/checkbox/__workshop__/example.tsx +0 -0
  343. /package/src/{ui → core}/primitives/checkbox/__workshop__/index.ts +0 -0
  344. /package/src/{ui → core}/primitives/checkbox/__workshop__/props.tsx +0 -0
  345. /package/src/{ui → core}/primitives/checkbox/__workshop__/readOnly.tsx +0 -0
  346. /package/src/{ui → core}/primitives/checkbox/__workshop__/tones.tsx +0 -0
  347. /package/src/{ui → core}/primitives/checkbox/checkbox.tsx +0 -0
  348. /package/src/{ui → core}/primitives/checkbox/index.ts +0 -0
  349. /package/src/{ui → core}/primitives/code/__workshop__/index.ts +0 -0
  350. /package/src/{ui → core}/primitives/code/__workshop__/opticalAlignment.tsx +0 -0
  351. /package/src/{ui → core}/primitives/code/__workshop__/props.tsx +0 -0
  352. /package/src/{ui → core}/primitives/code/code.tsx +0 -0
  353. /package/src/{ui → core}/primitives/code/index.ts +0 -0
  354. /package/src/{ui → core}/primitives/code/refractor.tsx +0 -0
  355. /package/src/{ui → core}/primitives/container/__workshop__/example.tsx +0 -0
  356. /package/src/{ui → core}/primitives/container/__workshop__/index.ts +0 -0
  357. /package/src/{ui → core}/primitives/container/container.tsx +0 -0
  358. /package/src/{ui → core}/primitives/container/index.ts +0 -0
  359. /package/src/{ui → core}/primitives/container/types.ts +0 -0
  360. /package/src/{ui → core}/primitives/flex/__workshop__/example.tsx +0 -0
  361. /package/src/{ui → core}/primitives/flex/__workshop__/gap.tsx +0 -0
  362. /package/src/{ui → core}/primitives/flex/__workshop__/index.ts +0 -0
  363. /package/src/{ui → core}/primitives/flex/flex.tsx +0 -0
  364. /package/src/{ui → core}/primitives/flex/index.ts +0 -0
  365. /package/src/{ui → core}/primitives/grid/__workshop__/index.ts +0 -0
  366. /package/src/{ui → core}/primitives/grid/__workshop__/responsive.tsx +0 -0
  367. /package/src/{ui → core}/primitives/grid/grid.tsx +0 -0
  368. /package/src/{ui → core}/primitives/grid/index.ts +0 -0
  369. /package/src/{ui → core}/primitives/heading/__workshop__/index.ts +0 -0
  370. /package/src/{ui → core}/primitives/heading/heading.tsx +0 -0
  371. /package/src/{ui → core}/primitives/heading/index.ts +0 -0
  372. /package/src/{ui → core}/primitives/index.ts +0 -0
  373. /package/src/{ui → core}/primitives/inline/__workshop__/index.ts +0 -0
  374. /package/src/{ui → core}/primitives/inline/__workshop__/plain.tsx +0 -0
  375. /package/src/{ui → core}/primitives/inline/index.ts +0 -0
  376. /package/src/{ui → core}/primitives/inline/inline.tsx +0 -0
  377. /package/src/{ui → core}/primitives/inline/types.ts +0 -0
  378. /package/src/{ui → core}/primitives/kbd/__workshop__/index.ts +0 -0
  379. /package/src/{ui → core}/primitives/kbd/__workshop__/plain.tsx +0 -0
  380. /package/src/{ui → core}/primitives/kbd/index.ts +0 -0
  381. /package/src/{ui → core}/primitives/kbd/kbd.tsx +0 -0
  382. /package/src/{ui → core}/primitives/label/__workshop__/index.ts +0 -0
  383. /package/src/{ui → core}/primitives/label/__workshop__/opticalAlignment.tsx +0 -0
  384. /package/src/{ui → core}/primitives/label/index.ts +0 -0
  385. /package/src/{ui → core}/primitives/label/label.tsx +0 -0
  386. /package/src/{ui → core}/primitives/popover/__workshop__/AlignedStory.tsx +0 -0
  387. /package/src/{ui → core}/primitives/popover/__workshop__/MarginsStory.tsx +0 -0
  388. /package/src/{ui → core}/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +0 -0
  389. /package/src/{ui → core}/primitives/popover/__workshop__/OpenOnMountStory.tsx +0 -0
  390. /package/src/{ui → core}/primitives/popover/__workshop__/PlainStory.tsx +0 -0
  391. /package/src/{ui → core}/primitives/popover/__workshop__/RecursiveStory.tsx +0 -0
  392. /package/src/{ui → core}/primitives/popover/__workshop__/SidePanelStory.tsx +0 -0
  393. /package/src/{ui → core}/primitives/popover/__workshop__/TestStory.tsx +0 -0
  394. /package/src/{ui → core}/primitives/popover/__workshop__/index.ts +0 -0
  395. /package/src/{ui → core}/primitives/popover/constants.ts +0 -0
  396. /package/src/{ui → core}/primitives/popover/floating-ui/size.ts +0 -0
  397. /package/src/{ui → core}/primitives/popover/helpers.ts +0 -0
  398. /package/src/{ui → core}/primitives/popover/index.ts +0 -0
  399. /package/src/{ui → core}/primitives/popover/popoverLayer.tsx +0 -0
  400. /package/src/{ui → core}/primitives/popover/types.ts +0 -0
  401. /package/src/{ui → core}/primitives/radio/__workshop__/example.tsx +0 -0
  402. /package/src/{ui → core}/primitives/radio/__workshop__/index.ts +0 -0
  403. /package/src/{ui → core}/primitives/radio/__workshop__/plain.tsx +0 -0
  404. /package/src/{ui → core}/primitives/radio/index.ts +0 -0
  405. /package/src/{ui → core}/primitives/radio/radio.tsx +0 -0
  406. /package/src/{ui → core}/primitives/select/__workshop__/index.ts +0 -0
  407. /package/src/{ui → core}/primitives/select/__workshop__/plain.tsx +0 -0
  408. /package/src/{ui → core}/primitives/select/__workshop__/readOnly.tsx +0 -0
  409. /package/src/{ui → core}/primitives/select/index.ts +0 -0
  410. /package/src/{ui → core}/primitives/select/select.tsx +0 -0
  411. /package/src/{ui → core}/primitives/spinner/__workshop__/Props.tsx +0 -0
  412. /package/src/{ui → core}/primitives/spinner/__workshop__/index.ts +0 -0
  413. /package/src/{ui → core}/primitives/spinner/animatedSpinnerIcon.tsx +0 -0
  414. /package/src/{ui → core}/primitives/spinner/index.ts +0 -0
  415. /package/src/{ui → core}/primitives/spinner/spinner.tsx +0 -0
  416. /package/src/{ui → core}/primitives/stack/__workshop__/index.ts +0 -0
  417. /package/src/{ui → core}/primitives/stack/__workshop__/plain.tsx +0 -0
  418. /package/src/{ui → core}/primitives/stack/index.ts +0 -0
  419. /package/src/{ui → core}/primitives/stack/stack.tsx +0 -0
  420. /package/src/{ui → core}/primitives/switch/__workshop__/example.tsx +0 -0
  421. /package/src/{ui → core}/primitives/switch/__workshop__/index.ts +0 -0
  422. /package/src/{ui → core}/primitives/switch/__workshop__/props.tsx +0 -0
  423. /package/src/{ui → core}/primitives/switch/index.ts +0 -0
  424. /package/src/{ui → core}/primitives/switch/switch.tsx +0 -0
  425. /package/src/{ui → core}/primitives/text/__workshop__/colored.tsx +0 -0
  426. /package/src/{ui → core}/primitives/text/__workshop__/index.ts +0 -0
  427. /package/src/{ui → core}/primitives/text/__workshop__/opticalAlignment.tsx +0 -0
  428. /package/src/{ui → core}/primitives/text/index.ts +0 -0
  429. /package/src/{ui → core}/primitives/text/text.tsx +0 -0
  430. /package/src/{ui → core}/primitives/textArea/__workshop__/index.ts +0 -0
  431. /package/src/{ui → core}/primitives/textArea/__workshop__/plain.tsx +0 -0
  432. /package/src/{ui → core}/primitives/textArea/index.ts +0 -0
  433. /package/src/{ui → core}/primitives/textArea/textArea.tsx +0 -0
  434. /package/src/{ui → core}/primitives/textInput/__workshop__/clearButton.tsx +0 -0
  435. /package/src/{ui → core}/primitives/textInput/__workshop__/customValidity.tsx +0 -0
  436. /package/src/{ui → core}/primitives/textInput/__workshop__/index.ts +0 -0
  437. /package/src/{ui → core}/primitives/textInput/__workshop__/plain.tsx +0 -0
  438. /package/src/{ui → core}/primitives/textInput/__workshop__/readOnly.tsx +0 -0
  439. /package/src/{ui → core}/primitives/textInput/__workshop__/states.tsx +0 -0
  440. /package/src/{ui → core}/primitives/textInput/__workshop__/tones.tsx +0 -0
  441. /package/src/{ui → core}/primitives/textInput/__workshop__/typed.tsx +0 -0
  442. /package/src/{ui → core}/primitives/textInput/index.ts +0 -0
  443. /package/src/{ui → core}/primitives/textInput/textInput.tsx +0 -0
  444. /package/src/{ui → core}/primitives/tooltip/__workshop__/customPortal.tsx +0 -0
  445. /package/src/{ui → core}/primitives/tooltip/__workshop__/index.ts +0 -0
  446. /package/src/{ui → core}/primitives/tooltip/__workshop__/overflowingBoundary.tsx +0 -0
  447. /package/src/{ui → core}/primitives/tooltip/__workshop__/props.tsx +0 -0
  448. /package/src/{ui → core}/primitives/tooltip/__workshop__/resizableBoundary.tsx +0 -0
  449. /package/src/{ui → core}/primitives/tooltip/constants.ts +0 -0
  450. /package/src/{ui → core}/primitives/tooltip/index.ts +0 -0
  451. /package/src/{ui → core}/primitives/tooltip/tooltip.test.tsx +0 -0
  452. /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/index.ts +0 -0
  453. /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupContext.tsx +0 -0
  454. /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +0 -0
  455. /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/types.ts +0 -0
  456. /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/useTooltipDelayGroup.ts +0 -0
  457. /package/src/{ui → core}/primitives/tooltip/tooltipLayer.tsx +0 -0
  458. /package/src/{ui → core}/primitives/types.ts +0 -0
  459. /package/src/{ui → core}/types/avatar.ts +0 -0
  460. /package/src/{ui → core}/types/badge.ts +0 -0
  461. /package/src/{ui → core}/types/box.ts +0 -0
  462. /package/src/{ui → core}/types/button.ts +0 -0
  463. /package/src/{ui → core}/types/card.ts +0 -0
  464. /package/src/{ui → core}/types/dialog.ts +0 -0
  465. /package/src/{ui → core}/types/flex.ts +0 -0
  466. /package/src/{ui → core}/types/grid.ts +0 -0
  467. /package/src/{ui → core}/types/gridItem.ts +0 -0
  468. /package/src/{ui → core}/types/index.ts +0 -0
  469. /package/src/{ui → core}/types/placement.ts +0 -0
  470. /package/src/{ui → core}/types/popover.ts +0 -0
  471. /package/src/{ui → core}/types/props.ts +0 -0
  472. /package/src/{ui → core}/types/radius.ts +0 -0
  473. /package/src/{ui → core}/types/selectable.ts +0 -0
  474. /package/src/{ui → core}/types/text.ts +0 -0
  475. /package/src/{ui → core}/utils/arrow/arrow.tsx +0 -0
  476. /package/src/{ui → core}/utils/arrow/cmds.ts +0 -0
  477. /package/src/{ui → core}/utils/arrow/index.ts +0 -0
  478. /package/src/{ui → core}/utils/boundaryElement/__workshop__/index.ts +0 -0
  479. /package/src/{ui → core}/utils/boundaryElement/__workshop__/plain.tsx +0 -0
  480. /package/src/{ui → core}/utils/boundaryElement/boundaryElement.test.tsx +0 -0
  481. /package/src/{ui → core}/utils/boundaryElement/boundaryElementContext.ts +0 -0
  482. /package/src/{ui → core}/utils/boundaryElement/boundaryElementProvider.tsx +0 -0
  483. /package/src/{ui → core}/utils/boundaryElement/index.ts +0 -0
  484. /package/src/{ui → core}/utils/boundaryElement/types.ts +0 -0
  485. /package/src/{ui → core}/utils/boundaryElement/useBoundaryElement.ts +0 -0
  486. /package/src/{ui → core}/utils/elementQuery/__workshop__/customMedia.tsx +0 -0
  487. /package/src/{ui → core}/utils/elementQuery/__workshop__/index.ts +0 -0
  488. /package/src/{ui → core}/utils/elementQuery/elementQuery.tsx +0 -0
  489. /package/src/{ui → core}/utils/elementQuery/helpers.ts +0 -0
  490. /package/src/{ui → core}/utils/elementQuery/index.ts +0 -0
  491. /package/src/{ui → core}/utils/errorBoundary.tsx +0 -0
  492. /package/src/{ui → core}/utils/getElementRef.ts +0 -0
  493. /package/src/{ui → core}/utils/index.ts +0 -0
  494. /package/src/{ui → core}/utils/layer/__workshop__/_debug.tsx +0 -0
  495. /package/src/{ui → core}/utils/layer/__workshop__/index.ts +0 -0
  496. /package/src/{ui → core}/utils/layer/__workshop__/multipleRoots.tsx +0 -0
  497. /package/src/{ui → core}/utils/layer/__workshop__/nested.tsx +0 -0
  498. /package/src/{ui → core}/utils/layer/__workshop__/responsiveZOffset.tsx +0 -0
  499. /package/src/{ui → core}/utils/layer/getLayerContext.test.ts +0 -0
  500. /package/src/{ui → core}/utils/layer/getLayerContext.ts +0 -0
  501. /package/src/{ui → core}/utils/layer/index.ts +0 -0
  502. /package/src/{ui → core}/utils/layer/layer.test.tsx +0 -0
  503. /package/src/{ui → core}/utils/layer/layer.tsx +0 -0
  504. /package/src/{ui → core}/utils/layer/layerCard.tsx +0 -0
  505. /package/src/{ui → core}/utils/layer/layerContext.ts +0 -0
  506. /package/src/{ui → core}/utils/layer/layerProvider.tsx +0 -0
  507. /package/src/{ui → core}/utils/layer/types.ts +0 -0
  508. /package/src/{ui → core}/utils/layer/useLayer.ts +0 -0
  509. /package/src/{ui → core}/utils/portal/__workshop__/index.ts +0 -0
  510. /package/src/{ui → core}/utils/portal/__workshop__/named.tsx +0 -0
  511. /package/src/{ui → core}/utils/portal/index.ts +0 -0
  512. /package/src/{ui → core}/utils/portal/portal.test.tsx +0 -0
  513. /package/src/{ui → core}/utils/portal/portalContext.ts +0 -0
  514. /package/src/{ui → core}/utils/portal/portalProvider.tsx +0 -0
  515. /package/src/{ui → core}/utils/portal/types.ts +0 -0
  516. /package/src/{ui → core}/utils/portal/usePortal.ts +0 -0
  517. /package/src/{ui → core}/utils/spanWithTextOverflow.tsx +0 -0
  518. /package/src/{ui → core}/utils/srOnly/index.ts +0 -0
  519. /package/src/{ui → core}/utils/srOnly/srOnly.tsx +0 -0
  520. /package/src/{ui → core}/utils/virtualList/__workshop__/changingProps.tsx +0 -0
  521. /package/src/{ui → core}/utils/virtualList/__workshop__/elementScroll.tsx +0 -0
  522. /package/src/{ui → core}/utils/virtualList/__workshop__/index.ts +0 -0
  523. /package/src/{ui → core}/utils/virtualList/__workshop__/infiniteList.tsx +0 -0
  524. /package/src/{ui → core}/utils/virtualList/__workshop__/windowScrolll.tsx +0 -0
  525. /package/src/{ui → core}/utils/virtualList/index.ts +0 -0
  526. /package/src/{ui → core}/utils/virtualList/virtualList.tsx +0 -0
@@ -1,4 +1,6 @@
1
- import { COLOR_HUES, COLOR_TINTS } from "@sanity/color";
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: !0 });
3
+ var color = require("@sanity/color");
2
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
5
  function createSelectableTones(opts, base, dark, solid, muted) {
4
6
  return {
@@ -506,13 +508,13 @@ const black = "hsl(0, 0%, 0%)", white = "hsl(0, 0%, 100%)", colors = {
506
508
  state,
507
509
  tone
508
510
  }) => {
509
- const color = colors[tone];
511
+ const color2 = colors[tone];
510
512
  return state === "hovered" ? {
511
- bg: dark ? color.light : color.dark,
512
- bg2: dark ? color.light : color.dark,
513
- border: dark ? color.lighter : color.darker,
514
- fg: dark ? color.darkest : color.lightest,
515
- icon: dark ? color.darkest : color.lightest,
513
+ bg: dark ? color2.light : color2.dark,
514
+ bg2: dark ? color2.light : color2.dark,
515
+ border: dark ? color2.lighter : color2.darker,
516
+ fg: dark ? color2.darkest : color2.lightest,
517
+ icon: dark ? color2.darkest : color2.lightest,
516
518
  muted: {
517
519
  fg: black
518
520
  },
@@ -528,11 +530,11 @@ const black = "hsl(0, 0%, 0%)", white = "hsl(0, 0%, 100%)", colors = {
528
530
  },
529
531
  skeleton: base.skeleton
530
532
  } : {
531
- bg: color.base,
532
- bg2: color.base,
533
- border: dark ? color.light : color.dark,
534
- fg: dark ? color.darkest : color.lightest,
535
- icon: dark ? color.darkest : color.lightest,
533
+ bg: color2.base,
534
+ bg2: color2.base,
535
+ border: dark ? color2.light : color2.dark,
536
+ fg: dark ? color2.darkest : color2.lightest,
537
+ icon: dark ? color2.darkest : color2.lightest,
536
538
  muted: {
537
539
  fg: black
538
540
  },
@@ -555,13 +557,13 @@ const black = "hsl(0, 0%, 0%)", white = "hsl(0, 0%, 100%)", colors = {
555
557
  state,
556
558
  tone
557
559
  }) => {
558
- const color = colors[tone];
560
+ const color2 = colors[tone];
559
561
  return state === "hovered" ? {
560
- bg: dark ? color.darker : color.lighter,
561
- bg2: dark ? color.darker : color.lighter,
562
- border: dark ? color.lighter : color.darker,
563
- fg: dark ? color.lightest : color.darkest,
564
- icon: dark ? color.lightest : color.darkest,
562
+ bg: dark ? color2.darker : color2.lighter,
563
+ bg2: dark ? color2.darker : color2.lighter,
564
+ border: dark ? color2.lighter : color2.darker,
565
+ fg: dark ? color2.lightest : color2.darkest,
566
+ icon: dark ? color2.lightest : color2.darkest,
565
567
  muted: {
566
568
  fg: black
567
569
  },
@@ -577,11 +579,11 @@ const black = "hsl(0, 0%, 0%)", white = "hsl(0, 0%, 100%)", colors = {
577
579
  },
578
580
  skeleton: base.skeleton
579
581
  } : {
580
- bg: dark ? color.darkest : color.lightest,
581
- bg2: dark ? color.darkest : color.lightest,
582
- border: dark ? color.darker : color.lighter,
583
- fg: dark ? color.lighter : color.darker,
584
- icon: dark ? color.lighter : color.darker,
582
+ bg: dark ? color2.darkest : color2.lightest,
583
+ bg2: dark ? color2.darkest : color2.lightest,
584
+ border: dark ? color2.darker : color2.lighter,
585
+ fg: dark ? color2.lighter : color2.darker,
586
+ icon: dark ? color2.lighter : color2.darker,
585
587
  muted: {
586
588
  fg: black
587
589
  },
@@ -1452,15 +1454,15 @@ const defaultThemeConfig = {
1452
1454
  "positive",
1453
1455
  "caution",
1454
1456
  "critical"
1455
- ], 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_HUES;
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;
1456
1458
  function isColorBlendModeValue(str) {
1457
1459
  return THEME_COLOR_BLEND_MODES.includes(str);
1458
1460
  }
1459
1461
  function isColorHueKey(str) {
1460
- return COLOR_HUES.includes(str);
1462
+ return color.COLOR_HUES.includes(str);
1461
1463
  }
1462
1464
  function isColorTintKey(str) {
1463
- return COLOR_TINTS.includes(str);
1465
+ return color.COLOR_TINTS.includes(str);
1464
1466
  }
1465
1467
  function isColorButtonMode(str) {
1466
1468
  return THEME_COLOR_BUTTON_MODES.includes(str);
@@ -1468,12 +1470,12 @@ function isColorButtonMode(str) {
1468
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]+)?/;
1469
1471
  function parseColor$1(str) {
1470
1472
  let cursor = 0;
1471
- const color = getColor();
1472
- if (!color)
1473
+ const color2 = getColor();
1474
+ if (!color2)
1473
1475
  throw new Error(`Invalid color: ${str}`);
1474
1476
  const opacity = getOpacity(), mix2 = getMixPercentage();
1475
1477
  return {
1476
- color,
1478
+ color: color2,
1477
1479
  mix: mix2,
1478
1480
  opacity
1479
1481
  };
@@ -1543,10 +1545,14 @@ function parseColor$1(str) {
1543
1545
  }
1544
1546
  function renderColor(token, context) {
1545
1547
  const {
1548
+ bgValue,
1546
1549
  bgVar,
1547
1550
  hue,
1548
1551
  scheme
1549
- } = context, result = parseColor$1(token[scheme === "dark" ? 0 : 1]), colorVar = result.color.type === "hue" ? `--${result.color.hue ?? hue}-${result.color.tint}` : `--${result.color.type}`;
1552
+ } = context, t = token[scheme === "dark" ? 0 : 1];
1553
+ if (t === "inherit")
1554
+ return bgValue;
1555
+ const result = parseColor$1(t), colorVar = result.color.type === "hue" ? `--${result.color.hue ?? hue}-${result.color.tint}` : `--${result.color.type}`;
1550
1556
  return result.mix !== void 0 ? `color-mix(in srgb, var(${bgVar}), var(${colorVar}) ${result.mix}%)` : result.opacity !== void 0 ? `color-mix(in srgb, transparent, var(${colorVar}) ${result.opacity * 100}%)` : `var(${colorVar})`;
1551
1557
  }
1552
1558
  function buildColor_v3(tokens) {
@@ -1573,21 +1579,27 @@ function buildColorCard_v3(tokens, options) {
1573
1579
  const {
1574
1580
  scheme
1575
1581
  } = options, context = {
1576
- bgVar: "--color-bg-1",
1582
+ bgVar: "--color-bg",
1583
+ bgValue: "transparent",
1577
1584
  hue: tokens._hue,
1578
1585
  scheme
1579
- };
1586
+ }, tintedDefaultVariant = buildColorElement_v3(tokens.variant.tinted.default, {
1587
+ bgValue: "transparent",
1588
+ scheme
1589
+ }), bgValue = tintedDefaultVariant.bg[0];
1580
1590
  return {
1581
1591
  _hue: tokens._hue ?? "gray",
1582
1592
  avatar: THEME_COLOR_AVATAR_COLORS.reduce((acc, hue) => {
1583
1593
  const avatarTokens = tokens.avatar[hue];
1584
1594
  return acc[hue] = {
1585
1595
  bg: renderColor(avatarTokens.bg, {
1596
+ bgValue,
1586
1597
  bgVar: "--color-bg-1",
1587
1598
  hue: avatarTokens._hue,
1588
1599
  scheme
1589
1600
  }),
1590
1601
  fg: renderColor(avatarTokens.fg, {
1602
+ bgValue,
1591
1603
  bgVar: "--color-bg-1",
1592
1604
  hue: avatarTokens._hue,
1593
1605
  scheme
@@ -1650,29 +1662,27 @@ function buildColorCard_v3(tokens, options) {
1650
1662
  },
1651
1663
  variant: {
1652
1664
  solid: {
1653
- ...THEME_COLOR_STATE_TONES.reduce((acc, tone) => ({
1654
- ...acc,
1655
- [tone]: buildColorElement_v3(tokens.variant.solid[tone], {
1656
- scheme
1657
- })
1658
- }), {})
1665
+ ...THEME_COLOR_STATE_TONES.reduce((acc, tone) => (acc[tone] = buildColorElement_v3(tokens.variant.solid[tone], {
1666
+ bgValue,
1667
+ scheme
1668
+ }), acc), {})
1659
1669
  },
1660
1670
  tinted: {
1661
- ...THEME_COLOR_STATE_TONES.reduce((acc, tone) => ({
1662
- ...acc,
1663
- [tone]: buildColorElement_v3(tokens.variant.tinted[tone], {
1664
- scheme
1665
- })
1666
- }), {})
1671
+ ...THEME_COLOR_STATE_TONES.reduce((acc, tone) => (tone === "default" ? acc[tone] = tintedDefaultVariant : acc[tone] = buildColorElement_v3(tokens.variant.tinted[tone], {
1672
+ bgValue,
1673
+ scheme
1674
+ }), acc), {})
1667
1675
  }
1668
1676
  }
1669
1677
  };
1670
1678
  }
1671
1679
  function buildColorElement_v3(tokens, options) {
1672
1680
  const {
1681
+ bgValue,
1673
1682
  scheme
1674
1683
  } = options, context = {
1675
- bgVar: "--bg",
1684
+ bgValue,
1685
+ bgVar: "--color-bg",
1676
1686
  hue: tokens._hue,
1677
1687
  scheme
1678
1688
  };
@@ -1764,19 +1774,34 @@ const defaultTokens = {
1764
1774
  }
1765
1775
  },
1766
1776
  primary: {
1767
- _hue: "blue"
1777
+ _hue: "blue",
1778
+ bg: {
1779
+ 0: ["inherit", "inherit"]
1780
+ }
1768
1781
  },
1769
1782
  suggest: {
1770
- _hue: "purple"
1783
+ _hue: "purple",
1784
+ bg: {
1785
+ 0: ["inherit", "inherit"]
1786
+ }
1771
1787
  },
1772
1788
  positive: {
1773
- _hue: "green"
1789
+ _hue: "green",
1790
+ bg: {
1791
+ 0: ["inherit", "inherit"]
1792
+ }
1774
1793
  },
1775
1794
  caution: {
1776
- _hue: "yellow"
1795
+ _hue: "yellow",
1796
+ bg: {
1797
+ 0: ["inherit", "inherit"]
1798
+ }
1777
1799
  },
1778
1800
  critical: {
1779
- _hue: "red"
1801
+ _hue: "red",
1802
+ bg: {
1803
+ 0: ["inherit", "inherit"]
1804
+ }
1780
1805
  }
1781
1806
  },
1782
1807
  solid: {
@@ -1791,7 +1816,7 @@ const defaultTokens = {
1791
1816
  },
1792
1817
  fg: {
1793
1818
  0: ["black", "white"],
1794
- 4: ["600", "400"]
1819
+ 4: ["700", "200"]
1795
1820
  }
1796
1821
  },
1797
1822
  default: {
@@ -1852,7 +1877,7 @@ const defaultTokens = {
1852
1877
  },
1853
1878
  border: {
1854
1879
  0: ["800", "100"],
1855
- 4: ["600", "300"]
1880
+ 4: ["600", "400"]
1856
1881
  },
1857
1882
  fg: {
1858
1883
  0: ["white", "black"],
@@ -2093,7 +2118,7 @@ function v2_v0(v2, v3) {
2093
2118
  const {
2094
2119
  avatar,
2095
2120
  button,
2096
- color,
2121
+ color: color2,
2097
2122
  container,
2098
2123
  font: fonts,
2099
2124
  input,
@@ -2110,20 +2135,20 @@ function v2_v0(v2, v3) {
2110
2135
  container,
2111
2136
  color: {
2112
2137
  light: {
2113
- transparent: themeColor_v2_v0(color.light.transparent),
2114
- default: themeColor_v2_v0(color.light.default),
2115
- primary: themeColor_v2_v0(color.light.primary),
2116
- positive: themeColor_v2_v0(color.light.positive),
2117
- caution: themeColor_v2_v0(color.light.caution),
2118
- critical: themeColor_v2_v0(color.light.critical)
2138
+ transparent: themeColor_v2_v0(color2.light.transparent),
2139
+ default: themeColor_v2_v0(color2.light.default),
2140
+ primary: themeColor_v2_v0(color2.light.primary),
2141
+ positive: themeColor_v2_v0(color2.light.positive),
2142
+ caution: themeColor_v2_v0(color2.light.caution),
2143
+ critical: themeColor_v2_v0(color2.light.critical)
2119
2144
  },
2120
2145
  dark: {
2121
- transparent: themeColor_v2_v0(color.dark.transparent),
2122
- default: themeColor_v2_v0(color.dark.default),
2123
- primary: themeColor_v2_v0(color.dark.primary),
2124
- positive: themeColor_v2_v0(color.dark.positive),
2125
- caution: themeColor_v2_v0(color.dark.caution),
2126
- critical: themeColor_v2_v0(color.dark.critical)
2146
+ transparent: themeColor_v2_v0(color2.dark.transparent),
2147
+ default: themeColor_v2_v0(color2.dark.default),
2148
+ primary: themeColor_v2_v0(color2.dark.primary),
2149
+ positive: themeColor_v2_v0(color2.dark.positive),
2150
+ caution: themeColor_v2_v0(color2.dark.caution),
2151
+ critical: themeColor_v2_v0(color2.dark.critical)
2127
2152
  }
2128
2153
  },
2129
2154
  focusRing: input.text.focusRing,
@@ -2196,36 +2221,36 @@ function inputStateThemeColor_v2_v0(t) {
2196
2221
  }
2197
2222
  function themeColor_v3_v2(options) {
2198
2223
  const {
2199
- color,
2224
+ color: color2,
2200
2225
  dark
2201
2226
  } = options;
2202
2227
  return {
2203
2228
  _blend: "screen",
2204
2229
  _dark: dark,
2205
2230
  ...buildColorState({
2206
- cardColor: color,
2231
+ cardColor: color2,
2207
2232
  state: "enabled",
2208
2233
  tone: "default",
2209
2234
  variant: "tinted"
2210
2235
  }),
2211
- backdrop: color.backdrop,
2236
+ backdrop: color2.backdrop,
2212
2237
  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({
2213
- cardColor: color,
2238
+ cardColor: color2,
2214
2239
  state,
2215
2240
  tone,
2216
2241
  variant: mode === "default" ? "solid" : "tinted"
2217
2242
  }), mode === "bleed" && (states[state].border = "transparent"), states), {}), tones2), {}), modes), {}),
2218
- focusRing: color.focusRing,
2219
- input: THEME_COLOR_INPUT_MODES.reduce((modes, mode) => (modes[mode] = THEME_COLOR_INPUT_STATES.reduce((states, state) => (states[state] = buildInputState(color.variant.tinted.default), states), {}), modes), {}),
2243
+ focusRing: color2.focusRing,
2244
+ 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), {}),
2220
2245
  selectable: THEME_COLOR_STATE_TONES.reduce((tones2, tone) => (tones2[tone] = THEME_COLOR_STATES.reduce((states, state) => (states[state] = buildColorState({
2221
- cardColor: color,
2246
+ cardColor: color2,
2222
2247
  // cardVars: vars,
2223
2248
  state,
2224
2249
  tone,
2225
2250
  variant: "tinted"
2226
2251
  }), states), {}), tones2), {}),
2227
- shadow: color.shadow,
2228
- syntax: color.code.token
2252
+ shadow: color2.shadow,
2253
+ syntax: color2.code.token
2229
2254
  };
2230
2255
  }
2231
2256
  const stateShades = {
@@ -2264,37 +2289,37 @@ function buildColorState(options) {
2264
2289
  state,
2265
2290
  tone,
2266
2291
  variant
2267
- } = options, color = cardColor.variant[variant][tone], shades = stateShades[state];
2292
+ } = options, color2 = cardColor.variant[variant][tone], shades = stateShades[state];
2268
2293
  return {
2269
2294
  accent: {
2270
- fg: color.fg[4]
2295
+ fg: color2.fg[4]
2271
2296
  },
2272
2297
  avatar: cardColor.avatar,
2273
2298
  badge: THEME_COLOR_STATE_TONES.reduce((tones2, tone2) => (tones2[tone2] = {
2274
- bg: mix$1(color.bg, 1),
2275
- fg: mix$1(color.fg, 1),
2276
- dot: mix$1(color.fg, 3),
2277
- icon: mix$1(color.fg, 3)
2299
+ bg: mix$1(color2.bg, 1),
2300
+ fg: mix$1(color2.fg, 1),
2301
+ dot: mix$1(color2.fg, 3),
2302
+ icon: mix$1(color2.fg, 3)
2278
2303
  }, tones2), {}),
2279
- bg: mix$1(color.bg, shades.bg[0]),
2280
- border: mix$1(color.border, shades.border[0]),
2281
- fg: mix$1(color.fg, shades.fg[0]),
2304
+ bg: mix$1(color2.bg, shades.bg[0]),
2305
+ border: mix$1(color2.border, shades.border[0]),
2306
+ fg: mix$1(color2.fg, shades.fg[0]),
2282
2307
  code: {
2283
- bg: mix$1(color.bg, shades.bg[1]),
2284
- fg: mix$1(color.fg, shades.fg[2])
2308
+ bg: mix$1(color2.bg, shades.bg[1]),
2309
+ fg: mix$1(color2.fg, shades.fg[2])
2285
2310
  },
2286
- icon: mix$1(color.fg, shades.fg[2]),
2311
+ icon: mix$1(color2.fg, shades.fg[2]),
2287
2312
  kbd: {
2288
- bg: mix$1(color.bg, 0),
2289
- fg: mix$1(color.fg, 0),
2290
- border: mix$1(color.bg, 0)
2313
+ bg: mix$1(color2.bg, 0),
2314
+ fg: mix$1(color2.fg, 0),
2315
+ border: mix$1(color2.bg, 0)
2291
2316
  },
2292
2317
  link: {
2293
- fg: mix$1(color.fg, shades.fg[2])
2318
+ fg: mix$1(color2.fg, shades.fg[2])
2294
2319
  },
2295
2320
  muted: {
2296
- bg: mix$1(color.bg, shades.bg[1]),
2297
- fg: mix$1(color.fg, shades.fg[2])
2321
+ bg: mix$1(color2.bg, shades.bg[1]),
2322
+ fg: mix$1(color2.fg, shades.fg[2])
2298
2323
  },
2299
2324
  skeleton: cardColor.skeleton
2300
2325
  };
@@ -2479,9 +2504,9 @@ function rgbaToRGBA(rgba2) {
2479
2504
  a: parseFloat(values[3])
2480
2505
  };
2481
2506
  }
2482
- function rgbToHex(color) {
2483
- const r = round(clamp(Math.round(color.r), 0, 255)), g = round(clamp(Math.round(color.g), 0, 255)), b = round(clamp(Math.round(color.b), 0, 255));
2484
- return "a" in color ? `rgba(${r},${g},${b},${color.a})` : "#" + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
2507
+ function rgbToHex(color2) {
2508
+ const r = round(clamp(Math.round(color2.r), 0, 255)), g = round(clamp(Math.round(color2.g), 0, 255)), b = round(clamp(Math.round(color2.b), 0, 255));
2509
+ return "a" in color2 ? `rgba(${r},${g},${b},${color2.a})` : "#" + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
2485
2510
  }
2486
2511
  function rgbToHsl({
2487
2512
  r,
@@ -2526,21 +2551,21 @@ function parseHsl(str) {
2526
2551
  l: parseFloat(res[5])
2527
2552
  };
2528
2553
  }
2529
- function parseColor(color) {
2530
- if (!color) return {
2554
+ function parseColor(color2) {
2555
+ if (!color2) return {
2531
2556
  r: 0,
2532
2557
  g: 0,
2533
2558
  b: 0
2534
2559
  };
2535
- if (typeof color != "string")
2560
+ if (typeof color2 != "string")
2536
2561
  throw new Error("parseColor: expected a string");
2537
- if (isHex(color))
2538
- return hexToRgb(color);
2539
- if (color.startsWith("hsl("))
2540
- return hslToRgb(parseHsl(color));
2541
- if (color.startsWith("rgba("))
2542
- return rgbaToRGBA(color);
2543
- throw new Error(`parseColor: unexpected color format: "${color}"`);
2562
+ if (isHex(color2))
2563
+ return hexToRgb(color2);
2564
+ if (color2.startsWith("hsl("))
2565
+ return hslToRgb(parseHsl(color2));
2566
+ if (color2.startsWith("rgba("))
2567
+ return rgbaToRGBA(color2);
2568
+ throw new Error(`parseColor: unexpected color format: "${color2}"`);
2544
2569
  }
2545
2570
  function getContrastRatio(bg, fg) {
2546
2571
  const rgb1 = parseColor(bg), rgb2 = parseColor(fg), c1 = rgb_lrgb(rgb1), c2 = rgb_lrgb(rgb2), l1 = lrgb_luminance(c1), l2 = lrgb_luminance(c2);
@@ -2559,10 +2584,10 @@ function rgb_lrgb1(v) {
2559
2584
  function lrgb_luminance([r, g, b]) {
2560
2585
  return 0.2126 * r + 0.7152 * g + 0.0722 * b;
2561
2586
  }
2562
- function rgba(color, a) {
2563
- if (typeof color == "string" && color.startsWith("var("))
2564
- return `color-mix(in srgb, transparent, ${color} ${a * 100}%)`;
2565
- const rgb = parseColor(color);
2587
+ function rgba(color2, a) {
2588
+ if (typeof color2 == "string" && color2.startsWith("var("))
2589
+ return `color-mix(in srgb, transparent, ${color2} ${a * 100}%)`;
2590
+ const rgb = parseColor(color2);
2566
2591
  return `rgba(${rgb.r},${rgb.g},${rgb.b},${a})`;
2567
2592
  }
2568
2593
  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];
@@ -2728,10 +2753,10 @@ function isColorOpacityValue(str) {
2728
2753
  function is_v2(themeProp) {
2729
2754
  return themeProp._version === 2;
2730
2755
  }
2731
- function themeColor_v0_v2_9(color) {
2732
- if ("neutral" in color.badge)
2733
- return color;
2734
- const colors2 = color;
2756
+ function themeColor_v0_v2_9(color2) {
2757
+ if ("neutral" in color2.badge)
2758
+ return color2;
2759
+ const colors2 = color2;
2735
2760
  return {
2736
2761
  ...colors2,
2737
2762
  badge: {
@@ -2985,7 +3010,7 @@ function v0_v2(v0) {
2985
3010
  const {
2986
3011
  avatar,
2987
3012
  button,
2988
- color,
3013
+ color: color2,
2989
3014
  container,
2990
3015
  fonts: font,
2991
3016
  input,
@@ -3008,24 +3033,24 @@ function v0_v2(v0) {
3008
3033
  card: defaultThemeConfig.card,
3009
3034
  color: {
3010
3035
  light: {
3011
- transparent: themeColor_v0_v2(color.light.transparent),
3012
- default: themeColor_v0_v2(color.light.default),
3013
- neutral: themeColor_v0_v2(color.light.transparent),
3014
- primary: themeColor_v0_v2(color.light.primary),
3015
- suggest: themeColor_v0_v2(color.light.primary),
3016
- positive: themeColor_v0_v2(color.light.positive),
3017
- caution: themeColor_v0_v2(color.light.caution),
3018
- critical: themeColor_v0_v2(color.light.critical)
3036
+ transparent: themeColor_v0_v2(color2.light.transparent),
3037
+ default: themeColor_v0_v2(color2.light.default),
3038
+ neutral: themeColor_v0_v2(color2.light.transparent),
3039
+ primary: themeColor_v0_v2(color2.light.primary),
3040
+ suggest: themeColor_v0_v2(color2.light.primary),
3041
+ positive: themeColor_v0_v2(color2.light.positive),
3042
+ caution: themeColor_v0_v2(color2.light.caution),
3043
+ critical: themeColor_v0_v2(color2.light.critical)
3019
3044
  },
3020
3045
  dark: {
3021
- transparent: themeColor_v0_v2(color.dark.transparent),
3022
- default: themeColor_v0_v2(color.dark.default),
3023
- neutral: themeColor_v0_v2(color.dark.transparent),
3024
- primary: themeColor_v0_v2(color.dark.primary),
3025
- suggest: themeColor_v0_v2(color.dark.primary),
3026
- positive: themeColor_v0_v2(color.dark.positive),
3027
- caution: themeColor_v0_v2(color.dark.caution),
3028
- critical: themeColor_v0_v2(color.dark.critical)
3046
+ transparent: themeColor_v0_v2(color2.dark.transparent),
3047
+ default: themeColor_v0_v2(color2.dark.default),
3048
+ neutral: themeColor_v0_v2(color2.dark.transparent),
3049
+ primary: themeColor_v0_v2(color2.dark.primary),
3050
+ suggest: themeColor_v0_v2(color2.dark.primary),
3051
+ positive: themeColor_v0_v2(color2.dark.positive),
3052
+ caution: themeColor_v0_v2(color2.dark.caution),
3053
+ critical: themeColor_v0_v2(color2.dark.critical)
3029
3054
  }
3030
3055
  },
3031
3056
  container,
@@ -3131,69 +3156,67 @@ function getTheme_v2(theme) {
3131
3156
  };
3132
3157
  return cache.set(theme, v2), v2;
3133
3158
  }
3134
- export {
3135
- AVATAR_SIZE,
3136
- COLOR_CONFIG_AVATAR_COLORS,
3137
- COLOR_CONFIG_BLEND_KEYS,
3138
- COLOR_CONFIG_CARD_KEYS,
3139
- COLOR_CONFIG_CARD_TONES,
3140
- COLOR_CONFIG_INPUT_MODES,
3141
- COLOR_CONFIG_INPUT_STATES,
3142
- COLOR_CONFIG_STATES,
3143
- COLOR_CONFIG_STATE_KEYS,
3144
- COLOR_CONFIG_STATE_TONES,
3145
- CONTAINER,
3146
- FONT_CODE_SIZE,
3147
- FONT_HEADING_SIZE,
3148
- FONT_LABEL_SIZE,
3149
- FONT_TEXT_SIZE,
3150
- HUES,
3151
- RADIUS,
3152
- SHADOW,
3153
- SPACE,
3154
- THEME_COLOR_AVATAR_COLORS,
3155
- THEME_COLOR_BLEND_MODES,
3156
- THEME_COLOR_BUTTON_MODES,
3157
- THEME_COLOR_CARD_TONES,
3158
- THEME_COLOR_INPUT_MODES,
3159
- THEME_COLOR_INPUT_STATES,
3160
- THEME_COLOR_SCHEMES,
3161
- THEME_COLOR_STATES,
3162
- THEME_COLOR_STATE_TONES,
3163
- TINTS,
3164
- buildColor_v3,
3165
- buildTheme,
3166
- buildTheme_v3,
3167
- createColorTheme,
3168
- defaultTokens,
3169
- getContrastRatio,
3170
- getScopedTheme,
3171
- getTheme_v2,
3172
- hexToRgb,
3173
- hslToRgb,
3174
- isColorBlendModeValue,
3175
- isColorButtonMode,
3176
- isColorConfigBaseKey,
3177
- isColorConfigBaseTone,
3178
- isColorConfigBlendKey,
3179
- isColorConfigStateKey,
3180
- isColorConfigStateTone,
3181
- isColorHueKey,
3182
- isColorOpacityValue,
3183
- isColorTintKey,
3184
- isColorTokenValue,
3185
- isColorValue,
3186
- mix,
3187
- multiply,
3188
- parseColor,
3189
- parseTokenKey,
3190
- parseTokenValue,
3191
- renderColor,
3192
- resolveTokens,
3193
- rgbToHex,
3194
- rgbToHsl,
3195
- rgba,
3196
- rgbaToRGBA,
3197
- screen
3198
- };
3199
- //# sourceMappingURL=theme.mjs.map
3159
+ exports.AVATAR_SIZE = AVATAR_SIZE;
3160
+ exports.COLOR_CONFIG_AVATAR_COLORS = COLOR_CONFIG_AVATAR_COLORS;
3161
+ exports.COLOR_CONFIG_BLEND_KEYS = COLOR_CONFIG_BLEND_KEYS;
3162
+ exports.COLOR_CONFIG_CARD_KEYS = COLOR_CONFIG_CARD_KEYS;
3163
+ exports.COLOR_CONFIG_CARD_TONES = COLOR_CONFIG_CARD_TONES;
3164
+ exports.COLOR_CONFIG_INPUT_MODES = COLOR_CONFIG_INPUT_MODES;
3165
+ exports.COLOR_CONFIG_INPUT_STATES = COLOR_CONFIG_INPUT_STATES;
3166
+ exports.COLOR_CONFIG_STATES = COLOR_CONFIG_STATES;
3167
+ exports.COLOR_CONFIG_STATE_KEYS = COLOR_CONFIG_STATE_KEYS;
3168
+ exports.COLOR_CONFIG_STATE_TONES = COLOR_CONFIG_STATE_TONES;
3169
+ exports.CONTAINER = CONTAINER;
3170
+ exports.FONT_CODE_SIZE = FONT_CODE_SIZE;
3171
+ exports.FONT_HEADING_SIZE = FONT_HEADING_SIZE;
3172
+ exports.FONT_LABEL_SIZE = FONT_LABEL_SIZE;
3173
+ exports.FONT_TEXT_SIZE = FONT_TEXT_SIZE;
3174
+ exports.HUES = HUES;
3175
+ exports.RADIUS = RADIUS;
3176
+ exports.SHADOW = SHADOW;
3177
+ exports.SPACE = SPACE;
3178
+ exports.THEME_COLOR_AVATAR_COLORS = THEME_COLOR_AVATAR_COLORS;
3179
+ exports.THEME_COLOR_BLEND_MODES = THEME_COLOR_BLEND_MODES;
3180
+ exports.THEME_COLOR_BUTTON_MODES = THEME_COLOR_BUTTON_MODES;
3181
+ exports.THEME_COLOR_CARD_TONES = THEME_COLOR_CARD_TONES;
3182
+ exports.THEME_COLOR_INPUT_MODES = THEME_COLOR_INPUT_MODES;
3183
+ exports.THEME_COLOR_INPUT_STATES = THEME_COLOR_INPUT_STATES;
3184
+ exports.THEME_COLOR_SCHEMES = THEME_COLOR_SCHEMES;
3185
+ exports.THEME_COLOR_STATES = THEME_COLOR_STATES;
3186
+ exports.THEME_COLOR_STATE_TONES = THEME_COLOR_STATE_TONES;
3187
+ exports.TINTS = TINTS;
3188
+ exports.buildColor_v3 = buildColor_v3;
3189
+ exports.buildTheme = buildTheme;
3190
+ exports.buildTheme_v3 = buildTheme_v3;
3191
+ exports.createColorTheme = createColorTheme;
3192
+ exports.defaultTokens = defaultTokens;
3193
+ exports.getContrastRatio = getContrastRatio;
3194
+ exports.getScopedTheme = getScopedTheme;
3195
+ exports.getTheme_v2 = getTheme_v2;
3196
+ exports.hexToRgb = hexToRgb;
3197
+ exports.hslToRgb = hslToRgb;
3198
+ exports.isColorBlendModeValue = isColorBlendModeValue;
3199
+ exports.isColorButtonMode = isColorButtonMode;
3200
+ exports.isColorConfigBaseKey = isColorConfigBaseKey;
3201
+ exports.isColorConfigBaseTone = isColorConfigBaseTone;
3202
+ exports.isColorConfigBlendKey = isColorConfigBlendKey;
3203
+ exports.isColorConfigStateKey = isColorConfigStateKey;
3204
+ exports.isColorConfigStateTone = isColorConfigStateTone;
3205
+ exports.isColorHueKey = isColorHueKey;
3206
+ exports.isColorOpacityValue = isColorOpacityValue;
3207
+ exports.isColorTintKey = isColorTintKey;
3208
+ exports.isColorTokenValue = isColorTokenValue;
3209
+ exports.isColorValue = isColorValue;
3210
+ exports.mix = mix;
3211
+ exports.multiply = multiply;
3212
+ exports.parseColor = parseColor;
3213
+ exports.parseTokenKey = parseTokenKey;
3214
+ exports.parseTokenValue = parseTokenValue;
3215
+ exports.renderColor = renderColor;
3216
+ exports.resolveTokens = resolveTokens;
3217
+ exports.rgbToHex = rgbToHex;
3218
+ exports.rgbToHsl = rgbToHsl;
3219
+ exports.rgba = rgba;
3220
+ exports.rgbaToRGBA = rgbaToRGBA;
3221
+ exports.screen = screen;
3222
+ //# sourceMappingURL=theme.cjs.map