@sanity/ui 3.0.0-static.14 → 3.0.0-static.16

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 (492) hide show
  1. package/README.md +8 -6
  2. package/dist/_chunks-cjs/_visual-editing.js +132 -145
  3. package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
  4. package/dist/_chunks-cjs/refractor.js.map +1 -1
  5. package/dist/_chunks-es/_visual-editing.mjs +133 -146
  6. package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
  7. package/dist/_chunks-es/refractor.mjs.map +1 -1
  8. package/dist/_visual-editing.d.mts +5 -15
  9. package/dist/_visual-editing.d.ts +5 -15
  10. package/dist/_visual-editing.js +0 -1
  11. package/dist/_visual-editing.js.map +1 -1
  12. package/dist/_visual-editing.mjs +1 -2
  13. package/dist/cli.js +1 -1
  14. package/dist/cli.js.map +1 -1
  15. package/dist/css.d.mts +12 -1
  16. package/dist/css.d.ts +12 -1
  17. package/dist/css.js +325 -430
  18. package/dist/css.js.map +1 -1
  19. package/dist/css.mjs +325 -430
  20. package/dist/css.mjs.map +1 -1
  21. package/dist/index.d.mts +10 -20
  22. package/dist/index.d.ts +10 -20
  23. package/dist/index.js +7 -41
  24. package/dist/index.js.map +1 -1
  25. package/dist/index.mjs +10 -44
  26. package/dist/index.mjs.map +1 -1
  27. package/dist/system.css +856 -84
  28. package/dist/system.min.css +1 -1
  29. package/exports/_visual-editing.ts +27 -27
  30. package/exports/index.ts +1 -1
  31. package/package.json +5 -5
  32. package/src/cli/index.ts +1 -13
  33. package/src/{ui → core}/_compat/index.ts +0 -1
  34. package/src/{ui → core}/_compat/theme/themeProvider.tsx +3 -3
  35. package/src/{ui → core}/components/tab/tabList.tsx +19 -4
  36. package/src/{ui → core}/index.ts +0 -1
  37. package/src/{ui → core}/primitives/box/box.tsx +3 -0
  38. package/src/{ui → core}/primitives/card/card.tsx +15 -21
  39. package/src/core/primitives/card/cardProvider.tsx +27 -0
  40. package/src/{ui → core}/primitives/card/types.ts +5 -4
  41. package/src/{ui → core}/primitives/popover/popover.tsx +1 -1
  42. package/src/{ui → core}/primitives/popover/popoverLayer.tsx +9 -20
  43. package/src/{ui → core}/primitives/tooltip/tooltip.tsx +2 -1
  44. package/src/{ui → core}/primitives/tooltip/tooltipLayer.tsx +11 -21
  45. package/src/{ui/utils/portal/portal.ts → core/utils/portal/portal.tsx} +8 -10
  46. package/src/css/_mergeStyles.ts +0 -7
  47. package/src/css/_system.style.ts +2 -0
  48. package/src/css/aspects/font/font.style.ts +0 -21
  49. package/src/css/aspects/font/font.ts +1 -6
  50. package/src/css/aspects/font/types.ts +0 -4
  51. package/src/css/aspects/index.ts +1 -0
  52. package/src/css/aspects/margin/margin.style.ts +0 -3
  53. package/src/css/aspects/textAlign/index.ts +2 -0
  54. package/src/css/aspects/textAlign/textAlign.style.ts +26 -0
  55. package/src/css/aspects/textAlign/textAlign.ts +8 -0
  56. package/src/css/aspects/textAlign/types.ts +7 -0
  57. package/src/css/primitives/_input/_input.style.ts +9 -11
  58. package/src/css/primitives/box/box.style.ts +5 -1
  59. package/src/css/primitives/box/box.ts +2 -0
  60. package/src/css/primitives/box/types.ts +2 -0
  61. package/src/css/primitives/heading/heading.ts +2 -1
  62. package/src/css/primitives/heading/types.ts +2 -1
  63. package/src/css/primitives/label/label.ts +2 -1
  64. package/src/css/primitives/label/types.ts +2 -1
  65. package/src/css/primitives/text/text.style.ts +0 -5
  66. package/src/css/primitives/text/text.ts +2 -1
  67. package/src/css/primitives/text/types.ts +2 -1
  68. package/src/css/primitives/textInput/textInput.style.ts +1 -120
  69. package/src/css/aspects/height/rules.ts +0 -7
  70. package/src/css/aspects/width/rules.ts +0 -8
  71. package/src/css/components/menu/rules.ts +0 -15
  72. package/src/css/primitives/avatar/rules.ts +0 -176
  73. package/src/css/primitives/button/rules.ts +0 -302
  74. package/src/css/primitives/checkbox/rules.ts +0 -152
  75. package/src/css/primitives/code/rules.ts +0 -96
  76. package/src/css/primitives/container/rules.ts +0 -8
  77. package/src/css/primitives/heading/rules.ts +0 -155
  78. package/src/css/primitives/kbd/rules.ts +0 -20
  79. package/src/css/primitives/label/rules.ts +0 -137
  80. package/src/css/primitives/radio/rules.ts +0 -121
  81. package/src/css/primitives/select/rules.ts +0 -22
  82. package/src/css/primitives/switch/rules.ts +0 -340
  83. package/src/css/primitives/text/rules.ts +0 -164
  84. package/src/css/primitives/textArea/rules.ts +0 -7
  85. package/src/css/primitives/textInput/rules.ts +0 -224
  86. package/src/css/primitives/tooltip/rules.ts +0 -19
  87. package/src/ui/RootClassNames.tsx +0 -44
  88. package/src/ui/_compat/studioTheme.ts +0 -7
  89. package/src/ui/primitives/card/cardProvider.tsx +0 -21
  90. /package/src/{ui → core}/StyleTags.tsx +0 -0
  91. /package/src/{ui → core}/_compat/helpers.ts +0 -0
  92. /package/src/{ui → core}/_compat/styles/_responsive.ts +0 -0
  93. /package/src/{ui → core}/_compat/styles/index.ts +0 -0
  94. /package/src/{ui → core}/_compat/theme/index.ts +0 -0
  95. /package/src/{ui → core}/_compat/theme/theme.test.tsx +0 -0
  96. /package/src/{ui → core}/_compat/theme/themeColorProvider.tsx +0 -0
  97. /package/src/{ui → core}/_compat/theme/themeContext.ts +0 -0
  98. /package/src/{ui → core}/_compat/theme/types.ts +0 -0
  99. /package/src/{ui → core}/_compat/theme/useRootTheme.ts +0 -0
  100. /package/src/{ui → core}/_compat/theme/useTheme.ts +0 -0
  101. /package/src/{ui → core}/_compat/types.ts +0 -0
  102. /package/src/{ui → core}/components/autocomplete/__mocks__/apiStore.ts +0 -0
  103. /package/src/{ui → core}/components/autocomplete/__mocks__/countries.ts +0 -0
  104. /package/src/{ui → core}/components/autocomplete/__workshop__/async.tsx +0 -0
  105. /package/src/{ui → core}/components/autocomplete/__workshop__/constrainedHeight.tsx +0 -0
  106. /package/src/{ui → core}/components/autocomplete/__workshop__/custom.tsx +0 -0
  107. /package/src/{ui → core}/components/autocomplete/__workshop__/example.tsx +0 -0
  108. /package/src/{ui → core}/components/autocomplete/__workshop__/focusAndBlur.tsx +0 -0
  109. /package/src/{ui → core}/components/autocomplete/__workshop__/fullscreen.tsx +0 -0
  110. /package/src/{ui → core}/components/autocomplete/__workshop__/index.ts +0 -0
  111. /package/src/{ui → core}/components/autocomplete/__workshop__/types.ts +0 -0
  112. /package/src/{ui → core}/components/autocomplete/autocomplete.tsx +0 -0
  113. /package/src/{ui → core}/components/autocomplete/autocompleteOption.tsx +0 -0
  114. /package/src/{ui → core}/components/autocomplete/autocompleteReducer.ts +0 -0
  115. /package/src/{ui → core}/components/autocomplete/constants.ts +0 -0
  116. /package/src/{ui → core}/components/autocomplete/index.ts +0 -0
  117. /package/src/{ui → core}/components/autocomplete/types.ts +0 -0
  118. /package/src/{ui → core}/components/breadcrumbs/__workshop__/example.tsx +0 -0
  119. /package/src/{ui → core}/components/breadcrumbs/__workshop__/index.ts +0 -0
  120. /package/src/{ui → core}/components/breadcrumbs/breadcrumbs.tsx +0 -0
  121. /package/src/{ui → core}/components/breadcrumbs/index.ts +0 -0
  122. /package/src/{ui → core}/components/dialog/__workshop__/activate.tsx +0 -0
  123. /package/src/{ui → core}/components/dialog/__workshop__/autoFocus.tsx +0 -0
  124. /package/src/{ui → core}/components/dialog/__workshop__/index.ts +0 -0
  125. /package/src/{ui → core}/components/dialog/__workshop__/layering.tsx +0 -0
  126. /package/src/{ui → core}/components/dialog/__workshop__/nested.tsx +0 -0
  127. /package/src/{ui → core}/components/dialog/__workshop__/onScroll.tsx +0 -0
  128. /package/src/{ui → core}/components/dialog/__workshop__/panes.tsx +0 -0
  129. /package/src/{ui → core}/components/dialog/__workshop__/position.tsx +0 -0
  130. /package/src/{ui → core}/components/dialog/__workshop__/props.tsx +0 -0
  131. /package/src/{ui → core}/components/dialog/__workshop__/provider.tsx +0 -0
  132. /package/src/{ui → core}/components/dialog/__workshop__/wrapped.tsx +0 -0
  133. /package/src/{ui → core}/components/dialog/dialog.tsx +0 -0
  134. /package/src/{ui → core}/components/dialog/dialogCard.tsx +0 -0
  135. /package/src/{ui → core}/components/dialog/dialogContext.ts +0 -0
  136. /package/src/{ui → core}/components/dialog/dialogProvider.tsx +0 -0
  137. /package/src/{ui → core}/components/dialog/index.ts +0 -0
  138. /package/src/{ui → core}/components/dialog/isTargetWithinScope.ts +0 -0
  139. /package/src/{ui → core}/components/dialog/useDialog.ts +0 -0
  140. /package/src/{ui → core}/components/hotkeys/__workshop__/index.ts +0 -0
  141. /package/src/{ui → core}/components/hotkeys/__workshop__/plain.tsx +0 -0
  142. /package/src/{ui → core}/components/hotkeys/hotkeys.tsx +0 -0
  143. /package/src/{ui → core}/components/hotkeys/index.ts +0 -0
  144. /package/src/{ui → core}/components/index.ts +0 -0
  145. /package/src/{ui → core}/components/menu/__workshop__/asComponent.tsx +0 -0
  146. /package/src/{ui → core}/components/menu/__workshop__/avatarMenu.tsx +0 -0
  147. /package/src/{ui → core}/components/menu/__workshop__/closableMenuButton.tsx +0 -0
  148. /package/src/{ui → core}/components/menu/__workshop__/constrainedInBoundary.tsx +0 -0
  149. /package/src/{ui → core}/components/menu/__workshop__/customMenuItem.tsx +0 -0
  150. /package/src/{ui → core}/components/menu/__workshop__/customSelectedState.tsx +0 -0
  151. /package/src/{ui → core}/components/menu/__workshop__/disableFocusOnClose.tsx +0 -0
  152. /package/src/{ui → core}/components/menu/__workshop__/groups.tsx +0 -0
  153. /package/src/{ui → core}/components/menu/__workshop__/index.ts +0 -0
  154. /package/src/{ui → core}/components/menu/__workshop__/menuButton.tsx +0 -0
  155. /package/src/{ui → core}/components/menu/__workshop__/menuGroupRight.tsx +0 -0
  156. /package/src/{ui → core}/components/menu/__workshop__/nestedMenu.tsx +0 -0
  157. /package/src/{ui → core}/components/menu/__workshop__/onCloseMenuButton.tsx +0 -0
  158. /package/src/{ui → core}/components/menu/__workshop__/selectedItem.tsx +0 -0
  159. /package/src/{ui → core}/components/menu/__workshop__/shouldFocus.tsx +0 -0
  160. /package/src/{ui → core}/components/menu/__workshop__/tones.tsx +0 -0
  161. /package/src/{ui → core}/components/menu/__workshop__/withoutArrow.tsx +0 -0
  162. /package/src/{ui → core}/components/menu/helpers.ts +0 -0
  163. /package/src/{ui → core}/components/menu/index.ts +0 -0
  164. /package/src/{ui → core}/components/menu/menu.test.tsx +0 -0
  165. /package/src/{ui → core}/components/menu/menu.tsx +0 -0
  166. /package/src/{ui → core}/components/menu/menuButton.tsx +0 -0
  167. /package/src/{ui → core}/components/menu/menuContext.ts +0 -0
  168. /package/src/{ui → core}/components/menu/menuDivider.tsx +0 -0
  169. /package/src/{ui → core}/components/menu/menuGroup.tsx +0 -0
  170. /package/src/{ui → core}/components/menu/menuItem.tsx +0 -0
  171. /package/src/{ui → core}/components/menu/useMenu.ts +0 -0
  172. /package/src/{ui → core}/components/menu/useMenuController.ts +0 -0
  173. /package/src/{ui → core}/components/skeleton/__workshop__/delay.tsx +0 -0
  174. /package/src/{ui → core}/components/skeleton/__workshop__/index.ts +0 -0
  175. /package/src/{ui → core}/components/skeleton/__workshop__/skeleton.tsx +0 -0
  176. /package/src/{ui → core}/components/skeleton/codeSkeleton.tsx +0 -0
  177. /package/src/{ui → core}/components/skeleton/headingSkeleton.tsx +0 -0
  178. /package/src/{ui → core}/components/skeleton/index.ts +0 -0
  179. /package/src/{ui → core}/components/skeleton/labelSkeleton.tsx +0 -0
  180. /package/src/{ui → core}/components/skeleton/skeleton.tsx +0 -0
  181. /package/src/{ui → core}/components/skeleton/textSkeleton.tsx +0 -0
  182. /package/src/{ui → core}/components/tab/__workshop__/example.tsx +0 -0
  183. /package/src/{ui → core}/components/tab/__workshop__/index.ts +0 -0
  184. /package/src/{ui → core}/components/tab/index.ts +0 -0
  185. /package/src/{ui → core}/components/tab/tab.tsx +0 -0
  186. /package/src/{ui → core}/components/tab/tabPanel.tsx +0 -0
  187. /package/src/{ui → core}/components/toast/__workshop__/hook.tsx +0 -0
  188. /package/src/{ui → core}/components/toast/__workshop__/index.ts +0 -0
  189. /package/src/{ui → core}/components/toast/__workshop__/toast.tsx +0 -0
  190. /package/src/{ui → core}/components/toast/index.ts +0 -0
  191. /package/src/{ui → core}/components/toast/toast.test.tsx +0 -0
  192. /package/src/{ui → core}/components/toast/toast.tsx +0 -0
  193. /package/src/{ui → core}/components/toast/toastContext.ts +0 -0
  194. /package/src/{ui → core}/components/toast/toastLayer.tsx +0 -0
  195. /package/src/{ui → core}/components/toast/toastProvider.tsx +0 -0
  196. /package/src/{ui → core}/components/toast/toastState.ts +0 -0
  197. /package/src/{ui → core}/components/toast/types.ts +0 -0
  198. /package/src/{ui → core}/components/toast/useToast.ts +0 -0
  199. /package/src/{ui → core}/components/tree/__workshop__/basic.perf.ts +0 -0
  200. /package/src/{ui → core}/components/tree/__workshop__/basic.tsx +0 -0
  201. /package/src/{ui → core}/components/tree/__workshop__/index.ts +0 -0
  202. /package/src/{ui → core}/components/tree/__workshop__/tabFromElement.tsx +0 -0
  203. /package/src/{ui → core}/components/tree/helpers.ts +0 -0
  204. /package/src/{ui → core}/components/tree/index.ts +0 -0
  205. /package/src/{ui → core}/components/tree/tree.tsx +0 -0
  206. /package/src/{ui → core}/components/tree/treeContext.ts +0 -0
  207. /package/src/{ui → core}/components/tree/treeGroup.tsx +0 -0
  208. /package/src/{ui → core}/components/tree/treeItem.tsx +0 -0
  209. /package/src/{ui → core}/components/tree/types.ts +0 -0
  210. /package/src/{ui → core}/components/tree/useTree.ts +0 -0
  211. /package/src/{ui → core}/constants.ts +0 -0
  212. /package/src/{ui → core}/global.ts +0 -0
  213. /package/src/{ui → core}/helpers/animation.ts +0 -0
  214. /package/src/{ui → core}/helpers/element.ts +0 -0
  215. /package/src/{ui → core}/helpers/focus.ts +0 -0
  216. /package/src/{ui → core}/helpers/index.ts +0 -0
  217. /package/src/{ui → core}/helpers/props.ts +0 -0
  218. /package/src/{ui → core}/helpers/scroll.ts +0 -0
  219. /package/src/{ui → core}/hooks/index.ts +0 -0
  220. /package/src/{ui → core}/hooks/useArrayProp.ts +0 -0
  221. /package/src/{ui → core}/hooks/useClickOutside.test.tsx +0 -0
  222. /package/src/{ui → core}/hooks/useClickOutside.ts +0 -0
  223. /package/src/{ui → core}/hooks/useClickOutsideEvent.test.tsx +0 -0
  224. /package/src/{ui → core}/hooks/useClickOutsideEvent.ts +0 -0
  225. /package/src/{ui → core}/hooks/useCustomValidity.ts +0 -0
  226. /package/src/{ui → core}/hooks/useDelayed.test.ts +0 -0
  227. /package/src/{ui → core}/hooks/useDelayedState.ts +0 -0
  228. /package/src/{ui → core}/hooks/useElementRect/__workshop__/example.tsx +0 -0
  229. /package/src/{ui → core}/hooks/useElementRect/__workshop__/index.ts +0 -0
  230. /package/src/{ui → core}/hooks/useElementRect/index.ts +0 -0
  231. /package/src/{ui → core}/hooks/useElementRect/useElementRect.ts +0 -0
  232. /package/src/{ui → core}/hooks/useElementSize.ts +0 -0
  233. /package/src/{ui → core}/hooks/useForwardedRef.ts +0 -0
  234. /package/src/{ui → core}/hooks/useGlobalKeyDown.ts +0 -0
  235. /package/src/{ui → core}/hooks/useIsomorphicEffect.ts +0 -0
  236. /package/src/{ui → core}/hooks/useMatchMedia.ts +0 -0
  237. /package/src/{ui → core}/hooks/useMediaIndex/__workshop__/index.ts +0 -0
  238. /package/src/{ui → core}/hooks/useMediaIndex/__workshop__/test.tsx +0 -0
  239. /package/src/{ui → core}/hooks/useMediaIndex/index.ts +0 -0
  240. /package/src/{ui → core}/hooks/useMediaIndex/useMediaIndex.test.tsx +0 -0
  241. /package/src/{ui → core}/hooks/useMediaIndex/useMediaIndex.ts +0 -0
  242. /package/src/{ui → core}/hooks/useMounted.ts +0 -0
  243. /package/src/{ui → core}/hooks/usePrefersDark.hydration.test.tsx +0 -0
  244. /package/src/{ui → core}/hooks/usePrefersDark.test.tsx +0 -0
  245. /package/src/{ui → core}/hooks/usePrefersDark.ts +0 -0
  246. /package/src/{ui → core}/hooks/usePrefersReducedMotion.hydration.test.tsx +0 -0
  247. /package/src/{ui → core}/hooks/usePrefersReducedMotion.test.tsx +0 -0
  248. /package/src/{ui → core}/hooks/usePrefersReducedMotion.ts +0 -0
  249. /package/src/{ui → core}/lib/createGlobalScopedContext.ts +0 -0
  250. /package/src/{ui → core}/lib/globalScope.ts +0 -0
  251. /package/src/{ui → core}/lib/isRecord.ts +0 -0
  252. /package/src/{ui → core}/middleware/origin.ts +0 -0
  253. /package/src/{ui → core}/observers/elementSizeObserver.ts +0 -0
  254. /package/src/{ui → core}/observers/index.ts +0 -0
  255. /package/src/{ui → core}/observers/resizeObserver.ts +0 -0
  256. /package/src/{ui → core}/primitives/_selectable/index.ts +0 -0
  257. /package/src/{ui → core}/primitives/_selectable/selectable.tsx +0 -0
  258. /package/src/{ui → core}/primitives/avatar/__workshop__/asButton.tsx +0 -0
  259. /package/src/{ui → core}/primitives/avatar/__workshop__/index.ts +0 -0
  260. /package/src/{ui → core}/primitives/avatar/__workshop__/stack.tsx +0 -0
  261. /package/src/{ui → core}/primitives/avatar/__workshop__/withinButton.tsx +0 -0
  262. /package/src/{ui → core}/primitives/avatar/__workshop__/withinMenuItem.tsx +0 -0
  263. /package/src/{ui → core}/primitives/avatar/avatar.tsx +0 -0
  264. /package/src/{ui → core}/primitives/avatar/avatarCounter.tsx +0 -0
  265. /package/src/{ui → core}/primitives/avatar/avatarStack.tsx +0 -0
  266. /package/src/{ui → core}/primitives/avatar/index.ts +0 -0
  267. /package/src/{ui → core}/primitives/avatar/types.ts +0 -0
  268. /package/src/{ui → core}/primitives/badge/__workshop__/index.ts +0 -0
  269. /package/src/{ui → core}/primitives/badge/__workshop__/props.tsx +0 -0
  270. /package/src/{ui → core}/primitives/badge/__workshop__/tones.tsx +0 -0
  271. /package/src/{ui → core}/primitives/badge/badge.test.tsx +0 -0
  272. /package/src/{ui → core}/primitives/badge/badge.tsx +0 -0
  273. /package/src/{ui → core}/primitives/badge/index.ts +0 -0
  274. /package/src/{ui → core}/primitives/badge/types.ts +0 -0
  275. /package/src/{ui → core}/primitives/box/__workshop__/index.ts +0 -0
  276. /package/src/{ui → core}/primitives/box/__workshop__/props.tsx +0 -0
  277. /package/src/{ui → core}/primitives/box/__workshop__/responsive.tsx +0 -0
  278. /package/src/{ui → core}/primitives/box/index.ts +0 -0
  279. /package/src/{ui → core}/primitives/button/__workshop__/custom.tsx +0 -0
  280. /package/src/{ui → core}/primitives/button/__workshop__/customIcons.tsx +0 -0
  281. /package/src/{ui → core}/primitives/button/__workshop__/disabled.tsx +0 -0
  282. /package/src/{ui → core}/primitives/button/__workshop__/index.ts +0 -0
  283. /package/src/{ui → core}/primitives/button/__workshop__/mixedChildren.tsx +0 -0
  284. /package/src/{ui → core}/primitives/button/__workshop__/props.tsx +0 -0
  285. /package/src/{ui → core}/primitives/button/__workshop__/sanityUploadButton.tsx +0 -0
  286. /package/src/{ui → core}/primitives/button/__workshop__/stacked.tsx +0 -0
  287. /package/src/{ui → core}/primitives/button/__workshop__/styled1.tsx +0 -0
  288. /package/src/{ui → core}/primitives/button/__workshop__/styled2.tsx +0 -0
  289. /package/src/{ui → core}/primitives/button/__workshop__/uploadButton.tsx +0 -0
  290. /package/src/{ui → core}/primitives/button/button.test.tsx +0 -0
  291. /package/src/{ui → core}/primitives/button/button.tsx +0 -0
  292. /package/src/{ui → core}/primitives/button/index.ts +0 -0
  293. /package/src/{ui → core}/primitives/card/__workshop__/allTones.tsx +0 -0
  294. /package/src/{ui → core}/primitives/card/__workshop__/asButton.tsx +0 -0
  295. /package/src/{ui → core}/primitives/card/__workshop__/asComponent.tsx +0 -0
  296. /package/src/{ui → core}/primitives/card/__workshop__/checkered.tsx +0 -0
  297. /package/src/{ui → core}/primitives/card/__workshop__/index.ts +0 -0
  298. /package/src/{ui → core}/primitives/card/__workshop__/interactive.tsx +0 -0
  299. /package/src/{ui → core}/primitives/card/__workshop__/listNavigation.tsx +0 -0
  300. /package/src/{ui → core}/primitives/card/__workshop__/props.tsx +0 -0
  301. /package/src/{ui → core}/primitives/card/__workshop__/selected.tsx +0 -0
  302. /package/src/{ui → core}/primitives/card/__workshop__/styled.tsx +0 -0
  303. /package/src/{ui → core}/primitives/card/cardContext.ts +0 -0
  304. /package/src/{ui → core}/primitives/card/index.ts +0 -0
  305. /package/src/{ui → core}/primitives/card/useCard.ts +0 -0
  306. /package/src/{ui → core}/primitives/checkbox/__workshop__/example.tsx +0 -0
  307. /package/src/{ui → core}/primitives/checkbox/__workshop__/index.ts +0 -0
  308. /package/src/{ui → core}/primitives/checkbox/__workshop__/props.tsx +0 -0
  309. /package/src/{ui → core}/primitives/checkbox/__workshop__/readOnly.tsx +0 -0
  310. /package/src/{ui → core}/primitives/checkbox/__workshop__/tones.tsx +0 -0
  311. /package/src/{ui → core}/primitives/checkbox/checkbox.tsx +0 -0
  312. /package/src/{ui → core}/primitives/checkbox/index.ts +0 -0
  313. /package/src/{ui → core}/primitives/code/__workshop__/index.ts +0 -0
  314. /package/src/{ui → core}/primitives/code/__workshop__/opticalAlignment.tsx +0 -0
  315. /package/src/{ui → core}/primitives/code/__workshop__/props.tsx +0 -0
  316. /package/src/{ui → core}/primitives/code/code.tsx +0 -0
  317. /package/src/{ui → core}/primitives/code/index.ts +0 -0
  318. /package/src/{ui → core}/primitives/code/refractor.tsx +0 -0
  319. /package/src/{ui → core}/primitives/container/__workshop__/example.tsx +0 -0
  320. /package/src/{ui → core}/primitives/container/__workshop__/index.ts +0 -0
  321. /package/src/{ui → core}/primitives/container/container.tsx +0 -0
  322. /package/src/{ui → core}/primitives/container/index.ts +0 -0
  323. /package/src/{ui → core}/primitives/container/types.ts +0 -0
  324. /package/src/{ui → core}/primitives/flex/__workshop__/example.tsx +0 -0
  325. /package/src/{ui → core}/primitives/flex/__workshop__/gap.tsx +0 -0
  326. /package/src/{ui → core}/primitives/flex/__workshop__/index.ts +0 -0
  327. /package/src/{ui → core}/primitives/flex/flex.tsx +0 -0
  328. /package/src/{ui → core}/primitives/flex/index.ts +0 -0
  329. /package/src/{ui → core}/primitives/grid/__workshop__/index.ts +0 -0
  330. /package/src/{ui → core}/primitives/grid/__workshop__/responsive.tsx +0 -0
  331. /package/src/{ui → core}/primitives/grid/grid.tsx +0 -0
  332. /package/src/{ui → core}/primitives/grid/index.ts +0 -0
  333. /package/src/{ui → core}/primitives/heading/__workshop__/index.ts +0 -0
  334. /package/src/{ui → core}/primitives/heading/__workshop__/opticalAlignment.tsx +0 -0
  335. /package/src/{ui → core}/primitives/heading/__workshop__/plain.tsx +0 -0
  336. /package/src/{ui → core}/primitives/heading/heading.tsx +0 -0
  337. /package/src/{ui → core}/primitives/heading/index.ts +0 -0
  338. /package/src/{ui → core}/primitives/index.ts +0 -0
  339. /package/src/{ui → core}/primitives/inline/__workshop__/index.ts +0 -0
  340. /package/src/{ui → core}/primitives/inline/__workshop__/plain.tsx +0 -0
  341. /package/src/{ui → core}/primitives/inline/index.ts +0 -0
  342. /package/src/{ui → core}/primitives/inline/inline.tsx +0 -0
  343. /package/src/{ui → core}/primitives/inline/types.ts +0 -0
  344. /package/src/{ui → core}/primitives/kbd/__workshop__/index.ts +0 -0
  345. /package/src/{ui → core}/primitives/kbd/__workshop__/plain.tsx +0 -0
  346. /package/src/{ui → core}/primitives/kbd/index.ts +0 -0
  347. /package/src/{ui → core}/primitives/kbd/kbd.tsx +0 -0
  348. /package/src/{ui → core}/primitives/label/__workshop__/index.ts +0 -0
  349. /package/src/{ui → core}/primitives/label/__workshop__/opticalAlignment.tsx +0 -0
  350. /package/src/{ui → core}/primitives/label/__workshop__/plain.tsx +0 -0
  351. /package/src/{ui → core}/primitives/label/index.ts +0 -0
  352. /package/src/{ui → core}/primitives/label/label.tsx +0 -0
  353. /package/src/{ui → core}/primitives/popover/__workshop__/AlignedStory.tsx +0 -0
  354. /package/src/{ui → core}/primitives/popover/__workshop__/MarginsStory.tsx +0 -0
  355. /package/src/{ui → core}/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +0 -0
  356. /package/src/{ui → core}/primitives/popover/__workshop__/OpenOnMountStory.tsx +0 -0
  357. /package/src/{ui → core}/primitives/popover/__workshop__/PlainStory.tsx +0 -0
  358. /package/src/{ui → core}/primitives/popover/__workshop__/RecursiveStory.tsx +0 -0
  359. /package/src/{ui → core}/primitives/popover/__workshop__/SidePanelStory.tsx +0 -0
  360. /package/src/{ui → core}/primitives/popover/__workshop__/TestStory.tsx +0 -0
  361. /package/src/{ui → core}/primitives/popover/__workshop__/index.ts +0 -0
  362. /package/src/{ui → core}/primitives/popover/constants.ts +0 -0
  363. /package/src/{ui → core}/primitives/popover/floating-ui/size.ts +0 -0
  364. /package/src/{ui → core}/primitives/popover/helpers.ts +0 -0
  365. /package/src/{ui → core}/primitives/popover/index.ts +0 -0
  366. /package/src/{ui → core}/primitives/popover/types.ts +0 -0
  367. /package/src/{ui → core}/primitives/radio/__workshop__/example.tsx +0 -0
  368. /package/src/{ui → core}/primitives/radio/__workshop__/index.ts +0 -0
  369. /package/src/{ui → core}/primitives/radio/__workshop__/plain.tsx +0 -0
  370. /package/src/{ui → core}/primitives/radio/index.ts +0 -0
  371. /package/src/{ui → core}/primitives/radio/radio.tsx +0 -0
  372. /package/src/{ui → core}/primitives/select/__workshop__/index.ts +0 -0
  373. /package/src/{ui → core}/primitives/select/__workshop__/plain.tsx +0 -0
  374. /package/src/{ui → core}/primitives/select/__workshop__/readOnly.tsx +0 -0
  375. /package/src/{ui → core}/primitives/select/index.ts +0 -0
  376. /package/src/{ui → core}/primitives/select/select.tsx +0 -0
  377. /package/src/{ui → core}/primitives/spinner/__workshop__/Props.tsx +0 -0
  378. /package/src/{ui → core}/primitives/spinner/__workshop__/index.ts +0 -0
  379. /package/src/{ui → core}/primitives/spinner/animatedSpinnerIcon.tsx +0 -0
  380. /package/src/{ui → core}/primitives/spinner/index.ts +0 -0
  381. /package/src/{ui → core}/primitives/spinner/spinner.tsx +0 -0
  382. /package/src/{ui → core}/primitives/stack/__workshop__/index.ts +0 -0
  383. /package/src/{ui → core}/primitives/stack/__workshop__/plain.tsx +0 -0
  384. /package/src/{ui → core}/primitives/stack/index.ts +0 -0
  385. /package/src/{ui → core}/primitives/stack/stack.tsx +0 -0
  386. /package/src/{ui → core}/primitives/switch/__workshop__/example.tsx +0 -0
  387. /package/src/{ui → core}/primitives/switch/__workshop__/index.ts +0 -0
  388. /package/src/{ui → core}/primitives/switch/__workshop__/props.tsx +0 -0
  389. /package/src/{ui → core}/primitives/switch/index.ts +0 -0
  390. /package/src/{ui → core}/primitives/switch/switch.tsx +0 -0
  391. /package/src/{ui → core}/primitives/text/__workshop__/colored.tsx +0 -0
  392. /package/src/{ui → core}/primitives/text/__workshop__/example.tsx +0 -0
  393. /package/src/{ui → core}/primitives/text/__workshop__/index.ts +0 -0
  394. /package/src/{ui → core}/primitives/text/__workshop__/opticalAlignment.tsx +0 -0
  395. /package/src/{ui → core}/primitives/text/index.ts +0 -0
  396. /package/src/{ui → core}/primitives/text/text.tsx +0 -0
  397. /package/src/{ui → core}/primitives/textArea/__workshop__/index.ts +0 -0
  398. /package/src/{ui → core}/primitives/textArea/__workshop__/plain.tsx +0 -0
  399. /package/src/{ui → core}/primitives/textArea/index.ts +0 -0
  400. /package/src/{ui → core}/primitives/textArea/textArea.tsx +0 -0
  401. /package/src/{ui → core}/primitives/textInput/__workshop__/clearButton.tsx +0 -0
  402. /package/src/{ui → core}/primitives/textInput/__workshop__/customValidity.tsx +0 -0
  403. /package/src/{ui → core}/primitives/textInput/__workshop__/index.ts +0 -0
  404. /package/src/{ui → core}/primitives/textInput/__workshop__/plain.tsx +0 -0
  405. /package/src/{ui → core}/primitives/textInput/__workshop__/readOnly.tsx +0 -0
  406. /package/src/{ui → core}/primitives/textInput/__workshop__/states.tsx +0 -0
  407. /package/src/{ui → core}/primitives/textInput/__workshop__/tones.tsx +0 -0
  408. /package/src/{ui → core}/primitives/textInput/__workshop__/typed.tsx +0 -0
  409. /package/src/{ui → core}/primitives/textInput/index.ts +0 -0
  410. /package/src/{ui → core}/primitives/textInput/textInput.tsx +0 -0
  411. /package/src/{ui → core}/primitives/tooltip/__workshop__/customPortal.tsx +0 -0
  412. /package/src/{ui → core}/primitives/tooltip/__workshop__/index.ts +0 -0
  413. /package/src/{ui → core}/primitives/tooltip/__workshop__/overflowingBoundary.tsx +0 -0
  414. /package/src/{ui → core}/primitives/tooltip/__workshop__/props.tsx +0 -0
  415. /package/src/{ui → core}/primitives/tooltip/__workshop__/resizableBoundary.tsx +0 -0
  416. /package/src/{ui → core}/primitives/tooltip/constants.ts +0 -0
  417. /package/src/{ui → core}/primitives/tooltip/index.ts +0 -0
  418. /package/src/{ui → core}/primitives/tooltip/tooltip.test.tsx +0 -0
  419. /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/index.ts +0 -0
  420. /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupContext.tsx +0 -0
  421. /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +0 -0
  422. /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/types.ts +0 -0
  423. /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/useTooltipDelayGroup.ts +0 -0
  424. /package/src/{ui → core}/primitives/types.ts +0 -0
  425. /package/src/{ui → core}/types/avatar.ts +0 -0
  426. /package/src/{ui → core}/types/badge.ts +0 -0
  427. /package/src/{ui → core}/types/box.ts +0 -0
  428. /package/src/{ui → core}/types/button.ts +0 -0
  429. /package/src/{ui → core}/types/card.ts +0 -0
  430. /package/src/{ui → core}/types/dialog.ts +0 -0
  431. /package/src/{ui → core}/types/flex.ts +0 -0
  432. /package/src/{ui → core}/types/grid.ts +0 -0
  433. /package/src/{ui → core}/types/gridItem.ts +0 -0
  434. /package/src/{ui → core}/types/index.ts +0 -0
  435. /package/src/{ui → core}/types/placement.ts +0 -0
  436. /package/src/{ui → core}/types/popover.ts +0 -0
  437. /package/src/{ui → core}/types/props.ts +0 -0
  438. /package/src/{ui → core}/types/radius.ts +0 -0
  439. /package/src/{ui → core}/types/selectable.ts +0 -0
  440. /package/src/{ui → core}/types/text.ts +0 -0
  441. /package/src/{ui → core}/utils/arrow/arrow.tsx +0 -0
  442. /package/src/{ui → core}/utils/arrow/cmds.ts +0 -0
  443. /package/src/{ui → core}/utils/arrow/index.ts +0 -0
  444. /package/src/{ui → core}/utils/boundaryElement/__workshop__/index.ts +0 -0
  445. /package/src/{ui → core}/utils/boundaryElement/__workshop__/plain.tsx +0 -0
  446. /package/src/{ui → core}/utils/boundaryElement/boundaryElement.test.tsx +0 -0
  447. /package/src/{ui → core}/utils/boundaryElement/boundaryElementContext.ts +0 -0
  448. /package/src/{ui → core}/utils/boundaryElement/boundaryElementProvider.tsx +0 -0
  449. /package/src/{ui → core}/utils/boundaryElement/index.ts +0 -0
  450. /package/src/{ui → core}/utils/boundaryElement/types.ts +0 -0
  451. /package/src/{ui → core}/utils/boundaryElement/useBoundaryElement.ts +0 -0
  452. /package/src/{ui → core}/utils/elementQuery/__workshop__/customMedia.tsx +0 -0
  453. /package/src/{ui → core}/utils/elementQuery/__workshop__/index.ts +0 -0
  454. /package/src/{ui → core}/utils/elementQuery/elementQuery.tsx +0 -0
  455. /package/src/{ui → core}/utils/elementQuery/helpers.ts +0 -0
  456. /package/src/{ui → core}/utils/elementQuery/index.ts +0 -0
  457. /package/src/{ui → core}/utils/errorBoundary.tsx +0 -0
  458. /package/src/{ui → core}/utils/getElementRef.ts +0 -0
  459. /package/src/{ui → core}/utils/index.ts +0 -0
  460. /package/src/{ui → core}/utils/layer/__workshop__/_debug.tsx +0 -0
  461. /package/src/{ui → core}/utils/layer/__workshop__/index.ts +0 -0
  462. /package/src/{ui → core}/utils/layer/__workshop__/multipleRoots.tsx +0 -0
  463. /package/src/{ui → core}/utils/layer/__workshop__/nested.tsx +0 -0
  464. /package/src/{ui → core}/utils/layer/__workshop__/responsiveZOffset.tsx +0 -0
  465. /package/src/{ui → core}/utils/layer/getLayerContext.test.ts +0 -0
  466. /package/src/{ui → core}/utils/layer/getLayerContext.ts +0 -0
  467. /package/src/{ui → core}/utils/layer/index.ts +0 -0
  468. /package/src/{ui → core}/utils/layer/layer.test.tsx +0 -0
  469. /package/src/{ui → core}/utils/layer/layer.tsx +0 -0
  470. /package/src/{ui → core}/utils/layer/layerCard.tsx +0 -0
  471. /package/src/{ui → core}/utils/layer/layerContext.ts +0 -0
  472. /package/src/{ui → core}/utils/layer/layerProvider.tsx +0 -0
  473. /package/src/{ui → core}/utils/layer/types.ts +0 -0
  474. /package/src/{ui → core}/utils/layer/useLayer.ts +0 -0
  475. /package/src/{ui → core}/utils/portal/__workshop__/index.ts +0 -0
  476. /package/src/{ui → core}/utils/portal/__workshop__/named.tsx +0 -0
  477. /package/src/{ui → core}/utils/portal/index.ts +0 -0
  478. /package/src/{ui → core}/utils/portal/portal.test.tsx +0 -0
  479. /package/src/{ui → core}/utils/portal/portalContext.ts +0 -0
  480. /package/src/{ui → core}/utils/portal/portalProvider.tsx +0 -0
  481. /package/src/{ui → core}/utils/portal/types.ts +0 -0
  482. /package/src/{ui → core}/utils/portal/usePortal.ts +0 -0
  483. /package/src/{ui → core}/utils/spanWithTextOverflow.tsx +0 -0
  484. /package/src/{ui → core}/utils/srOnly/index.ts +0 -0
  485. /package/src/{ui → core}/utils/srOnly/srOnly.tsx +0 -0
  486. /package/src/{ui → core}/utils/virtualList/__workshop__/changingProps.tsx +0 -0
  487. /package/src/{ui → core}/utils/virtualList/__workshop__/elementScroll.tsx +0 -0
  488. /package/src/{ui → core}/utils/virtualList/__workshop__/index.ts +0 -0
  489. /package/src/{ui → core}/utils/virtualList/__workshop__/infiniteList.tsx +0 -0
  490. /package/src/{ui → core}/utils/virtualList/__workshop__/windowScrolll.tsx +0 -0
  491. /package/src/{ui → core}/utils/virtualList/index.ts +0 -0
  492. /package/src/{ui → core}/utils/virtualList/virtualList.tsx +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"refractor.js","sources":["../../src/ui/primitives/code/refractor.tsx"],"sourcesContent":["import Refractor from 'react-refractor'\n\nexport default function LazyRefractor(\n props: Partial<Pick<React.ComponentProps<typeof Refractor>, 'language'>> & {\n value: React.ReactNode\n },\n) {\n const {language: languageProp, value} = props\n const language = typeof languageProp === 'string' ? languageProp : undefined\n const registered = language ? Refractor.hasLanguage(language as any) : false\n\n return (\n <>\n {!(language && registered) && <code>{value}</code>}\n {language && registered && <Refractor inline language={language} value={String(value)} />}\n </>\n )\n}\n\nLazyRefractor.displayName = 'LazyRefractor'\n"],"names":["LazyRefractor","props","$","_c","language","languageProp","value","undefined","t0","Refractor","hasLanguage","registered","t1","t2","String","t3","displayName"],"mappings":";;;;;;AAEA,SAAeA,cAAAC,OAAA;AAAAC,QAAAA,IAAAC,uBAAA,EAAA,GAKb;AAAA,IAAAC,UAAAC;AAAAA,IAAAC;AAAAA,EAAAA,IAAwCL,OACxCG,WAAiB,OAAOC,gBAAiB,WAAWA,eAAYE;AAAYC,MAAAA;AAAAN,WAAAE,YACzDI,KAAAJ,WAAWK,mBAAAA,QAAAC,YAAsBN,QAAe,IAAS,IAAAF,OAAAE,UAAAF,OAAAM,MAAAA,KAAAN,EAAA,CAAA;AAA5E,QAAAS,aAAmBH;AAAyDI,MAAAA;AAAAV,IAAAE,CAAAA,MAAAA,YAAAF,SAAAS,cAAAT,EAAA,CAAA,MAAAI,SAIvEM,KAAA,EAAER,YAAYO,sDAAsBL,EAAAA,UAAAA,MAAAA,CAAM,GAAOJ,OAAAE,UAAAF,OAAAS,YAAAT,OAAAI,OAAAJ,OAAAU,MAAAA,KAAAV,EAAA,CAAA;AAAAW,MAAAA;AAAAX,IAAAE,CAAAA,MAAAA,YAAAF,SAAAS,cAAAT,EAAA,CAAA,MAAAI,SACjDO,KAAAT,YAAYO,6CAAeF,mBAAU,SAAA,EAAA,QAAK,IAAYL,UAAiB,OAAAU,OAAOR,KAAK,EAAA,CAAK,GAAAJ,OAAAE,UAAAF,OAAAS,YAAAT,OAAAI,OAAAJ,OAAAW,MAAAA,KAAAX,EAAA,CAAA;AAAAa,MAAAA;AAAAb,SAAAA,EAAAU,EAAAA,MAAAA,MAAAV,UAAAW,MAF3FE,KACGH,2BAAAA,KAAAA,WAAAA,UAAAA,EAAAA,UAAAA;AAAAA,IAAAA;AAAAA,IACAC;AAAAA,EAAAA,EAAwF,CAAA,GACxFX,QAAAU,IAAAV,QAAAW,IAAAX,QAAAa,MAAAA,KAAAb,EAAA,EAAA,GAHHa;AAGG;AAIPf,cAAcgB,cAAc;;"}
1
+ {"version":3,"file":"refractor.js","sources":["../../src/core/primitives/code/refractor.tsx"],"sourcesContent":["import Refractor from 'react-refractor'\n\nexport default function LazyRefractor(\n props: Partial<Pick<React.ComponentProps<typeof Refractor>, 'language'>> & {\n value: React.ReactNode\n },\n) {\n const {language: languageProp, value} = props\n const language = typeof languageProp === 'string' ? languageProp : undefined\n const registered = language ? Refractor.hasLanguage(language as any) : false\n\n return (\n <>\n {!(language && registered) && <code>{value}</code>}\n {language && registered && <Refractor inline language={language} value={String(value)} />}\n </>\n )\n}\n\nLazyRefractor.displayName = 'LazyRefractor'\n"],"names":["LazyRefractor","props","$","_c","language","languageProp","value","undefined","t0","Refractor","hasLanguage","registered","t1","t2","String","t3","displayName"],"mappings":";;;;;;AAEA,SAAeA,cAAAC,OAAA;AAAAC,QAAAA,IAAAC,uBAAA,EAAA,GAKb;AAAA,IAAAC,UAAAC;AAAAA,IAAAC;AAAAA,EAAAA,IAAwCL,OACxCG,WAAiB,OAAOC,gBAAiB,WAAWA,eAAYE;AAAYC,MAAAA;AAAAN,WAAAE,YACzDI,KAAAJ,WAAWK,mBAAAA,QAAAC,YAAsBN,QAAe,IAAS,IAAAF,OAAAE,UAAAF,OAAAM,MAAAA,KAAAN,EAAA,CAAA;AAA5E,QAAAS,aAAmBH;AAAyDI,MAAAA;AAAAV,IAAAE,CAAAA,MAAAA,YAAAF,SAAAS,cAAAT,EAAA,CAAA,MAAAI,SAIvEM,KAAA,EAAER,YAAYO,sDAAsBL,EAAAA,UAAAA,MAAAA,CAAM,GAAOJ,OAAAE,UAAAF,OAAAS,YAAAT,OAAAI,OAAAJ,OAAAU,MAAAA,KAAAV,EAAA,CAAA;AAAAW,MAAAA;AAAAX,IAAAE,CAAAA,MAAAA,YAAAF,SAAAS,cAAAT,EAAA,CAAA,MAAAI,SACjDO,KAAAT,YAAYO,6CAAeF,mBAAU,SAAA,EAAA,QAAK,IAAYL,UAAiB,OAAAU,OAAOR,KAAK,EAAA,CAAK,GAAAJ,OAAAE,UAAAF,OAAAS,YAAAT,OAAAI,OAAAJ,OAAAW,MAAAA,KAAAX,EAAA,CAAA;AAAAa,MAAAA;AAAAb,SAAAA,EAAAU,EAAAA,MAAAA,MAAAV,UAAAW,MAF3FE,KACGH,2BAAAA,KAAAA,WAAAA,UAAAA,EAAAA,UAAAA;AAAAA,IAAAA;AAAAA,IACAC;AAAAA,EAAAA,EAAwF,CAAA,GACxFX,QAAAU,IAAAV,QAAAW,IAAAX,QAAAa,MAAAA,KAAAb,EAAA,EAAA,GAHHa;AAGG;AAIPf,cAAcgB,cAAc;;"}
@@ -1,7 +1,7 @@
1
- import { buildTheme, getScopedTheme, getTheme_v2 } from "@sanity/ui/theme";
2
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
3
2
  import { c } from "react-compiler-runtime";
4
- import { createContext, useContext, useState, useEffect, useDebugValue, useSyncExternalStore, Children, isValidElement, cloneElement, createElement, useRef, useImperativeHandle, lazy, Suspense, useMemo, useCallback, useId, useLayoutEffect } from "react";
3
+ import { getScopedTheme, getTheme_v2 } from "@sanity/ui/theme";
4
+ import { createContext, useContext, useState, useEffect, useDebugValue, useSyncExternalStore, Children, isValidElement, cloneElement, useRef, useImperativeHandle, lazy, Suspense, useMemo, useCallback, useId, useLayoutEffect } from "react";
5
5
  import { ThemeProvider as ThemeProvider$1, useTheme as useTheme$1 } from "styled-components";
6
6
  import { composeClassNames, box, label, textOverflow, avatar, avatarArrow, avatarInitials, avatarImage, avatarCounter, avatarStack, text, badge, animatedSpinnerIcon, spinner, buttonLoadingBox, button, card, checkbox, checkboxInput, code, container, heading, kbd, _arrow, _arrowStrokeMask, _arrowStroke, _arrowShape, BREAKPOINTS, srOnly, vars, popoverCard, radio, select, _inputElement, selectPresentation, stack, _switch, _switchElement, _switchPresentation, _switchTrack, _switchThumb, textArea, _inputPresentation, textInput, tooltipCard, tooltip, menu, menuDivider, _selectable } from "@sanity/ui/css";
7
7
  import { isValidElementType } from "react-is";
@@ -11,7 +11,6 @@ import { motion, AnimatePresence } from "framer-motion";
11
11
  import { ResizeObserver } from "@juggle/resize-observer";
12
12
  import { useEffectEvent } from "use-effect-event";
13
13
  import { createPortal } from "react-dom";
14
- const studioTheme = buildTheme();
15
14
  function getGlobalScope() {
16
15
  if (typeof globalThis < "u") return globalThis;
17
16
  if (typeof window < "u") return window;
@@ -28,19 +27,18 @@ const CardContext = createGlobalScopedContext("@sanity/ui/context/card", null);
28
27
  function CardProvider(props) {
29
28
  const $ = c(7), {
30
29
  children,
31
- rendered: t0,
32
30
  tone,
33
- scheme
34
- } = props, rendered = t0 === void 0 ? !1 : t0;
35
- let t1, t2;
36
- $[0] !== rendered || $[1] !== scheme || $[2] !== tone ? (t2 = {
37
- rendered,
31
+ scheme,
32
+ unstable_CompatProvider
33
+ } = props;
34
+ let t0, t1;
35
+ $[0] !== scheme || $[1] !== tone || $[2] !== unstable_CompatProvider ? (t1 = {
38
36
  tone,
39
- scheme
40
- }, $[0] = rendered, $[1] = scheme, $[2] = tone, $[3] = t2) : t2 = $[3], t1 = t2;
41
- const context = t1;
42
- let t3;
43
- return $[4] !== children || $[5] !== context ? (t3 = /* @__PURE__ */ jsx(CardContext.Provider, { value: context, children }), $[4] = children, $[5] = context, $[6] = t3) : t3 = $[6], t3;
37
+ scheme,
38
+ unstable_CompatProvider
39
+ }, $[0] = scheme, $[1] = tone, $[2] = unstable_CompatProvider, $[3] = t1) : t1 = $[3], t0 = t1;
40
+ let t2;
41
+ return $[4] !== children || $[5] !== t0 ? (t2 = /* @__PURE__ */ jsx(CardContext.Provider, { value: t0, children }), $[4] = children, $[5] = t0, $[6] = t2) : t2 = $[6], t2;
44
42
  }
45
43
  CardProvider.displayName = "CardProvider";
46
44
  const ThemeContext = createGlobalScopedContext("@sanity/ui/context/theme", null);
@@ -82,7 +80,7 @@ function ThemeProvider(props) {
82
80
  let t3;
83
81
  $[12] !== t2 || $[13] !== themeContext ? (t3 = /* @__PURE__ */ jsx(ThemeContext.Provider, { value: themeContext, children: t2 }), $[12] = t2, $[13] = themeContext, $[14] = t3) : t3 = $[14];
84
82
  let t4;
85
- return $[15] !== scheme || $[16] !== t3 || $[17] !== tone ? (t4 = /* @__PURE__ */ jsx(CardProvider, { compat_provider: ThemeColorProvider, scheme, tone, children: t3 }), $[15] = scheme, $[16] = t3, $[17] = tone, $[18] = t4) : t4 = $[18], t4;
83
+ return $[15] !== scheme || $[16] !== t3 || $[17] !== tone ? (t4 = /* @__PURE__ */ jsx(CardProvider, { scheme, tone, unstable_CompatProvider: ThemeColorProvider, children: t3 }), $[15] = scheme, $[16] = t3, $[17] = tone, $[18] = t4) : t4 = $[18], t4;
86
84
  }
87
85
  ThemeProvider.displayName = "ThemeProvider";
88
86
  function useRootTheme() {
@@ -365,8 +363,8 @@ function _temp$5() {
365
363
  }
366
364
  const DEFAULT_BOX_ELEMENT = "div";
367
365
  function Box(props) {
368
- const $ = c(126), t0 = props;
369
- let align, autoCols, autoFlow, autoRows, borderBottom, borderLeft, borderRight, borderTop, children, className, column, columnEnd, columnStart, columns, direction, flex, gap, gapX, gapY, height, inset, insetBottom, insetLeft, insetRight, insetTop, justify, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, maxWidth, muted, outline, overflow, overflowX, overflowY, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, pointerEvents, position, radius, rest, row, rowEnd, rowStart, rows, t1, t2, t3, t4, t5, t6, t7, width, wrap;
366
+ const $ = c(128), t0 = props;
367
+ let align, autoCols, autoFlow, autoRows, borderBottom, borderLeft, borderRight, borderTop, children, className, column, columnEnd, columnStart, columns, direction, flex, gap, gapX, gapY, height, inset, insetBottom, insetLeft, insetRight, insetTop, justify, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, maxWidth, muted, outline, overflow, overflowX, overflowY, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, pointerEvents, position, radius, rest, row, rowEnd, rowStart, rows, t1, t2, t3, t4, t5, t6, t7, textAlign, width, wrap;
370
368
  $[0] !== t0 ? ({
371
369
  align,
372
370
  as: t1,
@@ -426,13 +424,14 @@ function Box(props) {
426
424
  rowStart,
427
425
  rowEnd,
428
426
  sizing: t7,
427
+ textAlign,
429
428
  width,
430
429
  wrap,
431
430
  ...rest
432
- } = t0, $[0] = t0, $[1] = align, $[2] = autoCols, $[3] = autoFlow, $[4] = autoRows, $[5] = borderBottom, $[6] = borderLeft, $[7] = borderRight, $[8] = borderTop, $[9] = children, $[10] = className, $[11] = column, $[12] = columnEnd, $[13] = columnStart, $[14] = columns, $[15] = direction, $[16] = flex, $[17] = gap, $[18] = gapX, $[19] = gapY, $[20] = height, $[21] = inset, $[22] = insetBottom, $[23] = insetLeft, $[24] = insetRight, $[25] = insetTop, $[26] = justify, $[27] = marginBottom, $[28] = marginLeft, $[29] = marginRight, $[30] = marginTop, $[31] = marginX, $[32] = marginY, $[33] = maxWidth, $[34] = muted, $[35] = outline, $[36] = overflow, $[37] = overflowX, $[38] = overflowY, $[39] = paddingBottom, $[40] = paddingLeft, $[41] = paddingRight, $[42] = paddingTop, $[43] = paddingX, $[44] = paddingY, $[45] = pointerEvents, $[46] = position, $[47] = radius, $[48] = rest, $[49] = row, $[50] = rowEnd, $[51] = rowStart, $[52] = rows, $[53] = t1, $[54] = t2, $[55] = t3, $[56] = t4, $[57] = t5, $[58] = t6, $[59] = t7, $[60] = width, $[61] = wrap) : (align = $[1], autoCols = $[2], autoFlow = $[3], autoRows = $[4], borderBottom = $[5], borderLeft = $[6], borderRight = $[7], borderTop = $[8], children = $[9], className = $[10], column = $[11], columnEnd = $[12], columnStart = $[13], columns = $[14], direction = $[15], flex = $[16], gap = $[17], gapX = $[18], gapY = $[19], height = $[20], inset = $[21], insetBottom = $[22], insetLeft = $[23], insetRight = $[24], insetTop = $[25], justify = $[26], marginBottom = $[27], marginLeft = $[28], marginRight = $[29], marginTop = $[30], marginX = $[31], marginY = $[32], maxWidth = $[33], muted = $[34], outline = $[35], overflow = $[36], overflowX = $[37], overflowY = $[38], paddingBottom = $[39], paddingLeft = $[40], paddingRight = $[41], paddingTop = $[42], paddingX = $[43], paddingY = $[44], pointerEvents = $[45], position = $[46], radius = $[47], rest = $[48], row = $[49], rowEnd = $[50], rowStart = $[51], rows = $[52], t1 = $[53], t2 = $[54], t3 = $[55], t4 = $[56], t5 = $[57], t6 = $[58], t7 = $[59], width = $[60], wrap = $[61]);
431
+ } = t0, $[0] = t0, $[1] = align, $[2] = autoCols, $[3] = autoFlow, $[4] = autoRows, $[5] = borderBottom, $[6] = borderLeft, $[7] = borderRight, $[8] = borderTop, $[9] = children, $[10] = className, $[11] = column, $[12] = columnEnd, $[13] = columnStart, $[14] = columns, $[15] = direction, $[16] = flex, $[17] = gap, $[18] = gapX, $[19] = gapY, $[20] = height, $[21] = inset, $[22] = insetBottom, $[23] = insetLeft, $[24] = insetRight, $[25] = insetTop, $[26] = justify, $[27] = marginBottom, $[28] = marginLeft, $[29] = marginRight, $[30] = marginTop, $[31] = marginX, $[32] = marginY, $[33] = maxWidth, $[34] = muted, $[35] = outline, $[36] = overflow, $[37] = overflowX, $[38] = overflowY, $[39] = paddingBottom, $[40] = paddingLeft, $[41] = paddingRight, $[42] = paddingTop, $[43] = paddingX, $[44] = paddingY, $[45] = pointerEvents, $[46] = position, $[47] = radius, $[48] = rest, $[49] = row, $[50] = rowEnd, $[51] = rowStart, $[52] = rows, $[53] = t1, $[54] = t2, $[55] = t3, $[56] = t4, $[57] = t5, $[58] = t6, $[59] = t7, $[60] = textAlign, $[61] = width, $[62] = wrap) : (align = $[1], autoCols = $[2], autoFlow = $[3], autoRows = $[4], borderBottom = $[5], borderLeft = $[6], borderRight = $[7], borderTop = $[8], children = $[9], className = $[10], column = $[11], columnEnd = $[12], columnStart = $[13], columns = $[14], direction = $[15], flex = $[16], gap = $[17], gapX = $[18], gapY = $[19], height = $[20], inset = $[21], insetBottom = $[22], insetLeft = $[23], insetRight = $[24], insetTop = $[25], justify = $[26], marginBottom = $[27], marginLeft = $[28], marginRight = $[29], marginTop = $[30], marginX = $[31], marginY = $[32], maxWidth = $[33], muted = $[34], outline = $[35], overflow = $[36], overflowX = $[37], overflowY = $[38], paddingBottom = $[39], paddingLeft = $[40], paddingRight = $[41], paddingTop = $[42], paddingX = $[43], paddingY = $[44], pointerEvents = $[45], position = $[46], radius = $[47], rest = $[48], row = $[49], rowEnd = $[50], rowStart = $[51], rows = $[52], t1 = $[53], t2 = $[54], t3 = $[55], t4 = $[56], t5 = $[57], t6 = $[58], t7 = $[59], textAlign = $[60], width = $[61], wrap = $[62]);
433
432
  const Element2 = t1 === void 0 ? DEFAULT_BOX_ELEMENT : t1, border = t2 === void 0 ? !1 : t2, display = t3 === void 0 ? "block" : t3, margin = t4 === void 0 ? 0 : t4, minWidth = t5 === void 0 ? 0 : t5, padding = t6 === void 0 ? 0 : t6, sizing = t7 === void 0 ? "border" : t7;
434
433
  let t8;
435
- $[62] !== align || $[63] !== autoCols || $[64] !== autoFlow || $[65] !== autoRows || $[66] !== border || $[67] !== borderBottom || $[68] !== borderLeft || $[69] !== borderRight || $[70] !== borderTop || $[71] !== className || $[72] !== column || $[73] !== columnEnd || $[74] !== columnStart || $[75] !== columns || $[76] !== direction || $[77] !== display || $[78] !== flex || $[79] !== gap || $[80] !== gapX || $[81] !== gapY || $[82] !== height || $[83] !== inset || $[84] !== insetBottom || $[85] !== insetLeft || $[86] !== insetRight || $[87] !== insetTop || $[88] !== justify || $[89] !== margin || $[90] !== marginBottom || $[91] !== marginLeft || $[92] !== marginRight || $[93] !== marginTop || $[94] !== marginX || $[95] !== marginY || $[96] !== maxWidth || $[97] !== minWidth || $[98] !== muted || $[99] !== outline || $[100] !== overflow || $[101] !== overflowX || $[102] !== overflowY || $[103] !== padding || $[104] !== paddingBottom || $[105] !== paddingLeft || $[106] !== paddingRight || $[107] !== paddingTop || $[108] !== paddingX || $[109] !== paddingY || $[110] !== pointerEvents || $[111] !== position || $[112] !== radius || $[113] !== row || $[114] !== rowEnd || $[115] !== rowStart || $[116] !== rows || $[117] !== sizing || $[118] !== width || $[119] !== wrap ? (t8 = composeClassNames(className, box({
434
+ $[63] !== align || $[64] !== autoCols || $[65] !== autoFlow || $[66] !== autoRows || $[67] !== border || $[68] !== borderBottom || $[69] !== borderLeft || $[70] !== borderRight || $[71] !== borderTop || $[72] !== className || $[73] !== column || $[74] !== columnEnd || $[75] !== columnStart || $[76] !== columns || $[77] !== direction || $[78] !== display || $[79] !== flex || $[80] !== gap || $[81] !== gapX || $[82] !== gapY || $[83] !== height || $[84] !== inset || $[85] !== insetBottom || $[86] !== insetLeft || $[87] !== insetRight || $[88] !== insetTop || $[89] !== justify || $[90] !== margin || $[91] !== marginBottom || $[92] !== marginLeft || $[93] !== marginRight || $[94] !== marginTop || $[95] !== marginX || $[96] !== marginY || $[97] !== maxWidth || $[98] !== minWidth || $[99] !== muted || $[100] !== outline || $[101] !== overflow || $[102] !== overflowX || $[103] !== overflowY || $[104] !== padding || $[105] !== paddingBottom || $[106] !== paddingLeft || $[107] !== paddingRight || $[108] !== paddingTop || $[109] !== paddingX || $[110] !== paddingY || $[111] !== pointerEvents || $[112] !== position || $[113] !== radius || $[114] !== row || $[115] !== rowEnd || $[116] !== rowStart || $[117] !== rows || $[118] !== sizing || $[119] !== textAlign || $[120] !== width || $[121] !== wrap ? (t8 = composeClassNames(className, box({
436
435
  align,
437
436
  autoCols,
438
437
  autoFlow,
@@ -488,11 +487,12 @@ function Box(props) {
488
487
  rowStart,
489
488
  rowEnd,
490
489
  sizing,
490
+ textAlign,
491
491
  width,
492
492
  wrap
493
- })), $[62] = align, $[63] = autoCols, $[64] = autoFlow, $[65] = autoRows, $[66] = border, $[67] = borderBottom, $[68] = borderLeft, $[69] = borderRight, $[70] = borderTop, $[71] = className, $[72] = column, $[73] = columnEnd, $[74] = columnStart, $[75] = columns, $[76] = direction, $[77] = display, $[78] = flex, $[79] = gap, $[80] = gapX, $[81] = gapY, $[82] = height, $[83] = inset, $[84] = insetBottom, $[85] = insetLeft, $[86] = insetRight, $[87] = insetTop, $[88] = justify, $[89] = margin, $[90] = marginBottom, $[91] = marginLeft, $[92] = marginRight, $[93] = marginTop, $[94] = marginX, $[95] = marginY, $[96] = maxWidth, $[97] = minWidth, $[98] = muted, $[99] = outline, $[100] = overflow, $[101] = overflowX, $[102] = overflowY, $[103] = padding, $[104] = paddingBottom, $[105] = paddingLeft, $[106] = paddingRight, $[107] = paddingTop, $[108] = paddingX, $[109] = paddingY, $[110] = pointerEvents, $[111] = position, $[112] = radius, $[113] = row, $[114] = rowEnd, $[115] = rowStart, $[116] = rows, $[117] = sizing, $[118] = width, $[119] = wrap, $[120] = t8) : t8 = $[120];
493
+ })), $[63] = align, $[64] = autoCols, $[65] = autoFlow, $[66] = autoRows, $[67] = border, $[68] = borderBottom, $[69] = borderLeft, $[70] = borderRight, $[71] = borderTop, $[72] = className, $[73] = column, $[74] = columnEnd, $[75] = columnStart, $[76] = columns, $[77] = direction, $[78] = display, $[79] = flex, $[80] = gap, $[81] = gapX, $[82] = gapY, $[83] = height, $[84] = inset, $[85] = insetBottom, $[86] = insetLeft, $[87] = insetRight, $[88] = insetTop, $[89] = justify, $[90] = margin, $[91] = marginBottom, $[92] = marginLeft, $[93] = marginRight, $[94] = marginTop, $[95] = marginX, $[96] = marginY, $[97] = maxWidth, $[98] = minWidth, $[99] = muted, $[100] = outline, $[101] = overflow, $[102] = overflowX, $[103] = overflowY, $[104] = padding, $[105] = paddingBottom, $[106] = paddingLeft, $[107] = paddingRight, $[108] = paddingTop, $[109] = paddingX, $[110] = paddingY, $[111] = pointerEvents, $[112] = position, $[113] = radius, $[114] = row, $[115] = rowEnd, $[116] = rowStart, $[117] = rows, $[118] = sizing, $[119] = textAlign, $[120] = width, $[121] = wrap, $[122] = t8) : t8 = $[122];
494
494
  let t9;
495
- return $[121] !== Element2 || $[122] !== children || $[123] !== rest || $[124] !== t8 ? (t9 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Box", ...rest, className: t8, children }), $[121] = Element2, $[122] = children, $[123] = rest, $[124] = t8, $[125] = t9) : t9 = $[125], t9;
495
+ return $[123] !== Element2 || $[124] !== children || $[125] !== rest || $[126] !== t8 ? (t9 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Box", ...rest, className: t8, children }), $[123] = Element2, $[124] = children, $[125] = rest, $[126] = t8, $[127] = t9) : t9 = $[127], t9;
496
496
  }
497
497
  Box.displayName = "Box";
498
498
  const DEFAULT_LABEL_ELEMENT = "div";
@@ -832,7 +832,7 @@ function useCard() {
832
832
  }
833
833
  const DEFAULT_CARD_ELEMENT = "div";
834
834
  function Card(props) {
835
- const $ = c(43), t0 = props;
835
+ const $ = c(40), t0 = props;
836
836
  let className, disabled, pressed, rest, schemeProp, selected, shadow, style, t1, t2, t3, t4, t5;
837
837
  $[0] !== t0 ? ({
838
838
  __unstable_checkered: t1,
@@ -849,35 +849,25 @@ function Card(props) {
849
849
  tone: t5,
850
850
  ...rest
851
851
  } = t0, $[0] = t0, $[1] = className, $[2] = disabled, $[3] = pressed, $[4] = rest, $[5] = schemeProp, $[6] = selected, $[7] = shadow, $[8] = style, $[9] = t1, $[10] = t2, $[11] = t3, $[12] = t4, $[13] = t5) : (className = $[1], disabled = $[2], pressed = $[3], rest = $[4], schemeProp = $[5], selected = $[6], shadow = $[7], style = $[8], t1 = $[9], t2 = $[10], t3 = $[11], t4 = $[12], t5 = $[13]);
852
- const checkered = t1 === void 0 ? !1 : t1, focusRing = t2 === void 0 ? !1 : t2, as = t3 === void 0 ? DEFAULT_CARD_ELEMENT : t3, radius = t4 === void 0 ? 0 : t4, toneProp = t5 === void 0 ? "default" : t5, parent = useCard(), t6 = parent?.tone ?? "default", t7 = parent?.scheme ?? "light";
853
- let t8;
854
- $[14] !== t6 || $[15] !== t7 ? (t8 = {
855
- tone: t6,
856
- scheme: t7
857
- }, $[14] = t6, $[15] = t7, $[16] = t8) : t8 = $[16];
858
- const context = t8, tone = toneProp === "inherit" ? context.tone : toneProp, scheme = schemeProp === void 0 ? context.scheme : schemeProp, t9 = scheme === context.scheme ? void 0 : scheme;
859
- let t10;
860
- $[17] !== className || $[18] !== shadow || $[19] !== t9 || $[20] !== tone ? (t10 = composeClassNames(className, card({
861
- scheme: t9,
852
+ const checkered = t1 === void 0 ? !1 : t1, focusRing = t2 === void 0 ? !1 : t2, as = t3 === void 0 ? DEFAULT_CARD_ELEMENT : t3, radius = t4 === void 0 ? 0 : t4, toneProp = t5 === void 0 ? "default" : t5, parent = useCard(), tone = toneProp === "inherit" ? parent?.tone : toneProp, scheme = schemeProp === void 0 ? parent?.scheme : schemeProp, t6 = scheme === parent?.scheme ? void 0 : scheme;
853
+ let t7;
854
+ $[14] !== className || $[15] !== shadow || $[16] !== t6 || $[17] !== tone ? (t7 = composeClassNames(className, card({
855
+ scheme: t6,
862
856
  shadow,
863
857
  tone
864
- })), $[17] = className, $[18] = shadow, $[19] = t9, $[20] = tone, $[21] = t10) : t10 = $[21];
865
- const t11 = checkered ? "" : void 0, t12 = disabled ? "" : void 0, t13 = focusRing ? "" : void 0, t14 = pressed ? "" : void 0, t15 = selected ? "" : void 0;
866
- let t16;
867
- $[22] !== as || $[23] !== radius || $[24] !== rest || $[25] !== style || $[26] !== t10 || $[27] !== t11 || $[28] !== t12 || $[29] !== t13 || $[30] !== t14 || $[31] !== t15 ? (t16 = /* @__PURE__ */ jsx(Box, { "data-ui": "Card", ...rest, as, className: t10, "data-checkered": t11, "data-disabled": t12, "data-focus-ring": t13, "data-pressed": t14, "data-selected": t15, radius, style }), $[22] = as, $[23] = radius, $[24] = rest, $[25] = style, $[26] = t10, $[27] = t11, $[28] = t12, $[29] = t13, $[30] = t14, $[31] = t15, $[32] = t16) : t16 = $[32];
868
- let node = t16;
869
- if (scheme === context.scheme && tone === context.tone)
858
+ })), $[14] = className, $[15] = shadow, $[16] = t6, $[17] = tone, $[18] = t7) : t7 = $[18];
859
+ const t8 = checkered ? "" : void 0, t9 = disabled ? "" : void 0, t10 = focusRing ? "" : void 0, t11 = pressed ? "" : void 0, t12 = selected ? "" : void 0;
860
+ let t13;
861
+ $[19] !== as || $[20] !== radius || $[21] !== rest || $[22] !== style || $[23] !== t10 || $[24] !== t11 || $[25] !== t12 || $[26] !== t7 || $[27] !== t8 || $[28] !== t9 ? (t13 = /* @__PURE__ */ jsx(Box, { "data-ui": "Card", ...rest, as, className: t7, "data-checkered": t8, "data-disabled": t9, "data-focus-ring": t10, "data-pressed": t11, "data-selected": t12, radius, style }), $[19] = as, $[20] = radius, $[21] = rest, $[22] = style, $[23] = t10, $[24] = t11, $[25] = t12, $[26] = t7, $[27] = t8, $[28] = t9, $[29] = t13) : t13 = $[29];
862
+ let node = t13;
863
+ if (scheme === parent?.scheme && tone === parent?.tone)
870
864
  return node;
871
- const t17 = parent?.compat_provider, t18 = tone ?? context.tone;
872
- let t19;
873
- if ($[33] !== node || $[34] !== scheme || $[35] !== t17 || $[36] !== t18 ? (t19 = /* @__PURE__ */ jsx(CardProvider, { compat_provider: t17, rendered: !0, scheme, tone: t18, children: node }), $[33] = node, $[34] = scheme, $[35] = t17, $[36] = t18, $[37] = t19) : t19 = $[37], node = t19, parent?.compat_provider) {
874
- const t20 = tone ?? context.tone;
875
- let t21;
876
- return $[38] !== node || $[39] !== parent.compat_provider || $[40] !== scheme || $[41] !== t20 ? (t21 = createElement(parent.compat_provider, {
877
- children: node,
878
- scheme,
879
- tone: t20
880
- }), $[38] = node, $[39] = parent.compat_provider, $[40] = scheme, $[41] = t20, $[42] = t21) : t21 = $[42], t21;
865
+ const t14 = scheme ?? "light", t15 = tone ?? "default", t16 = parent?.unstable_CompatProvider;
866
+ let t17;
867
+ if ($[30] !== node || $[31] !== t14 || $[32] !== t15 || $[33] !== t16 ? (t17 = /* @__PURE__ */ jsx(CardProvider, { scheme: t14, tone: t15, unstable_CompatProvider: t16, children: node }), $[30] = node, $[31] = t14, $[32] = t15, $[33] = t16, $[34] = t17) : t17 = $[34], node = t17, parent?.unstable_CompatProvider) {
868
+ const CompatProvider = parent.unstable_CompatProvider, t18 = scheme ?? "light", t19 = tone ?? parent?.tone ?? "default";
869
+ let t20;
870
+ return $[35] !== CompatProvider || $[36] !== node || $[37] !== t18 || $[38] !== t19 ? (t20 = /* @__PURE__ */ jsx(CompatProvider, { scheme: t18, tone: t19, children: node }), $[35] = CompatProvider, $[36] = node, $[37] = t18, $[38] = t19, $[39] = t20) : t20 = $[39], t20;
881
871
  }
882
872
  return node;
883
873
  }
@@ -1440,7 +1430,7 @@ function usePortal() {
1440
1430
  return value;
1441
1431
  }
1442
1432
  function Portal(props) {
1443
- const $ = c(4), {
1433
+ const $ = c(6), {
1444
1434
  children,
1445
1435
  __unstable_name: name
1446
1436
  } = props, card2 = useCard(), portal = usePortal(), portalElement = (name ? portal.elements && portal.elements[name] : portal.element) || portal.elements?.default;
@@ -1448,11 +1438,9 @@ function Portal(props) {
1448
1438
  return null;
1449
1439
  const t0 = card2?.scheme || "light";
1450
1440
  let t1;
1451
- return $[0] !== children || $[1] !== portalElement || $[2] !== t0 ? (t1 = createPortal(createElement(CardProvider, {
1452
- rendered: !0,
1453
- tone: "transparent",
1454
- scheme: t0
1455
- }, children), portalElement), $[0] = children, $[1] = portalElement, $[2] = t0, $[3] = t1) : t1 = $[3], t1;
1441
+ $[0] !== children || $[1] !== t0 ? (t1 = /* @__PURE__ */ jsx(CardProvider, { tone: "transparent", scheme: t0, children }), $[0] = children, $[1] = t0, $[2] = t1) : t1 = $[2];
1442
+ let t2;
1443
+ return $[3] !== portalElement || $[4] !== t1 ? (t2 = createPortal(t1, portalElement), $[3] = portalElement, $[4] = t1, $[5] = t2) : t2 = $[5], t2;
1456
1444
  }
1457
1445
  Portal.displayName = "Portal";
1458
1446
  function PortalProvider(props) {
@@ -1688,18 +1676,16 @@ function size(options) {
1688
1676
  }
1689
1677
  };
1690
1678
  }
1691
- const DEFAULT_POPOVER_LAYER_ELEMENT = "div", MotionLayer$1 = motion.create(Layer);
1692
1679
  function PopoverLayer(props) {
1693
- const $ = c(67), t0 = props;
1694
- let animate, arrow2, arrowRef, arrowX, arrowY, children, marginsProp, maxWidth, originX, originY, overflow, padding, placement, radius, referenceWidth, rest, shadow, strategy, style, t1, t2, xProp, yProp;
1695
- $[0] !== t0 ? ({
1680
+ const $ = c(65);
1681
+ let animate, arrow2, arrowRef, arrowX, arrowY, children, marginsProp, maxWidth, originX, originY, overflow, padding, placement, radius, referenceWidth, rest, shadow, strategy, style, t0, xProp, yProp;
1682
+ $[0] !== props ? ({
1696
1683
  __unstable_margins: marginsProp,
1697
1684
  animate,
1698
1685
  arrow: arrow2,
1699
1686
  arrowRef,
1700
1687
  arrowX,
1701
1688
  arrowY,
1702
- as: t1,
1703
1689
  children,
1704
1690
  maxWidth,
1705
1691
  padding,
@@ -1712,57 +1698,57 @@ function PopoverLayer(props) {
1712
1698
  shadow,
1713
1699
  strategy,
1714
1700
  style,
1715
- tone: t2,
1701
+ tone: t0,
1716
1702
  x: xProp,
1717
1703
  y: yProp,
1718
1704
  ...rest
1719
- } = t0, $[0] = t0, $[1] = animate, $[2] = arrow2, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = marginsProp, $[8] = maxWidth, $[9] = originX, $[10] = originY, $[11] = overflow, $[12] = padding, $[13] = placement, $[14] = radius, $[15] = referenceWidth, $[16] = rest, $[17] = shadow, $[18] = strategy, $[19] = style, $[20] = t1, $[21] = t2, $[22] = xProp, $[23] = yProp) : (animate = $[1], arrow2 = $[2], arrowRef = $[3], arrowX = $[4], arrowY = $[5], children = $[6], marginsProp = $[7], maxWidth = $[8], originX = $[9], originY = $[10], overflow = $[11], padding = $[12], placement = $[13], radius = $[14], referenceWidth = $[15], rest = $[16], shadow = $[17], strategy = $[18], style = $[19], t1 = $[20], t2 = $[21], xProp = $[22], yProp = $[23]);
1720
- const as = t1 === void 0 ? DEFAULT_POPOVER_LAYER_ELEMENT : t1, tone = t2 === void 0 ? "inherit" : t2;
1721
- let t3;
1722
- t3 = marginsProp || DEFAULT_POPOVER_MARGINS;
1723
- const margins = t3, x = (xProp ?? 0) + margins[3], y = (yProp ?? 0) + margins[0];
1705
+ } = props, $[0] = props, $[1] = animate, $[2] = arrow2, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = marginsProp, $[8] = maxWidth, $[9] = originX, $[10] = originY, $[11] = overflow, $[12] = padding, $[13] = placement, $[14] = radius, $[15] = referenceWidth, $[16] = rest, $[17] = shadow, $[18] = strategy, $[19] = style, $[20] = t0, $[21] = xProp, $[22] = yProp) : (animate = $[1], arrow2 = $[2], arrowRef = $[3], arrowX = $[4], arrowY = $[5], children = $[6], marginsProp = $[7], maxWidth = $[8], originX = $[9], originY = $[10], overflow = $[11], padding = $[12], placement = $[13], radius = $[14], referenceWidth = $[15], rest = $[16], shadow = $[17], strategy = $[18], style = $[19], t0 = $[20], xProp = $[21], yProp = $[22]);
1706
+ const tone = t0 === void 0 ? "inherit" : t0;
1707
+ let t1;
1708
+ t1 = marginsProp || DEFAULT_POPOVER_MARGINS;
1709
+ const margins = t1, x = (xProp ?? 0) + margins[3], y = (yProp ?? 0) + margins[0];
1710
+ let t2;
1711
+ const t3 = animate ? "transform" : void 0;
1724
1712
  let t4;
1725
- const t5 = animate ? "transform" : void 0;
1726
- let t6;
1727
- $[24] !== originX || $[25] !== originY || $[26] !== referenceWidth || $[27] !== style || $[28] !== t5 || $[29] !== x || $[30] !== y ? (t6 = {
1713
+ $[23] !== originX || $[24] !== originY || $[25] !== referenceWidth || $[26] !== style || $[27] !== t3 || $[28] !== x || $[29] !== y ? (t4 = {
1728
1714
  left: x,
1729
1715
  originX,
1730
1716
  originY,
1731
1717
  top: y,
1732
1718
  width: referenceWidth,
1733
- willChange: t5,
1719
+ willChange: t3,
1734
1720
  ...style
1735
- }, $[24] = originX, $[25] = originY, $[26] = referenceWidth, $[27] = style, $[28] = t5, $[29] = x, $[30] = y, $[31] = t6) : t6 = $[31], t4 = t6;
1736
- const rootStyle = t4;
1737
- let t7;
1738
- const t8 = arrowX !== null ? arrowX : void 0, t9 = arrowY !== null ? arrowY : void 0;
1739
- let t10;
1740
- $[32] !== t8 || $[33] !== t9 ? (t10 = {
1741
- left: t8,
1742
- top: t9,
1721
+ }, $[23] = originX, $[24] = originY, $[25] = referenceWidth, $[26] = style, $[27] = t3, $[28] = x, $[29] = y, $[30] = t4) : t4 = $[30], t2 = t4;
1722
+ const rootStyle = t2;
1723
+ let t5;
1724
+ const t6 = arrowX !== null ? arrowX : void 0, t7 = arrowY !== null ? arrowY : void 0;
1725
+ let t8;
1726
+ $[31] !== t6 || $[32] !== t7 ? (t8 = {
1727
+ left: t6,
1728
+ top: t7,
1743
1729
  right: void 0,
1744
1730
  bottom: void 0
1745
- }, $[32] = t8, $[33] = t9, $[34] = t10) : t10 = $[34], t7 = t10;
1746
- const arrowStyle = t7;
1731
+ }, $[31] = t6, $[32] = t7, $[33] = t8) : t8 = $[33], t5 = t8;
1732
+ const arrowStyle = t5;
1733
+ let t9;
1734
+ $[34] === Symbol.for("react.memo_cache_sentinel") ? (t9 = popoverCard(), $[34] = t9) : t9 = $[34];
1735
+ let t10;
1736
+ $[35] !== animate ? (t10 = animate ? ["hidden", "initial"] : void 0, $[35] = animate, $[36] = t10) : t10 = $[36];
1747
1737
  let t11;
1748
- $[35] === Symbol.for("react.memo_cache_sentinel") ? (t11 = popoverCard(), $[35] = t11) : t11 = $[35];
1738
+ $[37] !== animate ? (t11 = animate ? ["visible", "scaleIn"] : void 0, $[37] = animate, $[38] = t11) : t11 = $[38];
1749
1739
  let t12;
1750
- $[36] !== animate ? (t12 = animate ? ["hidden", "initial"] : void 0, $[36] = animate, $[37] = t12) : t12 = $[37];
1740
+ $[39] !== animate ? (t12 = animate ? ["hidden", "scaleOut"] : void 0, $[39] = animate, $[40] = t12) : t12 = $[40];
1751
1741
  let t13;
1752
- $[38] !== animate ? (t13 = animate ? ["visible", "scaleIn"] : void 0, $[38] = animate, $[39] = t13) : t13 = $[39];
1742
+ $[41] !== children || $[42] !== padding ? (t13 = /* @__PURE__ */ jsx(Flex, { direction: "column", flex: 1, padding, children }), $[41] = children, $[42] = padding, $[43] = t13) : t13 = $[43];
1753
1743
  let t14;
1754
- $[40] !== animate ? (t14 = animate ? ["hidden", "scaleOut"] : void 0, $[40] = animate, $[41] = t14) : t14 = $[41];
1744
+ $[44] !== maxWidth || $[45] !== overflow || $[46] !== t13 ? (t14 = /* @__PURE__ */ jsx(Flex, { "data-ui": "Popover__wrapper", direction: "column", flex: 1, maxWidth, overflow, children: t13 }), $[44] = maxWidth, $[45] = overflow, $[46] = t13, $[47] = t14) : t14 = $[47];
1755
1745
  let t15;
1756
- $[42] !== children || $[43] !== padding ? (t15 = /* @__PURE__ */ jsx(Flex, { direction: "column", flex: 1, padding, children }), $[42] = children, $[43] = padding, $[44] = t15) : t15 = $[44];
1746
+ $[48] !== arrow2 || $[49] !== arrowRef || $[50] !== arrowStyle ? (t15 = arrow2 && /* @__PURE__ */ jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_POPOVER_ARROW_WIDTH, height: DEFAULT_POPOVER_ARROW_HEIGHT, radius: DEFAULT_POPOVER_ARROW_RADIUS }), $[48] = arrow2, $[49] = arrowRef, $[50] = arrowStyle, $[51] = t15) : t15 = $[51];
1757
1747
  let t16;
1758
- $[45] !== maxWidth || $[46] !== overflow || $[47] !== t15 ? (t16 = /* @__PURE__ */ jsx(Flex, { "data-ui": "Popover__wrapper", direction: "column", flex: 1, maxWidth, overflow, children: t15 }), $[45] = maxWidth, $[46] = overflow, $[47] = t15, $[48] = t16) : t16 = $[48];
1759
- let t17;
1760
- $[49] !== arrow2 || $[50] !== arrowRef || $[51] !== arrowStyle ? (t17 = arrow2 && /* @__PURE__ */ jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_POPOVER_ARROW_WIDTH, height: DEFAULT_POPOVER_ARROW_HEIGHT, radius: DEFAULT_POPOVER_ARROW_RADIUS }), $[49] = arrow2, $[50] = arrowRef, $[51] = arrowStyle, $[52] = t17) : t17 = $[52];
1761
- let t18;
1762
- return $[53] !== as || $[54] !== placement || $[55] !== radius || $[56] !== rest || $[57] !== rootStyle || $[58] !== shadow || $[59] !== strategy || $[60] !== t12 || $[61] !== t13 || $[62] !== t14 || $[63] !== t16 || $[64] !== t17 || $[65] !== tone ? (t18 = /* @__PURE__ */ jsxs(MotionLayer$1, { className: t11, "data-ui": "Popover", ...rest, as, "data-context-tone": tone, "data-placement": placement, direction: "column", display: "flex", position: strategy, radius, shadow, sizing: "border", style: rootStyle, tone, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t12, animate: t13, exit: t14, children: [
1763
- t16,
1764
- t17
1765
- ] }), $[53] = as, $[54] = placement, $[55] = radius, $[56] = rest, $[57] = rootStyle, $[58] = shadow, $[59] = strategy, $[60] = t12, $[61] = t13, $[62] = t14, $[63] = t16, $[64] = t17, $[65] = tone, $[66] = t18) : t18 = $[66], t18;
1748
+ return $[52] !== placement || $[53] !== radius || $[54] !== rest || $[55] !== rootStyle || $[56] !== shadow || $[57] !== strategy || $[58] !== t10 || $[59] !== t11 || $[60] !== t12 || $[61] !== t14 || $[62] !== t15 || $[63] !== tone ? (t16 = /* @__PURE__ */ jsxs(Layer, { className: t9, "data-ui": "Popover", ...rest, as: motion.div, "data-context-tone": tone, "data-placement": placement, direction: "column", display: "flex", position: strategy, radius, shadow, sizing: "border", style: rootStyle, tone, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t10, animate: t11, exit: t12, children: [
1749
+ t14,
1750
+ t15
1751
+ ] }), $[52] = placement, $[53] = radius, $[54] = rest, $[55] = rootStyle, $[56] = shadow, $[57] = strategy, $[58] = t10, $[59] = t11, $[60] = t12, $[61] = t14, $[62] = t15, $[63] = tone, $[64] = t16) : t16 = $[64], t16;
1766
1752
  }
1767
1753
  PopoverLayer.displayName = "PopoverCard";
1768
1754
  const DEFAULT_POPOVER_ELEMENT = "div";
@@ -1782,7 +1768,7 @@ function ViewportOverlay() {
1782
1768
  function Popover(props) {
1783
1769
  const boundaryElementContext = useBoundaryElement(), {
1784
1770
  __unstable_margins: margins = DEFAULT_POPOVER_MARGINS,
1785
- animate: _animate = !1,
1771
+ animate: _animate = !0,
1786
1772
  arrow: arrowProp = !1,
1787
1773
  as = DEFAULT_POPOVER_ELEMENT,
1788
1774
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -2264,17 +2250,15 @@ TooltipDelayGroupProvider.displayName = "TooltipDelayGroupProvider";
2264
2250
  function useTooltipDelayGroup() {
2265
2251
  return useContext(TooltipDelayGroupContext);
2266
2252
  }
2267
- const DEFAULT_TOOLTIP_LAYER_ELEMENT = "div", MotionLayer = motion.create(Layer);
2268
2253
  function TooltipLayer(props) {
2269
- const $ = c(53), t0 = props;
2270
- let animate, arrow2, arrowRef, arrowX, arrowY, children, originX, originY, padding, placement, radius, rest, scheme, shadow, style, t1, t2;
2271
- $[0] !== t0 ? ({
2254
+ const $ = c(51);
2255
+ let animate, arrow2, arrowRef, arrowX, arrowY, children, originX, originY, padding, placement, radius, rest, scheme, shadow, style, t0;
2256
+ $[0] !== props ? ({
2272
2257
  animate,
2273
2258
  arrow: arrow2,
2274
2259
  arrowRef,
2275
2260
  arrowX,
2276
2261
  arrowY,
2277
- as: t1,
2278
2262
  children,
2279
2263
  originX,
2280
2264
  originY,
@@ -2284,52 +2268,52 @@ function TooltipLayer(props) {
2284
2268
  scheme,
2285
2269
  shadow,
2286
2270
  style,
2287
- tone: t2,
2271
+ tone: t0,
2288
2272
  ...rest
2289
- } = t0, $[0] = t0, $[1] = animate, $[2] = arrow2, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = originX, $[8] = originY, $[9] = padding, $[10] = placement, $[11] = radius, $[12] = rest, $[13] = scheme, $[14] = shadow, $[15] = style, $[16] = t1, $[17] = t2) : (animate = $[1], arrow2 = $[2], arrowRef = $[3], arrowX = $[4], arrowY = $[5], children = $[6], originX = $[7], originY = $[8], padding = $[9], placement = $[10], radius = $[11], rest = $[12], scheme = $[13], shadow = $[14], style = $[15], t1 = $[16], t2 = $[17]);
2290
- const as = t1 === void 0 ? DEFAULT_TOOLTIP_LAYER_ELEMENT : t1, tone = t2 === void 0 ? "inherit" : t2;
2273
+ } = props, $[0] = props, $[1] = animate, $[2] = arrow2, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = originX, $[8] = originY, $[9] = padding, $[10] = placement, $[11] = radius, $[12] = rest, $[13] = scheme, $[14] = shadow, $[15] = style, $[16] = t0) : (animate = $[1], arrow2 = $[2], arrowRef = $[3], arrowX = $[4], arrowY = $[5], children = $[6], originX = $[7], originY = $[8], padding = $[9], placement = $[10], radius = $[11], rest = $[12], scheme = $[13], shadow = $[14], style = $[15], t0 = $[16]);
2274
+ const tone = t0 === void 0 ? "inherit" : t0;
2275
+ let t1;
2276
+ const t2 = animate ? "transform" : void 0;
2291
2277
  let t3;
2292
- const t4 = animate ? "transform" : void 0;
2293
- let t5;
2294
- $[18] !== originX || $[19] !== originY || $[20] !== style || $[21] !== t4 ? (t5 = {
2278
+ $[17] !== originX || $[18] !== originY || $[19] !== style || $[20] !== t2 ? (t3 = {
2295
2279
  originX,
2296
2280
  originY,
2297
- willChange: t4,
2281
+ willChange: t2,
2298
2282
  ...style
2299
- }, $[18] = originX, $[19] = originY, $[20] = style, $[21] = t4, $[22] = t5) : t5 = $[22], t3 = t5;
2300
- const rootStyle = t3;
2301
- let t6;
2302
- const t7 = arrowX !== null ? arrowX : void 0, t8 = arrowY !== null ? arrowY : void 0;
2303
- let t9;
2304
- $[23] !== t7 || $[24] !== t8 ? (t9 = {
2305
- left: t7,
2306
- top: t8,
2283
+ }, $[17] = originX, $[18] = originY, $[19] = style, $[20] = t2, $[21] = t3) : t3 = $[21], t1 = t3;
2284
+ const rootStyle = t1;
2285
+ let t4;
2286
+ const t5 = arrowX !== null ? arrowX : void 0, t6 = arrowY !== null ? arrowY : void 0;
2287
+ let t7;
2288
+ $[22] !== t5 || $[23] !== t6 ? (t7 = {
2289
+ left: t5,
2290
+ top: t6,
2307
2291
  right: void 0,
2308
2292
  bottom: void 0
2309
- }, $[23] = t7, $[24] = t8, $[25] = t9) : t9 = $[25], t6 = t9;
2310
- const arrowStyle = t6;
2293
+ }, $[22] = t5, $[23] = t6, $[24] = t7) : t7 = $[24], t4 = t7;
2294
+ const arrowStyle = t4;
2295
+ let t8;
2296
+ $[25] === Symbol.for("react.memo_cache_sentinel") ? (t8 = tooltipCard(), $[25] = t8) : t8 = $[25];
2297
+ const t9 = animate ? "" : void 0;
2311
2298
  let t10;
2312
- $[26] === Symbol.for("react.memo_cache_sentinel") ? (t10 = tooltipCard(), $[26] = t10) : t10 = $[26];
2313
- const t11 = animate ? "" : void 0;
2299
+ $[26] !== animate ? (t10 = animate ? ["hidden", "initial"] : void 0, $[26] = animate, $[27] = t10) : t10 = $[27];
2300
+ let t11;
2301
+ $[28] !== animate ? (t11 = animate ? ["visible", "scaleIn"] : void 0, $[28] = animate, $[29] = t11) : t11 = $[29];
2314
2302
  let t12;
2315
- $[27] !== animate ? (t12 = animate ? ["hidden", "initial"] : void 0, $[27] = animate, $[28] = t12) : t12 = $[28];
2303
+ $[30] !== animate ? (t12 = animate ? ["hidden", "scaleOut"] : void 0, $[30] = animate, $[31] = t12) : t12 = $[31];
2316
2304
  let t13;
2317
- $[29] !== animate ? (t13 = animate ? ["visible", "scaleIn"] : void 0, $[29] = animate, $[30] = t13) : t13 = $[30];
2305
+ $[32] !== arrow2 || $[33] !== arrowRef || $[34] !== arrowStyle ? (t13 = arrow2 && /* @__PURE__ */ jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_TOOLTIP_ARROW_WIDTH, height: DEFAULT_TOOLTIP_ARROW_HEIGHT, radius: DEFAULT_TOOLTIP_ARROW_RADIUS }), $[32] = arrow2, $[33] = arrowRef, $[34] = arrowStyle, $[35] = t13) : t13 = $[35];
2318
2306
  let t14;
2319
- $[31] !== animate ? (t14 = animate ? ["hidden", "scaleOut"] : void 0, $[31] = animate, $[32] = t14) : t14 = $[32];
2320
- let t15;
2321
- $[33] !== arrow2 || $[34] !== arrowRef || $[35] !== arrowStyle ? (t15 = arrow2 && /* @__PURE__ */ jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_TOOLTIP_ARROW_WIDTH, height: DEFAULT_TOOLTIP_ARROW_HEIGHT, radius: DEFAULT_TOOLTIP_ARROW_RADIUS }), $[33] = arrow2, $[34] = arrowRef, $[35] = arrowStyle, $[36] = t15) : t15 = $[36];
2322
- let t16;
2323
- return $[37] !== as || $[38] !== children || $[39] !== padding || $[40] !== placement || $[41] !== radius || $[42] !== rest || $[43] !== rootStyle || $[44] !== scheme || $[45] !== shadow || $[46] !== t11 || $[47] !== t12 || $[48] !== t13 || $[49] !== t14 || $[50] !== t15 || $[51] !== tone ? (t16 = /* @__PURE__ */ jsxs(MotionLayer, { "data-ui": "Tooltip__card", ...rest, as, className: t10, "data-animate": t11, "data-placement": placement, padding, radius, scheme, shadow, style: rootStyle, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t12, animate: t13, exit: t14, tone, children: [
2307
+ return $[36] !== children || $[37] !== padding || $[38] !== placement || $[39] !== radius || $[40] !== rest || $[41] !== rootStyle || $[42] !== scheme || $[43] !== shadow || $[44] !== t10 || $[45] !== t11 || $[46] !== t12 || $[47] !== t13 || $[48] !== t9 || $[49] !== tone ? (t14 = /* @__PURE__ */ jsxs(Layer, { "data-ui": "Tooltip__card", ...rest, as: motion.div, className: t8, "data-animate": t9, "data-placement": placement, padding, radius, scheme, shadow, style: rootStyle, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t10, animate: t11, exit: t12, tone, children: [
2324
2308
  children,
2325
- t15
2326
- ] }), $[37] = as, $[38] = children, $[39] = padding, $[40] = placement, $[41] = radius, $[42] = rest, $[43] = rootStyle, $[44] = scheme, $[45] = shadow, $[46] = t11, $[47] = t12, $[48] = t13, $[49] = t14, $[50] = t15, $[51] = tone, $[52] = t16) : t16 = $[52], t16;
2309
+ t13
2310
+ ] }), $[36] = children, $[37] = padding, $[38] = placement, $[39] = radius, $[40] = rest, $[41] = rootStyle, $[42] = scheme, $[43] = shadow, $[44] = t10, $[45] = t11, $[46] = t12, $[47] = t13, $[48] = t9, $[49] = tone, $[50] = t14) : t14 = $[50], t14;
2327
2311
  }
2328
2312
  TooltipLayer.displayName = "TooltipLayer";
2329
2313
  const DEFAULT_TOOLTIP_ELEMENT = "div";
2330
2314
  function Tooltip(props) {
2331
2315
  const boundaryElementContext = useBoundaryElement(), {
2332
- animate: _animate = !1,
2316
+ animate: _animate = !0,
2333
2317
  arrow: arrowProp = !1,
2334
2318
  as = DEFAULT_TOOLTIP_ELEMENT,
2335
2319
  boundaryElement = boundaryElementContext?.element,
@@ -2380,7 +2364,8 @@ function Tooltip(props) {
2380
2364
  whileElementsMounted: autoUpdate,
2381
2365
  elements: {
2382
2366
  reference: referenceElement
2383
- }
2367
+ },
2368
+ transform: !1
2384
2369
  }), arrowX = middlewareData.arrow?.x, arrowY = middlewareData.arrow?.y, originX = middlewareData["@sanity/ui/origin"]?.originX, originY = middlewareData["@sanity/ui/origin"]?.originY, tooltipId = useId(), [isOpen, setIsOpen] = useDelayedState(!1), delayGroupContext = useTooltipDelayGroup(), {
2385
2370
  setIsGroupActive,
2386
2371
  setOpenTooltipId
@@ -3019,33 +3004,36 @@ function Tab(props) {
3019
3004
  Tab.displayName = "Tab";
3020
3005
  const DEFAULT_TAB_LIST_ELEMENT = "div";
3021
3006
  function TabList(props) {
3022
- const $ = c(16), t0 = props;
3023
- let childrenProp, rest, t1;
3007
+ const $ = c(21), t0 = props;
3008
+ let childrenProp, rest, t1, t2, t3, t4;
3024
3009
  $[0] !== t0 ? ({
3025
3010
  as: t1,
3026
3011
  children: childrenProp,
3012
+ gap: t2,
3013
+ space: t3,
3014
+ wrap: t4,
3027
3015
  ...rest
3028
- } = t0, $[0] = t0, $[1] = childrenProp, $[2] = rest, $[3] = t1) : (childrenProp = $[1], rest = $[2], t1 = $[3]);
3029
- const as = t1 === void 0 ? DEFAULT_TAB_LIST_ELEMENT : t1, [focusedIndex, setFocusedIndex] = useState(-1);
3030
- let t2;
3031
- if ($[4] !== childrenProp || $[5] !== focusedIndex) {
3016
+ } = t0, $[0] = t0, $[1] = childrenProp, $[2] = rest, $[3] = t1, $[4] = t2, $[5] = t3, $[6] = t4) : (childrenProp = $[1], rest = $[2], t1 = $[3], t2 = $[4], t3 = $[5], t4 = $[6]);
3017
+ const as = t1 === void 0 ? DEFAULT_TAB_LIST_ELEMENT : t1, gap = t2 === void 0 ? 1 : t2, space = t3 === void 0 ? 1 : t3, wrap = t4 === void 0 ? "nowrap" : t4, [focusedIndex, setFocusedIndex] = useState(-1);
3018
+ let t5;
3019
+ if ($[7] !== childrenProp || $[8] !== focusedIndex) {
3032
3020
  const children = Children.toArray(childrenProp).filter(_isReactElement);
3033
- let t32;
3034
- $[7] !== focusedIndex ? (t32 = (child, childIndex) => cloneElement(child, {
3021
+ let t62;
3022
+ $[10] !== focusedIndex ? (t62 = (child, childIndex) => cloneElement(child, {
3035
3023
  focused: focusedIndex === childIndex,
3036
3024
  key: childIndex,
3037
3025
  onFocus: () => setFocusedIndex(childIndex)
3038
- }), $[7] = focusedIndex, $[8] = t32) : t32 = $[8], t2 = children.map(t32), $[4] = childrenProp, $[5] = focusedIndex, $[6] = t2;
3026
+ }), $[10] = focusedIndex, $[11] = t62) : t62 = $[11], t5 = children.map(t62), $[7] = childrenProp, $[8] = focusedIndex, $[9] = t5;
3039
3027
  } else
3040
- t2 = $[6];
3041
- const tabs = t2, numTabs = tabs.length;
3042
- let t3;
3043
- $[9] !== numTabs ? (t3 = (event) => {
3028
+ t5 = $[9];
3029
+ const tabs = t5, numTabs = tabs.length;
3030
+ let t6;
3031
+ $[12] !== numTabs ? (t6 = (event) => {
3044
3032
  event.key === "ArrowLeft" && setFocusedIndex((prevIndex) => (prevIndex + numTabs - 1) % numTabs), event.key === "ArrowRight" && setFocusedIndex((prevIndex_0) => (prevIndex_0 + 1) % numTabs);
3045
- }, $[9] = numTabs, $[10] = t3) : t3 = $[10];
3046
- const handleKeyDown = t3;
3047
- let t4;
3048
- return $[11] !== as || $[12] !== handleKeyDown || $[13] !== rest || $[14] !== tabs ? (t4 = /* @__PURE__ */ jsx(Inline, { "data-ui": "TabList", ...rest, as, onKeyDown: handleKeyDown, role: "tablist", children: tabs }), $[11] = as, $[12] = handleKeyDown, $[13] = rest, $[14] = tabs, $[15] = t4) : t4 = $[15], t4;
3033
+ }, $[12] = numTabs, $[13] = t6) : t6 = $[13];
3034
+ const handleKeyDown = t6, t7 = gap ?? space;
3035
+ let t8;
3036
+ return $[14] !== as || $[15] !== handleKeyDown || $[16] !== rest || $[17] !== t7 || $[18] !== tabs || $[19] !== wrap ? (t8 = /* @__PURE__ */ jsx(Flex, { "data-ui": "TabList", ...rest, as, gap: t7, onKeyDown: handleKeyDown, role: "tablist", wrap, children: tabs }), $[14] = as, $[15] = handleKeyDown, $[16] = rest, $[17] = t7, $[18] = tabs, $[19] = wrap, $[20] = t8) : t8 = $[20], t8;
3049
3037
  }
3050
3038
  TabList.displayName = "TabList";
3051
3039
  function _isReactElement(node) {
@@ -3156,7 +3144,6 @@ export {
3156
3144
  isHTMLSelectElement,
3157
3145
  isHTMLTextAreaElement,
3158
3146
  isRecord,
3159
- studioTheme,
3160
3147
  useArrayProp,
3161
3148
  useBoundaryElement,
3162
3149
  useCard,