@midas-ds/components 10.1.1 → 10.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (383) hide show
  1. package/AccordionItem-BGWiWjxA.cjs +1 -0
  2. package/AccordionItem-ChHpW8EW.js +320 -0
  3. package/BadgeContainer-DM8TdyMT.js +37 -0
  4. package/BadgeContainer-I1XA3OCl.cjs +1 -0
  5. package/Breadcrumbs-CwDUNIqF.js +250 -0
  6. package/Breadcrumbs-DtjJ1UmU.cjs +1 -0
  7. package/Button-BoJl6JGM.cjs +1 -0
  8. package/Button-Csih3v23.js +38 -0
  9. package/Button-DjBChs7s.js +340 -0
  10. package/Button-htW9qIsS.cjs +1 -0
  11. package/Button.module-DEQtBYe5.cjs +1 -0
  12. package/Button.module-tti8HGxs.js +14 -0
  13. package/ButtonGroup-DUqW5dzM.cjs +1 -0
  14. package/ButtonGroup-DvVvear6.js +22 -0
  15. package/CHANGELOG.md +68 -0
  16. package/Card-0G0mj9q5.cjs +1 -0
  17. package/Card-yrtGzt70.js +131 -0
  18. package/CharacterCounter-BL_nZHya.js +22 -0
  19. package/CharacterCounter-CHcTDHO-.cjs +1 -0
  20. package/Checkbox-5HINZdGu.js +263 -0
  21. package/Checkbox-DqcPg5hz.cjs +1 -0
  22. package/CheckboxGroup-BBrSMuDY.cjs +1 -0
  23. package/CheckboxGroup-CLgixk2p.js +243 -0
  24. package/Collection-BIDsXNhi.cjs +1 -0
  25. package/Collection-Brgjpkne.js +576 -0
  26. package/ColorSchemeSwitch-BpzQ7g0b.js +106 -0
  27. package/ColorSchemeSwitch-C-qWuqkU.cjs +16 -0
  28. package/ComboBox-CVDyp2a-.js +1379 -0
  29. package/ComboBox-CWJUg9Xx.cjs +1 -0
  30. package/DateField-DeDhiYnW.cjs +1 -0
  31. package/DateField-DhU3q-rG.js +47 -0
  32. package/DateInputDivider-ADvOavHw.cjs +1 -0
  33. package/DateInputDivider-CF4xWsMT.js +2904 -0
  34. package/DateRangePicker-BsAHhy99.cjs +6 -0
  35. package/DateRangePicker-ziD1_k1W.js +881 -0
  36. package/Dialog-B8GTYbvu.cjs +1 -0
  37. package/Dialog-BOrYdX50.cjs +1 -0
  38. package/Dialog-CXNu48AC.js +208 -0
  39. package/Dialog-D14MbJ7o.js +1633 -0
  40. package/DragAndDrop-DNth776R.cjs +1 -0
  41. package/DragAndDrop-o3ruz_SR.js +60 -0
  42. package/Dropdown-CJ6My6EI.cjs +6 -0
  43. package/Dropdown-Df58j43I.js +84 -0
  44. package/FieldError-CAcjosk_.js +46 -0
  45. package/FieldError-CKBb2-mp.cjs +1 -0
  46. package/FileUpload-CxCOtyB9.cjs +2 -0
  47. package/FileUpload-D6qoEAjn.js +2373 -0
  48. package/FocusScope-5c9SVBcR.cjs +1 -0
  49. package/FocusScope-CxkURfoc.js +625 -0
  50. package/Form-BuOomA4T.cjs +1 -0
  51. package/Form-CXcEMuBf.js +5 -0
  52. package/Grid--OhtgCo6.js +27 -0
  53. package/Grid-DVQtOcu9.cjs +1 -0
  54. package/GridItem-DlbSdRmB.js +246 -0
  55. package/GridItem-XgHmZWXY.cjs +1 -0
  56. package/Group-B6EslsHZ.js +44 -0
  57. package/Group-CgiqQHH1.cjs +1 -0
  58. package/Heading-BFtiin0g.js +46 -0
  59. package/Heading-mHhCbGjY.cjs +1 -0
  60. package/Hidden-BxRZGdEW.cjs +1 -0
  61. package/Hidden-C9KWUR7b.js +34 -0
  62. package/InfoBanner-BLM-TJJ6.js +83 -0
  63. package/InfoBanner-C2kTIsrB.cjs +1 -0
  64. package/Input-BTzwcf72.js +41 -0
  65. package/Input-DKSAYvsw.cjs +1 -0
  66. package/Label-7Ybb99CE.cjs +1 -0
  67. package/Label-BwJrdqEE.js +70 -0
  68. package/Layout-1g6bMH62.cjs +16 -0
  69. package/Layout-Ey8flY7E.js +468 -0
  70. package/Link-B88l_oaE.cjs +6 -0
  71. package/Link-BQhauBuw.cjs +1 -0
  72. package/Link-DX5BbBnn.js +59 -0
  73. package/Link-yNO2-sqx.js +71 -0
  74. package/LinkButton-CBpGLETx.cjs +6 -0
  75. package/LinkButton-o6uS1XsR.js +69 -0
  76. package/ListBox-DP9M4H6R.cjs +1 -0
  77. package/ListBox-GnVK_Pdq.js +529 -0
  78. package/ListBoxButton-DPBrtXyv.cjs +1 -0
  79. package/ListBoxButton-D_J3jlP0.js +15 -0
  80. package/ListBoxSection-BGaigBnG.cjs +1 -0
  81. package/ListBoxSection-C0BGnpB4.js +1058 -0
  82. package/ListKeyboardDelegate-DNI8GQtX.js +167 -0
  83. package/ListKeyboardDelegate-DTg9h4v6.cjs +1 -0
  84. package/Logo-BIrOEINM.js +133 -0
  85. package/Logo-DT2_2O43.cjs +1 -0
  86. package/OverlayArrow-CDLXPTew.js +506 -0
  87. package/OverlayArrow-D75k-EMl.cjs +1 -0
  88. package/Popover-BGGXeD54.js +38 -0
  89. package/Popover-CqNWzPf-.cjs +1 -0
  90. package/ProgressBar-DMSg-Prr.js +53 -0
  91. package/ProgressBar-Jbg28j2a.cjs +1 -0
  92. package/RSPContexts-BW2SEIqe.js +11 -0
  93. package/RSPContexts-D8hmBfGm.cjs +1 -0
  94. package/Radio-BwqrdhQE.cjs +1 -0
  95. package/Radio-Cz29wPXd.js +311 -0
  96. package/RangeCalendar-BehUaydF.cjs +11 -0
  97. package/RangeCalendar-RAlAHlNL.js +1683 -0
  98. package/SearchField-CxMwDeUM.cjs +6 -0
  99. package/SearchField-IlvZ3Kh6.js +362 -0
  100. package/Select-2q1iSzAX.cjs +1 -0
  101. package/Select-BVQZtoi9.js +646 -0
  102. package/SelectionManager-B4ORduja.js +1032 -0
  103. package/SelectionManager-CwYux2h3.cjs +1 -0
  104. package/Separator-Cu9fYKUM.js +59 -0
  105. package/Separator-DECIYLtZ.cjs +1 -0
  106. package/Skeleton-BAwbfKBW.cjs +1 -0
  107. package/Skeleton-BePDRmrO.js +40 -0
  108. package/Spinner-D31SXm-U.js +41 -0
  109. package/Spinner-P35rvvsl.cjs +6 -0
  110. package/Table-B40CGLT-.cjs +16 -0
  111. package/Table-F4oYBtUM.js +2447 -0
  112. package/Tabs-B4oZJkZG.js +404 -0
  113. package/Tabs-DA2qXhzb.cjs +1 -0
  114. package/Tag-DPAGmcMK.cjs +1 -0
  115. package/Tag-Du7GvSv2.js +745 -0
  116. package/Text-3MNwRMpI.cjs +1 -0
  117. package/Text-B2K-BJKQ.cjs +1 -0
  118. package/Text-BoXuUVVH.js +15 -0
  119. package/Text-jWWg0B20.js +32 -0
  120. package/TextArea-C7JZ_pQd.cjs +1 -0
  121. package/TextArea-XeBCSyzl.js +191 -0
  122. package/TextField-BgNdhZi_.cjs +1 -0
  123. package/TextField-C-hTPukq.js +119 -0
  124. package/TextField.module-BcpPBWnD.js +13 -0
  125. package/TextField.module-Dw5Rtn9y.cjs +1 -0
  126. package/Toast-AbDA1BOs.cjs +1 -0
  127. package/Toast-Btg21Xge.js +989 -0
  128. package/ToggleButtonGroup-B5yz1tm2.js +210 -0
  129. package/ToggleButtonGroup-BFDoj0P6.cjs +1 -0
  130. package/Tooltip-CMLs7WMw.js +283 -0
  131. package/Tooltip-DeBuBKhS.cjs +1 -0
  132. package/VisuallyHidden-CLWHbz2n.cjs +1 -0
  133. package/VisuallyHidden-ZCYf65q4.js +40 -0
  134. package/accordion/index.cjs +1 -0
  135. package/accordion/index.js +5 -0
  136. package/arrow-right-Dg8sttFO.js +14 -0
  137. package/arrow-right-QJ2gXPKQ.cjs +6 -0
  138. package/assets/AccordionItem.css +1 -0
  139. package/assets/BadgeContainer.css +1 -0
  140. package/assets/Breadcrumbs.css +1 -0
  141. package/assets/Button.css +1 -0
  142. package/assets/ButtonGroup.css +1 -0
  143. package/assets/Card.css +1 -0
  144. package/assets/CharacterCounter.css +1 -0
  145. package/assets/Checkbox.css +1 -0
  146. package/assets/ColorSchemeSwitch.css +1 -0
  147. package/assets/ComboBox.css +1 -0
  148. package/assets/DateField.css +1 -0
  149. package/assets/DateInputDivider.css +1 -0
  150. package/assets/DateRangePicker.css +1 -0
  151. package/assets/Dialog.css +1 -0
  152. package/assets/Dropdown.css +1 -0
  153. package/assets/FieldError.css +1 -0
  154. package/assets/FileUpload.css +1 -0
  155. package/assets/GridItem.css +1 -0
  156. package/assets/Heading.css +1 -0
  157. package/assets/InfoBanner.css +1 -0
  158. package/assets/Label.css +1 -0
  159. package/assets/Layout.css +1 -0
  160. package/assets/Link.css +1 -0
  161. package/assets/LinkButton.css +1 -0
  162. package/assets/ListBoxSection.css +1 -0
  163. package/assets/Logo.css +1 -0
  164. package/assets/Popover.css +1 -0
  165. package/assets/ProgressBar.css +1 -0
  166. package/assets/Radio.css +1 -0
  167. package/assets/RangeCalendar.css +1 -0
  168. package/assets/SearchField.css +1 -0
  169. package/assets/Select.css +1 -0
  170. package/assets/Skeleton.css +1 -0
  171. package/assets/Spinner.css +1 -0
  172. package/assets/Table.css +1 -0
  173. package/assets/Tabs.css +1 -0
  174. package/assets/Tag.css +1 -0
  175. package/assets/Text.css +1 -0
  176. package/assets/TextField.css +1 -0
  177. package/assets/Toast.css +1 -0
  178. package/assets/ToggleButtonGroup.css +1 -0
  179. package/assets/Tooltip.css +1 -0
  180. package/badge/index.cjs +1 -0
  181. package/badge/index.js +5 -0
  182. package/breadcrumbs/index.cjs +1 -0
  183. package/breadcrumbs/index.js +4 -0
  184. package/button/index.cjs +1 -0
  185. package/button/index.js +6 -0
  186. package/calendar/CalendarHeader.d.ts +2 -1
  187. package/calendar/index.cjs +1 -0
  188. package/calendar/index.js +5 -0
  189. package/card/index.cjs +1 -0
  190. package/card/index.js +10 -0
  191. package/character-counter/index.cjs +1 -0
  192. package/character-counter/index.js +4 -0
  193. package/check-CLF6Yxza.js +11 -0
  194. package/check-D_KoootC.cjs +6 -0
  195. package/checkbox/Checkbox.d.ts +2 -2
  196. package/checkbox/CheckboxGroup.d.ts +8 -8
  197. package/checkbox/CheckboxGroupFieldError.d.ts +8 -0
  198. package/checkbox/CheckboxGroupItem.d.ts +3 -0
  199. package/checkbox/CheckboxInner.d.ts +2 -0
  200. package/checkbox/SingleCheckbox.d.ts +3 -0
  201. package/checkbox/context.d.ts +3 -0
  202. package/checkbox/index.cjs +1 -0
  203. package/checkbox/index.d.ts +2 -1
  204. package/checkbox/index.js +6 -0
  205. package/checkbox/intl/translations.json.d.ts +35 -0
  206. package/checkbox/types.d.ts +14 -0
  207. package/checkbox/useSelectAll.d.ts +7 -0
  208. package/chevron-down-Cd1bkzXT.js +13 -0
  209. package/chevron-down-jl83cllc.cjs +6 -0
  210. package/circle-check-B9HYcH7Z.js +26 -0
  211. package/circle-check-BGo8gML8.cjs +11 -0
  212. package/clsx-C11secjj.cjs +1 -0
  213. package/clsx-OuTLNxxd.js +16 -0
  214. package/color-scheme-switch/index.cjs +1 -0
  215. package/color-scheme-switch/index.js +4 -0
  216. package/combobox/ComboBox.d.ts +3 -1
  217. package/combobox/index.cjs +1 -0
  218. package/combobox/index.js +7 -0
  219. package/common/types.d.ts +2 -0
  220. package/context-C81gPYvC.js +80 -0
  221. package/context-DjwhtgxQ.cjs +1 -0
  222. package/createLucideIcon-Cg_wkoIA.cjs +21 -0
  223. package/createLucideIcon-DeWljiyi.js +79 -0
  224. package/date-field/DateField.d.ts +3 -0
  225. package/date-field/index.cjs +1 -0
  226. package/date-field/index.js +8 -0
  227. package/date-picker/DatePicker.d.ts +3 -0
  228. package/date-picker/DateRangePicker.d.ts +3 -0
  229. package/date-picker/index.cjs +1 -0
  230. package/date-picker/index.js +5 -0
  231. package/dropdown/index.cjs +1 -0
  232. package/dropdown/index.js +5 -0
  233. package/field-error/FieldError.d.ts +4 -1
  234. package/field-error/index.cjs +1 -0
  235. package/field-error/index.js +4 -0
  236. package/file-upload/FileUpload.d.ts +3 -0
  237. package/file-upload/index.cjs +1 -0
  238. package/file-upload/index.js +4 -0
  239. package/filterDOMProps-BS2lrgFA.cjs +1 -0
  240. package/filterDOMProps-D6KHYVBX.js +24 -0
  241. package/getScrollParent-BhFcYrwL.js +9 -0
  242. package/getScrollParent-DDJu9WHU.cjs +1 -0
  243. package/grid/Grid.d.ts +15 -4
  244. package/grid/GridItem.d.ts +31 -2
  245. package/grid/index.cjs +1 -0
  246. package/grid/index.d.ts +2 -2
  247. package/grid/index.js +8 -0
  248. package/heading/index.cjs +1 -0
  249. package/heading/index.js +4 -0
  250. package/index-CGRFP4CC.js +120 -0
  251. package/index-Dsz3aiWt.cjs +17 -0
  252. package/index.cjs +1 -169
  253. package/index.d.ts +1 -1
  254. package/index.js +129 -29979
  255. package/inertValue-B3AFhVG4.cjs +1 -0
  256. package/inertValue-B7loUihk.js +8 -0
  257. package/info-BZwphdye.js +15 -0
  258. package/info-CIEIENo6.cjs +6 -0
  259. package/info-banner/index.cjs +1 -0
  260. package/info-banner/index.js +4 -0
  261. package/label/InfoPopover.d.ts +9 -0
  262. package/label/LabelWrapper.d.ts +11 -0
  263. package/label/index.cjs +1 -0
  264. package/label/index.d.ts +1 -0
  265. package/label/index.js +4 -0
  266. package/layout/index.cjs +1 -0
  267. package/layout/index.js +8 -0
  268. package/link/index.cjs +1 -0
  269. package/link/index.js +6 -0
  270. package/link-button/index.cjs +1 -0
  271. package/link-button/index.js +6 -0
  272. package/list-box/index.cjs +1 -0
  273. package/list-box/index.js +9 -0
  274. package/logo/index.cjs +1 -0
  275. package/logo/index.js +4 -0
  276. package/modal/index.cjs +1 -0
  277. package/modal/index.js +6 -0
  278. package/number-BE8InLgI.js +6 -0
  279. package/number-E0x3H9cL.cjs +1 -0
  280. package/package.json +4 -4
  281. package/popover/Popover.d.ts +7 -0
  282. package/popover/index.cjs +1 -0
  283. package/popover/index.d.ts +1 -0
  284. package/popover/index.js +4 -0
  285. package/progress-bar/index.cjs +1 -0
  286. package/progress-bar/index.js +4 -0
  287. package/radio/Radio.d.ts +3 -0
  288. package/radio/index.cjs +1 -0
  289. package/radio/index.js +5 -0
  290. package/scrollIntoView-C8doLzDd.cjs +1 -0
  291. package/scrollIntoView-Hwb_aaNf.js +87 -0
  292. package/search-field/index.cjs +1 -0
  293. package/search-field/index.js +4 -0
  294. package/select/index.cjs +1 -0
  295. package/select/index.js +4 -0
  296. package/skeleton/Skeleton.d.ts +5 -0
  297. package/skeleton/index.cjs +1 -0
  298. package/skeleton/index.js +4 -0
  299. package/spinner/index.cjs +1 -0
  300. package/spinner/index.js +4 -0
  301. package/square-arrow-out-up-right-BkyqV2PN.js +15 -0
  302. package/square-arrow-out-up-right-V4Gd08uI.cjs +6 -0
  303. package/table/Table.d.ts +7 -1
  304. package/table/index.cjs +1 -0
  305. package/table/index.js +9 -0
  306. package/tabs/index.cjs +1 -0
  307. package/tabs/index.js +4 -0
  308. package/tag/index.cjs +1 -0
  309. package/tag/index.js +5 -0
  310. package/text/index.cjs +1 -0
  311. package/text/index.js +4 -0
  312. package/textfield/TextFieldBase.d.ts +2 -0
  313. package/textfield/index.cjs +1 -0
  314. package/textfield/index.js +7 -0
  315. package/theme/index.cjs +1 -0
  316. package/theme/index.d.ts +4 -0
  317. package/{theme.js → theme/index.js} +2 -2
  318. package/theme/tokens.d.ts +10 -0
  319. package/toast/index.cjs +1 -0
  320. package/toast/index.js +9 -0
  321. package/toggle-button/index.cjs +1 -0
  322. package/toggle-button/index.js +5 -0
  323. package/tokens-p6pg1Cea.cjs +1 -0
  324. package/{tokens-C0U7hdoO.js → tokens-xp-7KMK7.js} +18 -8
  325. package/tooltip/index.cjs +1 -0
  326. package/tooltip/index.js +5 -0
  327. package/triangle-alert-DJW8U7jL.cjs +6 -0
  328. package/triangle-alert-wxyxspAl.js +21 -0
  329. package/useButton-B8dB9sot.js +47 -0
  330. package/useButton-cpNi-fY4.cjs +1 -0
  331. package/useControlledState-D0L6S_5r.cjs +1 -0
  332. package/useControlledState-u436Wbp1.js +30 -0
  333. package/useDateFormatter-CnxoJ4jF.cjs +1 -0
  334. package/useDateFormatter-EHm4auIg.js +1571 -0
  335. package/useEvent-DxBxMX2V.cjs +1 -0
  336. package/useEvent-IsD2Awnh.js +21 -0
  337. package/useField-CXKYU74k.cjs +1 -0
  338. package/useField-DvpGZkw_.js +35 -0
  339. package/useFilter-BTgDWHVx.cjs +1 -0
  340. package/useFilter-CUq74PQ2.js +35 -0
  341. package/useFocusRing-CbImDrwF.cjs +1 -0
  342. package/useFocusRing-XnR3cZjO.js +82 -0
  343. package/useFocusable-C8uh8K4g.js +125 -0
  344. package/useFocusable-NUVSFcRC.cjs +1 -0
  345. package/useFormValidation-BIGzfO9h.js +215 -0
  346. package/useFormValidation-ClximP89.cjs +1 -0
  347. package/useHasTabbableChild-C-1mZUQe.js +34 -0
  348. package/useHasTabbableChild-DCBTulUQ.cjs +1 -0
  349. package/useHighlightSelectionDescription-CnBDT86u.js +567 -0
  350. package/useHighlightSelectionDescription-CzYucm61.cjs +1 -0
  351. package/useHover-DjIHtjGN.js +490 -0
  352. package/useHover-_mv5J4_q.cjs +1 -0
  353. package/useLabels-BDwkBYbE.js +17 -0
  354. package/useLabels-BLOfc6Y-.cjs +1 -0
  355. package/useListState-Bx8u4IFG.cjs +1 -0
  356. package/useListState-CrZFZffI.js +132 -0
  357. package/useLocalizedStringFormatter-BKoxGZf1.js +96 -0
  358. package/useLocalizedStringFormatter-BsxLt89S.cjs +1 -0
  359. package/useLocalizedStringFormatter-D3JQyjb4.js +21 -0
  360. package/useLocalizedStringFormatter-ioacM-Yt.cjs +1 -0
  361. package/useObserveElement-BdI4zgd7.js +27 -0
  362. package/useObserveElement-MhzEsCkX.cjs +1 -0
  363. package/usePress-0AjDbW9R.cjs +7 -0
  364. package/usePress-CNjmDzap.js +542 -0
  365. package/useSingleSelectListState-0AGHxvy3.js +34 -0
  366. package/useSingleSelectListState-Cl3KV5E1.cjs +1 -0
  367. package/useTextField--czJtyNd.cjs +1 -0
  368. package/useTextField-Cw-33OP_.js +86 -0
  369. package/useToggleState-Bz5rAf4C.js +18 -0
  370. package/useToggleState-DoIkSQdj.cjs +1 -0
  371. package/useUpdateEffect-C5YQs_1w.cjs +1 -0
  372. package/useUpdateEffect-CCDx8D4X.js +13 -0
  373. package/utils-BNtZbAib.cjs +1 -0
  374. package/utils-DIMfEPAt.js +308 -0
  375. package/x-H8Zrx8-x.cjs +6 -0
  376. package/x-JK7i-TQC.js +14 -0
  377. package/flex/Flex.d.ts +0 -17
  378. package/flex/FlexItem.d.ts +0 -15
  379. package/flex/index.d.ts +0 -2
  380. package/index.css +0 -1
  381. package/theme.cjs +0 -1
  382. package/tokens-COoF1t17.cjs +0 -1
  383. /package/{global.css → assets/global.css} +0 -0
@@ -0,0 +1,542 @@
1
+ import { w as Ee, u as me, t as V, x as Ke, v as oe, y as le, d as O, b as Se, h as xe, i as we, g as p, f as d, z as ke, A as q, B as J, a as G } from "./useHover-DjIHtjGN.js";
2
+ import { d as _e, e as Oe } from "./useFocusable-C8uh8K4g.js";
3
+ import fe, { useMemo as ce, createContext as Me, useContext as ue, useState as Ce, useRef as Ae, useEffect as Q } from "react";
4
+ import { f as k, c as de, n as Ie } from "./utils-DIMfEPAt.js";
5
+ import { flushSync as Le } from "react-dom";
6
+ const pe = /* @__PURE__ */ Me({
7
+ isNative: !0,
8
+ open: De,
9
+ useHref: (t) => t
10
+ });
11
+ function et(t) {
12
+ let { children: n, navigate: a, useHref: o } = t, c = ce(() => ({
13
+ isNative: !1,
14
+ open: (g, y, $, P) => {
15
+ ge(g, (b) => {
16
+ Ue(b, y) ? a($, P) : M(b, y);
17
+ });
18
+ },
19
+ useHref: o || ((g) => g)
20
+ }), [
21
+ a,
22
+ o
23
+ ]);
24
+ return /* @__PURE__ */ fe.createElement(pe.Provider, {
25
+ value: c
26
+ }, n);
27
+ }
28
+ function ve() {
29
+ return ue(pe);
30
+ }
31
+ function Ue(t, n) {
32
+ let a = t.getAttribute("target");
33
+ return (!a || a === "_self") && t.origin === location.origin && !t.hasAttribute("download") && !n.metaKey && // open in new tab (mac)
34
+ !n.ctrlKey && // open in new tab (windows)
35
+ !n.altKey && // download
36
+ !n.shiftKey;
37
+ }
38
+ function M(t, n, a = !0) {
39
+ var o, c;
40
+ let { metaKey: g, ctrlKey: y, altKey: $, shiftKey: P } = n;
41
+ Ee() && (!((c = window.event) === null || c === void 0 || (o = c.type) === null || o === void 0) && o.startsWith("key")) && t.target === "_blank" && (V() ? g = !0 : y = !0);
42
+ let b = me() && V() && !Ke() && process.env.NODE_ENV !== "test" ? new KeyboardEvent("keydown", {
43
+ keyIdentifier: "Enter",
44
+ metaKey: g,
45
+ ctrlKey: y,
46
+ altKey: $,
47
+ shiftKey: P
48
+ }) : new MouseEvent("click", {
49
+ metaKey: g,
50
+ ctrlKey: y,
51
+ altKey: $,
52
+ shiftKey: P,
53
+ bubbles: !0,
54
+ cancelable: !0
55
+ });
56
+ M.isOpening = a, oe(t), t.dispatchEvent(b), M.isOpening = !1;
57
+ }
58
+ M.isOpening = !1;
59
+ function ge(t, n) {
60
+ if (t instanceof HTMLAnchorElement) n(t);
61
+ else if (t.hasAttribute("data-href")) {
62
+ let a = document.createElement("a");
63
+ a.href = t.getAttribute("data-href"), t.hasAttribute("data-target") && (a.target = t.getAttribute("data-target")), t.hasAttribute("data-rel") && (a.rel = t.getAttribute("data-rel")), t.hasAttribute("data-download") && (a.download = t.getAttribute("data-download")), t.hasAttribute("data-ping") && (a.ping = t.getAttribute("data-ping")), t.hasAttribute("data-referrer-policy") && (a.referrerPolicy = t.getAttribute("data-referrer-policy")), t.appendChild(a), n(a), t.removeChild(a);
64
+ }
65
+ }
66
+ function De(t, n) {
67
+ ge(t, (a) => M(a, n));
68
+ }
69
+ function tt(t) {
70
+ let n = ve();
71
+ var a;
72
+ const o = n.useHref((a = t.href) !== null && a !== void 0 ? a : "");
73
+ return {
74
+ "data-href": t.href ? o : void 0,
75
+ "data-target": t.target,
76
+ "data-rel": t.rel,
77
+ "data-download": t.download,
78
+ "data-ping": t.ping,
79
+ "data-referrer-policy": t.referrerPolicy
80
+ };
81
+ }
82
+ function rt(t) {
83
+ let n = ve();
84
+ var a;
85
+ const o = n.useHref((a = t == null ? void 0 : t.href) !== null && a !== void 0 ? a : "");
86
+ return {
87
+ href: t != null && t.href ? o : void 0,
88
+ target: t == null ? void 0 : t.target,
89
+ rel: t == null ? void 0 : t.rel,
90
+ download: t == null ? void 0 : t.download,
91
+ ping: t == null ? void 0 : t.ping,
92
+ referrerPolicy: t == null ? void 0 : t.referrerPolicy
93
+ };
94
+ }
95
+ let A = "default", z = "", Y = /* @__PURE__ */ new WeakMap();
96
+ function Z(t) {
97
+ if (le()) {
98
+ if (A === "default") {
99
+ const n = O(t);
100
+ z = n.documentElement.style.webkitUserSelect, n.documentElement.style.webkitUserSelect = "none";
101
+ }
102
+ A = "disabled";
103
+ } else if (t instanceof HTMLElement || t instanceof SVGElement) {
104
+ let n = "userSelect" in t.style ? "userSelect" : "webkitUserSelect";
105
+ Y.set(t, t.style[n]), t.style[n] = "none";
106
+ }
107
+ }
108
+ function F(t) {
109
+ if (le()) {
110
+ if (A !== "disabled") return;
111
+ A = "restoring", setTimeout(() => {
112
+ _e(() => {
113
+ if (A === "restoring") {
114
+ const n = O(t);
115
+ n.documentElement.style.webkitUserSelect === "none" && (n.documentElement.style.webkitUserSelect = z || ""), z = "", A = "default";
116
+ }
117
+ });
118
+ }, 300);
119
+ } else if ((t instanceof HTMLElement || t instanceof SVGElement) && t && Y.has(t)) {
120
+ let n = Y.get(t), a = "userSelect" in t.style ? "userSelect" : "webkitUserSelect";
121
+ t.style[a] === "none" && (t.style[a] = n), t.getAttribute("style") === "" && t.removeAttribute("style"), Y.delete(t);
122
+ }
123
+ }
124
+ const ye = fe.createContext({
125
+ register: () => {
126
+ }
127
+ });
128
+ ye.displayName = "PressResponderContext";
129
+ function He(t, n) {
130
+ return n.get ? n.get.call(t) : n.value;
131
+ }
132
+ function $e(t, n, a) {
133
+ if (!n.has(t)) throw new TypeError("attempted to " + a + " private field on non-instance");
134
+ return n.get(t);
135
+ }
136
+ function Ye(t, n) {
137
+ var a = $e(t, n, "get");
138
+ return He(t, a);
139
+ }
140
+ function Xe(t, n) {
141
+ if (n.has(t))
142
+ throw new TypeError("Cannot initialize the same private elements twice on an object");
143
+ }
144
+ function Re(t, n, a) {
145
+ Xe(t, n), n.set(t, a);
146
+ }
147
+ function Ne(t, n, a) {
148
+ if (n.set) n.set.call(t, a);
149
+ else {
150
+ if (!n.writable)
151
+ throw new TypeError("attempted to set read only private field");
152
+ n.value = a;
153
+ }
154
+ }
155
+ function ee(t, n, a) {
156
+ var o = $e(t, n, "set");
157
+ return Ne(t, o, a), a;
158
+ }
159
+ function Fe(t) {
160
+ let n = ue(ye);
161
+ if (n) {
162
+ let { register: a, ...o } = n;
163
+ t = de(o, t), a();
164
+ }
165
+ return Oe(n, t.ref), t;
166
+ }
167
+ var D = /* @__PURE__ */ new WeakMap();
168
+ class H {
169
+ continuePropagation() {
170
+ ee(this, D, !1);
171
+ }
172
+ get shouldStopPropagation() {
173
+ return Ye(this, D);
174
+ }
175
+ constructor(n, a, o, c) {
176
+ Re(this, D, {
177
+ writable: !0,
178
+ value: void 0
179
+ }), ee(this, D, !0);
180
+ var g;
181
+ let y = (g = c == null ? void 0 : c.target) !== null && g !== void 0 ? g : o.currentTarget;
182
+ const $ = y == null ? void 0 : y.getBoundingClientRect();
183
+ let P, b = 0, I, T = null;
184
+ o.clientX != null && o.clientY != null && (I = o.clientX, T = o.clientY), $ && (I != null && T != null ? (P = I - $.left, b = T - $.top) : (P = $.width / 2, b = $.height / 2)), this.type = n, this.pointerType = a, this.target = o.currentTarget, this.shiftKey = o.shiftKey, this.metaKey = o.metaKey, this.ctrlKey = o.ctrlKey, this.altKey = o.altKey, this.x = P, this.y = b;
185
+ }
186
+ }
187
+ const te = Symbol("linkClicked"), re = "react-aria-pressable-style", ne = "data-react-aria-pressable";
188
+ function nt(t) {
189
+ let { onPress: n, onPressChange: a, onPressStart: o, onPressEnd: c, onPressUp: g, onClick: y, isDisabled: $, isPressed: P, preventFocusOnPress: b, shouldCancelOnPointerExit: I, allowTextSelectionOnPress: T, ref: X, ...Te } = Fe(t), [he, j] = Ce(!1), C = Ae({
190
+ isPressed: !1,
191
+ ignoreEmulatedMouseEvents: !1,
192
+ didFirePressStart: !1,
193
+ isTriggeringEvent: !1,
194
+ activePointerId: null,
195
+ target: null,
196
+ isOverTarget: !1,
197
+ pointerType: null,
198
+ disposables: []
199
+ }), { addGlobalListener: x, removeAllGlobalListeners: L } = Se(), m = k((e, s) => {
200
+ let v = C.current;
201
+ if ($ || v.didFirePressStart) return !1;
202
+ let i = !0;
203
+ if (v.isTriggeringEvent = !0, o) {
204
+ let u = new H("pressstart", s, e);
205
+ o(u), i = u.shouldStopPropagation;
206
+ }
207
+ return a && a(!0), v.isTriggeringEvent = !1, v.didFirePressStart = !0, j(!0), i;
208
+ }), E = k((e, s, v = !0) => {
209
+ let i = C.current;
210
+ if (!i.didFirePressStart) return !1;
211
+ i.didFirePressStart = !1, i.isTriggeringEvent = !0;
212
+ let u = !0;
213
+ if (c) {
214
+ let r = new H("pressend", s, e);
215
+ c(r), u = r.shouldStopPropagation;
216
+ }
217
+ if (a && a(!1), j(!1), n && v && !$) {
218
+ let r = new H("press", s, e);
219
+ n(r), u && (u = r.shouldStopPropagation);
220
+ }
221
+ return i.isTriggeringEvent = !1, u;
222
+ }), w = k((e, s) => {
223
+ let v = C.current;
224
+ if ($) return !1;
225
+ if (g) {
226
+ v.isTriggeringEvent = !0;
227
+ let i = new H("pressup", s, e);
228
+ return g(i), v.isTriggeringEvent = !1, i.shouldStopPropagation;
229
+ }
230
+ return !0;
231
+ }), h = k((e) => {
232
+ let s = C.current;
233
+ if (s.isPressed && s.target) {
234
+ s.didFirePressStart && s.pointerType != null && E(_(s.target, e), s.pointerType, !1), s.isPressed = !1, s.isOverTarget = !1, s.activePointerId = null, s.pointerType = null, L(), T || F(s.target);
235
+ for (let v of s.disposables) v();
236
+ s.disposables = [];
237
+ }
238
+ }), U = k((e) => {
239
+ I && h(e);
240
+ }), R = k((e) => {
241
+ y == null || y(e);
242
+ }), N = k((e, s) => {
243
+ if (y) {
244
+ let v = new MouseEvent("click", e);
245
+ xe(v, s), y(we(v));
246
+ }
247
+ }), Pe = ce(() => {
248
+ let e = C.current, s = {
249
+ onKeyDown(i) {
250
+ if (B(i.nativeEvent, i.currentTarget) && p(i.currentTarget, d(i.nativeEvent))) {
251
+ var u;
252
+ se(d(i.nativeEvent), i.key) && i.preventDefault();
253
+ let r = !0;
254
+ if (!e.isPressed && !i.repeat) {
255
+ e.target = i.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = m(i, "keyboard");
256
+ let l = i.currentTarget, f = (K) => {
257
+ B(K, l) && !K.repeat && p(l, d(K)) && e.target && w(_(e.target, K), "keyboard");
258
+ };
259
+ x(O(i.currentTarget), "keyup", Ie(f, v), !0);
260
+ }
261
+ r && i.stopPropagation(), i.metaKey && V() && ((u = e.metaKeyEvents) === null || u === void 0 || u.set(i.key, i.nativeEvent));
262
+ } else i.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
263
+ },
264
+ onClick(i) {
265
+ if (!(i && !p(i.currentTarget, d(i.nativeEvent))) && i && i.button === 0 && !e.isTriggeringEvent && !M.isOpening) {
266
+ let u = !0;
267
+ if ($ && i.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || J(i.nativeEvent))) {
268
+ let r = m(i, "virtual"), l = w(i, "virtual"), f = E(i, "virtual");
269
+ R(i), u = r && l && f;
270
+ } else if (e.isPressed && e.pointerType !== "keyboard") {
271
+ let r = e.pointerType || i.nativeEvent.pointerType || "virtual", l = w(_(i.currentTarget, i), r), f = E(_(i.currentTarget, i), r, !0);
272
+ u = l && f, e.isOverTarget = !1, R(i), h(i);
273
+ }
274
+ e.ignoreEmulatedMouseEvents = !1, u && i.stopPropagation();
275
+ }
276
+ }
277
+ }, v = (i) => {
278
+ var u;
279
+ if (e.isPressed && e.target && B(i, e.target)) {
280
+ var r;
281
+ se(d(i), i.key) && i.preventDefault();
282
+ let f = d(i), K = p(e.target, d(i));
283
+ E(_(e.target, i), "keyboard", K), K && N(i, e.target), L(), i.key !== "Enter" && W(e.target) && p(e.target, f) && !i[te] && (i[te] = !0, M(e.target, i, !1)), e.isPressed = !1, (r = e.metaKeyEvents) === null || r === void 0 || r.delete(i.key);
284
+ } else if (i.key === "Meta" && (!((u = e.metaKeyEvents) === null || u === void 0) && u.size)) {
285
+ var l;
286
+ let f = e.metaKeyEvents;
287
+ e.metaKeyEvents = void 0;
288
+ for (let K of f.values()) (l = e.target) === null || l === void 0 || l.dispatchEvent(new KeyboardEvent("keyup", K));
289
+ }
290
+ };
291
+ if (typeof PointerEvent < "u") {
292
+ s.onPointerDown = (r) => {
293
+ if (r.button !== 0 || !p(r.currentTarget, d(r.nativeEvent))) return;
294
+ if (ke(r.nativeEvent)) {
295
+ e.pointerType = "virtual";
296
+ return;
297
+ }
298
+ e.pointerType = r.pointerType;
299
+ let l = !0;
300
+ if (!e.isPressed) {
301
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = r.pointerId, e.target = r.currentTarget, T || Z(e.target), l = m(r, e.pointerType);
302
+ let f = d(r.nativeEvent);
303
+ "releasePointerCapture" in f && f.releasePointerCapture(r.pointerId), x(O(r.currentTarget), "pointerup", i, !1), x(O(r.currentTarget), "pointercancel", u, !1);
304
+ }
305
+ l && r.stopPropagation();
306
+ }, s.onMouseDown = (r) => {
307
+ if (p(r.currentTarget, d(r.nativeEvent)) && r.button === 0) {
308
+ if (b) {
309
+ let l = q(r.target);
310
+ l && e.disposables.push(l);
311
+ }
312
+ r.stopPropagation();
313
+ }
314
+ }, s.onPointerUp = (r) => {
315
+ !p(r.currentTarget, d(r.nativeEvent)) || e.pointerType === "virtual" || r.button === 0 && !e.isPressed && w(r, e.pointerType || r.pointerType);
316
+ }, s.onPointerEnter = (r) => {
317
+ r.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, m(_(e.target, r), e.pointerType));
318
+ }, s.onPointerLeave = (r) => {
319
+ r.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, E(_(e.target, r), e.pointerType, !1), U(r));
320
+ };
321
+ let i = (r) => {
322
+ if (r.pointerId === e.activePointerId && e.isPressed && r.button === 0 && e.target) {
323
+ if (p(e.target, d(r)) && e.pointerType != null) {
324
+ let l = !1, f = setTimeout(() => {
325
+ e.isPressed && e.target instanceof HTMLElement && (l ? h(r) : (oe(e.target), e.target.click()));
326
+ }, 80);
327
+ x(r.currentTarget, "click", () => l = !0, !0), e.disposables.push(() => clearTimeout(f));
328
+ } else h(r);
329
+ e.isOverTarget = !1;
330
+ }
331
+ }, u = (r) => {
332
+ h(r);
333
+ };
334
+ s.onDragStart = (r) => {
335
+ p(r.currentTarget, d(r.nativeEvent)) && h(r);
336
+ };
337
+ } else if (process.env.NODE_ENV === "test") {
338
+ s.onMouseDown = (r) => {
339
+ if (r.button !== 0 || !p(r.currentTarget, d(r.nativeEvent))) return;
340
+ if (e.ignoreEmulatedMouseEvents) {
341
+ r.stopPropagation();
342
+ return;
343
+ }
344
+ if (e.isPressed = !0, e.isOverTarget = !0, e.target = r.currentTarget, e.pointerType = J(r.nativeEvent) ? "virtual" : "mouse", Le(() => m(r, e.pointerType)) && r.stopPropagation(), b) {
345
+ let f = q(r.target);
346
+ f && e.disposables.push(f);
347
+ }
348
+ x(O(r.currentTarget), "mouseup", i, !1);
349
+ }, s.onMouseEnter = (r) => {
350
+ if (!p(r.currentTarget, d(r.nativeEvent))) return;
351
+ let l = !0;
352
+ e.isPressed && !e.ignoreEmulatedMouseEvents && e.pointerType != null && (e.isOverTarget = !0, l = m(r, e.pointerType)), l && r.stopPropagation();
353
+ }, s.onMouseLeave = (r) => {
354
+ if (!p(r.currentTarget, d(r.nativeEvent))) return;
355
+ let l = !0;
356
+ e.isPressed && !e.ignoreEmulatedMouseEvents && e.pointerType != null && (e.isOverTarget = !1, l = E(r, e.pointerType, !1), U(r)), l && r.stopPropagation();
357
+ }, s.onMouseUp = (r) => {
358
+ p(r.currentTarget, d(r.nativeEvent)) && !e.ignoreEmulatedMouseEvents && r.button === 0 && !e.isPressed && w(r, e.pointerType || "mouse");
359
+ };
360
+ let i = (r) => {
361
+ if (r.button === 0) {
362
+ if (e.ignoreEmulatedMouseEvents) {
363
+ e.ignoreEmulatedMouseEvents = !1;
364
+ return;
365
+ }
366
+ e.target && e.target.contains(r.target) && e.pointerType != null || h(r), e.isOverTarget = !1;
367
+ }
368
+ };
369
+ s.onTouchStart = (r) => {
370
+ if (!p(r.currentTarget, d(r.nativeEvent))) return;
371
+ let l = Be(r.nativeEvent);
372
+ if (!l) return;
373
+ e.activePointerId = l.identifier, e.ignoreEmulatedMouseEvents = !0, e.isOverTarget = !0, e.isPressed = !0, e.target = r.currentTarget, e.pointerType = "touch", T || Z(e.target), m(S(e.target, r), e.pointerType) && r.stopPropagation(), x(G(r.currentTarget), "scroll", u, !0);
374
+ }, s.onTouchMove = (r) => {
375
+ if (!p(r.currentTarget, d(r.nativeEvent))) return;
376
+ if (!e.isPressed) {
377
+ r.stopPropagation();
378
+ return;
379
+ }
380
+ let l = ae(r.nativeEvent, e.activePointerId), f = !0;
381
+ l && ie(l, r.currentTarget) ? !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, f = m(S(e.target, r), e.pointerType)) : e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, f = E(S(e.target, r), e.pointerType, !1), U(S(e.target, r))), f && r.stopPropagation();
382
+ }, s.onTouchEnd = (r) => {
383
+ if (!p(r.currentTarget, d(r.nativeEvent))) return;
384
+ if (!e.isPressed) {
385
+ r.stopPropagation();
386
+ return;
387
+ }
388
+ let l = ae(r.nativeEvent, e.activePointerId), f = !0;
389
+ l && ie(l, r.currentTarget) && e.pointerType != null ? (w(S(e.target, r), e.pointerType), f = E(S(e.target, r), e.pointerType), N(r.nativeEvent, e.target)) : e.isOverTarget && e.pointerType != null && (f = E(S(e.target, r), e.pointerType, !1)), f && r.stopPropagation(), e.isPressed = !1, e.activePointerId = null, e.isOverTarget = !1, e.ignoreEmulatedMouseEvents = !0, e.target && !T && F(e.target), L();
390
+ }, s.onTouchCancel = (r) => {
391
+ p(r.currentTarget, d(r.nativeEvent)) && (r.stopPropagation(), e.isPressed && h(S(e.target, r)));
392
+ };
393
+ let u = (r) => {
394
+ e.isPressed && p(d(r), e.target) && h({
395
+ currentTarget: e.target,
396
+ shiftKey: !1,
397
+ ctrlKey: !1,
398
+ metaKey: !1,
399
+ altKey: !1
400
+ });
401
+ };
402
+ s.onDragStart = (r) => {
403
+ p(r.currentTarget, d(r.nativeEvent)) && h(r);
404
+ };
405
+ }
406
+ return s;
407
+ }, [
408
+ x,
409
+ $,
410
+ b,
411
+ L,
412
+ T,
413
+ h,
414
+ U,
415
+ E,
416
+ m,
417
+ w,
418
+ R,
419
+ N
420
+ ]);
421
+ return Q(() => {
422
+ if (!X || process.env.NODE_ENV === "test") return;
423
+ const e = O(X.current);
424
+ if (!e || !e.head || e.getElementById(re)) return;
425
+ const s = e.createElement("style");
426
+ s.id = re, s.textContent = `
427
+ @layer {
428
+ [${ne}] {
429
+ touch-action: pan-x pan-y pinch-zoom;
430
+ }
431
+ }
432
+ `.trim(), e.head.prepend(s);
433
+ }, [
434
+ X
435
+ ]), Q(() => {
436
+ let e = C.current;
437
+ return () => {
438
+ var s;
439
+ T || F((s = e.target) !== null && s !== void 0 ? s : void 0);
440
+ for (let v of e.disposables) v();
441
+ e.disposables = [];
442
+ };
443
+ }, [
444
+ T
445
+ ]), {
446
+ isPressed: P || he,
447
+ pressProps: de(Te, Pe, {
448
+ [ne]: !0
449
+ })
450
+ };
451
+ }
452
+ function W(t) {
453
+ return t.tagName === "A" && t.hasAttribute("href");
454
+ }
455
+ function B(t, n) {
456
+ const { key: a, code: o } = t, c = n, g = c.getAttribute("role");
457
+ return (a === "Enter" || a === " " || a === "Spacebar" || o === "Space") && !(c instanceof G(c).HTMLInputElement && !be(c, a) || c instanceof G(c).HTMLTextAreaElement || c.isContentEditable) && // Links should only trigger with Enter key
458
+ !((g === "link" || !g && W(c)) && a !== "Enter");
459
+ }
460
+ function Be(t) {
461
+ const { targetTouches: n } = t;
462
+ return n.length > 0 ? n[0] : null;
463
+ }
464
+ function ae(t, n) {
465
+ const a = t.changedTouches;
466
+ for (let o = 0; o < a.length; o++) {
467
+ const c = a[o];
468
+ if (c.identifier === n) return c;
469
+ }
470
+ return null;
471
+ }
472
+ function S(t, n) {
473
+ let a = 0, o = 0;
474
+ return n.targetTouches && n.targetTouches.length === 1 && (a = n.targetTouches[0].clientX, o = n.targetTouches[0].clientY), {
475
+ currentTarget: t,
476
+ shiftKey: n.shiftKey,
477
+ ctrlKey: n.ctrlKey,
478
+ metaKey: n.metaKey,
479
+ altKey: n.altKey,
480
+ clientX: a,
481
+ clientY: o
482
+ };
483
+ }
484
+ function _(t, n) {
485
+ let a = n.clientX, o = n.clientY;
486
+ return {
487
+ currentTarget: t,
488
+ shiftKey: n.shiftKey,
489
+ ctrlKey: n.ctrlKey,
490
+ metaKey: n.metaKey,
491
+ altKey: n.altKey,
492
+ clientX: a,
493
+ clientY: o
494
+ };
495
+ }
496
+ function Ve(t) {
497
+ let n = 0, a = 0;
498
+ return t.width !== void 0 ? n = t.width / 2 : t.radiusX !== void 0 && (n = t.radiusX), t.height !== void 0 ? a = t.height / 2 : t.radiusY !== void 0 && (a = t.radiusY), {
499
+ top: t.clientY - a,
500
+ right: t.clientX + n,
501
+ bottom: t.clientY + a,
502
+ left: t.clientX - n
503
+ };
504
+ }
505
+ function Ge(t, n) {
506
+ return !(t.left > n.right || n.left > t.right || t.top > n.bottom || n.top > t.bottom);
507
+ }
508
+ function ie(t, n) {
509
+ let a = n.getBoundingClientRect(), o = Ve(t);
510
+ return Ge(a, o);
511
+ }
512
+ function ze(t) {
513
+ return t instanceof HTMLInputElement ? !1 : t instanceof HTMLButtonElement ? t.type !== "submit" && t.type !== "reset" : !W(t);
514
+ }
515
+ function se(t, n) {
516
+ return t instanceof HTMLInputElement ? !be(t, n) : ze(t);
517
+ }
518
+ const We = /* @__PURE__ */ new Set([
519
+ "checkbox",
520
+ "radio",
521
+ "range",
522
+ "color",
523
+ "file",
524
+ "image",
525
+ "button",
526
+ "submit",
527
+ "reset"
528
+ ]);
529
+ function be(t, n) {
530
+ return t.type === "checkbox" || t.type === "radio" ? n === " " : We.has(t.type);
531
+ }
532
+ export {
533
+ et as $,
534
+ Re as _,
535
+ nt as a,
536
+ ve as b,
537
+ rt as c,
538
+ Ue as d,
539
+ M as e,
540
+ tt as f,
541
+ ye as g
542
+ };
@@ -0,0 +1,34 @@
1
+ import { $ as f } from "./useListState-CrZFZffI.js";
2
+ import { $ as y } from "./useControlledState-u436Wbp1.js";
3
+ import { useMemo as K } from "react";
4
+ function S(l) {
5
+ var t;
6
+ let [e, c] = y(l.selectedKey, (t = l.defaultSelectedKey) !== null && t !== void 0 ? t : null, l.onSelectionChange), i = K(() => e != null ? [
7
+ e
8
+ ] : [], [
9
+ e
10
+ ]), { collection: o, disabledKeys: s, selectionManager: u } = f({
11
+ ...l,
12
+ selectionMode: "single",
13
+ disallowEmptySelection: !0,
14
+ allowDuplicateSelectionEvents: !0,
15
+ selectedKeys: i,
16
+ onSelectionChange: (d) => {
17
+ if (d === "all") return;
18
+ var n;
19
+ let a = (n = d.values().next().value) !== null && n !== void 0 ? n : null;
20
+ a === e && l.onSelectionChange && l.onSelectionChange(a), c(a);
21
+ }
22
+ }), r = e != null ? o.getItem(e) : null;
23
+ return {
24
+ collection: o,
25
+ disabledKeys: s,
26
+ selectionManager: u,
27
+ selectedKey: e,
28
+ setSelectedKey: c,
29
+ selectedItem: r
30
+ };
31
+ }
32
+ export {
33
+ S as $
34
+ };
@@ -0,0 +1 @@
1
+ "use strict";const f=require("./useListState-Bx8u4IFG.cjs"),y=require("./useControlledState-D0L6S_5r.cjs"),b=require("react");function K(l){var t;let[e,a]=y.$458b0a5536c1a7cf$export$40bfa8c7b0832715(l.selectedKey,(t=l.defaultSelectedKey)!==null&&t!==void 0?t:null,l.onSelectionChange),d=b.useMemo(()=>e!=null?[e]:[],[e]),{collection:o,disabledKeys:i,selectionManager:u}=f.$e72dd72e1c76a225$export$2f645645f7bca764({...l,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:d,onSelectionChange:s=>{if(s==="all")return;var n;let c=(n=s.values().next().value)!==null&&n!==void 0?n:null;c===e&&l.onSelectionChange&&l.onSelectionChange(c),a(c)}}),r=e!=null?o.getItem(e):null;return{collection:o,disabledKeys:i,selectionManager:u,selectedKey:e,setSelectedKey:a,selectedItem:r}}exports.$a0d645289fe9b86b$export$e7f05e985daf4b5f=K;
@@ -0,0 +1 @@
1
+ "use strict";const q=require("./useHover-_mv5J4_q.cjs"),E=require("./utils-BNtZbAib.cjs"),I=require("./filterDOMProps-BS2lrgFA.cjs"),o=require("./useFormValidation-ClximP89.cjs"),M=require("./useControlledState-D0L6S_5r.cjs"),c=require("react"),D=require("./useField-CXKYU74k.cjs"),O=require("./useFocusable-NUVSFcRC.cjs");function S(e,a){let{inputElementType:f="input",isDisabled:$=!1,isRequired:r=!1,isReadOnly:b=!1,type:v="text",validationBehavior:l="aria"}=e,[i,d]=M.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||"",e.onChange),{focusableProps:m}=O.$f645667febf57a63$export$4c014de7c8940b4c(e,a),u=o.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:i}),{isInvalid:n,validationErrors:s,validationDetails:C}=u.displayValidation,{labelProps:P,fieldProps:g,descriptionProps:y,errorMessageProps:h}=D.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,isInvalid:n,errorMessage:e.errorMessage||s}),x=I.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0});const p={type:v,pattern:e.pattern};return o.$99facab73266f662$export$5add1d006293d136(a,i,d),o.$e93e671b31057976$export$b8473d3665f3a75a(e,u,a),c.useEffect(()=>{if(a.current instanceof q.$431fbd86ca7dc216$export$f21a1ffae260145a(a.current).HTMLTextAreaElement){let t=a.current;Object.defineProperty(t,"defaultValue",{get:()=>t.value,set:()=>{},configurable:!0})}},[a]),{labelProps:P,inputProps:E.$3ef42575df84b30b$export$9d1611c77c2fe928(x,f==="input"?p:void 0,{disabled:$,readOnly:b,required:r&&l==="native","aria-required":r&&l==="aria"||void 0,"aria-invalid":n||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:i,onChange:t=>d(t.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(c.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...m,...g}),descriptionProps:y,errorMessageProps:h,isInvalid:n,validationErrors:s,validationDetails:C}}exports.$2d73ec29415bd339$export$712718f7aec83d5=S;
@@ -0,0 +1,86 @@
1
+ import { a as h } from "./useHover-DjIHtjGN.js";
2
+ import { c as x } from "./utils-DIMfEPAt.js";
3
+ import { $ as E } from "./filterDOMProps-D6KHYVBX.js";
4
+ import { $ as I, a as M, b as D } from "./useFormValidation-BIGzfO9h.js";
5
+ import { $ as L } from "./useControlledState-u436Wbp1.js";
6
+ import O, { useEffect as R } from "react";
7
+ import { $ as S } from "./useField-DvpGZkw_.js";
8
+ import { $ as q } from "./useFocusable-C8uh8K4g.js";
9
+ function _(e, a) {
10
+ let { inputElementType: u = "input", isDisabled: c = !1, isRequired: o = !1, isReadOnly: f = !1, type: m = "text", validationBehavior: r = "aria" } = e, [i, l] = L(e.value, e.defaultValue || "", e.onChange), { focusableProps: $ } = q(e, a), d = I({
11
+ ...e,
12
+ value: i
13
+ }), { isInvalid: n, validationErrors: s, validationDetails: b } = d.displayValidation, { labelProps: v, fieldProps: C, descriptionProps: p, errorMessageProps: P } = S({
14
+ ...e,
15
+ isInvalid: n,
16
+ errorMessage: e.errorMessage || s
17
+ }), g = E(e, {
18
+ labelable: !0
19
+ });
20
+ const y = {
21
+ type: m,
22
+ pattern: e.pattern
23
+ };
24
+ return M(a, i, l), D(e, d, a), R(() => {
25
+ if (a.current instanceof h(a.current).HTMLTextAreaElement) {
26
+ let t = a.current;
27
+ Object.defineProperty(t, "defaultValue", {
28
+ get: () => t.value,
29
+ set: () => {
30
+ },
31
+ configurable: !0
32
+ });
33
+ }
34
+ }, [
35
+ a
36
+ ]), {
37
+ labelProps: v,
38
+ inputProps: x(g, u === "input" ? y : void 0, {
39
+ disabled: c,
40
+ readOnly: f,
41
+ required: o && r === "native",
42
+ "aria-required": o && r === "aria" || void 0,
43
+ "aria-invalid": n || void 0,
44
+ "aria-errormessage": e["aria-errormessage"],
45
+ "aria-activedescendant": e["aria-activedescendant"],
46
+ "aria-autocomplete": e["aria-autocomplete"],
47
+ "aria-haspopup": e["aria-haspopup"],
48
+ "aria-controls": e["aria-controls"],
49
+ value: i,
50
+ onChange: (t) => l(t.target.value),
51
+ autoComplete: e.autoComplete,
52
+ autoCapitalize: e.autoCapitalize,
53
+ maxLength: e.maxLength,
54
+ minLength: e.minLength,
55
+ name: e.name,
56
+ placeholder: e.placeholder,
57
+ inputMode: e.inputMode,
58
+ autoCorrect: e.autoCorrect,
59
+ spellCheck: e.spellCheck,
60
+ [parseInt(O.version, 10) >= 17 ? "enterKeyHint" : "enterkeyhint"]: e.enterKeyHint,
61
+ // Clipboard events
62
+ onCopy: e.onCopy,
63
+ onCut: e.onCut,
64
+ onPaste: e.onPaste,
65
+ // Composition events
66
+ onCompositionEnd: e.onCompositionEnd,
67
+ onCompositionStart: e.onCompositionStart,
68
+ onCompositionUpdate: e.onCompositionUpdate,
69
+ // Selection events
70
+ onSelect: e.onSelect,
71
+ // Input events
72
+ onBeforeInput: e.onBeforeInput,
73
+ onInput: e.onInput,
74
+ ...$,
75
+ ...C
76
+ }),
77
+ descriptionProps: p,
78
+ errorMessageProps: P,
79
+ isInvalid: n,
80
+ validationErrors: s,
81
+ validationDetails: b
82
+ };
83
+ }
84
+ export {
85
+ _ as $
86
+ };
@@ -0,0 +1,18 @@
1
+ import { $ as i } from "./useControlledState-u436Wbp1.js";
2
+ function o(e = {}) {
3
+ let { isReadOnly: t } = e, [c, d] = i(e.isSelected, e.defaultSelected || !1, e.onChange);
4
+ function l(a) {
5
+ t || d(a);
6
+ }
7
+ function f() {
8
+ t || d(!c);
9
+ }
10
+ return {
11
+ isSelected: c,
12
+ setSelected: l,
13
+ toggle: f
14
+ };
15
+ }
16
+ export {
17
+ o as $
18
+ };