@easypost/easy-ui 1.0.0-alpha.52 → 1.0.0-alpha.54

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 (221) hide show
  1. package/Badge/index.js +14 -14
  2. package/Badge/index.mjs +14 -14
  3. package/Banner/index.js +5 -5
  4. package/Banner/index.mjs +5 -5
  5. package/Button/index.js +1 -1
  6. package/Button/index.mjs +1 -1
  7. package/CHANGELOG.md +17 -0
  8. package/Calendar/index.js +21 -21
  9. package/Calendar/index.mjs +20 -20
  10. package/Card/index.js +1 -1
  11. package/Card/index.mjs +1 -1
  12. package/Checkbox/index.js +1 -1
  13. package/Checkbox/index.mjs +1 -1
  14. package/CodeBlock/index.js +15 -15
  15. package/CodeBlock/index.mjs +15 -15
  16. package/CodeSnippet/index.js +1 -1
  17. package/CodeSnippet/index.mjs +1 -1
  18. package/DataGrid/ActionsCellContent.d.ts.map +1 -1
  19. package/DataGrid/index.js +77 -150
  20. package/DataGrid/index.mjs +74 -131
  21. package/Drawer/index.js +21 -21
  22. package/Drawer/index.mjs +21 -21
  23. package/DropdownButton/index.js +13 -13
  24. package/DropdownButton/index.mjs +13 -13
  25. package/EmptyStateCard/index.js +8 -8
  26. package/EmptyStateCard/index.mjs +8 -8
  27. package/FocusedProductLayout/index.js +23 -23
  28. package/FocusedProductLayout/index.mjs +23 -23
  29. package/FormLayout/index.js +5 -5
  30. package/FormLayout/index.mjs +5 -5
  31. package/HorizontalGrid/index.js +1 -1
  32. package/HorizontalGrid/index.mjs +1 -1
  33. package/HorizontalStack/index.js +1 -1
  34. package/HorizontalStack/index.mjs +1 -1
  35. package/Icon/index.js +1 -1
  36. package/Icon/index.mjs +1 -1
  37. package/IconButton/index.js +13 -13
  38. package/IconButton/index.mjs +13 -13
  39. package/InputField/index.js +1 -1
  40. package/InputField/index.mjs +1 -1
  41. package/KebabButton/KebabButton.d.ts +19 -0
  42. package/KebabButton/KebabButton.d.ts.map +1 -0
  43. package/KebabButton/KebabButton.stories.d.ts +7 -0
  44. package/KebabButton/KebabButton.stories.d.ts.map +1 -0
  45. package/KebabButton/KebabButton.test.d.ts +2 -0
  46. package/KebabButton/KebabButton.test.d.ts.map +1 -0
  47. package/KebabButton/index.d.ts +2 -0
  48. package/KebabButton/index.d.ts.map +1 -0
  49. package/KebabButton/index.js +4 -0
  50. package/KebabButton/index.mjs +4 -0
  51. package/Menu/index.js +1 -1
  52. package/Menu/index.mjs +1 -1
  53. package/Modal/index.js +22 -22
  54. package/Modal/index.mjs +22 -22
  55. package/NexusLayout/index.js +31 -31
  56. package/NexusLayout/index.mjs +31 -31
  57. package/Notification/index.js +1 -1
  58. package/Notification/index.mjs +1 -1
  59. package/Pagination/index.js +8 -8
  60. package/Pagination/index.mjs +8 -8
  61. package/PillGroup/index.js +30 -143
  62. package/PillGroup/index.mjs +19 -132
  63. package/ProductLayout/index.js +25 -25
  64. package/ProductLayout/index.mjs +25 -25
  65. package/Provider/index.js +2 -2
  66. package/Provider/index.mjs +2 -2
  67. package/RadioButtonGroup/RadioButtonGroup.d.ts +103 -0
  68. package/RadioButtonGroup/RadioButtonGroup.d.ts.map +1 -0
  69. package/RadioButtonGroup/RadioButtonGroup.stories.d.ts +11 -0
  70. package/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -0
  71. package/RadioButtonGroup/RadioButtonGroup.test.d.ts +2 -0
  72. package/RadioButtonGroup/RadioButtonGroup.test.d.ts.map +1 -0
  73. package/RadioButtonGroup/index.d.ts +2 -0
  74. package/RadioButtonGroup/index.d.ts.map +1 -0
  75. package/RadioButtonGroup/index.js +262 -0
  76. package/RadioButtonGroup/index.mjs +262 -0
  77. package/RadioGroup/index.js +21 -21
  78. package/RadioGroup/index.mjs +21 -21
  79. package/SearchNav/index.js +30 -30
  80. package/SearchNav/index.mjs +30 -30
  81. package/SectionCard/index.js +7 -7
  82. package/SectionCard/index.mjs +7 -7
  83. package/Select/index.js +5 -5
  84. package/Select/index.mjs +5 -5
  85. package/SelectorErrorTooltip/index.js +1 -1
  86. package/SelectorErrorTooltip/index.mjs +1 -1
  87. package/Spinner/index.js +1 -1
  88. package/Spinner/index.mjs +1 -1
  89. package/SplitToggleCard/index.js +4 -4
  90. package/SplitToggleCard/index.mjs +4 -4
  91. package/Stepper/index.js +1 -1
  92. package/Stepper/index.mjs +1 -1
  93. package/TabNav/index.js +1 -1
  94. package/TabNav/index.mjs +1 -1
  95. package/TabPanels/index.js +4 -4
  96. package/TabPanels/index.mjs +4 -4
  97. package/Tabs/index.js +1 -1
  98. package/Tabs/index.mjs +1 -1
  99. package/Text/index.js +1 -1
  100. package/Text/index.mjs +1 -1
  101. package/TextField/index.js +1 -1
  102. package/TextField/index.mjs +1 -1
  103. package/Textarea/index.js +1 -1
  104. package/Textarea/index.mjs +1 -1
  105. package/Toggle/index.js +1 -1
  106. package/Toggle/index.mjs +1 -1
  107. package/ToggleCard/index.js +2 -2
  108. package/ToggleCard/index.mjs +2 -2
  109. package/Tooltip/index.js +1 -1
  110. package/Tooltip/index.mjs +1 -1
  111. package/UnstyledButton/UnstyledPressButton.d.ts.map +1 -0
  112. package/UnstyledButton/index.js +1 -1
  113. package/UnstyledButton/index.mjs +1 -1
  114. package/VerticalNav/index.js +25 -25
  115. package/VerticalNav/index.mjs +25 -25
  116. package/VerticalStack/index.js +1 -1
  117. package/VerticalStack/index.mjs +1 -1
  118. package/__chunks__/{Button-C8CAs9Ya.js → Button-D_Bk7BuN.js} +18 -18
  119. package/__chunks__/{Button-B-PwoC5y.mjs → Button-Dy9idhgT.mjs} +18 -18
  120. package/__chunks__/{Card-UU3JcpMA.js → Card-9RlZlFEC.js} +12 -12
  121. package/__chunks__/{Card-BWhI0hJm.mjs → Card-mxjU9S-F.mjs} +12 -12
  122. package/__chunks__/{Checkbox-BZqZjAnI.mjs → Checkbox-BgumKMXU.mjs} +24 -23
  123. package/__chunks__/{Checkbox-CqRLbwPQ.js → Checkbox-CBB8jlZw.js} +25 -24
  124. package/__chunks__/{CodeSnippet-pRcbJYFv.mjs → CodeSnippet-BjUoaeh9.mjs} +2 -2
  125. package/__chunks__/{CodeSnippet-B1oVvl-o.js → CodeSnippet-DVrkwOg4.js} +2 -2
  126. package/__chunks__/{FocusScope-CjqREKhC.mjs → FocusScope-C194OB-4.mjs} +85 -3
  127. package/__chunks__/{FocusScope-CoZUVDQG.js → FocusScope-DJer9ahG.js} +96 -14
  128. package/__chunks__/{HelpMenu-c9NnR9pL.js → HelpMenu-DF2Bx-bn.js} +7 -7
  129. package/__chunks__/{HelpMenu-BqXmt7b0.mjs → HelpMenu-m1qJ4EyP.mjs} +7 -7
  130. package/__chunks__/{HorizontalGrid-DdZMHCh6.mjs → HorizontalGrid-BYR8Gr-h.mjs} +1 -1
  131. package/__chunks__/{HorizontalGrid-LK3oV1Xf.js → HorizontalGrid-DuHNRhon.js} +1 -1
  132. package/__chunks__/{HorizontalStack-CyOBQGUF.js → HorizontalStack-By6XdGZh.js} +1 -1
  133. package/__chunks__/{HorizontalStack-Cj64cYl-.mjs → HorizontalStack-DaZakHYj.mjs} +1 -1
  134. package/__chunks__/{Icon-BmhO04p4.mjs → Icon-3zFwhVjn.mjs} +2 -2
  135. package/__chunks__/{Icon-vgTkejl_.js → Icon-BB9QecRC.js} +2 -2
  136. package/__chunks__/{InputField-nGv1FZJR.js → InputField-CHAxJwME.js} +8 -8
  137. package/__chunks__/{InputField-w-orC_z_.mjs → InputField-CdEl4M4-.mjs} +7 -7
  138. package/__chunks__/{InputIcon-D5WHF9JB.mjs → InputIcon--PdoGQOO.mjs} +25 -25
  139. package/__chunks__/{InputIcon-eg1DDtXb.js → InputIcon-oj25h1MN.js} +25 -25
  140. package/__chunks__/KebabButton-3bAqpgLu.js +121 -0
  141. package/__chunks__/KebabButton-fmLpDchx.mjs +106 -0
  142. package/__chunks__/{Menu-ComLF8Lu.js → Menu--B0Fn4Ol.js} +19 -19
  143. package/__chunks__/{Menu-Bo7BjljK.mjs → Menu-B95QYBVQ.mjs} +19 -19
  144. package/__chunks__/{Notification-B344rGS6.mjs → Notification-D15awRNG.mjs} +18 -18
  145. package/__chunks__/{Notification-BZ3ybUEX.js → Notification-DTb3bJn4.js} +22 -22
  146. package/__chunks__/{Overlay-Dz_4R38U.mjs → Overlay-BtzIt9Ka.mjs} +1 -1
  147. package/__chunks__/{Overlay-DBi2SVGv.js → Overlay-CUtfbILq.js} +1 -1
  148. package/__chunks__/{SelectOverlay-Dlh7kgJP.mjs → SelectOverlay-D39ws5R2.mjs} +29 -28
  149. package/__chunks__/{SelectOverlay-DQgtS85D.js → SelectOverlay-_dx1vHML.js} +30 -29
  150. package/__chunks__/{SelectorErrorTooltip-BkPBRxMN.mjs → SelectorErrorTooltip-D8y5kImH.mjs} +4 -4
  151. package/__chunks__/{SelectorErrorTooltip-PmNc0Njc.js → SelectorErrorTooltip-DhV9YtiA.js} +4 -4
  152. package/__chunks__/{Spinner-DzWjiJW-.js → Spinner-CVcjgzNy.js} +5 -5
  153. package/__chunks__/{Spinner-7zBK2Xm-.mjs → Spinner-CfniY1TS.mjs} +5 -5
  154. package/__chunks__/{Stepper-CSyqKD6E.mjs → Stepper-D_2YRENa.mjs} +27 -27
  155. package/__chunks__/{Stepper-D_Eb3lcZ.js → Stepper-E2li7kd2.js} +27 -27
  156. package/__chunks__/{TabNav-ihtxj9yI.mjs → TabNav-BgwlyiLE.mjs} +1 -1
  157. package/__chunks__/{TabNav-bXzfdbir.js → TabNav-C7_HMIZx.js} +1 -1
  158. package/__chunks__/{Tabs-CJ0TRL3H.mjs → Tabs-CwxqTiAn.mjs} +18 -18
  159. package/__chunks__/{Tabs-CmmF0WMQ.js → Tabs-WKn9NKJy.js} +18 -18
  160. package/__chunks__/{Text-DN9QVNH4.js → Text-CoOcI-ZA.js} +34 -34
  161. package/__chunks__/{Text-CLXCmUFd.mjs → Text-Dfn-c0km.mjs} +34 -34
  162. package/__chunks__/{Toggle-D4oyHZCf.js → Toggle-DYTnMD3t.js} +15 -14
  163. package/__chunks__/{Toggle-DytN4mU6.mjs → Toggle-qa6gbH9Q.mjs} +14 -13
  164. package/__chunks__/{Tooltip-BFf05Sd7.js → Tooltip-6vJKVOnU.js} +11 -11
  165. package/__chunks__/{Tooltip-BHGCJiVl.mjs → Tooltip-DnLwtGUV.mjs} +11 -11
  166. package/__chunks__/{UnstyledButton-DcvMv4SL.mjs → UnstyledButton-0v6TRjMY.mjs} +1 -1
  167. package/__chunks__/{UnstyledButton-DVpiY5Qh.js → UnstyledButton-BfeN_d1h.js} +1 -1
  168. package/__chunks__/{VerticalStack-CbamvYP6.js → VerticalStack-BUxIVmGp.js} +3 -3
  169. package/__chunks__/{VerticalStack-DOMDyLlK.mjs → VerticalStack-ac4iBcxE.mjs} +3 -3
  170. package/__chunks__/{VisuallyHidden-CBNzWIG8.mjs → VisuallyHidden-BsBkcHpw.mjs} +1 -1
  171. package/__chunks__/{VisuallyHidden-zJSJlhfQ.js → VisuallyHidden-CVfjb1YY.js} +1 -1
  172. package/__chunks__/{ariaHideOutside-qn3-pnlW.js → ariaHideOutside-2fSu0FuJ.js} +5 -5
  173. package/__chunks__/{ariaHideOutside-CGNrOhSc.mjs → ariaHideOutside-Dhj8j6Mb.mjs} +3 -3
  174. package/__chunks__/focusSafely-CZPj1Dug.js +14 -0
  175. package/__chunks__/focusSafely-DfpH-pE9.mjs +15 -0
  176. package/__chunks__/isVirtualEvent-BPCuFO54.mjs +74 -0
  177. package/__chunks__/isVirtualEvent-DwoP1rNI.js +73 -0
  178. package/__chunks__/{focusSafely-MxnwWbsu.mjs → runAfterTransition-B7Bfhj0D.mjs} +2 -13
  179. package/__chunks__/{focusSafely-BpCL6rxl.js → runAfterTransition-DtSqibrj.js} +0 -11
  180. package/__chunks__/{useButton-COCB0O4M.mjs → useButton-C6QFpa4j.mjs} +2 -2
  181. package/__chunks__/{useButton-hrdBTa5u.js → useButton-DVdJNlul.js} +2 -2
  182. package/__chunks__/{useDialog-47nl4w_8.mjs → useDialog-CfUEt_df.mjs} +3 -3
  183. package/__chunks__/{useDialog-DNGXm940.js → useDialog-CtMBWxF5.js} +3 -3
  184. package/__chunks__/{useEdgeInterceptors-CrrZ-iAb.js → useEdgeInterceptors-CQ1iontu.js} +5 -5
  185. package/__chunks__/{useEdgeInterceptors-D0TMU4bR.mjs → useEdgeInterceptors-DYwJNXXm.mjs} +5 -5
  186. package/__chunks__/{useFocus-Dk6g6k91.js → useFocus-B4oRb1dU.js} +3 -2
  187. package/__chunks__/{useFocus-DOcjAFnP.mjs → useFocus-By3Cx-xz.mjs} +2 -1
  188. package/__chunks__/{useFocusRing-CKgGPgoX.js → useFocusRing-DFRFvht_.js} +3 -3
  189. package/__chunks__/{useFocusRing-Cj5zef_6.mjs → useFocusRing-dRPhwlpK.mjs} +3 -3
  190. package/__chunks__/{useFocusVisible-DXAxI2Xj.mjs → useFocusVisible-BbEmluTm.mjs} +4 -75
  191. package/__chunks__/{useFocusVisible-DAg8LS6j.js → useFocusVisible-PBQuklI8.js} +13 -84
  192. package/__chunks__/{useFocusWithin-CxvNMoRn.js → useFocusWithin-C1ioGWec.js} +1 -1
  193. package/__chunks__/{useFocusWithin-Bg5BTlgA.mjs → useFocusWithin-krnNAgDY.mjs} +1 -1
  194. package/__chunks__/{useFocusable-Uo_zjP6s.mjs → useFocusable-B0naYTNU.mjs} +2 -2
  195. package/__chunks__/{useFocusable-By9yXfUQ.js → useFocusable-D0hhxIk-.js} +2 -2
  196. package/__chunks__/{useFormValidation-DOUyT2Mb.js → useFormValidation-C2DoIczP.js} +1 -1
  197. package/__chunks__/{useFormValidation-C_CD-7QE.mjs → useFormValidation-DAScndBq.mjs} +1 -1
  198. package/__chunks__/{useHasTabbableChild-DhoFI49t.mjs → useHasTabbableChild-9rS-nuc-.mjs} +1 -1
  199. package/__chunks__/{useHasTabbableChild-BCSKoUR_.js → useHasTabbableChild-BY-g4H3y.js} +1 -1
  200. package/__chunks__/{useHighlightSelectionDescription-P7rP7hnM.js → useHighlightSelectionDescription-CG5W6CIQ.js} +1 -1
  201. package/__chunks__/{useHighlightSelectionDescription-BGSwVQtc.mjs → useHighlightSelectionDescription-CPtYsCSQ.mjs} +1 -1
  202. package/__chunks__/{useModal-sVKQd6HX.mjs → useModal-DajWXu6g.mjs} +1 -1
  203. package/__chunks__/{useModal-BV6_Azqp.js → useModal-QwDRNW96.js} +2 -2
  204. package/__chunks__/{usePress-DjyN_yP2.js → usePress-BVH8whNd.js} +26 -26
  205. package/__chunks__/{usePress-CA-sH9oY.mjs → usePress-CiUDlxr6.mjs} +2 -2
  206. package/__chunks__/{useSelectableItem-Bgjo4Ulj.js → useSelectableItem-C0qCIU8l.js} +10 -8
  207. package/__chunks__/{useSelectableItem-Dn-hODEw.mjs → useSelectableItem-CHd6ksRw.mjs} +6 -4
  208. package/__chunks__/{useSelectableList-CjopKGbS.js → useSelectableList-CnP9hXkb.js} +1 -1
  209. package/__chunks__/{useSelectableList-DjrCndUM.mjs → useSelectableList-FvytdUu7.mjs} +1 -1
  210. package/__chunks__/{useToggle-qLiVQ6Y2.js → useToggle-DsYRac30.js} +2 -19
  211. package/__chunks__/{useToggle-V7BhKpNo.mjs → useToggle-YUgC8qn-.mjs} +3 -20
  212. package/__chunks__/useToggleState-CdbEMLRz.js +18 -0
  213. package/__chunks__/useToggleState-kFojjzgV.mjs +19 -0
  214. package/__chunks__/{useTriggerWidth-CI9YrWOP.mjs → useTriggerWidth-B3JINZlR.mjs} +4 -4
  215. package/__chunks__/{useTriggerWidth-Bj1hzfIg.js → useTriggerWidth-CcKoLR8z.js} +4 -4
  216. package/__chunks__/utils-DXO9zsKE.js +154 -0
  217. package/__chunks__/utils-Dm-0qf_-.mjs +155 -0
  218. package/package.json +2 -2
  219. package/style.css +1015 -968
  220. package/DataGrid/UnstyledPressButton.d.ts.map +0 -1
  221. /package/{DataGrid → UnstyledButton}/UnstyledPressButton.d.ts +0 -0
@@ -1,67 +1,7 @@
1
1
  "use strict";
2
2
  const React = require("react");
3
3
  const mergeProps = require("./mergeProps-DniMwM6P.js");
4
- const $431fbd86ca7dc216$export$b204af158042fbac = (el) => {
5
- var _el_ownerDocument;
6
- return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;
7
- };
8
- const $431fbd86ca7dc216$export$f21a1ffae260145a = (el) => {
9
- if (el && "window" in el && el.window === el) return el;
10
- const doc = $431fbd86ca7dc216$export$b204af158042fbac(el);
11
- return doc.defaultView || window;
12
- };
13
- function $c87311424ea30a05$var$testUserAgent(re) {
14
- var _window_navigator_userAgentData;
15
- if (typeof window === "undefined" || window.navigator == null) return false;
16
- return ((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands.some((brand) => re.test(brand.brand))) || re.test(window.navigator.userAgent);
17
- }
18
- function $c87311424ea30a05$var$testPlatform(re) {
19
- var _window_navigator_userAgentData;
20
- return typeof window !== "undefined" && window.navigator != null ? re.test(((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : false;
21
- }
22
- function $c87311424ea30a05$var$cached(fn) {
23
- let res = null;
24
- return () => {
25
- if (res == null) res = fn();
26
- return res;
27
- };
28
- }
29
- const $c87311424ea30a05$export$9ac100e40613ea10 = $c87311424ea30a05$var$cached(function() {
30
- return $c87311424ea30a05$var$testPlatform(/^Mac/i);
31
- });
32
- const $c87311424ea30a05$export$186c6964ca17d99 = $c87311424ea30a05$var$cached(function() {
33
- return $c87311424ea30a05$var$testPlatform(/^iPhone/i);
34
- });
35
- const $c87311424ea30a05$export$7bef049ce92e4224 = $c87311424ea30a05$var$cached(function() {
36
- return $c87311424ea30a05$var$testPlatform(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
37
- $c87311424ea30a05$export$9ac100e40613ea10() && navigator.maxTouchPoints > 1;
38
- });
39
- const $c87311424ea30a05$export$fedb369cb70207f1 = $c87311424ea30a05$var$cached(function() {
40
- return $c87311424ea30a05$export$186c6964ca17d99() || $c87311424ea30a05$export$7bef049ce92e4224();
41
- });
42
- const $c87311424ea30a05$export$e1865c3bedcd822b = $c87311424ea30a05$var$cached(function() {
43
- return $c87311424ea30a05$export$9ac100e40613ea10() || $c87311424ea30a05$export$fedb369cb70207f1();
44
- });
45
- const $c87311424ea30a05$export$78551043582a6a98 = $c87311424ea30a05$var$cached(function() {
46
- return $c87311424ea30a05$var$testUserAgent(/AppleWebKit/i) && !$c87311424ea30a05$export$6446a186d09e379e();
47
- });
48
- const $c87311424ea30a05$export$6446a186d09e379e = $c87311424ea30a05$var$cached(function() {
49
- return $c87311424ea30a05$var$testUserAgent(/Chrome/i);
50
- });
51
- const $c87311424ea30a05$export$a11b0059900ceec8 = $c87311424ea30a05$var$cached(function() {
52
- return $c87311424ea30a05$var$testUserAgent(/Android/i);
53
- });
54
- const $c87311424ea30a05$export$b7d78993b74f766d = $c87311424ea30a05$var$cached(function() {
55
- return $c87311424ea30a05$var$testUserAgent(/Firefox/i);
56
- });
57
- function $6a7db85432448f7f$export$60278871457622de(event) {
58
- if (event.mozInputSource === 0 && event.isTrusted) return true;
59
- if ($c87311424ea30a05$export$a11b0059900ceec8() && event.pointerType) return event.type === "click" && event.buttons === 1;
60
- return event.detail === 0 && !event.pointerType;
61
- }
62
- function $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) {
63
- return !$c87311424ea30a05$export$a11b0059900ceec8() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "mouse";
64
- }
4
+ const isVirtualEvent = require("./isVirtualEvent-DwoP1rNI.js");
65
5
  class $8a9cb279dc87e130$export$905e7fc544a71f36 {
66
6
  isDefaultPrevented() {
67
7
  return this.nativeEvent.defaultPrevented;
@@ -164,7 +104,7 @@ function $507fabe10e71c6fb$var$triggerChangeHandlers(modality, e) {
164
104
  for (let handler of $507fabe10e71c6fb$var$changeHandlers) handler(modality, e);
165
105
  }
166
106
  function $507fabe10e71c6fb$var$isValidKey(e) {
167
- return !(e.metaKey || !$c87311424ea30a05$export$9ac100e40613ea10() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
107
+ return !(e.metaKey || !isVirtualEvent.$c87311424ea30a05$export$9ac100e40613ea10() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
168
108
  }
169
109
  function $507fabe10e71c6fb$var$handleKeyboardEvent(e) {
170
110
  $507fabe10e71c6fb$var$hasEventBeforeFocus = true;
@@ -181,7 +121,7 @@ function $507fabe10e71c6fb$var$handlePointerEvent(e) {
181
121
  }
182
122
  }
183
123
  function $507fabe10e71c6fb$var$handleClickEvent(e) {
184
- if ($6a7db85432448f7f$export$60278871457622de(e)) {
124
+ if (isVirtualEvent.$6a7db85432448f7f$export$60278871457622de(e)) {
185
125
  $507fabe10e71c6fb$var$hasEventBeforeFocus = true;
186
126
  $507fabe10e71c6fb$var$currentModality = "virtual";
187
127
  }
@@ -200,9 +140,9 @@ function $507fabe10e71c6fb$var$handleWindowBlur() {
200
140
  $507fabe10e71c6fb$var$hasBlurredWindowRecently = true;
201
141
  }
202
142
  function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) {
203
- if (typeof window === "undefined" || $507fabe10e71c6fb$export$d90243b58daecda7.get($431fbd86ca7dc216$export$f21a1ffae260145a(element))) return;
204
- const windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element);
205
- const documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element);
143
+ if (typeof window === "undefined" || $507fabe10e71c6fb$export$d90243b58daecda7.get(isVirtualEvent.$431fbd86ca7dc216$export$f21a1ffae260145a(element))) return;
144
+ const windowObject = isVirtualEvent.$431fbd86ca7dc216$export$f21a1ffae260145a(element);
145
+ const documentObject = isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(element);
206
146
  let focus = windowObject.HTMLElement.prototype.focus;
207
147
  windowObject.HTMLElement.prototype.focus = function() {
208
148
  $507fabe10e71c6fb$var$hasEventBeforeFocus = true;
@@ -232,8 +172,8 @@ function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) {
232
172
  });
233
173
  }
234
174
  const $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element, loadListener) => {
235
- const windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element);
236
- const documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element);
175
+ const windowObject = isVirtualEvent.$431fbd86ca7dc216$export$f21a1ffae260145a(element);
176
+ const documentObject = isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(element);
237
177
  if (loadListener) documentObject.removeEventListener("DOMContentLoaded", loadListener);
238
178
  if (!$507fabe10e71c6fb$export$d90243b58daecda7.has(windowObject)) return;
239
179
  windowObject.HTMLElement.prototype.focus = $507fabe10e71c6fb$export$d90243b58daecda7.get(windowObject).focus;
@@ -254,7 +194,7 @@ const $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element, loadListener
254
194
  $507fabe10e71c6fb$export$d90243b58daecda7.delete(windowObject);
255
195
  };
256
196
  function $507fabe10e71c6fb$export$2f1888112f558a7d(element) {
257
- const documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element);
197
+ const documentObject = isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(element);
258
198
  let loadListener;
259
199
  if (documentObject.readyState !== "loading") $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);
260
200
  else {
@@ -303,10 +243,10 @@ const $507fabe10e71c6fb$var$nonTextInputTypes = /* @__PURE__ */ new Set([
303
243
  ]);
304
244
  function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {
305
245
  var _e_target;
306
- const IHTMLInputElement = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;
307
- const IHTMLTextAreaElement = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;
308
- const IHTMLElement = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;
309
- const IKeyboardEvent = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;
246
+ const IHTMLInputElement = typeof window !== "undefined" ? isVirtualEvent.$431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;
247
+ const IHTMLTextAreaElement = typeof window !== "undefined" ? isVirtualEvent.$431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;
248
+ const IHTMLElement = typeof window !== "undefined" ? isVirtualEvent.$431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;
249
+ const IKeyboardEvent = typeof window !== "undefined" ? isVirtualEvent.$431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;
310
250
  isTextInput = isTextInput || (e === null || e === void 0 ? void 0 : e.target) instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(e === null || e === void 0 ? void 0 : (_e_target = e.target) === null || _e_target === void 0 ? void 0 : _e_target.type) || (e === null || e === void 0 ? void 0 : e.target) instanceof IHTMLTextAreaElement || (e === null || e === void 0 ? void 0 : e.target) instanceof IHTMLElement && (e === null || e === void 0 ? void 0 : e.target.isContentEditable);
311
251
  return !(isTextInput && modality === "keyboard" && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);
312
252
  }
@@ -323,20 +263,9 @@ function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {
323
263
  };
324
264
  }, deps);
325
265
  }
326
- exports.$431fbd86ca7dc216$export$b204af158042fbac = $431fbd86ca7dc216$export$b204af158042fbac;
327
- exports.$431fbd86ca7dc216$export$f21a1ffae260145a = $431fbd86ca7dc216$export$f21a1ffae260145a;
328
266
  exports.$507fabe10e71c6fb$export$630ff653c5ada6a9 = $507fabe10e71c6fb$export$630ff653c5ada6a9;
329
267
  exports.$507fabe10e71c6fb$export$8397ddfc504fdb9a = $507fabe10e71c6fb$export$8397ddfc504fdb9a;
330
268
  exports.$507fabe10e71c6fb$export$98e20ec92f614cfe = $507fabe10e71c6fb$export$98e20ec92f614cfe;
331
269
  exports.$507fabe10e71c6fb$export$b9b3dfddab17db27 = $507fabe10e71c6fb$export$b9b3dfddab17db27;
332
270
  exports.$507fabe10e71c6fb$export$ec71b4b83ac08ec3 = $507fabe10e71c6fb$export$ec71b4b83ac08ec3;
333
- exports.$6a7db85432448f7f$export$29bf1b5f2c56cf63 = $6a7db85432448f7f$export$29bf1b5f2c56cf63;
334
- exports.$6a7db85432448f7f$export$60278871457622de = $6a7db85432448f7f$export$60278871457622de;
335
271
  exports.$8a9cb279dc87e130$export$715c682d09d639cc = $8a9cb279dc87e130$export$715c682d09d639cc;
336
- exports.$c87311424ea30a05$export$78551043582a6a98 = $c87311424ea30a05$export$78551043582a6a98;
337
- exports.$c87311424ea30a05$export$7bef049ce92e4224 = $c87311424ea30a05$export$7bef049ce92e4224;
338
- exports.$c87311424ea30a05$export$9ac100e40613ea10 = $c87311424ea30a05$export$9ac100e40613ea10;
339
- exports.$c87311424ea30a05$export$a11b0059900ceec8 = $c87311424ea30a05$export$a11b0059900ceec8;
340
- exports.$c87311424ea30a05$export$b7d78993b74f766d = $c87311424ea30a05$export$b7d78993b74f766d;
341
- exports.$c87311424ea30a05$export$e1865c3bedcd822b = $c87311424ea30a05$export$e1865c3bedcd822b;
342
- exports.$c87311424ea30a05$export$fedb369cb70207f1 = $c87311424ea30a05$export$fedb369cb70207f1;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const useFocusVisible = require("./useFocusVisible-DAg8LS6j.js");
2
+ const useFocusVisible = require("./useFocusVisible-PBQuklI8.js");
3
3
  const React = require("react");
4
4
  function $9ab94262bd0047c7$export$420e68273165f4ec(props) {
5
5
  let { isDisabled, onBlurWithin, onFocusWithin, onFocusWithinChange } = props;
@@ -1,4 +1,4 @@
1
- import { $ as $8a9cb279dc87e130$export$715c682d09d639cc } from "./useFocusVisible-DXAxI2Xj.mjs";
1
+ import { a as $8a9cb279dc87e130$export$715c682d09d639cc } from "./useFocusVisible-BbEmluTm.mjs";
2
2
  import { useRef, useCallback } from "react";
3
3
  function $9ab94262bd0047c7$export$420e68273165f4ec(props) {
4
4
  let { isDisabled, onBlurWithin, onFocusWithin, onFocusWithinChange } = props;
@@ -29,11 +29,11 @@ var __objRest = (source, exclude) => {
29
29
  }
30
30
  return target;
31
31
  };
32
- import { $ as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-MxnwWbsu.mjs";
32
+ import { $ as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-DfpH-pE9.mjs";
33
33
  import { a as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-SJQ-f8LF.mjs";
34
34
  import { $ as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./useSyncRef-Cp332icp.mjs";
35
35
  import React__default, { useRef, useEffect, useContext } from "react";
36
- import { $ as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useFocus-DOcjAFnP.mjs";
36
+ import { $ as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useFocus-By3Cx-xz.mjs";
37
37
  function $93925083ecbb358c$export$48d1ea6320830260(handler) {
38
38
  if (!handler) return void 0;
39
39
  let shouldStopPropagation = true;
@@ -30,11 +30,11 @@ var __objRest = (source, exclude) => {
30
30
  }
31
31
  return target;
32
32
  };
33
- const focusSafely = require("./focusSafely-BpCL6rxl.js");
33
+ const focusSafely = require("./focusSafely-CZPj1Dug.js");
34
34
  const mergeProps = require("./mergeProps-DniMwM6P.js");
35
35
  const useSyncRef = require("./useSyncRef-CPg4onT-.js");
36
36
  const React = require("react");
37
- const useFocus = require("./useFocus-Dk6g6k91.js");
37
+ const useFocus = require("./useFocus-B4oRb1dU.js");
38
38
  function $93925083ecbb358c$export$48d1ea6320830260(handler) {
39
39
  if (!handler) return void 0;
40
40
  let shouldStopPropagation = true;
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
19
19
  };
20
20
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21
21
  const React = require("react");
22
- const useFocusVisible = require("./useFocusVisible-DAg8LS6j.js");
22
+ const useFocusVisible = require("./useFocusVisible-PBQuklI8.js");
23
23
  const mergeProps = require("./mergeProps-DniMwM6P.js");
24
24
  const $e5be200c675c3b3a$export$aca958c65c314e6c = {
25
25
  badInput: false,
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { createContext, useMemo, useContext, useState, useRef, useEffect } from "react";
21
- import { d as $507fabe10e71c6fb$export$8397ddfc504fdb9a } from "./useFocusVisible-DXAxI2Xj.mjs";
21
+ import { d as $507fabe10e71c6fb$export$8397ddfc504fdb9a } from "./useFocusVisible-BbEmluTm.mjs";
22
22
  import { b as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, c as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./mergeProps-SJQ-f8LF.mjs";
23
23
  const $e5be200c675c3b3a$export$aca958c65c314e6c = {
24
24
  badInput: false,
@@ -1,4 +1,4 @@
1
- import { $ as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-CjqREKhC.mjs";
1
+ import { $ as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-C194OB-4.mjs";
2
2
  import { b as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./mergeProps-SJQ-f8LF.mjs";
3
3
  import { useState } from "react";
4
4
  function $83013635b024ae3d$export$eac1895992b9f3d6(ref, options) {
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const FocusScope = require("./FocusScope-CoZUVDQG.js");
2
+ const FocusScope = require("./FocusScope-DJer9ahG.js");
3
3
  const mergeProps = require("./mergeProps-DniMwM6P.js");
4
4
  const React = require("react");
5
5
  function $83013635b024ae3d$export$eac1895992b9f3d6(ref, options) {
@@ -3,7 +3,7 @@ const LiveAnnouncer = require("./LiveAnnouncer-CWnuIRMW.js");
3
3
  const useLocalizedStringFormatter = require("./useLocalizedStringFormatter-D74_5d4h.js");
4
4
  const React = require("react");
5
5
  const scrollIntoView = require("./scrollIntoView-DkcUbB3D.js");
6
- const useFocusVisible = require("./useFocusVisible-DAg8LS6j.js");
6
+ const useFocusVisible = require("./useFocusVisible-PBQuklI8.js");
7
7
  var $682989befd4f478d$exports = {};
8
8
  $682989befd4f478d$exports = {
9
9
  "deselectedItem": (args) => `${args.item} غير المحدد`,
@@ -2,7 +2,7 @@ import { $ as $4f58c5f72bcf79f7$export$496315a1608d9602, a as $319e236875307eab$
2
2
  import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-DJWWtB78.mjs";
3
3
  import { useRef, useMemo } from "react";
4
4
  import { $ as $ef06256079686ba0$export$f8aeda7b10753fa1 } from "./scrollIntoView-C4vMSOYx.mjs";
5
- import { o as $507fabe10e71c6fb$export$98e20ec92f614cfe } from "./useFocusVisible-DXAxI2Xj.mjs";
5
+ import { e as $507fabe10e71c6fb$export$98e20ec92f614cfe } from "./useFocusVisible-BbEmluTm.mjs";
6
6
  var $682989befd4f478d$exports = {};
7
7
  $682989befd4f478d$exports = {
8
8
  "deselectedItem": (args) => `${args.item} غير المحدد`,
@@ -29,7 +29,7 @@ var __objRest = (source, exclude) => {
29
29
  }
30
30
  return target;
31
31
  };
32
- import { g as $c87311424ea30a05$export$78551043582a6a98 } from "./useFocusVisible-DXAxI2Xj.mjs";
32
+ import { d as $c87311424ea30a05$export$78551043582a6a98 } from "./isVirtualEvent-BPCuFO54.mjs";
33
33
  import { $ as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-CLRm_tTs.mjs";
34
34
  import { $ as $dd149f63282afbbf$export$18fc8428861184da } from "./useCloseOnScroll-DxZ3orlK.mjs";
35
35
  import React__default, { useState, useRef, useEffect, useCallback, useContext, useMemo } from "react";
@@ -30,7 +30,7 @@ var __objRest = (source, exclude) => {
30
30
  }
31
31
  return target;
32
32
  };
33
- const useFocusVisible = require("./useFocusVisible-DAg8LS6j.js");
33
+ const isVirtualEvent = require("./isVirtualEvent-DwoP1rNI.js");
34
34
  const number = require("./number-C4N6pKyl.js");
35
35
  const useCloseOnScroll = require("./useCloseOnScroll-CLFhBFoo.js");
36
36
  const React = require("react");
@@ -90,7 +90,7 @@ function $edcf132a9284368a$var$getContainerDimensions(containerNode) {
90
90
  totalWidth = width;
91
91
  totalHeight = height;
92
92
  }
93
- if (useFocusVisible.$c87311424ea30a05$export$78551043582a6a98() && (containerNode.tagName === "BODY" || containerNode.tagName === "HTML") && isPinchZoomedIn) {
93
+ if (isVirtualEvent.$c87311424ea30a05$export$78551043582a6a98() && (containerNode.tagName === "BODY" || containerNode.tagName === "HTML") && isPinchZoomedIn) {
94
94
  scroll.top = 0;
95
95
  scroll.left = 0;
96
96
  var _visualViewport_pageTop;
@@ -14,8 +14,8 @@ var __objRest = (source, exclude) => {
14
14
  }
15
15
  return target;
16
16
  };
17
- const useFocusVisible = require("./useFocusVisible-DAg8LS6j.js");
18
- const focusSafely = require("./focusSafely-BpCL6rxl.js");
17
+ const isVirtualEvent = require("./isVirtualEvent-DwoP1rNI.js");
18
+ const runAfterTransition = require("./runAfterTransition-DtSqibrj.js");
19
19
  const context = require("./context-B-c1HPQa.js");
20
20
  const mergeProps = require("./mergeProps-DniMwM6P.js");
21
21
  const React = require("react");
@@ -66,11 +66,11 @@ function $ea8dcbcb9ea1b556$export$efa8c9099e530235(link, modifiers) {
66
66
  function $ea8dcbcb9ea1b556$export$95185d699e05d4d7(target, modifiers, setOpening = true) {
67
67
  var _window_event_type, _window_event;
68
68
  let { metaKey, ctrlKey, altKey, shiftKey } = modifiers;
69
- if (useFocusVisible.$c87311424ea30a05$export$b7d78993b74f766d() && ((_window_event = window.event) === null || _window_event === void 0 ? void 0 : (_window_event_type = _window_event.type) === null || _window_event_type === void 0 ? void 0 : _window_event_type.startsWith("key")) && target.target === "_blank") {
70
- if (useFocusVisible.$c87311424ea30a05$export$9ac100e40613ea10()) metaKey = true;
69
+ if (isVirtualEvent.$c87311424ea30a05$export$b7d78993b74f766d() && ((_window_event = window.event) === null || _window_event === void 0 ? void 0 : (_window_event_type = _window_event.type) === null || _window_event_type === void 0 ? void 0 : _window_event_type.startsWith("key")) && target.target === "_blank") {
70
+ if (isVirtualEvent.$c87311424ea30a05$export$9ac100e40613ea10()) metaKey = true;
71
71
  else ctrlKey = true;
72
72
  }
73
- let event = useFocusVisible.$c87311424ea30a05$export$78551043582a6a98() && useFocusVisible.$c87311424ea30a05$export$9ac100e40613ea10() && !useFocusVisible.$c87311424ea30a05$export$7bef049ce92e4224() && true ? new KeyboardEvent("keydown", {
73
+ let event = isVirtualEvent.$c87311424ea30a05$export$78551043582a6a98() && isVirtualEvent.$c87311424ea30a05$export$9ac100e40613ea10() && !isVirtualEvent.$c87311424ea30a05$export$7bef049ce92e4224() && true ? new KeyboardEvent("keydown", {
74
74
  keyIdentifier: "Enter",
75
75
  metaKey,
76
76
  ctrlKey,
@@ -85,7 +85,7 @@ function $ea8dcbcb9ea1b556$export$95185d699e05d4d7(target, modifiers, setOpening
85
85
  cancelable: true
86
86
  });
87
87
  $ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = setOpening;
88
- focusSafely.$7215afc6de606d6b$export$de79e2c695e052f3(target);
88
+ runAfterTransition.$7215afc6de606d6b$export$de79e2c695e052f3(target);
89
89
  target.dispatchEvent(event);
90
90
  $ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = false;
91
91
  }
@@ -177,9 +177,9 @@ let $14c0b72509d70225$var$state = "default";
177
177
  let $14c0b72509d70225$var$savedUserSelect = "";
178
178
  let $14c0b72509d70225$var$modifiedElementMap = /* @__PURE__ */ new WeakMap();
179
179
  function $14c0b72509d70225$export$16a4697467175487(target) {
180
- if (useFocusVisible.$c87311424ea30a05$export$fedb369cb70207f1()) {
180
+ if (isVirtualEvent.$c87311424ea30a05$export$fedb369cb70207f1()) {
181
181
  if ($14c0b72509d70225$var$state === "default") {
182
- const documentObject = useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(target);
182
+ const documentObject = isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(target);
183
183
  $14c0b72509d70225$var$savedUserSelect = documentObject.documentElement.style.webkitUserSelect;
184
184
  documentObject.documentElement.style.webkitUserSelect = "none";
185
185
  }
@@ -190,13 +190,13 @@ function $14c0b72509d70225$export$16a4697467175487(target) {
190
190
  }
191
191
  }
192
192
  function $14c0b72509d70225$export$b0d6fa1ab32e3295(target) {
193
- if (useFocusVisible.$c87311424ea30a05$export$fedb369cb70207f1()) {
193
+ if (isVirtualEvent.$c87311424ea30a05$export$fedb369cb70207f1()) {
194
194
  if ($14c0b72509d70225$var$state !== "disabled") return;
195
195
  $14c0b72509d70225$var$state = "restoring";
196
196
  setTimeout(() => {
197
- focusSafely.$bbed8b41f857bcc0$export$24490316f764c430(() => {
197
+ runAfterTransition.$bbed8b41f857bcc0$export$24490316f764c430(() => {
198
198
  if ($14c0b72509d70225$var$state === "restoring") {
199
- const documentObject = useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(target);
199
+ const documentObject = isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(target);
200
200
  if (documentObject.documentElement.style.webkitUserSelect === "none") documentObject.documentElement.style.webkitUserSelect = $14c0b72509d70225$var$savedUserSelect || "";
201
201
  $14c0b72509d70225$var$savedUserSelect = "";
202
202
  $14c0b72509d70225$var$state = "default";
@@ -413,10 +413,10 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
413
413
  let pressUp = (e2) => {
414
414
  if ($f6c31cce2adf654f$var$isValidKeyboardEvent(e2, originalTarget) && !e2.repeat && originalTarget.contains(e2.target) && state.target) triggerPressUp($f6c31cce2adf654f$var$createEvent(state.target, e2), "keyboard");
415
415
  };
416
- addGlobalListener(useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "keyup", mergeProps.$ff5963eb1fccf552$export$e08e3b67e392101e(pressUp, onKeyUp), true);
416
+ addGlobalListener(isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "keyup", mergeProps.$ff5963eb1fccf552$export$e08e3b67e392101e(pressUp, onKeyUp), true);
417
417
  }
418
418
  if (shouldStopPropagation) e.stopPropagation();
419
- if (e.metaKey && useFocusVisible.$c87311424ea30a05$export$9ac100e40613ea10()) (_state_metaKeyEvents = state.metaKeyEvents) === null || _state_metaKeyEvents === void 0 ? void 0 : _state_metaKeyEvents.set(e.key, e.nativeEvent);
419
+ if (e.metaKey && isVirtualEvent.$c87311424ea30a05$export$9ac100e40613ea10()) (_state_metaKeyEvents = state.metaKeyEvents) === null || _state_metaKeyEvents === void 0 ? void 0 : _state_metaKeyEvents.set(e.key, e.nativeEvent);
420
420
  } else if (e.key === "Meta") state.metaKeyEvents = /* @__PURE__ */ new Map();
421
421
  },
422
422
  onClick(e) {
@@ -424,8 +424,8 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
424
424
  if (e && e.button === 0 && !state.isTriggeringEvent && !$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening) {
425
425
  let shouldStopPropagation = true;
426
426
  if (isDisabled) e.preventDefault();
427
- if (!state.ignoreClickAfterPress && !state.ignoreEmulatedMouseEvents && !state.isPressed && (state.pointerType === "virtual" || useFocusVisible.$6a7db85432448f7f$export$60278871457622de(e.nativeEvent))) {
428
- if (!isDisabled && !preventFocusOnPress) focusSafely.$7215afc6de606d6b$export$de79e2c695e052f3(e.currentTarget);
427
+ if (!state.ignoreClickAfterPress && !state.ignoreEmulatedMouseEvents && !state.isPressed && (state.pointerType === "virtual" || isVirtualEvent.$6a7db85432448f7f$export$60278871457622de(e.nativeEvent))) {
428
+ if (!isDisabled && !preventFocusOnPress) runAfterTransition.$7215afc6de606d6b$export$de79e2c695e052f3(e.currentTarget);
429
429
  let stopPressStart = triggerPressStart(e, "virtual");
430
430
  let stopPressUp = triggerPressUp(e, "virtual");
431
431
  let stopPressEnd = triggerPressEnd(e, "virtual");
@@ -461,7 +461,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
461
461
  if (typeof PointerEvent !== "undefined") {
462
462
  pressProps2.onPointerDown = (e) => {
463
463
  if (e.button !== 0 || !e.currentTarget.contains(e.target)) return;
464
- if (useFocusVisible.$6a7db85432448f7f$export$29bf1b5f2c56cf63(e.nativeEvent)) {
464
+ if (isVirtualEvent.$6a7db85432448f7f$export$29bf1b5f2c56cf63(e.nativeEvent)) {
465
465
  state.pointerType = "virtual";
466
466
  return;
467
467
  }
@@ -473,12 +473,12 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
473
473
  state.isOverTarget = true;
474
474
  state.activePointerId = e.pointerId;
475
475
  state.target = e.currentTarget;
476
- if (!isDisabled && !preventFocusOnPress) focusSafely.$7215afc6de606d6b$export$de79e2c695e052f3(e.currentTarget);
476
+ if (!isDisabled && !preventFocusOnPress) runAfterTransition.$7215afc6de606d6b$export$de79e2c695e052f3(e.currentTarget);
477
477
  if (!allowTextSelectionOnPress) $14c0b72509d70225$export$16a4697467175487(state.target);
478
478
  shouldStopPropagation = triggerPressStart(e, state.pointerType);
479
- addGlobalListener(useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "pointermove", onPointerMove, false);
480
- addGlobalListener(useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "pointerup", onPointerUp, false);
481
- addGlobalListener(useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "pointercancel", onPointerCancel, false);
479
+ addGlobalListener(isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "pointermove", onPointerMove, false);
480
+ addGlobalListener(isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "pointerup", onPointerUp, false);
481
+ addGlobalListener(isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "pointercancel", onPointerCancel, false);
482
482
  }
483
483
  if (shouldStopPropagation) e.stopPropagation();
484
484
  };
@@ -542,11 +542,11 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
542
542
  state.isPressed = true;
543
543
  state.isOverTarget = true;
544
544
  state.target = e.currentTarget;
545
- state.pointerType = useFocusVisible.$6a7db85432448f7f$export$60278871457622de(e.nativeEvent) ? "virtual" : "mouse";
546
- if (!isDisabled && !preventFocusOnPress) focusSafely.$7215afc6de606d6b$export$de79e2c695e052f3(e.currentTarget);
545
+ state.pointerType = isVirtualEvent.$6a7db85432448f7f$export$60278871457622de(e.nativeEvent) ? "virtual" : "mouse";
546
+ if (!isDisabled && !preventFocusOnPress) runAfterTransition.$7215afc6de606d6b$export$de79e2c695e052f3(e.currentTarget);
547
547
  let shouldStopPropagation = triggerPressStart(e, state.pointerType);
548
548
  if (shouldStopPropagation) e.stopPropagation();
549
- addGlobalListener(useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "mouseup", onMouseUp, false);
549
+ addGlobalListener(isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "mouseup", onMouseUp, false);
550
550
  };
551
551
  pressProps2.onMouseEnter = (e) => {
552
552
  if (!e.currentTarget.contains(e.target)) return;
@@ -593,11 +593,11 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
593
593
  state.isPressed = true;
594
594
  state.target = e.currentTarget;
595
595
  state.pointerType = "touch";
596
- if (!isDisabled && !preventFocusOnPress) focusSafely.$7215afc6de606d6b$export$de79e2c695e052f3(e.currentTarget);
596
+ if (!isDisabled && !preventFocusOnPress) runAfterTransition.$7215afc6de606d6b$export$de79e2c695e052f3(e.currentTarget);
597
597
  if (!allowTextSelectionOnPress) $14c0b72509d70225$export$16a4697467175487(state.target);
598
598
  let shouldStopPropagation = triggerPressStart($f6c31cce2adf654f$var$createTouchEvent(state.target, e), state.pointerType);
599
599
  if (shouldStopPropagation) e.stopPropagation();
600
- addGlobalListener(useFocusVisible.$431fbd86ca7dc216$export$f21a1ffae260145a(e.currentTarget), "scroll", onScroll, true);
600
+ addGlobalListener(isVirtualEvent.$431fbd86ca7dc216$export$f21a1ffae260145a(e.currentTarget), "scroll", onScroll, true);
601
601
  };
602
602
  pressProps2.onTouchMove = (e) => {
603
603
  if (!e.currentTarget.contains(e.target)) return;
@@ -692,7 +692,7 @@ function $f6c31cce2adf654f$var$isValidKeyboardEvent(event, currentTarget) {
692
692
  const { key, code } = event;
693
693
  const element = currentTarget;
694
694
  const role = element.getAttribute("role");
695
- return (key === "Enter" || key === " " || key === "Spacebar" || code === "Space") && !(element instanceof useFocusVisible.$431fbd86ca7dc216$export$f21a1ffae260145a(element).HTMLInputElement && !$f6c31cce2adf654f$var$isValidInputKey(element, key) || element instanceof useFocusVisible.$431fbd86ca7dc216$export$f21a1ffae260145a(element).HTMLTextAreaElement || element.isContentEditable) && // Links should only trigger with Enter key
695
+ return (key === "Enter" || key === " " || key === "Spacebar" || code === "Space") && !(element instanceof isVirtualEvent.$431fbd86ca7dc216$export$f21a1ffae260145a(element).HTMLInputElement && !$f6c31cce2adf654f$var$isValidInputKey(element, key) || element instanceof isVirtualEvent.$431fbd86ca7dc216$export$f21a1ffae260145a(element).HTMLTextAreaElement || element.isContentEditable) && // Links should only trigger with Enter key
696
696
  !((role === "link" || !role && $f6c31cce2adf654f$var$isHTMLAnchorLink(element)) && key !== "Enter");
697
697
  }
698
698
  function $f6c31cce2adf654f$var$getTouchFromEvent(event) {
@@ -13,8 +13,8 @@ var __objRest = (source, exclude) => {
13
13
  }
14
14
  return target;
15
15
  };
16
- import { k as $c87311424ea30a05$export$b7d78993b74f766d, j as $c87311424ea30a05$export$9ac100e40613ea10, g as $c87311424ea30a05$export$78551043582a6a98, l as $c87311424ea30a05$export$7bef049ce92e4224, h as $c87311424ea30a05$export$fedb369cb70207f1, a as $431fbd86ca7dc216$export$b204af158042fbac, m as $6a7db85432448f7f$export$29bf1b5f2c56cf63, n as $6a7db85432448f7f$export$60278871457622de, e as $431fbd86ca7dc216$export$f21a1ffae260145a } from "./useFocusVisible-DXAxI2Xj.mjs";
17
- import { a as $7215afc6de606d6b$export$de79e2c695e052f3, b as $bbed8b41f857bcc0$export$24490316f764c430 } from "./focusSafely-MxnwWbsu.mjs";
16
+ import { g as $c87311424ea30a05$export$b7d78993b74f766d, c as $c87311424ea30a05$export$9ac100e40613ea10, d as $c87311424ea30a05$export$78551043582a6a98, h as $c87311424ea30a05$export$7bef049ce92e4224, e as $c87311424ea30a05$export$fedb369cb70207f1, $ as $431fbd86ca7dc216$export$b204af158042fbac, i as $6a7db85432448f7f$export$29bf1b5f2c56cf63, b as $6a7db85432448f7f$export$60278871457622de, a as $431fbd86ca7dc216$export$f21a1ffae260145a } from "./isVirtualEvent-BPCuFO54.mjs";
17
+ import { a as $7215afc6de606d6b$export$de79e2c695e052f3, $ as $bbed8b41f857bcc0$export$24490316f764c430 } from "./runAfterTransition-B7Bfhj0D.mjs";
18
18
  import { $ as $ae1eeba8b9eafd08$export$5165eccb35aaadb5 } from "./context-BzShm_W7.mjs";
19
19
  import { c as $8ae05eaa5c114e9c$export$7f54fc3180508a52, a as $3ef42575df84b30b$export$9d1611c77c2fe928, f as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./mergeProps-SJQ-f8LF.mjs";
20
20
  import React__default, { useMemo, createContext, useContext, useRef, useCallback, useEffect, useState } from "react";
@@ -20,13 +20,15 @@ var __spreadValues = (a, b) => {
20
20
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21
21
  const React = require("react");
22
22
  const ReactDOM = require("react-dom");
23
- const FocusScope = require("./FocusScope-CoZUVDQG.js");
24
- const focusSafely = require("./focusSafely-BpCL6rxl.js");
23
+ const FocusScope = require("./FocusScope-DJer9ahG.js");
24
+ const focusSafely = require("./focusSafely-CZPj1Dug.js");
25
25
  const mergeProps = require("./mergeProps-DniMwM6P.js");
26
- const usePress = require("./usePress-DjyN_yP2.js");
26
+ const runAfterTransition = require("./runAfterTransition-DtSqibrj.js");
27
+ const usePress = require("./usePress-BVH8whNd.js");
27
28
  const scrollIntoView = require("./scrollIntoView-DkcUbB3D.js");
28
- const useFocusVisible = require("./useFocusVisible-DAg8LS6j.js");
29
+ const useFocusVisible = require("./useFocusVisible-PBQuklI8.js");
29
30
  const context = require("./context-D3NeXov7.js");
31
+ const isVirtualEvent = require("./isVirtualEvent-DwoP1rNI.js");
30
32
  function $e9faafb641e167db$export$90fc3a17d93f704c(ref, event, handler, options) {
31
33
  let handleEvent = mergeProps.$8ae05eaa5c114e9c$export$7f54fc3180508a52(handler);
32
34
  let isDisabled = handler == null;
@@ -97,10 +99,10 @@ function $8a26561d2877236e$export$c24ed0104d07eab9(props) {
97
99
  };
98
100
  }
99
101
  function $feb5ffebff200149$export$d3e3bd3e26688c04(e) {
100
- return useFocusVisible.$c87311424ea30a05$export$e1865c3bedcd822b() ? e.altKey : e.ctrlKey;
102
+ return isVirtualEvent.$c87311424ea30a05$export$e1865c3bedcd822b() ? e.altKey : e.ctrlKey;
101
103
  }
102
104
  function $feb5ffebff200149$export$16792effe837dba3(e) {
103
- if (useFocusVisible.$c87311424ea30a05$export$9ac100e40613ea10()) return e.metaKey;
105
+ if (isVirtualEvent.$c87311424ea30a05$export$9ac100e40613ea10()) return e.metaKey;
104
106
  return e.ctrlKey;
105
107
  }
106
108
  const $fb3050f43d946246$var$TYPEAHEAD_DEBOUNCE_WAIT_MS = 1e3;
@@ -280,7 +282,7 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
280
282
  last = walker.lastChild();
281
283
  if (last) next = last;
282
284
  } while (last);
283
- if (next && !next.contains(document.activeElement)) focusSafely.$7215afc6de606d6b$export$de79e2c695e052f3(next);
285
+ if (next && !next.contains(document.activeElement)) runAfterTransition.$7215afc6de606d6b$export$de79e2c695e052f3(next);
284
286
  }
285
287
  break;
286
288
  }
@@ -324,7 +326,7 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
324
326
  if (manager.focusedKey != null && scrollRef.current) {
325
327
  let element = scrollRef.current.querySelector(`[data-key="${CSS.escape(manager.focusedKey.toString())}"]`);
326
328
  if (element) {
327
- if (!element.contains(document.activeElement)) focusSafely.$7215afc6de606d6b$export$de79e2c695e052f3(element);
329
+ if (!element.contains(document.activeElement)) runAfterTransition.$7215afc6de606d6b$export$de79e2c695e052f3(element);
328
330
  let modality = useFocusVisible.$507fabe10e71c6fb$export$630ff653c5ada6a9();
329
331
  if (modality === "keyboard") scrollIntoView.$2f04cbc44ee30ce0$export$c826860796309d1b(element, {
330
332
  containingElement: ref.current
@@ -19,13 +19,15 @@ var __spreadValues = (a, b) => {
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { useEffect, useRef } from "react";
21
21
  import { flushSync } from "react-dom";
22
- import { $ as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-CjqREKhC.mjs";
23
- import { $ as $6a99195332edec8b$export$80f3e147d781571c, a as $7215afc6de606d6b$export$de79e2c695e052f3 } from "./focusSafely-MxnwWbsu.mjs";
22
+ import { $ as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-C194OB-4.mjs";
23
+ import { $ as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-DfpH-pE9.mjs";
24
24
  import { c as $8ae05eaa5c114e9c$export$7f54fc3180508a52, a as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-SJQ-f8LF.mjs";
25
- import { b as $03deb23ff14920c4$export$4eaf04e54aa8eed6, $ as $f6c31cce2adf654f$export$45712eceda6fad21, c as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, d as $ea8dcbcb9ea1b556$export$95185d699e05d4d7 } from "./usePress-CA-sH9oY.mjs";
25
+ import { a as $7215afc6de606d6b$export$de79e2c695e052f3 } from "./runAfterTransition-B7Bfhj0D.mjs";
26
+ import { b as $03deb23ff14920c4$export$4eaf04e54aa8eed6, $ as $f6c31cce2adf654f$export$45712eceda6fad21, c as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, d as $ea8dcbcb9ea1b556$export$95185d699e05d4d7 } from "./usePress-CiUDlxr6.mjs";
26
27
  import { $ as $ef06256079686ba0$export$f8aeda7b10753fa1, a as $2f04cbc44ee30ce0$export$53a0910f038337bd, b as $2f04cbc44ee30ce0$export$c826860796309d1b } from "./scrollIntoView-C4vMSOYx.mjs";
27
- import { i as $c87311424ea30a05$export$e1865c3bedcd822b, j as $c87311424ea30a05$export$9ac100e40613ea10, f as $507fabe10e71c6fb$export$630ff653c5ada6a9 } from "./useFocusVisible-DXAxI2Xj.mjs";
28
+ import { $ as $507fabe10e71c6fb$export$630ff653c5ada6a9 } from "./useFocusVisible-BbEmluTm.mjs";
28
29
  import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-D3I6RuRU.mjs";
30
+ import { f as $c87311424ea30a05$export$e1865c3bedcd822b, c as $c87311424ea30a05$export$9ac100e40613ea10 } from "./isVirtualEvent-BPCuFO54.mjs";
29
31
  function $e9faafb641e167db$export$90fc3a17d93f704c(ref, event, handler, options) {
30
32
  let handleEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(handler);
31
33
  let isDisabled = handler == null;
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
18
18
  return a;
19
19
  };
20
20
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21
- const useSelectableItem = require("./useSelectableItem-Bgjo4Ulj.js");
21
+ const useSelectableItem = require("./useSelectableItem-C0qCIU8l.js");
22
22
  const isScrollable = require("./isScrollable-CE3Xdlg4.js");
23
23
  const context = require("./context-D3NeXov7.js");
24
24
  const React = require("react");
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { $ as $ae20dd8cbca75726$export$d6daf82dcd84e87c } from "./useSelectableItem-Dn-hODEw.mjs";
20
+ import { $ as $ae20dd8cbca75726$export$d6daf82dcd84e87c } from "./useSelectableItem-CHd6ksRw.mjs";
21
21
  import { $ as $cc38e7bd3fc7b213$export$2bb74740c4e19def } from "./isScrollable-DwbLAiO0.mjs";
22
22
  import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-D3I6RuRU.mjs";
23
23
  import { useMemo } from "react";
@@ -18,27 +18,11 @@ var __spreadValues = (a, b) => {
18
18
  return a;
19
19
  };
20
20
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21
- const useControlledState = require("./useControlledState-mnKBd6Uc.js");
22
21
  const mergeProps = require("./mergeProps-DniMwM6P.js");
23
22
  const filterDOMProps = require("./filterDOMProps-D3iOHP0H.js");
24
23
  const useFormReset = require("./useFormReset-Bgj93eR3.js");
25
- const useFocusable = require("./useFocusable-By9yXfUQ.js");
26
- const usePress = require("./usePress-DjyN_yP2.js");
27
- function $3017fa7ffdddec74$export$8042c6c013fd5226(props = {}) {
28
- let { isReadOnly } = props;
29
- let [isSelected, setSelected] = useControlledState.$458b0a5536c1a7cf$export$40bfa8c7b0832715(props.isSelected, props.defaultSelected || false, props.onChange);
30
- function updateSelected(value) {
31
- if (!isReadOnly) setSelected(value);
32
- }
33
- function toggleState() {
34
- if (!isReadOnly) setSelected(!isSelected);
35
- }
36
- return {
37
- isSelected,
38
- setSelected: updateSelected,
39
- toggle: toggleState
40
- };
41
- }
24
+ const useFocusable = require("./useFocusable-D0hhxIk-.js");
25
+ const usePress = require("./usePress-BVH8whNd.js");
42
26
  function $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref) {
43
27
  let { isDisabled = false, isReadOnly = false, value, name, children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, validationState = "valid", isInvalid } = props;
44
28
  let onChange = (e) => {
@@ -87,5 +71,4 @@ function $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref) {
87
71
  isInvalid: isInvalid || validationState === "invalid"
88
72
  };
89
73
  }
90
- exports.$3017fa7ffdddec74$export$8042c6c013fd5226 = $3017fa7ffdddec74$export$8042c6c013fd5226;
91
74
  exports.$d2c8e2b0480f3f34$export$cbe85ee05b554577 = $d2c8e2b0480f3f34$export$cbe85ee05b554577;