@easypost/easy-ui 1.0.0-alpha.65 → 1.0.0-alpha.67

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 (219) 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 +13 -0
  8. package/Calendar/index.js +1 -1
  9. package/Calendar/index.mjs +1 -1
  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 +13 -13
  15. package/CodeBlock/index.mjs +13 -13
  16. package/CodeSnippet/index.js +1 -1
  17. package/CodeSnippet/index.mjs +1 -1
  18. package/DataGrid/index.js +57 -57
  19. package/DataGrid/index.mjs +58 -58
  20. package/DatePicker/index.js +3 -3
  21. package/DatePicker/index.mjs +5 -5
  22. package/DateRangePicker/index.js +3 -3
  23. package/DateRangePicker/index.mjs +5 -5
  24. package/Drawer/index.js +18 -18
  25. package/Drawer/index.mjs +22 -22
  26. package/DropdownButton/index.js +12 -12
  27. package/DropdownButton/index.mjs +12 -12
  28. package/EmptyStateCard/index.js +8 -8
  29. package/EmptyStateCard/index.mjs +8 -8
  30. package/FocusedProductLayout/index.js +23 -23
  31. package/FocusedProductLayout/index.mjs +23 -23
  32. package/ForgeLayout/index.js +41 -231
  33. package/ForgeLayout/index.mjs +40 -230
  34. package/FormLayout/index.js +5 -5
  35. package/FormLayout/index.mjs +5 -5
  36. package/HorizontalGrid/index.js +1 -1
  37. package/HorizontalGrid/index.mjs +1 -1
  38. package/HorizontalStack/index.js +1 -1
  39. package/HorizontalStack/index.mjs +1 -1
  40. package/Icon/index.js +1 -1
  41. package/Icon/index.mjs +1 -1
  42. package/IconButton/index.js +12 -12
  43. package/IconButton/index.mjs +12 -12
  44. package/InputField/index.js +1 -1
  45. package/InputField/index.mjs +1 -1
  46. package/KebabButton/index.js +1 -1
  47. package/KebabButton/index.mjs +1 -1
  48. package/Menu/MenuOverlay.d.ts.map +1 -1
  49. package/Menu/index.js +1 -1
  50. package/Menu/index.mjs +1 -1
  51. package/Menu/utilities.d.ts +3 -0
  52. package/Menu/utilities.d.ts.map +1 -1
  53. package/Modal/index.js +19 -19
  54. package/Modal/index.mjs +23 -23
  55. package/MultiSelect/MultiSelect.d.ts +123 -0
  56. package/MultiSelect/MultiSelect.d.ts.map +1 -0
  57. package/MultiSelect/MultiSelect.stories.d.ts +11 -0
  58. package/MultiSelect/MultiSelect.stories.d.ts.map +1 -0
  59. package/MultiSelect/MultiSelect.test.d.ts +2 -0
  60. package/MultiSelect/MultiSelect.test.d.ts.map +1 -0
  61. package/MultiSelect/MultiSelectDropdown.d.ts +22 -0
  62. package/MultiSelect/MultiSelectDropdown.d.ts.map +1 -0
  63. package/MultiSelect/index.d.ts +2 -0
  64. package/MultiSelect/index.d.ts.map +1 -0
  65. package/MultiSelect/index.js +1989 -0
  66. package/MultiSelect/index.mjs +1974 -0
  67. package/MultiSelect/utilities.d.ts +3 -0
  68. package/MultiSelect/utilities.d.ts.map +1 -0
  69. package/NexusLayout/index.js +28 -28
  70. package/NexusLayout/index.mjs +28 -28
  71. package/Notification/index.js +1 -1
  72. package/Notification/index.mjs +1 -1
  73. package/Pagination/index.js +7 -7
  74. package/Pagination/index.mjs +7 -7
  75. package/PillGroup/index.js +3 -1681
  76. package/PillGroup/index.mjs +3 -1681
  77. package/ProductLayout/index.js +21 -21
  78. package/ProductLayout/index.mjs +25 -25
  79. package/Provider/index.js +1 -1
  80. package/Provider/index.mjs +1 -1
  81. package/RadioButtonGroup/index.js +3 -3
  82. package/RadioButtonGroup/index.mjs +3 -3
  83. package/RadioGroup/index.js +1 -1
  84. package/RadioGroup/index.mjs +1 -1
  85. package/RangeCalendar/index.js +1 -1
  86. package/RangeCalendar/index.mjs +1 -1
  87. package/SearchNav/index.js +29 -29
  88. package/SearchNav/index.mjs +29 -29
  89. package/SectionCard/index.js +7 -7
  90. package/SectionCard/index.mjs +7 -7
  91. package/Select/index.js +5 -5
  92. package/Select/index.mjs +5 -5
  93. package/SelectorErrorTooltip/index.js +1 -1
  94. package/SelectorErrorTooltip/index.mjs +1 -1
  95. package/Spinner/index.js +1 -1
  96. package/Spinner/index.mjs +1 -1
  97. package/SplitToggleCard/index.js +4 -4
  98. package/SplitToggleCard/index.mjs +4 -4
  99. package/Stepper/index.js +1 -1
  100. package/Stepper/index.mjs +1 -1
  101. package/TabNav/index.js +1 -1
  102. package/TabNav/index.mjs +1 -1
  103. package/TabPanels/index.js +1 -1
  104. package/TabPanels/index.mjs +2 -2
  105. package/Tabs/index.js +1 -1
  106. package/Tabs/index.mjs +1 -1
  107. package/Text/index.js +1 -1
  108. package/Text/index.mjs +1 -1
  109. package/TextField/index.js +1 -1
  110. package/TextField/index.mjs +1 -1
  111. package/Textarea/index.js +1 -1
  112. package/Textarea/index.mjs +1 -1
  113. package/Toggle/index.js +1 -1
  114. package/Toggle/index.mjs +1 -1
  115. package/ToggleCard/index.js +2 -2
  116. package/ToggleCard/index.mjs +2 -2
  117. package/Tooltip/index.js +1 -1
  118. package/Tooltip/index.mjs +1 -1
  119. package/VerticalNav/index.js +24 -24
  120. package/VerticalNav/index.mjs +24 -24
  121. package/VerticalStack/index.js +1 -1
  122. package/VerticalStack/index.mjs +1 -1
  123. package/__chunks__/{Button-lb6KY-VK.mjs → Button-10mhxReQ.mjs} +18 -18
  124. package/__chunks__/{Button-CDRssWxC.mjs → Button-BqogJAQ3.mjs} +3 -3
  125. package/__chunks__/{Button-DXhw-VUb.js → Button-BxncM-fm.js} +18 -18
  126. package/__chunks__/{Button-BvLvcmfd.js → Button-Y550ybuK.js} +1 -1
  127. package/__chunks__/{Calendar-ChbA9Ste.mjs → Calendar-D0ysbR2X.mjs} +1 -1
  128. package/__chunks__/{Calendar-D-oFF4f4.js → Calendar-SdcIIg8-.js} +1 -1
  129. package/__chunks__/{CalendarBase-oPvH2YM1.js → CalendarBase-Vw2pBuuE.js} +18 -18
  130. package/__chunks__/{CalendarBase-DC8WR7md.mjs → CalendarBase-ncItGlBS.mjs} +18 -18
  131. package/__chunks__/{Card-CWv2re8Z.mjs → Card-B1cXTObc.mjs} +12 -12
  132. package/__chunks__/{Card-CRFM7MOD.js → Card-DaX-ZuLu.js} +12 -12
  133. package/__chunks__/{Checkbox-B7eahvPN.js → Checkbox-DSYdN5fC.js} +19 -19
  134. package/__chunks__/{Checkbox-XDmnzjIx.mjs → Checkbox-DdAWbHpa.mjs} +20 -20
  135. package/__chunks__/{CodeSnippet-CnjYkoJo.mjs → CodeSnippet-BbIqouQg.mjs} +2 -2
  136. package/__chunks__/{CodeSnippet-FCgb2RfQ.js → CodeSnippet-CPuuHMuI.js} +2 -2
  137. package/__chunks__/{DatePickerBase-DMmeUEou.js → DatePickerBase-D8v7yMaR.js} +18 -62
  138. package/__chunks__/{DatePickerBase-B9g5PeHi.mjs → DatePickerBase-DVA3ya0P.mjs} +20 -64
  139. package/__chunks__/Dialog-CFyC5TFs.js +232 -0
  140. package/__chunks__/Dialog-DnCSZh3s.mjs +233 -0
  141. package/__chunks__/{HelpMenu-BjEMVfGE.js → HelpMenu-CJK_EziM.js} +6 -6
  142. package/__chunks__/{HelpMenu-DWvUM5hz.mjs → HelpMenu-DeTGhGis.mjs} +6 -6
  143. package/__chunks__/{HorizontalGrid-BZX-WluO.js → HorizontalGrid-BYnV-Dy9.js} +1 -1
  144. package/__chunks__/{HorizontalGrid-DGrPEAhQ.mjs → HorizontalGrid-N2NkjG0P.mjs} +1 -1
  145. package/__chunks__/{HorizontalStack--Qc3cVBd.mjs → HorizontalStack-BjMnJAXd.mjs} +1 -1
  146. package/__chunks__/{HorizontalStack-VtCu2VMx.js → HorizontalStack-DqPlOkSw.js} +1 -1
  147. package/__chunks__/{Icon-BD88DLNr.mjs → Icon-QpfeMf4x.mjs} +2 -2
  148. package/__chunks__/{Icon-BDa4XL_V.js → Icon-SeXHAWa2.js} +2 -2
  149. package/__chunks__/{InputCaption-DYFfypKt.mjs → InputCaption-Bcjaxvqr.mjs} +2 -2
  150. package/__chunks__/{InputCaption-DKZRO84o.js → InputCaption-peDy98l4.js} +2 -2
  151. package/__chunks__/{InputField-Bv1SfmUB.mjs → InputField-CmJ6SAKl.mjs} +6 -89
  152. package/__chunks__/{InputField-C7Ti5JNz.js → InputField-DvSIzId4.js} +6 -89
  153. package/__chunks__/{InputIcon-VzRxuUky.mjs → InputIcon-BNR3_LeL.mjs} +31 -31
  154. package/__chunks__/{InputIcon-c-x0Whak.js → InputIcon-szDt09pM.js} +31 -31
  155. package/__chunks__/{KebabButton-TgeYkgj5.mjs → KebabButton-BcKtZQv2.mjs} +4 -4
  156. package/__chunks__/{KebabButton-CdlmuIRm.js → KebabButton-C4QJla9Y.js} +4 -4
  157. package/__chunks__/{Menu-C1Q0RfOp.js → Menu-C45BBC1Y.js} +22 -62
  158. package/__chunks__/{Menu-BL0okgwD.mjs → Menu-CW11-o2X.mjs} +22 -62
  159. package/__chunks__/{Notification-CZS59-s8.mjs → Notification-BJKPFSzJ.mjs} +14 -14
  160. package/__chunks__/{Notification-D7fRjiAH.js → Notification-CxrDF_Pg.js} +14 -14
  161. package/__chunks__/{Overlay-DyfvFsGi.mjs → Overlay-BEmOdNIB.mjs} +3 -3
  162. package/__chunks__/PillGroup-BUMKmU-f.js +2061 -0
  163. package/__chunks__/PillGroup-BtvBL5fM.mjs +2062 -0
  164. package/__chunks__/{RadioGroup-CYlZvoxh.js → RadioGroup-C0py9A-2.js} +15 -15
  165. package/__chunks__/{RadioGroup-D3RN5LLn.mjs → RadioGroup-DZXOUSXN.mjs} +16 -16
  166. package/__chunks__/{RangeCalendar-0Zt6GJAs.js → RangeCalendar-DBiN8Tu8.js} +1 -1
  167. package/__chunks__/{RangeCalendar-D5t6FuZp.mjs → RangeCalendar-DSEwJpHw.mjs} +1 -1
  168. package/__chunks__/{SelectOverlay-DAJ9-Wye.mjs → SelectOverlay-Cy3-vsZK.mjs} +29 -189
  169. package/__chunks__/{SelectOverlay-XRIcujy9.js → SelectOverlay-DBo4MARx.js} +28 -188
  170. package/__chunks__/{SelectorErrorTooltip-r2APVg60.js → SelectorErrorTooltip-DkECS0nt.js} +4 -4
  171. package/__chunks__/{SelectorErrorTooltip-BSNUFpGD.mjs → SelectorErrorTooltip-fPBKPgvD.mjs} +4 -4
  172. package/__chunks__/{Spinner-D9lZ3erf.js → Spinner-BadWfHqn.js} +5 -5
  173. package/__chunks__/{Spinner-C6CoASxe.mjs → Spinner-BjlaHcou.mjs} +5 -5
  174. package/__chunks__/{Stepper-BRecUCpd.mjs → Stepper-BB_ESAbw.mjs} +25 -25
  175. package/__chunks__/{Stepper-D0YDhoPF.js → Stepper-BqgzsSzg.js} +25 -25
  176. package/__chunks__/{TabNav-BzeG4JrK.mjs → TabNav-D77kh-Xx.mjs} +1 -1
  177. package/__chunks__/{TabNav-ipa33NIM.js → TabNav-DnnHglAy.js} +1 -1
  178. package/__chunks__/{Tabs-CsOlVyHJ.mjs → Tabs-C2FPFWA4.mjs} +17 -17
  179. package/__chunks__/{Tabs-CDUhh-Bz.js → Tabs-Y2WlJlna.js} +17 -17
  180. package/__chunks__/{Text-CntV2Frc.js → Text-Crcy_R7t.js} +34 -34
  181. package/__chunks__/{Text-BHyjSBcd.mjs → Text-V-yZP2s7.mjs} +34 -34
  182. package/__chunks__/{TextField-CBWpUHdy.js → TextField-D847huaI.js} +1 -1
  183. package/__chunks__/{TextField-Ca_M-pak.mjs → TextField-EkC5gsJ8.mjs} +1 -1
  184. package/__chunks__/{Toggle-C6ICkaF-.js → Toggle-CQIvcPcu.js} +11 -11
  185. package/__chunks__/{Toggle-BxtpUTDA.mjs → Toggle-H4aOxdc8.mjs} +11 -11
  186. package/__chunks__/{Tooltip-BK6l0C3n.mjs → Tooltip-CIS6DQEh.mjs} +10 -10
  187. package/__chunks__/{Tooltip-cqSETep4.js → Tooltip-DKFYEVdG.js} +8 -8
  188. package/__chunks__/{VerticalStack-BVtgNZrG.mjs → VerticalStack-Djj29NqV.mjs} +3 -3
  189. package/__chunks__/{VerticalStack-B7auhieq.js → VerticalStack-DjuWiMXF.js} +3 -3
  190. package/__chunks__/{useDialog-c-C07qhw.mjs → useDialog-h-MPfyGr.mjs} +1 -1
  191. package/__chunks__/{useEdgeInterceptors-DrJ9MQmY.mjs → useEdgeInterceptors-CJs5WRkG.mjs} +5 -5
  192. package/__chunks__/{useEdgeInterceptors-Bvg1fK8h.js → useEdgeInterceptors-ClXj8z7M.js} +5 -5
  193. package/__chunks__/useFilter-D-K0Oj-7.mjs +65 -0
  194. package/__chunks__/useFilter-DpnZ54nd.js +64 -0
  195. package/__chunks__/{useFormValidation-v2O6VL2V.mjs → useFormValidation-B3euLzzR.mjs} +4 -4
  196. package/__chunks__/useListBoxSection-BlFRlBZy.js +192 -0
  197. package/__chunks__/useListBoxSection-BsSdeGKp.mjs +193 -0
  198. package/__chunks__/{useTriggerWidth-CRz8zSDa.mjs → useMenuTrigger-D4pQ727R.mjs} +3 -130
  199. package/__chunks__/{useTriggerWidth-Dj7C0lza.js → useMenuTrigger-qbIPy-fg.js} +0 -127
  200. package/__chunks__/useMenuTriggerState-Cf_X36NC.mjs +67 -0
  201. package/__chunks__/useMenuTriggerState-Dai3rheB.js +66 -0
  202. package/__chunks__/{useModalOverlay-S0R2uVTX.mjs → useModalOverlay-CkOujl0G.mjs} +1 -1
  203. package/__chunks__/{useOverlayPosition-BjK7cu6U.mjs → useOverlayPosition-dua8TTSS.mjs} +1 -1
  204. package/__chunks__/{useOverlayTrigger-DDcXdZOM.mjs → useOverlayTrigger-BS8c6XEz.mjs} +1 -1
  205. package/__chunks__/{useSelectableItem-D61t76J1.mjs → useSelectableItem-B8l2VAQ8.mjs} +2 -2
  206. package/__chunks__/{useSelectableList-UkBCcTuC.js → useSelectableList-CzTJAukw.js} +15 -0
  207. package/__chunks__/{useSelectableList-BdG5I7cy.mjs → useSelectableList-DsUuWr0P.mjs} +18 -3
  208. package/__chunks__/useTextField-CErFc3WZ.js +106 -0
  209. package/__chunks__/useTextField-Dd-YTxI4.mjs +107 -0
  210. package/__chunks__/useTriggerWidth-B-IM2wNY.js +132 -0
  211. package/__chunks__/useTriggerWidth-CAYuGPNq.mjs +133 -0
  212. package/__chunks__/{utilities-CaBPUKEB.js → utilities-BDABIMDb.js} +4 -0
  213. package/__chunks__/{utilities-DASknbaa.mjs → utilities-DpKIaDkW.mjs} +5 -1
  214. package/__chunks__/{utils-D4ddhsBL.mjs → utils-Dt6xdGol.mjs} +10 -2
  215. package/__chunks__/{utils-DIF5XAA2.js → utils-eHk7b-OB.js} +8 -0
  216. package/package.json +2 -2
  217. package/style.css +1609 -1445
  218. package/utilities/storybook.d.ts +1 -0
  219. package/utilities/storybook.d.ts.map +1 -1
@@ -0,0 +1,192 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
+ var __spreadValues = (a, b) => {
10
+ for (var prop in b || (b = {}))
11
+ if (__hasOwnProp.call(b, prop))
12
+ __defNormalProp(a, prop, b[prop]);
13
+ if (__getOwnPropSymbols)
14
+ for (var prop of __getOwnPropSymbols(b)) {
15
+ if (__propIsEnum.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ }
18
+ return a;
19
+ };
20
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21
+ const mergeProps = require("./mergeProps-DniMwM6P.js");
22
+ const filterDOMProps = require("./filterDOMProps-D3iOHP0H.js");
23
+ const useFocusWithin = require("./useFocusWithin-C1ioGWec.js");
24
+ const useLabel = require("./useLabel-t-N6anB8.js");
25
+ const useSelectableList = require("./useSelectableList-CzTJAukw.js");
26
+ const usePress = require("./usePress-DNETV97g.js");
27
+ const isVirtualEvent = require("./isVirtualEvent-DwoP1rNI.js");
28
+ const useFocusVisible = require("./useFocusVisible-PBQuklI8.js");
29
+ const useHover = require("./useHover-BIKwjrCT.js");
30
+ const useSelectableItem = require("./useSelectableItem-DpEX9QBc.js");
31
+ const $b1f0cad8af73213b$export$3585ede4d035bf14 = /* @__PURE__ */ new WeakMap();
32
+ function $b1f0cad8af73213b$var$normalizeKey(key) {
33
+ if (typeof key === "string") return key.replace(/\s*/g, "");
34
+ return "" + key;
35
+ }
36
+ function $b1f0cad8af73213b$export$9145995848b05025(state, itemKey) {
37
+ let data = $b1f0cad8af73213b$export$3585ede4d035bf14.get(state);
38
+ if (!data) throw new Error("Unknown list");
39
+ return `${data.id}-option-${$b1f0cad8af73213b$var$normalizeKey(itemKey)}`;
40
+ }
41
+ function $c132121280ec012d$export$50eacbbf140a3141(props, state, ref) {
42
+ let domProps = filterDOMProps.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
43
+ labelable: true
44
+ });
45
+ let selectionBehavior = props.selectionBehavior || "toggle";
46
+ let linkBehavior = props.linkBehavior || (selectionBehavior === "replace" ? "action" : "override");
47
+ if (selectionBehavior === "toggle" && linkBehavior === "action")
48
+ linkBehavior = "override";
49
+ let { listProps } = useSelectableList.$982254629710d113$export$b95089534ab7c1fd(__spreadProps(__spreadValues({}, props), {
50
+ ref,
51
+ selectionManager: state.selectionManager,
52
+ collection: state.collection,
53
+ disabledKeys: state.disabledKeys,
54
+ linkBehavior
55
+ }));
56
+ let { focusWithinProps } = useFocusWithin.$9ab94262bd0047c7$export$420e68273165f4ec({
57
+ onFocusWithin: props.onFocus,
58
+ onBlurWithin: props.onBlur,
59
+ onFocusWithinChange: props.onFocusChange
60
+ });
61
+ let id = mergeProps.$bdb11010cef70236$export$f680877a34711e37(props.id);
62
+ $b1f0cad8af73213b$export$3585ede4d035bf14.set(state, {
63
+ id,
64
+ shouldUseVirtualFocus: props.shouldUseVirtualFocus,
65
+ shouldSelectOnPressUp: props.shouldSelectOnPressUp,
66
+ shouldFocusOnHover: props.shouldFocusOnHover,
67
+ isVirtualized: props.isVirtualized,
68
+ onAction: props.onAction,
69
+ linkBehavior
70
+ });
71
+ let { labelProps, fieldProps } = useLabel.$d191a55c9702f145$export$8467354a121f1b9f(__spreadProps(__spreadValues({}, props), {
72
+ id,
73
+ // listbox is not an HTML input element so it
74
+ // shouldn't be labeled by a <label> element.
75
+ labelElementType: "span"
76
+ }));
77
+ return {
78
+ labelProps,
79
+ listBoxProps: mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(domProps, focusWithinProps, state.selectionManager.selectionMode === "multiple" ? {
80
+ "aria-multiselectable": "true"
81
+ } : {}, __spreadValues({
82
+ role: "listbox"
83
+ }, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(fieldProps, listProps)))
84
+ };
85
+ }
86
+ function $293f70390ea03370$export$497855f14858aa34(props, state, ref) {
87
+ var _item_props, _item_props1;
88
+ let { key } = props;
89
+ let data = $b1f0cad8af73213b$export$3585ede4d035bf14.get(state);
90
+ var _props_isDisabled;
91
+ let isDisabled = (_props_isDisabled = props.isDisabled) !== null && _props_isDisabled !== void 0 ? _props_isDisabled : state.selectionManager.isDisabled(key);
92
+ var _props_isSelected;
93
+ let isSelected = (_props_isSelected = props.isSelected) !== null && _props_isSelected !== void 0 ? _props_isSelected : state.selectionManager.isSelected(key);
94
+ var _props_shouldSelectOnPressUp;
95
+ let shouldSelectOnPressUp = (_props_shouldSelectOnPressUp = props.shouldSelectOnPressUp) !== null && _props_shouldSelectOnPressUp !== void 0 ? _props_shouldSelectOnPressUp : data === null || data === void 0 ? void 0 : data.shouldSelectOnPressUp;
96
+ var _props_shouldFocusOnHover;
97
+ let shouldFocusOnHover = (_props_shouldFocusOnHover = props.shouldFocusOnHover) !== null && _props_shouldFocusOnHover !== void 0 ? _props_shouldFocusOnHover : data === null || data === void 0 ? void 0 : data.shouldFocusOnHover;
98
+ var _props_shouldUseVirtualFocus;
99
+ let shouldUseVirtualFocus = (_props_shouldUseVirtualFocus = props.shouldUseVirtualFocus) !== null && _props_shouldUseVirtualFocus !== void 0 ? _props_shouldUseVirtualFocus : data === null || data === void 0 ? void 0 : data.shouldUseVirtualFocus;
100
+ var _props_isVirtualized;
101
+ let isVirtualized = (_props_isVirtualized = props.isVirtualized) !== null && _props_isVirtualized !== void 0 ? _props_isVirtualized : data === null || data === void 0 ? void 0 : data.isVirtualized;
102
+ let labelId = mergeProps.$bdb11010cef70236$export$b4cc09c592e8fdb8();
103
+ let descriptionId = mergeProps.$bdb11010cef70236$export$b4cc09c592e8fdb8();
104
+ let optionProps = {
105
+ role: "option",
106
+ "aria-disabled": isDisabled || void 0,
107
+ "aria-selected": state.selectionManager.selectionMode !== "none" ? isSelected : void 0
108
+ };
109
+ if (!(isVirtualEvent.$c87311424ea30a05$export$9ac100e40613ea10() && isVirtualEvent.$c87311424ea30a05$export$78551043582a6a98())) {
110
+ optionProps["aria-label"] = props["aria-label"];
111
+ optionProps["aria-labelledby"] = labelId;
112
+ optionProps["aria-describedby"] = descriptionId;
113
+ }
114
+ let item = state.collection.getItem(key);
115
+ if (isVirtualized) {
116
+ let index = Number(item === null || item === void 0 ? void 0 : item.index);
117
+ optionProps["aria-posinset"] = Number.isNaN(index) ? void 0 : index + 1;
118
+ optionProps["aria-setsize"] = useSelectableList.$453cc9f0df89c0a5$export$77d5aafae4e095b2(state.collection);
119
+ }
120
+ let onAction = (data === null || data === void 0 ? void 0 : data.onAction) ? () => {
121
+ var _data_onAction;
122
+ return data === null || data === void 0 ? void 0 : (_data_onAction = data.onAction) === null || _data_onAction === void 0 ? void 0 : _data_onAction.call(data, key);
123
+ } : void 0;
124
+ let { itemProps, isPressed, isFocused, hasAction, allowsSelection } = useSelectableItem.$880e95eb8b93ba9a$export$ecf600387e221c37({
125
+ selectionManager: state.selectionManager,
126
+ key,
127
+ ref,
128
+ shouldSelectOnPressUp,
129
+ allowsDifferentPressOrigin: shouldSelectOnPressUp && shouldFocusOnHover,
130
+ isVirtualized,
131
+ shouldUseVirtualFocus,
132
+ isDisabled,
133
+ onAction: onAction || (item === null || item === void 0 ? void 0 : (_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.onAction) ? mergeProps.$ff5963eb1fccf552$export$e08e3b67e392101e(item === null || item === void 0 ? void 0 : (_item_props1 = item.props) === null || _item_props1 === void 0 ? void 0 : _item_props1.onAction, onAction) : void 0,
134
+ linkBehavior: data === null || data === void 0 ? void 0 : data.linkBehavior
135
+ });
136
+ let { hoverProps } = useHover.$6179b936705e76d3$export$ae780daf29e6d456({
137
+ isDisabled: isDisabled || !shouldFocusOnHover,
138
+ onHoverStart() {
139
+ if (!useFocusVisible.$507fabe10e71c6fb$export$b9b3dfddab17db27()) {
140
+ state.selectionManager.setFocused(true);
141
+ state.selectionManager.setFocusedKey(key);
142
+ }
143
+ }
144
+ });
145
+ let domProps = filterDOMProps.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(item === null || item === void 0 ? void 0 : item.props);
146
+ delete domProps.id;
147
+ let linkProps = usePress.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18(item === null || item === void 0 ? void 0 : item.props);
148
+ return {
149
+ optionProps: __spreadProps(__spreadValues(__spreadValues({}, optionProps), mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(domProps, itemProps, hoverProps, linkProps)), {
150
+ id: $b1f0cad8af73213b$export$9145995848b05025(state, key)
151
+ }),
152
+ labelProps: {
153
+ id: labelId
154
+ },
155
+ descriptionProps: {
156
+ id: descriptionId
157
+ },
158
+ isFocused,
159
+ isFocusVisible: isFocused && useFocusVisible.$507fabe10e71c6fb$export$b9b3dfddab17db27(),
160
+ isSelected,
161
+ isDisabled,
162
+ isPressed,
163
+ allowsSelection,
164
+ hasAction
165
+ };
166
+ }
167
+ function $af383d3bef1cfdc9$export$c3f9f39876e4bc7(props) {
168
+ let { heading, "aria-label": ariaLabel } = props;
169
+ let headingId = mergeProps.$bdb11010cef70236$export$f680877a34711e37();
170
+ return {
171
+ itemProps: {
172
+ role: "presentation"
173
+ },
174
+ headingProps: heading ? {
175
+ // Techincally, listbox cannot contain headings according to ARIA.
176
+ // We hide the heading from assistive technology, using role="presentation",
177
+ // and only use it as a visual label for the nested group.
178
+ id: headingId,
179
+ role: "presentation"
180
+ } : {},
181
+ groupProps: {
182
+ role: "group",
183
+ "aria-label": ariaLabel,
184
+ "aria-labelledby": heading ? headingId : void 0
185
+ }
186
+ };
187
+ }
188
+ exports.$293f70390ea03370$export$497855f14858aa34 = $293f70390ea03370$export$497855f14858aa34;
189
+ exports.$af383d3bef1cfdc9$export$c3f9f39876e4bc7 = $af383d3bef1cfdc9$export$c3f9f39876e4bc7;
190
+ exports.$b1f0cad8af73213b$export$3585ede4d035bf14 = $b1f0cad8af73213b$export$3585ede4d035bf14;
191
+ exports.$b1f0cad8af73213b$export$9145995848b05025 = $b1f0cad8af73213b$export$9145995848b05025;
192
+ exports.$c132121280ec012d$export$50eacbbf140a3141 = $c132121280ec012d$export$50eacbbf140a3141;
@@ -0,0 +1,193 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ import { c as $bdb11010cef70236$export$f680877a34711e37, $ as $3ef42575df84b30b$export$9d1611c77c2fe928, b as $bdb11010cef70236$export$b4cc09c592e8fdb8, f as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./mergeProps-DSi85raC.mjs";
21
+ import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
22
+ import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusWithin-B-vQAW9V.mjs";
23
+ import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-D37VV43W.mjs";
24
+ import { $ as $982254629710d113$export$b95089534ab7c1fd, a as $453cc9f0df89c0a5$export$77d5aafae4e095b2 } from "./useSelectableList-DsUuWr0P.mjs";
25
+ import { b as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 } from "./usePress-Db4pSZfY.mjs";
26
+ import { c as $c87311424ea30a05$export$9ac100e40613ea10, d as $c87311424ea30a05$export$78551043582a6a98 } from "./isVirtualEvent-BPCuFO54.mjs";
27
+ import { b as $507fabe10e71c6fb$export$b9b3dfddab17db27 } from "./useFocusVisible-ng1Hn25t.mjs";
28
+ import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-BOYR4wqI.mjs";
29
+ import { $ as $880e95eb8b93ba9a$export$ecf600387e221c37 } from "./useSelectableItem-B8l2VAQ8.mjs";
30
+ const $b1f0cad8af73213b$export$3585ede4d035bf14 = /* @__PURE__ */ new WeakMap();
31
+ function $b1f0cad8af73213b$var$normalizeKey(key) {
32
+ if (typeof key === "string") return key.replace(/\s*/g, "");
33
+ return "" + key;
34
+ }
35
+ function $b1f0cad8af73213b$export$9145995848b05025(state, itemKey) {
36
+ let data = $b1f0cad8af73213b$export$3585ede4d035bf14.get(state);
37
+ if (!data) throw new Error("Unknown list");
38
+ return `${data.id}-option-${$b1f0cad8af73213b$var$normalizeKey(itemKey)}`;
39
+ }
40
+ function $c132121280ec012d$export$50eacbbf140a3141(props, state, ref) {
41
+ let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
42
+ labelable: true
43
+ });
44
+ let selectionBehavior = props.selectionBehavior || "toggle";
45
+ let linkBehavior = props.linkBehavior || (selectionBehavior === "replace" ? "action" : "override");
46
+ if (selectionBehavior === "toggle" && linkBehavior === "action")
47
+ linkBehavior = "override";
48
+ let { listProps } = $982254629710d113$export$b95089534ab7c1fd(__spreadProps(__spreadValues({}, props), {
49
+ ref,
50
+ selectionManager: state.selectionManager,
51
+ collection: state.collection,
52
+ disabledKeys: state.disabledKeys,
53
+ linkBehavior
54
+ }));
55
+ let { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({
56
+ onFocusWithin: props.onFocus,
57
+ onBlurWithin: props.onBlur,
58
+ onFocusWithinChange: props.onFocusChange
59
+ });
60
+ let id = $bdb11010cef70236$export$f680877a34711e37(props.id);
61
+ $b1f0cad8af73213b$export$3585ede4d035bf14.set(state, {
62
+ id,
63
+ shouldUseVirtualFocus: props.shouldUseVirtualFocus,
64
+ shouldSelectOnPressUp: props.shouldSelectOnPressUp,
65
+ shouldFocusOnHover: props.shouldFocusOnHover,
66
+ isVirtualized: props.isVirtualized,
67
+ onAction: props.onAction,
68
+ linkBehavior
69
+ });
70
+ let { labelProps, fieldProps } = $d191a55c9702f145$export$8467354a121f1b9f(__spreadProps(__spreadValues({}, props), {
71
+ id,
72
+ // listbox is not an HTML input element so it
73
+ // shouldn't be labeled by a <label> element.
74
+ labelElementType: "span"
75
+ }));
76
+ return {
77
+ labelProps,
78
+ listBoxProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, focusWithinProps, state.selectionManager.selectionMode === "multiple" ? {
79
+ "aria-multiselectable": "true"
80
+ } : {}, __spreadValues({
81
+ role: "listbox"
82
+ }, $3ef42575df84b30b$export$9d1611c77c2fe928(fieldProps, listProps)))
83
+ };
84
+ }
85
+ function $293f70390ea03370$export$497855f14858aa34(props, state, ref) {
86
+ var _item_props, _item_props1;
87
+ let { key } = props;
88
+ let data = $b1f0cad8af73213b$export$3585ede4d035bf14.get(state);
89
+ var _props_isDisabled;
90
+ let isDisabled = (_props_isDisabled = props.isDisabled) !== null && _props_isDisabled !== void 0 ? _props_isDisabled : state.selectionManager.isDisabled(key);
91
+ var _props_isSelected;
92
+ let isSelected = (_props_isSelected = props.isSelected) !== null && _props_isSelected !== void 0 ? _props_isSelected : state.selectionManager.isSelected(key);
93
+ var _props_shouldSelectOnPressUp;
94
+ let shouldSelectOnPressUp = (_props_shouldSelectOnPressUp = props.shouldSelectOnPressUp) !== null && _props_shouldSelectOnPressUp !== void 0 ? _props_shouldSelectOnPressUp : data === null || data === void 0 ? void 0 : data.shouldSelectOnPressUp;
95
+ var _props_shouldFocusOnHover;
96
+ let shouldFocusOnHover = (_props_shouldFocusOnHover = props.shouldFocusOnHover) !== null && _props_shouldFocusOnHover !== void 0 ? _props_shouldFocusOnHover : data === null || data === void 0 ? void 0 : data.shouldFocusOnHover;
97
+ var _props_shouldUseVirtualFocus;
98
+ let shouldUseVirtualFocus = (_props_shouldUseVirtualFocus = props.shouldUseVirtualFocus) !== null && _props_shouldUseVirtualFocus !== void 0 ? _props_shouldUseVirtualFocus : data === null || data === void 0 ? void 0 : data.shouldUseVirtualFocus;
99
+ var _props_isVirtualized;
100
+ let isVirtualized = (_props_isVirtualized = props.isVirtualized) !== null && _props_isVirtualized !== void 0 ? _props_isVirtualized : data === null || data === void 0 ? void 0 : data.isVirtualized;
101
+ let labelId = $bdb11010cef70236$export$b4cc09c592e8fdb8();
102
+ let descriptionId = $bdb11010cef70236$export$b4cc09c592e8fdb8();
103
+ let optionProps = {
104
+ role: "option",
105
+ "aria-disabled": isDisabled || void 0,
106
+ "aria-selected": state.selectionManager.selectionMode !== "none" ? isSelected : void 0
107
+ };
108
+ if (!($c87311424ea30a05$export$9ac100e40613ea10() && $c87311424ea30a05$export$78551043582a6a98())) {
109
+ optionProps["aria-label"] = props["aria-label"];
110
+ optionProps["aria-labelledby"] = labelId;
111
+ optionProps["aria-describedby"] = descriptionId;
112
+ }
113
+ let item = state.collection.getItem(key);
114
+ if (isVirtualized) {
115
+ let index = Number(item === null || item === void 0 ? void 0 : item.index);
116
+ optionProps["aria-posinset"] = Number.isNaN(index) ? void 0 : index + 1;
117
+ optionProps["aria-setsize"] = $453cc9f0df89c0a5$export$77d5aafae4e095b2(state.collection);
118
+ }
119
+ let onAction = (data === null || data === void 0 ? void 0 : data.onAction) ? () => {
120
+ var _data_onAction;
121
+ return data === null || data === void 0 ? void 0 : (_data_onAction = data.onAction) === null || _data_onAction === void 0 ? void 0 : _data_onAction.call(data, key);
122
+ } : void 0;
123
+ let { itemProps, isPressed, isFocused, hasAction, allowsSelection } = $880e95eb8b93ba9a$export$ecf600387e221c37({
124
+ selectionManager: state.selectionManager,
125
+ key,
126
+ ref,
127
+ shouldSelectOnPressUp,
128
+ allowsDifferentPressOrigin: shouldSelectOnPressUp && shouldFocusOnHover,
129
+ isVirtualized,
130
+ shouldUseVirtualFocus,
131
+ isDisabled,
132
+ onAction: onAction || (item === null || item === void 0 ? void 0 : (_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.onAction) ? $ff5963eb1fccf552$export$e08e3b67e392101e(item === null || item === void 0 ? void 0 : (_item_props1 = item.props) === null || _item_props1 === void 0 ? void 0 : _item_props1.onAction, onAction) : void 0,
133
+ linkBehavior: data === null || data === void 0 ? void 0 : data.linkBehavior
134
+ });
135
+ let { hoverProps } = $6179b936705e76d3$export$ae780daf29e6d456({
136
+ isDisabled: isDisabled || !shouldFocusOnHover,
137
+ onHoverStart() {
138
+ if (!$507fabe10e71c6fb$export$b9b3dfddab17db27()) {
139
+ state.selectionManager.setFocused(true);
140
+ state.selectionManager.setFocusedKey(key);
141
+ }
142
+ }
143
+ });
144
+ let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(item === null || item === void 0 ? void 0 : item.props);
145
+ delete domProps.id;
146
+ let linkProps = $ea8dcbcb9ea1b556$export$7e924b3091a3bd18(item === null || item === void 0 ? void 0 : item.props);
147
+ return {
148
+ optionProps: __spreadProps(__spreadValues(__spreadValues({}, optionProps), $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, itemProps, hoverProps, linkProps)), {
149
+ id: $b1f0cad8af73213b$export$9145995848b05025(state, key)
150
+ }),
151
+ labelProps: {
152
+ id: labelId
153
+ },
154
+ descriptionProps: {
155
+ id: descriptionId
156
+ },
157
+ isFocused,
158
+ isFocusVisible: isFocused && $507fabe10e71c6fb$export$b9b3dfddab17db27(),
159
+ isSelected,
160
+ isDisabled,
161
+ isPressed,
162
+ allowsSelection,
163
+ hasAction
164
+ };
165
+ }
166
+ function $af383d3bef1cfdc9$export$c3f9f39876e4bc7(props) {
167
+ let { heading, "aria-label": ariaLabel } = props;
168
+ let headingId = $bdb11010cef70236$export$f680877a34711e37();
169
+ return {
170
+ itemProps: {
171
+ role: "presentation"
172
+ },
173
+ headingProps: heading ? {
174
+ // Techincally, listbox cannot contain headings according to ARIA.
175
+ // We hide the heading from assistive technology, using role="presentation",
176
+ // and only use it as a visual label for the nested group.
177
+ id: headingId,
178
+ role: "presentation"
179
+ } : {},
180
+ groupProps: {
181
+ role: "group",
182
+ "aria-label": ariaLabel,
183
+ "aria-labelledby": heading ? headingId : void 0
184
+ }
185
+ };
186
+ }
187
+ export {
188
+ $293f70390ea03370$export$497855f14858aa34 as $,
189
+ $af383d3bef1cfdc9$export$c3f9f39876e4bc7 as a,
190
+ $c132121280ec012d$export$50eacbbf140a3141 as b,
191
+ $b1f0cad8af73213b$export$3585ede4d035bf14 as c,
192
+ $b1f0cad8af73213b$export$9145995848b05025 as d
193
+ };
@@ -4,10 +4,6 @@ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
4
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
6
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
8
- var __typeError = (msg) => {
9
- throw TypeError(msg);
10
- };
11
7
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
8
  var __spreadValues = (a, b) => {
13
9
  for (var prop in b || (b = {}))
@@ -21,92 +17,10 @@ var __spreadValues = (a, b) => {
21
17
  return a;
22
18
  };
23
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
- var __await = function(promise, isYieldStar) {
25
- this[0] = promise;
26
- this[1] = isYieldStar;
27
- };
28
- var __yieldStar = (value) => {
29
- var obj = value[__knownSymbol("asyncIterator")], isAwait = false, method, it = {};
30
- if (obj == null) {
31
- obj = value[__knownSymbol("iterator")]();
32
- method = (k) => it[k] = (x) => obj[k](x);
33
- } else {
34
- obj = obj.call(value);
35
- method = (k) => it[k] = (v) => {
36
- if (isAwait) {
37
- isAwait = false;
38
- if (k === "throw") throw v;
39
- return v;
40
- }
41
- isAwait = true;
42
- return {
43
- done: false,
44
- value: new __await(new Promise((resolve) => {
45
- var x = obj[k](v);
46
- if (!(x instanceof Object)) __typeError("Object expected");
47
- resolve(x);
48
- }), 1)
49
- };
50
- };
51
- }
52
- return it[__knownSymbol("iterator")] = () => it, method("next"), "throw" in obj ? method("throw") : it.throw = (x) => {
53
- throw x;
54
- }, "return" in obj && method("return"), it;
55
- };
56
- import React__default, { useState, useRef, useEffect } from "react";
57
- import { c as $c5a24bc478652b5f$export$1005530eda016c13 } from "./SelectionManager-DCO_d3m1.mjs";
58
20
  import { c as $bdb11010cef70236$export$f680877a34711e37 } from "./mergeProps-DSi85raC.mjs";
59
21
  import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-BHXy3Wtu.mjs";
60
- import { c as $8a26561d2877236e$export$c24ed0104d07eab9 } from "./useSelectableItem-D61t76J1.mjs";
61
- import { $ as $628037886ba31236$export$f9d5c8beee7d008d } from "./useOverlayTrigger-DDcXdZOM.mjs";
62
- import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
63
- import { $ as $9daab02d461809db$export$683480f191c0e3ea } from "./useResizeObserver-Dyb4wvuA.mjs";
64
- function $9fc4852771d079eb$var$Section(props) {
65
- return null;
66
- }
67
- $9fc4852771d079eb$var$Section.getCollectionNode = function* getCollectionNode(props) {
68
- let { children, title, items } = props;
69
- yield {
70
- type: "section",
71
- props,
72
- hasChildNodes: true,
73
- rendered: title,
74
- "aria-label": props["aria-label"],
75
- *childNodes() {
76
- if (typeof children === "function") {
77
- if (!items) throw new Error("props.children was a function but props.items is missing");
78
- for (let item of items) yield {
79
- type: "item",
80
- value: item,
81
- renderer: children
82
- };
83
- } else {
84
- let items2 = [];
85
- React__default.Children.forEach(children, (child) => {
86
- items2.push({
87
- type: "item",
88
- element: child
89
- });
90
- });
91
- yield* __yieldStar(items2);
92
- }
93
- }
94
- };
95
- };
96
- let $9fc4852771d079eb$export$6e2c8f0811a474ce = $9fc4852771d079eb$var$Section;
97
- const $453cc9f0df89c0a5$var$cache = /* @__PURE__ */ new WeakMap();
98
- function $453cc9f0df89c0a5$export$77d5aafae4e095b2(collection) {
99
- let count = $453cc9f0df89c0a5$var$cache.get(collection);
100
- if (count != null) return count;
101
- let counter = 0;
102
- let countItems = (items) => {
103
- for (let item of items) if (item.type === "section") countItems($c5a24bc478652b5f$export$1005530eda016c13(item, collection));
104
- else counter++;
105
- };
106
- countItems(collection);
107
- $453cc9f0df89c0a5$var$cache.set(collection, counter);
108
- return counter;
109
- }
22
+ import { c as $8a26561d2877236e$export$c24ed0104d07eab9 } from "./useSelectableItem-B8l2VAQ8.mjs";
23
+ import { $ as $628037886ba31236$export$f9d5c8beee7d008d } from "./useOverlayTrigger-BS8c6XEz.mjs";
110
24
  var $c0398ad35c3639b7$exports = {};
111
25
  $c0398ad35c3639b7$exports = {
112
26
  "longPressMessage": `اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة`
@@ -345,47 +259,6 @@ function $168583247155ddda$export$dc9c12ed27dd1b49(props, state, ref) {
345
259
  })
346
260
  };
347
261
  }
348
- function $f4b273590fab9f93$export$52210f68a14655d0(props) {
349
- let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
350
- labelable: true
351
- });
352
- let ariaOrientation;
353
- if (props.orientation === "vertical") ariaOrientation = "vertical";
354
- if (props.elementType !== "hr") return {
355
- separatorProps: __spreadProps(__spreadValues({}, domProps), {
356
- role: "separator",
357
- "aria-orientation": ariaOrientation
358
- })
359
- };
360
- return {
361
- separatorProps: domProps
362
- };
363
- }
364
- function useTriggerWidth(triggerRef) {
365
- const [triggerWidth, setTriggerWidth] = useState(null);
366
- $9daab02d461809db$export$683480f191c0e3ea({
367
- ref: triggerRef,
368
- onResize: () => {
369
- if (triggerRef.current) {
370
- const { width } = triggerRef.current.getBoundingClientRect();
371
- setTriggerWidth(width);
372
- }
373
- }
374
- });
375
- const initialRef = useRef(false);
376
- useEffect(() => {
377
- if (triggerRef.current && !initialRef.current) {
378
- const { width } = triggerRef.current.getBoundingClientRect();
379
- setTriggerWidth(width);
380
- initialRef.current = true;
381
- }
382
- }, [triggerRef]);
383
- return triggerWidth;
384
- }
385
262
  export {
386
- $453cc9f0df89c0a5$export$77d5aafae4e095b2 as $,
387
- $168583247155ddda$export$dc9c12ed27dd1b49 as a,
388
- $9fc4852771d079eb$export$6e2c8f0811a474ce as b,
389
- $f4b273590fab9f93$export$52210f68a14655d0 as c,
390
- useTriggerWidth as u
263
+ $168583247155ddda$export$dc9c12ed27dd1b49 as $
391
264
  };