welcome-ui 8.1.1 → 8.2.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 (244) hide show
  1. package/dist/{AXB53BZF-BOEe01VW.mjs → AXB53BZF-XKOjjeWO.mjs} +3 -3
  2. package/dist/Accordion.mjs +30 -23
  3. package/dist/Alert.mjs +72 -66
  4. package/dist/AspectRatio.mjs +9 -9
  5. package/dist/Avatar.mjs +45 -41
  6. package/dist/{BYC7LY2E-B1IDizRs.mjs → BYC7LY2E-CWSI38FM.mjs} +128 -127
  7. package/dist/Badge.mjs +25 -25
  8. package/dist/Box.mjs +5 -5
  9. package/dist/Breadcrumb.mjs +118 -112
  10. package/dist/Button.mjs +72 -67
  11. package/dist/ButtonGroup.mjs +12 -11
  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-IA_gVoXd.mjs → CustomPopper-DezjKb9n.mjs} +1458 -1442
  17. package/dist/DatePicker.mjs +63 -62
  18. package/dist/DateTimePicker.mjs +69 -63
  19. package/dist/DateTimePickerCommon.mjs +1 -1
  20. package/dist/Drawer.mjs +171 -159
  21. package/dist/DropdownMenu.mjs +354 -351
  22. package/dist/Field.mjs +103 -92
  23. package/dist/FieldGroup.mjs +12 -9
  24. package/dist/FileDrop.mjs +316 -295
  25. package/dist/FileUpload.mjs +83 -69
  26. package/dist/Files.mjs +41 -41
  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-EL9KXYBU.mjs → ITI7HKP4-C89kOQb8.mjs} +68 -67
  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 +64 -56
  35. package/dist/{JC64G2H7-BzklVBKM.mjs → JC64G2H7-afsomHuH.mjs} +47 -46
  36. package/dist/{KUU7WJ55-CS4NemC6.mjs → KUU7WJ55-CzsjuIMv.mjs} +1 -1
  37. package/dist/LVA2YJMS-C-kJ1lkr.mjs +873 -0
  38. package/dist/Label.mjs +37 -35
  39. package/dist/Link.mjs +32 -28
  40. package/dist/Loader.mjs +20 -16
  41. package/dist/Logo.mjs +55 -42
  42. package/dist/{MTZPJQMC-CMjAwC0N.mjs → MTZPJQMC-TybFZCho.mjs} +2 -2
  43. package/dist/Modal.mjs +263 -244
  44. package/dist/{NLEBE274-QOMV1l7e.mjs → NLEBE274-oSxMftGy.mjs} +9 -9
  45. package/dist/{P2CTZE2T-Cl2w7OLV.mjs → P2CTZE2T-DOT1mNnX.mjs} +49 -48
  46. package/dist/{P4IRICAX-DezbJY4s.mjs → P4IRICAX-CWSZLTGz.mjs} +3 -3
  47. package/dist/Pagination.mjs +105 -103
  48. package/dist/PasswordInput.mjs +35 -34
  49. package/dist/Picker.mjs +36 -34
  50. package/dist/Popover.mjs +106 -99
  51. package/dist/{QYJ6MIDR-Bb0O5xUM.mjs → QYJ6MIDR-DJ-vUdAM.mjs} +31 -30
  52. package/dist/Radio.mjs +52 -46
  53. package/dist/RadioGroup.mjs +47 -47
  54. package/dist/RadioTab.mjs +37 -35
  55. package/dist/{SYRFVSLH-jn06-eLy.mjs → SYRFVSLH-B6m278Vb.mjs} +11 -10
  56. package/dist/Search.mjs +147 -135
  57. package/dist/Select.mjs +348 -330
  58. package/dist/Shape.mjs +9 -9
  59. package/dist/Slider.mjs +353 -326
  60. package/dist/Stack.mjs +24 -23
  61. package/dist/Swiper.mjs +192 -186
  62. package/dist/Table.mjs +23 -23
  63. package/dist/Tabs.mjs +205 -200
  64. package/dist/Tag.mjs +49 -47
  65. package/dist/Text.mjs +20 -20
  66. package/dist/Textarea.mjs +40 -40
  67. package/dist/TimePicker.mjs +59 -58
  68. package/dist/Toast.mjs +135 -128
  69. package/dist/Toggle.mjs +27 -24
  70. package/dist/Tooltip.mjs +103 -99
  71. package/dist/UniversalLink.mjs +15 -15
  72. package/dist/{VEVQD5MH-CuegL0m0.mjs → VEVQD5MH-0w9Y7Ytc.mjs} +3 -3
  73. package/dist/{VGCJ63VH-BMzoZtCu.mjs → VGCJ63VH-C0UPBY-5.mjs} +39 -38
  74. package/dist/VariantIcon.mjs +23 -22
  75. package/dist/WelcomeLoader.mjs +122 -121
  76. package/dist/WuiProvider.mjs +52 -44
  77. package/dist/{X5NMLKT6-CvSCix-_.mjs → X5NMLKT6-BJw3xE-K.mjs} +2 -2
  78. package/dist/{YV4JVR4I-Bh7B7TET.mjs → YV4JVR4I-DPC8mMuG.mjs} +57 -57
  79. package/dist/hide-focus-rings-root-CCXdysih.mjs +15 -0
  80. package/dist/{index-5PUh49rV.mjs → index-62h-enZF.mjs} +62 -61
  81. package/dist/{index-C7zM96J_.mjs → index-BaLGEKs7.mjs} +8 -8
  82. package/dist/index-CYmF7qCH.mjs +11 -0
  83. package/dist/index-C_k-m0Rl.mjs +36 -0
  84. package/dist/index-D8v_VJ9z.mjs +26 -0
  85. package/dist/{index-BNGGwOCo.mjs → index-DAZ1SYdj.mjs} +7 -7
  86. package/dist/index-DpkNUfAS.mjs +11 -0
  87. package/dist/{index-DqBUFsqP.mjs → index-DvzWKxKE.mjs} +7 -7
  88. package/dist/{index-Bkl89twW.mjs → index-QaLwIvZS.mjs} +8 -8
  89. package/dist/{index-BQtDgQBH.mjs → index-SQQQ4dEE.mjs} +8 -8
  90. package/dist/index-i_anpNhw.mjs +66 -0
  91. package/dist/index-wl3X6EM1.mjs +16 -0
  92. package/dist/jsx-runtime-B7I4PJ0H.mjs +613 -0
  93. package/dist/radio-group-C0fUHvam.mjs +52 -0
  94. package/dist/theme.mjs +805 -805
  95. package/dist/types/components/Accordion/index.d.ts +1 -1
  96. package/dist/types/components/Alert/index.d.ts +2 -2
  97. package/dist/types/components/Alert/styles.d.ts +4 -4
  98. package/dist/types/components/Alert/theme.d.ts +4 -4
  99. package/dist/types/components/Avatar/index.d.ts +1 -1
  100. package/dist/types/components/Avatar/styles.d.ts +4 -4
  101. package/dist/types/components/Avatar/theme.d.ts +1 -1
  102. package/dist/types/components/Badge/index.d.ts +2 -2
  103. package/dist/types/components/Badge/styles.d.ts +2 -2
  104. package/dist/types/components/Breadcrumb/Item.d.ts +1 -1
  105. package/dist/types/components/Breadcrumb/index.d.ts +1 -1
  106. package/dist/types/components/Button/index.d.ts +4 -5
  107. package/dist/types/components/Button/theme.d.ts +7 -7
  108. package/dist/types/components/ButtonGroup/index.d.ts +3 -3
  109. package/dist/types/components/Card/Cover.styles.d.ts +2 -2
  110. package/dist/types/components/Card/index.d.ts +2 -3
  111. package/dist/types/components/Checkbox/index.d.ts +2 -2
  112. package/dist/types/components/ClearButton/index.d.ts +4 -5
  113. package/dist/types/components/ClearButton/styles.d.ts +2 -2
  114. package/dist/types/components/CloseButton/styles.d.ts +2 -2
  115. package/dist/types/components/DatePicker/index.d.ts +3 -3
  116. package/dist/types/components/DateTimePicker/index.d.ts +2 -2
  117. package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +1 -1
  118. package/dist/types/components/DateTimePickerCommon/CustomInput.d.ts +5 -5
  119. package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +1 -1
  120. package/dist/types/components/DateTimePickerCommon/index.d.ts +2 -2
  121. package/dist/types/components/DateTimePickerCommon/utils.d.ts +1 -1
  122. package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +1 -1
  123. package/dist/types/components/Drawer/AssetDrawer/index.d.ts +1 -1
  124. package/dist/types/components/Drawer/index.d.ts +8 -8
  125. package/dist/types/components/Drawer/styles.d.ts +3 -3
  126. package/dist/types/components/Drawer/theme.d.ts +1 -1
  127. package/dist/types/components/DropdownMenu/index.d.ts +4 -4
  128. package/dist/types/components/Field/index.d.ts +8 -8
  129. package/dist/types/components/Field/styles.d.ts +1 -1
  130. package/dist/types/components/Field/utils.d.ts +1 -1
  131. package/dist/types/components/FileDrop/FilePreview.d.ts +2 -2
  132. package/dist/types/components/FileDrop/Message.d.ts +1 -1
  133. package/dist/types/components/FileDrop/index.d.ts +16 -16
  134. package/dist/types/components/FileUpload/index.d.ts +13 -13
  135. package/dist/types/components/Files/index.d.ts +4 -4
  136. package/dist/types/components/Files/types.d.ts +1 -1
  137. package/dist/types/components/Hint/index.d.ts +1 -2
  138. package/dist/types/components/Icon/index.d.ts +3 -3
  139. package/dist/types/components/Icon/styles.d.ts +3 -3
  140. package/dist/types/components/Icon/theme.d.ts +1 -1
  141. package/dist/types/components/Icons/index.d.ts +2 -2
  142. package/dist/types/components/IconsFont/index.d.ts +2 -3
  143. package/dist/types/components/IconsFont/styles.d.ts +1 -1
  144. package/dist/types/components/InputText/index.d.ts +1 -1
  145. package/dist/types/components/InputText/styles.d.ts +1 -1
  146. package/dist/types/components/Label/index.d.ts +2 -3
  147. package/dist/types/components/Link/index.d.ts +3 -3
  148. package/dist/types/components/Link/styles.d.ts +2 -2
  149. package/dist/types/components/Loader/index.d.ts +1 -1
  150. package/dist/types/components/Loader/styles.d.ts +2 -2
  151. package/dist/types/components/Loader/theme.d.ts +2 -2
  152. package/dist/types/components/Logo/Solutions.d.ts +1 -2
  153. package/dist/types/components/Logo/Symbol.d.ts +1 -2
  154. package/dist/types/components/Logo/Wui.d.ts +1 -2
  155. package/dist/types/components/Logo/index.d.ts +5 -5
  156. package/dist/types/components/Modal/Assets/Backdrop.d.ts +4 -5
  157. package/dist/types/components/Modal/Assets/Iframe.d.ts +1 -2
  158. package/dist/types/components/Modal/Assets/index.d.ts +5 -5
  159. package/dist/types/components/Modal/Assets/styles.d.ts +4 -4
  160. package/dist/types/components/Modal/Close.d.ts +1 -2
  161. package/dist/types/components/Modal/Footer.d.ts +1 -1
  162. package/dist/types/components/Modal/Header.d.ts +2 -2
  163. package/dist/types/components/Modal/index.d.ts +11 -11
  164. package/dist/types/components/Modal/styles.d.ts +4 -4
  165. package/dist/types/components/Modal/theme.d.ts +1 -1
  166. package/dist/types/components/Pagination/index.d.ts +2 -2
  167. package/dist/types/components/Pagination/utils.d.ts +1 -1
  168. package/dist/types/components/Popover/Arrow.d.ts +1 -2
  169. package/dist/types/components/Popover/Content.d.ts +2 -3
  170. package/dist/types/components/Popover/Popover.d.ts +4 -5
  171. package/dist/types/components/Popover/PopoverHover.d.ts +3 -4
  172. package/dist/types/components/Popover/Trigger.d.ts +1 -1
  173. package/dist/types/components/Popover/usePopover.d.ts +6 -6
  174. package/dist/types/components/Radio/index.d.ts +5 -5
  175. package/dist/types/components/Radio/styles.d.ts +2 -2
  176. package/dist/types/components/RadioGroup/index.d.ts +2 -2
  177. package/dist/types/components/RadioTab/index.d.ts +2 -2
  178. package/dist/types/components/RadioTab/styles.d.ts +9 -9
  179. package/dist/types/components/Search/index.d.ts +4 -4
  180. package/dist/types/components/Select/index.d.ts +9 -9
  181. package/dist/types/components/Select/styles.d.ts +4 -4
  182. package/dist/types/components/Select/utils.d.ts +4 -4
  183. package/dist/types/components/Shape/index.d.ts +1 -1
  184. package/dist/types/components/Shape/styles.d.ts +2 -2
  185. package/dist/types/components/Slider/Range.d.ts +3 -3
  186. package/dist/types/components/Slider/index.d.ts +2 -2
  187. package/dist/types/components/Slider/styles.d.ts +10 -10
  188. package/dist/types/components/Stack/index.d.ts +1 -1
  189. package/dist/types/components/Swiper/index.d.ts +16 -17
  190. package/dist/types/components/Swiper/styles.d.ts +55 -55
  191. package/dist/types/components/System/index.d.ts +10 -10
  192. package/dist/types/components/Table/index.d.ts +6 -7
  193. package/dist/types/components/Table/styles.d.ts +1 -1
  194. package/dist/types/components/Tabs/ActiveBar.d.ts +5 -5
  195. package/dist/types/components/Tabs/TabList.d.ts +2 -2
  196. package/dist/types/components/Tabs/TabPanel.d.ts +2 -2
  197. package/dist/types/components/Tabs/theme.d.ts +1 -1
  198. package/dist/types/components/Tag/index.d.ts +2 -3
  199. package/dist/types/components/Tag/styles.d.ts +1 -1
  200. package/dist/types/components/Tag/theme.d.ts +2 -2
  201. package/dist/types/components/Text/index.d.ts +2 -2
  202. package/dist/types/components/Textarea/index.d.ts +1 -1
  203. package/dist/types/components/TimePicker/index.d.ts +2 -2
  204. package/dist/types/components/Toast/Growl.d.ts +1 -1
  205. package/dist/types/components/Toast/Snackbar.d.ts +1 -1
  206. package/dist/types/components/Toast/ToastWrapper.d.ts +4 -4
  207. package/dist/types/components/Toast/index.d.ts +5 -5
  208. package/dist/types/components/Toast/styles.d.ts +10 -10
  209. package/dist/types/components/Toast/theme.d.ts +1 -1
  210. package/dist/types/components/Toast/utils.d.ts +13 -13
  211. package/dist/types/components/Toggle/index.d.ts +2 -2
  212. package/dist/types/components/Toggle/theme.d.ts +4 -4
  213. package/dist/types/components/Tooltip/index.d.ts +3 -3
  214. package/dist/types/components/VariantIcon/index.d.ts +1 -1
  215. package/dist/types/components/VariantIcon/styles.d.ts +1 -1
  216. package/dist/types/components/VariantIcon/theme.d.ts +1 -1
  217. package/dist/types/theme/colors.d.ts +3 -3
  218. package/dist/types/theme/dark.d.ts +1 -1
  219. package/dist/types/theme/defaultFields.d.ts +5 -5
  220. package/dist/types/theme/fonts.d.ts +5 -5
  221. package/dist/types/theme/index.d.ts +31 -31
  222. package/dist/types/theme/screens.d.ts +7 -7
  223. package/dist/types/theme/space.d.ts +9 -9
  224. package/dist/types/utils/field-styles.d.ts +2 -2
  225. package/dist/types/utils/index.d.ts +2 -2
  226. package/dist/types/utils/ts-utils.d.ts +1 -1
  227. package/dist/types/utils/use-copy-text.d.ts +1 -1
  228. package/dist/types/utils/use-create-portal.d.ts +1 -1
  229. package/dist/types/utils/wrap-children.d.ts +1 -1
  230. package/dist/{use-viewport-CfklieD-.mjs → use-viewport-CWpjoHXy.mjs} +2 -2
  231. package/dist/utils.mjs +13 -13
  232. package/dist/wrap-children-CzmhoRzd.mjs +13 -0
  233. package/package.json +3 -27
  234. package/dist/LVA2YJMS-DDEmK0pp.mjs +0 -1482
  235. package/dist/hide-focus-rings-root-BNyva1yb.mjs +0 -14
  236. package/dist/index-B0gDDiFm.mjs +0 -66
  237. package/dist/index-B22SHR8h.mjs +0 -26
  238. package/dist/index-CQD9fgf_.mjs +0 -11
  239. package/dist/index-CmsWSKKs.mjs +0 -11
  240. package/dist/index-u1oHKa7X.mjs +0 -16
  241. package/dist/index-wr_b5GSV.mjs +0 -36
  242. package/dist/radio-group-RFyDp0KD.mjs +0 -51
  243. package/dist/wrap-children-aq69jtFP.mjs +0 -12
  244. package/dist/{downshift.esm-D0ns_SQs.mjs → downshift.esm-B7Jil1wW.mjs} +9 -9
@@ -1,121 +1,122 @@
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-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";
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 O, 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 Pe, useState as Oe, 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 Pt, R as Ot } from "./JC64G2H7-afsomHuH.mjs";
14
+ import { a as At } from "./VEVQD5MH-0w9Y7Ytc.mjs";
14
15
  var Tt = "div";
15
16
  function Te(r) {
16
17
  const t = r.relatedTarget;
17
18
  return (t == null ? void 0 : t.nodeType) === Node.ELEMENT_NODE ? t : null;
18
19
  }
19
- function _t(r) {
20
+ function It(r) {
20
21
  const t = Te(r);
21
- return t ? Xe(r.currentTarget, t) : !1;
22
+ return t ? Ge(r.currentTarget, t) : !1;
22
23
  }
23
- var ie = Symbol("composite-hover");
24
+ var ue = Symbol("composite-hover");
24
25
  function Ht(r) {
25
26
  let t = Te(r);
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 n = t, {
36
37
  store: e,
37
- focusOnHover: a = !0,
38
- blurOnHoverEnd: u = !!a
39
- } = n, s = O(n, [
38
+ focusOnHover: s = !0,
39
+ blurOnHoverEnd: u = !!s
40
+ } = n, a = O(n, [
40
41
  "store",
41
42
  "focusOnHover",
42
43
  "blurOnHoverEnd"
43
44
  ]);
44
- const o = ce();
45
- e = e || o, K(
45
+ const o = ie();
46
+ e = e || o, 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 = s.onMouseMove, i = se(a), w = V((f) => {
50
- if (c == null || c(f), !f.defaultPrevented && l() && i(f)) {
50
+ const c = Ue(), l = a.onMouseMove, i = ae(s), 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 = s.onMouseLeave, d = se(u), 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 s = y(b({}, s), {
64
- ref: ne(p, s.ref),
64
+ return a = E(b({}, a), {
65
+ ref: ne(p, a.ref),
65
66
  onMouseMove: w,
66
- onMouseLeave: x
67
- }), Ee(s);
67
+ onMouseLeave: S
68
+ }), we(a);
68
69
  }
69
70
  );
70
- Ce(
71
+ Me(
71
72
  k(function(t) {
72
- const n = _e(t);
73
+ const n = Ie(t);
73
74
  return F(Tt, n);
74
75
  })
75
76
  );
76
- var Dt = "hr", He = D(
77
+ var _t = "hr", He = D(
77
78
  function(t) {
78
- var n = t, { orientation: e = "horizontal" } = n, a = O(n, ["orientation"]);
79
- return a = b({
79
+ var n = t, { orientation: e = "horizontal" } = n, s = O(n, ["orientation"]);
80
+ return s = b({
80
81
  role: "separator",
81
82
  "aria-orientation": e
82
- }, a), a;
83
+ }, s), s;
83
84
  }
84
85
  );
85
86
  k(function(t) {
86
87
  const n = He(t);
87
- return F(Dt, n);
88
+ return F(_t, n);
88
89
  });
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(
90
+ var Dt = "hr", _e = D(function(t) {
91
+ var n = t, { store: e } = n, s = O(n, ["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
- const s = e.useState(
97
+ const a = e.useState(
97
98
  (o) => o.orientation === "horizontal" ? "vertical" : "horizontal"
98
99
  );
99
- return a = He(y(b({}, a), { orientation: s })), a;
100
+ return s = He(E(b({}, s), { orientation: a })), s;
100
101
  });
101
102
  k(function(t) {
102
- const n = De(t);
103
- return F(kt, n);
103
+ const n = _e(t);
104
+ return F(Dt, n);
104
105
  });
105
- var Ft = "div", N = "";
106
- function ae() {
106
+ var kt = "div", N = "";
107
+ function se() {
107
108
  N = "";
108
109
  }
109
- function Nt(r) {
110
+ function Ft(r) {
110
111
  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);
112
+ return t && Ye(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);
112
113
  }
113
- function Lt(r, t) {
114
- if (nt(r)) return !0;
114
+ function Nt(r, t) {
115
+ if (Je(r)) return !0;
115
116
  const n = r.target;
116
- return n ? t.some((a) => a.element === n) : !1;
117
+ return n ? t.some((s) => s.element === n) : !1;
117
118
  }
118
- function $t(r) {
119
+ function Lt(r) {
119
120
  return r.filter((t) => !t.disabled);
120
121
  }
121
122
  function re(r, t) {
@@ -125,81 +126,81 @@ function re(r, t) {
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 r && r.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(r, t, n) {
131
+ function $t(r, t, n) {
131
132
  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)),
133
+ const e = r.find((s) => s.id === n);
134
+ return !e || !re(e, t) || N !== t && re(e, N) ? r : (N = t, je(
135
+ r.filter((s) => re(s, N)),
135
136
  n
136
- ).filter((a) => a.id !== n));
137
+ ).filter((s) => s.id !== n));
137
138
  }
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(
139
+ var le = D(function(t) {
140
+ var n = t, { store: e, typeahead: s = !0 } = n, u = O(n, ["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 = 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(
146
+ const o = u.onKeyDownCapture, c = ce(0), l = j((i) => {
147
+ if (o == null || o(i), i.defaultPrevented || !s || !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}"]`, 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: _ });
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 (v.length && (p = tt(p, (S) => S.element)), !Lt(i, p)) return ae();
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) => re(S, N));
165
- P ? e.move(P.id) : ae();
164
+ N += A, p = $t(p, A, d);
165
+ const P = p.find((x) => re(x, N));
166
+ P ? e.move(P.id) : se();
166
167
  });
167
- return u = y(b({}, u), {
168
- onKeyDownCapture: c
169
- }), Ee(u);
168
+ return u = E(b({}, u), {
169
+ onKeyDownCapture: l
170
+ }), we(u);
170
171
  });
171
172
  k(function(t) {
172
- const n = de(t);
173
- return F(Ft, n);
173
+ const n = le(t);
174
+ return F(kt, n);
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
+ Pe(
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
+ Pe(
187
188
  void 0
188
189
  );
189
- function Wt(r = {}) {
190
+ function zt(r = {}) {
190
191
  var t = r, {
191
192
  combobox: n,
192
193
  parent: e,
193
- menubar: a
194
- } = t, u = at(t, [
194
+ menubar: s
195
+ } = t, u = tt(t, [
195
196
  "combobox",
196
197
  "parent",
197
198
  "menubar"
198
199
  ]);
199
- const s = !!a && !e, o = bt(
200
+ const a = !!s && !e, o = vt(
200
201
  u.store,
201
- gt(e, ["values"]),
202
- ht(n, [
202
+ ht(e, ["values"]),
203
+ bt(n, [
203
204
  "arrowElement",
204
205
  "anchorElement",
205
206
  "contentElement",
@@ -207,61 +208,61 @@ function Wt(r = {}) {
207
208
  "disclosureElement"
208
209
  ])
209
210
  );
210
- wt(u, o);
211
- const l = o.getState(), c = Et(G($({}, u), {
211
+ gt(u, o);
212
+ const c = o.getState(), l = St(G($({}, u), {
212
213
  store: o,
213
214
  orientation: W(
214
215
  u.orientation,
215
- l.orientation,
216
+ c.orientation,
216
217
  "vertical"
217
218
  )
218
- })), i = Ue(G($({}, u), {
219
+ })), i = Ke(G($({}, u), {
219
220
  store: o,
220
221
  placement: W(
221
222
  u.placement,
222
- l.placement,
223
+ c.placement,
223
224
  "bottom-start"
224
225
  ),
225
226
  timeout: W(
226
227
  u.timeout,
227
- l.timeout,
228
- s ? 0 : 150
228
+ c.timeout,
229
+ a ? 0 : 150
229
230
  ),
230
- hideTimeout: W(u.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
235
  u.values,
235
- l.values,
236
+ c.values,
236
237
  u.defaultValues,
237
238
  {}
238
239
  )
239
- }), m = Mt(w, c, i, o);
240
- return ve(
240
+ }), m = wt(w, l, i, o);
241
+ return me(
241
242
  m,
242
- () => be(m, ["mounted"], (d) => {
243
+ () => ve(m, ["mounted"], (d) => {
243
244
  d.mounted || m.setState("activeId", null);
244
245
  })
245
- ), ve(
246
+ ), me(
246
247
  m,
247
- () => be(e, ["orientation"], (d) => {
248
+ () => ve(e, ["orientation"], (d) => {
248
249
  m.setState(
249
250
  "placement",
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: n,
255
256
  parent: e,
256
- menubar: a,
257
+ menubar: s,
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 = st(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(r = {}) {
269
270
  }
270
271
  });
271
272
  }
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(
273
+ function Wt(r, t, n) {
274
+ return nt(t, [n.combobox, n.parent, n.menubar]), xt(r, n, "values", "setValues"), Object.assign(
275
+ ze(
275
276
  Ct(r, t, n),
276
277
  t,
277
278
  n
@@ -283,113 +284,113 @@ function Zt(r, t, n) {
283
284
  }
284
285
  );
285
286
  }
286
- function Ut(r = {}) {
287
- const t = fe(), n = Rt(), e = It();
288
- r = y(b({}, r), {
287
+ function Zt(r = {}) {
288
+ const t = de(), n = jt(), e = At();
289
+ r = E(b({}, r), {
289
290
  parent: r.parent !== void 0 ? r.parent : t,
290
291
  menubar: r.menubar !== void 0 ? r.menubar : n,
291
292
  combobox: r.combobox !== void 0 ? r.combobox : e
292
293
  });
293
- const [a, u] = St(Wt, r);
294
- return Zt(a, u, r);
294
+ const [s, u] = Mt(zt, r);
295
+ return Wt(s, u, r);
295
296
  }
296
- var qt = "div";
297
- function Gt(r) {
297
+ var Ut = "div";
298
+ function qt(r) {
298
299
  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;
300
+ const [s, u] = Oe(void 0), a = e["aria-label"], o = V(n, "disclosureElement"), c = V(n, "contentElement");
301
+ return Ae(() => {
302
+ const l = o;
303
+ if (!l) return;
304
+ const i = c;
304
305
  if (!i) return;
305
- s || i.hasAttribute("aria-label") ? u(void 0) : c.id && u(c.id);
306
- }, [s, o, l]), a;
306
+ a || i.hasAttribute("aria-label") ? u(void 0) : l.id && u(l.id);
307
+ }, [a, o, c]), s;
307
308
  }
308
- var Fe = D(
309
+ var ke = D(
309
310
  function(t) {
310
- var n = t, { store: e, alwaysVisible: a, composite: u } = n, s = O(n, ["store", "alwaysVisible", "composite"]);
311
+ var n = t, { store: e, alwaysVisible: s, composite: u } = n, a = O(n, ["store", "alwaysVisible", "composite"]);
311
312
  const o = oe();
312
- e = e || o, K(
313
+ e = e || o, 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(s.id), m = s.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
- s = Ae(
359
- s,
360
- (g) => /* @__PURE__ */ ue.jsx(jt, { value: e, children: g }),
359
+ a = ye(
360
+ a,
361
+ (g) => /* @__PURE__ */ C.jsx(Kt, { value: e, children: g }),
361
362
  [e]
362
363
  );
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({
364
+ const v = qt(b({ store: e }, a)), A = e.useState("mounted"), P = Et(A, a.hidden, s), x = P ? E(b({}, a.style), { display: "none" }) : a.style;
365
+ a = E(b({
365
366
  id: w,
366
367
  "aria-labelledby": v,
367
368
  hidden: P
368
- }, s), {
369
- ref: ne(w ? e.setContentElement : null, s.ref),
370
- style: S,
369
+ }, a), {
370
+ ref: ne(w ? e.setContentElement : null, a.ref),
371
+ style: x,
371
372
  onKeyDown: M
372
373
  });
373
- const _ = !!e.combobox;
374
- return u = u ?? !_, u && (s = b({
374
+ const H = !!e.combobox;
375
+ return u = u ?? !H, u && (a = b({
375
376
  role: "menu",
376
- "aria-orientation": x
377
- }, s)), s = yt(b({ store: e, composite: u }, s)), s = de(b({ store: e, typeahead: !_ }, s)), s;
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 n = Fe(t);
382
- return F(qt, n);
382
+ const n = ke(t);
383
+ return F(Ut, n);
383
384
  });
384
- var Yt = "div", Jt = D(function(t) {
385
+ var Gt = "div", Qt = D(function(t) {
385
386
  var n = t, {
386
387
  store: e,
387
- modal: a = !1,
388
- portal: u = !!a,
389
- hideOnEscape: s = !0,
388
+ modal: s = !1,
389
+ portal: u = !!s,
390
+ hideOnEscape: a = !0,
390
391
  autoFocusOnShow: o = !0,
391
- hideOnHoverOutside: l,
392
- alwaysVisible: c
392
+ hideOnHoverOutside: c,
393
+ alwaysVisible: l
393
394
  } = n, i = O(n, [
394
395
  "store",
395
396
  "modal",
@@ -400,69 +401,69 @@ 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(b({}, i), {
408
+ const m = ce(null), d = e.parent, S = e.menubar, p = !!d, f = !!S && !p;
409
+ i = E(b({}, i), {
409
410
  ref: ne(m, i.ref)
410
411
  });
411
- const M = Fe(b({
412
+ const M = ke(b({
412
413
  store: e,
413
- alwaysVisible: c
414
+ alwaysVisible: l
414
415
  }, i)), { "aria-labelledby": v } = M;
415
416
  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();
417
+ const [P, x] = Oe(), 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 : a, h = !!o, T = !!P || !!i.initialFocus || !!L, j = R(
439
+ }, [e, H, g, T, K]);
440
+ const L = p ? !1 : s, h = !!o, I = !!P || !!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 = b({
452
- preserveTabOrderAnchor: X
453
- }, i)), i = Ge(y(b({
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
+ alwaysVisible: l,
456
457
  initialFocus: P,
457
- autoFocusOnShow: h ? T && o : _ || !!L
458
+ autoFocusOnShow: h ? I && o : H || !!L
458
459
  }, i), {
459
- hideOnEscape(H) {
460
- return lt(s, 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 || (it(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,
@@ -471,23 +472,23 @@ var Yt = "div", Jt = D(function(t) {
471
472
  })), i = b({
472
473
  "aria-labelledby": v
473
474
  }, i), i;
474
- }), Qt = Ot(
475
+ }), Xt = Pt(
475
476
  k(function(t) {
476
- const n = Jt(t);
477
- return F(Yt, n);
477
+ const n = Qt(t);
478
+ return F(Gt, n);
478
479
  }),
479
480
  oe
480
- ), Xt = "div", er = D(
481
+ ), Yt = "div", Jt = D(
481
482
  function(t) {
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));
483
+ var n = t, { store: e } = n, s = O(n, ["store"]);
484
+ const u = de();
485
+ return e = e || u, pt(b({ store: e }, s));
485
486
  }
486
- ), tr = k(function(t) {
487
- const n = er(t);
488
- return F(Xt, n);
489
- }), rr = "button";
490
- function nr(r, t) {
487
+ ), er = k(function(t) {
488
+ const n = Jt(t);
489
+ return F(Yt, n);
490
+ }), tr = "button";
491
+ function rr(r, 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 nr(r, t) {
495
496
  ArrowLeft: t === "left" ? "first" : !1
496
497
  }[r.key];
497
498
  }
498
- function he(r, t) {
499
+ function be(r, t) {
499
500
  return !!(r != null && r.some((n) => !n.element || n.element === t ? !1 : n.element.getAttribute("aria-expanded") === "true"));
500
501
  }
501
- var or = D(
502
+ var nr = D(
502
503
  function(t) {
503
504
  var n = t, {
504
505
  store: e,
505
- focusable: a,
506
+ focusable: s,
506
507
  accessibleWhenDisabled: u,
507
- showOnHover: s
508
+ showOnHover: a
508
509
  } = n, o = O(n, [
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(o), 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
- }), v = R(
523
+ }, f = o.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 = 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();
530
+ ), A = o.onKeyDown, P = 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 = o.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 = ye(
539
540
  o,
540
- (h) => /* @__PURE__ */ ue.jsx(zt, { value: e, children: h }),
541
+ (h) => /* @__PURE__ */ C.jsx(Bt, { value: e, children: h }),
541
542
  [e]
542
- ), m && (o = y(b({}, o), {
543
- render: /* @__PURE__ */ ue.jsx(At.div, { render: o.render })
543
+ ), m && (o = E(b({}, o), {
544
+ render: /* @__PURE__ */ C.jsx(Ot.div, { render: o.render })
544
545
  }));
545
- const g = Oe(o.id), z = R(
546
+ const g = Ce(o.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(b({
549
+ ), T = m || d ? Ee(K, "menuitem") : void 0, L = e.useState("contentElement");
550
+ return o = E(b({
550
551
  id: g,
551
- role: I,
552
- "aria-haspopup": dt(L, "menu")
552
+ role: T,
553
+ "aria-haspopup": ut(L, "menu")
553
554
  }, o), {
554
- ref: ne(c, o.ref),
555
+ ref: ne(l, o.ref),
555
556
  onFocus: M,
556
557
  onKeyDown: P,
557
- onClick: _
558
- }), o = Ye(y(b({
558
+ onClick: H
559
+ }), o = Ze(E(b({
559
560
  store: e,
560
- focusable: a,
561
+ focusable: s,
561
562
  accessibleWhenDisabled: u
562
563
  }, o), {
563
564
  showOnHover: (h) => {
564
565
  if (!(() => {
565
- if (typeof s == "function") return s(h);
566
- if (s != null) return s;
566
+ if (typeof a == "function") return a(h);
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 = vt(b({
576
+ })), o = mt(b({
576
577
  store: e,
577
578
  toggleOnClick: !m,
578
- focusable: a,
579
+ focusable: s,
579
580
  accessibleWhenDisabled: u
580
- }, o)), o = de(b({
581
+ }, o)), o = le(b({
581
582
  store: e,
582
583
  typeahead: d
583
584
  }, o)), o;
584
585
  }
585
- ), ar = k(function(t) {
586
- const n = or(t);
587
- return F(rr, n);
586
+ ), or = k(function(t) {
587
+ const n = nr(t);
588
+ return F(tr, n);
588
589
  }), sr = "div";
589
- function ur(r, t, n) {
590
+ function ar(r, t, n) {
590
591
  var e;
591
592
  if (!r) return !1;
592
593
  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");
594
+ const s = t == null ? void 0 : t.find((c) => {
595
+ var l;
596
+ return c.element === n ? !1 : ((l = c.element) == null ? void 0 : l.getAttribute("aria-expanded")) === "true";
597
+ }), u = (e = s == null ? void 0 : s.element) == null ? void 0 : e.getAttribute("aria-controls");
597
598
  if (!u) return !1;
598
- const o = ye(r).getElementById(u);
599
+ const o = xe(r).getElementById(u);
599
600
  return o ? Z(o) ? !0 : !!o.querySelector("[role=menuitem][aria-expanded=true]") : !1;
600
601
  }
601
- var ir = D(
602
+ var ur = D(
602
603
  function(t) {
603
604
  var n = t, {
604
605
  store: e,
605
- hideOnClick: a = !0,
606
+ hideOnClick: s = !0,
606
607
  preventScrollOnKeyDown: u = !0,
607
- focusOnHover: s,
608
+ focusOnHover: a,
608
609
  blurOnHoverEnd: o
609
- } = n, l = O(n, [
610
+ } = n, c = O(n, [
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 = 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(
622
+ const w = c.onClick, m = ae(s), 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
626
  (v) => "contentElement" in v ? v.contentElement : null
626
- ), M = Ie(f, "menuitem");
627
- return l = y(b({
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(b({
632
+ }), c = Ve(b({
632
633
  store: e,
633
634
  preventScrollOnKeyDown: u
634
- }, l)), l = _e(y(b({
635
+ }, c)), c = Ie(E(b({
635
636
  store: e
636
- }, l), {
637
+ }, c), {
637
638
  focusOnHover(v) {
638
- const A = () => typeof s == "function" ? s(v) : s ?? !0;
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 ? (v.currentTarget.hasAttribute("aria-expanded") && v.currentTarget.focus(), !0) : ur(P, S, v.currentTarget) ? (v.currentTarget.focus(), !0) : !1;
641
+ const { baseElement: P, items: x } = e.getState();
642
+ return S ? (v.currentTarget.hasAttribute("aria-expanded") && v.currentTarget.focus(), !0) : ar(P, x, v.currentTarget) ? (v.currentTarget.focus(), !0) : !1;
642
643
  },
643
644
  blurOnHoverEnd(v) {
644
- return typeof o == "function" ? o(v) : o ?? x;
645
+ return typeof o == "function" ? o(v) : o ?? S;
645
646
  }
646
- })), l;
647
+ })), c;
647
648
  }
648
- ), lr = Ce(
649
+ ), ir = Me(
649
650
  k(function(t) {
650
- const n = ir(t);
651
+ const n = ur(t);
651
652
  return F(sr, n);
652
653
  })
653
- ), cr = "hr", dr = D(
654
+ ), cr = "hr", lr = D(
654
655
  function(t) {
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;
656
+ var n = t, { store: e } = n, s = O(n, ["store"]);
657
+ const u = de();
658
+ return e = e || u, s = _e(b({ store: e }, s)), s;
658
659
  }
659
- ), fr = k(function(t) {
660
- const n = dr(t);
660
+ ), dr = k(function(t) {
661
+ const n = lr(t);
661
662
  return F(cr, n);
662
663
  });
663
- const pr = 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 pr = Y.divBox`
669
670
  #stroke {
670
671
  color: ${U("defaultCards.borderColor")};
671
672
  }
672
- `, mr = Y.svgBox(
673
- ({ $transform: r }) => Be`
673
+ `, pr = Q.svgBox(
674
+ ({ $transform: r }) => Le`
674
675
  transform: ${r};
675
676
  `
676
- ), vr = {
677
- top: "rotateZ(180deg)",
678
- right: "rotateZ(-90deg)",
677
+ ), mr = {
679
678
  bottom: "rotateZ(360deg)",
680
- left: "rotateZ(90deg)"
681
- }, Ne = J(({ store: r }, t) => {
679
+ left: "rotateZ(90deg)",
680
+ right: "rotateZ(-90deg)",
681
+ top: "rotateZ(180deg)"
682
+ }, Fe = X(({ store: r }, t) => {
682
683
  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,
684
+ return /* @__PURE__ */ C.jsx(er, { ref: t, render: /* @__PURE__ */ C.jsx(fr, {}), children: /* @__PURE__ */ C.jsxs(
685
+ pr,
685
686
  {
686
- $transform: vr[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 br = 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 br = Y.buttonBox`
709
712
  &:focus {
710
713
  outline: none !important; /* important for firefox */
711
714
  }
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`
715
+ `, Ne = X(({ as: r, ...t }, n) => /* @__PURE__ */ C.jsx(ir, { ref: n, type: "button", ...t, render: /* @__PURE__ */ C.jsx(vr, { as: r }) }));
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
- `, gr = J((r, t) => /* @__PURE__ */ C.createElement(fr, { ref: t, render: /* @__PURE__ */ C.createElement(hr, null), ...r })), wr = Y.divBox`
722
+ `, hr = X((r, t) => /* @__PURE__ */ C.jsx(dr, { ref: t, render: /* @__PURE__ */ C.jsx(br, {}), ...r })), gr = Q.divBox`
720
723
  ${U("cards.default")};
721
724
  ${U("dropdownMenu.inner")};
722
725
  z-index: 1;
@@ -726,45 +729,45 @@ const hr = Y.hr`
726
729
  &[data-enter] {
727
730
  opacity: 1;
728
731
  }
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,
732
+ `, wr = X(
733
+ ({ children: r, dataTestId: t, gutter: n = "xs", innerProps: e = {}, store: s, ...u }, a) => {
734
+ const o = $e(), c = s.useState("arrowElement");
735
+ let l = n;
736
+ return typeof l == "string" && (l = parseInt(o.toPx(parseFloat(o.space[n])), 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,
739
- ref: s,
740
- render: /* @__PURE__ */ C.createElement(wr, { ...e }),
741
- store: a,
741
+ gutter: l,
742
+ ref: a,
743
+ render: /* @__PURE__ */ C.jsx(gr, { ...e }),
744
+ store: s,
742
745
  tabIndex: 0,
743
- ...u
744
- },
745
- r
746
+ ...u,
747
+ children: r
748
+ }
746
749
  );
747
750
  }
748
751
  );
749
752
  function kr(r = {}) {
750
- return Ut({
753
+ return Zt({
751
754
  animated: !0,
752
755
  ...r
753
756
  });
754
757
  }
755
- const Sr = J(({ as: r, store: t, ...n }, e) => /* @__PURE__ */ C.createElement(
756
- ar,
758
+ const Mr = X(({ as: r, store: t, ...n }, e) => /* @__PURE__ */ C.jsx(
759
+ or,
757
760
  {
758
761
  ref: e,
759
- render: r ? (a) => /* @__PURE__ */ C.createElement(r, { ...a }) : void 0,
762
+ render: r ? (s) => /* @__PURE__ */ C.jsx(r, { ...s }) : void 0,
760
763
  store: t,
761
764
  ...n
762
765
  }
763
- )), Fr = Object.assign(Mr, {
764
- Trigger: Sr,
765
- Item: Le,
766
- Separator: gr,
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
773
  Fr as DropdownMenu,