welcome-ui 8.0.0 → 8.1.0-alpha.0

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 (301) hide show
  1. package/dist/AXB53BZF-XKOjjeWO.mjs +25 -0
  2. package/dist/Accordion.mjs +30 -23
  3. package/dist/Alert.mjs +76 -70
  4. package/dist/AspectRatio.mjs +8 -10
  5. package/dist/Avatar.mjs +48 -47
  6. package/dist/{BYC7LY2E-CVjUW1dr.mjs → BYC7LY2E-CWSI38FM.mjs} +355 -351
  7. package/dist/Badge.mjs +25 -25
  8. package/dist/Box.mjs +5 -5
  9. package/dist/Breadcrumb.mjs +173 -168
  10. package/dist/Button.mjs +72 -67
  11. package/dist/ButtonGroup.mjs +13 -12
  12. package/dist/Card.mjs +14 -14
  13. package/dist/Checkbox.mjs +2 -2
  14. package/dist/ClearButton.mjs +15 -15
  15. package/dist/CloseButton.mjs +9 -9
  16. package/dist/{CustomInput-D_13Gd_3.mjs → CustomPopper-CZt4RioF.mjs} +3200 -3047
  17. package/dist/DatePicker.mjs +81 -80
  18. package/dist/DateTimePicker.mjs +67 -62
  19. package/dist/DateTimePickerCommon.mjs +1 -1
  20. package/dist/Drawer.mjs +190 -174
  21. package/dist/DropdownMenu.mjs +389 -386
  22. package/dist/Field.mjs +104 -92
  23. package/dist/FieldGroup.mjs +12 -9
  24. package/dist/FileDrop.mjs +613 -576
  25. package/dist/FileUpload.mjs +95 -74
  26. package/dist/Files.mjs +46 -46
  27. package/dist/Flex.mjs +13 -13
  28. package/dist/Grid.mjs +29 -29
  29. package/dist/Hint.mjs +12 -12
  30. package/dist/ITI7HKP4-C89kOQb8.mjs +474 -0
  31. package/dist/Icon.mjs +24 -24
  32. package/dist/Icons.mjs +988 -988
  33. package/dist/IconsFont.mjs +159 -159
  34. package/dist/InputText.mjs +65 -57
  35. package/dist/{JC64G2H7-Dey-8h60.mjs → JC64G2H7-afsomHuH.mjs} +109 -108
  36. package/dist/KUU7WJ55-CzsjuIMv.mjs +61 -0
  37. package/dist/LVA2YJMS-C-kJ1lkr.mjs +873 -0
  38. package/dist/Label.mjs +37 -35
  39. package/dist/Link.mjs +28 -24
  40. package/dist/Loader.mjs +20 -16
  41. package/dist/Logo.mjs +55 -42
  42. package/dist/MTZPJQMC-TybFZCho.mjs +15 -0
  43. package/dist/Modal.mjs +276 -253
  44. package/dist/NLEBE274-oSxMftGy.mjs +84 -0
  45. package/dist/P2CTZE2T-DOT1mNnX.mjs +301 -0
  46. package/dist/P4IRICAX-CWSZLTGz.mjs +37 -0
  47. package/dist/Pagination.mjs +104 -104
  48. package/dist/PasswordInput.mjs +35 -34
  49. package/dist/Picker.mjs +35 -33
  50. package/dist/Popover.mjs +100 -93
  51. package/dist/QYJ6MIDR-DJ-vUdAM.mjs +98 -0
  52. package/dist/Radio.mjs +58 -52
  53. package/dist/RadioGroup.mjs +46 -46
  54. package/dist/RadioTab.mjs +37 -35
  55. package/dist/{SYRFVSLH-cVmYtx36.mjs → SYRFVSLH-B6m278Vb.mjs} +18 -17
  56. package/dist/Search.mjs +175 -161
  57. package/dist/Select.mjs +885 -847
  58. package/dist/Shape.mjs +9 -9
  59. package/dist/Slider.mjs +359 -336
  60. package/dist/Stack.mjs +22 -24
  61. package/dist/Swiper.mjs +324 -311
  62. package/dist/Table.mjs +23 -23
  63. package/dist/Tabs.mjs +250 -245
  64. package/dist/Tag.mjs +51 -49
  65. package/dist/Text.mjs +49 -47
  66. package/dist/Textarea.mjs +39 -39
  67. package/dist/TimePicker.mjs +57 -56
  68. package/dist/Toast.mjs +144 -137
  69. package/dist/Toggle.mjs +27 -24
  70. package/dist/Tooltip.mjs +115 -111
  71. package/dist/UniversalLink.mjs +16 -16
  72. package/dist/VEVQD5MH-0w9Y7Ytc.mjs +20 -0
  73. package/dist/{VGCJ63VH-B39w1tBw.mjs → VGCJ63VH-C0UPBY-5.mjs} +61 -62
  74. package/dist/VariantIcon.mjs +14 -22
  75. package/dist/WelcomeLoader.mjs +4863 -9223
  76. package/dist/WuiProvider.mjs +69 -58
  77. package/dist/X5NMLKT6-BJw3xE-K.mjs +25 -0
  78. package/dist/YV4JVR4I-DPC8mMuG.mjs +344 -0
  79. package/dist/downshift.esm-B7Jil1wW.mjs +1082 -0
  80. package/dist/{field-styles-DLIhqG_8.mjs → field-styles-BVlRlvuu.mjs} +2 -2
  81. package/dist/{hex-to-rgba-BIDK-3ab.mjs → hex-to-rgba-DU_XzKIK.mjs} +2 -2
  82. package/dist/hide-focus-rings-root-CCXdysih.mjs +15 -0
  83. package/dist/index-5HBq1O6Z.mjs +185 -0
  84. package/dist/{index-C7zM96J_.mjs → index-BaLGEKs7.mjs} +8 -8
  85. package/dist/{index-BYdkhqH4.mjs → index-CBBbX29m.mjs} +3652 -3584
  86. package/dist/index-CYmF7qCH.mjs +11 -0
  87. package/dist/index-C_k-m0Rl.mjs +36 -0
  88. package/dist/index-D8v_VJ9z.mjs +26 -0
  89. package/dist/{index-BNGGwOCo.mjs → index-DAZ1SYdj.mjs} +7 -7
  90. package/dist/{index-SbQUT2mU.mjs → index-DgSynio4.mjs} +244 -239
  91. package/dist/index-DpkNUfAS.mjs +11 -0
  92. package/dist/{index-DqBUFsqP.mjs → index-DvzWKxKE.mjs} +7 -7
  93. package/dist/{index-BJAZgeHL.mjs → index-QaLwIvZS.mjs} +8 -8
  94. package/dist/{index-BQtDgQBH.mjs → index-SQQQ4dEE.mjs} +8 -8
  95. package/dist/index-i_anpNhw.mjs +66 -0
  96. package/dist/index-wl3X6EM1.mjs +16 -0
  97. package/dist/jsx-runtime-B7I4PJ0H.mjs +613 -0
  98. package/dist/radio-group-C0fUHvam.mjs +52 -0
  99. package/dist/theme.mjs +1175 -1120
  100. package/dist/throttle-CW18pWlW.mjs +13 -0
  101. package/dist/types/components/Accordion/index.d.ts +1 -1
  102. package/dist/types/components/Accordion/styles.d.ts +2 -2
  103. package/dist/types/components/Accordion/theme.d.ts +1 -1
  104. package/dist/types/components/Alert/index.d.ts +2 -2
  105. package/dist/types/components/Alert/styles.d.ts +9 -9
  106. package/dist/types/components/Alert/theme.d.ts +4 -4
  107. package/dist/types/components/Avatar/index.d.ts +2 -3
  108. package/dist/types/components/Avatar/styles.d.ts +8 -8
  109. package/dist/types/components/Avatar/theme.d.ts +3 -3
  110. package/dist/types/components/Avatar/utils.d.ts +1 -1
  111. package/dist/types/components/Badge/index.d.ts +2 -2
  112. package/dist/types/components/Badge/styles.d.ts +5 -5
  113. package/dist/types/components/Badge/theme.d.ts +1 -1
  114. package/dist/types/components/Breadcrumb/Item.d.ts +1 -1
  115. package/dist/types/components/Breadcrumb/index.d.ts +2 -2
  116. package/dist/types/components/Breadcrumb/theme.d.ts +1 -1
  117. package/dist/types/components/Button/index.d.ts +4 -5
  118. package/dist/types/components/Button/styles.d.ts +1 -1
  119. package/dist/types/components/Button/theme.d.ts +7 -7
  120. package/dist/types/components/ButtonGroup/index.d.ts +3 -3
  121. package/dist/types/components/Card/Cover.styles.d.ts +4 -4
  122. package/dist/types/components/Card/index.d.ts +2 -3
  123. package/dist/types/components/Card/theme.d.ts +1 -1
  124. package/dist/types/components/Checkbox/index.d.ts +2 -2
  125. package/dist/types/components/Checkbox/styles.d.ts +1 -1
  126. package/dist/types/components/Checkbox/theme.d.ts +1 -1
  127. package/dist/types/components/ClearButton/index.d.ts +5 -6
  128. package/dist/types/components/ClearButton/styles.d.ts +4 -4
  129. package/dist/types/components/CloseButton/styles.d.ts +4 -4
  130. package/dist/types/components/DatePicker/index.d.ts +3 -3
  131. package/dist/types/components/DateTimePicker/index.d.ts +2 -2
  132. package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +1 -1
  133. package/dist/types/components/DateTimePickerCommon/CustomInput.d.ts +5 -5
  134. package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +1 -1
  135. package/dist/types/components/DateTimePickerCommon/index.d.ts +2 -2
  136. package/dist/types/components/DateTimePickerCommon/theme.d.ts +1 -1
  137. package/dist/types/components/DateTimePickerCommon/utils.d.ts +2 -2
  138. package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +1 -1
  139. package/dist/types/components/Drawer/AssetDrawer/index.d.ts +1 -1
  140. package/dist/types/components/Drawer/index.d.ts +12 -12
  141. package/dist/types/components/Drawer/styles.d.ts +5 -5
  142. package/dist/types/components/Drawer/theme.d.ts +2 -2
  143. package/dist/types/components/DropdownMenu/index.d.ts +4 -4
  144. package/dist/types/components/DropdownMenu/theme.d.ts +1 -1
  145. package/dist/types/components/Field/index.d.ts +8 -8
  146. package/dist/types/components/Field/styles.d.ts +1 -1
  147. package/dist/types/components/Field/utils.d.ts +1 -1
  148. package/dist/types/components/FileDrop/FilePreview.d.ts +2 -2
  149. package/dist/types/components/FileDrop/Message.d.ts +1 -1
  150. package/dist/types/components/FileDrop/index.d.ts +20 -20
  151. package/dist/types/components/FileDrop/theme.d.ts +1 -1
  152. package/dist/types/components/FileUpload/index.d.ts +13 -13
  153. package/dist/types/components/Files/index.d.ts +5 -5
  154. package/dist/types/components/Files/types.d.ts +1 -1
  155. package/dist/types/components/Hint/index.d.ts +1 -2
  156. package/dist/types/components/Hint/theme.d.ts +1 -1
  157. package/dist/types/components/Icon/index.d.ts +3 -3
  158. package/dist/types/components/Icon/styles.d.ts +3 -3
  159. package/dist/types/components/Icon/theme.d.ts +3 -3
  160. package/dist/types/components/Icons/Sun/content.json.d.ts +2 -1
  161. package/dist/types/components/Icons/index.d.ts +2 -2
  162. package/dist/types/components/IconsFont/index.d.ts +2 -3
  163. package/dist/types/components/IconsFont/styles.d.ts +1 -1
  164. package/dist/types/components/InputText/index.d.ts +1 -1
  165. package/dist/types/components/InputText/styles.d.ts +1 -1
  166. package/dist/types/components/Label/index.d.ts +2 -3
  167. package/dist/types/components/Label/theme.d.ts +1 -1
  168. package/dist/types/components/Link/index.d.ts +5 -5
  169. package/dist/types/components/Link/styles.d.ts +4 -4
  170. package/dist/types/components/Link/theme.d.ts +1 -1
  171. package/dist/types/components/Loader/index.d.ts +1 -1
  172. package/dist/types/components/Loader/styles.d.ts +4 -4
  173. package/dist/types/components/Loader/theme.d.ts +4 -4
  174. package/dist/types/components/Logo/Solutions.d.ts +1 -2
  175. package/dist/types/components/Logo/Symbol.d.ts +1 -2
  176. package/dist/types/components/Logo/Wui.d.ts +1 -2
  177. package/dist/types/components/Logo/index.d.ts +5 -5
  178. package/dist/types/components/Modal/Assets/Backdrop.d.ts +5 -6
  179. package/dist/types/components/Modal/Assets/Iframe.d.ts +1 -2
  180. package/dist/types/components/Modal/Assets/index.d.ts +9 -9
  181. package/dist/types/components/Modal/Assets/styles.d.ts +8 -8
  182. package/dist/types/components/Modal/Close.d.ts +3 -4
  183. package/dist/types/components/Modal/Content.d.ts +4 -5
  184. package/dist/types/components/Modal/Footer.d.ts +1 -1
  185. package/dist/types/components/Modal/Header.d.ts +2 -2
  186. package/dist/types/components/Modal/index.d.ts +17 -17
  187. package/dist/types/components/Modal/styles.d.ts +7 -7
  188. package/dist/types/components/Modal/theme.d.ts +2 -2
  189. package/dist/types/components/Pagination/index.d.ts +2 -2
  190. package/dist/types/components/Pagination/theme.d.ts +1 -1
  191. package/dist/types/components/Pagination/utils.d.ts +1 -1
  192. package/dist/types/components/Picker/index.d.ts +1 -1
  193. package/dist/types/components/Picker/styles.d.ts +1 -1
  194. package/dist/types/components/Popover/Arrow.d.ts +1 -2
  195. package/dist/types/components/Popover/Content.d.ts +2 -3
  196. package/dist/types/components/Popover/Popover.d.ts +4 -5
  197. package/dist/types/components/Popover/PopoverHover.d.ts +3 -4
  198. package/dist/types/components/Popover/Trigger.d.ts +1 -1
  199. package/dist/types/components/Popover/styles.d.ts +4 -4
  200. package/dist/types/components/Popover/theme.d.ts +1 -1
  201. package/dist/types/components/Popover/usePopover.d.ts +6 -6
  202. package/dist/types/components/Radio/index.d.ts +3 -3
  203. package/dist/types/components/Radio/styles.d.ts +5 -5
  204. package/dist/types/components/Radio/theme.d.ts +1 -1
  205. package/dist/types/components/RadioGroup/index.d.ts +2 -2
  206. package/dist/types/components/RadioTab/index.d.ts +3 -3
  207. package/dist/types/components/RadioTab/styles.d.ts +3 -9
  208. package/dist/types/components/RadioTab/theme.d.ts +1 -1
  209. package/dist/types/components/Search/index.d.ts +5 -5
  210. package/dist/types/components/Select/index.d.ts +11 -11
  211. package/dist/types/components/Select/styles.d.ts +6 -6
  212. package/dist/types/components/Select/utils.d.ts +11 -7
  213. package/dist/types/components/Shape/index.d.ts +1 -1
  214. package/dist/types/components/Shape/styles.d.ts +3 -3
  215. package/dist/types/components/Slider/Range.d.ts +3 -3
  216. package/dist/types/components/Slider/index.d.ts +2 -2
  217. package/dist/types/components/Slider/styles.d.ts +16 -16
  218. package/dist/types/components/Slider/theme.d.ts +1 -1
  219. package/dist/types/components/Stack/index.d.ts +1 -1
  220. package/dist/types/components/Swiper/index.d.ts +17 -18
  221. package/dist/types/components/Swiper/styles.d.ts +56 -56
  222. package/dist/types/components/Swiper/theme.d.ts +1 -1
  223. package/dist/types/components/System/index.d.ts +14 -14
  224. package/dist/types/components/Table/index.d.ts +6 -7
  225. package/dist/types/components/Table/styles.d.ts +1 -1
  226. package/dist/types/components/Table/theme.d.ts +1 -1
  227. package/dist/types/components/Tabs/ActiveBar.d.ts +5 -5
  228. package/dist/types/components/Tabs/TabList.d.ts +4 -4
  229. package/dist/types/components/Tabs/TabPanel.d.ts +2 -2
  230. package/dist/types/components/Tabs/styles.d.ts +2 -2
  231. package/dist/types/components/Tabs/theme.d.ts +2 -2
  232. package/dist/types/components/Tag/index.d.ts +2 -3
  233. package/dist/types/components/Tag/styles.d.ts +1 -1
  234. package/dist/types/components/Tag/theme.d.ts +3 -3
  235. package/dist/types/components/Text/index.d.ts +2 -2
  236. package/dist/types/components/Textarea/index.d.ts +1 -1
  237. package/dist/types/components/Textarea/theme.d.ts +1 -1
  238. package/dist/types/components/TimePicker/index.d.ts +2 -2
  239. package/dist/types/components/Toast/Growl.d.ts +1 -1
  240. package/dist/types/components/Toast/Snackbar.d.ts +1 -1
  241. package/dist/types/components/Toast/ToastWrapper.d.ts +5 -5
  242. package/dist/types/components/Toast/index.d.ts +6 -6
  243. package/dist/types/components/Toast/styles.d.ts +16 -16
  244. package/dist/types/components/Toast/theme.d.ts +2 -2
  245. package/dist/types/components/Toast/utils.d.ts +13 -13
  246. package/dist/types/components/Toggle/index.d.ts +3 -3
  247. package/dist/types/components/Toggle/styles.d.ts +5 -4
  248. package/dist/types/components/Toggle/theme.d.ts +6 -6
  249. package/dist/types/components/Tooltip/index.d.ts +2 -2
  250. package/dist/types/components/Tooltip/styles.d.ts +1 -1
  251. package/dist/types/components/Tooltip/theme.d.ts +1 -1
  252. package/dist/types/components/VariantIcon/index.d.ts +1 -1
  253. package/dist/types/components/VariantIcon/styles.d.ts +1 -1
  254. package/dist/types/components/VariantIcon/theme.d.ts +3 -3
  255. package/dist/types/components/WuiProvider/font.d.ts +3 -5
  256. package/dist/types/components/WuiProvider/index.d.ts +1 -1
  257. package/dist/types/theme/colors.d.ts +3 -11
  258. package/dist/types/theme/dark.d.ts +1 -1
  259. package/dist/types/theme/defaultFields.d.ts +10 -10
  260. package/dist/types/theme/fonts.d.ts +5 -5
  261. package/dist/types/theme/index.d.ts +31 -31
  262. package/dist/types/theme/screens.d.ts +1 -1
  263. package/dist/types/theme/space.d.ts +1 -1
  264. package/dist/types/theme/typography.d.ts +1 -1
  265. package/dist/types/utils/field-styles.d.ts +6 -6
  266. package/dist/types/utils/index.d.ts +2 -2
  267. package/dist/types/utils/ts-utils.d.ts +1 -1
  268. package/dist/types/utils/use-copy-text.d.ts +1 -1
  269. package/dist/types/utils/use-create-portal.d.ts +1 -1
  270. package/dist/types/utils/use-viewport.d.ts +2 -2
  271. package/dist/types/utils/wrap-children.d.ts +1 -1
  272. package/dist/{use-fork-ref-CUZErtAC.mjs → use-fork-ref-DvaCTfQ_.mjs} +4 -3
  273. package/dist/use-viewport-CWpjoHXy.mjs +16 -0
  274. package/dist/utils.mjs +96 -85
  275. package/dist/wrap-children-DBSD-X5-.mjs +9 -0
  276. package/package.json +9 -36
  277. package/dist/AXB53BZF-CGoc4K3d.mjs +0 -25
  278. package/dist/ITI7HKP4-BONrZ9Pq.mjs +0 -473
  279. package/dist/KUU7WJ55-3sP-w1F1.mjs +0 -61
  280. package/dist/LVA2YJMS-qFC9J-lt.mjs +0 -1479
  281. package/dist/MTZPJQMC-C0Xe_WK4.mjs +0 -13
  282. package/dist/NLEBE274-C94QU78N.mjs +0 -84
  283. package/dist/P2CTZE2T-YPes1GXe.mjs +0 -297
  284. package/dist/P4IRICAX-DzXqUYe-.mjs +0 -37
  285. package/dist/QYJ6MIDR-BLLqyXdd.mjs +0 -97
  286. package/dist/VEVQD5MH-ZMnHV8ZJ.mjs +0 -20
  287. package/dist/X5NMLKT6-uFSu0Lii.mjs +0 -25
  288. package/dist/YV4JVR4I-BGfUf3Nu.mjs +0 -341
  289. package/dist/downshift.esm-CEHW4VDy.mjs +0 -1085
  290. package/dist/hide-focus-rings-root-BNyva1yb.mjs +0 -14
  291. package/dist/index-BDeIsk2X.mjs +0 -184
  292. package/dist/index-BRDOakbf.mjs +0 -11
  293. package/dist/index-BpRjq7lj.mjs +0 -11
  294. package/dist/index-BrfXjmHY.mjs +0 -36
  295. package/dist/index-CExLVjET.mjs +0 -26
  296. package/dist/index-DEJJvyGk.mjs +0 -66
  297. package/dist/index-u1oHKa7X.mjs +0 -16
  298. package/dist/radio-group-CGC6DTFJ.mjs +0 -51
  299. package/dist/throttle-BDBzFeFj.mjs +0 -13
  300. package/dist/use-viewport-m3glsbna.mjs +0 -16
  301. package/dist/wrap-children-aq69jtFP.mjs +0 -12
@@ -1,205 +1,206 @@
1
1
  "use client";
2
- import C, { useCallback as $e, useRef as le, createContext as ge, useState as we, useEffect as Me, createRef as Ve, useMemo as Re } from "react";
3
- import Y, { th as U, css as Be, useTheme as Ke } from "@xstyled/styled-components";
4
- import { forwardRef as J } from "./System.mjs";
5
- import { h as ce, j as ze, C as Se, a as xe, u as je } from "./P2CTZE2T-YPes1GXe.mjs";
6
- import { e as We, f as Ze, c as Ue, d as qe, g as Ge, h as Ye } from "./BYC7LY2E-CVjUW1dr.mjs";
7
- import { c as D, _ as O, i as K, a7 as Je, u as ae, b as V, a9 as Z, V as Qe, d as y, e as re, g as v, z as Ee, w as Ce, f as k, h as F, Z as Xe, $ as et, I as ye, R as tt, n as nt, m as rt, ab as ot, v as Pe, A as ut, B as G, C as W, D as $, a3 as at, H as st, x as Oe, E as Ae, t as se, Y as it, ac as lt, l as ct, ad as Ie, s as dt, ae as ft, af as pt } from "./LVA2YJMS-qFC9J-lt.mjs";
8
- import { u as mt, b as bt } from "./QYJ6MIDR-BLLqyXdd.mjs";
9
- import { m as vt, o as ht, p as gt, t as wt, s as be, d as ve, c as Mt, a as St, b as xt, u as R } from "./YV4JVR4I-BGfUf3Nu.mjs";
10
- import { c as Et, u as Ct, a as yt } from "./ITI7HKP4-BONrZ9Pq.mjs";
11
- import { i as Pt } from "./VGCJ63VH-B39w1tBw.mjs";
12
- import { c as Ot, R as At } from "./JC64G2H7-Dey-8h60.mjs";
13
- import { a as It } from "./VEVQD5MH-ZMnHV8ZJ.mjs";
2
+ import { j as C } from "./jsx-runtime-B7I4PJ0H.mjs";
3
+ import Q, { th as U, css as Le, useTheme as $e } from "@xstyled/styled-components";
4
+ import { forwardRef as X } from "./System.mjs";
5
+ import { h as ie, j as je, C as he, a as ge, u as Ve } from "./P2CTZE2T-DOT1mNnX.mjs";
6
+ import { e as Re, f as Be, c as Ke, d as ze, g as We, h as Ze } from "./BYC7LY2E-CWSI38FM.mjs";
7
+ import { c as D, _ as P, i as B, a6 as Ue, u as ae, b as j, a8 as Z, U as qe, d as E, e as ne, g as b, y as we, Y as Ge, Z as Qe, v as Me, f as k, h as F, H as xe, Q as Xe, p as Ye, o as Je, aa as et, t as Se, z as tt, A as G, B as W, C as $, a2 as rt, G as nt, w as Ce, D as ye, ab as ot, X as st, l as at, ac as Ee, s as ut, ad as it, ae as ct } from "./LVA2YJMS-C-kJ1lkr.mjs";
8
+ import { useCallback as lt, useRef as ce, createContext as Oe, useState as Pe, useEffect as Ae, createRef as dt, useMemo as ft } from "react";
9
+ import { u as pt, b as mt } from "./QYJ6MIDR-DJ-vUdAM.mjs";
10
+ import { m as vt, o as bt, p as ht, t as gt, c as wt, s as me, d as ve, a as Mt, b as xt, u as V } from "./YV4JVR4I-DPC8mMuG.mjs";
11
+ import { c as St, u as Ct, a as yt } from "./ITI7HKP4-C89kOQb8.mjs";
12
+ import { i as Et } from "./VGCJ63VH-C0UPBY-5.mjs";
13
+ import { c as Ot, R as Pt } from "./JC64G2H7-afsomHuH.mjs";
14
+ import { a as At } from "./VEVQD5MH-0w9Y7Ytc.mjs";
14
15
  var Tt = "div";
15
16
  function Te(n) {
16
17
  const t = n.relatedTarget;
17
18
  return (t == null ? void 0 : t.nodeType) === Node.ELEMENT_NODE ? t : null;
18
19
  }
19
- function _t(n) {
20
+ function It(n) {
20
21
  const t = Te(n);
21
- return t ? Xe(n.currentTarget, t) : !1;
22
+ return t ? Ge(n.currentTarget, t) : !1;
22
23
  }
23
- var ie = Symbol("composite-hover");
24
+ var ue = Symbol("composite-hover");
24
25
  function Ht(n) {
25
26
  let t = Te(n);
26
27
  if (!t) return !1;
27
28
  do {
28
- if (et(t, ie) && t[ie]) return !0;
29
+ if (Qe(t, ue) && t[ue]) return !0;
29
30
  t = t.parentElement;
30
31
  } while (t);
31
32
  return !1;
32
33
  }
33
- var _e = D(
34
+ var Ie = D(
34
35
  function(t) {
35
36
  var r = t, {
36
37
  store: e,
37
- focusOnHover: u = !0,
38
- blurOnHoverEnd: s = !!u
39
- } = r, a = O(r, [
38
+ focusOnHover: o = !0,
39
+ blurOnHoverEnd: u = !!o
40
+ } = r, a = P(r, [
40
41
  "store",
41
42
  "focusOnHover",
42
43
  "blurOnHoverEnd"
43
44
  ]);
44
- const o = ce();
45
- e = e || o, K(
45
+ const s = ie();
46
+ e = e || s, B(
46
47
  e,
47
48
  process.env.NODE_ENV !== "production" && "CompositeHover must be wrapped in a Composite component."
48
49
  );
49
- const l = Je(), c = a.onMouseMove, i = ae(u), w = V((f) => {
50
- if (c == null || c(f), !f.defaultPrevented && l() && i(f)) {
50
+ const c = Ue(), l = a.onMouseMove, i = ae(o), w = j((f) => {
51
+ if (l == null || l(f), !f.defaultPrevented && c() && i(f)) {
51
52
  if (!Z(f.currentTarget)) {
52
53
  const M = e == null ? void 0 : e.getState().baseElement;
53
- M && !Qe(M) && M.focus();
54
+ M && !qe(M) && M.focus();
54
55
  }
55
56
  e == null || e.setActiveId(f.currentTarget.id);
56
57
  }
57
- }), m = a.onMouseLeave, d = ae(s), x = V((f) => {
58
+ }), m = a.onMouseLeave, d = ae(u), S = j((f) => {
58
59
  var M;
59
- m == null || m(f), !f.defaultPrevented && l() && (_t(f) || Ht(f) || i(f) && d(f) && (e == null || e.setActiveId(null), (M = e == null ? void 0 : e.getState().baseElement) == null || M.focus()));
60
- }), p = $e((f) => {
61
- f && (f[ie] = !0);
60
+ m == null || m(f), !f.defaultPrevented && c() && (It(f) || Ht(f) || i(f) && d(f) && (e == null || e.setActiveId(null), (M = e == null ? void 0 : e.getState().baseElement) == null || M.focus()));
61
+ }), p = lt((f) => {
62
+ f && (f[ue] = !0);
62
63
  }, []);
63
- return a = y(v({}, a), {
64
- ref: re(p, a.ref),
64
+ return a = E(b({}, a), {
65
+ ref: ne(p, a.ref),
65
66
  onMouseMove: w,
66
- onMouseLeave: x
67
- }), Ee(a);
67
+ onMouseLeave: S
68
+ }), we(a);
68
69
  }
69
70
  );
70
- Ce(
71
+ Me(
71
72
  k(function(t) {
72
- const r = _e(t);
73
+ const r = Ie(t);
73
74
  return F(Tt, r);
74
75
  })
75
76
  );
76
- var Dt = "hr", He = D(
77
+ var _t = "hr", He = D(
77
78
  function(t) {
78
- var r = t, { orientation: e = "horizontal" } = r, u = O(r, ["orientation"]);
79
- return u = v({
79
+ var r = t, { orientation: e = "horizontal" } = r, o = P(r, ["orientation"]);
80
+ return o = b({
80
81
  role: "separator",
81
82
  "aria-orientation": e
82
- }, u), u;
83
+ }, o), o;
83
84
  }
84
85
  );
85
86
  k(function(t) {
86
87
  const r = He(t);
87
- return F(Dt, r);
88
+ return F(_t, r);
88
89
  });
89
- var kt = "hr", De = D(function(t) {
90
- var r = t, { store: e } = r, u = O(r, ["store"]);
91
- const s = ce();
92
- e = e || s, K(
90
+ var Dt = "hr", _e = D(function(t) {
91
+ var r = t, { store: e } = r, o = P(r, ["store"]);
92
+ const u = ie();
93
+ e = e || u, B(
93
94
  e,
94
95
  process.env.NODE_ENV !== "production" && "CompositeSeparator must be wrapped in a Composite component."
95
96
  );
96
97
  const a = e.useState(
97
- (o) => o.orientation === "horizontal" ? "vertical" : "horizontal"
98
+ (s) => s.orientation === "horizontal" ? "vertical" : "horizontal"
98
99
  );
99
- return u = He(y(v({}, u), { orientation: a })), u;
100
+ return o = He(E(b({}, o), { orientation: a })), o;
100
101
  });
101
102
  k(function(t) {
102
- const r = De(t);
103
- return F(kt, r);
103
+ const r = _e(t);
104
+ return F(Dt, r);
104
105
  });
105
- var Ft = "div", N = "";
106
- function ue() {
106
+ var kt = "div", N = "";
107
+ function se() {
107
108
  N = "";
108
109
  }
109
- function Nt(n) {
110
+ function Ft(n) {
110
111
  const t = n.target;
111
- return t && nt(t) ? !1 : n.key === " " && N.length ? !0 : n.key.length === 1 && !n.ctrlKey && !n.altKey && !n.metaKey && /^[\p{Letter}\p{Number}]$/u.test(n.key);
112
+ return t && Ye(t) ? !1 : n.key === " " && N.length ? !0 : n.key.length === 1 && !n.ctrlKey && !n.altKey && !n.metaKey && /^[\p{Letter}\p{Number}]$/u.test(n.key);
112
113
  }
113
- function Lt(n, t) {
114
- if (rt(n)) return !0;
114
+ function Nt(n, t) {
115
+ if (Je(n)) return !0;
115
116
  const r = n.target;
116
- return r ? t.some((u) => u.element === r) : !1;
117
+ return r ? t.some((o) => o.element === r) : !1;
117
118
  }
118
- function $t(n) {
119
+ function Lt(n) {
119
120
  return n.filter((t) => !t.disabled);
120
121
  }
121
- function ne(n, t) {
122
+ function re(n, t) {
122
123
  var r;
123
124
  const e = ((r = n.element) == null ? void 0 : r.textContent) || n.children || // The composite item object itself doesn't include a value property, but
124
125
  // other components like Select do. Since CompositeTypeahead is a generic
125
126
  // component that can be used with those as well, we also consider the value
126
127
  // property as a fallback for the typeahead text content.
127
128
  "value" in n && n.value;
128
- return e ? ot(e).trim().toLowerCase().startsWith(t.toLowerCase()) : !1;
129
+ return e ? et(e).trim().toLowerCase().startsWith(t.toLowerCase()) : !1;
129
130
  }
130
- function Vt(n, t, r) {
131
+ function $t(n, t, r) {
131
132
  if (!r) return n;
132
- const e = n.find((u) => u.id === r);
133
- return !e || !ne(e, t) || N !== t && ne(e, N) ? n : (N = t, ze(
134
- n.filter((u) => ne(u, N)),
133
+ const e = n.find((o) => o.id === r);
134
+ return !e || !re(e, t) || N !== t && re(e, N) ? n : (N = t, je(
135
+ n.filter((o) => re(o, N)),
135
136
  r
136
- ).filter((u) => u.id !== r));
137
+ ).filter((o) => o.id !== r));
137
138
  }
138
- var de = D(function(t) {
139
- var r = t, { store: e, typeahead: u = !0 } = r, s = O(r, ["store", "typeahead"]);
140
- const a = ce();
141
- e = e || a, K(
139
+ var le = D(function(t) {
140
+ var r = t, { store: e, typeahead: o = !0 } = r, u = P(r, ["store", "typeahead"]);
141
+ const a = ie();
142
+ e = e || a, B(
142
143
  e,
143
144
  process.env.NODE_ENV !== "production" && "CompositeTypeahead must be a Composite component"
144
145
  );
145
- const o = s.onKeyDownCapture, l = le(0), c = V((i) => {
146
- if (o == null || o(i), i.defaultPrevented || !u || !e) return;
147
- if (!Nt(i))
148
- return ue();
149
- const { renderedItems: w, items: m, activeId: d, id: x } = e.getState();
150
- let p = $t(
146
+ const s = u.onKeyDownCapture, c = ce(0), l = j((i) => {
147
+ if (s == null || s(i), i.defaultPrevented || !o || !e) return;
148
+ if (!Ft(i))
149
+ return se();
150
+ const { renderedItems: w, items: m, activeId: d, id: S } = e.getState();
151
+ let p = Lt(
151
152
  m.length > w.length ? m : w
152
153
  );
153
- const f = ye(i.currentTarget), M = `[data-offscreen-id="${x}"]`, b = f.querySelectorAll(M);
154
- for (const S of b) {
155
- const _ = S.ariaDisabled === "true" || "disabled" in S && !!S.disabled;
156
- p.push({ id: S.id, element: S, disabled: _ });
154
+ const f = xe(i.currentTarget), M = `[data-offscreen-id="${S}"]`, v = f.querySelectorAll(M);
155
+ for (const x of v) {
156
+ const H = x.ariaDisabled === "true" || "disabled" in x && !!x.disabled;
157
+ p.push({ id: x.id, element: x, disabled: H });
157
158
  }
158
- if (b.length && (p = tt(p, (S) => S.element)), !Lt(i, p)) return ue();
159
- i.preventDefault(), window.clearTimeout(l.current), l.current = window.setTimeout(() => {
159
+ if (v.length && (p = Xe(p, (x) => x.element)), !Nt(i, p)) return se();
160
+ i.preventDefault(), window.clearTimeout(c.current), c.current = window.setTimeout(() => {
160
161
  N = "";
161
162
  }, 500);
162
163
  const A = i.key.toLowerCase();
163
- N += A, p = Vt(p, A, d);
164
- const P = p.find((S) => ne(S, N));
165
- P ? e.move(P.id) : ue();
164
+ N += A, p = $t(p, A, d);
165
+ const O = p.find((x) => re(x, N));
166
+ O ? e.move(O.id) : se();
166
167
  });
167
- return s = y(v({}, s), {
168
- onKeyDownCapture: c
169
- }), Ee(s);
168
+ return u = E(b({}, u), {
169
+ onKeyDownCapture: l
170
+ }), we(u);
170
171
  });
171
172
  k(function(t) {
172
- const r = de(t);
173
- return F(Ft, r);
173
+ const r = le(t);
174
+ return F(kt, r);
174
175
  });
175
- var ke = Pe(
176
- [xe],
177
- [Se]
178
- ), Rt = ke.useContext, Bt = ke.useScopedContext;
179
- ge(
176
+ var De = Se(
177
+ [ge],
178
+ [he]
179
+ ), jt = De.useContext, Vt = De.useScopedContext;
180
+ Oe(
180
181
  void 0
181
182
  );
182
- var Q = Pe(
183
- [xe, Ze],
184
- [Se, We]
185
- ), fe = Q.useContext, Kt = Q.useScopedContext, oe = Q.useProviderContext, zt = Q.ContextProvider, jt = Q.ScopedContextProvider;
186
- ge(
183
+ var Y = Se(
184
+ [ge, Be],
185
+ [he, Re]
186
+ ), de = Y.useContext, Rt = Y.useScopedContext, oe = Y.useProviderContext, Bt = Y.ContextProvider, Kt = Y.ScopedContextProvider;
187
+ Oe(
187
188
  void 0
188
189
  );
189
- function Wt(n = {}) {
190
+ function zt(n = {}) {
190
191
  var t = n, {
191
192
  combobox: r,
192
193
  parent: e,
193
- menubar: u
194
- } = t, s = ut(t, [
194
+ menubar: o
195
+ } = t, u = tt(t, [
195
196
  "combobox",
196
197
  "parent",
197
198
  "menubar"
198
199
  ]);
199
- const a = !!u && !e, o = vt(
200
- s.store,
201
- gt(e, ["values"]),
202
- ht(r, [
200
+ const a = !!o && !e, s = vt(
201
+ u.store,
202
+ ht(e, ["values"]),
203
+ bt(r, [
203
204
  "arrowElement",
204
205
  "anchorElement",
205
206
  "contentElement",
@@ -207,42 +208,42 @@ function Wt(n = {}) {
207
208
  "disclosureElement"
208
209
  ])
209
210
  );
210
- wt(s, o);
211
- const l = o.getState(), c = Et(G($({}, s), {
212
- store: o,
211
+ gt(u, s);
212
+ const c = s.getState(), l = St(G($({}, u), {
213
+ store: s,
213
214
  orientation: W(
214
- s.orientation,
215
- l.orientation,
215
+ u.orientation,
216
+ c.orientation,
216
217
  "vertical"
217
218
  )
218
- })), i = Ue(G($({}, s), {
219
- store: o,
219
+ })), i = Ke(G($({}, u), {
220
+ store: s,
220
221
  placement: W(
221
- s.placement,
222
- l.placement,
222
+ u.placement,
223
+ c.placement,
223
224
  "bottom-start"
224
225
  ),
225
226
  timeout: W(
226
- s.timeout,
227
- l.timeout,
227
+ u.timeout,
228
+ c.timeout,
228
229
  a ? 0 : 150
229
230
  ),
230
- hideTimeout: W(s.hideTimeout, l.hideTimeout, 0)
231
- })), w = G($($({}, c.getState()), i.getState()), {
232
- initialFocus: W(l.initialFocus, "container"),
231
+ hideTimeout: W(u.hideTimeout, c.hideTimeout, 0)
232
+ })), w = G($($({}, l.getState()), i.getState()), {
233
+ initialFocus: W(c.initialFocus, "container"),
233
234
  values: W(
234
- s.values,
235
- l.values,
236
- s.defaultValues,
235
+ u.values,
236
+ c.values,
237
+ u.defaultValues,
237
238
  {}
238
239
  )
239
- }), m = Mt(w, c, i, o);
240
- return be(
240
+ }), m = wt(w, l, i, s);
241
+ return me(
241
242
  m,
242
243
  () => ve(m, ["mounted"], (d) => {
243
244
  d.mounted || m.setState("activeId", null);
244
245
  })
245
- ), be(
246
+ ), me(
246
247
  m,
247
248
  () => ve(e, ["orientation"], (d) => {
248
249
  m.setState(
@@ -250,18 +251,18 @@ function Wt(n = {}) {
250
251
  d.orientation === "vertical" ? "right-start" : "bottom-start"
251
252
  );
252
253
  })
253
- ), G($($($({}, c), i), m), {
254
+ ), G($($($({}, l), i), m), {
254
255
  combobox: r,
255
256
  parent: e,
256
- menubar: u,
257
+ menubar: o,
257
258
  hideAll: () => {
258
259
  i.hide(), e == null || e.hideAll();
259
260
  },
260
261
  setInitialFocus: (d) => m.setState("initialFocus", d),
261
262
  setValues: (d) => m.setState("values", d),
262
- setValue: (d, x) => {
263
+ setValue: (d, S) => {
263
264
  d !== "__proto__" && d !== "constructor" && (Array.isArray(d) || m.setState("values", (p) => {
264
- const f = p[d], M = at(x, f);
265
+ const f = p[d], M = rt(S, f);
265
266
  return M === f ? p : G($({}, p), {
266
267
  [d]: M !== void 0 && M
267
268
  });
@@ -269,9 +270,9 @@ function Wt(n = {}) {
269
270
  }
270
271
  });
271
272
  }
272
- function Zt(n, t, r) {
273
- return st(t, [r.combobox, r.parent, r.menubar]), xt(n, r, "values", "setValues"), Object.assign(
274
- qe(
273
+ function Wt(n, t, r) {
274
+ return nt(t, [r.combobox, r.parent, r.menubar]), xt(n, r, "values", "setValues"), Object.assign(
275
+ ze(
275
276
  Ct(n, t, r),
276
277
  t,
277
278
  r
@@ -283,114 +284,114 @@ function Zt(n, t, r) {
283
284
  }
284
285
  );
285
286
  }
286
- function Ut(n = {}) {
287
- const t = fe(), r = Rt(), e = It();
288
- n = y(v({}, n), {
287
+ function Zt(n = {}) {
288
+ const t = de(), r = jt(), e = At();
289
+ n = E(b({}, n), {
289
290
  parent: n.parent !== void 0 ? n.parent : t,
290
291
  menubar: n.menubar !== void 0 ? n.menubar : r,
291
292
  combobox: n.combobox !== void 0 ? n.combobox : e
292
293
  });
293
- const [u, s] = St(Wt, n);
294
- return Zt(u, s, n);
294
+ const [o, u] = Mt(zt, n);
295
+ return Wt(o, u, n);
295
296
  }
296
- var qt = "div";
297
- function Gt(n) {
298
- var t = n, { store: r } = t, e = O(t, ["store"]);
299
- const [u, s] = we(void 0), a = e["aria-label"], o = R(r, "disclosureElement"), l = R(r, "contentElement");
300
- return Me(() => {
301
- const c = o;
302
- if (!c) return;
303
- const i = l;
297
+ var Ut = "div";
298
+ function qt(n) {
299
+ var t = n, { store: r } = t, e = P(t, ["store"]);
300
+ const [o, u] = Pe(void 0), a = e["aria-label"], s = V(r, "disclosureElement"), c = V(r, "contentElement");
301
+ return Ae(() => {
302
+ const l = s;
303
+ if (!l) return;
304
+ const i = c;
304
305
  if (!i) return;
305
- a || i.hasAttribute("aria-label") ? s(void 0) : c.id && s(c.id);
306
- }, [a, o, l]), u;
306
+ a || i.hasAttribute("aria-label") ? u(void 0) : l.id && u(l.id);
307
+ }, [a, s, c]), o;
307
308
  }
308
- var Fe = D(
309
+ var ke = D(
309
310
  function(t) {
310
- var r = t, { store: e, alwaysVisible: u, composite: s } = r, a = O(r, ["store", "alwaysVisible", "composite"]);
311
- const o = oe();
312
- e = e || o, K(
311
+ var r = t, { store: e, alwaysVisible: o, composite: u } = r, a = P(r, ["store", "alwaysVisible", "composite"]);
312
+ const s = oe();
313
+ e = e || s, B(
313
314
  e,
314
315
  process.env.NODE_ENV !== "production" && "MenuList must receive a `store` prop or be wrapped in a MenuProvider component."
315
316
  );
316
- const l = e.parent, c = e.menubar, i = !!l, w = Oe(a.id), m = a.onKeyDown, d = e.useState(
317
+ const c = e.parent, l = e.menubar, i = !!c, w = Ce(a.id), m = a.onKeyDown, d = e.useState(
317
318
  (g) => g.placement.split("-")[0]
318
- ), x = e.useState(
319
+ ), S = e.useState(
319
320
  (g) => g.orientation === "both" ? void 0 : g.orientation
320
- ), p = x !== "vertical", f = R(
321
- c,
321
+ ), p = S !== "vertical", f = V(
322
+ l,
322
323
  (g) => !!g && g.orientation !== "vertical"
323
- ), M = V((g) => {
324
+ ), M = j((g) => {
324
325
  if (m == null || m(g), !g.defaultPrevented) {
325
- if (i || c && !p) {
326
- const I = {
326
+ if (i || l && !p) {
327
+ const T = {
327
328
  ArrowRight: () => d === "left" && !p,
328
329
  ArrowLeft: () => d === "right" && !p,
329
330
  ArrowUp: () => d === "bottom" && p,
330
331
  ArrowDown: () => d === "top" && p
331
332
  }[g.key];
332
- if (I != null && I())
333
+ if (T != null && T())
333
334
  return g.stopPropagation(), g.preventDefault(), e == null ? void 0 : e.hide();
334
335
  }
335
- if (c) {
336
- const I = {
336
+ if (l) {
337
+ const T = {
337
338
  ArrowRight: () => {
338
339
  if (f)
339
- return c.next();
340
+ return l.next();
340
341
  },
341
342
  ArrowLeft: () => {
342
343
  if (f)
343
- return c.previous();
344
+ return l.previous();
344
345
  },
345
346
  ArrowDown: () => {
346
347
  if (!f)
347
- return c.next();
348
+ return l.next();
348
349
  },
349
350
  ArrowUp: () => {
350
351
  if (!f)
351
- return c.previous();
352
+ return l.previous();
352
353
  }
353
- }[g.key], L = I == null ? void 0 : I();
354
- L !== void 0 && (g.stopPropagation(), g.preventDefault(), c.move(L));
354
+ }[g.key], L = T == null ? void 0 : T();
355
+ L !== void 0 && (g.stopPropagation(), g.preventDefault(), l.move(L));
355
356
  }
356
357
  }
357
358
  });
358
- a = Ae(
359
+ a = ye(
359
360
  a,
360
- (g) => /* @__PURE__ */ se.jsx(jt, { value: e, children: g }),
361
+ (g) => /* @__PURE__ */ C.jsx(Kt, { value: e, children: g }),
361
362
  [e]
362
363
  );
363
- const b = Gt(v({ store: e }, a)), A = e.useState("mounted"), P = Pt(A, a.hidden, u), S = P ? y(v({}, a.style), { display: "none" }) : a.style;
364
- a = y(v({
364
+ const v = qt(b({ store: e }, a)), A = e.useState("mounted"), O = Et(A, a.hidden, o), x = O ? E(b({}, a.style), { display: "none" }) : a.style;
365
+ a = E(b({
365
366
  id: w,
366
- "aria-labelledby": b,
367
- hidden: P
367
+ "aria-labelledby": v,
368
+ hidden: O
368
369
  }, a), {
369
- ref: re(w ? e.setContentElement : null, a.ref),
370
- style: S,
370
+ ref: ne(w ? e.setContentElement : null, a.ref),
371
+ style: x,
371
372
  onKeyDown: M
372
373
  });
373
- const _ = !!e.combobox;
374
- return s = s ?? !_, s && (a = v({
374
+ const H = !!e.combobox;
375
+ return u = u ?? !H, u && (a = b({
375
376
  role: "menu",
376
- "aria-orientation": x
377
- }, a)), a = yt(v({ store: e, composite: s }, a)), a = de(v({ store: e, typeahead: !_ }, a)), a;
377
+ "aria-orientation": S
378
+ }, a)), a = yt(b({ store: e, composite: u }, a)), a = le(b({ store: e, typeahead: !H }, a)), a;
378
379
  }
379
380
  );
380
381
  k(function(t) {
381
- const r = Fe(t);
382
- return F(qt, r);
382
+ const r = ke(t);
383
+ return F(Ut, r);
383
384
  });
384
- var Yt = "div", Jt = D(function(t) {
385
+ var Gt = "div", Qt = D(function(t) {
385
386
  var r = t, {
386
387
  store: e,
387
- modal: u = !1,
388
- portal: s = !!u,
388
+ modal: o = !1,
389
+ portal: u = !!o,
389
390
  hideOnEscape: a = !0,
390
- autoFocusOnShow: o = !0,
391
- hideOnHoverOutside: l,
392
- alwaysVisible: c
393
- } = r, i = O(r, [
391
+ autoFocusOnShow: s = !0,
392
+ hideOnHoverOutside: c,
393
+ alwaysVisible: l
394
+ } = r, i = P(r, [
394
395
  "store",
395
396
  "modal",
396
397
  "portal",
@@ -400,94 +401,94 @@ var Yt = "div", Jt = D(function(t) {
400
401
  "alwaysVisible"
401
402
  ]);
402
403
  const w = oe();
403
- e = e || w, K(
404
+ e = e || w, B(
404
405
  e,
405
406
  process.env.NODE_ENV !== "production" && "Menu must receive a `store` prop or be wrapped in a MenuProvider component."
406
407
  );
407
- const m = le(null), d = e.parent, x = e.menubar, p = !!d, f = !!x && !p;
408
- i = y(v({}, i), {
409
- ref: re(m, i.ref)
408
+ const m = ce(null), d = e.parent, S = e.menubar, p = !!d, f = !!S && !p;
409
+ i = E(b({}, i), {
410
+ ref: ne(m, i.ref)
410
411
  });
411
- const M = Fe(v({
412
+ const M = ke(b({
412
413
  store: e,
413
- alwaysVisible: c
414
- }, i)), { "aria-labelledby": b } = M;
415
- i = O(M, ["aria-labelledby"]);
416
- const [P, S] = we(), _ = e.useState("autoFocusOnShow"), g = e.useState("initialFocus"), z = e.useState("baseElement"), I = e.useState("renderedItems");
417
- Me(() => {
418
- let H = !1;
419
- return S((E) => {
420
- var ee, pe, me;
421
- if (H || !_) return;
422
- if ((ee = E == null ? void 0 : E.current) != null && ee.isConnected) return E;
423
- const te = Ve();
414
+ alwaysVisible: l
415
+ }, i)), { "aria-labelledby": v } = M;
416
+ i = P(M, ["aria-labelledby"]);
417
+ const [O, x] = Pe(), H = e.useState("autoFocusOnShow"), g = e.useState("initialFocus"), K = e.useState("baseElement"), T = e.useState("renderedItems");
418
+ Ae(() => {
419
+ let _ = !1;
420
+ return x((y) => {
421
+ var ee, fe, pe;
422
+ if (_ || !H) return;
423
+ if ((ee = y == null ? void 0 : y.current) != null && ee.isConnected) return y;
424
+ const te = dt();
424
425
  switch (g) {
425
426
  case "first":
426
- te.current = ((pe = I.find((q) => !q.disabled && q.element)) == null ? void 0 : pe.element) || null;
427
+ te.current = ((fe = T.find((q) => !q.disabled && q.element)) == null ? void 0 : fe.element) || null;
427
428
  break;
428
429
  case "last":
429
- te.current = ((me = [...I].reverse().find((q) => !q.disabled && q.element)) == null ? void 0 : me.element) || null;
430
+ te.current = ((pe = [...T].reverse().find((q) => !q.disabled && q.element)) == null ? void 0 : pe.element) || null;
430
431
  break;
431
432
  default:
432
- te.current = z;
433
+ te.current = K;
433
434
  }
434
435
  return te;
435
436
  }), () => {
436
- H = !0;
437
+ _ = !0;
437
438
  };
438
- }, [e, _, g, I, z]);
439
- const L = p ? !1 : u, h = !!o, T = !!P || !!i.initialFocus || !!L, j = R(
439
+ }, [e, H, g, T, K]);
440
+ const L = p ? !1 : o, h = !!s, I = !!O || !!i.initialFocus || !!L, z = V(
440
441
  e.combobox || e,
441
442
  "contentElement"
442
- ), B = R(
443
+ ), R = V(
443
444
  (d == null ? void 0 : d.combobox) || d,
444
445
  "contentElement"
445
- ), X = Re(() => {
446
- if (!B || !j) return;
447
- const H = j.getAttribute("role"), E = B.getAttribute("role");
448
- if (!((E === "menu" || E === "menubar") && H === "menu"))
449
- return B;
450
- }, [j, B]);
451
- return X !== void 0 && (i = v({
452
- preserveTabOrderAnchor: X
453
- }, i)), i = Ge(y(v({
446
+ ), J = ft(() => {
447
+ if (!R || !z) return;
448
+ const _ = z.getAttribute("role"), y = R.getAttribute("role");
449
+ if (!((y === "menu" || y === "menubar") && _ === "menu"))
450
+ return R;
451
+ }, [z, R]);
452
+ return J !== void 0 && (i = b({
453
+ preserveTabOrderAnchor: J
454
+ }, i)), i = We(E(b({
454
455
  store: e,
455
- alwaysVisible: c,
456
- initialFocus: P,
457
- autoFocusOnShow: h ? T && o : _ || !!L
456
+ alwaysVisible: l,
457
+ initialFocus: O,
458
+ autoFocusOnShow: h ? I && s : H || !!L
458
459
  }, i), {
459
- hideOnEscape(H) {
460
- return it(a, H) ? !1 : (e == null || e.hideAll(), !0);
460
+ hideOnEscape(_) {
461
+ return st(a, _) ? !1 : (e == null || e.hideAll(), !0);
461
462
  },
462
- hideOnHoverOutside(H) {
463
- const E = e == null ? void 0 : e.getState().disclosureElement;
464
- return (typeof l == "function" ? l(H) : l ?? (p ? !0 : f ? E ? !Z(E) : !0 : !1)) ? H.defaultPrevented || !p || !E || (lt(E, "mouseout", H), !Z(E)) ? !0 : (requestAnimationFrame(() => {
465
- Z(E) || e == null || e.hide();
463
+ hideOnHoverOutside(_) {
464
+ const y = e == null ? void 0 : e.getState().disclosureElement;
465
+ return (typeof c == "function" ? c(_) : c ?? (p ? !0 : f ? y ? !Z(y) : !0 : !1)) ? _.defaultPrevented || !p || !y || (ot(y, "mouseout", _), !Z(y)) ? !0 : (requestAnimationFrame(() => {
466
+ Z(y) || e == null || e.hide();
466
467
  }), !1) : !1;
467
468
  },
468
469
  modal: L,
469
- portal: s,
470
+ portal: u,
470
471
  backdrop: p ? !1 : i.backdrop
471
- })), i = v({
472
- "aria-labelledby": b
472
+ })), i = b({
473
+ "aria-labelledby": v
473
474
  }, i), i;
474
- }), Qt = Ot(
475
+ }), Xt = Ot(
475
476
  k(function(t) {
476
- const r = Jt(t);
477
- return F(Yt, r);
477
+ const r = Qt(t);
478
+ return F(Gt, r);
478
479
  }),
479
480
  oe
480
- ), Xt = "div", en = D(
481
+ ), Yt = "div", Jt = D(
481
482
  function(t) {
482
- var r = t, { store: e } = r, u = O(r, ["store"]);
483
- const s = fe();
484
- return e = e || s, mt(v({ store: e }, u));
483
+ var r = t, { store: e } = r, o = P(r, ["store"]);
484
+ const u = de();
485
+ return e = e || u, pt(b({ store: e }, o));
485
486
  }
486
- ), tn = k(function(t) {
487
- const r = en(t);
488
- return F(Xt, r);
489
- }), nn = "button";
490
- function rn(n, t) {
487
+ ), er = k(function(t) {
488
+ const r = Jt(t);
489
+ return F(Yt, r);
490
+ }), tr = "button";
491
+ function rr(n, t) {
491
492
  return {
492
493
  ArrowDown: t === "bottom" || t === "top" ? "first" : !1,
493
494
  ArrowUp: t === "bottom" || t === "top" ? "last" : !1,
@@ -495,172 +496,172 @@ function rn(n, t) {
495
496
  ArrowLeft: t === "left" ? "first" : !1
496
497
  }[n.key];
497
498
  }
498
- function he(n, t) {
499
+ function be(n, t) {
499
500
  return !!(n != null && n.some((r) => !r.element || r.element === t ? !1 : r.element.getAttribute("aria-expanded") === "true"));
500
501
  }
501
- var on = D(
502
+ var nr = D(
502
503
  function(t) {
503
504
  var r = t, {
504
505
  store: e,
505
- focusable: u,
506
- accessibleWhenDisabled: s,
506
+ focusable: o,
507
+ accessibleWhenDisabled: u,
507
508
  showOnHover: a
508
- } = r, o = O(r, [
509
+ } = r, s = P(r, [
509
510
  "store",
510
511
  "focusable",
511
512
  "accessibleWhenDisabled",
512
513
  "showOnHover"
513
514
  ]);
514
- const l = oe();
515
- e = e || l, K(
515
+ const c = oe();
516
+ e = e || c, B(
516
517
  e,
517
518
  process.env.NODE_ENV !== "production" && "MenuButton must receive a `store` prop or be wrapped in a MenuProvider component."
518
519
  );
519
- const c = le(null), i = e.parent, w = e.menubar, m = !!i, d = !!w && !m, x = ct(o), p = () => {
520
- const h = c.current;
520
+ const l = ce(null), i = e.parent, w = e.menubar, m = !!i, d = !!w && !m, S = at(s), p = () => {
521
+ const h = l.current;
521
522
  h && (e == null || e.setDisclosureElement(h), e == null || e.setAnchorElement(h), e == null || e.show());
522
- }, f = o.onFocus, M = V((h) => {
523
- if (f == null || f(h), x || h.defaultPrevented || (e == null || e.setAutoFocusOnShow(!1), e == null || e.setActiveId(null), !w) || !d) return;
524
- const { items: T } = w.getState();
525
- he(T, h.currentTarget) && p();
526
- }), b = R(
523
+ }, f = s.onFocus, M = j((h) => {
524
+ if (f == null || f(h), S || h.defaultPrevented || (e == null || e.setAutoFocusOnShow(!1), e == null || e.setActiveId(null), !w) || !d) return;
525
+ const { items: I } = w.getState();
526
+ be(I, h.currentTarget) && p();
527
+ }), v = V(
527
528
  e,
528
529
  (h) => h.placement.split("-")[0]
529
- ), A = o.onKeyDown, P = V((h) => {
530
- if (A == null || A(h), x || h.defaultPrevented) return;
531
- const T = rn(h, b);
532
- T && (h.preventDefault(), p(), e == null || e.setAutoFocusOnShow(!0), e == null || e.setInitialFocus(T));
533
- }), S = o.onClick, _ = V((h) => {
534
- if (S == null || S(h), h.defaultPrevented || !e) return;
535
- const T = !h.detail, { open: j } = e.getState();
536
- (!j || T) && ((!m || T) && e.setAutoFocusOnShow(!0), e.setInitialFocus(T ? "first" : "container")), m && p();
530
+ ), A = s.onKeyDown, O = j((h) => {
531
+ if (A == null || A(h), S || h.defaultPrevented) return;
532
+ const I = rr(h, v);
533
+ I && (h.preventDefault(), p(), e == null || e.setAutoFocusOnShow(!0), e == null || e.setInitialFocus(I));
534
+ }), x = s.onClick, H = j((h) => {
535
+ if (x == null || x(h), h.defaultPrevented || !e) return;
536
+ const I = !h.detail, { open: z } = e.getState();
537
+ (!z || I) && ((!m || I) && e.setAutoFocusOnShow(!0), e.setInitialFocus(I ? "first" : "container")), m && p();
537
538
  });
538
- o = Ae(
539
- o,
540
- (h) => /* @__PURE__ */ se.jsx(zt, { value: e, children: h }),
539
+ s = ye(
540
+ s,
541
+ (h) => /* @__PURE__ */ C.jsx(Bt, { value: e, children: h }),
541
542
  [e]
542
- ), m && (o = y(v({}, o), {
543
- render: /* @__PURE__ */ se.jsx(At.div, { render: o.render })
543
+ ), m && (s = E(b({}, s), {
544
+ render: /* @__PURE__ */ C.jsx(Pt.div, { render: s.render })
544
545
  }));
545
- const g = Oe(o.id), z = R(
546
+ const g = Ce(s.id), K = V(
546
547
  (i == null ? void 0 : i.combobox) || i,
547
548
  "contentElement"
548
- ), I = m || d ? Ie(z, "menuitem") : void 0, L = e.useState("contentElement");
549
- return o = y(v({
549
+ ), T = m || d ? Ee(K, "menuitem") : void 0, L = e.useState("contentElement");
550
+ return s = E(b({
550
551
  id: g,
551
- role: I,
552
- "aria-haspopup": dt(L, "menu")
553
- }, o), {
554
- ref: re(c, o.ref),
552
+ role: T,
553
+ "aria-haspopup": ut(L, "menu")
554
+ }, s), {
555
+ ref: ne(l, s.ref),
555
556
  onFocus: M,
556
- onKeyDown: P,
557
- onClick: _
558
- }), o = Ye(y(v({
557
+ onKeyDown: O,
558
+ onClick: H
559
+ }), s = Ze(E(b({
559
560
  store: e,
560
- focusable: u,
561
- accessibleWhenDisabled: s
562
- }, o), {
561
+ focusable: o,
562
+ accessibleWhenDisabled: u
563
+ }, s), {
563
564
  showOnHover: (h) => {
564
565
  if (!(() => {
565
566
  if (typeof a == "function") return a(h);
566
567
  if (a != null) return a;
567
568
  if (m) return !0;
568
569
  if (!w) return !1;
569
- const { items: X } = w.getState();
570
- return d && he(X);
570
+ const { items: J } = w.getState();
571
+ return d && be(J);
571
572
  })()) return !1;
572
- const B = d ? w : i;
573
- return B && B.setActiveId(h.currentTarget.id), !0;
573
+ const R = d ? w : i;
574
+ return R && R.setActiveId(h.currentTarget.id), !0;
574
575
  }
575
- })), o = bt(v({
576
+ })), s = mt(b({
576
577
  store: e,
577
578
  toggleOnClick: !m,
578
- focusable: u,
579
- accessibleWhenDisabled: s
580
- }, o)), o = de(v({
579
+ focusable: o,
580
+ accessibleWhenDisabled: u
581
+ }, s)), s = le(b({
581
582
  store: e,
582
583
  typeahead: d
583
- }, o)), o;
584
+ }, s)), s;
584
585
  }
585
- ), un = k(function(t) {
586
- const r = on(t);
587
- return F(nn, r);
588
- }), an = "div";
589
- function sn(n, t, r) {
586
+ ), or = k(function(t) {
587
+ const r = nr(t);
588
+ return F(tr, r);
589
+ }), sr = "div";
590
+ function ar(n, t, r) {
590
591
  var e;
591
592
  if (!n) return !1;
592
593
  if (Z(n)) return !0;
593
- const u = t == null ? void 0 : t.find((l) => {
594
- var c;
595
- return l.element === r ? !1 : ((c = l.element) == null ? void 0 : c.getAttribute("aria-expanded")) === "true";
596
- }), s = (e = u == null ? void 0 : u.element) == null ? void 0 : e.getAttribute("aria-controls");
597
- if (!s) return !1;
598
- const o = ye(n).getElementById(s);
599
- return o ? Z(o) ? !0 : !!o.querySelector("[role=menuitem][aria-expanded=true]") : !1;
594
+ const o = t == null ? void 0 : t.find((c) => {
595
+ var l;
596
+ return c.element === r ? !1 : ((l = c.element) == null ? void 0 : l.getAttribute("aria-expanded")) === "true";
597
+ }), u = (e = o == null ? void 0 : o.element) == null ? void 0 : e.getAttribute("aria-controls");
598
+ if (!u) return !1;
599
+ const s = xe(n).getElementById(u);
600
+ return s ? Z(s) ? !0 : !!s.querySelector("[role=menuitem][aria-expanded=true]") : !1;
600
601
  }
601
- var ln = D(
602
+ var ur = D(
602
603
  function(t) {
603
604
  var r = t, {
604
605
  store: e,
605
- hideOnClick: u = !0,
606
- preventScrollOnKeyDown: s = !0,
606
+ hideOnClick: o = !0,
607
+ preventScrollOnKeyDown: u = !0,
607
608
  focusOnHover: a,
608
- blurOnHoverEnd: o
609
- } = r, l = O(r, [
609
+ blurOnHoverEnd: s
610
+ } = r, c = P(r, [
610
611
  "store",
611
612
  "hideOnClick",
612
613
  "preventScrollOnKeyDown",
613
614
  "focusOnHover",
614
615
  "blurOnHoverEnd"
615
616
  ]);
616
- const c = Kt(!0), i = Bt();
617
- e = e || c || i, K(
617
+ const l = Rt(!0), i = Vt();
618
+ e = e || l || i, B(
618
619
  e,
619
620
  process.env.NODE_ENV !== "production" && "MenuItem must be wrapped in a MenuList, Menu or Menubar component"
620
621
  );
621
- const w = l.onClick, m = ae(u), d = "hideAll" in e ? e.hideAll : void 0, x = !!d, p = V((b) => {
622
- w == null || w(b), !(b.defaultPrevented || ft(b) || pt(b) || !d || b.currentTarget.getAttribute("aria-haspopup") === "menu") && m(b) && d();
623
- }), f = R(
622
+ const w = c.onClick, m = ae(o), d = "hideAll" in e ? e.hideAll : void 0, S = !!d, p = j((v) => {
623
+ w == null || w(v), !(v.defaultPrevented || it(v) || ct(v) || !d || v.currentTarget.getAttribute("aria-haspopup") === "menu") && m(v) && d();
624
+ }), f = V(
624
625
  e,
625
- (b) => "contentElement" in b ? b.contentElement : null
626
- ), M = Ie(f, "menuitem");
627
- return l = y(v({
626
+ (v) => "contentElement" in v ? v.contentElement : null
627
+ ), M = Ee(f, "menuitem");
628
+ return c = E(b({
628
629
  role: M
629
- }, l), {
630
+ }, c), {
630
631
  onClick: p
631
- }), l = je(v({
632
+ }), c = Ve(b({
632
633
  store: e,
633
- preventScrollOnKeyDown: s
634
- }, l)), l = _e(y(v({
634
+ preventScrollOnKeyDown: u
635
+ }, c)), c = Ie(E(b({
635
636
  store: e
636
- }, l), {
637
- focusOnHover(b) {
638
- const A = () => typeof a == "function" ? a(b) : a ?? !0;
637
+ }, c), {
638
+ focusOnHover(v) {
639
+ const A = () => typeof a == "function" ? a(v) : a ?? !0;
639
640
  if (!e || !A()) return !1;
640
- const { baseElement: P, items: S } = e.getState();
641
- return x ? (b.currentTarget.hasAttribute("aria-expanded") && b.currentTarget.focus(), !0) : sn(P, S, b.currentTarget) ? (b.currentTarget.focus(), !0) : !1;
641
+ const { baseElement: O, items: x } = e.getState();
642
+ return S ? (v.currentTarget.hasAttribute("aria-expanded") && v.currentTarget.focus(), !0) : ar(O, x, v.currentTarget) ? (v.currentTarget.focus(), !0) : !1;
642
643
  },
643
- blurOnHoverEnd(b) {
644
- return typeof o == "function" ? o(b) : o ?? x;
644
+ blurOnHoverEnd(v) {
645
+ return typeof s == "function" ? s(v) : s ?? S;
645
646
  }
646
- })), l;
647
+ })), c;
647
648
  }
648
- ), cn = Ce(
649
+ ), ir = Me(
649
650
  k(function(t) {
650
- const r = ln(t);
651
- return F(an, r);
651
+ const r = ur(t);
652
+ return F(sr, r);
652
653
  })
653
- ), dn = "hr", fn = D(
654
+ ), cr = "hr", lr = D(
654
655
  function(t) {
655
- var r = t, { store: e } = r, u = O(r, ["store"]);
656
- const s = fe();
657
- return e = e || s, u = De(v({ store: e }, u)), u;
656
+ var r = t, { store: e } = r, o = P(r, ["store"]);
657
+ const u = de();
658
+ return e = e || u, o = _e(b({ store: e }, o)), o;
658
659
  }
659
- ), pn = k(function(t) {
660
- const r = fn(t);
661
- return F(dn, r);
660
+ ), dr = k(function(t) {
661
+ const r = lr(t);
662
+ return F(cr, r);
662
663
  });
663
- const mn = Y.divBox`
664
+ const fr = Q.divBox`
664
665
  display: flex;
665
666
  z-index: 2;
666
667
  color: ${U("defaultCards.backgroundColor")};
@@ -669,32 +670,34 @@ const mn = Y.divBox`
669
670
  #stroke {
670
671
  color: ${U("defaultCards.borderColor")};
671
672
  }
672
- `, bn = Y.svgBox(
673
- ({ $transform: n }) => Be`
673
+ `, pr = Q.svgBox(
674
+ ({ $transform: n }) => Le`
674
675
  transform: ${n};
675
676
  `
676
- ), vn = {
677
- top: "rotateZ(180deg)",
678
- right: "rotateZ(-90deg)",
677
+ ), mr = {
679
678
  bottom: "rotateZ(360deg)",
680
- left: "rotateZ(90deg)"
681
- }, Ne = J(({ store: n }, t) => {
682
- const r = n == null ? void 0 : n.useState("currentPlacement"), [e] = r.split("-");
683
- return /* @__PURE__ */ C.createElement(tn, { ref: t, render: /* @__PURE__ */ C.createElement(mn, null) }, /* @__PURE__ */ C.createElement(
684
- bn,
679
+ left: "rotateZ(90deg)",
680
+ right: "rotateZ(-90deg)",
681
+ top: "rotateZ(180deg)"
682
+ }, Fe = X(({ store: n }, t) => {
683
+ const r = n == null ? void 0 : n.useState("currentPlacement"), [e] = (r == null ? void 0 : r.split("-")) || ["bottom"];
684
+ return /* @__PURE__ */ C.jsx(er, { ref: t, render: /* @__PURE__ */ C.jsx(fr, {}), children: /* @__PURE__ */ C.jsxs(
685
+ pr,
685
686
  {
686
- $transform: vn[e],
687
+ $transform: mr[e],
687
688
  h: 30,
688
689
  viewBox: "0 0 30 30",
689
690
  w: 30,
690
- xmlns: "http://www.w3.org/2000/svg"
691
- },
692
- /* @__PURE__ */ C.createElement("path", { d: "M7 30L15 22L23 30H7Z", fill: "currentColor", fillRule: "nonzero", id: "stroke" }),
693
- /* @__PURE__ */ C.createElement("path", { d: "M8 30L15 23L22 30H8Z", fill: "currentColor", fillRule: "nonzero" })
694
- ));
691
+ xmlns: "http://www.w3.org/2000/svg",
692
+ children: [
693
+ /* @__PURE__ */ C.jsx("path", { d: "M7 30L15 22L23 30H7Z", fill: "currentColor", fillRule: "nonzero", id: "stroke" }),
694
+ /* @__PURE__ */ C.jsx("path", { d: "M8 30L15 23L22 30H8Z", fill: "currentColor", fillRule: "nonzero" })
695
+ ]
696
+ }
697
+ ) });
695
698
  });
696
- Ne.displayName = "Arrow";
697
- const hn = Y.buttonBox`
699
+ Fe.displayName = "Arrow";
700
+ const vr = Q.buttonBox`
698
701
  ${U("dropdownMenu.item")};
699
702
  display: flex;
700
703
  align-items: center;
@@ -709,14 +712,14 @@ const hn = Y.buttonBox`
709
712
  &:focus {
710
713
  outline: none !important; /* important for firefox */
711
714
  }
712
- `, Le = J(({ as: n, ...t }, r) => /* @__PURE__ */ C.createElement(cn, { ref: r, type: "button", ...t, render: /* @__PURE__ */ C.createElement(hn, { as: n }) }));
713
- Le.displayName = "Item";
714
- const gn = Y.hr`
715
+ `, Ne = X(({ as: n, ...t }, r) => /* @__PURE__ */ C.jsx(ir, { ref: r, type: "button", ...t, render: /* @__PURE__ */ C.jsx(vr, { as: n }) }));
716
+ Ne.displayName = "Item";
717
+ const br = Q.hr`
715
718
  ${U("dropdownMenu.separator")};
716
719
  border: 0;
717
720
  height: 1px;
718
721
  margin: 0;
719
- `, wn = J((n, t) => /* @__PURE__ */ C.createElement(pn, { ref: t, render: /* @__PURE__ */ C.createElement(gn, null), ...n })), Mn = Y.divBox`
722
+ `, hr = X((n, t) => /* @__PURE__ */ C.jsx(dr, { ref: t, render: /* @__PURE__ */ C.jsx(br, {}), ...n })), gr = Q.divBox`
720
723
  ${U("cards.default")};
721
724
  ${U("dropdownMenu.inner")};
722
725
  z-index: 1;
@@ -726,47 +729,47 @@ const gn = Y.hr`
726
729
  &[data-enter] {
727
730
  opacity: 1;
728
731
  }
729
- `, Sn = J(
730
- ({ children: n, dataTestId: t, gutter: r = "xs", innerProps: e = {}, store: u, ...s }, a) => {
731
- const o = Ke(), l = u.useState("arrowElement");
732
- let c = r;
733
- return typeof c == "string" && (c = parseInt(o.toPx(parseFloat(o.space[r])), 10) || 0), l && (c = 0), /* @__PURE__ */ C.createElement(
734
- Qt,
732
+ `, wr = X(
733
+ ({ children: n, dataTestId: t, gutter: r = "xs", innerProps: e = {}, store: o, ...u }, a) => {
734
+ const s = $e(), c = o == null ? void 0 : o.useState("arrowElement");
735
+ let l = r;
736
+ return typeof l == "string" && (l = parseInt(s.toPx(parseFloat(s.space[r])), 10) || 0), c && (l = 0), /* @__PURE__ */ C.jsx(
737
+ Xt,
735
738
  {
736
739
  "aria-label": "dropdown-menu",
737
740
  "data-testid": t,
738
- gutter: c,
741
+ gutter: l,
739
742
  ref: a,
740
- render: /* @__PURE__ */ C.createElement(Mn, { ...e }),
741
- store: u,
743
+ render: /* @__PURE__ */ C.jsx(gr, { ...e }),
744
+ store: o,
742
745
  tabIndex: 0,
743
- ...s
744
- },
745
- n
746
+ ...u,
747
+ children: n
748
+ }
746
749
  );
747
750
  }
748
751
  );
749
- function Fn(n = {}) {
750
- return Ut({
752
+ function kr(n = {}) {
753
+ return Zt({
751
754
  animated: !0,
752
755
  ...n
753
756
  });
754
757
  }
755
- const xn = J(({ as: n, store: t, ...r }, e) => /* @__PURE__ */ C.createElement(
756
- un,
758
+ const Mr = X(({ as: n, store: t, ...r }, e) => /* @__PURE__ */ C.jsx(
759
+ or,
757
760
  {
758
761
  ref: e,
759
- render: n ? (u) => /* @__PURE__ */ C.createElement(n, { ...u }) : void 0,
762
+ render: n ? (o) => /* @__PURE__ */ C.jsx(n, { ...o }) : void 0,
760
763
  store: t,
761
764
  ...r
762
765
  }
763
- )), Nn = Object.assign(Sn, {
764
- Trigger: xn,
765
- Item: Le,
766
- Separator: wn,
767
- Arrow: Ne
766
+ )), Fr = Object.assign(wr, {
767
+ Arrow: Fe,
768
+ Item: Ne,
769
+ Separator: hr,
770
+ Trigger: Mr
768
771
  });
769
772
  export {
770
- Nn as DropdownMenu,
771
- Fn as useDropdownMenu
773
+ Fr as DropdownMenu,
774
+ kr as useDropdownMenu
772
775
  };