@midas-ds/components 13.0.1 → 14.1.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 (409) hide show
  1. package/AccordionItem-CAi-XFOc.js +343 -0
  2. package/AccordionItem-tWS22wDv.cjs +1 -0
  3. package/BadgeContainer-BZl6mSeb.cjs +1 -0
  4. package/{BadgeContainer-iNNgJKD9.js → BadgeContainer-DilMiV6u.js} +9 -9
  5. package/{Breadcrumbs-BQLxFZVm.cjs → Breadcrumbs-BBDGxc68.cjs} +1 -1
  6. package/{Breadcrumbs-C6B4fyk3.js → Breadcrumbs-BenPNv8Z.js} +15 -15
  7. package/Button-1sEX8jKn.cjs +1 -0
  8. package/{Button-D_tRdPW9.cjs → Button-BEWKXjlP.cjs} +1 -1
  9. package/{Button-CUMHt7MG.js → Button-CF97piBl.js} +10 -4
  10. package/{Button-DD5_S-tD.js → Button-CGe3Nyos.js} +122 -116
  11. package/Button.module-COONZqNU.cjs +1 -0
  12. package/Button.module-Cm0H98vy.js +14 -0
  13. package/{ButtonGroup-zx-9mxbJ.cjs → ButtonGroup-BpvDDECt.cjs} +1 -1
  14. package/{ButtonGroup-DC8925jD.js → ButtonGroup-Swh2E6Es.js} +1 -1
  15. package/CHANGELOG.md +59 -0
  16. package/Card-DJ8E5Rzd.js +131 -0
  17. package/Card-Db9xdzJ0.cjs +1 -0
  18. package/{CharacterCounter-CnRv-iUP.cjs → CharacterCounter-CTpQ12f7.cjs} +1 -1
  19. package/{CharacterCounter-DT7A0wWP.js → CharacterCounter-gbDGfize.js} +8 -8
  20. package/Checkbox-BgrLxY6P.cjs +1 -0
  21. package/{Checkbox-DTuryJdM.js → Checkbox-CdN1D5pD.js} +91 -87
  22. package/{CheckboxGroup-BmFdy-K6.js → CheckboxGroup-B1b-6bKq.js} +12 -12
  23. package/{CheckboxGroup-LrqCwPET.cjs → CheckboxGroup-BfZyy5yU.cjs} +1 -1
  24. package/{Collection-B0_WAieZ.js → Collection-BkxwF21i.js} +205 -213
  25. package/Collection-vGO6v3_U.cjs +1 -0
  26. package/{ColorSchemeSwitch-D5juAHPc.cjs → ColorSchemeSwitch-BOooU0iy.cjs} +3 -3
  27. package/{ColorSchemeSwitch-CgZfgCG4.js → ColorSchemeSwitch-KjnsdbDr.js} +10 -10
  28. package/{ComboBox-B2btGwWe.js → ComboBox-D1ZSZ6m-.js} +286 -278
  29. package/ComboBox-Dztk_jtC.cjs +1 -0
  30. package/DateField-BogEOseq.cjs +1 -0
  31. package/DateField-lsr_1fw4.js +47 -0
  32. package/{DateInputDivider-LxS0Kw1H.js → DateInputDivider-CRv3YuXd.js} +199 -196
  33. package/DateInputDivider-CYqm6PZP.cjs +1 -0
  34. package/{DateRangePicker-BmPPDZIF.js → DateRangePicker-5k1swaEt.js} +123 -119
  35. package/DateRangePicker-CgNXWOT6.cjs +6 -0
  36. package/Dialog-B1N4Ndyx.js +256 -0
  37. package/{Dialog-COeUapMW.js → Dialog-BUAp30Wc.js} +710 -692
  38. package/Dialog-BgSxz1JW.cjs +1 -0
  39. package/Dialog-PrnV8KTh.cjs +6 -0
  40. package/{DragAndDrop-Dw8JZmrn.cjs → DragAndDrop-Cs-V-9ak.cjs} +1 -1
  41. package/{DragAndDrop-PrUJv--B.js → DragAndDrop-DF0VoPJw.js} +2 -2
  42. package/{Dropdown-C_W6Sizy.cjs → Dropdown-DBFLb8Tl.cjs} +2 -2
  43. package/{Dropdown-CGQbf7OT.js → Dropdown-DaARa89l.js} +8 -8
  44. package/FieldError-Cimgm8qD.cjs +1 -0
  45. package/FieldError-l3xULRa0.js +48 -0
  46. package/{FileUpload-D2gnQKdn.js → FileUpload-CN0HNJ_Y.js} +14 -14
  47. package/{FileUpload-D3RaARDV.cjs → FileUpload-DHmsupSe.cjs} +1 -1
  48. package/{Grid-BmX6arAO.js → Grid-0XOQPryP.js} +2 -2
  49. package/{Grid-Bn1bCTH8.cjs → Grid-B6G4PWn5.cjs} +1 -1
  50. package/{GridItem-luVsL9lu.cjs → GridItem-BZ8eOXMB.cjs} +1 -1
  51. package/{GridItem-BtO9kCX9.js → GridItem-YtIpL5V2.js} +1 -1
  52. package/Group-B0Wj9pI8.cjs +1 -0
  53. package/Group-BAd7alBM.js +46 -0
  54. package/Heading-CCoGfKQ8.js +48 -0
  55. package/Heading-x7y3xadc.cjs +1 -0
  56. package/{Hidden-C9KWUR7b.js → Hidden-B5ir3Lei.js} +2 -2
  57. package/InfoBanner-BW3vy9mc.js +72 -0
  58. package/InfoBanner-_M_rGQiu.cjs +1 -0
  59. package/{Input-CzMx2mfl.cjs → Input-Bda0PCu5.cjs} +1 -1
  60. package/{Input-BLVRv0FK.js → Input-CQzv-D9g.js} +9 -9
  61. package/{Label-1N6ddn5w.js → Label-BGMXsSFb.js} +15 -15
  62. package/Label-CNTODOFg.cjs +1 -0
  63. package/Layout-BrEuHajQ.cjs +16 -0
  64. package/{Layout-B-A-s7B0.js → Layout-JL9l-y7w.js} +144 -145
  65. package/{Link-lO-Ke97K.js → Link-BudFjYrw.js} +22 -22
  66. package/Link-BvUSTIip.cjs +6 -0
  67. package/{Link-wM7cVPlS.cjs → Link-DRU6Qzia.cjs} +1 -1
  68. package/{Link-CbFSuEI1.js → Link-l-nMP-Zd.js} +10 -10
  69. package/LinkButton-DGdnbTgR.cjs +6 -0
  70. package/LinkButton-DP9W-E32.js +69 -0
  71. package/ListBox-TGCxrXIJ.cjs +1 -0
  72. package/ListBox-mOCZvKD4.js +534 -0
  73. package/{ListBoxLoadMoreItem-C4jnDcYH.js → ListBoxLoadMoreItem-CLdTe6-z.js} +5 -5
  74. package/{ListBoxLoadMoreItem-3jGpi90m.cjs → ListBoxLoadMoreItem-UX0jFQN4.cjs} +1 -1
  75. package/ListBoxSection-BNBHosou.cjs +1 -0
  76. package/{ListBoxSection-D7BcbjUt.js → ListBoxSection-D_kTkvgG.js} +139 -140
  77. package/{ListKeyboardDelegate-CVxkAn5D.js → ListKeyboardDelegate-BHnZMUhW.js} +36 -40
  78. package/ListKeyboardDelegate-CLRlDto7.cjs +1 -0
  79. package/{Logo-CFjZc5u2.cjs → Logo-4tRnV4Su.cjs} +1 -1
  80. package/{Logo-DkagDdKQ.js → Logo-DLlt576_.js} +17 -17
  81. package/{OverlayArrow-CvNuu3e3.js → OverlayArrow-CjGslX2c.js} +4 -4
  82. package/{OverlayArrow-ByH6lM-H.cjs → OverlayArrow-bcrb_syE.cjs} +1 -1
  83. package/{Popover-Bf5YH53o.js → Popover-CZFi2YGz.js} +13 -13
  84. package/Popover-uYTWBGHa.cjs +1 -0
  85. package/{PressResponder-CxVtArtP.js → PressResponder-BMj6Zvbn.js} +9 -9
  86. package/PressResponder-ChvCuOue.cjs +1 -0
  87. package/ProgressBar-BGemuJIq.cjs +1 -0
  88. package/ProgressBar-DhRmckYM.js +53 -0
  89. package/{RSPContexts-BW2SEIqe.js → RSPContexts-B0lEq7qq.js} +5 -3
  90. package/RSPContexts-XUvspq3j.cjs +1 -0
  91. package/Radio-Bp_31Z59.js +340 -0
  92. package/Radio-D3RGVrEd.cjs +1 -0
  93. package/{RangeCalendar-Bi9jc61A.js → RangeCalendar-9C96gMvy.js} +146 -145
  94. package/RangeCalendar-ChfmP_ql.cjs +6 -0
  95. package/{SSRProvider-40TXmsUG.js → SSRProvider-D8lZ0o6A.js} +5 -5
  96. package/{SSRProvider-Bc-sMhsT.cjs → SSRProvider-DZRLwxPS.cjs} +1 -1
  97. package/{SearchField-BevjTbcW.js → SearchField-DrEdzWAy.js} +44 -44
  98. package/SearchField-JaDXLq5W.cjs +6 -0
  99. package/Select-BCUH-Z7q.cjs +1 -0
  100. package/{Select-CEwJo1BT.js → Select-CpPE78Ke.js} +210 -188
  101. package/SelectionIndicator-BiSN1toV.cjs +1 -0
  102. package/{FocusScope-Bj40Ir-g.js → SelectionIndicator-ant6jeC1.js} +256 -165
  103. package/SelectionManager-C469yQeD.js +1063 -0
  104. package/SelectionManager-uFYC4wpu.cjs +1 -0
  105. package/{Separator-Bj24aGrT.js → Separator-B6l5qSpR.js} +28 -28
  106. package/{Separator-CM0KPvsX.js → Separator-BWAnBMVN.js} +5 -5
  107. package/Separator-DbhmtwDa.cjs +1 -0
  108. package/{Separator-Dgin8BNW.cjs → Separator-J0pLW4BN.cjs} +1 -1
  109. package/Skeleton-8onymGEG.cjs +1 -0
  110. package/Skeleton-BjTEGRpe.js +35 -0
  111. package/Spinner-D6Fcu_Dp.js +54 -0
  112. package/Spinner-DIapnvIz.cjs +6 -0
  113. package/TabList-C0tRVI6Q.cjs +1 -0
  114. package/TabList-DmkxO7MM.js +394 -0
  115. package/Table-BLqjyYKk.cjs +16 -0
  116. package/{Table-BzJktg2G.js → Table-CyWZO9uf.js} +710 -706
  117. package/Tag-DJqYiBLR.js +774 -0
  118. package/Tag-FDHGu_WP.cjs +1 -0
  119. package/{Text-BtPiT2P1.cjs → Text-0wXj3J8E.cjs} +1 -1
  120. package/Text-BBFWBNAH.js +32 -0
  121. package/{Text-BAFsaON-.cjs → Text-D5OSv6Uv.cjs} +1 -1
  122. package/{Text-Be7WIOwv.js → Text-bqP9NeVg.js} +3 -3
  123. package/TextArea-CZxwvBcS.cjs +1 -0
  124. package/TextArea-CrY7P18c.js +125 -0
  125. package/{TextField-_UY8CXtW.js → TextField-BWea-IT-.js} +26 -26
  126. package/TextField-DsN-kBfh.cjs +1 -0
  127. package/TextField.module-C03d0VY9.js +13 -0
  128. package/TextField.module-DmRrFHra.cjs +1 -0
  129. package/{Toast-Cs0CEbRr.cjs → Toast-DUZ5jfG1.cjs} +1 -1
  130. package/{Toast-B74PMVL9.js → Toast-Di3h8A14.js} +101 -101
  131. package/{ToggleButtonGroup-CwHPu7w5.js → ToggleButtonGroup-Bh4hP6Lk.js} +83 -79
  132. package/ToggleButtonGroup-D7r34GCt.cjs +1 -0
  133. package/{Tooltip-BHAtsp9k.js → Tooltip-CUdmOznK.js} +13 -13
  134. package/{Tooltip-CZa9n5sT.cjs → Tooltip-D-ATlbIM.cjs} +1 -1
  135. package/{VisuallyHidden-EjrqodVh.cjs → VisuallyHidden-BMelU6B0.cjs} +1 -1
  136. package/{VisuallyHidden-CGEtjAP7.js → VisuallyHidden-DuW70K-5.js} +8 -8
  137. package/accordion/Accordion.d.ts +0 -1
  138. package/accordion/index.cjs +1 -1
  139. package/accordion/index.js +2 -3
  140. package/assets/AccordionItem.css +1 -1
  141. package/assets/Button.css +1 -1
  142. package/assets/Card.css +1 -1
  143. package/assets/Checkbox.css +1 -1
  144. package/assets/ComboBox.css +1 -1
  145. package/assets/DateField.css +1 -1
  146. package/assets/DateInputDivider.css +1 -1
  147. package/assets/DateRangePicker.css +1 -1
  148. package/assets/Dialog.css +1 -1
  149. package/assets/Dropdown.css +1 -1
  150. package/assets/FieldError.css +1 -1
  151. package/assets/Heading.css +1 -1
  152. package/assets/InfoBanner.css +1 -1
  153. package/assets/Label.css +1 -1
  154. package/assets/Layout.css +1 -1
  155. package/assets/Link.css +1 -1
  156. package/assets/LinkButton.css +1 -1
  157. package/assets/ListBoxSection.css +1 -1
  158. package/assets/Logo.css +1 -1
  159. package/assets/Popover.css +1 -1
  160. package/assets/ProgressBar.css +1 -1
  161. package/assets/Radio.css +1 -1
  162. package/assets/RangeCalendar.css +1 -1
  163. package/assets/SearchField.css +1 -1
  164. package/assets/Select.css +1 -1
  165. package/assets/Separator.css +1 -1
  166. package/assets/Skeleton.css +1 -1
  167. package/assets/Spinner.css +1 -1
  168. package/assets/TabList.css +1 -1
  169. package/assets/Text.css +1 -1
  170. package/assets/TextField.css +1 -1
  171. package/assets/Toast.css +1 -1
  172. package/assets/Tooltip.css +1 -1
  173. package/assets/default.css +1 -1
  174. package/badge/index.cjs +1 -1
  175. package/badge/index.js +1 -1
  176. package/breadcrumbs/index.cjs +1 -1
  177. package/breadcrumbs/index.js +1 -1
  178. package/button/index.cjs +1 -1
  179. package/button/index.js +2 -2
  180. package/calendar/index.cjs +1 -1
  181. package/calendar/index.js +1 -1
  182. package/card/index.cjs +1 -1
  183. package/card/index.js +1 -1
  184. package/character-counter/index.cjs +1 -1
  185. package/character-counter/index.js +1 -1
  186. package/checkbox/index.cjs +1 -1
  187. package/checkbox/index.js +2 -2
  188. package/clsx-DKOfLqne.cjs +1 -0
  189. package/clsx-jbLnTBqA.js +11 -0
  190. package/color-scheme-switch/index.cjs +1 -1
  191. package/color-scheme-switch/index.js +1 -1
  192. package/combobox/index.cjs +1 -1
  193. package/combobox/index.js +1 -1
  194. package/{context-CGNJ3grH.js → context-Dl_saGB6.js} +11 -11
  195. package/{context-Df3XbgBG.cjs → context-UOrD6Zxk.cjs} +1 -1
  196. package/date-field/index.cjs +1 -1
  197. package/date-field/index.js +2 -2
  198. package/date-picker/index.cjs +1 -1
  199. package/date-picker/index.js +1 -1
  200. package/dropdown/index.cjs +1 -1
  201. package/dropdown/index.js +1 -1
  202. package/field-error/index.cjs +1 -1
  203. package/field-error/index.js +1 -1
  204. package/file-upload/index.cjs +1 -1
  205. package/file-upload/index.js +1 -1
  206. package/{getScrollParent-Ru2U2LlM.js → getScrollParent-DFCzfqHG.js} +1 -1
  207. package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-DjULaF_q.cjs} +1 -1
  208. package/grid/index.cjs +1 -1
  209. package/grid/index.js +2 -2
  210. package/heading/Heading.d.ts +6 -0
  211. package/heading/index.cjs +1 -1
  212. package/heading/index.js +1 -1
  213. package/{index-BLPblar-.js → index-DEx4upZl.js} +19 -19
  214. package/{index-DSFSh2sC.cjs → index-hURPlN0u.cjs} +2 -2
  215. package/index.cjs +1 -1
  216. package/index.js +126 -127
  217. package/inertValue-BWmZ1afe.cjs +1 -0
  218. package/info-banner/index.cjs +1 -1
  219. package/info-banner/index.js +1 -1
  220. package/label/index.cjs +1 -1
  221. package/label/index.js +1 -1
  222. package/layout/index.cjs +1 -1
  223. package/layout/index.js +1 -1
  224. package/link/index.cjs +1 -1
  225. package/link/index.js +2 -2
  226. package/link-button/index.cjs +1 -1
  227. package/link-button/index.js +2 -2
  228. package/list-box/index.cjs +1 -1
  229. package/list-box/index.js +2 -2
  230. package/logo/index.cjs +1 -1
  231. package/logo/index.js +1 -1
  232. package/menu/index.cjs +1 -1
  233. package/menu/index.js +2 -2
  234. package/{mergeProps-BSsN7Bgk.js → mergeProps-Ct8m5-xW.js} +1 -1
  235. package/{mergeProps-JhcJ7uJL.cjs → mergeProps-Du5A8xi8.cjs} +1 -1
  236. package/modal/Dialog.d.ts +16 -3
  237. package/modal/index.cjs +1 -1
  238. package/modal/index.d.ts +1 -1
  239. package/modal/index.js +2 -2
  240. package/package.json +4 -4
  241. package/popover/index.cjs +1 -1
  242. package/popover/index.js +1 -1
  243. package/progress-bar/index.cjs +1 -1
  244. package/progress-bar/index.js +1 -1
  245. package/radio/index.cjs +1 -1
  246. package/radio/index.js +1 -1
  247. package/scrollIntoView-BVI21Y4-.js +65 -0
  248. package/scrollIntoView-BueMOyGp.cjs +1 -0
  249. package/search-field/index.cjs +1 -1
  250. package/search-field/index.js +1 -1
  251. package/select/index.cjs +1 -1
  252. package/select/index.js +1 -1
  253. package/select/types.d.ts +1 -1
  254. package/select/useMultiSelect.d.ts +2 -2
  255. package/skeleton/index.cjs +1 -1
  256. package/skeleton/index.js +1 -1
  257. package/spinner/Spinner.d.ts +5 -1
  258. package/spinner/index.cjs +1 -1
  259. package/spinner/index.js +1 -1
  260. package/table/index.cjs +1 -1
  261. package/table/index.js +1 -1
  262. package/tabs/Tabs.d.ts +2 -9
  263. package/tabs/index.cjs +1 -1
  264. package/tabs/index.d.ts +0 -1
  265. package/tabs/index.js +1 -1
  266. package/tag/index.cjs +1 -1
  267. package/tag/index.js +1 -1
  268. package/text/index.cjs +1 -1
  269. package/text/index.js +1 -1
  270. package/textfield/TextArea.d.ts +3 -2
  271. package/textfield/TextField.d.ts +3 -2
  272. package/textfield/index.cjs +1 -1
  273. package/textfield/index.js +1 -1
  274. package/toast/index.cjs +1 -1
  275. package/toast/index.js +1 -1
  276. package/toggle-button/index.cjs +1 -1
  277. package/toggle-button/index.js +1 -1
  278. package/tooltip/index.cjs +1 -1
  279. package/tooltip/index.js +1 -1
  280. package/{useButton-R8-i3HLC.cjs → useButton-C0r5nrqs.cjs} +1 -1
  281. package/{useButton-D6iUB8cN.js → useButton-CRgN6aZf.js} +3 -3
  282. package/useDateFormatter-BrrFo4nY.cjs +1 -0
  283. package/{useDateFormatter-BJ1ZyaH1.js → useDateFormatter-Bs5A6Xtu.js} +353 -322
  284. package/{useDescription-BMuiAqI5.cjs → useDescription-6BYtQxe6.cjs} +1 -1
  285. package/{useDescription-BLmIkYCq.js → useDescription-BFwQx7Rp.js} +1 -1
  286. package/useEvent-C125NAue.cjs +1 -0
  287. package/{useEvent-DpBHTuHJ.js → useEvent-smuTnX4G.js} +1 -1
  288. package/{useField-BMegM8fA.js → useField-BhJ9dM2g.js} +2 -2
  289. package/{useField-DyeD7MLj.cjs → useField-DvszkIMx.cjs} +1 -1
  290. package/{useFilter-BFnSe_Eq.js → useFilter-BdUU-HQZ.js} +1 -1
  291. package/{useFilter-aoggM85n.cjs → useFilter-R2IPvbS8.cjs} +1 -1
  292. package/{useFocusRing-BcbYske2.cjs → useFocusRing-C-XVcAE5.cjs} +1 -1
  293. package/{useFocusRing-DMo8ctYV.js → useFocusRing-CcxI7nbg.js} +2 -2
  294. package/{useFocusWithin-ClMkhYcq.js → useFocusWithin-DhXBuB2O.js} +1 -1
  295. package/{useFocusWithin-DTnk0e8a.cjs → useFocusWithin-GBjoTL5o.cjs} +1 -1
  296. package/{useFocusable-DXlMChFC.js → useFocusable-BJj-Bkig.js} +14 -14
  297. package/{useFocusable-CsG-IPuC.cjs → useFocusable-M4se1KJt.cjs} +1 -1
  298. package/{useFormValidation-L0UHvOsP.js → useFormValidation-By7G-T7y.js} +2 -2
  299. package/{useFormValidation-BQIRxgbU.cjs → useFormValidation-DV2Ioblb.cjs} +1 -1
  300. package/useHasTabbableChild-CIZGg_iG.cjs +1 -0
  301. package/{useHasTabbableChild-BDaxMsGu.js → useHasTabbableChild-CnpSoDuJ.js} +2 -2
  302. package/{useHighlightSelectionDescription-CQaG611l.cjs → useHighlightSelectionDescription-CBZfyrhy.cjs} +1 -1
  303. package/{useHighlightSelectionDescription-BkEv9Jye.js → useHighlightSelectionDescription-DPiqOr_Z.js} +5 -5
  304. package/{useHover-DGAmG7jt.cjs → useHover-DULSfLuK.cjs} +1 -1
  305. package/{useHover-D6bNIkU0.js → useHover-DkC5FyNd.js} +5 -5
  306. package/{useLabels-CvUk-yS3.cjs → useLabels-B5pmat1S.cjs} +1 -1
  307. package/{useLabels-Kmq5JCp_.js → useLabels-D24on06F.js} +1 -1
  308. package/{useListState-D2IEg6_e.cjs → useListState-DBawAMhF.cjs} +1 -1
  309. package/{useListState-pixYqSLl.js → useListState-PZF3ahpk.js} +1 -1
  310. package/{useLocalizedStringFormatter-BO2iZEL0.cjs → useLocalizedStringFormatter-BSac43NO.cjs} +1 -1
  311. package/useLocalizedStringFormatter-CHAo1AyN.cjs +1 -0
  312. package/{useLocalizedStringFormatter-CL9MUZ8A.js → useLocalizedStringFormatter-CSEh15AZ.js} +1 -1
  313. package/{useLocalizedStringFormatter-N0AyjzbM.js → useLocalizedStringFormatter-aOhh7wdl.js} +1 -1
  314. package/{usePress-DMUpU0GU.js → usePress-BqQIhkNY.js} +54 -54
  315. package/usePress-DmU79HEg.cjs +7 -0
  316. package/{useSingleSelectListState-BlvpP8y-.js → useSingleSelectListState-BLRBEJC7.js} +1 -1
  317. package/{useSingleSelectListState-CwWK_Dx2.cjs → useSingleSelectListState-CNETmoj5.cjs} +1 -1
  318. package/{useTextField-BC5X_AO_.js → useTextField-B8pM0p6X.js} +7 -7
  319. package/{useTextField-Cxpfu0U3.cjs → useTextField-CiWV3eeD.cjs} +1 -1
  320. package/useToggleState-DaxmInOW.cjs +1 -0
  321. package/{useUpdateEffect-C5YQs_1w.cjs → useUpdateEffect-sk3kiVGz.cjs} +1 -1
  322. package/utils/clsx.d.ts +8 -0
  323. package/utils/types.d.ts +5 -0
  324. package/utils-CtICjCYt.cjs +1 -0
  325. package/{utils-Cpcjg55U.js → utils-D2iKpxcZ.js} +47 -43
  326. package/utils-DRIRjPUS.cjs +1 -0
  327. package/{utils-DFIwp4PB.js → utils-Dxh86KaB.js} +20 -18
  328. package/AccordionItem-Bq8nUKg4.cjs +0 -1
  329. package/AccordionItem-D2Y0gJZB.js +0 -335
  330. package/BadgeContainer-su0iCJKy.cjs +0 -1
  331. package/Button-CMIbSc4-.cjs +0 -1
  332. package/Button.module-BT9wZenr.cjs +0 -1
  333. package/Button.module-CGIVvzVm.js +0 -14
  334. package/Card-D2UbrhDW.js +0 -131
  335. package/Card-UolcSL5O.cjs +0 -1
  336. package/Checkbox-dtZfsSfx.cjs +0 -1
  337. package/Collection-BvWp2xBd.cjs +0 -1
  338. package/ComboBox-uMsVrOYu.cjs +0 -1
  339. package/DateField-B5dlDwdH.cjs +0 -1
  340. package/DateField-CEpRn4wR.js +0 -47
  341. package/DateInputDivider-BnSo_Aox.cjs +0 -1
  342. package/DateRangePicker-It4M98bT.cjs +0 -6
  343. package/Dialog-B1HuzqOX.js +0 -240
  344. package/Dialog-DR6nEqMT.cjs +0 -1
  345. package/Dialog-doGnVsJJ.cjs +0 -1
  346. package/FieldError-Cornph2A.cjs +0 -1
  347. package/FieldError-DdvFyIf4.js +0 -48
  348. package/FocusScope-Uy3DiY0-.cjs +0 -1
  349. package/Group-BKYGeOBr.cjs +0 -1
  350. package/Group-C73mD_-i.js +0 -45
  351. package/Heading-BQlmb5Tm.js +0 -46
  352. package/Heading-D3FR_KXb.cjs +0 -1
  353. package/InfoBanner-C82hcpzj.cjs +0 -1
  354. package/InfoBanner-Dz_0wVSa.js +0 -83
  355. package/Label-06gf6yKQ.cjs +0 -1
  356. package/Layout-DlE30BHE.cjs +0 -16
  357. package/Link-ePZ3nrAW.cjs +0 -6
  358. package/LinkButton-CJyZh3BS.js +0 -69
  359. package/LinkButton-Cw73pOM2.cjs +0 -6
  360. package/ListBox-ICZKGluC.cjs +0 -1
  361. package/ListBox-LncMQt6I.js +0 -523
  362. package/ListBoxSection-BeDwnVZx.cjs +0 -1
  363. package/ListKeyboardDelegate-C_X1wLkh.cjs +0 -1
  364. package/Popover-DIq3kp6B.cjs +0 -1
  365. package/PressResponder-DbnYqwGB.cjs +0 -1
  366. package/ProgressBar-DRhXkSE6.js +0 -53
  367. package/ProgressBar-i7almbvK.cjs +0 -1
  368. package/RSPContexts-D8hmBfGm.cjs +0 -1
  369. package/Radio-BpQoJB8e.cjs +0 -1
  370. package/Radio-D4wUZfW9.js +0 -333
  371. package/RangeCalendar-KcJooXYf.cjs +0 -6
  372. package/SearchField-BA-X9dzb.cjs +0 -6
  373. package/Select-1QuVY4f5.cjs +0 -1
  374. package/SelectionManager-Bq-Gw1UT.js +0 -1043
  375. package/SelectionManager-BtbHoHpA.cjs +0 -1
  376. package/Separator-Cfv2pbWf.cjs +0 -1
  377. package/Skeleton-Iovq135_.js +0 -35
  378. package/Skeleton-MaBUPqhT.cjs +0 -1
  379. package/Spinner-BZ7i01Kt.js +0 -47
  380. package/Spinner-DxWDMW6e.cjs +0 -6
  381. package/TabList-3fErCDyP.cjs +0 -1
  382. package/TabList-CXaxruLg.js +0 -397
  383. package/Table-Dyqa6_rE.cjs +0 -16
  384. package/Tag-BYUPXbhG.js +0 -765
  385. package/Tag-BweDKw1v.cjs +0 -1
  386. package/Text-CmlsaWMA.js +0 -32
  387. package/TextArea-B4BZUoJp.cjs +0 -1
  388. package/TextArea-Df1fR5R4.js +0 -124
  389. package/TextField-Bm5916AD.cjs +0 -1
  390. package/TextField.module-CH39P8ZE.js +0 -13
  391. package/TextField.module-gJ-ruFra.cjs +0 -1
  392. package/ToggleButtonGroup-DY9S3USc.cjs +0 -1
  393. package/inertValue-B3AFhVG4.cjs +0 -1
  394. package/scrollIntoView-ClEACHUk.js +0 -57
  395. package/scrollIntoView-DRSoJp89.cjs +0 -1
  396. package/useDateFormatter-2B0vgHc-.cjs +0 -1
  397. package/useEvent-3ZO5TPSH.cjs +0 -1
  398. package/useHasTabbableChild-CJcLnolh.cjs +0 -1
  399. package/useLocalizedStringFormatter-BiX5BTlb.cjs +0 -1
  400. package/useObserveElement-BdI4zgd7.js +0 -27
  401. package/useObserveElement-MhzEsCkX.cjs +0 -1
  402. package/usePress-CicXV7UO.cjs +0 -7
  403. package/useToggleState-SqDyNfRi.cjs +0 -1
  404. package/utils/storybook.d.ts +0 -5
  405. package/utils/test.d.ts +0 -11
  406. package/utils-CMHKYKlz.cjs +0 -1
  407. package/utils-__vrf9VZ.cjs +0 -1
  408. package/variables-B3KEYyhW.cjs +0 -1
  409. package/variables-DzXcMW2k.js +0 -5
@@ -1,1043 +0,0 @@
1
- import V, { useRef as x, useEffect as q, useMemo as j, useState as se } from "react";
2
- import { $ as Ie, b as we, m as ue, c as xe } from "./utils-DFIwp4PB.js";
3
- import { $ as he, a as Y, c as Fe, d as ye, e as Ce } from "./mergeProps-BSsN7Bgk.js";
4
- import { b as Pe, c as De, f as Me } from "./usePress-DMUpU0GU.js";
5
- import { $ as J } from "./useEvent-DpBHTuHJ.js";
6
- import { a as Be, b as pe } from "./scrollIntoView-ClEACHUk.js";
7
- import { $ as Re } from "./FocusScope-Bj40Ir-g.js";
8
- import { h as Le, o as Oe, f as ve } from "./useHover-D6bNIkU0.js";
9
- import { b as ae } from "./useFocusable-DXlMChFC.js";
10
- import { flushSync as ze } from "react-dom";
11
- import { $ as Ue } from "./context-CGNJ3grH.js";
12
- import { $ as Ve } from "./useDescription-BLmIkYCq.js";
13
- import { $ as He } from "./useControlledState-u436Wbp1.js";
14
- function be(n, e) {
15
- const t = x(!0), l = x(null);
16
- he(() => (t.current = !0, () => {
17
- t.current = !1;
18
- }), []), he(() => {
19
- t.current ? t.current = !1 : (!l.current || e.some((i, c) => !Object.is(i, l[c]))) && n(), l.current = e;
20
- }, e);
21
- }
22
- const We = "react-aria-clear-focus", Ge = "react-aria-focus";
23
- function H(n) {
24
- return Le() ? n.metaKey : n.ctrlKey;
25
- }
26
- const qe = 500;
27
- function je(n) {
28
- let { isDisabled: e, onLongPressStart: t, onLongPressEnd: l, onLongPress: i, threshold: c = qe, accessibilityDescription: r } = n;
29
- const d = x(void 0);
30
- let { addGlobalListener: a, removeGlobalListener: K } = Ie(), { pressProps: E } = Pe({
31
- isDisabled: e,
32
- onPressStart(v) {
33
- if (v.continuePropagation(), (v.pointerType === "mouse" || v.pointerType === "touch") && (t && t({
34
- ...v,
35
- type: "longpressstart"
36
- }), d.current = setTimeout(() => {
37
- v.target.dispatchEvent(new PointerEvent("pointercancel", {
38
- bubbles: !0
39
- })), we(v.target).activeElement !== v.target && ue(v.target), i && i({
40
- ...v,
41
- type: "longpress"
42
- }), d.current = void 0;
43
- }, c), v.pointerType === "touch")) {
44
- let m = (b) => {
45
- b.preventDefault();
46
- };
47
- a(v.target, "contextmenu", m, {
48
- once: !0
49
- }), a(window, "pointerup", () => {
50
- setTimeout(() => {
51
- K(v.target, "contextmenu", m);
52
- }, 30);
53
- }, {
54
- once: !0
55
- });
56
- }
57
- },
58
- onPressEnd(v) {
59
- d.current && clearTimeout(d.current), l && (v.pointerType === "mouse" || v.pointerType === "touch") && l({
60
- ...v,
61
- type: "longpressend"
62
- });
63
- }
64
- }), $ = Ve(i && !e ? r : void 0);
65
- return {
66
- longPressProps: Y(E, $)
67
- };
68
- }
69
- function Te(n) {
70
- let e = Ze(we(n));
71
- e !== n && (e && Ye(e, n), n && Ee(n, e));
72
- }
73
- function Ye(n, e) {
74
- n.dispatchEvent(new FocusEvent("blur", {
75
- relatedTarget: e
76
- })), n.dispatchEvent(new FocusEvent("focusout", {
77
- bubbles: !0,
78
- relatedTarget: e
79
- }));
80
- }
81
- function Ee(n, e) {
82
- n.dispatchEvent(new FocusEvent("focus", {
83
- relatedTarget: e
84
- })), n.dispatchEvent(new FocusEvent("focusin", {
85
- bubbles: !0,
86
- relatedTarget: e
87
- }));
88
- }
89
- function Ze(n) {
90
- let e = xe(n), t = e == null ? void 0 : e.getAttribute("aria-activedescendant");
91
- return t && n.getElementById(t) || e;
92
- }
93
- function fe(n) {
94
- return Oe() ? n.altKey : n.ctrlKey;
95
- }
96
- function re(n, e) {
97
- var t, l;
98
- let i = `[data-key="${CSS.escape(String(e))}"]`, c = (t = n.current) === null || t === void 0 ? void 0 : t.dataset.collection;
99
- return c && (i = `[data-collection="${CSS.escape(c)}"]${i}`), (l = n.current) === null || l === void 0 ? void 0 : l.querySelector(i);
100
- }
101
- const ke = /* @__PURE__ */ new WeakMap();
102
- function Je(n) {
103
- let e = Fe();
104
- return ke.set(n, e), e;
105
- }
106
- function Qe(n) {
107
- return ke.get(n);
108
- }
109
- const Xe = 1e3;
110
- function Ne(n) {
111
- let { keyboardDelegate: e, selectionManager: t, onTypeSelect: l } = n, i = x({
112
- search: "",
113
- timeout: void 0
114
- }).current, c = (r) => {
115
- let d = _e(r.key);
116
- if (!(!d || r.ctrlKey || r.metaKey || !r.currentTarget.contains(r.target) || i.search.length === 0 && d === " ")) {
117
- if (d === " " && i.search.trim().length > 0 && (r.preventDefault(), "continuePropagation" in r || r.stopPropagation()), i.search += d, e.getKeyForSearch != null) {
118
- let a = e.getKeyForSearch(i.search, t.focusedKey);
119
- a == null && (a = e.getKeyForSearch(i.search)), a != null && (t.setFocusedKey(a), l && l(a));
120
- }
121
- clearTimeout(i.timeout), i.timeout = setTimeout(() => {
122
- i.search = "";
123
- }, Xe);
124
- }
125
- };
126
- return {
127
- typeSelectProps: {
128
- // Using a capturing listener to catch the keydown event before
129
- // other hooks in order to handle the Spacebar event.
130
- onKeyDownCapture: e.getKeyForSearch ? c : void 0
131
- }
132
- };
133
- }
134
- function _e(n) {
135
- return n.length === 1 || !/^[A-Z]/i.test(n) ? n : "";
136
- }
137
- function mt(n) {
138
- let { selectionManager: e, keyboardDelegate: t, ref: l, autoFocus: i = !1, shouldFocusWrap: c = !1, disallowEmptySelection: r = !1, disallowSelectAll: d = !1, escapeKeyBehavior: a = "clearSelection", selectOnFocus: K = e.selectionBehavior === "replace", disallowTypeAhead: E = !1, shouldUseVirtualFocus: $, allowsTabNavigation: v = !1, isVirtualized: m, scrollRef: b = l, linkBehavior: k = "action" } = n, { direction: y } = Ue(), h = De(), S = (o) => {
139
- var f;
140
- if (o.altKey && o.key === "Tab" && o.preventDefault(), !(!((f = l.current) === null || f === void 0) && f.contains(o.target))) return;
141
- const s = (u, z) => {
142
- if (u != null) {
143
- if (e.isLink(u) && k === "selection" && K && !fe(o)) {
144
- ze(() => {
145
- e.setFocusedKey(u, z);
146
- });
147
- let U = re(l, u), de = e.getItemProps(u);
148
- U && h.open(U, o, de.href, de.routerOptions);
149
- return;
150
- }
151
- if (e.setFocusedKey(u, z), e.isLink(u) && k === "override") return;
152
- o.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(u) : K && !fe(o) && e.replaceSelection(u);
153
- }
154
- };
155
- switch (o.key) {
156
- case "ArrowDown":
157
- if (t.getKeyBelow) {
158
- var g, T, D;
159
- let u = e.focusedKey != null ? (g = t.getKeyBelow) === null || g === void 0 ? void 0 : g.call(t, e.focusedKey) : (T = t.getFirstKey) === null || T === void 0 ? void 0 : T.call(t);
160
- u == null && c && (u = (D = t.getFirstKey) === null || D === void 0 ? void 0 : D.call(t, e.focusedKey)), u != null && (o.preventDefault(), s(u));
161
- }
162
- break;
163
- case "ArrowUp":
164
- if (t.getKeyAbove) {
165
- var R, O, N;
166
- let u = e.focusedKey != null ? (R = t.getKeyAbove) === null || R === void 0 ? void 0 : R.call(t, e.focusedKey) : (O = t.getLastKey) === null || O === void 0 ? void 0 : O.call(t);
167
- u == null && c && (u = (N = t.getLastKey) === null || N === void 0 ? void 0 : N.call(t, e.focusedKey)), u != null && (o.preventDefault(), s(u));
168
- }
169
- break;
170
- case "ArrowLeft":
171
- if (t.getKeyLeftOf) {
172
- var _, ee, te;
173
- let u = e.focusedKey != null ? (_ = t.getKeyLeftOf) === null || _ === void 0 ? void 0 : _.call(t, e.focusedKey) : null;
174
- u == null && c && (u = y === "rtl" ? (ee = t.getFirstKey) === null || ee === void 0 ? void 0 : ee.call(t, e.focusedKey) : (te = t.getLastKey) === null || te === void 0 ? void 0 : te.call(t, e.focusedKey)), u != null && (o.preventDefault(), s(u, y === "rtl" ? "first" : "last"));
175
- }
176
- break;
177
- case "ArrowRight":
178
- if (t.getKeyRightOf) {
179
- var le, ie, ne;
180
- let u = e.focusedKey != null ? (le = t.getKeyRightOf) === null || le === void 0 ? void 0 : le.call(t, e.focusedKey) : null;
181
- u == null && c && (u = y === "rtl" ? (ie = t.getLastKey) === null || ie === void 0 ? void 0 : ie.call(t, e.focusedKey) : (ne = t.getFirstKey) === null || ne === void 0 ? void 0 : ne.call(t, e.focusedKey)), u != null && (o.preventDefault(), s(u, y === "rtl" ? "last" : "first"));
182
- }
183
- break;
184
- case "Home":
185
- if (t.getFirstKey) {
186
- if (e.focusedKey === null && o.shiftKey) return;
187
- o.preventDefault();
188
- let u = t.getFirstKey(e.focusedKey, H(o));
189
- e.setFocusedKey(u), u != null && (H(o) && o.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(u) : K && e.replaceSelection(u));
190
- }
191
- break;
192
- case "End":
193
- if (t.getLastKey) {
194
- if (e.focusedKey === null && o.shiftKey) return;
195
- o.preventDefault();
196
- let u = t.getLastKey(e.focusedKey, H(o));
197
- e.setFocusedKey(u), u != null && (H(o) && o.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(u) : K && e.replaceSelection(u));
198
- }
199
- break;
200
- case "PageDown":
201
- if (t.getKeyPageBelow && e.focusedKey != null) {
202
- let u = t.getKeyPageBelow(e.focusedKey);
203
- u != null && (o.preventDefault(), s(u));
204
- }
205
- break;
206
- case "PageUp":
207
- if (t.getKeyPageAbove && e.focusedKey != null) {
208
- let u = t.getKeyPageAbove(e.focusedKey);
209
- u != null && (o.preventDefault(), s(u));
210
- }
211
- break;
212
- case "a":
213
- H(o) && e.selectionMode === "multiple" && d !== !0 && (o.preventDefault(), e.selectAll());
214
- break;
215
- case "Escape":
216
- a === "clearSelection" && !r && e.selectedKeys.size !== 0 && (o.stopPropagation(), o.preventDefault(), e.clearSelection());
217
- break;
218
- case "Tab":
219
- if (!v) {
220
- if (o.shiftKey) l.current.focus();
221
- else {
222
- let u = Re(l.current, {
223
- tabbable: !0
224
- }), z, U;
225
- do
226
- U = u.lastChild(), U && (z = U);
227
- while (U);
228
- z && !z.contains(document.activeElement) && ue(z);
229
- }
230
- break;
231
- }
232
- }
233
- }, p = x({
234
- top: 0,
235
- left: 0
236
- });
237
- J(b, "scroll", m ? void 0 : () => {
238
- var o, f, s, g;
239
- p.current = {
240
- top: (s = (o = b.current) === null || o === void 0 ? void 0 : o.scrollTop) !== null && s !== void 0 ? s : 0,
241
- left: (g = (f = b.current) === null || f === void 0 ? void 0 : f.scrollLeft) !== null && g !== void 0 ? g : 0
242
- };
243
- });
244
- let F = (o) => {
245
- if (e.isFocused) {
246
- o.currentTarget.contains(o.target) || e.setFocused(!1);
247
- return;
248
- }
249
- if (o.currentTarget.contains(o.target)) {
250
- if (e.setFocused(!0), e.focusedKey == null) {
251
- var f, s;
252
- let D = (O) => {
253
- O != null && (e.setFocusedKey(O), K && !e.isSelected(O) && e.replaceSelection(O));
254
- }, R = o.relatedTarget;
255
- var g, T;
256
- R && o.currentTarget.compareDocumentPosition(R) & Node.DOCUMENT_POSITION_FOLLOWING ? D((g = e.lastSelectedKey) !== null && g !== void 0 ? g : (f = t.getLastKey) === null || f === void 0 ? void 0 : f.call(t)) : D((T = e.firstSelectedKey) !== null && T !== void 0 ? T : (s = t.getFirstKey) === null || s === void 0 ? void 0 : s.call(t));
257
- } else !m && b.current && (b.current.scrollTop = p.current.top, b.current.scrollLeft = p.current.left);
258
- if (e.focusedKey != null && b.current) {
259
- let D = re(l, e.focusedKey);
260
- D instanceof HTMLElement && (!D.contains(document.activeElement) && !$ && ue(D), ve() === "keyboard" && pe(D, {
261
- containingElement: l.current
262
- }));
263
- }
264
- }
265
- }, A = (o) => {
266
- o.currentTarget.contains(o.relatedTarget) || e.setFocused(!1);
267
- }, I = x(!1);
268
- J(l, Ge, $ ? (o) => {
269
- let { detail: f } = o;
270
- o.stopPropagation(), e.setFocused(!0), (f == null ? void 0 : f.focusStrategy) === "first" && (I.current = !0);
271
- } : void 0);
272
- let M = ye(() => {
273
- var o, f;
274
- let s = (f = (o = t.getFirstKey) === null || o === void 0 ? void 0 : o.call(t)) !== null && f !== void 0 ? f : null;
275
- if (s == null) {
276
- let g = xe();
277
- Te(l.current), Ee(g, null), e.collection.size > 0 && (I.current = !1);
278
- } else
279
- e.setFocusedKey(s), I.current = !1;
280
- });
281
- be(() => {
282
- I.current && M();
283
- }, [
284
- e.collection,
285
- M
286
- ]);
287
- let P = ye(() => {
288
- e.collection.size > 0 && (I.current = !1);
289
- });
290
- be(() => {
291
- P();
292
- }, [
293
- e.focusedKey,
294
- P
295
- ]), J(l, We, $ ? (o) => {
296
- var f;
297
- o.stopPropagation(), e.setFocused(!1), !((f = o.detail) === null || f === void 0) && f.clearFocusKey && e.setFocusedKey(null);
298
- } : void 0);
299
- const W = x(i), B = x(!1);
300
- q(() => {
301
- if (W.current) {
302
- var o, f;
303
- let T = null;
304
- var s;
305
- i === "first" && (T = (s = (o = t.getFirstKey) === null || o === void 0 ? void 0 : o.call(t)) !== null && s !== void 0 ? s : null);
306
- var g;
307
- i === "last" && (T = (g = (f = t.getLastKey) === null || f === void 0 ? void 0 : f.call(t)) !== null && g !== void 0 ? g : null);
308
- let D = e.selectedKeys;
309
- if (D.size) {
310
- for (let R of D) if (e.canSelectItem(R)) {
311
- T = R;
312
- break;
313
- }
314
- }
315
- e.setFocused(!0), e.setFocusedKey(T), T == null && !$ && l.current && ae(l.current), e.collection.size > 0 && (W.current = !1, B.current = !0);
316
- }
317
- });
318
- let L = x(e.focusedKey), w = x(null);
319
- q(() => {
320
- if (e.isFocused && e.focusedKey != null && (e.focusedKey !== L.current || B.current) && b.current && l.current) {
321
- let o = ve(), f = re(l, e.focusedKey);
322
- if (!(f instanceof HTMLElement))
323
- return;
324
- (o === "keyboard" || B.current) && (w.current && cancelAnimationFrame(w.current), w.current = requestAnimationFrame(() => {
325
- b.current && (Be(b.current, f), o !== "virtual" && pe(f, {
326
- containingElement: l.current
327
- }));
328
- }));
329
- }
330
- !$ && e.isFocused && e.focusedKey == null && L.current != null && l.current && ae(l.current), L.current = e.focusedKey, B.current = !1;
331
- }), q(() => () => {
332
- w.current && cancelAnimationFrame(w.current);
333
- }, []), J(l, "react-aria-focus-scope-restore", (o) => {
334
- o.preventDefault(), e.setFocused(!0);
335
- });
336
- let G = {
337
- onKeyDown: S,
338
- onFocus: F,
339
- onBlur: A,
340
- onMouseDown(o) {
341
- b.current === o.target && o.preventDefault();
342
- }
343
- }, { typeSelectProps: Q } = Ne({
344
- keyboardDelegate: t,
345
- selectionManager: e
346
- });
347
- E || (G = Y(Q, G));
348
- let Z;
349
- $ || (Z = e.focusedKey == null ? 0 : -1);
350
- let X = Je(e.collection);
351
- return {
352
- collectionProps: Y(G, {
353
- tabIndex: Z,
354
- "data-collection": X
355
- })
356
- };
357
- }
358
- function gt(n) {
359
- let { id: e, selectionManager: t, key: l, ref: i, shouldSelectOnPressUp: c, shouldUseVirtualFocus: r, focus: d, isDisabled: a, onAction: K, allowsDifferentPressOrigin: E, linkBehavior: $ = "action" } = n, v = De();
360
- e = Fe(e);
361
- let m = (s) => {
362
- if (s.pointerType === "keyboard" && fe(s)) t.toggleSelection(l);
363
- else {
364
- if (t.selectionMode === "none") return;
365
- if (t.isLink(l)) {
366
- if ($ === "selection" && i.current) {
367
- let g = t.getItemProps(l);
368
- v.open(i.current, s, g.href, g.routerOptions), t.setSelectedKeys(t.selectedKeys);
369
- return;
370
- } else if ($ === "override" || $ === "none") return;
371
- }
372
- t.selectionMode === "single" ? t.isSelected(l) && !t.disallowEmptySelection ? t.toggleSelection(l) : t.replaceSelection(l) : s && s.shiftKey ? t.extendSelection(l) : t.selectionBehavior === "toggle" || s && (H(s) || s.pointerType === "touch" || s.pointerType === "virtual") ? t.toggleSelection(l) : t.replaceSelection(l);
373
- }
374
- };
375
- q(() => {
376
- l === t.focusedKey && t.isFocused && (r ? Te(i.current) : d ? d() : document.activeElement !== i.current && i.current && ae(i.current));
377
- }, [
378
- i,
379
- l,
380
- t.focusedKey,
381
- t.childFocusStrategy,
382
- t.isFocused,
383
- r
384
- ]), a = a || t.isDisabled(l);
385
- let b = {};
386
- !r && !a ? b = {
387
- tabIndex: l === t.focusedKey ? 0 : -1,
388
- onFocus(s) {
389
- s.target === i.current && t.setFocusedKey(l);
390
- }
391
- } : a && (b.onMouseDown = (s) => {
392
- s.preventDefault();
393
- });
394
- let k = t.isLink(l) && $ === "override", y = t.isLink(l) && $ !== "selection" && $ !== "none", h = !a && t.canSelectItem(l) && !k, S = (K || y) && !a, p = S && (t.selectionBehavior === "replace" ? !h : !h || t.isEmpty), F = S && h && t.selectionBehavior === "replace", A = p || F, I = x(null), M = A && h, P = x(!1), W = x(!1), B = t.getItemProps(l), L = (s) => {
395
- K && K(), y && i.current && v.open(i.current, s, B.href, B.routerOptions);
396
- }, w = {
397
- ref: i
398
- };
399
- if (c ? (w.onPressStart = (s) => {
400
- I.current = s.pointerType, P.current = M, s.pointerType === "keyboard" && (!A || me()) && m(s);
401
- }, E ? (w.onPressUp = p ? void 0 : (s) => {
402
- s.pointerType === "mouse" && h && m(s);
403
- }, w.onPress = p ? L : (s) => {
404
- s.pointerType !== "keyboard" && s.pointerType !== "mouse" && h && m(s);
405
- }) : w.onPress = (s) => {
406
- if (p || F && s.pointerType !== "mouse") {
407
- if (s.pointerType === "keyboard" && !$e()) return;
408
- L(s);
409
- } else s.pointerType !== "keyboard" && h && m(s);
410
- }) : (w.onPressStart = (s) => {
411
- I.current = s.pointerType, P.current = M, W.current = p, h && (s.pointerType === "mouse" && !p || s.pointerType === "keyboard" && (!S || me())) && m(s);
412
- }, w.onPress = (s) => {
413
- (s.pointerType === "touch" || s.pointerType === "pen" || s.pointerType === "virtual" || s.pointerType === "keyboard" && A && $e() || s.pointerType === "mouse" && W.current) && (A ? L(s) : h && m(s));
414
- }), b["data-collection"] = Qe(t.collection), b["data-key"] = l, w.preventFocusOnPress = r, r && (w = Y(w, {
415
- onPressStart(s) {
416
- s.pointerType !== "touch" && (t.setFocused(!0), t.setFocusedKey(l));
417
- },
418
- onPress(s) {
419
- s.pointerType === "touch" && (t.setFocused(!0), t.setFocusedKey(l));
420
- }
421
- })), B)
422
- for (let s of [
423
- "onPressStart",
424
- "onPressEnd",
425
- "onPressChange",
426
- "onPress",
427
- "onPressUp",
428
- "onClick"
429
- ]) B[s] && (w[s] = Ce(w[s], B[s]));
430
- let { pressProps: G, isPressed: Q } = Pe(w), Z = F ? (s) => {
431
- I.current === "mouse" && (s.stopPropagation(), s.preventDefault(), L(s));
432
- } : void 0, { longPressProps: X } = je({
433
- isDisabled: !M,
434
- onLongPress(s) {
435
- s.pointerType === "touch" && (m(s), t.setSelectionBehavior("toggle"));
436
- }
437
- }), o = (s) => {
438
- I.current === "touch" && P.current && s.preventDefault();
439
- }, f = $ !== "none" && t.isLink(l) ? (s) => {
440
- Me.isOpening || s.preventDefault();
441
- } : void 0;
442
- return {
443
- itemProps: Y(
444
- b,
445
- h || p || r && !a ? G : {},
446
- M ? X : {},
447
- {
448
- onDoubleClick: Z,
449
- onDragStartCapture: o,
450
- onClick: f,
451
- id: e
452
- },
453
- // Prevent DOM focus from moving on mouse down when using virtual focus
454
- r ? {
455
- onMouseDown: (s) => s.preventDefault()
456
- } : void 0
457
- ),
458
- isPressed: Q,
459
- isSelected: t.isSelected(l),
460
- isFocused: t.isFocused && t.focusedKey === l,
461
- isDisabled: a,
462
- allowsSelection: h,
463
- hasAction: A
464
- };
465
- }
466
- function $e() {
467
- let n = window.event;
468
- return (n == null ? void 0 : n.key) === "Enter";
469
- }
470
- function me() {
471
- let n = window.event;
472
- return (n == null ? void 0 : n.key) === " " || (n == null ? void 0 : n.code) === "Space";
473
- }
474
- class et {
475
- build(e, t) {
476
- return this.context = t, ge(() => this.iterateCollection(e));
477
- }
478
- *iterateCollection(e) {
479
- let { children: t, items: l } = e;
480
- if (V.isValidElement(t) && t.type === V.Fragment) yield* this.iterateCollection({
481
- children: t.props.children,
482
- items: l
483
- });
484
- else if (typeof t == "function") {
485
- if (!l) throw new Error("props.children was a function but props.items is missing");
486
- let i = 0;
487
- for (let c of l)
488
- yield* this.getFullNode({
489
- value: c,
490
- index: i
491
- }, {
492
- renderer: t
493
- }), i++;
494
- } else {
495
- let i = [];
496
- V.Children.forEach(t, (r) => {
497
- r && i.push(r);
498
- });
499
- let c = 0;
500
- for (let r of i) {
501
- let d = this.getFullNode({
502
- element: r,
503
- index: c
504
- }, {});
505
- for (let a of d)
506
- c++, yield a;
507
- }
508
- }
509
- }
510
- getKey(e, t, l, i) {
511
- if (e.key != null) return e.key;
512
- if (t.type === "cell" && t.key != null) return `${i}${t.key}`;
513
- let c = t.value;
514
- if (c != null) {
515
- var r;
516
- let d = (r = c.key) !== null && r !== void 0 ? r : c.id;
517
- if (d == null) throw new Error("No key found for item");
518
- return d;
519
- }
520
- return i ? `${i}.${t.index}` : `$.${t.index}`;
521
- }
522
- getChildState(e, t) {
523
- return {
524
- renderer: t.renderer || e.renderer
525
- };
526
- }
527
- *getFullNode(e, t, l, i) {
528
- if (V.isValidElement(e.element) && e.element.type === V.Fragment) {
529
- let y = [];
530
- V.Children.forEach(e.element.props.children, (S) => {
531
- y.push(S);
532
- });
533
- var c;
534
- let h = (c = e.index) !== null && c !== void 0 ? c : 0;
535
- for (const S of y) yield* this.getFullNode({
536
- element: S,
537
- index: h++
538
- }, t, l, i);
539
- return;
540
- }
541
- let r = e.element;
542
- if (!r && e.value && t && t.renderer) {
543
- let y = this.cache.get(e.value);
544
- if (y && (!y.shouldInvalidate || !y.shouldInvalidate(this.context))) {
545
- y.index = e.index, y.parentKey = i ? i.key : null, yield y;
546
- return;
547
- }
548
- r = t.renderer(e.value);
549
- }
550
- if (V.isValidElement(r)) {
551
- let y = r.type;
552
- if (typeof y != "function" && typeof y.getCollectionNode != "function") {
553
- let F = r.type;
554
- throw new Error(`Unknown element <${F}> in collection.`);
555
- }
556
- let h = y.getCollectionNode(r.props, this.context);
557
- var d;
558
- let S = (d = e.index) !== null && d !== void 0 ? d : 0, p = h.next();
559
- for (; !p.done && p.value; ) {
560
- let F = p.value;
561
- e.index = S;
562
- var a;
563
- let A = (a = F.key) !== null && a !== void 0 ? a : null;
564
- A == null && (A = F.element ? null : this.getKey(r, e, t, l));
565
- let M = [
566
- ...this.getFullNode({
567
- ...F,
568
- key: A,
569
- index: S,
570
- wrapper: tt(e.wrapper, F.wrapper)
571
- }, this.getChildState(t, F), l ? `${l}${r.key}` : r.key, i)
572
- ];
573
- for (let P of M) {
574
- var K, E;
575
- P.value = (E = (K = F.value) !== null && K !== void 0 ? K : e.value) !== null && E !== void 0 ? E : null, P.value && this.cache.set(P.value, P);
576
- var $;
577
- if (e.type && P.type !== e.type) throw new Error(`Unsupported type <${oe(P.type)}> in <${oe(($ = i == null ? void 0 : i.type) !== null && $ !== void 0 ? $ : "unknown parent type")}>. Only <${oe(e.type)}> is supported.`);
578
- S++, yield P;
579
- }
580
- p = h.next(M);
581
- }
582
- return;
583
- }
584
- if (e.key == null || e.type == null) return;
585
- let v = this;
586
- var m, b;
587
- let k = {
588
- type: e.type,
589
- props: e.props,
590
- key: e.key,
591
- parentKey: i ? i.key : null,
592
- value: (m = e.value) !== null && m !== void 0 ? m : null,
593
- level: i ? i.level + 1 : 0,
594
- index: e.index,
595
- rendered: e.rendered,
596
- textValue: (b = e.textValue) !== null && b !== void 0 ? b : "",
597
- "aria-label": e["aria-label"],
598
- wrapper: e.wrapper,
599
- shouldInvalidate: e.shouldInvalidate,
600
- hasChildNodes: e.hasChildNodes || !1,
601
- childNodes: ge(function* () {
602
- if (!e.hasChildNodes || !e.childNodes) return;
603
- let y = 0;
604
- for (let h of e.childNodes()) {
605
- h.key != null && (h.key = `${k.key}${h.key}`);
606
- let S = v.getFullNode({
607
- ...h,
608
- index: y
609
- }, v.getChildState(t, h), k.key, k);
610
- for (let p of S)
611
- y++, yield p;
612
- }
613
- })
614
- };
615
- yield k;
616
- }
617
- constructor() {
618
- this.cache = /* @__PURE__ */ new WeakMap();
619
- }
620
- }
621
- function ge(n) {
622
- let e = [], t = null;
623
- return {
624
- *[Symbol.iterator]() {
625
- for (let l of e) yield l;
626
- t || (t = n());
627
- for (let l of t)
628
- e.push(l), yield l;
629
- }
630
- };
631
- }
632
- function tt(n, e) {
633
- if (n && e) return (t) => n(e(t));
634
- if (n) return n;
635
- if (e) return e;
636
- }
637
- function oe(n) {
638
- return n[0].toUpperCase() + n.slice(1);
639
- }
640
- function Kt(n, e, t) {
641
- let l = j(() => new et(), []), { children: i, items: c, collection: r } = n;
642
- return j(() => {
643
- if (r) return r;
644
- let a = l.build({
645
- children: i,
646
- items: c
647
- }, t);
648
- return e(a);
649
- }, [
650
- l,
651
- i,
652
- c,
653
- r,
654
- t,
655
- e
656
- ]);
657
- }
658
- function lt(n, e) {
659
- return typeof e.getChildren == "function" ? e.getChildren(n.key) : n.childNodes;
660
- }
661
- function it(n) {
662
- return nt(n, 0);
663
- }
664
- function nt(n, e) {
665
- if (e < 0) return;
666
- let t = 0;
667
- for (let l of n) {
668
- if (t === e) return l;
669
- t++;
670
- }
671
- }
672
- function St(n) {
673
- let e;
674
- for (let t of n) e = t;
675
- return e;
676
- }
677
- function ce(n, e, t) {
678
- if (e.parentKey === t.parentKey) return e.index - t.index;
679
- let l = [
680
- ...Ke(n, e),
681
- e
682
- ], i = [
683
- ...Ke(n, t),
684
- t
685
- ], c = l.slice(0, i.length).findIndex((r, d) => r !== i[d]);
686
- return c !== -1 ? (e = l[c], t = i[c], e.index - t.index) : l.findIndex((r) => r === t) >= 0 ? 1 : (i.findIndex((r) => r === e) >= 0, -1);
687
- }
688
- function Ke(n, e) {
689
- let t = [], l = e;
690
- for (; (l == null ? void 0 : l.parentKey) != null; )
691
- l = n.getItem(l.parentKey), l && t.unshift(l);
692
- return t;
693
- }
694
- class C extends Set {
695
- constructor(e, t, l) {
696
- super(e), e instanceof C ? (this.anchorKey = t ?? e.anchorKey, this.currentKey = l ?? e.currentKey) : (this.anchorKey = t ?? null, this.currentKey = l ?? null);
697
- }
698
- }
699
- function st(n, e) {
700
- if (n.size !== e.size) return !1;
701
- for (let t of n)
702
- if (!e.has(t)) return !1;
703
- return !0;
704
- }
705
- function wt(n) {
706
- let { selectionMode: e = "none", disallowEmptySelection: t = !1, allowDuplicateSelectionEvents: l, selectionBehavior: i = "toggle", disabledBehavior: c = "all" } = n, r = x(!1), [, d] = se(!1), a = x(null), K = x(null), [, E] = se(null), $ = j(() => Se(n.selectedKeys), [
707
- n.selectedKeys
708
- ]), v = j(() => Se(n.defaultSelectedKeys, new C()), [
709
- n.defaultSelectedKeys
710
- ]), [m, b] = He($, v, n.onSelectionChange), k = j(() => n.disabledKeys ? new Set(n.disabledKeys) : /* @__PURE__ */ new Set(), [
711
- n.disabledKeys
712
- ]), [y, h] = se(i);
713
- i === "replace" && y === "toggle" && typeof m == "object" && m.size === 0 && h("replace");
714
- let S = x(i);
715
- return q(() => {
716
- i !== S.current && (h(i), S.current = i);
717
- }, [
718
- i
719
- ]), {
720
- selectionMode: e,
721
- disallowEmptySelection: t,
722
- selectionBehavior: y,
723
- setSelectionBehavior: h,
724
- get isFocused() {
725
- return r.current;
726
- },
727
- setFocused(p) {
728
- r.current = p, d(p);
729
- },
730
- get focusedKey() {
731
- return a.current;
732
- },
733
- get childFocusStrategy() {
734
- return K.current;
735
- },
736
- setFocusedKey(p, F = "first") {
737
- a.current = p, K.current = F, E(p);
738
- },
739
- selectedKeys: m,
740
- setSelectedKeys(p) {
741
- (l || !st(p, m)) && b(p);
742
- },
743
- disabledKeys: k,
744
- disabledBehavior: c
745
- };
746
- }
747
- function Se(n, e) {
748
- return n ? n === "all" ? "all" : new C(n) : e;
749
- }
750
- class Ae {
751
- /**
752
- * The type of selection that is allowed in the collection.
753
- */
754
- get selectionMode() {
755
- return this.state.selectionMode;
756
- }
757
- /**
758
- * Whether the collection allows empty selection.
759
- */
760
- get disallowEmptySelection() {
761
- return this.state.disallowEmptySelection;
762
- }
763
- /**
764
- * The selection behavior for the collection.
765
- */
766
- get selectionBehavior() {
767
- return this.state.selectionBehavior;
768
- }
769
- /**
770
- * Sets the selection behavior for the collection.
771
- */
772
- setSelectionBehavior(e) {
773
- this.state.setSelectionBehavior(e);
774
- }
775
- /**
776
- * Whether the collection is currently focused.
777
- */
778
- get isFocused() {
779
- return this.state.isFocused;
780
- }
781
- /**
782
- * Sets whether the collection is focused.
783
- */
784
- setFocused(e) {
785
- this.state.setFocused(e);
786
- }
787
- /**
788
- * The current focused key in the collection.
789
- */
790
- get focusedKey() {
791
- return this.state.focusedKey;
792
- }
793
- /** Whether the first or last child of the focused key should receive focus. */
794
- get childFocusStrategy() {
795
- return this.state.childFocusStrategy;
796
- }
797
- /**
798
- * Sets the focused key.
799
- */
800
- setFocusedKey(e, t) {
801
- (e == null || this.collection.getItem(e)) && this.state.setFocusedKey(e, t);
802
- }
803
- /**
804
- * The currently selected keys in the collection.
805
- */
806
- get selectedKeys() {
807
- return this.state.selectedKeys === "all" ? new Set(this.getSelectAllKeys()) : this.state.selectedKeys;
808
- }
809
- /**
810
- * The raw selection value for the collection.
811
- * Either 'all' for select all, or a set of keys.
812
- */
813
- get rawSelection() {
814
- return this.state.selectedKeys;
815
- }
816
- /**
817
- * Returns whether a key is selected.
818
- */
819
- isSelected(e) {
820
- if (this.state.selectionMode === "none") return !1;
821
- let t = this.getKey(e);
822
- return t == null ? !1 : this.state.selectedKeys === "all" ? this.canSelectItem(t) : this.state.selectedKeys.has(t);
823
- }
824
- /**
825
- * Whether the selection is empty.
826
- */
827
- get isEmpty() {
828
- return this.state.selectedKeys !== "all" && this.state.selectedKeys.size === 0;
829
- }
830
- /**
831
- * Whether all items in the collection are selected.
832
- */
833
- get isSelectAll() {
834
- if (this.isEmpty) return !1;
835
- if (this.state.selectedKeys === "all") return !0;
836
- if (this._isSelectAll != null) return this._isSelectAll;
837
- let e = this.getSelectAllKeys(), t = this.state.selectedKeys;
838
- return this._isSelectAll = e.every((l) => t.has(l)), this._isSelectAll;
839
- }
840
- get firstSelectedKey() {
841
- let e = null;
842
- for (let l of this.state.selectedKeys) {
843
- let i = this.collection.getItem(l);
844
- (!e || i && ce(this.collection, i, e) < 0) && (e = i);
845
- }
846
- var t;
847
- return (t = e == null ? void 0 : e.key) !== null && t !== void 0 ? t : null;
848
- }
849
- get lastSelectedKey() {
850
- let e = null;
851
- for (let l of this.state.selectedKeys) {
852
- let i = this.collection.getItem(l);
853
- (!e || i && ce(this.collection, i, e) > 0) && (e = i);
854
- }
855
- var t;
856
- return (t = e == null ? void 0 : e.key) !== null && t !== void 0 ? t : null;
857
- }
858
- get disabledKeys() {
859
- return this.state.disabledKeys;
860
- }
861
- get disabledBehavior() {
862
- return this.state.disabledBehavior;
863
- }
864
- /**
865
- * Extends the selection to the given key.
866
- */
867
- extendSelection(e) {
868
- if (this.selectionMode === "none") return;
869
- if (this.selectionMode === "single") {
870
- this.replaceSelection(e);
871
- return;
872
- }
873
- let t = this.getKey(e);
874
- if (t == null) return;
875
- let l;
876
- if (this.state.selectedKeys === "all") l = new C([
877
- t
878
- ], t, t);
879
- else {
880
- let r = this.state.selectedKeys;
881
- var i;
882
- let d = (i = r.anchorKey) !== null && i !== void 0 ? i : t;
883
- l = new C(r, d, t);
884
- var c;
885
- for (let a of this.getKeyRange(d, (c = r.currentKey) !== null && c !== void 0 ? c : t)) l.delete(a);
886
- for (let a of this.getKeyRange(t, d)) this.canSelectItem(a) && l.add(a);
887
- }
888
- this.state.setSelectedKeys(l);
889
- }
890
- getKeyRange(e, t) {
891
- let l = this.collection.getItem(e), i = this.collection.getItem(t);
892
- return l && i ? ce(this.collection, l, i) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
893
- }
894
- getKeyRangeInternal(e, t) {
895
- var l;
896
- if (!((l = this.layoutDelegate) === null || l === void 0) && l.getKeyRange) return this.layoutDelegate.getKeyRange(e, t);
897
- let i = [], c = e;
898
- for (; c != null; ) {
899
- let r = this.collection.getItem(c);
900
- if (r && (r.type === "item" || r.type === "cell" && this.allowsCellSelection) && i.push(c), c === t) return i;
901
- c = this.collection.getKeyAfter(c);
902
- }
903
- return [];
904
- }
905
- getKey(e) {
906
- let t = this.collection.getItem(e);
907
- if (!t || t.type === "cell" && this.allowsCellSelection) return e;
908
- for (; t && t.type !== "item" && t.parentKey != null; ) t = this.collection.getItem(t.parentKey);
909
- return !t || t.type !== "item" ? null : t.key;
910
- }
911
- /**
912
- * Toggles whether the given key is selected.
913
- */
914
- toggleSelection(e) {
915
- if (this.selectionMode === "none") return;
916
- if (this.selectionMode === "single" && !this.isSelected(e)) {
917
- this.replaceSelection(e);
918
- return;
919
- }
920
- let t = this.getKey(e);
921
- if (t == null) return;
922
- let l = new C(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
923
- l.has(t) ? l.delete(t) : this.canSelectItem(t) && (l.add(t), l.anchorKey = t, l.currentKey = t), !(this.disallowEmptySelection && l.size === 0) && this.state.setSelectedKeys(l);
924
- }
925
- /**
926
- * Replaces the selection with only the given key.
927
- */
928
- replaceSelection(e) {
929
- if (this.selectionMode === "none") return;
930
- let t = this.getKey(e);
931
- if (t == null) return;
932
- let l = this.canSelectItem(t) ? new C([
933
- t
934
- ], t, t) : new C();
935
- this.state.setSelectedKeys(l);
936
- }
937
- /**
938
- * Replaces the selection with the given keys.
939
- */
940
- setSelectedKeys(e) {
941
- if (this.selectionMode === "none") return;
942
- let t = new C();
943
- for (let l of e) {
944
- let i = this.getKey(l);
945
- if (i != null && (t.add(i), this.selectionMode === "single"))
946
- break;
947
- }
948
- this.state.setSelectedKeys(t);
949
- }
950
- getSelectAllKeys() {
951
- let e = [], t = (l) => {
952
- for (; l != null; ) {
953
- if (this.canSelectItem(l)) {
954
- var i;
955
- let r = this.collection.getItem(l);
956
- (r == null ? void 0 : r.type) === "item" && e.push(l);
957
- var c;
958
- r != null && r.hasChildNodes && (this.allowsCellSelection || r.type !== "item") && t((c = (i = it(lt(r, this.collection))) === null || i === void 0 ? void 0 : i.key) !== null && c !== void 0 ? c : null);
959
- }
960
- l = this.collection.getKeyAfter(l);
961
- }
962
- };
963
- return t(this.collection.getFirstKey()), e;
964
- }
965
- /**
966
- * Selects all items in the collection.
967
- */
968
- selectAll() {
969
- !this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
970
- }
971
- /**
972
- * Removes all keys from the selection.
973
- */
974
- clearSelection() {
975
- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new C());
976
- }
977
- /**
978
- * Toggles between select all and an empty selection.
979
- */
980
- toggleSelectAll() {
981
- this.isSelectAll ? this.clearSelection() : this.selectAll();
982
- }
983
- select(e, t) {
984
- this.selectionMode !== "none" && (this.selectionMode === "single" ? this.isSelected(e) && !this.disallowEmptySelection ? this.toggleSelection(e) : this.replaceSelection(e) : this.selectionBehavior === "toggle" || t && (t.pointerType === "touch" || t.pointerType === "virtual") ? this.toggleSelection(e) : this.replaceSelection(e));
985
- }
986
- /**
987
- * Returns whether the current selection is equal to the given selection.
988
- */
989
- isSelectionEqual(e) {
990
- if (e === this.state.selectedKeys) return !0;
991
- let t = this.selectedKeys;
992
- if (e.size !== t.size) return !1;
993
- for (let l of e)
994
- if (!t.has(l)) return !1;
995
- for (let l of t)
996
- if (!e.has(l)) return !1;
997
- return !0;
998
- }
999
- canSelectItem(e) {
1000
- var t;
1001
- if (this.state.selectionMode === "none" || this.state.disabledKeys.has(e)) return !1;
1002
- let l = this.collection.getItem(e);
1003
- return !(!l || !(l == null || (t = l.props) === null || t === void 0) && t.isDisabled || l.type === "cell" && !this.allowsCellSelection);
1004
- }
1005
- isDisabled(e) {
1006
- var t, l;
1007
- return this.state.disabledBehavior === "all" && (this.state.disabledKeys.has(e) || !!(!((l = this.collection.getItem(e)) === null || l === void 0 || (t = l.props) === null || t === void 0) && t.isDisabled));
1008
- }
1009
- isLink(e) {
1010
- var t, l;
1011
- return !!(!((l = this.collection.getItem(e)) === null || l === void 0 || (t = l.props) === null || t === void 0) && t.href);
1012
- }
1013
- getItemProps(e) {
1014
- var t;
1015
- return (t = this.collection.getItem(e)) === null || t === void 0 ? void 0 : t.props;
1016
- }
1017
- withCollection(e) {
1018
- return new Ae(e, this.state, {
1019
- allowsCellSelection: this.allowsCellSelection,
1020
- layoutDelegate: this.layoutDelegate || void 0
1021
- });
1022
- }
1023
- constructor(e, t, l) {
1024
- this.collection = e, this.state = t;
1025
- var i;
1026
- this.allowsCellSelection = (i = l == null ? void 0 : l.allowsCellSelection) !== null && i !== void 0 ? i : !1, this._isSelectAll = null, this.layoutDelegate = (l == null ? void 0 : l.layoutDelegate) || null;
1027
- }
1028
- }
1029
- export {
1030
- wt as $,
1031
- Kt as a,
1032
- Ae as b,
1033
- re as c,
1034
- gt as d,
1035
- mt as e,
1036
- lt as f,
1037
- Ne as g,
1038
- Ee as h,
1039
- St as i,
1040
- it as j,
1041
- nt as k,
1042
- je as l
1043
- };