@sanity/ui 4.0.0-static.23 → 4.0.0-static.25

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 (300) hide show
  1. package/dist/_chunks-es/{refractor.js → Refractor.js} +1 -1
  2. package/dist/_chunks-es/{refractor.js.map → Refractor.js.map} +1 -1
  3. package/dist/css/index.css +1 -1
  4. package/dist/css/index.css.map +1 -1
  5. package/dist/css/index.d.ts +22 -6
  6. package/dist/css/index.js +29 -20
  7. package/dist/css/index.js.map +1 -1
  8. package/dist/index.d.ts +8 -13
  9. package/dist/index.js +541 -555
  10. package/dist/index.js.map +1 -1
  11. package/exports/css/index.css +1 -0
  12. package/package.json +4 -4
  13. package/src/core/Root.tsx +1 -1
  14. package/src/core/RootProvider.tsx +5 -5
  15. package/src/core/__workshop__/index.ts +1 -1
  16. package/src/core/components/autocomplete/{autocomplete.tsx → Autocomplete.tsx} +9 -9
  17. package/src/core/components/autocomplete/__workshop__/index.ts +6 -6
  18. package/src/core/components/autocomplete/types.ts +1 -1
  19. package/src/core/components/breadcrumbs/{breadcrumbs.tsx → Breadcrumbs.tsx} +6 -6
  20. package/src/core/components/breadcrumbs/__workshop__/index.ts +1 -1
  21. package/src/core/components/dialog/{dialog.tsx → Dialog.tsx} +4 -4
  22. package/src/core/components/dialog/{dialogCard.tsx → DialogCard.tsx} +5 -5
  23. package/src/core/components/dialog/{dialogProvider.tsx → DialogProvider.tsx} +1 -1
  24. package/src/core/components/dialog/__workshop__/{panes.tsx → Panes.tsx} +4 -0
  25. package/src/core/components/dialog/__workshop__/index.ts +10 -10
  26. package/src/core/components/dialog/useDialog.ts +3 -3
  27. package/src/core/components/hotkeys/{hotkeys.tsx → Hotkeys.tsx} +2 -2
  28. package/src/core/components/hotkeys/__workshop__/index.ts +1 -1
  29. package/src/core/components/menu/{menu.test.tsx → Menu.test.tsx} +1 -1
  30. package/src/core/components/menu/{menu.tsx → Menu.tsx} +3 -7
  31. package/src/core/components/menu/{menuButton.tsx → MenuButton.tsx} +3 -3
  32. package/src/core/components/menu/{menuGroup.tsx → MenuGroup.tsx} +6 -6
  33. package/src/core/components/menu/{menuItem.tsx → MenuItem.tsx} +6 -6
  34. package/src/core/components/menu/__workshop__/index.ts +16 -16
  35. package/src/core/components/menu/useMenu.ts +3 -3
  36. package/src/core/components/tab/{tab.tsx → Tab.tsx} +1 -1
  37. package/src/core/components/tab/{tabList.tsx → TabList.tsx} +2 -2
  38. package/src/core/components/tab/{tabPanel.tsx → TabPanel.tsx} +1 -1
  39. package/src/core/components/tab/__workshop__/index.ts +1 -1
  40. package/src/core/components/toast/{toast.test.tsx → Toast.test.tsx} +1 -1
  41. package/src/core/components/toast/{toast.tsx → Toast.tsx} +6 -6
  42. package/src/core/components/toast/{toastLayer.tsx → ToastLayer.tsx} +1 -1
  43. package/src/core/components/toast/{toastProvider.tsx → ToastProvider.tsx} +4 -4
  44. package/src/core/components/toast/__workshop__/index.ts +2 -2
  45. package/src/core/components/toast/useToast.ts +3 -3
  46. package/src/core/components/tree/{tree.tsx → Tree.tsx} +2 -2
  47. package/src/core/components/tree/{treeGroup.tsx → TreeGroup.tsx} +1 -1
  48. package/src/core/components/tree/{treeItem.tsx → TreeItem.tsx} +7 -7
  49. package/src/core/components/tree/__workshop__/index.ts +4 -4
  50. package/src/core/components/tree/useTree.ts +3 -3
  51. package/src/core/components/virtualList/{virtualList.tsx → VirtualList.tsx} +1 -1
  52. package/src/core/components/virtualList/__workshop__/index.ts +4 -4
  53. package/src/core/hooks/useMediaIndex/__workshop__/index.ts +1 -1
  54. package/src/core/index.ts +65 -62
  55. package/src/core/primitives/avatar/{avatar.tsx → Avatar.tsx} +4 -4
  56. package/src/core/primitives/avatar/{avatarCounter.tsx → AvatarCounter.tsx} +2 -2
  57. package/src/core/primitives/avatar/{avatarStack.tsx → AvatarStack.tsx} +3 -3
  58. package/src/core/primitives/avatar/__workshop__/PropsStory.tsx +22 -0
  59. package/src/core/primitives/avatar/__workshop__/index.ts +9 -4
  60. package/src/core/primitives/badge/{badge.test.tsx → Badge.test.tsx} +1 -1
  61. package/src/core/primitives/badge/{badge.tsx → Badge.tsx} +2 -2
  62. package/src/core/primitives/badge/__workshop__/index.ts +2 -2
  63. package/src/core/primitives/box/__workshop__/index.ts +2 -2
  64. package/src/core/primitives/button/{button.test.tsx → Button.test.tsx} +1 -1
  65. package/src/core/primitives/button/{button.tsx → Button.tsx} +8 -8
  66. package/src/core/primitives/button/__workshop__/index.ts +11 -11
  67. package/src/core/primitives/card/{card.tsx → Card.tsx} +5 -5
  68. package/src/core/primitives/card/{cardProvider.tsx → CardProvider.tsx} +1 -1
  69. package/src/core/primitives/card/__workshop__/index.ts +9 -9
  70. package/src/core/primitives/card/useCard.ts +3 -3
  71. package/src/core/primitives/checkbox/__workshop__/index.ts +4 -4
  72. package/src/core/primitives/code/{code.tsx → Code.tsx} +26 -2
  73. package/src/core/primitives/code/__workshop__/index.ts +2 -2
  74. package/src/core/primitives/container/{container.tsx → Container.tsx} +1 -1
  75. package/src/core/primitives/container/__workshop__/index.ts +1 -1
  76. package/src/core/primitives/flex/{flex.tsx → Flex.tsx} +1 -1
  77. package/src/core/primitives/flex/__workshop__/index.ts +2 -2
  78. package/src/core/primitives/grid/{grid.tsx → Grid.tsx} +1 -1
  79. package/src/core/primitives/grid/__workshop__/index.ts +1 -1
  80. package/src/core/primitives/heading/{heading.tsx → Heading.tsx} +16 -0
  81. package/src/core/primitives/heading/__workshop__/index.ts +2 -2
  82. package/src/core/primitives/inline/{inline.tsx → Inline.tsx} +1 -1
  83. package/src/core/primitives/inline/__workshop__/index.ts +1 -1
  84. package/src/core/primitives/kbd/{kbd.tsx → Kbd.tsx} +2 -2
  85. package/src/core/primitives/kbd/__workshop__/index.ts +1 -1
  86. package/src/core/primitives/label/{label.tsx → Label.tsx} +16 -0
  87. package/src/core/primitives/label/__workshop__/index.ts +2 -2
  88. package/src/core/primitives/layer/{layer.test.tsx → Layer.test.tsx} +1 -1
  89. package/src/core/primitives/layer/{layer.tsx → Layer.tsx} +3 -3
  90. package/src/core/primitives/layer/{layerCard.tsx → LayerCard.tsx} +2 -2
  91. package/src/core/primitives/layer/{layerProvider.tsx → LayerProvider.tsx} +3 -3
  92. package/src/core/primitives/layer/__workshop__/index.ts +3 -3
  93. package/src/core/primitives/layer/useLayer.ts +3 -3
  94. package/src/core/primitives/popover/{popover.tsx → Popover.tsx} +4 -4
  95. package/src/core/primitives/popover/{popoverLayer.tsx → PopoverLayer.tsx} +3 -3
  96. package/src/core/primitives/radio/{radio.tsx → Radio.tsx} +2 -2
  97. package/src/core/primitives/radio/__workshop__/index.ts +2 -2
  98. package/src/core/primitives/select/{select.tsx → Select.tsx} +7 -5
  99. package/src/core/primitives/select/__workshop__/index.ts +2 -2
  100. package/src/core/primitives/selectable/{selectable.tsx → Selectable.tsx} +1 -1
  101. package/src/core/primitives/skeleton/{codeSkeleton.tsx → CodeSkeleton.tsx} +1 -1
  102. package/src/core/primitives/skeleton/{headingSkeleton.tsx → HeadingSkeleton.tsx} +1 -1
  103. package/src/core/primitives/skeleton/{labelSkeleton.tsx → LabelSkeleton.tsx} +1 -1
  104. package/src/core/primitives/skeleton/{textSkeleton.tsx → TextSkeleton.tsx} +1 -1
  105. package/src/core/primitives/skeleton/__workshop__/index.ts +2 -2
  106. package/src/core/primitives/spinner/{spinner.tsx → Spinner.tsx} +2 -2
  107. package/src/core/primitives/stack/{stack.tsx → Stack.tsx} +1 -1
  108. package/src/core/primitives/stack/__workshop__/index.ts +1 -1
  109. package/src/core/primitives/switch/{switch.tsx → Switch.tsx} +2 -10
  110. package/src/core/primitives/switch/__workshop__/index.ts +2 -2
  111. package/src/core/primitives/text/{text.tsx → Text.tsx} +14 -0
  112. package/src/core/primitives/text/__workshop__/index.ts +3 -3
  113. package/src/core/primitives/textArea/{textArea.tsx → TextArea.tsx} +7 -1
  114. package/src/core/primitives/textArea/__workshop__/index.ts +1 -1
  115. package/src/core/primitives/textInput/{textInput.tsx → TextInput.tsx} +21 -20
  116. package/src/core/primitives/textInput/__workshop__/index.ts +7 -7
  117. package/src/core/primitives/tooltip/{tooltip.test.tsx → Tooltip.test.tsx} +4 -4
  118. package/src/core/primitives/tooltip/{tooltip.tsx → Tooltip.tsx} +6 -5
  119. package/src/core/primitives/tooltip/{tooltipLayer.tsx → TooltipLayer.tsx} +2 -2
  120. package/src/core/primitives/tooltip/__workshop__/index.ts +4 -4
  121. package/src/core/primitives/tooltip/tooltipDelayGroup/{tooltipDelayGroupProvider.tsx → TooltipDelayGroupProvider.tsx} +1 -1
  122. package/src/core/primitives/tooltip/tooltipDelayGroup/useTooltipDelayGroup.ts +3 -3
  123. package/src/core/types.ts +6 -5
  124. package/src/core/utils/{errorBoundary.tsx → ErrorBoundary.tsx} +1 -1
  125. package/src/core/utils/boundaryElement/{boundaryElement.test.tsx → BoundaryElement.test.tsx} +1 -1
  126. package/src/core/utils/boundaryElement/{boundaryElementProvider.tsx → BoundaryElementProvider.tsx} +1 -1
  127. package/src/core/utils/boundaryElement/__workshop__/index.ts +1 -1
  128. package/src/core/utils/boundaryElement/useBoundaryElement.ts +3 -3
  129. package/src/core/utils/elementQuery/__workshop__/index.ts +1 -1
  130. package/src/core/utils/portal/{portal.test.tsx → Portal.test.tsx} +1 -1
  131. package/src/core/utils/portal/{portal.tsx → Portal.tsx} +1 -1
  132. package/src/core/utils/portal/{portalProvider.tsx → PortalProvider.tsx} +3 -3
  133. package/src/core/utils/portal/__workshop__/index.ts +1 -1
  134. package/src/core/utils/portal/usePortal.ts +3 -3
  135. package/src/css/_responsiveStyle.css.ts +2 -2
  136. package/src/css/primitives/_input/_input.css.ts +2 -3
  137. package/src/css/primitives/_input/input.ts +2 -0
  138. package/src/css/primitives/_input/types.ts +2 -1
  139. package/src/css/primitives/avatar/avatar.css.ts +8 -0
  140. package/src/css/primitives/box/box.css.ts +21 -1
  141. package/src/css/primitives/button/button.css.ts +1 -0
  142. package/src/css/primitives/card/__workshop__/index.ts +1 -1
  143. package/src/css/primitives/card/card.css.ts +0 -60
  144. package/src/css/primitives/checkbox/checkbox.css.ts +1 -0
  145. package/src/css/primitives/code/code.ts +4 -0
  146. package/src/css/primitives/code/types.ts +7 -1
  147. package/src/css/primitives/heading/heading.ts +4 -0
  148. package/src/css/primitives/heading/types.ts +7 -1
  149. package/src/css/primitives/label/label.ts +4 -0
  150. package/src/css/primitives/label/types.ts +7 -1
  151. package/src/css/primitives/radio/radio.css.ts +1 -1
  152. package/src/css/primitives/root/root.css.ts +1 -1
  153. package/src/css/primitives/select/select.css.ts +7 -1
  154. package/src/css/primitives/selectable/selectable.css.ts +5 -31
  155. package/src/css/primitives/switch/switch.css.ts +10 -1
  156. package/src/css/primitives/text/text.ts +2 -0
  157. package/src/css/primitives/text/types.ts +6 -1
  158. package/src/css/primitives/textInput/textInput.css.ts +15 -3
  159. package/src/css/props/width/types.ts +1 -1
  160. package/src/css/props/width/width.css.ts +5 -2
  161. package/src/core/primitives/popover/helpers.ts +0 -32
  162. package/src/core/primitives/tooltip/tooltipDelayGroup/index.ts +0 -4
  163. /package/src/core/__workshop__/{boundary.tsx → Boundary.tsx} +0 -0
  164. /package/src/core/components/autocomplete/{autocompleteOption.tsx → AutocompleteOption.tsx} +0 -0
  165. /package/src/core/components/autocomplete/__workshop__/{async.tsx → Async.tsx} +0 -0
  166. /package/src/core/components/autocomplete/__workshop__/{constrainedHeight.tsx → ConstrainedHeight.tsx} +0 -0
  167. /package/src/core/components/autocomplete/__workshop__/{custom.tsx → Custom.tsx} +0 -0
  168. /package/src/core/components/autocomplete/__workshop__/{example.tsx → Example.tsx} +0 -0
  169. /package/src/core/components/autocomplete/__workshop__/{focusAndBlur.tsx → FocusAndBlur.tsx} +0 -0
  170. /package/src/core/components/autocomplete/__workshop__/{fullscreen.tsx → Fullscreen.tsx} +0 -0
  171. /package/src/core/components/breadcrumbs/__workshop__/{example.tsx → Example.tsx} +0 -0
  172. /package/src/core/components/dialog/{dialogContext.ts → DialogContext.ts} +0 -0
  173. /package/src/core/components/dialog/__workshop__/{activate.tsx → Activate.tsx} +0 -0
  174. /package/src/core/components/dialog/__workshop__/{autoFocus.tsx → AutoFocus.tsx} +0 -0
  175. /package/src/core/components/dialog/__workshop__/{layering.tsx → Layering.tsx} +0 -0
  176. /package/src/core/components/dialog/__workshop__/{nested.tsx → Nested.tsx} +0 -0
  177. /package/src/core/components/dialog/__workshop__/{onScroll.tsx → OnScroll.tsx} +0 -0
  178. /package/src/core/components/dialog/__workshop__/{position.tsx → Position.tsx} +0 -0
  179. /package/src/core/components/dialog/__workshop__/{props.tsx → Props.tsx} +0 -0
  180. /package/src/core/components/dialog/__workshop__/{provider.tsx → Provider.tsx} +0 -0
  181. /package/src/core/components/dialog/__workshop__/{wrapped.tsx → Wrapped.tsx} +0 -0
  182. /package/src/core/components/hotkeys/__workshop__/{plain.tsx → Plain.tsx} +0 -0
  183. /package/src/core/components/menu/{menuContext.ts → MenuContext.ts} +0 -0
  184. /package/src/core/components/menu/{menuDivider.tsx → MenuDivider.tsx} +0 -0
  185. /package/src/core/components/menu/__workshop__/{asComponent.tsx → AsComponent.tsx} +0 -0
  186. /package/src/core/components/menu/__workshop__/{avatarMenu.tsx → AvatarMenu.tsx} +0 -0
  187. /package/src/core/components/menu/__workshop__/{closableMenuButton.tsx → ClosableMenuButton.tsx} +0 -0
  188. /package/src/core/components/menu/__workshop__/{constrainedInBoundary.tsx → ConstrainedInBoundary.tsx} +0 -0
  189. /package/src/core/components/menu/__workshop__/{customMenuItem.tsx → CustomMenuItem.tsx} +0 -0
  190. /package/src/core/components/menu/__workshop__/{customSelectedState.tsx → CustomSelectedState.tsx} +0 -0
  191. /package/src/core/components/menu/__workshop__/{disableFocusOnClose.tsx → DisableFocusOnClose.tsx} +0 -0
  192. /package/src/core/components/menu/__workshop__/{groups.tsx → Groups.tsx} +0 -0
  193. /package/src/core/components/menu/__workshop__/{menuButton.tsx → MenuButton.tsx} +0 -0
  194. /package/src/core/components/menu/__workshop__/{menuGroupRight.tsx → MenuGroupRight.tsx} +0 -0
  195. /package/src/core/components/menu/__workshop__/{nestedMenu.tsx → NestedMenu.tsx} +0 -0
  196. /package/src/core/components/menu/__workshop__/{onCloseMenuButton.tsx → OnCloseMenuButton.tsx} +0 -0
  197. /package/src/core/components/menu/__workshop__/{selectedItem.tsx → SelectedItem.tsx} +0 -0
  198. /package/src/core/components/menu/__workshop__/{shouldFocus.tsx → ShouldFocus.tsx} +0 -0
  199. /package/src/core/components/menu/__workshop__/{tones.tsx → Tones.tsx} +0 -0
  200. /package/src/core/components/menu/__workshop__/{withoutArrow.tsx → WithoutArrow.tsx} +0 -0
  201. /package/src/core/components/tab/__workshop__/{example.tsx → Example.tsx} +0 -0
  202. /package/src/core/components/toast/{toastContext.ts → ToastContext.ts} +0 -0
  203. /package/src/core/components/toast/__workshop__/{hook.tsx → Hook.tsx} +0 -0
  204. /package/src/core/components/toast/__workshop__/{toast.tsx → Toast.tsx} +0 -0
  205. /package/src/core/components/tree/{treeContext.ts → TreeContext.ts} +0 -0
  206. /package/src/core/components/tree/__workshop__/{basic.tsx → Basic.tsx} +0 -0
  207. /package/src/core/components/tree/__workshop__/{tabFromElement.tsx → TabFromElement.tsx} +0 -0
  208. /package/src/core/components/virtualList/__workshop__/{changingProps.tsx → ChangingProps.tsx} +0 -0
  209. /package/src/core/components/virtualList/__workshop__/{elementScroll.tsx → ElementScroll.tsx} +0 -0
  210. /package/src/core/components/virtualList/__workshop__/{infiniteList.tsx → InfiniteList.tsx} +0 -0
  211. /package/src/core/components/virtualList/__workshop__/{windowScrolll.tsx → WindowScrolll.tsx} +0 -0
  212. /package/src/core/hooks/useMediaIndex/__workshop__/{test.tsx → Test.tsx} +0 -0
  213. /package/src/core/primitives/arrow/{arrow.tsx → Arrow.tsx} +0 -0
  214. /package/src/core/primitives/avatar/__workshop__/{asButton.tsx → AsButton.tsx} +0 -0
  215. /package/src/core/primitives/avatar/__workshop__/{stack.tsx → Stack.tsx} +0 -0
  216. /package/src/core/primitives/avatar/__workshop__/{withinButton.tsx → WithinButton.tsx} +0 -0
  217. /package/src/core/primitives/avatar/__workshop__/{withinMenuItem.tsx → WithinMenuItem.tsx} +0 -0
  218. /package/src/core/primitives/badge/__workshop__/{props.tsx → Props.tsx} +0 -0
  219. /package/src/core/primitives/badge/__workshop__/{tones.tsx → Tones.tsx} +0 -0
  220. /package/src/core/primitives/box/{box.tsx → Box.tsx} +0 -0
  221. /package/src/core/primitives/box/__workshop__/{props.tsx → Props.tsx} +0 -0
  222. /package/src/core/primitives/box/__workshop__/{responsive.tsx → Responsive.tsx} +0 -0
  223. /package/src/core/primitives/button/__workshop__/{custom.tsx → Custom.tsx} +0 -0
  224. /package/src/core/primitives/button/__workshop__/{customIcons.tsx → CustomIcons.tsx} +0 -0
  225. /package/src/core/primitives/button/__workshop__/{disabled.tsx → Disabled.tsx} +0 -0
  226. /package/src/core/primitives/button/__workshop__/{mixedChildren.tsx → MixedChildren.tsx} +0 -0
  227. /package/src/core/primitives/button/__workshop__/{props.tsx → Props.tsx} +0 -0
  228. /package/src/core/primitives/button/__workshop__/{sanityUploadButton.tsx → SanityUploadButton.tsx} +0 -0
  229. /package/src/core/primitives/button/__workshop__/{stacked.tsx → Stacked.tsx} +0 -0
  230. /package/src/core/primitives/button/__workshop__/{styled1.tsx → Styled1.tsx} +0 -0
  231. /package/src/core/primitives/button/__workshop__/{styled2.tsx → Styled2.tsx} +0 -0
  232. /package/src/core/primitives/button/__workshop__/{textOverflow.tsx → TextOverflow.tsx} +0 -0
  233. /package/src/core/primitives/button/__workshop__/{uploadButton.tsx → UploadButton.tsx} +0 -0
  234. /package/src/core/primitives/card/{cardContext.ts → CardContext.ts} +0 -0
  235. /package/src/core/primitives/card/__workshop__/{asButton.tsx → AsButton.tsx} +0 -0
  236. /package/src/core/primitives/card/__workshop__/{asComponent.tsx → AsComponent.tsx} +0 -0
  237. /package/src/core/primitives/card/__workshop__/{checkered.tsx → Checkered.tsx} +0 -0
  238. /package/src/core/primitives/card/__workshop__/{interactive.tsx → Interactive.tsx} +0 -0
  239. /package/src/core/primitives/card/__workshop__/{listNavigation.tsx → ListNavigation.tsx} +0 -0
  240. /package/src/core/primitives/card/__workshop__/{props.tsx → Props.tsx} +0 -0
  241. /package/src/core/primitives/card/__workshop__/{selected.tsx → Selected.tsx} +0 -0
  242. /package/src/core/primitives/card/__workshop__/{styled.tsx → Styled.tsx} +0 -0
  243. /package/src/core/primitives/card/__workshop__/{tones.tsx → Tones.tsx} +0 -0
  244. /package/src/core/primitives/checkbox/{checkbox.tsx → Checkbox.tsx} +0 -0
  245. /package/src/core/primitives/checkbox/__workshop__/{example.tsx → Example.tsx} +0 -0
  246. /package/src/core/primitives/checkbox/__workshop__/{props.tsx → Props.tsx} +0 -0
  247. /package/src/core/primitives/checkbox/__workshop__/{readOnly.tsx → ReadOnly.tsx} +0 -0
  248. /package/src/core/primitives/checkbox/__workshop__/{tones.tsx → Tones.tsx} +0 -0
  249. /package/src/core/primitives/code/{refractor.tsx → Refractor.tsx} +0 -0
  250. /package/src/core/primitives/code/__workshop__/{opticalAlignment.tsx → OpticalAlignment.tsx} +0 -0
  251. /package/src/core/primitives/code/__workshop__/{props.tsx → Props.tsx} +0 -0
  252. /package/src/core/primitives/container/__workshop__/{example.tsx → Example.tsx} +0 -0
  253. /package/src/core/primitives/flex/__workshop__/{example.tsx → Example.tsx} +0 -0
  254. /package/src/core/primitives/flex/__workshop__/{gap.tsx → Gap.tsx} +0 -0
  255. /package/src/core/primitives/grid/__workshop__/{responsive.tsx → Responsive.tsx} +0 -0
  256. /package/src/core/primitives/heading/__workshop__/{opticalAlignment.tsx → OpticalAlignment.tsx} +0 -0
  257. /package/src/core/primitives/heading/__workshop__/{plain.tsx → Plain.tsx} +0 -0
  258. /package/src/core/primitives/inline/__workshop__/{plain.tsx → Plain.tsx} +0 -0
  259. /package/src/core/primitives/kbd/__workshop__/{plain.tsx → Plain.tsx} +0 -0
  260. /package/src/core/primitives/label/__workshop__/{opticalAlignment.tsx → OpticalAlignment.tsx} +0 -0
  261. /package/src/core/primitives/label/__workshop__/{plain.tsx → Plain.tsx} +0 -0
  262. /package/src/core/primitives/layer/{layerContext.ts → LayerContext.ts} +0 -0
  263. /package/src/core/primitives/layer/__workshop__/{multipleRoots.tsx → MultipleRoots.tsx} +0 -0
  264. /package/src/core/primitives/layer/__workshop__/{nested.tsx → Nested.tsx} +0 -0
  265. /package/src/core/primitives/layer/__workshop__/{responsiveZOffset.tsx → ResponsiveZOffset.tsx} +0 -0
  266. /package/src/core/primitives/radio/__workshop__/{example.tsx → Example.tsx} +0 -0
  267. /package/src/core/primitives/radio/__workshop__/{plain.tsx → Plain.tsx} +0 -0
  268. /package/src/core/primitives/select/__workshop__/{plain.tsx → Plain.tsx} +0 -0
  269. /package/src/core/primitives/select/__workshop__/{readOnly.tsx → ReadOnly.tsx} +0 -0
  270. /package/src/core/primitives/skeleton/{skeleton.tsx → Skeleton.tsx} +0 -0
  271. /package/src/core/primitives/skeleton/__workshop__/{delay.tsx → Delay.tsx} +0 -0
  272. /package/src/core/primitives/skeleton/__workshop__/{skeleton.tsx → Skeleton.tsx} +0 -0
  273. /package/src/core/primitives/spinner/{animatedSpinnerIcon.tsx → AnimatedSpinnerIcon.tsx} +0 -0
  274. /package/src/core/primitives/srOnly/{srOnly.tsx → SrOnly.tsx} +0 -0
  275. /package/src/core/primitives/stack/__workshop__/{plain.tsx → Plain.tsx} +0 -0
  276. /package/src/core/primitives/switch/__workshop__/{example.tsx → Example.tsx} +0 -0
  277. /package/src/core/primitives/switch/__workshop__/{props.tsx → Props.tsx} +0 -0
  278. /package/src/core/primitives/text/__workshop__/{colored.tsx → Colored.tsx} +0 -0
  279. /package/src/core/primitives/text/__workshop__/{example.tsx → Example.tsx} +0 -0
  280. /package/src/core/primitives/text/__workshop__/{opticalAlignment.tsx → OpticalAlignment.tsx} +0 -0
  281. /package/src/core/primitives/textArea/__workshop__/{plain.tsx → Plain.tsx} +0 -0
  282. /package/src/core/primitives/textInput/__workshop__/{clearButton.tsx → ClearButton.tsx} +0 -0
  283. /package/src/core/primitives/textInput/__workshop__/{customValidity.tsx → CustomValidity.tsx} +0 -0
  284. /package/src/core/primitives/textInput/__workshop__/{plain.tsx → Plain.tsx} +0 -0
  285. /package/src/core/primitives/textInput/__workshop__/{readOnly.tsx → ReadOnly.tsx} +0 -0
  286. /package/src/core/primitives/textInput/__workshop__/{states.tsx → States.tsx} +0 -0
  287. /package/src/core/primitives/textInput/__workshop__/{tones.tsx → Tones.tsx} +0 -0
  288. /package/src/core/primitives/textInput/__workshop__/{typed.tsx → Typed.tsx} +0 -0
  289. /package/src/core/primitives/tooltip/__workshop__/{customPortal.tsx → CustomPortal.tsx} +0 -0
  290. /package/src/core/primitives/tooltip/__workshop__/{overflowingBoundary.tsx → OverflowingBoundary.tsx} +0 -0
  291. /package/src/core/primitives/tooltip/__workshop__/{props.tsx → Props.tsx} +0 -0
  292. /package/src/core/primitives/tooltip/__workshop__/{resizableBoundary.tsx → ResizableBoundary.tsx} +0 -0
  293. /package/src/core/primitives/tooltip/tooltipDelayGroup/{tooltipDelayGroupContext.tsx → TooltipDelayGroupContext.tsx} +0 -0
  294. /package/src/core/utils/boundaryElement/{boundaryElementContext.ts → BoundaryElementContext.ts} +0 -0
  295. /package/src/core/utils/boundaryElement/__workshop__/{plain.tsx → Plain.tsx} +0 -0
  296. /package/src/core/utils/elementQuery/{elementQuery.tsx → ElementQuery.tsx} +0 -0
  297. /package/src/core/utils/elementQuery/__workshop__/{customMedia.tsx → CustomMedia.tsx} +0 -0
  298. /package/src/core/utils/portal/{portalContext.ts → PortalContext.ts} +0 -0
  299. /package/src/core/utils/portal/__workshop__/{named.tsx → Named.tsx} +0 -0
  300. /package/src/css/primitives/card/__workshop__/{color.tsx → Color.tsx} +0 -0
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { SpinnerIcon, CloseIcon, ChevronDownIcon, ChevronRightIcon, ToggleArrowRightIcon, CheckmarkIcon, RemoveIcon } from "@sanity/icons";
3
- import { useState, isValidElement, useDebugValue, useSyncExternalStore, createContext, useContext, useRef, useImperativeHandle, useEffect, useMemo, useCallback, cloneElement, useReducer, Children, Fragment as Fragment$1, startTransition, useId, lazy, Suspense, useLayoutEffect, Component } from "react";
3
+ import { useState, isValidElement, useDebugValue, useSyncExternalStore, createContext, use, useRef, useImperativeHandle, useEffect, useMemo, useCallback, cloneElement, useReducer, Children, Fragment as Fragment$1, startTransition, useId, lazy, Suspense, useLayoutEffect, Component } from "react";
4
4
  import { c } from "react/compiler-runtime";
5
5
  import { box, text, textOverflow, animatedSpinnerIcon, spinner, button, buttonLoadingBox, _arrow, vars, _arrowSvg, _arrowStrokeMask, _arrowStroke, _arrowShape, card, BREAKPOINTS, popoverCard, popover, _selectable, stack, textInput, textInputPrefix, textInputElement, _inputElement, _inputPresentation, textInputSuffix, breadcrumbs, container as container$1, dialogCard, dialogHeader, dialogContent, dialogScrollerShadowTop, dialogScroller, dialogScrollerShadowBottom, dialogFooter, dialog, dialogContainer, kbd, menu, menuDivider, toast, toastLayer, treeItem, label, avatar, avatarArrow, avatarInitials, avatarImage, avatarImageOutline, avatarCounter, avatarStack, badge, checkbox, checkboxInput, checkboxPresentation, code, heading, radio, radioInput, radioPresentation, select, selectPresentation, skeleton, codeSkeleton, headingSkeleton, labelSkeleton, textSkeleton, srOnly, _switch, _switchElement, _switchPresentation, _switchTrack, _switchThumb, textArea, tooltip, root } from "@sanity/ui/css";
6
6
  import { isValidElementType } from "react-is";
@@ -272,40 +272,54 @@ function Box(props) {
272
272
  }
273
273
  const DEFAULT_TEXT_ELEMENT = "div";
274
274
  function Text(props) {
275
- const $ = c(30), t0 = props;
276
- let align, children, className, flex, muted, rest, t1, t2, t3, t4, textOverflowProp;
275
+ const $ = c(44), t0 = props;
276
+ let align, children, className, flex, margin, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, muted, rest, t1, t2, t3, t4, textOverflowProp;
277
277
  $[0] !== t0 ? ({
278
278
  align,
279
279
  as: t1,
280
280
  children,
281
281
  className,
282
282
  flex,
283
+ margin,
284
+ marginX,
285
+ marginY,
286
+ marginTop,
287
+ marginRight,
288
+ marginBottom,
289
+ marginLeft,
283
290
  maxWidth: t2,
284
291
  muted,
285
292
  size: t3,
286
293
  textOverflow: textOverflowProp,
287
294
  weight: t4,
288
295
  ...rest
289
- } = t0, $[0] = t0, $[1] = align, $[2] = children, $[3] = className, $[4] = flex, $[5] = muted, $[6] = rest, $[7] = t1, $[8] = t2, $[9] = t3, $[10] = t4, $[11] = textOverflowProp) : (align = $[1], children = $[2], className = $[3], flex = $[4], muted = $[5], rest = $[6], t1 = $[7], t2 = $[8], t3 = $[9], t4 = $[10], textOverflowProp = $[11]);
296
+ } = t0, $[0] = t0, $[1] = align, $[2] = children, $[3] = className, $[4] = flex, $[5] = margin, $[6] = marginBottom, $[7] = marginLeft, $[8] = marginRight, $[9] = marginTop, $[10] = marginX, $[11] = marginY, $[12] = muted, $[13] = rest, $[14] = t1, $[15] = t2, $[16] = t3, $[17] = t4, $[18] = textOverflowProp) : (align = $[1], children = $[2], className = $[3], flex = $[4], margin = $[5], marginBottom = $[6], marginLeft = $[7], marginRight = $[8], marginTop = $[9], marginX = $[10], marginY = $[11], muted = $[12], rest = $[13], t1 = $[14], t2 = $[15], t3 = $[16], t4 = $[17], textOverflowProp = $[18]);
290
297
  const Element2 = t1 === void 0 ? DEFAULT_TEXT_ELEMENT : t1, maxWidth = t2 === void 0 ? "fill" : t2, size2 = t3 === void 0 ? 2 : t3, weight = t4 === void 0 ? "regular" : t4;
291
298
  let t5;
292
- $[12] !== align || $[13] !== className || $[14] !== flex || $[15] !== maxWidth || $[16] !== muted || $[17] !== size2 || $[18] !== weight ? (t5 = text({
299
+ $[19] !== align || $[20] !== className || $[21] !== flex || $[22] !== margin || $[23] !== marginBottom || $[24] !== marginLeft || $[25] !== marginRight || $[26] !== marginTop || $[27] !== marginX || $[28] !== marginY || $[29] !== maxWidth || $[30] !== muted || $[31] !== size2 || $[32] !== weight ? (t5 = text({
293
300
  className,
294
301
  align,
295
302
  flex,
303
+ margin,
304
+ marginX,
305
+ marginY,
306
+ marginTop,
307
+ marginRight,
308
+ marginBottom,
309
+ marginLeft,
296
310
  maxWidth,
297
311
  muted,
298
312
  size: size2,
299
313
  weight
300
- }), $[12] = align, $[13] = className, $[14] = flex, $[15] = maxWidth, $[16] = muted, $[17] = size2, $[18] = weight, $[19] = t5) : t5 = $[19];
314
+ }), $[19] = align, $[20] = className, $[21] = flex, $[22] = margin, $[23] = marginBottom, $[24] = marginLeft, $[25] = marginRight, $[26] = marginTop, $[27] = marginX, $[28] = marginY, $[29] = maxWidth, $[30] = muted, $[31] = size2, $[32] = weight, $[33] = t5) : t5 = $[33];
301
315
  let t6;
302
- $[20] !== textOverflowProp ? (t6 = textOverflow({
316
+ $[34] !== textOverflowProp ? (t6 = textOverflow({
303
317
  textOverflow: textOverflowProp
304
- }), $[20] = textOverflowProp, $[21] = t6) : t6 = $[21];
318
+ }), $[34] = textOverflowProp, $[35] = t6) : t6 = $[35];
305
319
  let t7;
306
- $[22] !== children || $[23] !== t6 ? (t7 = /* @__PURE__ */ jsx("span", { className: t6, children }), $[22] = children, $[23] = t6, $[24] = t7) : t7 = $[24];
320
+ $[36] !== children || $[37] !== t6 ? (t7 = /* @__PURE__ */ jsx("span", { className: t6, children }), $[36] = children, $[37] = t6, $[38] = t7) : t7 = $[38];
307
321
  let t8;
308
- return $[25] !== Element2 || $[26] !== rest || $[27] !== t5 || $[28] !== t7 ? (t8 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Text", ...rest, className: t5, children: t7 }), $[25] = Element2, $[26] = rest, $[27] = t5, $[28] = t7, $[29] = t8) : t8 = $[29], t8;
322
+ return $[39] !== Element2 || $[40] !== rest || $[41] !== t5 || $[42] !== t7 ? (t8 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Text", ...rest, className: t5, children: t7 }), $[39] = Element2, $[40] = rest, $[41] = t5, $[42] = t7, $[43] = t8) : t8 = $[43], t8;
309
323
  }
310
324
  function AnimatedSpinnerIcon(props) {
311
325
  const $ = c(5);
@@ -355,6 +369,7 @@ function Button(props) {
355
369
  justify = "center",
356
370
  loading,
357
371
  mode = "default",
372
+ muted = !1,
358
373
  padding = 3,
359
374
  paddingX,
360
375
  paddingY,
@@ -370,7 +385,6 @@ function Button(props) {
370
385
  textWeight = "medium",
371
386
  tone = "default",
372
387
  type = "button",
373
- muted = !1,
374
388
  width,
375
389
  ...rest
376
390
  } = props;
@@ -479,7 +493,7 @@ const BoundaryElementContext = createGlobalScopedContext("@sanity/ui/v3/boundary
479
493
  element: null
480
494
  };
481
495
  function useBoundaryElement() {
482
- const value = useContext(BoundaryElementContext);
496
+ const value = use(BoundaryElementContext);
483
497
  if (value && (!isRecord(value) || value.version !== 0))
484
498
  throw new Error("useBoundaryElement(): the context value is not compatible");
485
499
  return value || DEFAULT_VALUE;
@@ -496,17 +510,18 @@ function CardProvider(props) {
496
510
  scheme,
497
511
  unstable_CompatProvider
498
512
  } = props;
499
- let t0, t1;
500
- $[0] !== scheme || $[1] !== tone || $[2] !== unstable_CompatProvider ? (t1 = {
513
+ let t0;
514
+ $[0] !== scheme || $[1] !== tone || $[2] !== unstable_CompatProvider ? (t0 = {
501
515
  tone,
502
516
  scheme,
503
517
  unstable_CompatProvider
504
- }, $[0] = scheme, $[1] = tone, $[2] = unstable_CompatProvider, $[3] = t1) : t1 = $[3], t0 = t1;
518
+ }, $[0] = scheme, $[1] = tone, $[2] = unstable_CompatProvider, $[3] = t0) : t0 = $[3];
519
+ const t1 = t0;
505
520
  let t2;
506
- return $[4] !== children || $[5] !== t0 ? (t2 = /* @__PURE__ */ jsx(CardContext.Provider, { value: t0, children }), $[4] = children, $[5] = t0, $[6] = t2) : t2 = $[6], t2;
521
+ return $[4] !== children || $[5] !== t1 ? (t2 = /* @__PURE__ */ jsx(CardContext.Provider, { value: t1, children }), $[4] = children, $[5] = t1, $[6] = t2) : t2 = $[6], t2;
507
522
  }
508
523
  function useCard() {
509
- const card2 = useContext(CardContext);
524
+ const card2 = use(CardContext);
510
525
  if (!card2)
511
526
  throw new Error("useCard(): missing context value");
512
527
  return card2;
@@ -521,7 +536,7 @@ const defaultContextValue = {
521
536
  }
522
537
  }, PortalContext = createGlobalScopedContext(key, defaultContextValue);
523
538
  function usePortal() {
524
- const value = useContext(PortalContext);
539
+ const value = use(PortalContext);
525
540
  if (!value)
526
541
  throw new Error("usePortal(): missing context value");
527
542
  if (!isRecord(value) || value.version !== 0)
@@ -551,14 +566,12 @@ function getLayerContext(contextValue) {
551
566
  }
552
567
  const LayerContext = createGlobalScopedContext("@sanity/ui/v3/layer", null);
553
568
  function useLayer() {
554
- const $ = c(2), value = useContext(LayerContext);
569
+ const value = use(LayerContext);
555
570
  if (!value)
556
571
  throw new Error("useLayer(): missing context value");
557
572
  try {
558
- let t1;
559
- return $[0] !== value ? (t1 = getLayerContext(value), $[0] = value, $[1] = t1) : t1 = $[1], t1;
560
- } catch (t0) {
561
- const err = t0;
573
+ return getLayerContext(value);
574
+ } catch (err) {
562
575
  throw err instanceof Error ? new Error(`useLayer(): ${err.message}`) : new Error(`useLayer(): ${err}`);
563
576
  }
564
577
  }
@@ -665,9 +678,7 @@ function Arrow(props) {
665
678
  style,
666
679
  ...rest
667
680
  } = t0, $[0] = t0, $[1] = h, $[2] = rest, $[3] = style, $[4] = t1, $[5] = t2, $[6] = w) : (h = $[1], rest = $[2], style = $[3], t1 = $[4], t2 = $[5], w = $[6]);
668
- const Element2 = t1 === void 0 ? DEFAULT_ARROW_ELEMENT : t1, radius = t2 === void 0 ? 0 : t2, center = w / 2;
669
- let t3;
670
- const points = [{
681
+ const Element2 = t1 === void 0 ? DEFAULT_ARROW_ELEMENT : t1, radius = t2 === void 0 ? 0 : t2, center = w / 2, points = [{
671
682
  x: 0,
672
683
  y: 0
673
684
  }, {
@@ -685,44 +696,42 @@ function Arrow(props) {
685
696
  }, {
686
697
  x: w,
687
698
  y: 0
688
- }], cmds = getRoundedCommands(points);
689
- t3 = compileCommands(cmds);
690
- const path = t3, strokePath = `${path}`, fillPath = `${path} M ${w} -1 M 0 -1 Z`;
691
- let t4;
692
- $[7] === Symbol.for("react.memo_cache_sentinel") ? (t4 = _arrow(), $[7] = t4) : t4 = $[7];
693
- const t5 = `${w}px`;
699
+ }], cmds = getRoundedCommands(points), path = compileCommands(cmds), strokePath = `${path}`, fillPath = `${path} M ${w} -1 M 0 -1 Z`;
700
+ let t3;
701
+ $[7] === Symbol.for("react.memo_cache_sentinel") ? (t3 = _arrow(), $[7] = t3) : t3 = $[7];
702
+ const t4 = `${w}px`;
703
+ let t5;
704
+ $[8] !== t4 ? (t5 = assignInlineVars({
705
+ [vars.arrow.size]: t4
706
+ }), $[8] = t4, $[9] = t5) : t5 = $[9];
694
707
  let t6;
695
- $[8] !== t5 ? (t6 = assignInlineVars({
696
- [vars.arrow.size]: t5
697
- }), $[8] = t5, $[9] = t6) : t6 = $[9];
698
- let t7;
699
- $[10] !== style || $[11] !== t6 ? (t7 = {
708
+ $[10] !== style || $[11] !== t5 ? (t6 = {
700
709
  ...style,
701
- ...t6
702
- }, $[10] = style, $[11] = t6, $[12] = t7) : t7 = $[12];
703
- let t8;
704
- $[13] === Symbol.for("react.memo_cache_sentinel") ? (t8 = _arrowSvg(), $[13] = t8) : t8 = $[13];
705
- const t9 = `0 0 ${w} ${w}`;
710
+ ...t5
711
+ }, $[10] = style, $[11] = t5, $[12] = t6) : t6 = $[12];
712
+ let t7;
713
+ $[13] === Symbol.for("react.memo_cache_sentinel") ? (t7 = _arrowSvg(), $[13] = t7) : t7 = $[13];
714
+ const t8 = `0 0 ${w} ${w}`;
715
+ let t9;
716
+ $[14] === Symbol.for("react.memo_cache_sentinel") ? (t9 = _arrowStrokeMask(), $[14] = t9) : t9 = $[14];
706
717
  let t10;
707
- $[14] === Symbol.for("react.memo_cache_sentinel") ? (t10 = _arrowStrokeMask(), $[14] = t10) : t10 = $[14];
718
+ $[15] !== w ? (t10 = /* @__PURE__ */ jsx("mask", { id: "stroke-mask", children: /* @__PURE__ */ jsx("rect", { className: t9, x: 0, width: w, height: w, fill: "white" }) }), $[15] = w, $[16] = t10) : t10 = $[16];
708
719
  let t11;
709
- $[15] !== w ? (t11 = /* @__PURE__ */ jsx("mask", { id: "stroke-mask", children: /* @__PURE__ */ jsx("rect", { className: t10, x: 0, width: w, height: w, fill: "white" }) }), $[15] = w, $[16] = t11) : t11 = $[16];
720
+ $[17] === Symbol.for("react.memo_cache_sentinel") ? (t11 = _arrowStroke(), $[17] = t11) : t11 = $[17];
710
721
  let t12;
711
- $[17] === Symbol.for("react.memo_cache_sentinel") ? (t12 = _arrowStroke(), $[17] = t12) : t12 = $[17];
722
+ $[18] !== strokePath ? (t12 = /* @__PURE__ */ jsx("path", { className: t11, d: strokePath, mask: "url(#stroke-mask)" }), $[18] = strokePath, $[19] = t12) : t12 = $[19];
712
723
  let t13;
713
- $[18] !== strokePath ? (t13 = /* @__PURE__ */ jsx("path", { className: t12, d: strokePath, mask: "url(#stroke-mask)" }), $[18] = strokePath, $[19] = t13) : t13 = $[19];
724
+ $[20] === Symbol.for("react.memo_cache_sentinel") ? (t13 = _arrowShape(), $[20] = t13) : t13 = $[20];
714
725
  let t14;
715
- $[20] === Symbol.for("react.memo_cache_sentinel") ? (t14 = _arrowShape(), $[20] = t14) : t14 = $[20];
726
+ $[21] !== fillPath ? (t14 = /* @__PURE__ */ jsx("path", { className: t13, d: fillPath }), $[21] = fillPath, $[22] = t14) : t14 = $[22];
716
727
  let t15;
717
- $[21] !== fillPath ? (t15 = /* @__PURE__ */ jsx("path", { className: t14, d: fillPath }), $[21] = fillPath, $[22] = t15) : t15 = $[22];
728
+ $[23] !== t10 || $[24] !== t12 || $[25] !== t14 || $[26] !== t8 || $[27] !== w ? (t15 = /* @__PURE__ */ jsxs("svg", { className: t7, width: w, height: w, viewBox: t8, children: [
729
+ t10,
730
+ t12,
731
+ t14
732
+ ] }), $[23] = t10, $[24] = t12, $[25] = t14, $[26] = t8, $[27] = w, $[28] = t15) : t15 = $[28];
718
733
  let t16;
719
- $[23] !== t11 || $[24] !== t13 || $[25] !== t15 || $[26] !== t9 || $[27] !== w ? (t16 = /* @__PURE__ */ jsxs("svg", { className: t8, width: w, height: w, viewBox: t9, children: [
720
- t11,
721
- t13,
722
- t15
723
- ] }), $[23] = t11, $[24] = t13, $[25] = t15, $[26] = t9, $[27] = w, $[28] = t16) : t16 = $[28];
724
- let t17;
725
- return $[29] !== Element2 || $[30] !== rest || $[31] !== t16 || $[32] !== t7 ? (t17 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t4, style: t7, children: t16 }), $[29] = Element2, $[30] = rest, $[31] = t16, $[32] = t7, $[33] = t17) : t17 = $[33], t17;
734
+ return $[29] !== Element2 || $[30] !== rest || $[31] !== t15 || $[32] !== t6 ? (t16 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t3, style: t6, children: t15 }), $[29] = Element2, $[30] = rest, $[31] = t15, $[32] = t6, $[33] = t16) : t16 = $[33], t16;
726
735
  }
727
736
  const DEFAULT_FLEX_ELEMENT = "div";
728
737
  function Flex(props) {
@@ -757,7 +766,7 @@ function Card(props) {
757
766
  tone: t5,
758
767
  ...rest
759
768
  } = t0, $[0] = t0, $[1] = className, $[2] = pressed, $[3] = rest, $[4] = schemeProp, $[5] = selected, $[6] = style, $[7] = t1, $[8] = t2, $[9] = t3, $[10] = t4, $[11] = t5) : (className = $[1], pressed = $[2], rest = $[3], schemeProp = $[4], selected = $[5], style = $[6], t1 = $[7], t2 = $[8], t3 = $[9], t4 = $[10], t5 = $[11]);
760
- 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 = useContext(CardContext), tone = toneProp === "inherit" ? parent?.tone : toneProp, scheme = schemeProp === void 0 ? parent?.scheme : schemeProp, t6 = scheme === parent?.scheme ? void 0 : scheme;
769
+ 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 = use(CardContext), tone = toneProp === "inherit" ? parent?.tone : toneProp, scheme = schemeProp === void 0 ? parent?.scheme : schemeProp, t6 = scheme === parent?.scheme ? void 0 : scheme;
761
770
  let t7;
762
771
  $[12] !== className || $[13] !== t6 || $[14] !== tone ? (t7 = card({
763
772
  className,
@@ -873,8 +882,8 @@ function getServerSnapshot() {
873
882
  }
874
883
  function useMediaIndex() {
875
884
  const $ = c(1);
876
- let t0, t1;
877
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = _createMediaStore(), $[0] = t1) : t1 = $[0], t0 = t1;
885
+ let t0;
886
+ $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = _createMediaStore(), $[0] = t0) : t0 = $[0];
878
887
  const store = t0;
879
888
  return useSyncExternalStore(store.subscribe, store.getSnapshot, getServerSnapshot);
880
889
  }
@@ -882,7 +891,7 @@ function LayerProvider(props) {
882
891
  const $ = c(19), {
883
892
  children,
884
893
  zOffset: t0
885
- } = props, zOffsetProp = t0 === void 0 ? 0 : t0, parentContextValue = useContext(LayerContext);
894
+ } = props, zOffsetProp = t0 === void 0 ? 0 : t0, parentContextValue = use(LayerContext);
886
895
  let t1;
887
896
  $[0] !== parentContextValue ? (t1 = parentContextValue && getLayerContext(parentContextValue), $[0] = parentContextValue, $[1] = t1) : t1 = $[1];
888
897
  const parent = t1, parentRegisterChild = parent?.registerChild, level = (parent?.level ?? 0) + 1, zOffset = useResponsiveProp(zOffsetProp), maxMediaIndex = Object.values(zOffset).length - 1, mediaIndex = Math.min(useMediaIndex(), maxMediaIndex), zIndex = parent ? parent.zIndex + (zOffset[mediaIndex] ?? 0) : zOffset[mediaIndex] ?? 0;
@@ -910,18 +919,18 @@ function LayerProvider(props) {
910
919
  const registerChild = t3;
911
920
  let t4, t5;
912
921
  $[6] !== level || $[7] !== parentRegisterChild ? (t4 = () => parentRegisterChild?.(level), t5 = [level, parentRegisterChild], $[6] = level, $[7] = parentRegisterChild, $[8] = t4, $[9] = t5) : (t4 = $[8], t5 = $[9]), useEffect(t4, t5);
913
- let t6, t7;
914
- $[10] !== isTopLayer || $[11] !== level || $[12] !== registerChild || $[13] !== size2 || $[14] !== zIndex ? (t7 = {
922
+ let t6;
923
+ $[10] !== isTopLayer || $[11] !== level || $[12] !== registerChild || $[13] !== size2 || $[14] !== zIndex ? (t6 = {
915
924
  version: 0,
916
925
  isTopLayer,
917
926
  level,
918
927
  registerChild,
919
928
  size: size2,
920
929
  zIndex
921
- }, $[10] = isTopLayer, $[11] = level, $[12] = registerChild, $[13] = size2, $[14] = zIndex, $[15] = t7) : t7 = $[15], t6 = t7;
930
+ }, $[10] = isTopLayer, $[11] = level, $[12] = registerChild, $[13] = size2, $[14] = zIndex, $[15] = t6) : t6 = $[15];
922
931
  const value = t6;
923
- let t8;
924
- return $[16] !== children || $[17] !== value ? (t8 = /* @__PURE__ */ jsx(LayerContext.Provider, { value, children }), $[16] = children, $[17] = value, $[18] = t8) : t8 = $[18], t8;
932
+ let t7;
933
+ return $[16] !== children || $[17] !== value ? (t7 = /* @__PURE__ */ jsx(LayerContext.Provider, { value, children }), $[16] = children, $[17] = value, $[18] = t7) : t7 = $[18], t7;
925
934
  }
926
935
  function _temp2$2(v_0) {
927
936
  return v_0 - 1;
@@ -972,52 +981,45 @@ function PopoverLayer(props) {
972
981
  y: yProp,
973
982
  ...rest
974
983
  } = 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]);
975
- const tone = t0 === void 0 ? "inherit" : t0;
976
- let t1;
977
- t1 = marginsProp || DEFAULT_POPOVER_MARGINS;
978
- const margins = t1, x = (xProp ?? 0) + margins[3], y = (yProp ?? 0) + margins[0];
984
+ const tone = t0 === void 0 ? "inherit" : t0, margins = marginsProp || DEFAULT_POPOVER_MARGINS, x = (xProp ?? 0) + margins[3], y = (yProp ?? 0) + margins[0], t1 = animate ? "transform" : void 0;
979
985
  let t2;
980
- const t3 = animate ? "transform" : void 0;
981
- let t4;
982
- $[23] !== originX || $[24] !== originY || $[25] !== referenceWidth || $[26] !== style || $[27] !== t3 || $[28] !== x || $[29] !== y ? (t4 = {
986
+ $[23] !== originX || $[24] !== originY || $[25] !== referenceWidth || $[26] !== style || $[27] !== t1 || $[28] !== x || $[29] !== y ? (t2 = {
983
987
  left: x,
984
988
  originX,
985
989
  originY,
986
990
  top: y,
987
991
  width: referenceWidth,
988
- willChange: t3,
992
+ willChange: t1,
989
993
  ...style
990
- }, $[23] = originX, $[24] = originY, $[25] = referenceWidth, $[26] = style, $[27] = t3, $[28] = x, $[29] = y, $[30] = t4) : t4 = $[30], t2 = t4;
991
- const rootStyle = t2;
994
+ }, $[23] = originX, $[24] = originY, $[25] = referenceWidth, $[26] = style, $[27] = t1, $[28] = x, $[29] = y, $[30] = t2) : t2 = $[30];
995
+ const rootStyle = t2, t3 = arrowX !== null ? arrowX : void 0, t4 = arrowY !== null ? arrowY : void 0;
992
996
  let t5;
993
- const t6 = arrowX !== null ? arrowX : void 0, t7 = arrowY !== null ? arrowY : void 0;
994
- let t8;
995
- $[31] !== t6 || $[32] !== t7 ? (t8 = {
996
- left: t6,
997
- top: t7,
997
+ $[31] !== t3 || $[32] !== t4 ? (t5 = {
998
+ left: t3,
999
+ top: t4,
998
1000
  right: void 0,
999
1001
  bottom: void 0
1000
- }, $[31] = t6, $[32] = t7, $[33] = t8) : t8 = $[33], t5 = t8;
1002
+ }, $[31] = t3, $[32] = t4, $[33] = t5) : t5 = $[33];
1001
1003
  const arrowStyle = t5;
1004
+ let t6;
1005
+ $[34] === Symbol.for("react.memo_cache_sentinel") ? (t6 = popoverCard(), $[34] = t6) : t6 = $[34];
1006
+ let t7;
1007
+ $[35] !== animate ? (t7 = animate ? ["hidden", "initial"] : void 0, $[35] = animate, $[36] = t7) : t7 = $[36];
1008
+ let t8;
1009
+ $[37] !== animate ? (t8 = animate ? ["visible", "scaleIn"] : void 0, $[37] = animate, $[38] = t8) : t8 = $[38];
1002
1010
  let t9;
1003
- $[34] === Symbol.for("react.memo_cache_sentinel") ? (t9 = popoverCard(), $[34] = t9) : t9 = $[34];
1011
+ $[39] !== animate ? (t9 = animate ? ["hidden", "scaleOut"] : void 0, $[39] = animate, $[40] = t9) : t9 = $[40];
1004
1012
  let t10;
1005
- $[35] !== animate ? (t10 = animate ? ["hidden", "initial"] : void 0, $[35] = animate, $[36] = t10) : t10 = $[36];
1013
+ $[41] !== children || $[42] !== padding ? (t10 = /* @__PURE__ */ jsx(Flex, { direction: "column", flex: 1, padding, children }), $[41] = children, $[42] = padding, $[43] = t10) : t10 = $[43];
1006
1014
  let t11;
1007
- $[37] !== animate ? (t11 = animate ? ["visible", "scaleIn"] : void 0, $[37] = animate, $[38] = t11) : t11 = $[38];
1015
+ $[44] !== maxWidth || $[45] !== overflow || $[46] !== t10 ? (t11 = /* @__PURE__ */ jsx(Flex, { "data-ui": "Popover__wrapper", direction: "column", flex: 1, maxWidth, overflow, children: t10 }), $[44] = maxWidth, $[45] = overflow, $[46] = t10, $[47] = t11) : t11 = $[47];
1008
1016
  let t12;
1009
- $[39] !== animate ? (t12 = animate ? ["hidden", "scaleOut"] : void 0, $[39] = animate, $[40] = t12) : t12 = $[40];
1017
+ $[48] !== arrow2 || $[49] !== arrowRef || $[50] !== arrowStyle ? (t12 = 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] = t12) : t12 = $[51];
1010
1018
  let t13;
1011
- $[41] !== children || $[42] !== padding ? (t13 = /* @__PURE__ */ jsx(Flex, { direction: "column", flex: 1, padding, children }), $[41] = children, $[42] = padding, $[43] = t13) : t13 = $[43];
1012
- let t14;
1013
- $[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];
1014
- let t15;
1015
- $[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];
1016
- let t16;
1017
- 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, flexDirection: "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: [
1018
- t14,
1019
- t15
1020
- ] }), $[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;
1019
+ return $[52] !== placement || $[53] !== radius || $[54] !== rest || $[55] !== rootStyle || $[56] !== shadow || $[57] !== strategy || $[58] !== t11 || $[59] !== t12 || $[60] !== t7 || $[61] !== t8 || $[62] !== t9 || $[63] !== tone ? (t13 = /* @__PURE__ */ jsxs(Layer, { className: t6, "data-ui": "Popover", ...rest, as: motion.div, "data-context-tone": tone, "data-placement": placement, flexDirection: "column", display: "flex", position: strategy, radius, shadow, sizing: "border", style: rootStyle, tone, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t7, animate: t8, exit: t9, children: [
1020
+ t11,
1021
+ t12
1022
+ ] }), $[52] = placement, $[53] = radius, $[54] = rest, $[55] = rootStyle, $[56] = shadow, $[57] = strategy, $[58] = t11, $[59] = t12, $[60] = t7, $[61] = t8, $[62] = t9, $[63] = tone, $[64] = t13) : t13 = $[64], t13;
1021
1023
  }
1022
1024
  const DEFAULT_POPOVER_ELEMENT = "div";
1023
1025
  function ViewportOverlay() {
@@ -1187,18 +1189,16 @@ function Stack(props) {
1187
1189
  return $[7] !== as || $[8] !== gap || $[9] !== rest || $[10] !== t2 ? (t3 = /* @__PURE__ */ jsx(Box, { "data-ui": "Stack", ...rest, as, gridAutoRows: "min", className: t2, display: "grid", gap }), $[7] = as, $[8] = gap, $[9] = rest, $[10] = t2, $[11] = t3) : t3 = $[11], t3;
1188
1190
  }
1189
1191
  function useCustomValidity(ref, customValidity) {
1190
- const $ = c(6);
1191
- let t0;
1192
- $[0] !== customValidity || $[1] !== ref.current ? (t0 = () => {
1192
+ const $ = c(4);
1193
+ let t0, t1;
1194
+ $[0] !== customValidity || $[1] !== ref ? (t0 = () => {
1193
1195
  ref.current?.setCustomValidity(customValidity || "");
1194
- }, $[0] = customValidity, $[1] = ref.current, $[2] = t0) : t0 = $[2];
1195
- let t1;
1196
- $[3] !== customValidity || $[4] !== ref ? (t1 = [customValidity, ref], $[3] = customValidity, $[4] = ref, $[5] = t1) : t1 = $[5], useEffect(t0, t1);
1196
+ }, t1 = [customValidity, ref], $[0] = customValidity, $[1] = ref, $[2] = t0, $[3] = t1) : (t0 = $[2], t1 = $[3]), useEffect(t0, t1);
1197
1197
  }
1198
1198
  const DEFAULT_TEXT_INPUT_ELEMENT = "input";
1199
1199
  function TextInput(props) {
1200
- const $ = c(88), t0 = props;
1201
- let IconComponent, IconRightComponent, __unstable_disableFocusRing, className, clearButton, customValidity, forwardedRef, onClear, prefix, readOnly, rest, suffix, t1, t2, t3, t4, t5, t6, t7, t8, width;
1200
+ const $ = c(90), t0 = props;
1201
+ let IconComponent, IconRightComponent, __unstable_disableFocusRing, className, clearButton, customValidity, flex, forwardedRef, onClear, prefix, readOnly, rest, suffix, t1, t2, t3, t4, t5, t6, t7, t8, width;
1202
1202
  if ($[0] !== t0) {
1203
1203
  const {
1204
1204
  __unstable_disableFocusRing: t92,
@@ -1207,99 +1207,98 @@ function TextInput(props) {
1207
1207
  className: t122,
1208
1208
  clearButton: t132,
1209
1209
  disabled: t142,
1210
- fontSize: t152,
1211
- gap: t162,
1212
- icon: t172,
1213
- iconRight: t182,
1214
- onClear: t192,
1215
- padding: t202,
1216
- prefix: t212,
1217
- radius: t222,
1218
- readOnly: t232,
1219
- ref: t242,
1220
- suffix: t252,
1221
- customValidity: t262,
1222
- type: t272,
1210
+ flex: t152,
1211
+ fontSize: t162,
1212
+ gap: t172,
1213
+ icon: t182,
1214
+ iconRight: t192,
1215
+ onClear: t202,
1216
+ padding: t212,
1217
+ prefix: t222,
1218
+ radius: t232,
1219
+ readOnly: t242,
1220
+ ref: t252,
1221
+ suffix: t262,
1222
+ customValidity: t272,
1223
+ type: t282,
1223
1224
  weight: _width,
1224
- width: t282,
1225
- ...t292
1225
+ width: t292,
1226
+ ...t302
1226
1227
  } = t0;
1227
- __unstable_disableFocusRing = t92, t1 = t102, t2 = t112, className = t122, clearButton = t132, t3 = t142, t4 = t152, t5 = t162, IconComponent = t172, IconRightComponent = t182, onClear = t192, t6 = t202, prefix = t212, t7 = t222, readOnly = t232, forwardedRef = t242, suffix = t252, customValidity = t262, t8 = t272, width = t282, rest = t292, $[0] = t0, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = __unstable_disableFocusRing, $[4] = className, $[5] = clearButton, $[6] = customValidity, $[7] = forwardedRef, $[8] = onClear, $[9] = prefix, $[10] = readOnly, $[11] = rest, $[12] = suffix, $[13] = t1, $[14] = t2, $[15] = t3, $[16] = t4, $[17] = t5, $[18] = t6, $[19] = t7, $[20] = t8, $[21] = width;
1228
+ __unstable_disableFocusRing = t92, t1 = t102, t2 = t112, className = t122, clearButton = t132, t3 = t142, flex = t152, t4 = t162, t5 = t172, IconComponent = t182, IconRightComponent = t192, onClear = t202, t6 = t212, prefix = t222, t7 = t232, readOnly = t242, forwardedRef = t252, suffix = t262, customValidity = t272, t8 = t282, width = t292, rest = t302, $[0] = t0, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = __unstable_disableFocusRing, $[4] = className, $[5] = clearButton, $[6] = customValidity, $[7] = flex, $[8] = forwardedRef, $[9] = onClear, $[10] = prefix, $[11] = readOnly, $[12] = rest, $[13] = suffix, $[14] = t1, $[15] = t2, $[16] = t3, $[17] = t4, $[18] = t5, $[19] = t6, $[20] = t7, $[21] = t8, $[22] = width;
1228
1229
  } else
1229
- IconComponent = $[1], IconRightComponent = $[2], __unstable_disableFocusRing = $[3], className = $[4], clearButton = $[5], customValidity = $[6], forwardedRef = $[7], onClear = $[8], prefix = $[9], readOnly = $[10], rest = $[11], suffix = $[12], t1 = $[13], t2 = $[14], t3 = $[15], t4 = $[16], t5 = $[17], t6 = $[18], t7 = $[19], t8 = $[20], width = $[21];
1230
+ IconComponent = $[1], IconRightComponent = $[2], __unstable_disableFocusRing = $[3], className = $[4], clearButton = $[5], customValidity = $[6], flex = $[7], forwardedRef = $[8], onClear = $[9], prefix = $[10], readOnly = $[11], rest = $[12], suffix = $[13], t1 = $[14], t2 = $[15], t3 = $[16], t4 = $[17], t5 = $[18], t6 = $[19], t7 = $[20], t8 = $[21], width = $[22];
1230
1231
  const Element2 = t1 === void 0 ? DEFAULT_TEXT_INPUT_ELEMENT : t1, border = t2 === void 0 ? !0 : t2, disabled = t3 === void 0 ? !1 : t3, fontSize = t4 === void 0 ? 2 : t4, gap = t5 === void 0 ? 3 : t5, padding = t6 === void 0 ? 3 : t6, radius = t7 === void 0 ? 2 : t7, type = t8 === void 0 ? "text" : t8, ref = useRef(null), responsivePadding = useResponsiveProp(padding), withClearButton = !!clearButton;
1231
1232
  let t9;
1232
- $[22] === Symbol.for("react.memo_cache_sentinel") ? (t9 = () => ref.current, $[22] = t9) : t9 = $[22], useImperativeHandle(forwardedRef, t9), useCustomValidity(ref, customValidity);
1233
+ $[23] === Symbol.for("react.memo_cache_sentinel") ? (t9 = () => ref.current, $[23] = t9) : t9 = $[23], useImperativeHandle(forwardedRef, t9), useCustomValidity(ref, customValidity);
1233
1234
  const handleClearMouseDown = _temp$8;
1234
1235
  let t10;
1235
- $[23] !== onClear ? (t10 = (event_0) => {
1236
+ $[24] !== onClear ? (t10 = (event_0) => {
1236
1237
  event_0.preventDefault(), event_0.stopPropagation(), onClear && onClear(), ref.current?.focus();
1237
- }, $[23] = onClear, $[24] = t10) : t10 = $[24];
1238
+ }, $[24] = onClear, $[25] = t10) : t10 = $[25];
1238
1239
  const handleClearClick = t10;
1239
- let t11, t12;
1240
- $[25] !== responsivePadding ? (t12 = Object.fromEntries(Object.entries(responsivePadding).map(_temp2$1)), $[25] = responsivePadding, $[26] = t12) : t12 = $[26], t11 = t12;
1240
+ let t11;
1241
+ $[26] !== responsivePadding ? (t11 = Object.fromEntries(Object.entries(responsivePadding).map(_temp2$1)), $[26] = responsivePadding, $[27] = t11) : t11 = $[27];
1241
1242
  const clearButtonBoxPadding = t11;
1242
- let t13, t14;
1243
- $[27] !== responsivePadding ? (t14 = Object.fromEntries(Object.entries(responsivePadding).map(_temp3)), $[27] = responsivePadding, $[28] = t14) : t14 = $[28], t13 = t14;
1244
- const clearButtonPadding = t13;
1245
- let t15;
1246
- t15 = isRecord(clearButton) ? clearButton : EMPTY_RECORD;
1247
- const clearButtonProps = t15;
1248
- let t16;
1249
- $[29] !== border || $[30] !== className || $[31] !== fontSize || $[32] !== gap || $[33] !== padding || $[34] !== radius || $[35] !== width ? (t16 = textInput({
1243
+ let t12;
1244
+ $[28] !== responsivePadding ? (t12 = Object.fromEntries(Object.entries(responsivePadding).map(_temp3)), $[28] = responsivePadding, $[29] = t12) : t12 = $[29];
1245
+ const clearButtonPadding = t12, clearButtonProps = isRecord(clearButton) ? clearButton : EMPTY_RECORD;
1246
+ let t13;
1247
+ $[30] !== border || $[31] !== className || $[32] !== flex || $[33] !== fontSize || $[34] !== gap || $[35] !== padding || $[36] !== radius || $[37] !== width ? (t13 = textInput({
1250
1248
  className,
1251
1249
  border,
1250
+ flex,
1252
1251
  fontSize,
1253
1252
  padding,
1254
1253
  radius,
1255
1254
  gap,
1256
1255
  width
1257
- }), $[29] = border, $[30] = className, $[31] = fontSize, $[32] = gap, $[33] = padding, $[34] = radius, $[35] = width, $[36] = t16) : t16 = $[36];
1258
- const t17 = IconComponent ? "" : void 0, t18 = IconRightComponent ? "" : void 0, t19 = customValidity ? "" : void 0, t20 = prefix ? "" : void 0, t21 = !disabled && readOnly ? "" : void 0, t22 = suffix ? "" : void 0;
1259
- let t23;
1260
- $[37] !== prefix ? (t23 = prefix && /* @__PURE__ */ jsx(Box, { className: textInputPrefix(), sizing: "border", children: /* @__PURE__ */ jsx("span", { children: prefix }) }), $[37] = prefix, $[38] = t23) : t23 = $[38];
1256
+ }), $[30] = border, $[31] = className, $[32] = flex, $[33] = fontSize, $[34] = gap, $[35] = padding, $[36] = radius, $[37] = width, $[38] = t13) : t13 = $[38];
1257
+ const t14 = IconComponent ? "" : void 0, t15 = IconRightComponent ? "" : void 0, t16 = customValidity ? "" : void 0, t17 = prefix ? "" : void 0, t18 = !disabled && readOnly ? "" : void 0, t19 = suffix ? "" : void 0;
1258
+ let t20;
1259
+ $[39] !== prefix ? (t20 = prefix && /* @__PURE__ */ jsx("span", { className: textInputPrefix(), children: /* @__PURE__ */ jsx("span", { children: prefix }) }), $[39] = prefix, $[40] = t20) : t20 = $[40];
1260
+ let t21;
1261
+ $[41] === Symbol.for("react.memo_cache_sentinel") ? (t21 = textInputElement(), $[41] = t21) : t21 = $[41];
1262
+ let t22;
1263
+ $[42] === Symbol.for("react.memo_cache_sentinel") ? (t22 = _inputElement(), $[42] = t22) : t22 = $[42];
1264
+ const t23 = __unstable_disableFocusRing ? "" : void 0;
1261
1265
  let t24;
1262
- $[39] === Symbol.for("react.memo_cache_sentinel") ? (t24 = textInputElement(), $[39] = t24) : t24 = $[39];
1266
+ $[43] !== Element2 || $[44] !== disabled || $[45] !== readOnly || $[46] !== rest || $[47] !== t23 || $[48] !== type ? (t24 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t22, "data-no-focus-ring": t23, disabled, readOnly, ref, type }), $[43] = Element2, $[44] = disabled, $[45] = readOnly, $[46] = rest, $[47] = t23, $[48] = type, $[49] = t24) : t24 = $[49];
1263
1267
  let t25;
1264
- $[40] === Symbol.for("react.memo_cache_sentinel") ? (t25 = _inputElement(), $[40] = t25) : t25 = $[40];
1265
- const t26 = __unstable_disableFocusRing ? "" : void 0;
1266
- let t27;
1267
- $[41] !== Element2 || $[42] !== disabled || $[43] !== readOnly || $[44] !== rest || $[45] !== t26 || $[46] !== type ? (t27 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t25, "data-no-focus-ring": t26, disabled, readOnly, ref, type }), $[41] = Element2, $[42] = disabled, $[43] = readOnly, $[44] = rest, $[45] = t26, $[46] = type, $[47] = t27) : t27 = $[47];
1268
- let t28;
1269
- $[48] === Symbol.for("react.memo_cache_sentinel") ? (t28 = _inputPresentation(), $[48] = t28) : t28 = $[48];
1270
- let t29;
1271
- $[49] !== IconComponent || $[50] !== fontSize || $[51] !== padding ? (t29 = IconComponent && /* @__PURE__ */ jsx(Box, { padding, position: "absolute", insetTop: 0, insetLeft: 0, children: /* @__PURE__ */ jsxs(Text, { size: fontSize, children: [
1268
+ $[50] === Symbol.for("react.memo_cache_sentinel") ? (t25 = _inputPresentation(), $[50] = t25) : t25 = $[50];
1269
+ let t26;
1270
+ $[51] !== IconComponent || $[52] !== fontSize || $[53] !== padding ? (t26 = IconComponent && /* @__PURE__ */ jsx(Box, { as: "span", padding, position: "absolute", insetTop: 0, insetLeft: 0, children: /* @__PURE__ */ jsxs(Text, { as: "span", size: fontSize, children: [
1272
1271
  isValidElement(IconComponent) && IconComponent,
1273
1272
  isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
1274
- ] }) }), $[49] = IconComponent, $[50] = fontSize, $[51] = padding, $[52] = t29) : t29 = $[52];
1275
- let t30;
1276
- $[53] !== IconRightComponent || $[54] !== fontSize || $[55] !== padding || $[56] !== withClearButton ? (t30 = !withClearButton && IconRightComponent && /* @__PURE__ */ jsx(Box, { padding, position: "absolute", insetTop: 0, insetRight: 0, children: /* @__PURE__ */ jsxs(Text, { size: fontSize, children: [
1273
+ ] }) }), $[51] = IconComponent, $[52] = fontSize, $[53] = padding, $[54] = t26) : t26 = $[54];
1274
+ let t27;
1275
+ $[55] !== IconRightComponent || $[56] !== fontSize || $[57] !== padding || $[58] !== withClearButton ? (t27 = !withClearButton && IconRightComponent && /* @__PURE__ */ jsx(Box, { as: "span", padding, position: "absolute", insetTop: 0, insetRight: 0, children: /* @__PURE__ */ jsxs(Text, { as: "span", size: fontSize, children: [
1277
1276
  isValidElement(IconRightComponent) && IconRightComponent,
1278
1277
  isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
1279
- ] }) }), $[53] = IconRightComponent, $[54] = fontSize, $[55] = padding, $[56] = withClearButton, $[57] = t30) : t30 = $[57];
1278
+ ] }) }), $[55] = IconRightComponent, $[56] = fontSize, $[57] = padding, $[58] = withClearButton, $[59] = t27) : t27 = $[59];
1279
+ let t28;
1280
+ $[60] !== t26 || $[61] !== t27 ? (t28 = /* @__PURE__ */ jsxs("span", { className: t25, children: [
1281
+ t26,
1282
+ t27
1283
+ ] }), $[60] = t26, $[61] = t27, $[62] = t28) : t28 = $[62];
1284
+ let t29;
1285
+ $[63] !== clearButton || $[64] !== clearButtonBoxPadding || $[65] !== clearButtonPadding || $[66] !== clearButtonProps || $[67] !== disabled || $[68] !== fontSize || $[69] !== handleClearClick || $[70] !== radius || $[71] !== readOnly ? (t29 = !disabled && !readOnly && clearButton && /* @__PURE__ */ jsx(Box, { as: "span", insetTop: 0, insetRight: 0, padding: clearButtonBoxPadding, position: "absolute", style: {
1286
+ zIndex: 2
1287
+ }, children: /* @__PURE__ */ jsx(Button, { "aria-label": "Clear", "data-qa": "clear-button", display: "block", fontSize, icon: CloseIcon, mode: "bleed", padding: clearButtonPadding, radius, ...clearButtonProps, onClick: handleClearClick, onMouseDown: handleClearMouseDown }) }), $[63] = clearButton, $[64] = clearButtonBoxPadding, $[65] = clearButtonPadding, $[66] = clearButtonProps, $[67] = disabled, $[68] = fontSize, $[69] = handleClearClick, $[70] = radius, $[71] = readOnly, $[72] = t29) : t29 = $[72];
1288
+ let t30;
1289
+ $[73] !== t24 || $[74] !== t28 || $[75] !== t29 ? (t30 = /* @__PURE__ */ jsxs("span", { className: t21, children: [
1290
+ t24,
1291
+ t28,
1292
+ t29
1293
+ ] }), $[73] = t24, $[74] = t28, $[75] = t29, $[76] = t30) : t30 = $[76];
1280
1294
  let t31;
1281
- $[58] !== t29 || $[59] !== t30 ? (t31 = /* @__PURE__ */ jsxs(Box, { className: t28, position: "absolute", children: [
1282
- t29,
1283
- t30
1284
- ] }), $[58] = t29, $[59] = t30, $[60] = t31) : t31 = $[60];
1295
+ $[77] !== suffix ? (t31 = suffix && /* @__PURE__ */ jsx("span", { className: textInputSuffix(), children: /* @__PURE__ */ jsx("span", { children: suffix }) }), $[77] = suffix, $[78] = t31) : t31 = $[78];
1285
1296
  let t32;
1286
- $[61] !== clearButton || $[62] !== clearButtonBoxPadding || $[63] !== clearButtonPadding || $[64] !== clearButtonProps || $[65] !== disabled || $[66] !== fontSize || $[67] !== handleClearClick || $[68] !== radius || $[69] !== readOnly ? (t32 = !disabled && !readOnly && clearButton && /* @__PURE__ */ jsx(Box, { insetTop: 0, insetRight: 0, padding: clearButtonBoxPadding, position: "absolute", style: {
1287
- zIndex: 2
1288
- }, children: /* @__PURE__ */ jsx(Button, { "aria-label": "Clear", "data-qa": "clear-button", display: "block", fontSize, icon: CloseIcon, mode: "bleed", padding: clearButtonPadding, radius, ...clearButtonProps, onClick: handleClearClick, onMouseDown: handleClearMouseDown }) }), $[61] = clearButton, $[62] = clearButtonBoxPadding, $[63] = clearButtonPadding, $[64] = clearButtonProps, $[65] = disabled, $[66] = fontSize, $[67] = handleClearClick, $[68] = radius, $[69] = readOnly, $[70] = t32) : t32 = $[70];
1289
- let t33;
1290
- $[71] !== t27 || $[72] !== t31 || $[73] !== t32 ? (t33 = /* @__PURE__ */ jsxs(Box, { className: t24, flex: 1, position: "relative", children: [
1291
- t27,
1292
- t31,
1293
- t32
1294
- ] }), $[71] = t27, $[72] = t31, $[73] = t32, $[74] = t33) : t33 = $[74];
1295
- let t34;
1296
- $[75] !== suffix ? (t34 = suffix && /* @__PURE__ */ jsx(Box, { className: textInputSuffix(), sizing: "border", children: /* @__PURE__ */ jsx("span", { children: suffix }) }), $[75] = suffix, $[76] = t34) : t34 = $[76];
1297
- let t35;
1298
- return $[77] !== t16 || $[78] !== t17 || $[79] !== t18 || $[80] !== t19 || $[81] !== t20 || $[82] !== t21 || $[83] !== t22 || $[84] !== t23 || $[85] !== t33 || $[86] !== t34 ? (t35 = /* @__PURE__ */ jsxs(Box, { alignItems: "center", className: t16, "data-icon-left": t17, "data-icon-right": t18, "data-invalid": t19, "data-prefix": t20, "data-read-only": t21, "data-suffix": t22, "data-ui": "TextInput", display: "flex", children: [
1299
- t23,
1300
- t33,
1301
- t34
1302
- ] }), $[77] = t16, $[78] = t17, $[79] = t18, $[80] = t19, $[81] = t20, $[82] = t21, $[83] = t22, $[84] = t23, $[85] = t33, $[86] = t34, $[87] = t35) : t35 = $[87], t35;
1297
+ return $[79] !== t13 || $[80] !== t14 || $[81] !== t15 || $[82] !== t16 || $[83] !== t17 || $[84] !== t18 || $[85] !== t19 || $[86] !== t20 || $[87] !== t30 || $[88] !== t31 ? (t32 = /* @__PURE__ */ jsxs("span", { className: t13, "data-icon-left": t14, "data-icon-right": t15, "data-invalid": t16, "data-prefix": t17, "data-read-only": t18, "data-suffix": t19, "data-ui": "TextInput", children: [
1298
+ t20,
1299
+ t30,
1300
+ t31
1301
+ ] }), $[79] = t13, $[80] = t14, $[81] = t15, $[82] = t16, $[83] = t17, $[84] = t18, $[85] = t19, $[86] = t20, $[87] = t30, $[88] = t31, $[89] = t32) : t32 = $[89], t32;
1303
1302
  }
1304
1303
  function _temp3(t0) {
1305
1304
  const [key_0, value_0] = t0;
@@ -1771,7 +1770,7 @@ const DialogContext = createGlobalScopedContext("@sanity/ui/v3/dialog", {
1771
1770
  version: 0
1772
1771
  });
1773
1772
  function useDialog() {
1774
- return useContext(DialogContext);
1773
+ return use(DialogContext);
1775
1774
  }
1776
1775
  const DEFAULT_DIALOG_ELEMENT = "div";
1777
1776
  function Dialog(props) {
@@ -1864,15 +1863,15 @@ function DialogProvider(props) {
1864
1863
  position,
1865
1864
  zOffset
1866
1865
  } = props;
1867
- let t0, t1;
1868
- $[0] !== position || $[1] !== zOffset ? (t1 = {
1866
+ let t0;
1867
+ $[0] !== position || $[1] !== zOffset ? (t0 = {
1869
1868
  version: 0,
1870
1869
  position,
1871
1870
  zOffset
1872
- }, $[0] = position, $[1] = zOffset, $[2] = t1) : t1 = $[2], t0 = t1;
1871
+ }, $[0] = position, $[1] = zOffset, $[2] = t0) : t0 = $[2];
1873
1872
  const contextValue = t0;
1874
- let t2;
1875
- return $[3] !== children || $[4] !== contextValue ? (t2 = /* @__PURE__ */ jsx(DialogContext.Provider, { value: contextValue, children }), $[3] = children, $[4] = contextValue, $[5] = t2) : t2 = $[5], t2;
1873
+ let t1;
1874
+ return $[3] !== children || $[4] !== contextValue ? (t1 = /* @__PURE__ */ jsx(DialogContext.Provider, { value: contextValue, children }), $[3] = children, $[4] = contextValue, $[5] = t1) : t1 = $[5], t1;
1876
1875
  }
1877
1876
  const DEFAULT_KBD_ELEMENT = "kbd";
1878
1877
  function KBD(props) {
@@ -2121,8 +2120,8 @@ function Menu(props) {
2121
2120
  $[28] !== isTopLayer || $[29] !== onEscape ? (t10 = (event) => {
2122
2121
  isTopLayer && event.key === "Escape" && (event.stopPropagation(), onEscape && onEscape());
2123
2122
  }, $[28] = isTopLayer, $[29] = onEscape, $[30] = t10) : t10 = $[30], useGlobalKeyDown(t10);
2124
- let t11, t12;
2125
- $[31] !== activeElement || $[32] !== activeIndex || $[33] !== handleItemMouseEnter || $[34] !== handleItemMouseLeave || $[35] !== mount || $[36] !== onClickOutside || $[37] !== onEscape || $[38] !== onItemClick || $[39] !== registerElement ? (t12 = {
2123
+ let t11;
2124
+ $[31] !== activeElement || $[32] !== activeIndex || $[33] !== handleItemMouseEnter || $[34] !== handleItemMouseLeave || $[35] !== mount || $[36] !== onClickOutside || $[37] !== onEscape || $[38] !== onItemClick || $[39] !== registerElement ? (t11 = {
2126
2125
  version: 0,
2127
2126
  activeElement,
2128
2127
  activeIndex,
@@ -2132,21 +2131,19 @@ function Menu(props) {
2132
2131
  onItemClick,
2133
2132
  onItemMouseEnter: handleItemMouseEnter,
2134
2133
  onItemMouseLeave: handleItemMouseLeave,
2135
- registerElement,
2136
- onMouseEnter: handleItemMouseEnter,
2137
- onMouseLeave: handleItemMouseLeave
2138
- }, $[31] = activeElement, $[32] = activeIndex, $[33] = handleItemMouseEnter, $[34] = handleItemMouseLeave, $[35] = mount, $[36] = onClickOutside, $[37] = onEscape, $[38] = onItemClick, $[39] = registerElement, $[40] = t12) : t12 = $[40], t11 = t12;
2134
+ registerElement
2135
+ }, $[31] = activeElement, $[32] = activeIndex, $[33] = handleItemMouseEnter, $[34] = handleItemMouseLeave, $[35] = mount, $[36] = onClickOutside, $[37] = onEscape, $[38] = onItemClick, $[39] = registerElement, $[40] = t11) : t11 = $[40];
2139
2136
  const value = t11;
2140
- let t13;
2141
- $[41] !== className ? (t13 = menu({
2137
+ let t12;
2138
+ $[41] !== className ? (t12 = menu({
2142
2139
  className
2143
- }), $[41] = className, $[42] = t13) : t13 = $[42];
2140
+ }), $[41] = className, $[42] = t12) : t12 = $[42];
2141
+ let t13;
2142
+ $[43] !== children || $[44] !== gap ? (t13 = /* @__PURE__ */ jsx(Stack, { gap, children }), $[43] = children, $[44] = gap, $[45] = t13) : t13 = $[45];
2144
2143
  let t14;
2145
- $[43] !== children || $[44] !== gap ? (t14 = /* @__PURE__ */ jsx(Stack, { gap, children }), $[43] = children, $[44] = gap, $[45] = t14) : t14 = $[45];
2144
+ $[46] !== as || $[47] !== handleKeyDown || $[48] !== handleRefChange || $[49] !== padding || $[50] !== rest || $[51] !== t12 || $[52] !== t13 ? (t14 = /* @__PURE__ */ jsx(Box, { "data-ui": "Menu", ...rest, as, className: t12, onKeyDown: handleKeyDown, overflow: "auto", outline: "none", padding, ref: handleRefChange, role: "menu", tabIndex: -1, children: t13 }), $[46] = as, $[47] = handleKeyDown, $[48] = handleRefChange, $[49] = padding, $[50] = rest, $[51] = t12, $[52] = t13, $[53] = t14) : t14 = $[53];
2146
2145
  let t15;
2147
- $[46] !== as || $[47] !== handleKeyDown || $[48] !== handleRefChange || $[49] !== padding || $[50] !== rest || $[51] !== t13 || $[52] !== t14 ? (t15 = /* @__PURE__ */ jsx(Box, { "data-ui": "Menu", ...rest, as, className: t13, onKeyDown: handleKeyDown, overflow: "auto", outline: "none", padding, ref: handleRefChange, role: "menu", tabIndex: -1, children: t14 }), $[46] = as, $[47] = handleKeyDown, $[48] = handleRefChange, $[49] = padding, $[50] = rest, $[51] = t13, $[52] = t14, $[53] = t15) : t15 = $[53];
2148
- let t16;
2149
- return $[54] !== t15 || $[55] !== value ? (t16 = /* @__PURE__ */ jsx(MenuContext.Provider, { value, children: t15 }), $[54] = t15, $[55] = value, $[56] = t16) : t16 = $[56], t16;
2146
+ return $[54] !== t14 || $[55] !== value ? (t15 = /* @__PURE__ */ jsx(MenuContext.Provider, { value, children: t14 }), $[54] = t14, $[55] = value, $[56] = t15) : t15 = $[56], t15;
2150
2147
  }
2151
2148
  function MenuButton(props) {
2152
2149
  const $ = c(57), {
@@ -2266,18 +2263,18 @@ function MenuButton(props) {
2266
2263
  const button2 = t17;
2267
2264
  let t18, t19;
2268
2265
  $[43] !== buttonElement ? (t18 = () => buttonElement, t19 = [buttonElement], $[43] = buttonElement, $[44] = t18, $[45] = t19) : (t18 = $[44], t19 = $[45]), useImperativeHandle(forwardedRef, t18, t19);
2269
- let t20, t21;
2270
- $[46] !== popover2 ? (t21 = popover2 || {}, $[46] = popover2, $[47] = t21) : t21 = $[47];
2271
- let t22;
2272
- $[48] !== t21 ? (t22 = {
2266
+ let t20;
2267
+ $[46] !== popover2 ? (t20 = popover2 || {}, $[46] = popover2, $[47] = t20) : t20 = $[47];
2268
+ let t21;
2269
+ $[48] !== t20 ? (t21 = {
2273
2270
  overflow: "auto",
2274
- ...t21
2275
- }, $[48] = t21, $[49] = t22) : t22 = $[49], t20 = t22;
2276
- const popoverProps = t20;
2271
+ ...t20
2272
+ }, $[48] = t20, $[49] = t21) : t21 = $[49];
2273
+ const popoverProps = t21;
2274
+ let t22;
2275
+ $[50] !== button2 ? (t22 = button2 || /* @__PURE__ */ jsx(Fragment, {}), $[50] = button2, $[51] = t22) : t22 = $[51];
2277
2276
  let t23;
2278
- $[50] !== button2 ? (t23 = button2 || /* @__PURE__ */ jsx(Fragment, {}), $[50] = button2, $[51] = t23) : t23 = $[51];
2279
- let t24;
2280
- return $[52] !== menu2 || $[53] !== open || $[54] !== popoverProps || $[55] !== t23 ? (t24 = /* @__PURE__ */ jsx(Popover, { "data-ui": "MenuButton__popover", ...popoverProps, content: menu2, open, children: t23 }), $[52] = menu2, $[53] = open, $[54] = popoverProps, $[55] = t23, $[56] = t24) : t24 = $[56], t24;
2277
+ return $[52] !== menu2 || $[53] !== open || $[54] !== popoverProps || $[55] !== t22 ? (t23 = /* @__PURE__ */ jsx(Popover, { "data-ui": "MenuButton__popover", ...popoverProps, content: menu2, open, children: t22 }), $[52] = menu2, $[53] = open, $[54] = popoverProps, $[55] = t22, $[56] = t23) : t23 = $[56], t23;
2281
2278
  }
2282
2279
  function _temp$6(v) {
2283
2280
  return !v;
@@ -2300,7 +2297,7 @@ function MenuDivider(props) {
2300
2297
  return $[6] !== Element2 || $[7] !== rest || $[8] !== t2 ? (t3 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t2 }), $[6] = Element2, $[7] = rest, $[8] = t2, $[9] = t3) : t3 = $[9], t3;
2301
2298
  }
2302
2299
  function useMenu() {
2303
- const value = useContext(MenuContext);
2300
+ const value = use(MenuContext);
2304
2301
  if (!value)
2305
2302
  throw new Error("useMenu(): missing context value");
2306
2303
  if (!isRecord(value) || value.version !== 0)
@@ -2459,8 +2456,8 @@ function MenuItem(props) {
2459
2456
  disabled || (onClick && onClick(event), onItemClick && onItemClick(event));
2460
2457
  }, $[33] = disabled, $[34] = onClick, $[35] = onItemClick, $[36] = t11) : t11 = $[36];
2461
2458
  const handleClick = t11;
2462
- let t12, t13;
2463
- $[37] !== padding || $[38] !== paddingBottom || $[39] !== paddingLeft || $[40] !== paddingRight || $[41] !== paddingTop || $[42] !== paddingX || $[43] !== paddingY ? (t13 = {
2459
+ let t12;
2460
+ $[37] !== padding || $[38] !== paddingBottom || $[39] !== paddingLeft || $[40] !== paddingRight || $[41] !== paddingTop || $[42] !== paddingX || $[43] !== paddingY ? (t12 = {
2464
2461
  padding,
2465
2462
  paddingX,
2466
2463
  paddingY,
@@ -2468,15 +2465,15 @@ function MenuItem(props) {
2468
2465
  paddingRight,
2469
2466
  paddingBottom,
2470
2467
  paddingLeft
2471
- }, $[37] = padding, $[38] = paddingBottom, $[39] = paddingLeft, $[40] = paddingRight, $[41] = paddingTop, $[42] = paddingX, $[43] = paddingY, $[44] = t13) : t13 = $[44], t12 = t13;
2468
+ }, $[37] = padding, $[38] = paddingBottom, $[39] = paddingLeft, $[40] = paddingRight, $[41] = paddingTop, $[42] = paddingX, $[43] = paddingY, $[44] = t12) : t12 = $[44];
2472
2469
  const paddingProps = t12;
2473
- let t14;
2474
- $[45] === Symbol.for("react.memo_cache_sentinel") ? (t14 = (el) => {
2470
+ let t13;
2471
+ $[45] === Symbol.for("react.memo_cache_sentinel") ? (t13 = (el) => {
2475
2472
  ref.current = el, setRootElement(el);
2476
- }, $[45] = t14) : t14 = $[45];
2477
- const setRef = t14, t15 = pressed ? "" : void 0, t16 = active ? "" : void 0, t17 = disabled ? "" : void 0, t18 = as === "button" ? "button" : void 0;
2478
- let t19;
2479
- $[46] !== IconComponent || $[47] !== IconRightComponent || $[48] !== fontSize || $[49] !== gap || $[50] !== gapX || $[51] !== gapY || $[52] !== hotkeys || $[53] !== paddingProps || $[54] !== text2 ? (t19 = (IconComponent || text2 || IconRightComponent) && /* @__PURE__ */ jsxs(Flex, { as: "span", gap, gapX, gapY, align: "center", ...paddingProps, children: [
2473
+ }, $[45] = t13) : t13 = $[45];
2474
+ const setRef = t13, t14 = pressed ? "" : void 0, t15 = disabled ? "" : void 0, t16 = as === "button" ? "button" : void 0;
2475
+ let t17;
2476
+ $[46] !== IconComponent || $[47] !== IconRightComponent || $[48] !== fontSize || $[49] !== gap || $[50] !== gapX || $[51] !== gapY || $[52] !== hotkeys || $[53] !== paddingProps || $[54] !== text2 ? (t17 = (IconComponent || text2 || IconRightComponent) && /* @__PURE__ */ jsxs(Flex, { as: "span", gap, gapX, gapY, align: "center", ...paddingProps, children: [
2480
2477
  IconComponent && /* @__PURE__ */ jsxs(Text, { muted: !0, size: fontSize, children: [
2481
2478
  isValidElement(IconComponent) && IconComponent,
2482
2479
  isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
@@ -2490,14 +2487,14 @@ function MenuItem(props) {
2490
2487
  isValidElement(IconRightComponent) && IconRightComponent,
2491
2488
  isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
2492
2489
  ] })
2493
- ] }), $[46] = IconComponent, $[47] = IconRightComponent, $[48] = fontSize, $[49] = gap, $[50] = gapX, $[51] = gapY, $[52] = hotkeys, $[53] = paddingProps, $[54] = text2, $[55] = t19) : t19 = $[55];
2494
- let t20;
2495
- $[56] !== children || $[57] !== paddingProps ? (t20 = children && /* @__PURE__ */ jsx(Box, { as: "span", ...paddingProps, children }), $[56] = children, $[57] = paddingProps, $[58] = t20) : t20 = $[58];
2496
- let t21;
2497
- return $[59] !== as || $[60] !== disabled || $[61] !== handleClick || $[62] !== onItemMouseEnter || $[63] !== onItemMouseLeave || $[64] !== radius || $[65] !== rest || $[66] !== role || $[67] !== t15 || $[68] !== t16 || $[69] !== t17 || $[70] !== t18 || $[71] !== t19 || $[72] !== t20 || $[73] !== tone ? (t21 = /* @__PURE__ */ jsxs(Selectable, { "data-ui": "MenuItem", ...rest, as, "data-pressed": t15, "data-selected": t16, "data-disabled": t17, radius, disabled, onClick: handleClick, onMouseEnter: onItemMouseEnter, onMouseLeave: onItemMouseLeave, ref: setRef, role, tabIndex: -1, tone, type: t18, children: [
2498
- t19,
2499
- t20
2500
- ] }), $[59] = as, $[60] = disabled, $[61] = handleClick, $[62] = onItemMouseEnter, $[63] = onItemMouseLeave, $[64] = radius, $[65] = rest, $[66] = role, $[67] = t15, $[68] = t16, $[69] = t17, $[70] = t18, $[71] = t19, $[72] = t20, $[73] = tone, $[74] = t21) : t21 = $[74], t21;
2490
+ ] }), $[46] = IconComponent, $[47] = IconRightComponent, $[48] = fontSize, $[49] = gap, $[50] = gapX, $[51] = gapY, $[52] = hotkeys, $[53] = paddingProps, $[54] = text2, $[55] = t17) : t17 = $[55];
2491
+ let t18;
2492
+ $[56] !== children || $[57] !== paddingProps ? (t18 = children && /* @__PURE__ */ jsx(Box, { as: "span", ...paddingProps, children }), $[56] = children, $[57] = paddingProps, $[58] = t18) : t18 = $[58];
2493
+ let t19;
2494
+ return $[59] !== active || $[60] !== as || $[61] !== disabled || $[62] !== handleClick || $[63] !== onItemMouseEnter || $[64] !== onItemMouseLeave || $[65] !== radius || $[66] !== rest || $[67] !== role || $[68] !== t14 || $[69] !== t15 || $[70] !== t16 || $[71] !== t17 || $[72] !== t18 || $[73] !== tone ? (t19 = /* @__PURE__ */ jsxs(Selectable, { "data-ui": "MenuItem", ...rest, as, "data-pressed": t14, "data-disabled": t15, radius, disabled, onClick: handleClick, onMouseEnter: onItemMouseEnter, onMouseLeave: onItemMouseLeave, ref: setRef, role, selected: active, tabIndex: -1, tone, type: t16, children: [
2495
+ t17,
2496
+ t18
2497
+ ] }), $[59] = active, $[60] = as, $[61] = disabled, $[62] = handleClick, $[63] = onItemMouseEnter, $[64] = onItemMouseLeave, $[65] = radius, $[66] = rest, $[67] = role, $[68] = t14, $[69] = t15, $[70] = t16, $[71] = t17, $[72] = t18, $[73] = tone, $[74] = t19) : t19 = $[74], t19;
2501
2498
  }
2502
2499
  const DEFAULT_TAB_ELEMENT = "button";
2503
2500
  function Tab(props) {
@@ -2758,8 +2755,8 @@ function ToastProvider(props) {
2758
2755
  let t1;
2759
2756
  $[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = [], $[0] = t1) : t1 = $[0];
2760
2757
  const [state, setState] = useState(t1), mounted = useMounted();
2761
- let t2, t3;
2762
- $[1] === Symbol.for("react.memo_cache_sentinel") ? (t3 = {
2758
+ let t2;
2759
+ $[1] === Symbol.for("react.memo_cache_sentinel") ? (t2 = {
2763
2760
  version: 0,
2764
2761
  push: (params) => {
2765
2762
  const id = params.id ?? generateToastId(), duration = params.duration ?? 5e3;
@@ -2783,15 +2780,15 @@ function ToastProvider(props) {
2783
2780
  });
2784
2781
  }), id;
2785
2782
  }
2786
- }, $[1] = t3) : t3 = $[1], t2 = t3;
2783
+ }, $[1] = t2) : t2 = $[1];
2787
2784
  const value = t2;
2785
+ let t3;
2786
+ $[2] !== gap || $[3] !== mounted || $[4] !== padding || $[5] !== paddingX || $[6] !== paddingY || $[7] !== state || $[8] !== zOffset ? (t3 = mounted && /* @__PURE__ */ jsx(LayerProvider, { zOffset, children: /* @__PURE__ */ jsx(ToastLayer, { padding, paddingX, paddingY, gap, children: /* @__PURE__ */ jsx(AnimatePresence, { initial: !1, mode: "popLayout", children: state.map(_temp$4) }) }) }), $[2] = gap, $[3] = mounted, $[4] = padding, $[5] = paddingX, $[6] = paddingY, $[7] = state, $[8] = zOffset, $[9] = t3) : t3 = $[9];
2788
2787
  let t4;
2789
- $[2] !== gap || $[3] !== mounted || $[4] !== padding || $[5] !== paddingX || $[6] !== paddingY || $[7] !== state || $[8] !== zOffset ? (t4 = mounted && /* @__PURE__ */ jsx(LayerProvider, { zOffset, children: /* @__PURE__ */ jsx(ToastLayer, { padding, paddingX, paddingY, gap, children: /* @__PURE__ */ jsx(AnimatePresence, { initial: !1, mode: "popLayout", children: state.map(_temp$4) }) }) }), $[2] = gap, $[3] = mounted, $[4] = padding, $[5] = paddingX, $[6] = paddingY, $[7] = state, $[8] = zOffset, $[9] = t4) : t4 = $[9];
2790
- let t5;
2791
- return $[10] !== children || $[11] !== t4 ? (t5 = /* @__PURE__ */ jsxs(ToastContext.Provider, { value, children: [
2788
+ return $[10] !== children || $[11] !== t3 ? (t4 = /* @__PURE__ */ jsxs(ToastContext.Provider, { value, children: [
2792
2789
  children,
2793
- t4
2794
- ] }), $[10] = children, $[11] = t4, $[12] = t5) : t5 = $[12], t5;
2790
+ t3
2791
+ ] }), $[10] = children, $[11] = t3, $[12] = t4) : t4 = $[12], t4;
2795
2792
  }
2796
2793
  function _temp$4(t0) {
2797
2794
  const {
@@ -2802,7 +2799,7 @@ function _temp$4(t0) {
2802
2799
  return /* @__PURE__ */ jsx(Toast, { closable: params_0.closable, description: params_0.description, onClose: dismiss_0, status: params_0.status, title: params_0.title, duration: params_0.duration }, id_0);
2803
2800
  }
2804
2801
  function useToast() {
2805
- const value = useContext(ToastContext);
2802
+ const value = use(ToastContext);
2806
2803
  if (!value)
2807
2804
  throw new Error("useToast(): missing context value");
2808
2805
  if (!isRecord(value) || value.version !== 0)
@@ -2875,27 +2872,27 @@ function Tree(props) {
2875
2872
  ...rest
2876
2873
  } = t0, $[0] = t0, $[1] = children, $[2] = forwardedRef, $[3] = onFocus, $[4] = rest, $[5] = t1) : (children = $[1], forwardedRef = $[2], onFocus = $[3], rest = $[4], t1 = $[5]);
2877
2874
  const gap = t1 === void 0 ? 1 : t1, ref = useRef(null), [focusedElement, setFocusedElement] = useState(null), focusedElementRef = useRef(focusedElement);
2878
- let t2, t3;
2879
- $[6] === Symbol.for("react.memo_cache_sentinel") ? (t3 = [], $[6] = t3) : t3 = $[6], t2 = t3;
2875
+ let t2;
2876
+ $[6] === Symbol.for("react.memo_cache_sentinel") ? (t2 = [], $[6] = t2) : t2 = $[6];
2880
2877
  const path = t2;
2878
+ let t3;
2879
+ $[7] === Symbol.for("react.memo_cache_sentinel") ? (t3 = [], $[7] = t3) : t3 = $[7];
2880
+ const [itemElements, setItemElements] = useState(t3);
2881
2881
  let t4;
2882
- $[7] === Symbol.for("react.memo_cache_sentinel") ? (t4 = [], $[7] = t4) : t4 = $[7];
2883
- const [itemElements, setItemElements] = useState(t4);
2882
+ $[8] === Symbol.for("react.memo_cache_sentinel") ? (t4 = {}, $[8] = t4) : t4 = $[8];
2883
+ const [state, setState] = useState(t4), stateRef = useRef(state);
2884
2884
  let t5;
2885
- $[8] === Symbol.for("react.memo_cache_sentinel") ? (t5 = {}, $[8] = t5) : t5 = $[8];
2886
- const [state, setState] = useState(t5), stateRef = useRef(state);
2887
- let t6;
2888
- $[9] === Symbol.for("react.memo_cache_sentinel") ? (t6 = () => ref.current, $[9] = t6) : t6 = $[9], useImperativeHandle(forwardedRef, t6);
2889
- let t7, t8;
2890
- $[10] !== focusedElement ? (t7 = () => {
2885
+ $[9] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => ref.current, $[9] = t5) : t5 = $[9], useImperativeHandle(forwardedRef, t5);
2886
+ let t6, t7;
2887
+ $[10] !== focusedElement ? (t6 = () => {
2891
2888
  focusedElementRef.current = focusedElement;
2892
- }, t8 = [focusedElement], $[10] = focusedElement, $[11] = t7, $[12] = t8) : (t7 = $[11], t8 = $[12]), useEffect(t7, t8);
2893
- let t10, t9;
2894
- $[13] !== state ? (t9 = () => {
2889
+ }, t7 = [focusedElement], $[10] = focusedElement, $[11] = t6, $[12] = t7) : (t6 = $[11], t7 = $[12]), useEffect(t6, t7);
2890
+ let t8, t9;
2891
+ $[13] !== state ? (t8 = () => {
2895
2892
  stateRef.current = state;
2896
- }, t10 = [state], $[13] = state, $[14] = t10, $[15] = t9) : (t10 = $[14], t9 = $[15]), useEffect(t9, t10);
2897
- let t11;
2898
- $[16] === Symbol.for("react.memo_cache_sentinel") ? (t11 = (element, path_0, expanded, selected) => (setState((s) => ({
2893
+ }, t9 = [state], $[13] = state, $[14] = t8, $[15] = t9) : (t8 = $[14], t9 = $[15]), useEffect(t8, t9);
2894
+ let t10;
2895
+ $[16] === Symbol.for("react.memo_cache_sentinel") ? (t10 = (element, path_0, expanded, selected) => (setState((s) => ({
2899
2896
  ...s,
2900
2897
  [path_0]: {
2901
2898
  element,
@@ -2908,10 +2905,10 @@ function Tree(props) {
2908
2905
  };
2909
2906
  return delete newState[path_0], newState;
2910
2907
  });
2911
- }), $[16] = t11) : t11 = $[16];
2912
- const registerItem = t11;
2913
- let t12;
2914
- $[17] === Symbol.for("react.memo_cache_sentinel") ? (t12 = (path_1, expanded_0) => {
2908
+ }), $[16] = t10) : t10 = $[16];
2909
+ const registerItem = t10;
2910
+ let t11;
2911
+ $[17] === Symbol.for("react.memo_cache_sentinel") ? (t11 = (path_1, expanded_0) => {
2915
2912
  setState((s_1) => {
2916
2913
  const itemState = s_1[path_1];
2917
2914
  return itemState ? {
@@ -2922,14 +2919,12 @@ function Tree(props) {
2922
2919
  }
2923
2920
  } : s_1;
2924
2921
  });
2925
- }, $[17] = t12) : t12 = $[17];
2926
- const setExpanded = t12;
2922
+ }, $[17] = t11) : t11 = $[17];
2923
+ const setExpanded = t11, t12 = focusedElement || itemElements[0] || null;
2927
2924
  let t13;
2928
- const t14 = focusedElement || itemElements[0] || null;
2929
- let t15;
2930
- $[18] !== gap || $[19] !== state || $[20] !== t14 ? (t15 = {
2925
+ $[18] !== gap || $[19] !== state || $[20] !== t12 ? (t13 = {
2931
2926
  version: 0,
2932
- focusedElement: t14,
2927
+ focusedElement: t12,
2933
2928
  gap,
2934
2929
  level: 0,
2935
2930
  path,
@@ -2937,10 +2932,10 @@ function Tree(props) {
2937
2932
  setExpanded,
2938
2933
  setFocusedElement,
2939
2934
  state
2940
- }, $[18] = gap, $[19] = state, $[20] = t14, $[21] = t15) : t15 = $[21], t13 = t15;
2935
+ }, $[18] = gap, $[19] = state, $[20] = t12, $[21] = t13) : t13 = $[21];
2941
2936
  const contextValue = t13;
2942
- let t16;
2943
- $[22] !== itemElements ? (t16 = (event) => {
2937
+ let t14;
2938
+ $[22] !== itemElements ? (t14 = (event) => {
2944
2939
  if (focusedElementRef.current) {
2945
2940
  if (event.key === "ArrowDown") {
2946
2941
  event.preventDefault();
@@ -2999,29 +2994,29 @@ function Tree(props) {
2999
2994
  return;
3000
2995
  }
3001
2996
  }
3002
- }, $[22] = itemElements, $[23] = t16) : t16 = $[23];
3003
- const handleKeyDown = t16;
3004
- let t17;
3005
- $[24] !== onFocus ? (t17 = (event_0) => {
2997
+ }, $[22] = itemElements, $[23] = t14) : t14 = $[23];
2998
+ const handleKeyDown = t14;
2999
+ let t15;
3000
+ $[24] !== onFocus ? (t15 = (event_0) => {
3006
3001
  setFocusedElement(event_0.target), onFocus?.(event_0);
3007
- }, $[24] = onFocus, $[25] = t17) : t17 = $[25];
3008
- const handleFocus = t17;
3009
- let t18;
3010
- $[26] === Symbol.for("react.memo_cache_sentinel") ? (t18 = () => {
3002
+ }, $[24] = onFocus, $[25] = t15) : t15 = $[25];
3003
+ const handleFocus = t15;
3004
+ let t16;
3005
+ $[26] === Symbol.for("react.memo_cache_sentinel") ? (t16 = () => {
3011
3006
  if (!ref.current)
3012
3007
  return;
3013
3008
  const _itemElements = Array.from(ref.current.querySelectorAll('[data-ui="TreeItem"]'));
3014
3009
  setItemElements(_itemElements);
3015
- }, $[26] = t18) : t18 = $[26];
3010
+ }, $[26] = t16) : t16 = $[26];
3011
+ let t17;
3012
+ $[27] !== children ? (t17 = [children], $[27] = children, $[28] = t17) : t17 = $[28], useEffect(t16, t17);
3013
+ let t18;
3014
+ $[29] !== children || $[30] !== gap || $[31] !== handleFocus || $[32] !== handleKeyDown || $[33] !== rest ? (t18 = /* @__PURE__ */ jsx(Stack, { as: "ul", "data-ui": "Tree", ...rest, gap, onFocus: handleFocus, onKeyDown: handleKeyDown, ref, role: "tree", children }), $[29] = children, $[30] = gap, $[31] = handleFocus, $[32] = handleKeyDown, $[33] = rest, $[34] = t18) : t18 = $[34];
3016
3015
  let t19;
3017
- $[27] !== children ? (t19 = [children], $[27] = children, $[28] = t19) : t19 = $[28], useEffect(t18, t19);
3018
- let t20;
3019
- $[29] !== children || $[30] !== gap || $[31] !== handleFocus || $[32] !== handleKeyDown || $[33] !== rest ? (t20 = /* @__PURE__ */ jsx(Stack, { as: "ul", "data-ui": "Tree", ...rest, gap, onFocus: handleFocus, onKeyDown: handleKeyDown, ref, role: "tree", children }), $[29] = children, $[30] = gap, $[31] = handleFocus, $[32] = handleKeyDown, $[33] = rest, $[34] = t20) : t20 = $[34];
3020
- let t21;
3021
- return $[35] !== contextValue || $[36] !== t20 ? (t21 = /* @__PURE__ */ jsx(TreeContext.Provider, { value: contextValue, children: t20 }), $[35] = contextValue, $[36] = t20, $[37] = t21) : t21 = $[37], t21;
3016
+ return $[35] !== contextValue || $[36] !== t18 ? (t19 = /* @__PURE__ */ jsx(TreeContext.Provider, { value: contextValue, children: t18 }), $[35] = contextValue, $[36] = t18, $[37] = t19) : t19 = $[37], t19;
3022
3017
  }
3023
3018
  function useTree() {
3024
- const tree = useContext(TreeContext);
3019
+ const tree = use(TreeContext);
3025
3020
  if (!tree)
3026
3021
  throw new Error("Tree: missing context value");
3027
3022
  return tree;
@@ -3138,32 +3133,21 @@ function _isScrollable(el) {
3138
3133
  }
3139
3134
  const _ResizeObserver = typeof document < "u" && typeof window < "u" && window.ResizeObserver ? window.ResizeObserver : ResizeObserver, DEFAULT_VIRTUAL_LIST_ELEMENT = "div";
3140
3135
  function VirtualList(props) {
3141
- const $ = c(61), t0 = props;
3142
- let forwardedRef, getItemKey, onChange, renderItem, rest, t1, t2, t3;
3143
- $[0] !== t0 ? ({
3144
- as: t1,
3145
- gap: t2,
3136
+ const {
3137
+ as = DEFAULT_VIRTUAL_LIST_ELEMENT,
3138
+ gap = 0,
3146
3139
  getItemKey,
3147
- items: t3,
3140
+ items = [],
3148
3141
  onChange,
3149
3142
  renderItem,
3150
3143
  ref: forwardedRef,
3151
3144
  ...rest
3152
- } = t0, $[0] = t0, $[1] = forwardedRef, $[2] = getItemKey, $[3] = onChange, $[4] = renderItem, $[5] = rest, $[6] = t1, $[7] = t2, $[8] = t3) : (forwardedRef = $[1], getItemKey = $[2], onChange = $[3], renderItem = $[4], rest = $[5], t1 = $[6], t2 = $[7], t3 = $[8]);
3153
- const as = t1 === void 0 ? DEFAULT_VIRTUAL_LIST_ELEMENT : t1, gap = t2 === void 0 ? 0 : t2;
3154
- let t4;
3155
- $[9] !== t3 ? (t4 = t3 === void 0 ? [] : t3, $[9] = t3, $[10] = t4) : t4 = $[10];
3156
- const items = t4, ref = useRef(null), wrapperRef = useRef(null), [scrollTop, setScrollTop] = useState(0), [scrollHeight, setScrollHeight] = useState(0), [itemHeight, setItemHeight] = useState(-1), [gapValue, setGapValue] = useState(0);
3157
- let t5;
3158
- $[11] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => ref.current, $[11] = t5) : t5 = $[11], useImperativeHandle(forwardedRef, t5);
3159
- let t6, t7;
3160
- $[12] === Symbol.for("react.memo_cache_sentinel") ? (t6 = () => {
3161
- if (!ref.current)
3162
- return;
3145
+ } = props, ref = useRef(null), wrapperRef = useRef(null), [scrollTop, setScrollTop] = useState(0), [scrollHeight, setScrollHeight] = useState(0), [itemHeight, setItemHeight] = useState(-1), [gapValue, setGapValue] = useState(0);
3146
+ useImperativeHandle(forwardedRef, () => ref.current), useEffect(() => {
3147
+ if (!ref.current) return;
3163
3148
  const scrollEl = findScrollable(ref.current.parentNode);
3164
3149
  if (scrollEl) {
3165
- if (!(scrollEl instanceof HTMLElement))
3166
- return;
3150
+ if (!(scrollEl instanceof HTMLElement)) return;
3167
3151
  const handleScroll = () => {
3168
3152
  setScrollTop(scrollEl.scrollTop);
3169
3153
  };
@@ -3187,10 +3171,9 @@ function VirtualList(props) {
3187
3171
  }), window.addEventListener("resize", handleResize), setScrollHeight(window.innerHeight), handleScroll_0(), () => {
3188
3172
  window.removeEventListener("scroll", handleScroll_0), window.removeEventListener("resize", handleResize);
3189
3173
  };
3190
- }, t7 = [], $[12] = t6, $[13] = t7) : (t6 = $[12], t7 = $[13]), useEffect(t6, t7);
3174
+ }, []);
3191
3175
  const len = items.length, height = itemHeight ? len * (itemHeight + gapValue) - gapValue : 0, fromIndex = height ? Math.max(Math.floor(scrollTop / height * len) - 2, 0) : 0, toIndex = height ? Math.ceil((scrollTop + scrollHeight) / height * len) + 1 : 0;
3192
- let t8, t9;
3193
- $[14] !== fromIndex || $[15] !== gapValue || $[16] !== itemHeight || $[17] !== onChange || $[18] !== scrollHeight || $[19] !== scrollTop || $[20] !== toIndex ? (t8 = () => {
3176
+ useEffect(() => {
3194
3177
  onChange?.({
3195
3178
  fromIndex,
3196
3179
  gap: gapValue,
@@ -3199,63 +3182,23 @@ function VirtualList(props) {
3199
3182
  scrollTop,
3200
3183
  toIndex
3201
3184
  });
3202
- }, t9 = [fromIndex, gapValue, itemHeight, onChange, scrollHeight, scrollTop, toIndex], $[14] = fromIndex, $[15] = gapValue, $[16] = itemHeight, $[17] = onChange, $[18] = scrollHeight, $[19] = scrollTop, $[20] = toIndex, $[21] = t8, $[22] = t9) : (t8 = $[21], t9 = $[22]), useEffect(t8, t9);
3203
- let t10;
3204
- $[23] === Symbol.for("react.memo_cache_sentinel") ? (t10 = () => {
3185
+ }, [fromIndex, gapValue, itemHeight, onChange, scrollHeight, scrollTop, toIndex]), useEffect(() => {
3205
3186
  setItemHeight(-1);
3206
- }, $[23] = t10) : t10 = $[23];
3207
- let t11;
3208
- $[24] !== renderItem ? (t11 = [renderItem], $[24] = renderItem, $[25] = t11) : t11 = $[25], useEffect(t10, t11);
3209
- let t12;
3210
- bb0: {
3211
- if (!renderItem || items.length === 0) {
3212
- t12 = null;
3213
- break bb0;
3214
- }
3215
- if (itemHeight === -1) {
3216
- let t133;
3217
- $[26] === Symbol.for("react.memo_cache_sentinel") ? (t133 = (el) => el ? setItemHeight(el.offsetHeight) : void 0, $[26] = t133) : t133 = $[26];
3218
- let t142;
3219
- $[27] !== items[0] || $[28] !== renderItem ? (t142 = renderItem(items[0]), $[27] = items[0], $[28] = renderItem, $[29] = t142) : t142 = $[29];
3220
- let t152;
3221
- $[30] !== t142 ? (t152 = /* @__PURE__ */ jsx(Box, { ref: t133, insetTop: 0, insetLeft: 0, insetRight: 0, position: "absolute", children: t142 }, 0), $[30] = t142, $[31] = t152) : t152 = $[31];
3222
- let t162;
3223
- $[32] === Symbol.for("react.memo_cache_sentinel") ? (t162 = (el_0) => el_0 ? setGapValue(el_0.offsetHeight) : void 0, $[32] = t162) : t162 = $[32];
3224
- const t17 = vars.space[gap];
3225
- let t18;
3226
- $[33] !== t17 ? (t18 = /* @__PURE__ */ jsx("div", { ref: t162, style: {
3227
- height: t17
3228
- } }), $[33] = t17, $[34] = t18) : t18 = $[34];
3229
- let t19;
3230
- $[35] !== t152 || $[36] !== t18 ? (t19 = [/* @__PURE__ */ jsxs(Fragment, { children: [
3231
- t152,
3232
- t18
3233
- ] })], $[35] = t152, $[36] = t18, $[37] = t19) : t19 = $[37], t12 = t19;
3234
- break bb0;
3235
- }
3236
- let t132;
3237
- if ($[38] !== fromIndex || $[39] !== gapValue || $[40] !== getItemKey || $[41] !== itemHeight || $[42] !== items || $[43] !== renderItem || $[44] !== toIndex) {
3238
- let t142;
3239
- $[46] !== fromIndex || $[47] !== gapValue || $[48] !== getItemKey || $[49] !== itemHeight || $[50] !== renderItem ? (t142 = (item, _itemIndex) => {
3240
- const itemIndex = fromIndex + _itemIndex, node = renderItem(item), key2 = getItemKey ? getItemKey(item, itemIndex) : itemIndex;
3241
- return /* @__PURE__ */ jsx(Box, { insetLeft: 0, insetRight: 0, position: "absolute", style: {
3242
- top: itemIndex * (itemHeight + gapValue)
3243
- }, children: node }, key2);
3244
- }, $[46] = fromIndex, $[47] = gapValue, $[48] = getItemKey, $[49] = itemHeight, $[50] = renderItem, $[51] = t142) : t142 = $[51], t132 = items.slice(fromIndex, toIndex).map(t142), $[38] = fromIndex, $[39] = gapValue, $[40] = getItemKey, $[41] = itemHeight, $[42] = items, $[43] = renderItem, $[44] = toIndex, $[45] = t132;
3245
- } else
3246
- t132 = $[45];
3247
- t12 = t132;
3248
- }
3249
- const children = t12;
3250
- let t13, t14;
3251
- $[52] !== height ? (t14 = {
3187
+ }, [renderItem]);
3188
+ const children = useMemo(() => !renderItem || items.length === 0 ? null : itemHeight === -1 ? [/* @__PURE__ */ jsxs(Fragment, { children: [
3189
+ /* @__PURE__ */ jsx(Box, { ref: (el) => el ? setItemHeight(el.offsetHeight) : void 0, insetTop: 0, insetLeft: 0, insetRight: 0, position: "absolute", children: renderItem(items[0]) }, 0),
3190
+ /* @__PURE__ */ jsx("div", { ref: (el_0) => el_0 ? setGapValue(el_0.offsetHeight) : void 0, style: {
3191
+ height: vars.space[gap]
3192
+ } })
3193
+ ] })] : items.slice(fromIndex, toIndex).map((item, _itemIndex) => {
3194
+ const itemIndex = fromIndex + _itemIndex, node = renderItem(item), key2 = getItemKey ? getItemKey(item, itemIndex) : itemIndex;
3195
+ return /* @__PURE__ */ jsx(Box, { insetLeft: 0, insetRight: 0, position: "absolute", style: {
3196
+ top: itemIndex * (itemHeight + gapValue)
3197
+ }, children: node }, key2);
3198
+ }), [fromIndex, gap, gapValue, getItemKey, itemHeight, items, renderItem, toIndex]), wrapperStyle = useMemo(() => ({
3252
3199
  height
3253
- }, $[52] = height, $[53] = t14) : t14 = $[53], t13 = t14;
3254
- const wrapperStyle = t13;
3255
- let t15;
3256
- $[54] !== children || $[55] !== wrapperStyle ? (t15 = /* @__PURE__ */ jsx("div", { ref: wrapperRef, style: wrapperStyle, children }), $[54] = children, $[55] = wrapperStyle, $[56] = t15) : t15 = $[56];
3257
- let t16;
3258
- return $[57] !== as || $[58] !== rest || $[59] !== t15 ? (t16 = /* @__PURE__ */ jsx(Box, { "data-ui": "VirtualList", ...rest, as, position: "relative", ref, children: t15 }), $[57] = as, $[58] = rest, $[59] = t15, $[60] = t16) : t16 = $[60], t16;
3200
+ }), [height]);
3201
+ return /* @__PURE__ */ jsx(Box, { "data-ui": "VirtualList", ...rest, as, position: "relative", ref, children: /* @__PURE__ */ jsx("div", { ref: wrapperRef, style: wrapperStyle, children }) });
3259
3202
  }
3260
3203
  function findScrollable(parentNode) {
3261
3204
  let _scrollEl = parentNode;
@@ -3318,43 +3261,59 @@ function _temp$3() {
3318
3261
  }
3319
3262
  const DEFAULT_LABEL_ELEMENT = "div";
3320
3263
  function Label(props) {
3321
- const $ = c(26);
3322
- let align, children, className, rest, t0, t1, t2, t3, textOverflowProp;
3264
+ const $ = c(42);
3265
+ let align, children, className, margin, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, maxWidth, rest, t0, t1, t2, t3, textOverflowProp;
3323
3266
  $[0] !== props ? ({
3324
3267
  align,
3325
3268
  as: t0,
3326
3269
  children,
3327
3270
  className,
3271
+ margin,
3272
+ marginX,
3273
+ marginY,
3274
+ marginTop,
3275
+ marginRight,
3276
+ marginBottom,
3277
+ marginLeft,
3278
+ maxWidth,
3328
3279
  muted: t1,
3329
3280
  size: t2,
3330
3281
  textOverflow: textOverflowProp,
3331
3282
  weight: t3,
3332
3283
  ...rest
3333
- } = props, $[0] = props, $[1] = align, $[2] = children, $[3] = className, $[4] = rest, $[5] = t0, $[6] = t1, $[7] = t2, $[8] = t3, $[9] = textOverflowProp) : (align = $[1], children = $[2], className = $[3], rest = $[4], t0 = $[5], t1 = $[6], t2 = $[7], t3 = $[8], textOverflowProp = $[9]);
3284
+ } = props, $[0] = props, $[1] = align, $[2] = children, $[3] = className, $[4] = margin, $[5] = marginBottom, $[6] = marginLeft, $[7] = marginRight, $[8] = marginTop, $[9] = marginX, $[10] = marginY, $[11] = maxWidth, $[12] = rest, $[13] = t0, $[14] = t1, $[15] = t2, $[16] = t3, $[17] = textOverflowProp) : (align = $[1], children = $[2], className = $[3], margin = $[4], marginBottom = $[5], marginLeft = $[6], marginRight = $[7], marginTop = $[8], marginX = $[9], marginY = $[10], maxWidth = $[11], rest = $[12], t0 = $[13], t1 = $[14], t2 = $[15], t3 = $[16], textOverflowProp = $[17]);
3334
3285
  const Element2 = t0 === void 0 ? DEFAULT_LABEL_ELEMENT : t0, muted = t1 === void 0 ? !1 : t1, size2 = t2 === void 0 ? 1 : t2, weight = t3 === void 0 ? "regular" : t3;
3335
3286
  let t4;
3336
- $[10] !== align || $[11] !== className || $[12] !== muted || $[13] !== size2 || $[14] !== weight ? (t4 = label({
3287
+ $[18] !== align || $[19] !== className || $[20] !== margin || $[21] !== marginBottom || $[22] !== marginLeft || $[23] !== marginRight || $[24] !== marginTop || $[25] !== marginX || $[26] !== marginY || $[27] !== maxWidth || $[28] !== muted || $[29] !== size2 || $[30] !== weight ? (t4 = label({
3337
3288
  className,
3338
3289
  align,
3290
+ margin,
3291
+ marginX,
3292
+ marginY,
3293
+ marginTop,
3294
+ marginRight,
3295
+ marginBottom,
3296
+ marginLeft,
3297
+ maxWidth,
3339
3298
  muted,
3340
3299
  size: size2,
3341
3300
  weight
3342
- }), $[10] = align, $[11] = className, $[12] = muted, $[13] = size2, $[14] = weight, $[15] = t4) : t4 = $[15];
3301
+ }), $[18] = align, $[19] = className, $[20] = margin, $[21] = marginBottom, $[22] = marginLeft, $[23] = marginRight, $[24] = marginTop, $[25] = marginX, $[26] = marginY, $[27] = maxWidth, $[28] = muted, $[29] = size2, $[30] = weight, $[31] = t4) : t4 = $[31];
3343
3302
  let t5;
3344
- $[16] !== textOverflowProp ? (t5 = textOverflow({
3303
+ $[32] !== textOverflowProp ? (t5 = textOverflow({
3345
3304
  textOverflow: textOverflowProp
3346
- }), $[16] = textOverflowProp, $[17] = t5) : t5 = $[17];
3305
+ }), $[32] = textOverflowProp, $[33] = t5) : t5 = $[33];
3347
3306
  let t6;
3348
- $[18] !== children || $[19] !== t5 ? (t6 = /* @__PURE__ */ jsx("span", { className: t5, children }), $[18] = children, $[19] = t5, $[20] = t6) : t6 = $[20];
3307
+ $[34] !== children || $[35] !== t5 ? (t6 = /* @__PURE__ */ jsx("span", { className: t5, children }), $[34] = children, $[35] = t5, $[36] = t6) : t6 = $[36];
3349
3308
  let t7;
3350
- return $[21] !== Element2 || $[22] !== rest || $[23] !== t4 || $[24] !== t6 ? (t7 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Label", ...rest, className: t4, children: t6 }), $[21] = Element2, $[22] = rest, $[23] = t4, $[24] = t6, $[25] = t7) : t7 = $[25], t7;
3309
+ return $[37] !== Element2 || $[38] !== rest || $[39] !== t4 || $[40] !== t6 ? (t7 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Label", ...rest, className: t4, children: t6 }), $[37] = Element2, $[38] = rest, $[39] = t4, $[40] = t6, $[41] = t7) : t7 = $[41], t7;
3351
3310
  }
3352
3311
  const DEFAULT_AVATAR_ELEMENT = "span";
3353
3312
  function Avatar(props) {
3354
3313
  const $ = c(50), t0 = props;
3355
- let __unstable_hideInnerStroke, animateArrowFrom, arrowPositionProp, className, initials, onImageLoadError, rest, src, t1, t2, t3, title;
3314
+ let animateArrowFrom, arrowPositionProp, className, hideInnerStroke, initials, onImageLoadError, rest, src, t1, t2, t3, title;
3356
3315
  $[0] !== t0 ? ({
3357
- __unstable_hideInnerStroke,
3316
+ __unstable_hideInnerStroke: hideInnerStroke,
3358
3317
  as: t1,
3359
3318
  className,
3360
3319
  color: t2,
@@ -3366,7 +3325,7 @@ function Avatar(props) {
3366
3325
  animateArrowFrom,
3367
3326
  size: t3,
3368
3327
  ...rest
3369
- } = t0, $[0] = t0, $[1] = __unstable_hideInnerStroke, $[2] = animateArrowFrom, $[3] = arrowPositionProp, $[4] = className, $[5] = initials, $[6] = onImageLoadError, $[7] = rest, $[8] = src, $[9] = t1, $[10] = t2, $[11] = t3, $[12] = title) : (__unstable_hideInnerStroke = $[1], animateArrowFrom = $[2], arrowPositionProp = $[3], className = $[4], initials = $[5], onImageLoadError = $[6], rest = $[7], src = $[8], t1 = $[9], t2 = $[10], t3 = $[11], title = $[12]);
3328
+ } = t0, $[0] = t0, $[1] = animateArrowFrom, $[2] = arrowPositionProp, $[3] = className, $[4] = hideInnerStroke, $[5] = initials, $[6] = onImageLoadError, $[7] = rest, $[8] = src, $[9] = t1, $[10] = t2, $[11] = t3, $[12] = title) : (animateArrowFrom = $[1], arrowPositionProp = $[2], className = $[3], hideInnerStroke = $[4], initials = $[5], onImageLoadError = $[6], rest = $[7], src = $[8], t1 = $[9], t2 = $[10], t3 = $[11], title = $[12]);
3370
3329
  const Element2 = t1 === void 0 ? DEFAULT_AVATAR_ELEMENT : t1, color = t2 === void 0 ? "magenta" : t2, sizeProp = t3 === void 0 ? 1 : t3, size2 = useResponsiveProp(sizeProp), [arrowPosition, setArrowPosition] = useState(animateArrowFrom || arrowPositionProp || "inside"), [imageError, setImageError] = useState(!1);
3371
3330
  let t4, t5;
3372
3331
  $[13] !== arrowPosition || $[14] !== arrowPositionProp ? (t4 = () => {
@@ -3384,35 +3343,35 @@ function Avatar(props) {
3384
3343
  setImageError(!0), onImageLoadError && onImageLoadError(new Error("Avatar: the image failed to load"));
3385
3344
  }, $[20] = onImageLoadError, $[21] = t8) : t8 = $[21];
3386
3345
  const handleImageError = t8;
3387
- let t9, t10;
3388
- $[22] !== size2 ? (t10 = Object.values(size2).map(_temp$2), $[22] = size2, $[23] = t10) : t10 = $[23], t9 = t10;
3389
- const initialsSize = t9, t11 = __unstable_hideInnerStroke ? "" : void 0;
3390
- let t12;
3391
- $[24] !== className || $[25] !== color || $[26] !== sizeProp ? (t12 = avatar({
3346
+ let t9;
3347
+ $[22] !== size2 ? (t9 = Object.values(size2).map(_temp$2), $[22] = size2, $[23] = t9) : t9 = $[23];
3348
+ const initialsSize = t9, t10 = hideInnerStroke ? "" : void 0;
3349
+ let t11;
3350
+ $[24] !== className || $[25] !== color || $[26] !== sizeProp ? (t11 = avatar({
3392
3351
  className,
3393
3352
  color,
3394
3353
  size: sizeProp
3395
- }), $[24] = className, $[25] = color, $[26] = sizeProp, $[27] = t12) : t12 = $[27];
3396
- const t13 = imageError ? "" : void 0;
3354
+ }), $[24] = className, $[25] = color, $[26] = sizeProp, $[27] = t11) : t11 = $[27];
3355
+ const t12 = imageError ? "" : void 0;
3356
+ let t13;
3357
+ $[28] === Symbol.for("react.memo_cache_sentinel") ? (t13 = avatarArrow(), $[28] = t13) : t13 = $[28];
3397
3358
  let t14;
3398
- $[28] === Symbol.for("react.memo_cache_sentinel") ? (t14 = avatarArrow(), $[28] = t14) : t14 = $[28];
3359
+ $[29] !== color ? (t14 = /* @__PURE__ */ jsx("span", { className: t13, children: /* @__PURE__ */ jsx("svg", { width: "11", height: "7", viewBox: "0 0 11 7", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M6.67948 1.50115L11 7L0 7L4.32052 1.50115C4.92109 0.736796 6.07891 0.736795 6.67948 1.50115Z", fill: color }) }) }), $[29] = color, $[30] = t14) : t14 = $[30];
3399
3360
  let t15;
3400
- $[29] !== color ? (t15 = /* @__PURE__ */ jsx("span", { className: t14, children: /* @__PURE__ */ jsx("svg", { width: "11", height: "7", viewBox: "0 0 11 7", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M6.67948 1.50115L11 7L0 7L4.32052 1.50115C4.92109 0.736796 6.07891 0.736795 6.67948 1.50115Z", fill: color }) }) }), $[29] = color, $[30] = t15) : t15 = $[30];
3361
+ $[31] === Symbol.for("react.memo_cache_sentinel") ? (t15 = avatarInitials(), $[31] = t15) : t15 = $[31];
3401
3362
  let t16;
3402
- $[31] === Symbol.for("react.memo_cache_sentinel") ? (t16 = avatarInitials(), $[31] = t16) : t16 = $[31];
3363
+ $[32] !== initials || $[33] !== initialsSize ? (t16 = /* @__PURE__ */ jsx(Box, { alignItems: "center", as: "span", className: t15, display: "flex", justifyContent: "center", position: "absolute", inset: 0, children: /* @__PURE__ */ jsx(Label, { align: "center", as: "span", size: initialsSize, weight: "medium", children: initials }) }), $[32] = initials, $[33] = initialsSize, $[34] = t16) : t16 = $[34];
3403
3364
  let t17;
3404
- $[32] !== initials || $[33] !== initialsSize ? (t17 = /* @__PURE__ */ jsx(Box, { alignItems: "center", as: "span", className: t16, display: "flex", justifyContent: "center", position: "absolute", inset: 0, children: /* @__PURE__ */ jsx(Label, { align: "center", as: "span", size: initialsSize, weight: "medium", children: initials }) }), $[32] = initials, $[33] = initialsSize, $[34] = t17) : t17 = $[34];
3405
- let t18;
3406
- $[35] !== handleImageError || $[36] !== initials || $[37] !== src ? (t18 = src && /* @__PURE__ */ jsxs(Box, { className: avatarImage(), inset: 0, position: "absolute", children: [
3365
+ $[35] !== handleImageError || $[36] !== initials || $[37] !== src ? (t17 = src && /* @__PURE__ */ jsxs(Box, { className: avatarImage(), inset: 0, position: "absolute", children: [
3407
3366
  /* @__PURE__ */ jsx("img", { alt: initials, onError: handleImageError, src }),
3408
3367
  /* @__PURE__ */ jsx("span", { className: avatarImageOutline() })
3409
- ] }), $[35] = handleImageError, $[36] = initials, $[37] = src, $[38] = t18) : t18 = $[38];
3410
- let t19;
3411
- return $[39] !== Element2 || $[40] !== arrowPosition || $[41] !== rest || $[42] !== t11 || $[43] !== t12 || $[44] !== t13 || $[45] !== t15 || $[46] !== t17 || $[47] !== t18 || $[48] !== title ? (t19 = /* @__PURE__ */ jsxs(Element2, { "data-hide-inner-stroke": t11, "data-ui": "Avatar", ...rest, "aria-label": title, className: t12, "data-arrow-position": arrowPosition, "data-image-error": t13, title, children: [
3412
- t15,
3413
- t17,
3414
- t18
3415
- ] }), $[39] = Element2, $[40] = arrowPosition, $[41] = rest, $[42] = t11, $[43] = t12, $[44] = t13, $[45] = t15, $[46] = t17, $[47] = t18, $[48] = title, $[49] = t19) : t19 = $[49], t19;
3368
+ ] }), $[35] = handleImageError, $[36] = initials, $[37] = src, $[38] = t17) : t17 = $[38];
3369
+ let t18;
3370
+ return $[39] !== Element2 || $[40] !== arrowPosition || $[41] !== rest || $[42] !== t10 || $[43] !== t11 || $[44] !== t12 || $[45] !== t14 || $[46] !== t16 || $[47] !== t17 || $[48] !== title ? (t18 = /* @__PURE__ */ jsxs(Element2, { "data-hide-inner-stroke": t10, "data-ui": "Avatar", ...rest, "aria-label": title, className: t11, "data-arrow-position": arrowPosition, "data-image-error": t12, title, children: [
3371
+ t14,
3372
+ t16,
3373
+ t17
3374
+ ] }), $[39] = Element2, $[40] = arrowPosition, $[41] = rest, $[42] = t10, $[43] = t11, $[44] = t12, $[45] = t14, $[46] = t16, $[47] = t17, $[48] = title, $[49] = t18) : t18 = $[49], t18;
3416
3375
  }
3417
3376
  function _temp$2(s) {
3418
3377
  return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
@@ -3429,25 +3388,25 @@ function AvatarCounter(props) {
3429
3388
  ...rest
3430
3389
  } = t0, $[0] = t0, $[1] = className, $[2] = count, $[3] = rest, $[4] = t1, $[5] = t2) : (className = $[1], count = $[2], rest = $[3], t1 = $[4], t2 = $[5]);
3431
3390
  const as = t1 === void 0 ? DEFAULT_AVATAR_COUNTER_ELEMENT : t1, size2 = useResponsiveProp(t2 === void 0 ? 1 : t2);
3432
- let t3, t4;
3433
- $[6] !== size2 ? (t4 = Object.values(size2).map(_temp$1), $[6] = size2, $[7] = t4) : t4 = $[7], t3 = t4;
3391
+ let t3;
3392
+ $[6] !== size2 ? (t3 = Object.values(size2).map(_temp$1), $[6] = size2, $[7] = t3) : t3 = $[7];
3434
3393
  const labelSize = t3;
3435
- let t5;
3436
- $[8] !== className || $[9] !== size2 ? (t5 = avatarCounter({
3394
+ let t4;
3395
+ $[8] !== className || $[9] !== size2 ? (t4 = avatarCounter({
3437
3396
  className,
3438
3397
  size: size2
3439
- }), $[8] = className, $[9] = size2, $[10] = t5) : t5 = $[10];
3398
+ }), $[8] = className, $[9] = size2, $[10] = t4) : t4 = $[10];
3399
+ let t5;
3400
+ $[11] !== count || $[12] !== labelSize ? (t5 = /* @__PURE__ */ jsx(Label, { align: "center", as: "span", size: labelSize, weight: "medium", children: count }), $[11] = count, $[12] = labelSize, $[13] = t5) : t5 = $[13];
3440
3401
  let t6;
3441
- $[11] !== count || $[12] !== labelSize ? (t6 = /* @__PURE__ */ jsx(Label, { align: "center", as: "span", size: labelSize, weight: "medium", children: count }), $[11] = count, $[12] = labelSize, $[13] = t6) : t6 = $[13];
3442
- let t7;
3443
- return $[14] !== as || $[15] !== rest || $[16] !== t5 || $[17] !== t6 ? (t7 = /* @__PURE__ */ jsx(Box, { "data-ui": "AvatarCounter", ...rest, alignItems: "center", as, className: t5, display: "flex", flex: "none", justifyContent: "center", paddingX: 2, sizing: "border", children: t6 }), $[14] = as, $[15] = rest, $[16] = t5, $[17] = t6, $[18] = t7) : t7 = $[18], t7;
3402
+ return $[14] !== as || $[15] !== rest || $[16] !== t4 || $[17] !== t5 ? (t6 = /* @__PURE__ */ jsx(Box, { "data-ui": "AvatarCounter", ...rest, alignItems: "center", as, className: t4, display: "flex", flex: "none", justifyContent: "center", paddingX: 2, sizing: "border", children: t5 }), $[14] = as, $[15] = rest, $[16] = t4, $[17] = t5, $[18] = t6) : t6 = $[18], t6;
3444
3403
  }
3445
3404
  function _temp$1(s) {
3446
3405
  return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
3447
3406
  }
3448
3407
  const DEFAULT_AVATAR_STACK_ELEMENT = "span";
3449
3408
  function AvatarStack(props) {
3450
- const $ = c(20), t0 = props;
3409
+ const $ = c(27), t0 = props;
3451
3410
  let childrenProp, className, rest, t1, t2, t3;
3452
3411
  $[0] !== t0 ? ({
3453
3412
  as: t1,
@@ -3463,18 +3422,22 @@ function AvatarStack(props) {
3463
3422
  className,
3464
3423
  size: size2
3465
3424
  }), $[7] = className, $[8] = size2, $[9] = t6) : t6 = $[9];
3466
- const t7 = "flex", t8 = "flex-start", t9 = len === 0 && /* @__PURE__ */ jsx(AvatarCounter, { count: len, size: size2 }), t10 = len !== 0 && extraCount > 1 && /* @__PURE__ */ jsx(AvatarCounter, { count: extraCount, size: size2 });
3425
+ const t7 = "flex", t8 = "flex-start";
3426
+ let t9;
3427
+ $[10] !== len || $[11] !== size2 ? (t9 = len === 0 && /* @__PURE__ */ jsx(AvatarCounter, { count: len, size: size2 }), $[10] = len, $[11] = size2, $[12] = t9) : t9 = $[12];
3428
+ let t10;
3429
+ $[13] !== extraCount || $[14] !== len || $[15] !== size2 ? (t10 = len !== 0 && extraCount > 1 && /* @__PURE__ */ jsx(AvatarCounter, { count: extraCount, size: size2 }), $[13] = extraCount, $[14] = len, $[15] = size2, $[16] = t10) : t10 = $[16];
3467
3430
  let t11;
3468
- $[10] !== size2 ? (t11 = (child, childIndex) => /* @__PURE__ */ jsx(Fragment$1, { children: cloneElement(child, {
3431
+ $[17] !== size2 ? (t11 = (child, childIndex) => /* @__PURE__ */ jsx(Fragment$1, { children: cloneElement(child, {
3469
3432
  size: size2
3470
- }) }, String(childIndex)), $[10] = size2, $[11] = t11) : t11 = $[11];
3433
+ }) }, String(childIndex)), $[17] = size2, $[18] = t11) : t11 = $[18];
3471
3434
  const t12 = visibleChildren.map(t11);
3472
3435
  let t13;
3473
- return $[12] !== T0 || $[13] !== as || $[14] !== rest || $[15] !== t10 || $[16] !== t12 || $[17] !== t6 || $[18] !== t9 ? (t13 = /* @__PURE__ */ jsxs(T0, { "data-ui": t4, ...rest, alignItems: t5, as, className: t6, display: t7, justifyContent: t8, children: [
3436
+ return $[19] !== T0 || $[20] !== as || $[21] !== rest || $[22] !== t10 || $[23] !== t12 || $[24] !== t6 || $[25] !== t9 ? (t13 = /* @__PURE__ */ jsxs(T0, { "data-ui": t4, ...rest, alignItems: t5, as, className: t6, display: t7, justifyContent: t8, children: [
3474
3437
  t9,
3475
3438
  t10,
3476
3439
  t12
3477
- ] }), $[12] = T0, $[13] = as, $[14] = rest, $[15] = t10, $[16] = t12, $[17] = t6, $[18] = t9, $[19] = t13) : t13 = $[19], t13;
3440
+ ] }), $[19] = T0, $[20] = as, $[21] = rest, $[22] = t10, $[23] = t12, $[24] = t6, $[25] = t9, $[26] = t13) : t13 = $[26], t13;
3478
3441
  }
3479
3442
  const DEFAULT_BADGE_ELEMENT = "span";
3480
3443
  function Badge(props) {
@@ -3544,69 +3507,101 @@ function Checkbox(props) {
3544
3507
  t11
3545
3508
  ] }), $[25] = style, $[26] = t10, $[27] = t5, $[28] = t12) : t12 = $[28], t12;
3546
3509
  }
3547
- const LazyRefractor = lazy(() => import("./_chunks-es/refractor.js")), DEFAULT_CODE_ELEMENT = "pre";
3510
+ const LazyRefractor = lazy(() => import("./_chunks-es/Refractor.js")), DEFAULT_CODE_ELEMENT = "pre";
3548
3511
  function Code(props) {
3549
- const $ = c(25), t0 = props;
3550
- let children, className, languageProp, rest, t1, t2, t3;
3512
+ const $ = c(41), t0 = props;
3513
+ let children, className, languageProp, margin, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, maxWidth, rest, t1, t2, t3;
3551
3514
  $[0] !== t0 ? ({
3552
3515
  as: t1,
3553
3516
  children,
3554
3517
  className,
3555
3518
  language: languageProp,
3519
+ margin,
3520
+ marginX,
3521
+ marginY,
3522
+ marginTop,
3523
+ marginRight,
3524
+ marginBottom,
3525
+ marginLeft,
3526
+ maxWidth,
3556
3527
  size: t2,
3557
3528
  weight: t3,
3558
3529
  ...rest
3559
- } = t0, $[0] = t0, $[1] = children, $[2] = className, $[3] = languageProp, $[4] = rest, $[5] = t1, $[6] = t2, $[7] = t3) : (children = $[1], className = $[2], languageProp = $[3], rest = $[4], t1 = $[5], t2 = $[6], t3 = $[7]);
3530
+ } = t0, $[0] = t0, $[1] = children, $[2] = className, $[3] = languageProp, $[4] = margin, $[5] = marginBottom, $[6] = marginLeft, $[7] = marginRight, $[8] = marginTop, $[9] = marginX, $[10] = marginY, $[11] = maxWidth, $[12] = rest, $[13] = t1, $[14] = t2, $[15] = t3) : (children = $[1], className = $[2], languageProp = $[3], margin = $[4], marginBottom = $[5], marginLeft = $[6], marginRight = $[7], marginTop = $[8], marginX = $[9], marginY = $[10], maxWidth = $[11], rest = $[12], t1 = $[13], t2 = $[14], t3 = $[15]);
3560
3531
  const Element2 = t1 === void 0 ? DEFAULT_CODE_ELEMENT : t1, size2 = t2 === void 0 ? 2 : t2, weight = t3 === void 0 ? "regular" : t3, language = typeof languageProp == "string" ? languageProp : void 0;
3561
3532
  let t4;
3562
- $[8] !== className || $[9] !== size2 || $[10] !== weight ? (t4 = code({
3533
+ $[16] !== className || $[17] !== margin || $[18] !== marginBottom || $[19] !== marginLeft || $[20] !== marginRight || $[21] !== marginTop || $[22] !== marginX || $[23] !== marginY || $[24] !== maxWidth || $[25] !== size2 || $[26] !== weight ? (t4 = code({
3563
3534
  className,
3535
+ margin,
3536
+ marginX,
3537
+ marginY,
3538
+ marginTop,
3539
+ marginRight,
3540
+ marginBottom,
3541
+ marginLeft,
3542
+ maxWidth,
3564
3543
  size: size2,
3565
3544
  weight
3566
- }), $[8] = className, $[9] = size2, $[10] = weight, $[11] = t4) : t4 = $[11];
3545
+ }), $[16] = className, $[17] = margin, $[18] = marginBottom, $[19] = marginLeft, $[20] = marginRight, $[21] = marginTop, $[22] = marginX, $[23] = marginY, $[24] = maxWidth, $[25] = size2, $[26] = weight, $[27] = t4) : t4 = $[27];
3567
3546
  let t5;
3568
- $[12] !== children ? (t5 = /* @__PURE__ */ jsx("code", { children }), $[12] = children, $[13] = t5) : t5 = $[13];
3547
+ $[28] !== children ? (t5 = /* @__PURE__ */ jsx("code", { children }), $[28] = children, $[29] = t5) : t5 = $[29];
3569
3548
  let t6;
3570
- $[14] !== children || $[15] !== language ? (t6 = /* @__PURE__ */ jsx(LazyRefractor, { language, value: children }), $[14] = children, $[15] = language, $[16] = t6) : t6 = $[16];
3549
+ $[30] !== children || $[31] !== language ? (t6 = /* @__PURE__ */ jsx(LazyRefractor, { language, value: children }), $[30] = children, $[31] = language, $[32] = t6) : t6 = $[32];
3571
3550
  let t7;
3572
- $[17] !== t5 || $[18] !== t6 ? (t7 = /* @__PURE__ */ jsx(Suspense, { fallback: t5, children: t6 }), $[17] = t5, $[18] = t6, $[19] = t7) : t7 = $[19];
3551
+ $[33] !== t5 || $[34] !== t6 ? (t7 = /* @__PURE__ */ jsx(Suspense, { fallback: t5, children: t6 }), $[33] = t5, $[34] = t6, $[35] = t7) : t7 = $[35];
3573
3552
  let t8;
3574
- return $[20] !== Element2 || $[21] !== rest || $[22] !== t4 || $[23] !== t7 ? (t8 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Code", ...rest, className: t4, children: t7 }), $[20] = Element2, $[21] = rest, $[22] = t4, $[23] = t7, $[24] = t8) : t8 = $[24], t8;
3553
+ return $[36] !== Element2 || $[37] !== rest || $[38] !== t4 || $[39] !== t7 ? (t8 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Code", ...rest, className: t4, children: t7 }), $[36] = Element2, $[37] = rest, $[38] = t4, $[39] = t7, $[40] = t8) : t8 = $[40], t8;
3575
3554
  }
3576
3555
  const DEFAULT_HEADING_ELEMENT = "div";
3577
3556
  function Heading(props) {
3578
- const $ = c(28), t0 = props;
3579
- let align, children, className, flex, rest, t1, t2, t3, t4, textOverflowProp;
3557
+ const $ = c(44), t0 = props;
3558
+ let align, children, className, flex, margin, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, maxWidth, rest, t1, t2, t3, t4, textOverflowProp;
3580
3559
  $[0] !== t0 ? ({
3581
3560
  align,
3582
3561
  as: t1,
3583
3562
  children,
3584
3563
  className,
3585
3564
  flex,
3565
+ margin,
3566
+ marginX,
3567
+ marginY,
3568
+ marginTop,
3569
+ marginRight,
3570
+ marginBottom,
3571
+ marginLeft,
3572
+ maxWidth,
3586
3573
  muted: t2,
3587
3574
  size: t3,
3588
3575
  textOverflow: textOverflowProp,
3589
3576
  weight: t4,
3590
3577
  ...rest
3591
- } = t0, $[0] = t0, $[1] = align, $[2] = children, $[3] = className, $[4] = flex, $[5] = rest, $[6] = t1, $[7] = t2, $[8] = t3, $[9] = t4, $[10] = textOverflowProp) : (align = $[1], children = $[2], className = $[3], flex = $[4], rest = $[5], t1 = $[6], t2 = $[7], t3 = $[8], t4 = $[9], textOverflowProp = $[10]);
3578
+ } = t0, $[0] = t0, $[1] = align, $[2] = children, $[3] = className, $[4] = flex, $[5] = margin, $[6] = marginBottom, $[7] = marginLeft, $[8] = marginRight, $[9] = marginTop, $[10] = marginX, $[11] = marginY, $[12] = maxWidth, $[13] = rest, $[14] = t1, $[15] = t2, $[16] = t3, $[17] = t4, $[18] = textOverflowProp) : (align = $[1], children = $[2], className = $[3], flex = $[4], margin = $[5], marginBottom = $[6], marginLeft = $[7], marginRight = $[8], marginTop = $[9], marginX = $[10], marginY = $[11], maxWidth = $[12], rest = $[13], t1 = $[14], t2 = $[15], t3 = $[16], t4 = $[17], textOverflowProp = $[18]);
3592
3579
  const Element2 = t1 === void 0 ? DEFAULT_HEADING_ELEMENT : t1, muted = t2 === void 0 ? !1 : t2, size2 = t3 === void 0 ? 2 : t3, weight = t4 === void 0 ? "regular" : t4;
3593
3580
  let t5;
3594
- $[11] !== align || $[12] !== className || $[13] !== flex || $[14] !== muted || $[15] !== size2 || $[16] !== weight ? (t5 = heading({
3581
+ $[19] !== align || $[20] !== className || $[21] !== flex || $[22] !== margin || $[23] !== marginBottom || $[24] !== marginLeft || $[25] !== marginRight || $[26] !== marginTop || $[27] !== marginX || $[28] !== marginY || $[29] !== maxWidth || $[30] !== muted || $[31] !== size2 || $[32] !== weight ? (t5 = heading({
3595
3582
  className,
3596
3583
  align,
3597
3584
  flex,
3585
+ margin,
3586
+ marginX,
3587
+ marginY,
3588
+ marginTop,
3589
+ marginRight,
3590
+ marginBottom,
3591
+ marginLeft,
3592
+ maxWidth,
3598
3593
  muted,
3599
3594
  size: size2,
3600
3595
  weight
3601
- }), $[11] = align, $[12] = className, $[13] = flex, $[14] = muted, $[15] = size2, $[16] = weight, $[17] = t5) : t5 = $[17];
3596
+ }), $[19] = align, $[20] = className, $[21] = flex, $[22] = margin, $[23] = marginBottom, $[24] = marginLeft, $[25] = marginRight, $[26] = marginTop, $[27] = marginX, $[28] = marginY, $[29] = maxWidth, $[30] = muted, $[31] = size2, $[32] = weight, $[33] = t5) : t5 = $[33];
3602
3597
  let t6;
3603
- $[18] !== textOverflowProp ? (t6 = textOverflow({
3598
+ $[34] !== textOverflowProp ? (t6 = textOverflow({
3604
3599
  textOverflow: textOverflowProp
3605
- }), $[18] = textOverflowProp, $[19] = t6) : t6 = $[19];
3600
+ }), $[34] = textOverflowProp, $[35] = t6) : t6 = $[35];
3606
3601
  let t7;
3607
- $[20] !== children || $[21] !== t6 ? (t7 = /* @__PURE__ */ jsx("span", { className: t6, children }), $[20] = children, $[21] = t6, $[22] = t7) : t7 = $[22];
3602
+ $[36] !== children || $[37] !== t6 ? (t7 = /* @__PURE__ */ jsx("span", { className: t6, children }), $[36] = children, $[37] = t6, $[38] = t7) : t7 = $[38];
3608
3603
  let t8;
3609
- return $[23] !== Element2 || $[24] !== rest || $[25] !== t5 || $[26] !== t7 ? (t8 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Heading", ...rest, className: t5, children: t7 }), $[23] = Element2, $[24] = rest, $[25] = t5, $[26] = t7, $[27] = t8) : t8 = $[27], t8;
3604
+ return $[39] !== Element2 || $[40] !== rest || $[41] !== t5 || $[42] !== t7 ? (t8 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Heading", ...rest, className: t5, children: t7 }), $[39] = Element2, $[40] = rest, $[41] = t5, $[42] = t7, $[43] = t8) : t8 = $[43], t8;
3610
3605
  }
3611
3606
  const DEFAULT_INLINE_ELEMENT = "div";
3612
3607
  function Inline(props) {
@@ -3651,73 +3646,74 @@ function Radio(props) {
3651
3646
  let t9;
3652
3647
  $[20] === Symbol.for("react.memo_cache_sentinel") ? (t9 = /* @__PURE__ */ jsx("span", { className: radioPresentation() }), $[20] = t9) : t9 = $[20];
3653
3648
  let t10;
3654
- return $[21] !== style || $[22] !== t3 || $[23] !== t8 ? (t10 = /* @__PURE__ */ jsxs("div", { className: t3, "data-ui": "Radio", style, children: [
3649
+ return $[21] !== style || $[22] !== t3 || $[23] !== t8 ? (t10 = /* @__PURE__ */ jsxs("span", { className: t3, "data-ui": "Radio", style, children: [
3655
3650
  t8,
3656
3651
  t9
3657
3652
  ] }), $[21] = style, $[22] = t3, $[23] = t8, $[24] = t10) : t10 = $[24], t10;
3658
3653
  }
3659
3654
  const DEFAULT_SELECT_ELEMENT = "select";
3660
3655
  function Select(props) {
3661
- const $ = c(37), t0 = props;
3662
- let children, customValidity, disabled, forwardedRef, readOnly, rest, t1, t2, t3, t4, t5, t6;
3656
+ const $ = c(41), t0 = props;
3657
+ let children, customValidity, disabled, flex, forwardedRef, readOnly, rest, t1, t2, t3, t4, t5, t6, t7;
3663
3658
  $[0] !== t0 ? ({
3664
3659
  as: t1,
3665
3660
  border: t2,
3666
3661
  children,
3667
3662
  customValidity,
3668
3663
  disabled,
3664
+ flex,
3669
3665
  fontSize: t3,
3670
3666
  gap: t4,
3671
3667
  padding: t5,
3672
3668
  radius: t6,
3673
3669
  readOnly,
3674
3670
  ref: forwardedRef,
3671
+ width: t7,
3675
3672
  ...rest
3676
- } = t0, $[0] = t0, $[1] = children, $[2] = customValidity, $[3] = disabled, $[4] = forwardedRef, $[5] = readOnly, $[6] = rest, $[7] = t1, $[8] = t2, $[9] = t3, $[10] = t4, $[11] = t5, $[12] = t6) : (children = $[1], customValidity = $[2], disabled = $[3], forwardedRef = $[4], readOnly = $[5], rest = $[6], t1 = $[7], t2 = $[8], t3 = $[9], t4 = $[10], t5 = $[11], t6 = $[12]);
3677
- const Element2 = t1 === void 0 ? DEFAULT_SELECT_ELEMENT : t1, border = t2 === void 0 ? !0 : t2, fontSize = t3 === void 0 ? 2 : t3, gap = t4 === void 0 ? 2 : t4, padding = t5 === void 0 ? 3 : t5, radius = t6 === void 0 ? 1 : t6, ref = useRef(null);
3678
- let t7;
3679
- $[13] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => ref.current, $[13] = t7) : t7 = $[13], useImperativeHandle(forwardedRef, t7), useCustomValidity(ref, customValidity);
3673
+ } = t0, $[0] = t0, $[1] = children, $[2] = customValidity, $[3] = disabled, $[4] = flex, $[5] = forwardedRef, $[6] = readOnly, $[7] = rest, $[8] = t1, $[9] = t2, $[10] = t3, $[11] = t4, $[12] = t5, $[13] = t6, $[14] = t7) : (children = $[1], customValidity = $[2], disabled = $[3], flex = $[4], forwardedRef = $[5], readOnly = $[6], rest = $[7], t1 = $[8], t2 = $[9], t3 = $[10], t4 = $[11], t5 = $[12], t6 = $[13], t7 = $[14]);
3674
+ const Element2 = t1 === void 0 ? DEFAULT_SELECT_ELEMENT : t1, border = t2 === void 0 ? !0 : t2, fontSize = t3 === void 0 ? 2 : t3, gap = t4 === void 0 ? 2 : t4, padding = t5 === void 0 ? 3 : t5, radius = t6 === void 0 ? 1 : t6, width = t7 === void 0 ? "fill" : t7, ref = useRef(null);
3680
3675
  let t8;
3681
- $[14] !== border || $[15] !== fontSize || $[16] !== gap || $[17] !== padding || $[18] !== radius ? (t8 = select({
3676
+ $[15] === Symbol.for("react.memo_cache_sentinel") ? (t8 = () => ref.current, $[15] = t8) : t8 = $[15], useImperativeHandle(forwardedRef, t8), useCustomValidity(ref, customValidity);
3677
+ let t9;
3678
+ $[16] !== border || $[17] !== flex || $[18] !== fontSize || $[19] !== gap || $[20] !== padding || $[21] !== radius || $[22] !== width ? (t9 = select({
3682
3679
  border,
3683
3680
  fontSize,
3681
+ flex,
3684
3682
  gap,
3685
3683
  padding,
3686
- radius
3687
- }), $[14] = border, $[15] = fontSize, $[16] = gap, $[17] = padding, $[18] = radius, $[19] = t8) : t8 = $[19];
3688
- let t9;
3689
- $[20] === Symbol.for("react.memo_cache_sentinel") ? (t9 = _inputElement(), $[20] = t9) : t9 = $[20];
3690
- const t10 = disabled || readOnly;
3691
- let t11;
3692
- $[21] !== Element2 || $[22] !== children || $[23] !== rest || $[24] !== t10 ? (t11 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t9, disabled: t10, ref, children }), $[21] = Element2, $[22] = children, $[23] = rest, $[24] = t10, $[25] = t11) : t11 = $[25];
3684
+ radius,
3685
+ width
3686
+ }), $[16] = border, $[17] = flex, $[18] = fontSize, $[19] = gap, $[20] = padding, $[21] = radius, $[22] = width, $[23] = t9) : t9 = $[23];
3687
+ let t10;
3688
+ $[24] === Symbol.for("react.memo_cache_sentinel") ? (t10 = _inputElement(), $[24] = t10) : t10 = $[24];
3689
+ const t11 = disabled || readOnly;
3693
3690
  let t12;
3694
- $[26] === Symbol.for("react.memo_cache_sentinel") ? (t12 = selectPresentation(), $[26] = t12) : t12 = $[26];
3691
+ $[25] !== Element2 || $[26] !== children || $[27] !== rest || $[28] !== t11 ? (t12 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t10, disabled: t11, ref, children }), $[25] = Element2, $[26] = children, $[27] = rest, $[28] = t11, $[29] = t12) : t12 = $[29];
3695
3692
  let t13;
3696
- $[27] === Symbol.for("react.memo_cache_sentinel") ? (t13 = /* @__PURE__ */ jsx(ChevronDownIcon, {}), $[27] = t13) : t13 = $[27];
3693
+ $[30] === Symbol.for("react.memo_cache_sentinel") ? (t13 = selectPresentation(), $[30] = t13) : t13 = $[30];
3697
3694
  let t14;
3698
- $[28] !== fontSize ? (t14 = /* @__PURE__ */ jsx(Text, { size: fontSize, children: t13 }), $[28] = fontSize, $[29] = t14) : t14 = $[29];
3695
+ $[31] === Symbol.for("react.memo_cache_sentinel") ? (t14 = /* @__PURE__ */ jsx(ChevronDownIcon, {}), $[31] = t14) : t14 = $[31];
3699
3696
  let t15;
3700
- $[30] !== padding || $[31] !== t14 ? (t15 = /* @__PURE__ */ jsx("span", { className: t12, children: /* @__PURE__ */ jsx(Box, { as: "span", display: "inline-block", padding, children: t14 }) }), $[30] = padding, $[31] = t14, $[32] = t15) : t15 = $[32];
3697
+ $[32] !== fontSize ? (t15 = /* @__PURE__ */ jsx(Text, { size: fontSize, children: t14 }), $[32] = fontSize, $[33] = t15) : t15 = $[33];
3701
3698
  let t16;
3702
- return $[33] !== t11 || $[34] !== t15 || $[35] !== t8 ? (t16 = /* @__PURE__ */ jsxs("div", { "data-ui": "Select", className: t8, "data-icon-right": "", children: [
3703
- t11,
3704
- t15
3705
- ] }), $[33] = t11, $[34] = t15, $[35] = t8, $[36] = t16) : t16 = $[36], t16;
3699
+ $[34] !== padding || $[35] !== t15 ? (t16 = /* @__PURE__ */ jsx("span", { className: t13, children: /* @__PURE__ */ jsx(Box, { as: "span", display: "inline-block", padding, children: t15 }) }), $[34] = padding, $[35] = t15, $[36] = t16) : t16 = $[36];
3700
+ let t17;
3701
+ return $[37] !== t12 || $[38] !== t16 || $[39] !== t9 ? (t17 = /* @__PURE__ */ jsxs("span", { "data-ui": "Select", className: t9, "data-icon-right": "", children: [
3702
+ t12,
3703
+ t16
3704
+ ] }), $[37] = t12, $[38] = t16, $[39] = t9, $[40] = t17) : t17 = $[40], t17;
3706
3705
  }
3707
3706
  const DEFAULT_SKELETON_ELEMENT = "div";
3708
3707
  function Skeleton(props) {
3709
- const $ = c(18), t0 = props;
3710
- let className, delay, rest, t1, t2;
3711
- $[0] !== t0 ? ({
3712
- as: t1,
3713
- animated: t2,
3708
+ const $ = c(9), {
3709
+ as: t0,
3710
+ animated: t1,
3714
3711
  className,
3715
3712
  delay,
3716
3713
  ...rest
3717
- } = t0, $[0] = t0, $[1] = className, $[2] = delay, $[3] = rest, $[4] = t1, $[5] = t2) : (className = $[1], delay = $[2], rest = $[3], t1 = $[4], t2 = $[5]);
3718
- const As = t1 === void 0 ? DEFAULT_SKELETON_ELEMENT : t1, animated = t2 === void 0 ? !1 : t2, [visible, setVisible] = useState(!delay);
3719
- let t3, t4;
3720
- $[6] !== delay ? (t3 = () => {
3714
+ } = props, As = t0 === void 0 ? DEFAULT_SKELETON_ELEMENT : t0, animated = t1 === void 0 ? !1 : t1, [visible, setVisible] = useState(!delay);
3715
+ let t2, t3;
3716
+ $[0] !== delay ? (t2 = () => {
3721
3717
  if (!delay)
3722
3718
  return setVisible(!0);
3723
3719
  const timeout = setTimeout(() => {
@@ -3726,15 +3722,13 @@ function Skeleton(props) {
3726
3722
  return () => {
3727
3723
  clearTimeout(timeout);
3728
3724
  };
3729
- }, t4 = [delay], $[6] = delay, $[7] = t3, $[8] = t4) : (t3 = $[7], t4 = $[8]), useEffect(t3, t4);
3730
- let t5;
3731
- $[9] !== className || $[10] !== rest ? (t5 = skeleton({
3725
+ }, t3 = [delay], $[0] = delay, $[1] = t2, $[2] = t3) : (t2 = $[1], t3 = $[2]), useEffect(t2, t3);
3726
+ const t4 = "Skeleton", t5 = skeleton({
3732
3727
  className,
3733
3728
  ...rest
3734
- }), $[9] = className, $[10] = rest, $[11] = t5) : t5 = $[11];
3735
- const t6 = animated ? "" : void 0, t7 = visible ? "" : void 0;
3729
+ }), t6 = animated ? "" : void 0, t7 = visible ? "" : void 0;
3736
3730
  let t8;
3737
- return $[12] !== As || $[13] !== rest || $[14] !== t5 || $[15] !== t6 || $[16] !== t7 ? (t8 = /* @__PURE__ */ jsx(As, { "data-ui": "Skeleton", ...rest, className: t5, "data-animated": t6, "data-visible": t7 }), $[12] = As, $[13] = rest, $[14] = t5, $[15] = t6, $[16] = t7, $[17] = t8) : t8 = $[17], t8;
3731
+ return $[3] !== As || $[4] !== rest || $[5] !== t5 || $[6] !== t6 || $[7] !== t7 ? (t8 = /* @__PURE__ */ jsx(As, { "data-ui": t4, ...rest, className: t5, "data-animated": t6, "data-visible": t7 }), $[3] = As, $[4] = rest, $[5] = t5, $[6] = t6, $[7] = t7, $[8] = t8) : t8 = $[8], t8;
3738
3732
  }
3739
3733
  const DEFAULT_CODE_SKELETON_ELEMENT = "div";
3740
3734
  function CodeSkeleton(props) {
@@ -3828,8 +3822,8 @@ function SrOnly(props) {
3828
3822
  }
3829
3823
  const DEFAULT_SWITCH_ELEMENT = "input";
3830
3824
  function Switch(props) {
3831
- const $ = c(26), t0 = props;
3832
- let className, disabled, forwardedRef, indeterminate, readOnly, rest, style, t1;
3825
+ const $ = c(24), t0 = props;
3826
+ let className, disabled, forwardedRef, indeterminate, readOnly, rest, t1;
3833
3827
  $[0] !== t0 ? ({
3834
3828
  as: t1,
3835
3829
  className,
@@ -3837,78 +3831,83 @@ function Switch(props) {
3837
3831
  indeterminate,
3838
3832
  readOnly,
3839
3833
  ref: forwardedRef,
3840
- style,
3841
3834
  ...rest
3842
- } = t0, $[0] = t0, $[1] = className, $[2] = disabled, $[3] = forwardedRef, $[4] = indeterminate, $[5] = readOnly, $[6] = rest, $[7] = style, $[8] = t1) : (className = $[1], disabled = $[2], forwardedRef = $[3], indeterminate = $[4], readOnly = $[5], rest = $[6], style = $[7], t1 = $[8]);
3835
+ } = t0, $[0] = t0, $[1] = className, $[2] = disabled, $[3] = forwardedRef, $[4] = indeterminate, $[5] = readOnly, $[6] = rest, $[7] = t1) : (className = $[1], disabled = $[2], forwardedRef = $[3], indeterminate = $[4], readOnly = $[5], rest = $[6], t1 = $[7]);
3843
3836
  const Element2 = t1 === void 0 ? DEFAULT_SWITCH_ELEMENT : t1, ref = useRef(null);
3844
3837
  let t2;
3845
- $[9] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => ref.current, $[9] = t2) : t2 = $[9], useImperativeHandle(forwardedRef, t2);
3838
+ $[8] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => ref.current, $[8] = t2) : t2 = $[8], useImperativeHandle(forwardedRef, t2);
3846
3839
  let t3, t4;
3847
- $[10] !== indeterminate ? (t3 = () => {
3840
+ $[9] !== indeterminate ? (t3 = () => {
3848
3841
  ref.current && (ref.current.indeterminate = indeterminate || !1);
3849
- }, t4 = [indeterminate], $[10] = indeterminate, $[11] = t3, $[12] = t4) : (t3 = $[11], t4 = $[12]), useEffect(t3, t4);
3842
+ }, t4 = [indeterminate], $[9] = indeterminate, $[10] = t3, $[11] = t4) : (t3 = $[10], t4 = $[11]), useEffect(t3, t4);
3850
3843
  let t5;
3851
- $[13] !== className ? (t5 = _switch({
3844
+ $[12] !== className ? (t5 = _switch({
3852
3845
  className
3853
- }), $[13] = className, $[14] = t5) : t5 = $[14];
3846
+ }), $[12] = className, $[13] = t5) : t5 = $[13];
3854
3847
  let t6;
3855
- $[15] === Symbol.for("react.memo_cache_sentinel") ? (t6 = _switchElement(), $[15] = t6) : t6 = $[15];
3848
+ $[14] === Symbol.for("react.memo_cache_sentinel") ? (t6 = _switchElement(), $[14] = t6) : t6 = $[14];
3856
3849
  const t7 = !disabled && readOnly ? "" : void 0, t8 = disabled || readOnly;
3857
3850
  let t9;
3858
- $[16] !== Element2 || $[17] !== rest || $[18] !== t7 || $[19] !== t8 ? (t9 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t6, "data-read-only": t7, disabled: t8, type: "checkbox", ref }), $[16] = Element2, $[17] = rest, $[18] = t7, $[19] = t8, $[20] = t9) : t9 = $[20];
3851
+ $[15] !== Element2 || $[16] !== rest || $[17] !== t7 || $[18] !== t8 ? (t9 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t6, "data-read-only": t7, disabled: t8, type: "checkbox", ref }), $[15] = Element2, $[16] = rest, $[17] = t7, $[18] = t8, $[19] = t9) : t9 = $[19];
3859
3852
  let t10;
3860
- $[21] === Symbol.for("react.memo_cache_sentinel") ? (t10 = /* @__PURE__ */ jsxs("span", { "aria-hidden": !0, className: _switchPresentation(), children: [
3853
+ $[20] === Symbol.for("react.memo_cache_sentinel") ? (t10 = /* @__PURE__ */ jsxs("span", { "aria-hidden": !0, className: _switchPresentation(), children: [
3861
3854
  /* @__PURE__ */ jsx("span", { className: _switchTrack() }),
3862
3855
  /* @__PURE__ */ jsx("span", { className: _switchThumb() })
3863
- ] }), $[21] = t10) : t10 = $[21];
3856
+ ] }), $[20] = t10) : t10 = $[20];
3864
3857
  let t11;
3865
- return $[22] !== style || $[23] !== t5 || $[24] !== t9 ? (t11 = /* @__PURE__ */ jsxs(Box, { className: t5, "data-ui": "Switch", display: "block", position: "relative", style, children: [
3858
+ return $[21] !== t5 || $[22] !== t9 ? (t11 = /* @__PURE__ */ jsxs("span", { className: t5, "data-ui": "Switch", children: [
3866
3859
  t9,
3867
3860
  t10
3868
- ] }), $[22] = style, $[23] = t5, $[24] = t9, $[25] = t11) : t11 = $[25], t11;
3861
+ ] }), $[21] = t5, $[22] = t9, $[23] = t11) : t11 = $[23], t11;
3869
3862
  }
3870
3863
  const DEFAULT_TEXT_AREA_ELEMENT = "textarea";
3871
3864
  function TextArea(props) {
3872
- const $ = c(33), t0 = props;
3873
- let __unstable_disableFocusRing, customValidity, forwardedRef, readOnly, rest, t1, t2, t3, t4, t5, t6, t7;
3865
+ const $ = c(39), t0 = props;
3866
+ let __unstable_disableFocusRing, className, customValidity, flex, forwardedRef, readOnly, rest, t1, t2, t3, t4, t5, t6, t7, width;
3874
3867
  $[0] !== t0 ? ({
3875
3868
  __unstable_disableFocusRing,
3876
3869
  as: t1,
3877
3870
  border: t2,
3871
+ className,
3878
3872
  customValidity,
3879
3873
  disabled: t3,
3874
+ flex,
3880
3875
  fontSize: t4,
3881
3876
  gap: t5,
3882
3877
  padding: t6,
3883
3878
  radius: t7,
3884
3879
  readOnly,
3885
3880
  ref: forwardedRef,
3881
+ width,
3886
3882
  ...rest
3887
- } = t0, $[0] = t0, $[1] = __unstable_disableFocusRing, $[2] = customValidity, $[3] = forwardedRef, $[4] = readOnly, $[5] = rest, $[6] = t1, $[7] = t2, $[8] = t3, $[9] = t4, $[10] = t5, $[11] = t6, $[12] = t7) : (__unstable_disableFocusRing = $[1], customValidity = $[2], forwardedRef = $[3], readOnly = $[4], rest = $[5], t1 = $[6], t2 = $[7], t3 = $[8], t4 = $[9], t5 = $[10], t6 = $[11], t7 = $[12]);
3883
+ } = t0, $[0] = t0, $[1] = __unstable_disableFocusRing, $[2] = className, $[3] = customValidity, $[4] = flex, $[5] = forwardedRef, $[6] = readOnly, $[7] = rest, $[8] = t1, $[9] = t2, $[10] = t3, $[11] = t4, $[12] = t5, $[13] = t6, $[14] = t7, $[15] = width) : (__unstable_disableFocusRing = $[1], className = $[2], customValidity = $[3], flex = $[4], forwardedRef = $[5], readOnly = $[6], rest = $[7], t1 = $[8], t2 = $[9], t3 = $[10], t4 = $[11], t5 = $[12], t6 = $[13], t7 = $[14], width = $[15]);
3888
3884
  const Element2 = t1 === void 0 ? DEFAULT_TEXT_AREA_ELEMENT : t1, border = t2 === void 0 ? !0 : t2, disabled = t3 === void 0 ? !1 : t3, fontSize = t4 === void 0 ? 2 : t4, gap = t5 === void 0 ? 3 : t5, padding = t6 === void 0 ? 3 : t6, radius = t7 === void 0 ? 2 : t7, ref = useRef(null);
3889
3885
  let t8;
3890
- $[13] === Symbol.for("react.memo_cache_sentinel") ? (t8 = () => ref.current, $[13] = t8) : t8 = $[13], useImperativeHandle(forwardedRef, t8), useCustomValidity(ref, customValidity);
3886
+ $[16] === Symbol.for("react.memo_cache_sentinel") ? (t8 = () => ref.current, $[16] = t8) : t8 = $[16], useImperativeHandle(forwardedRef, t8), useCustomValidity(ref, customValidity);
3891
3887
  let t9;
3892
- $[14] !== border || $[15] !== fontSize || $[16] !== gap || $[17] !== padding || $[18] !== radius ? (t9 = textArea({
3888
+ $[17] !== border || $[18] !== className || $[19] !== flex || $[20] !== fontSize || $[21] !== gap || $[22] !== padding || $[23] !== radius || $[24] !== width ? (t9 = textArea({
3889
+ className,
3893
3890
  border,
3891
+ flex,
3894
3892
  fontSize,
3893
+ gap,
3895
3894
  padding,
3896
3895
  radius,
3897
- gap
3898
- }), $[14] = border, $[15] = fontSize, $[16] = gap, $[17] = padding, $[18] = radius, $[19] = t9) : t9 = $[19];
3896
+ width
3897
+ }), $[17] = border, $[18] = className, $[19] = flex, $[20] = fontSize, $[21] = gap, $[22] = padding, $[23] = radius, $[24] = width, $[25] = t9) : t9 = $[25];
3899
3898
  const t10 = customValidity ? "" : void 0, t11 = !disabled && readOnly ? "" : void 0;
3900
3899
  let t12;
3901
- $[20] === Symbol.for("react.memo_cache_sentinel") ? (t12 = _inputElement(), $[20] = t12) : t12 = $[20];
3900
+ $[26] === Symbol.for("react.memo_cache_sentinel") ? (t12 = _inputElement(), $[26] = t12) : t12 = $[26];
3902
3901
  const t13 = __unstable_disableFocusRing ? "" : void 0;
3903
3902
  let t14;
3904
- $[21] !== Element2 || $[22] !== disabled || $[23] !== readOnly || $[24] !== rest || $[25] !== t13 ? (t14 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t12, "data-no-focus-ring": t13, disabled, readOnly, ref }), $[21] = Element2, $[22] = disabled, $[23] = readOnly, $[24] = rest, $[25] = t13, $[26] = t14) : t14 = $[26];
3903
+ $[27] !== Element2 || $[28] !== disabled || $[29] !== readOnly || $[30] !== rest || $[31] !== t13 ? (t14 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t12, "data-no-focus-ring": t13, disabled, readOnly, ref }), $[27] = Element2, $[28] = disabled, $[29] = readOnly, $[30] = rest, $[31] = t13, $[32] = t14) : t14 = $[32];
3905
3904
  let t15;
3906
- $[27] === Symbol.for("react.memo_cache_sentinel") ? (t15 = /* @__PURE__ */ jsx("span", { className: _inputPresentation() }), $[27] = t15) : t15 = $[27];
3905
+ $[33] === Symbol.for("react.memo_cache_sentinel") ? (t15 = /* @__PURE__ */ jsx("span", { className: _inputPresentation() }), $[33] = t15) : t15 = $[33];
3907
3906
  let t16;
3908
- return $[28] !== t10 || $[29] !== t11 || $[30] !== t14 || $[31] !== t9 ? (t16 = /* @__PURE__ */ jsxs("span", { className: t9, "data-invalid": t10, "data-read-only": t11, "data-ui": "TextArea", children: [
3907
+ return $[34] !== t10 || $[35] !== t11 || $[36] !== t14 || $[37] !== t9 ? (t16 = /* @__PURE__ */ jsxs("span", { className: t9, "data-invalid": t10, "data-read-only": t11, "data-ui": "TextArea", children: [
3909
3908
  t14,
3910
3909
  t15
3911
- ] }), $[28] = t10, $[29] = t11, $[30] = t14, $[31] = t9, $[32] = t16) : t16 = $[32], t16;
3910
+ ] }), $[34] = t10, $[35] = t11, $[36] = t14, $[37] = t9, $[38] = t16) : t16 = $[38], t16;
3912
3911
  }
3913
3912
  function useDelayedState(initialState) {
3914
3913
  const $ = c(3), [state, setState] = useState(initialState), delayedAction = useRef(void 0);
@@ -3939,27 +3938,8 @@ const DEFAULT_TOOLTIP_ARROW_WIDTH = 15, DEFAULT_TOOLTIP_ARROW_HEIGHT = 6, DEFAUL
3939
3938
  "right-start": ["right", "right-end", "left-start", "top-start", "bottom-start"],
3940
3939
  "right-end": ["right", "right-start", "left-end", "top-end", "bottom-end"]
3941
3940
  }, TooltipDelayGroupContext = createGlobalScopedContext("@sanity/ui/v3/tooltipDelayGroup", null);
3942
- function TooltipDelayGroupProvider(props) {
3943
- const $ = c(9), {
3944
- children,
3945
- delay
3946
- } = props, [isGroupActive, setIsGroupActive] = useDelayedState(!1), [openTooltipId, setOpenTooltipId] = useDelayedState(null), openDelay = typeof delay == "number" ? delay : delay?.open || 0, closeDelay = typeof delay == "number" ? delay : delay?.close || 0;
3947
- let t0;
3948
- const t1 = isGroupActive ? 1 : openDelay;
3949
- let t2;
3950
- $[0] !== closeDelay || $[1] !== openTooltipId || $[2] !== setIsGroupActive || $[3] !== setOpenTooltipId || $[4] !== t1 ? (t2 = {
3951
- setIsGroupActive,
3952
- openTooltipId,
3953
- setOpenTooltipId,
3954
- openDelay: t1,
3955
- closeDelay
3956
- }, $[0] = closeDelay, $[1] = openTooltipId, $[2] = setIsGroupActive, $[3] = setOpenTooltipId, $[4] = t1, $[5] = t2) : t2 = $[5], t0 = t2;
3957
- const value = t0;
3958
- let t3;
3959
- return $[6] !== children || $[7] !== value ? (t3 = /* @__PURE__ */ jsx(TooltipDelayGroupContext.Provider, { value, children }), $[6] = children, $[7] = value, $[8] = t3) : t3 = $[8], t3;
3960
- }
3961
3941
  function useTooltipDelayGroup() {
3962
- return useContext(TooltipDelayGroupContext);
3942
+ return use(TooltipDelayGroupContext);
3963
3943
  }
3964
3944
  function TooltipLayer(props) {
3965
3945
  const $ = c(50);
@@ -3982,40 +3962,36 @@ function TooltipLayer(props) {
3982
3962
  tone: t0,
3983
3963
  ...rest
3984
3964
  } = 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]);
3985
- const tone = t0 === void 0 ? "inherit" : t0;
3986
- let t1;
3987
- const t2 = animate ? "transform" : void 0;
3988
- let t3;
3989
- $[17] !== originX || $[18] !== originY || $[19] !== style || $[20] !== t2 ? (t3 = {
3965
+ const tone = t0 === void 0 ? "inherit" : t0, t1 = animate ? "transform" : void 0;
3966
+ let t2;
3967
+ $[17] !== originX || $[18] !== originY || $[19] !== style || $[20] !== t1 ? (t2 = {
3990
3968
  originX,
3991
3969
  originY,
3992
- willChange: t2,
3970
+ willChange: t1,
3993
3971
  ...style
3994
- }, $[17] = originX, $[18] = originY, $[19] = style, $[20] = t2, $[21] = t3) : t3 = $[21], t1 = t3;
3995
- const rootStyle = t1;
3996
- let t4;
3997
- const t5 = arrowX !== null ? arrowX : void 0, t6 = arrowY !== null ? arrowY : void 0;
3998
- let t7;
3999
- $[22] !== t5 || $[23] !== t6 ? (t7 = {
4000
- left: t5,
4001
- top: t6,
3972
+ }, $[17] = originX, $[18] = originY, $[19] = style, $[20] = t1, $[21] = t2) : t2 = $[21];
3973
+ const rootStyle = t2, t3 = arrowX !== null ? arrowX : void 0, t4 = arrowY !== null ? arrowY : void 0;
3974
+ let t5;
3975
+ $[22] !== t3 || $[23] !== t4 ? (t5 = {
3976
+ left: t3,
3977
+ top: t4,
4002
3978
  right: void 0,
4003
3979
  bottom: void 0
4004
- }, $[22] = t5, $[23] = t6, $[24] = t7) : t7 = $[24], t4 = t7;
4005
- const arrowStyle = t4, t8 = animate ? "" : void 0;
3980
+ }, $[22] = t3, $[23] = t4, $[24] = t5) : t5 = $[24];
3981
+ const arrowStyle = t5, t6 = animate ? "" : void 0;
3982
+ let t7;
3983
+ $[25] !== animate ? (t7 = animate ? ["hidden", "initial"] : void 0, $[25] = animate, $[26] = t7) : t7 = $[26];
3984
+ let t8;
3985
+ $[27] !== animate ? (t8 = animate ? ["visible", "scaleIn"] : void 0, $[27] = animate, $[28] = t8) : t8 = $[28];
4006
3986
  let t9;
4007
- $[25] !== animate ? (t9 = animate ? ["hidden", "initial"] : void 0, $[25] = animate, $[26] = t9) : t9 = $[26];
3987
+ $[29] !== animate ? (t9 = animate ? ["hidden", "scaleOut"] : void 0, $[29] = animate, $[30] = t9) : t9 = $[30];
4008
3988
  let t10;
4009
- $[27] !== animate ? (t10 = animate ? ["visible", "scaleIn"] : void 0, $[27] = animate, $[28] = t10) : t10 = $[28];
3989
+ $[31] !== arrow2 || $[32] !== arrowRef || $[33] !== arrowStyle ? (t10 = arrow2 && /* @__PURE__ */ jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_TOOLTIP_ARROW_WIDTH, height: DEFAULT_TOOLTIP_ARROW_HEIGHT, radius: DEFAULT_TOOLTIP_ARROW_RADIUS }), $[31] = arrow2, $[32] = arrowRef, $[33] = arrowStyle, $[34] = t10) : t10 = $[34];
4010
3990
  let t11;
4011
- $[29] !== animate ? (t11 = animate ? ["hidden", "scaleOut"] : void 0, $[29] = animate, $[30] = t11) : t11 = $[30];
4012
- let t12;
4013
- $[31] !== arrow2 || $[32] !== arrowRef || $[33] !== arrowStyle ? (t12 = arrow2 && /* @__PURE__ */ jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_TOOLTIP_ARROW_WIDTH, height: DEFAULT_TOOLTIP_ARROW_HEIGHT, radius: DEFAULT_TOOLTIP_ARROW_RADIUS }), $[31] = arrow2, $[32] = arrowRef, $[33] = arrowStyle, $[34] = t12) : t12 = $[34];
4014
- let t13;
4015
- return $[35] !== children || $[36] !== padding || $[37] !== placement || $[38] !== radius || $[39] !== rest || $[40] !== rootStyle || $[41] !== scheme || $[42] !== shadow || $[43] !== t10 || $[44] !== t11 || $[45] !== t12 || $[46] !== t8 || $[47] !== t9 || $[48] !== tone ? (t13 = /* @__PURE__ */ jsxs(Layer, { "data-ui": "Tooltip__layer", ...rest, as: motion.div, "data-animate": t8, "data-placement": placement, padding, radius, scheme, shadow, style: rootStyle, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t9, animate: t10, exit: t11, tone, children: [
3991
+ return $[35] !== children || $[36] !== padding || $[37] !== placement || $[38] !== radius || $[39] !== rest || $[40] !== rootStyle || $[41] !== scheme || $[42] !== shadow || $[43] !== t10 || $[44] !== t6 || $[45] !== t7 || $[46] !== t8 || $[47] !== t9 || $[48] !== tone ? (t11 = /* @__PURE__ */ jsxs(Layer, { "data-ui": "Tooltip__layer", ...rest, as: motion.div, "data-animate": t6, "data-placement": placement, padding, radius, scheme, shadow, style: rootStyle, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t7, animate: t8, exit: t9, tone, children: [
4016
3992
  children,
4017
- t12
4018
- ] }), $[35] = children, $[36] = padding, $[37] = placement, $[38] = radius, $[39] = rest, $[40] = rootStyle, $[41] = scheme, $[42] = shadow, $[43] = t10, $[44] = t11, $[45] = t12, $[46] = t8, $[47] = t9, $[48] = tone, $[49] = t13) : t13 = $[49], t13;
3993
+ t10
3994
+ ] }), $[35] = children, $[36] = padding, $[37] = placement, $[38] = radius, $[39] = rest, $[40] = rootStyle, $[41] = scheme, $[42] = shadow, $[43] = t10, $[44] = t6, $[45] = t7, $[46] = t8, $[47] = t9, $[48] = tone, $[49] = t11) : t11 = $[49], t11;
4019
3995
  }
4020
3996
  const DEFAULT_TOOLTIP_ELEMENT = "div";
4021
3997
  function Tooltip(props) {
@@ -4171,19 +4147,36 @@ function useCloseOnMouseLeave(t0) {
4171
4147
  let t3;
4172
4148
  $[7] !== isInsideGroup || $[8] !== showTooltip ? (t3 = [isInsideGroup, showTooltip], $[7] = isInsideGroup, $[8] = showTooltip, $[9] = t3) : t3 = $[9], useEffect(t2, t3);
4173
4149
  }
4150
+ function TooltipDelayGroupProvider(props) {
4151
+ const $ = c(9), {
4152
+ children,
4153
+ delay
4154
+ } = props, [isGroupActive, setIsGroupActive] = useDelayedState(!1), [openTooltipId, setOpenTooltipId] = useDelayedState(null), openDelay = typeof delay == "number" ? delay : delay?.open || 0, closeDelay = typeof delay == "number" ? delay : delay?.close || 0, t0 = isGroupActive ? 1 : openDelay;
4155
+ let t1;
4156
+ $[0] !== closeDelay || $[1] !== openTooltipId || $[2] !== setIsGroupActive || $[3] !== setOpenTooltipId || $[4] !== t0 ? (t1 = {
4157
+ setIsGroupActive,
4158
+ openTooltipId,
4159
+ setOpenTooltipId,
4160
+ openDelay: t0,
4161
+ closeDelay
4162
+ }, $[0] = closeDelay, $[1] = openTooltipId, $[2] = setIsGroupActive, $[3] = setOpenTooltipId, $[4] = t0, $[5] = t1) : t1 = $[5];
4163
+ const value = t1;
4164
+ let t2;
4165
+ return $[6] !== children || $[7] !== value ? (t2 = /* @__PURE__ */ jsx(TooltipDelayGroupContext.Provider, { value, children }), $[6] = children, $[7] = value, $[8] = t2) : t2 = $[8], t2;
4166
+ }
4174
4167
  function BoundaryElementProvider(props) {
4175
4168
  const $ = c(5), {
4176
4169
  children,
4177
4170
  element
4178
4171
  } = props;
4179
- let t0, t1;
4180
- $[0] !== element ? (t1 = {
4172
+ let t0;
4173
+ $[0] !== element ? (t0 = {
4181
4174
  version: 0,
4182
4175
  element
4183
- }, $[0] = element, $[1] = t1) : t1 = $[1], t0 = t1;
4176
+ }, $[0] = element, $[1] = t0) : t0 = $[1];
4184
4177
  const value = t0;
4185
- let t2;
4186
- return $[2] !== children || $[3] !== value ? (t2 = /* @__PURE__ */ jsx(BoundaryElementContext.Provider, { value, children }), $[2] = children, $[3] = value, $[4] = t2) : t2 = $[4], t2;
4178
+ let t1;
4179
+ return $[2] !== children || $[3] !== value ? (t1 = /* @__PURE__ */ jsx(BoundaryElementContext.Provider, { value, children }), $[2] = children, $[3] = value, $[4] = t1) : t1 = $[4], t1;
4187
4180
  }
4188
4181
  function findMaxBreakpoints(media2, width) {
4189
4182
  const ret = [];
@@ -4208,30 +4201,25 @@ function ElementQuery(props) {
4208
4201
  ref: forwardedRef,
4209
4202
  ...rest
4210
4203
  } = t0, $[0] = t0, $[1] = children, $[2] = forwardedRef, $[3] = mediaProp, $[4] = rest, $[5] = t1) : (children = $[1], forwardedRef = $[2], mediaProp = $[3], rest = $[4], t1 = $[5]);
4211
- const Element2 = t1 === void 0 ? DEFAULT_ELEMENT_QUERY_ELEMENT : t1, breakpoints = mediaProp ?? DEFAULT_BREAKPOINTS, [element, setElement] = useState(null), elementSize = useElementSize(element);
4204
+ const Element2 = t1 === void 0 ? DEFAULT_ELEMENT_QUERY_ELEMENT : t1, breakpoints = mediaProp ?? DEFAULT_BREAKPOINTS, [element, setElement] = useState(null), width = useElementSize(element)?.border.width ?? window.innerWidth;
4212
4205
  let t2;
4213
- t2 = elementSize?.border.width ?? window.innerWidth;
4214
- const width = t2;
4215
- let t3, t4;
4216
4206
  if ($[6] !== breakpoints || $[7] !== width) {
4217
4207
  const eq = findMaxBreakpoints(breakpoints, width);
4218
- t4 = eq.length ? eq.join(" ") : void 0, $[6] = breakpoints, $[7] = width, $[8] = t4;
4208
+ t2 = eq.length ? eq.join(" ") : void 0, $[6] = breakpoints, $[7] = width, $[8] = t2;
4219
4209
  } else
4220
- t4 = $[8];
4221
- t3 = t4;
4222
- const max = t3;
4223
- let t5, t6;
4210
+ t2 = $[8];
4211
+ const max = t2;
4212
+ let t3;
4224
4213
  if ($[9] !== breakpoints || $[10] !== width) {
4225
4214
  const eq_0 = findMinBreakpoints(breakpoints, width);
4226
- t6 = eq_0.length ? eq_0.join(" ") : void 0, $[9] = breakpoints, $[10] = width, $[11] = t6;
4215
+ t3 = eq_0.length ? eq_0.join(" ") : void 0, $[9] = breakpoints, $[10] = width, $[11] = t3;
4227
4216
  } else
4228
- t6 = $[11];
4229
- t5 = t6;
4230
- const min = t5;
4231
- let t7, t8;
4232
- $[12] !== element ? (t7 = () => element, t8 = [element], $[12] = element, $[13] = t7, $[14] = t8) : (t7 = $[13], t8 = $[14]), useImperativeHandle(forwardedRef, t7, t8);
4233
- let t9;
4234
- return $[15] !== Element2 || $[16] !== children || $[17] !== max || $[18] !== min || $[19] !== rest ? (t9 = /* @__PURE__ */ jsx(Element2, { "data-ui": "ElementQuery", ...rest, "data-eq-max": max, "data-eq-min": min, ref: setElement, children }), $[15] = Element2, $[16] = children, $[17] = max, $[18] = min, $[19] = rest, $[20] = t9) : t9 = $[20], t9;
4217
+ t3 = $[11];
4218
+ const min = t3;
4219
+ let t4, t5;
4220
+ $[12] !== element ? (t4 = () => element, t5 = [element], $[12] = element, $[13] = t4, $[14] = t5) : (t4 = $[13], t5 = $[14]), useImperativeHandle(forwardedRef, t4, t5);
4221
+ let t6;
4222
+ return $[15] !== Element2 || $[16] !== children || $[17] !== max || $[18] !== min || $[19] !== rest ? (t6 = /* @__PURE__ */ jsx(Element2, { "data-ui": "ElementQuery", ...rest, "data-eq-max": max, "data-eq-min": min, ref: setElement, children }), $[15] = Element2, $[16] = children, $[17] = max, $[18] = min, $[19] = rest, $[20] = t6) : t6 = $[20], t6;
4235
4223
  }
4236
4224
  class ErrorBoundary extends Component {
4237
4225
  state = {
@@ -4265,22 +4253,20 @@ function PortalProvider(props) {
4265
4253
  children,
4266
4254
  element,
4267
4255
  __unstable_elements: elementsProp
4268
- } = props, elements = useUnique(elementsProp), parentPortal = useContext(PortalContext);
4256
+ } = props, elements = useUnique(elementsProp), parentPortal = use(PortalContext);
4269
4257
  let t0;
4270
4258
  $[0] !== elements || $[1] !== parentPortal ? (t0 = () => elements?.default ?? (parentPortal.element || document.body), $[0] = elements, $[1] = parentPortal, $[2] = t0) : t0 = $[2];
4271
- const fallbackElement = useSyncExternalStore(emptySubscribe, t0, _temp);
4272
- let t1;
4273
- const t2 = element || fallbackElement;
4274
- let t3;
4275
- $[3] !== elements || $[4] !== t2 ? (t3 = {
4259
+ const fallbackElement = useSyncExternalStore(emptySubscribe, t0, _temp), t1 = element || fallbackElement;
4260
+ let t2;
4261
+ $[3] !== elements || $[4] !== t1 ? (t2 = {
4276
4262
  version: 0,
4277
4263
  boundaryElement: null,
4278
- element: t2,
4264
+ element: t1,
4279
4265
  elements
4280
- }, $[3] = elements, $[4] = t2, $[5] = t3) : t3 = $[5], t1 = t3;
4281
- const value = t1;
4282
- let t4;
4283
- return $[6] !== children || $[7] !== value ? (t4 = /* @__PURE__ */ jsx(PortalContext.Provider, { value, children }), $[6] = children, $[7] = value, $[8] = t4) : t4 = $[8], t4;
4266
+ }, $[3] = elements, $[4] = t1, $[5] = t2) : t2 = $[5];
4267
+ const value = t2;
4268
+ let t3;
4269
+ return $[6] !== children || $[7] !== value ? (t3 = /* @__PURE__ */ jsx(PortalContext.Provider, { value, children }), $[6] = children, $[7] = value, $[8] = t3) : t3 = $[8], t3;
4284
4270
  }
4285
4271
  function _temp() {
4286
4272
  return null;