welcome-ui 8.1.0 → 8.1.2

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