@midas-ds/components 10.2.0 → 10.4.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 (440) hide show
  1. package/AccordionItem-BcsoC78F.cjs +1 -0
  2. package/{AccordionItem-DZT76sWu.js → AccordionItem-BqsgiVWV.js} +43 -41
  3. package/{BadgeContainer-D3RtqcPF.js → BadgeContainer-DM8TdyMT.js} +4 -4
  4. package/{BadgeContainer-DeUgqGqb.cjs → BadgeContainer-I1XA3OCl.cjs} +1 -1
  5. package/Breadcrumbs-CfW5IuyE.cjs +1 -0
  6. package/{Breadcrumbs-CmZXtTiS.js → Breadcrumbs-D7eoibWk.js} +85 -73
  7. package/{Button-iSiWjocA.cjs → Button-BXY5ZhqI.cjs} +1 -1
  8. package/{Button-CbFRzRrF.js → Button-BZUo7vsZ.js} +2 -2
  9. package/Button-CFYdzG0H.js +341 -0
  10. package/Button-DExMoP5f.cjs +1 -0
  11. package/Button.module-DEQtBYe5.cjs +1 -0
  12. package/Button.module-tti8HGxs.js +14 -0
  13. package/CHANGELOG.md +48 -0
  14. package/{Card-CaKKKv9k.js → Card-BaWSgtSF.js} +5 -5
  15. package/Card-Cc1TNPcQ.cjs +1 -0
  16. package/{CharacterCounter-CrY8QRuY.cjs → CharacterCounter-DSFBv3Rw.cjs} +1 -1
  17. package/CharacterCounter-cLhqPZlk.js +22 -0
  18. package/Checkbox-Co3h0hur.cjs +1 -0
  19. package/Checkbox-LuUwTZ3W.js +264 -0
  20. package/CheckboxGroup-CUA8_xSx.js +160 -0
  21. package/CheckboxGroup-DmUOM0xl.cjs +1 -0
  22. package/{Collection-C5ONNBqd.js → Collection--62xKPm9.js} +19 -18
  23. package/Collection-BtBX5IMY.cjs +1 -0
  24. package/{ColorSchemeSwitch-CbAWIJCg.js → ColorSchemeSwitch-Cwono7Ap.js} +48 -32
  25. package/ColorSchemeSwitch-DDXdSzqg.cjs +16 -0
  26. package/ComboBox-BBC7jhnm.cjs +1 -0
  27. package/{ComboBox-BCaqPEIH.js → ComboBox-HLIAbb2q.js} +360 -345
  28. package/DateField-B3VjOSde.cjs +1 -0
  29. package/DateField-CnLEi7uX.js +47 -0
  30. package/DateInputDivider-3BvwXXa9.cjs +1 -0
  31. package/{DateInputDivider-Dx8n1Lxp.js → DateInputDivider-Bi5N-C0c.js} +73 -73
  32. package/DateRangePicker-BPlZ12r8.cjs +6 -0
  33. package/{DateRangePicker-BmBvwqo6.js → DateRangePicker-CFOoGvut.js} +192 -189
  34. package/Dialog-CSnN6baf.cjs +1 -0
  35. package/{Dialog-CYxThuMl.js → Dialog-CtVrVuMr.js} +565 -538
  36. package/Dialog-SqciohRY.js +221 -0
  37. package/Dialog-pSSy1zwf.cjs +1 -0
  38. package/DragAndDrop-BoEd260f.cjs +1 -0
  39. package/{DragAndDrop-CSwmPhxC.js → DragAndDrop-DkSTL28C.js} +8 -8
  40. package/{Dropdown-nkjzsVYX.js → Dropdown-CkBp70BH.js} +2 -2
  41. package/{Dropdown-CaGon9OR.cjs → Dropdown-DAsVShlt.cjs} +1 -1
  42. package/FieldError-B3YFj-an.js +23 -0
  43. package/{FieldError-CZikNDxX.js → FieldError-BbR-29BM.js} +8 -8
  44. package/{FieldError-DqdfJ3fs.cjs → FieldError-MVsU-Mgw.cjs} +1 -1
  45. package/{FieldError-BZw8UzBk.cjs → FieldError-bRTpchvr.cjs} +1 -1
  46. package/{FileUpload-ULwcYDxs.js → FileUpload-B4rv-wke.js} +502 -480
  47. package/{FileUpload-DYRZ0M9F.cjs → FileUpload-BwMhyLjG.cjs} +2 -2
  48. package/{FocusScope-DwIqdYpQ.js → FocusScope-D_hwN_TJ.js} +38 -37
  49. package/FocusScope-vcXLOQiu.cjs +1 -0
  50. package/Group-CpkUzEAs.js +45 -0
  51. package/Group-DOpbdoAi.cjs +1 -0
  52. package/Heading-CKTR4sOz.cjs +1 -0
  53. package/{Heading-BY5-QN4S.js → Heading-NxtGri2i.js} +7 -7
  54. package/{Hidden-B5ir3Lei.js → Hidden-C9KWUR7b.js} +2 -2
  55. package/{InfoBanner-CVIBFSWx.js → InfoBanner-CBUoad7A.js} +45 -36
  56. package/InfoBanner-CVry6Y8i.cjs +1 -0
  57. package/Input-LnjmFI1x.js +42 -0
  58. package/Input-MJji5hhq.cjs +1 -0
  59. package/Label-CNmTN1YY.cjs +1 -0
  60. package/Label-TVxwGZ-O.js +78 -0
  61. package/Layout-Dw-oCqxd.cjs +16 -0
  62. package/Layout-amz9BESl.js +498 -0
  63. package/{Link-B-nus-FT.js → Link-Bn8V3ZI0.js} +20 -19
  64. package/Link-CidjjqHb.cjs +1 -0
  65. package/{Link-DsnCtNeI.cjs → Link-D92ftFi2.cjs} +1 -1
  66. package/{Link-uFowN4qv.js → Link-DegonJfl.js} +1 -1
  67. package/LinkButton-CckYzfJ8.js +69 -0
  68. package/LinkButton-DKZ4z6zu.cjs +6 -0
  69. package/ListBox-BCz5-23H.cjs +1 -0
  70. package/{ListBox-DOi_y_Lt.js → ListBox-C-isJIHL.js} +56 -55
  71. package/{ListBoxButton-O6zN3P4W.js → ListBoxButton-C_krklY0.js} +1 -1
  72. package/{ListBoxButton-CFeNhJhr.cjs → ListBoxButton-DNm3gvcT.cjs} +1 -1
  73. package/{ListBoxSection-C1aLKL9p.js → ListBoxSection-BVR2xtOH.js} +9 -9
  74. package/ListBoxSection-CfQZoURJ.cjs +1 -0
  75. package/ListKeyboardDelegate-CPsZ7D83.cjs +1 -0
  76. package/{ListKeyboardDelegate-DNOzQ8nc.js → ListKeyboardDelegate-CY6t6y1t.js} +24 -15
  77. package/Logo-BpH0HC91.cjs +1 -0
  78. package/{Logo-BIrOEINM.js → Logo-ME4ffCue.js} +34 -26
  79. package/{OverlayArrow-DorA4Rbr.js → OverlayArrow-CfhSYL46.js} +28 -27
  80. package/OverlayArrow-DpZ1FqOd.cjs +1 -0
  81. package/Popover-C8VY1YKi.js +38 -0
  82. package/Popover-CnAsw3wI.cjs +1 -0
  83. package/{ProgressBar-gmAzSsrz.js → ProgressBar-BNCjpcv8.js} +2 -2
  84. package/ProgressBar-CcbxcWdT.cjs +1 -0
  85. package/Radio-B2zfEFdq.cjs +1 -0
  86. package/{Radio-_ukSkxPT.js → Radio-CZYibh9r.js} +81 -78
  87. package/{RangeCalendar-uXwoBL-O.js → RangeCalendar-B16b6tJD.js} +303 -294
  88. package/RangeCalendar-C1LFeOVk.cjs +11 -0
  89. package/SSRProvider-40TXmsUG.js +50 -0
  90. package/SSRProvider-Bc-sMhsT.cjs +1 -0
  91. package/SearchField-CML0kjtn.cjs +6 -0
  92. package/{SearchField-DYl2uo7o.js → SearchField-giwECmXS.js} +175 -166
  93. package/Select-DKey6CeS.cjs +1 -0
  94. package/Select-mwaAv20X.js +665 -0
  95. package/SelectionManager-D0jYUYcy.cjs +1 -0
  96. package/{SelectionManager-6H88Cv6B.js → SelectionManager-zsWy3vsd.js} +86 -86
  97. package/Separator-CxF-3jhR.cjs +1 -0
  98. package/{Separator-LYnFqh4L.js → Separator-Dn5LYN5I.js} +19 -20
  99. package/Spinner-CbJ6YAz-.js +53 -0
  100. package/Spinner-yHcy8YHC.cjs +6 -0
  101. package/TabList-7VtCiXxX.cjs +1 -0
  102. package/TabList-CthsM5h6.js +435 -0
  103. package/{Table-B_N7wUmA.js → Table-BcQPvJT3.js} +67 -69
  104. package/Table-DkvNp6xm.cjs +16 -0
  105. package/{Tag-g6HN-YCv.js → Tag-Bs8T2Ei7.js} +140 -141
  106. package/Tag-CFWZ2LQW.cjs +1 -0
  107. package/{Text-B_H68Tvq.js → Text-92cPh38G.js} +3 -3
  108. package/{Text-B2K-BJKQ.cjs → Text-CfcjRtke.cjs} +1 -1
  109. package/{Text-3MNwRMpI.cjs → Text-DBHWi5gA.cjs} +1 -1
  110. package/{Text-BN-g1iWi.js → Text-DlKqpvSa.js} +1 -1
  111. package/TextArea-DBNAVWqL.js +119 -0
  112. package/TextArea-XJDfeXRs.cjs +1 -0
  113. package/TextField-BdK9KEQ5.cjs +1 -0
  114. package/{TextField-DBaRuNj7.js → TextField-ByDJkig9.js} +22 -21
  115. package/{Toast-CjpldAI8.js → Toast-DPPvPhrF.js} +95 -87
  116. package/Toast-l1bKo2oA.cjs +1 -0
  117. package/ToggleButtonGroup-DH8IgR4G.cjs +1 -0
  118. package/{ToggleButtonGroup-Ceh9_yBM.js → ToggleButtonGroup-HOWNWtQZ.js} +47 -46
  119. package/{Tooltip-BAIjaYax.js → Tooltip-5mLWn_wO.js} +53 -51
  120. package/Tooltip-pN5W3IK6.cjs +1 -0
  121. package/{VisuallyHidden-D-4z1VgU.js → VisuallyHidden-CYfmTSCD.js} +8 -8
  122. package/VisuallyHidden-Doyzl0F7.cjs +1 -0
  123. package/accordion/index.cjs +1 -1
  124. package/accordion/index.js +1 -1
  125. package/{arrow-right-Cw48o2oW.cjs → arrow-right-QJ2gXPKQ.cjs} +1 -1
  126. package/assets/Button.css +1 -1
  127. package/assets/Checkbox.css +1 -1
  128. package/assets/FileUpload.css +1 -1
  129. package/assets/Label.css +1 -1
  130. package/assets/LinkButton.css +1 -1
  131. package/assets/Popover.css +1 -0
  132. package/assets/RangeCalendar.css +1 -1
  133. package/assets/SearchField.css +1 -1
  134. package/assets/Spinner.css +1 -1
  135. package/assets/TabList.css +1 -0
  136. package/badge/index.cjs +1 -1
  137. package/badge/index.js +1 -1
  138. package/breadcrumbs/Breadcrumbs.d.ts +11 -7
  139. package/breadcrumbs/index.cjs +1 -1
  140. package/breadcrumbs/index.d.ts +1 -1
  141. package/breadcrumbs/index.js +1 -1
  142. package/button/index.cjs +1 -1
  143. package/button/index.js +1 -1
  144. package/calendar/CalendarGrid.d.ts +1 -0
  145. package/calendar/index.cjs +1 -1
  146. package/calendar/index.js +1 -1
  147. package/card/index.cjs +1 -1
  148. package/card/index.js +1 -1
  149. package/character-counter/index.cjs +1 -1
  150. package/character-counter/index.js +1 -1
  151. package/{check-Dw9c62O4.cjs → check-D_KoootC.cjs} +1 -1
  152. package/checkbox/Checkbox.d.ts +4 -2
  153. package/checkbox/CheckboxGroup.d.ts +8 -8
  154. package/checkbox/CheckboxGroupFieldError.d.ts +8 -0
  155. package/checkbox/CheckboxGroupItem.d.ts +3 -0
  156. package/checkbox/CheckboxInner.d.ts +2 -0
  157. package/checkbox/SingleCheckbox.d.ts +3 -0
  158. package/checkbox/context.d.ts +3 -0
  159. package/checkbox/index.cjs +1 -1
  160. package/checkbox/index.d.ts +2 -1
  161. package/checkbox/index.js +2 -2
  162. package/checkbox/intl/translations.json.d.ts +7 -0
  163. package/checkbox/types.d.ts +16 -0
  164. package/checkbox/useSelectAll.d.ts +7 -0
  165. package/{chevron-down-C2E7aZ3N.cjs → chevron-down-jl83cllc.cjs} +1 -1
  166. package/{info-DkzVqB8I.js → circle-check-B9HYcH7Z.js} +4 -16
  167. package/{info-DlzSeKbc.cjs → circle-check-BGo8gML8.cjs} +2 -7
  168. package/color-scheme-switch/ColorSchemeSwitch.d.ts +1 -0
  169. package/color-scheme-switch/index.cjs +1 -1
  170. package/color-scheme-switch/index.js +1 -1
  171. package/color-scheme-switch/intl/translations.json.d.ts +15 -0
  172. package/combobox/ComboBox.d.ts +3 -1
  173. package/combobox/index.cjs +1 -1
  174. package/combobox/index.js +1 -1
  175. package/combobox/intl/translations.json.d.ts +11 -0
  176. package/{context-B8cn10po.js → context-CGNJ3grH.js} +11 -11
  177. package/context-Df3XbgBG.cjs +1 -0
  178. package/{createLucideIcon-DAY4oS-S.cjs → createLucideIcon-Cg_wkoIA.cjs} +1 -1
  179. package/date-field/DateField.d.ts +3 -0
  180. package/date-field/index.cjs +1 -1
  181. package/date-field/index.js +2 -2
  182. package/date-picker/DatePicker.d.ts +3 -0
  183. package/date-picker/DateRangePicker.d.ts +3 -0
  184. package/date-picker/index.cjs +1 -1
  185. package/date-picker/index.js +1 -1
  186. package/dropdown/index.cjs +1 -1
  187. package/dropdown/index.js +1 -1
  188. package/field-error/index.cjs +1 -1
  189. package/field-error/index.js +1 -1
  190. package/file-upload/FileUpload.d.ts +4 -0
  191. package/file-upload/index.cjs +1 -1
  192. package/file-upload/index.js +1 -1
  193. package/file-upload/intl/translations.json.d.ts +17 -0
  194. package/{getScrollParent-Ru2U2LlM.js → getScrollParent-CT_L9LUr.js} +1 -1
  195. package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-CsZ9ciml.cjs} +1 -1
  196. package/heading/index.cjs +1 -1
  197. package/heading/index.js +1 -1
  198. package/{index-BSMrH_Du.js → index-CGRFP4CC.js} +7 -7
  199. package/{index-D97L3EBk.cjs → index-Dsz3aiWt.cjs} +2 -2
  200. package/index.cjs +1 -1
  201. package/index.d.ts +1 -0
  202. package/index.js +105 -100
  203. package/inertValue-B3AFhVG4.cjs +1 -0
  204. package/info-BZwphdye.js +15 -0
  205. package/info-CIEIENo6.cjs +6 -0
  206. package/info-banner/index.cjs +1 -1
  207. package/info-banner/index.js +1 -1
  208. package/info-banner/intl/translations.json.d.ts +11 -0
  209. package/label/InfoPopover.d.ts +9 -0
  210. package/label/LabelWrapper.d.ts +11 -0
  211. package/label/index.cjs +1 -1
  212. package/label/index.d.ts +1 -0
  213. package/label/index.js +1 -1
  214. package/label/intl/translations.json.d.ts +11 -0
  215. package/layout/Layout.d.ts +1 -0
  216. package/layout/context/LayoutContext.d.ts +1 -0
  217. package/layout/index.cjs +1 -1
  218. package/layout/index.js +1 -1
  219. package/layout/intl/translations.json.d.ts +23 -0
  220. package/link/index.cjs +1 -1
  221. package/link/index.js +2 -2
  222. package/link-button/index.cjs +1 -1
  223. package/link-button/index.js +2 -2
  224. package/list-box/index.cjs +1 -1
  225. package/list-box/index.js +2 -2
  226. package/logo/index.cjs +1 -1
  227. package/logo/index.js +1 -1
  228. package/logo/intl/translations.json.d.ts +11 -0
  229. package/mergeProps-B5KXZAI3.cjs +1 -0
  230. package/mergeProps-C1U1OIeJ.js +115 -0
  231. package/modal/index.cjs +1 -1
  232. package/modal/index.js +2 -2
  233. package/modal/intl/translations.json.d.ts +11 -0
  234. package/package.json +1 -1
  235. package/popover/Popover.d.ts +7 -0
  236. package/popover/index.cjs +1 -0
  237. package/popover/index.d.ts +1 -0
  238. package/popover/index.js +4 -0
  239. package/progress-bar/index.cjs +1 -1
  240. package/progress-bar/index.js +1 -1
  241. package/radio/Radio.d.ts +4 -4
  242. package/radio/index.cjs +1 -1
  243. package/radio/index.js +1 -1
  244. package/scrollIntoView-BLnsPvFA.js +87 -0
  245. package/scrollIntoView-joIyo-Jt.cjs +1 -0
  246. package/search-field/index.cjs +1 -1
  247. package/search-field/index.js +1 -1
  248. package/search-field/intl/translations.json.d.ts +11 -0
  249. package/select/index.cjs +1 -1
  250. package/select/index.js +1 -1
  251. package/select/intl/translations.json.d.ts +17 -0
  252. package/spinner/Spinner.d.ts +1 -0
  253. package/spinner/index.cjs +1 -1
  254. package/spinner/index.js +1 -1
  255. package/spinner/intl/translations.json.d.ts +11 -0
  256. package/{square-arrow-out-up-right-BCAO2eJs.cjs → square-arrow-out-up-right-V4Gd08uI.cjs} +1 -1
  257. package/table/index.cjs +1 -1
  258. package/table/index.js +1 -1
  259. package/tabs/Tab.d.ts +4 -0
  260. package/tabs/TabList.d.ts +3 -0
  261. package/tabs/TabPanel.d.ts +4 -0
  262. package/tabs/Tabs.d.ts +11 -5
  263. package/tabs/index.cjs +1 -1
  264. package/tabs/index.d.ts +3 -0
  265. package/tabs/index.js +5 -2
  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/TextFieldBase.d.ts +2 -0
  271. package/textfield/index.cjs +1 -1
  272. package/textfield/index.js +1 -1
  273. package/textfield/intl/translations.json.d.ts +0 -72
  274. package/theme/index.cjs +1 -1
  275. package/theme/index.d.ts +5 -0
  276. package/theme/index.js +2 -2
  277. package/theme/tokens.d.ts +5 -0
  278. package/toast/Toast.d.ts +5 -2
  279. package/toast/index.cjs +1 -1
  280. package/toast/index.js +1 -1
  281. package/toggle-button/index.cjs +1 -1
  282. package/toggle-button/index.js +1 -1
  283. package/{tokens-p6pg1Cea.cjs → tokens-BghDnMdO.cjs} +1 -1
  284. package/{tokens-xp-7KMK7.js → tokens-fEwCQXDv.js} +16 -11
  285. package/tooltip/index.cjs +1 -1
  286. package/tooltip/index.js +1 -1
  287. package/{triangle-alert-C0lvfCYH.cjs → triangle-alert-DJW8U7jL.cjs} +1 -1
  288. package/{useButton-C-Lq7CNY.js → useButton-1-Jf-oHj.js} +6 -6
  289. package/useButton-D60q0SQw.cjs +1 -0
  290. package/{useDateFormatter-g2maMTGH.cjs → useDateFormatter-BJBt0jk_.cjs} +1 -1
  291. package/{useDateFormatter-C53Uxdli.js → useDateFormatter-BVCkxVdw.js} +2 -2
  292. package/{useEvent-Cyd2ZL0c.js → useEvent-CigwyJOw.js} +3 -3
  293. package/useEvent-DPxMu-X9.cjs +1 -0
  294. package/{useField-BPMAlIbU.js → useField-BEBXv5Mh.js} +7 -7
  295. package/useField-D1UkzeaI.cjs +1 -0
  296. package/{useFilter-ChIbnALW.js → useFilter-CousKe2K.js} +1 -1
  297. package/useFilter-e2oIVF_O.cjs +1 -0
  298. package/useFocusRing-B-A1OLhU.cjs +1 -0
  299. package/useFocusRing-DOfBqnUN.js +33 -0
  300. package/useFocusWithin-CG8mAt2D.cjs +1 -0
  301. package/useFocusWithin-T1ifEM_s.js +54 -0
  302. package/useFocusable-ChPA2Jc7.js +127 -0
  303. package/useFocusable-D7I1ujkW.cjs +1 -0
  304. package/useFormValidation-BlFGdPZB.cjs +1 -0
  305. package/{useFormValidation-R8hQIjWP.js → useFormValidation-BzzruZKm.js} +5 -5
  306. package/{useHasTabbableChild-DsD9AJwE.js → useHasTabbableChild-BE81d_ab.js} +2 -2
  307. package/useHasTabbableChild-CoQRpNbC.cjs +1 -0
  308. package/useHighlightSelectionDescription-BfR_vGOe.cjs +1 -0
  309. package/{useHighlightSelectionDescription-DFfcgbUj.js → useHighlightSelectionDescription-D73hrkmn.js} +14 -14
  310. package/useHover-BE_XKZKe.cjs +1 -0
  311. package/useHover-DQvJ3Y-W.js +262 -0
  312. package/useLabels-CSU0kbtJ.cjs +1 -0
  313. package/{useLabels-BZjoZA1Z.js → useLabels-LrKQiY11.js} +1 -1
  314. package/{useListState-DFQ9d-uE.js → useListState-CebsX_1d.js} +7 -7
  315. package/{useListState-Ca2-uZMO.cjs → useListState-DymkJGDF.cjs} +1 -1
  316. package/useLocalizedStringFormatter-BO2iZEL0.cjs +1 -0
  317. package/useLocalizedStringFormatter-BiX5BTlb.cjs +1 -0
  318. package/{useLocalizedStringFormatter-D07YB2e1.js → useLocalizedStringFormatter-CL9MUZ8A.js} +1 -1
  319. package/useLocalizedStringFormatter-N0AyjzbM.js +25 -0
  320. package/useObserveElement-MhzEsCkX.cjs +1 -0
  321. package/usePress-BooY_CAy.cjs +7 -0
  322. package/{usePress-CUJ3pMOw.js → usePress-DuR4pVsE.js} +154 -153
  323. package/{useSingleSelectListState-C-nB8cug.js → useSingleSelectListState-BLXvGjLI.js} +1 -1
  324. package/{useSingleSelectListState-MGNxUTum.cjs → useSingleSelectListState-BPhlCU26.cjs} +1 -1
  325. package/{useTextField-5OZQPyOW.js → useTextField-C-sUypsx.js} +14 -14
  326. package/useTextField-DnRrCg5o.cjs +1 -0
  327. package/{useUpdateEffect-sk3kiVGz.cjs → useUpdateEffect-C5YQs_1w.cjs} +1 -1
  328. package/utils/intl/useLocalizedStringFormatter.d.ts +2 -0
  329. package/utils-CoCR_Fce.js +234 -0
  330. package/utils-DHNZrQmj.cjs +1 -0
  331. package/utils-DJhAJHk_.js +152 -0
  332. package/utils-Dvdohqm9.cjs +1 -0
  333. package/{x-CvxiAZTW.cjs → x-H8Zrx8-x.cjs} +1 -1
  334. package/AccordionItem-Z_c9MpAM.cjs +0 -1
  335. package/Breadcrumbs-Cx09jwZZ.cjs +0 -1
  336. package/Button-DnhqHU01.cjs +0 -1
  337. package/Button-ZOQy9Ivu.js +0 -78
  338. package/Button.module-CMMhIrkn.js +0 -14
  339. package/Button.module-DO5s9hOk.cjs +0 -1
  340. package/Card-C0BFW3wJ.cjs +0 -1
  341. package/CharacterCounter-CPGdboVJ.js +0 -22
  342. package/Checkbox-CvFsn_FL.js +0 -380
  343. package/Checkbox-DSxGAJX2.cjs +0 -1
  344. package/CheckboxGroup-Bk9DPq4I.cjs +0 -1
  345. package/CheckboxGroup-Dij9zKlF.js +0 -54
  346. package/Collection-Csx3L9gh.cjs +0 -1
  347. package/ColorSchemeSwitch-JRrCyYVv.cjs +0 -16
  348. package/ComboBox-gveQKHU3.cjs +0 -1
  349. package/DateField-CAQlzuDD.js +0 -46
  350. package/DateField-deVVFwKA.cjs +0 -1
  351. package/DateInputDivider-DnUxETEC.cjs +0 -1
  352. package/DateRangePicker-BzfitoK0.cjs +0 -6
  353. package/Dialog-Bd5hK360.cjs +0 -1
  354. package/Dialog-Bxx8cBEq.js +0 -208
  355. package/Dialog-CwTEAujZ.cjs +0 -1
  356. package/DragAndDrop-HvycSrKY.cjs +0 -1
  357. package/FieldError-Dv3bBEjh.js +0 -23
  358. package/FocusScope-NaPbvuuS.cjs +0 -1
  359. package/Group-CeSsSQVC.js +0 -44
  360. package/Group-CgiqQHH1.cjs +0 -1
  361. package/Heading-DoJAtYZf.cjs +0 -1
  362. package/InfoBanner-BS-dAfzO.cjs +0 -1
  363. package/Input-D8Ku_FQz.js +0 -41
  364. package/Input-DKSAYvsw.cjs +0 -1
  365. package/Label-C9ivwkAd.js +0 -21
  366. package/Label-CUV21CAv.cjs +0 -1
  367. package/Label-DkDOsmUF.js +0 -16
  368. package/Label-IMWAyoKb.cjs +0 -1
  369. package/Layout-BWeHHnqU.cjs +0 -16
  370. package/Layout-CCt_2L1k.js +0 -468
  371. package/Link-SHMbeyIP.cjs +0 -1
  372. package/LinkButton-CuBilDML.js +0 -69
  373. package/LinkButton-CymMrcGL.cjs +0 -6
  374. package/ListBox-CDOsQChA.cjs +0 -1
  375. package/ListBoxSection-DGCP6xpf.cjs +0 -1
  376. package/ListKeyboardDelegate-BqMETvPv.cjs +0 -1
  377. package/LiveAnnouncer-B6177m92.js +0 -51
  378. package/LiveAnnouncer-CwEWPU8b.cjs +0 -1
  379. package/Logo-DT2_2O43.cjs +0 -1
  380. package/NumberFormatter-DewVDY5w.cjs +0 -1
  381. package/NumberFormatter-DgOUVrge.js +0 -119
  382. package/OverlayArrow-D75k-EMl.cjs +0 -1
  383. package/PressResponder-C06O3Z5P.cjs +0 -1
  384. package/PressResponder-CVEg5kND.js +0 -33
  385. package/ProgressBar-Bkw9zavs.cjs +0 -1
  386. package/ProgressBar-CEX2WNoW.js +0 -77
  387. package/ProgressBar-Dqh3ftSP.cjs +0 -1
  388. package/Radio-CDKrvQe4.cjs +0 -1
  389. package/RangeCalendar-cbCKBPZv.cjs +0 -11
  390. package/SearchField-6yBGiojX.cjs +0 -6
  391. package/Select-CpHjd1tp.cjs +0 -1
  392. package/Select-PvCqY7Lp.js +0 -646
  393. package/SelectionManager-C5NGBzvz.cjs +0 -1
  394. package/Separator-nPra6kD-.cjs +0 -1
  395. package/Spinner-D31SXm-U.js +0 -41
  396. package/Spinner-DAJtfxqJ.cjs +0 -6
  397. package/Table-D9vNc_y-.cjs +0 -16
  398. package/Tabs-Ct6D83aR.js +0 -404
  399. package/Tabs-Dtcl2oK2.cjs +0 -1
  400. package/Tag-CVFkzg3s.cjs +0 -1
  401. package/TextArea-DSiQ578a.js +0 -206
  402. package/TextArea-cVyGBRbL.cjs +0 -1
  403. package/TextField-B70CL2qz.cjs +0 -1
  404. package/Toast-DrkOGy4d.cjs +0 -1
  405. package/ToggleButtonGroup-BuU_6dYe.cjs +0 -1
  406. package/Tooltip-CiWg4zIC.cjs +0 -1
  407. package/VisuallyHidden-CtXvK_Tw.cjs +0 -1
  408. package/assets/Tabs.css +0 -1
  409. package/context-DjwhtgxQ.cjs +0 -1
  410. package/focusSafely-Bqfo_DH7.cjs +0 -1
  411. package/focusSafely-C48ucRUz.js +0 -56
  412. package/inertValue-BWmZ1afe.cjs +0 -1
  413. package/scrollIntoView-ClEACHUk.js +0 -57
  414. package/scrollIntoView-DRSoJp89.cjs +0 -1
  415. package/useButton-B1Fa-6qE.cjs +0 -1
  416. package/useCollator-C_ozeWLo.cjs +0 -1
  417. package/useCollator-CgZcHC8N.js +0 -11
  418. package/useDescription-CVKhFa3c.js +0 -32
  419. package/useDescription-DmQYSEES.cjs +0 -1
  420. package/useEvent-CjkbBniY.cjs +0 -1
  421. package/useField-B1RU0GKs.cjs +0 -1
  422. package/useFilter-CtIwF2qW.cjs +0 -1
  423. package/useFocusRing-BDGH3lpn.js +0 -82
  424. package/useFocusRing-CbImDrwF.cjs +0 -1
  425. package/useFocusable-CaedRTpB.js +0 -74
  426. package/useFocusable-CuPQ7Cm5.cjs +0 -1
  427. package/useFormValidation-ClximP89.cjs +0 -1
  428. package/useHasTabbableChild-DgphNvnk.cjs +0 -1
  429. package/useHighlightSelectionDescription-BizKjvPU.cjs +0 -1
  430. package/useHover-_mv5J4_q.cjs +0 -1
  431. package/useHover-qRAon4nS.js +0 -490
  432. package/useLabel-DDdAJ1JO.js +0 -23
  433. package/useLabel-m_S5xkHy.cjs +0 -1
  434. package/useLabels-BLOfc6Y-.cjs +0 -1
  435. package/useLocalizedStringFormatter-u9SJaOwk.cjs +0 -1
  436. package/useObserveElement-BzEr5D32.cjs +0 -1
  437. package/usePress-BFa6cT9o.cjs +0 -7
  438. package/useTextField-CtUDWsUl.cjs +0 -1
  439. package/utils-BNtZbAib.cjs +0 -1
  440. package/utils-HNTsIwux.js +0 -308
@@ -1,468 +0,0 @@
1
- import { jsx as e, jsxs as i, Fragment as P } from "react/jsx-runtime";
2
- import { G as E } from "./GridItem-DlbSdRmB.js";
3
- import * as u from "react";
4
- import { c as x } from "./clsx-OuTLNxxd.js";
5
- import { B as L } from "./Button-CbFRzRrF.js";
6
- import { $ as k } from "./Link-B-nus-FT.js";
7
- import { a as H, T as z } from "./Tooltip-BAIjaYax.js";
8
- import { a as C, B as y } from "./BadgeContainer-D3RtqcPF.js";
9
- import { c as g } from "./createLucideIcon-DeWljiyi.js";
10
- import { $ as S } from "./usePress-CUJ3pMOw.js";
11
- import { f as O } from "./tokens-xp-7KMK7.js";
12
- import { L as f } from "./Logo-BIrOEINM.js";
13
- import { X as $ } from "./x-JK7i-TQC.js";
14
- import './assets/Layout.css';/**
15
- * @license lucide-react v0.453.0 - ISC
16
- *
17
- * This source code is licensed under the ISC license.
18
- * See the LICENSE file in the root directory of this source tree.
19
- */
20
- const M = g("Menu", [
21
- ["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
22
- ["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
23
- ["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
24
- ]);
25
- /**
26
- * @license lucide-react v0.453.0 - ISC
27
- *
28
- * This source code is licensed under the ISC license.
29
- * See the LICENSE file in the root directory of this source tree.
30
- */
31
- const G = g("PanelLeftClose", [
32
- ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
33
- ["path", { d: "M9 3v18", key: "fh3hqa" }],
34
- ["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
35
- ]);
36
- /**
37
- * @license lucide-react v0.453.0 - ISC
38
- *
39
- * This source code is licensed under the ISC license.
40
- * See the LICENSE file in the root directory of this source tree.
41
- */
42
- const D = g("PanelLeftOpen", [
43
- ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
44
- ["path", { d: "M9 3v18", key: "fh3hqa" }],
45
- ["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
46
- ]), W = "_baseLayout_12xoh_4", j = "_mainContent_12xoh_13", q = "_header_12xoh_18", A = "_headerExternal_12xoh_29", R = "_headerContent_12xoh_44", F = "_logo_12xoh_63", X = "_headerItems_12xoh_72", J = "_toggleButton_12xoh_78", K = "_sidebar_12xoh_86", Q = "_main_12xoh_13", U = "_app_12xoh_123", V = "_sidebarOpened_12xoh_132", Y = "_sidebarHeader_12xoh_136", Z = "_appName_12xoh_148", ee = "_collapseButton_12xoh_155", ae = "_sidebarCollapsed_12xoh_164", te = "_userName_12xoh_174", ne = "_userTitle_12xoh_193", se = "_title_12xoh_205", oe = "_sidebarNav_12xoh_216", re = "_list_12xoh_222", ie = "_listGroupTitle_12xoh_229", le = "_listItem_12xoh_236", de = "_listItemCollapsed_12xoh_241", ce = "_listLink_12xoh_245", me = "_listLinkCollapsed_12xoh_290", he = "_active_12xoh_295", pe = "_backdrop_12xoh_309", _e = "_backdropOpened_12xoh_319", xe = "_skipToContent_12xoh_337", ue = "_navbar_12xoh_351", be = "_navbarList_12xoh_363", ve = "_navbarItem_12xoh_385", Ne = "_headerContentExternal_12xoh_425", fe = "_logoExternalContainer_12xoh_433", ke = "_logoExternal_12xoh_433", Ce = "_logoExternalDesktop_12xoh_445", ye = "_navbarWrapper_12xoh_454", a = {
47
- baseLayout: W,
48
- mainContent: j,
49
- header: q,
50
- headerExternal: A,
51
- headerContent: R,
52
- logo: F,
53
- headerItems: X,
54
- toggleButton: J,
55
- sidebar: K,
56
- main: Q,
57
- app: U,
58
- sidebarOpened: V,
59
- sidebarHeader: Y,
60
- appName: Z,
61
- collapseButton: ee,
62
- sidebarCollapsed: ae,
63
- userName: te,
64
- userTitle: ne,
65
- title: se,
66
- sidebarNav: oe,
67
- list: re,
68
- listGroupTitle: ie,
69
- listItem: le,
70
- listItemCollapsed: de,
71
- listLink: ce,
72
- listLinkCollapsed: me,
73
- active: he,
74
- backdrop: pe,
75
- backdropOpened: _e,
76
- skipToContent: xe,
77
- navbar: ue,
78
- navbarList: be,
79
- navbarItem: ve,
80
- headerContentExternal: Ne,
81
- logoExternalContainer: fe,
82
- logoExternal: ke,
83
- logoExternalDesktop: Ce,
84
- navbarWrapper: ye
85
- }, B = u.createContext(
86
- void 0
87
- ), Le = ({
88
- items: n,
89
- title: t,
90
- user: o,
91
- app: s,
92
- children: l,
93
- clientSideRouter: c,
94
- clientSideHref: r,
95
- headerChildren: h,
96
- isCollapsed: p,
97
- setIsCollapsed: m,
98
- isOpened: _,
99
- setIsOpened: b,
100
- variant: N
101
- }) => /* @__PURE__ */ e(
102
- B.Provider,
103
- {
104
- value: {
105
- items: n,
106
- title: t,
107
- user: o,
108
- app: s,
109
- headerChildren: h,
110
- isCollapsed: p,
111
- setIsCollapsed: m,
112
- isOpened: _,
113
- setIsOpened: b,
114
- clientSideRouter: c,
115
- clientSideHref: r,
116
- variant: N
117
- },
118
- children: l
119
- }
120
- ), v = () => {
121
- const n = u.useContext(B);
122
- if (!n)
123
- throw new Error("useLayoutContext must be used within a LayoutProvider");
124
- return n;
125
- }, w = ({
126
- title: n,
127
- href: t,
128
- icon: o,
129
- active: s,
130
- hasBadge: l
131
- }) => {
132
- const { isCollapsed: c, setIsOpened: r } = v(), [h, p] = u.useState(!1);
133
- return u.useEffect(() => {
134
- typeof window < "u" && p(s ?? window.location.pathname === t);
135
- }, [s, t]), c ? /* @__PURE__ */ i(H, { children: [
136
- /* @__PURE__ */ e(
137
- k,
138
- {
139
- href: t,
140
- "aria-label": n,
141
- className: x(
142
- a.listLink,
143
- a.listLinkCollapsed,
144
- h && a.active
145
- ),
146
- onPress: () => r == null ? void 0 : r(!1),
147
- children: /* @__PURE__ */ i(C, { children: [
148
- /* @__PURE__ */ e(
149
- o,
150
- {
151
- size: 20,
152
- "aria-label": n
153
- }
154
- ),
155
- l && /* @__PURE__ */ e(y, {})
156
- ] })
157
- }
158
- ),
159
- /* @__PURE__ */ e(z, { placement: "right", children: n })
160
- ] }) : /* @__PURE__ */ i(
161
- k,
162
- {
163
- href: t,
164
- "aria-label": n,
165
- className: x(a.listLink, h && a.active),
166
- onPress: () => r == null ? void 0 : r(!1),
167
- children: [
168
- /* @__PURE__ */ i(C, { children: [
169
- /* @__PURE__ */ e(o, { size: 20 }),
170
- l && /* @__PURE__ */ e(y, {})
171
- ] }),
172
- n
173
- ]
174
- }
175
- );
176
- }, ge = () => {
177
- const {
178
- items: n,
179
- app: t,
180
- isOpened: o,
181
- isCollapsed: s,
182
- setIsCollapsed: l,
183
- setIsOpened: c,
184
- clientSideRouter: r,
185
- clientSideHref: h
186
- } = v(), p = ({ group: m }) => /* @__PURE__ */ e("ul", { className: a.list, children: m.items.map((_, b) => /* @__PURE__ */ e(
187
- "li",
188
- {
189
- className: x(
190
- a.listItem,
191
- s && a.listItemCollapsed
192
- ),
193
- children: /* @__PURE__ */ e(w, { ..._ })
194
- },
195
- "link_" + b
196
- )) });
197
- return u.useEffect(() => {
198
- const m = (_) => {
199
- _.key === "Escape" && c !== void 0 && c(!1);
200
- };
201
- return window.addEventListener("keydown", m), () => {
202
- window.removeEventListener("keydown", m);
203
- };
204
- }, [c]), /* @__PURE__ */ i(
205
- "aside",
206
- {
207
- id: "midasMainMenu",
208
- className: x(
209
- a.sidebar,
210
- s && a.sidebarCollapsed,
211
- o && a.sidebarOpened
212
- ),
213
- children: [
214
- /* @__PURE__ */ i("div", { className: a.sidebarHeader, children: [
215
- !s && /* @__PURE__ */ e("p", { className: a.appName, children: t.name }),
216
- /* @__PURE__ */ e(
217
- L,
218
- {
219
- variant: "icon",
220
- "aria-label": s ? "Maximera sidomenyn" : "Minimera sidomenyn",
221
- onPress: () => l(!s),
222
- className: a.collapseButton,
223
- children: s ? /* @__PURE__ */ e(D, { size: 20 }) : /* @__PURE__ */ e(G, { size: 20 })
224
- }
225
- )
226
- ] }),
227
- /* @__PURE__ */ e(
228
- "nav",
229
- {
230
- className: a.sidebarNav,
231
- "aria-label": "Sidomeny",
232
- children: /* @__PURE__ */ e("ul", { className: a.list, children: n.map((m, _) => /* @__PURE__ */ i("li", { children: [
233
- m.title && !s && /* @__PURE__ */ e("p", { className: a.listGroupTitle, children: m.title }),
234
- r ? /* @__PURE__ */ e(
235
- S,
236
- {
237
- navigate: r,
238
- useHref: h,
239
- children: /* @__PURE__ */ e(p, { group: m })
240
- }
241
- ) : /* @__PURE__ */ e(p, { group: m })
242
- ] }, "list_" + _)) })
243
- }
244
- )
245
- ]
246
- }
247
- );
248
- }, Ee = () => {
249
- const {
250
- title: n,
251
- user: t,
252
- app: o,
253
- isOpened: s,
254
- setIsOpened: l,
255
- setIsCollapsed: c,
256
- headerChildren: r,
257
- variant: h
258
- } = v();
259
- return h === "external" ? /* @__PURE__ */ e("header", { className: x(a.header, a.headerExternal), children: /* @__PURE__ */ i("div", { className: a.headerContentExternal, children: [
260
- /* @__PURE__ */ i("div", { className: a.logoExternalContainer, children: [
261
- /* @__PURE__ */ e(
262
- f,
263
- {
264
- size: "x-small",
265
- padding: !1,
266
- className: a.logoExternal
267
- }
268
- ),
269
- /* @__PURE__ */ e(
270
- f,
271
- {
272
- size: "small",
273
- padding: !1,
274
- className: a.logoExternalDesktop
275
- }
276
- ),
277
- /* @__PURE__ */ i("div", { children: [
278
- /* @__PURE__ */ e("p", { className: a.userName, children: t.name }),
279
- /* @__PURE__ */ e("p", { className: a.userTitle, children: t.title })
280
- ] })
281
- ] }),
282
- /* @__PURE__ */ e("div", { className: a.headerItems, children: r })
283
- ] }) }) : /* @__PURE__ */ i(
284
- "header",
285
- {
286
- className: a.header,
287
- style: {
288
- borderTop: `solid 4px ${o.color ? o.color : O.brandPrimary}`
289
- },
290
- children: [
291
- /* @__PURE__ */ i("div", { className: a.headerContent, children: [
292
- /* @__PURE__ */ e("div", { className: a.logo, children: /* @__PURE__ */ e(
293
- f,
294
- {
295
- size: "small",
296
- padding: !1
297
- }
298
- ) }),
299
- s !== void 0 && /* @__PURE__ */ e(
300
- L,
301
- {
302
- variant: "icon",
303
- className: a.toggleButton,
304
- "aria-label": s ? "Stäng meny" : "Öppna meny",
305
- "aria-controls": "midasMainMenu",
306
- onPressStart: () => {
307
- c(!1), l == null || l(!0);
308
- },
309
- children: s ? /* @__PURE__ */ e(
310
- $,
311
- {
312
- size: 20,
313
- "aria-hidden": "true"
314
- }
315
- ) : /* @__PURE__ */ e(
316
- M,
317
- {
318
- size: 20,
319
- "aria-hidden": "true"
320
- }
321
- )
322
- }
323
- ),
324
- /* @__PURE__ */ i("div", { children: [
325
- /* @__PURE__ */ e("p", { className: a.userName, children: t.name }),
326
- /* @__PURE__ */ e("p", { className: a.userTitle, children: t.title }),
327
- /* @__PURE__ */ e("p", { className: a.title, children: n })
328
- ] })
329
- ] }),
330
- /* @__PURE__ */ e("div", { className: a.headerItems, children: r })
331
- ]
332
- }
333
- );
334
- }, T = ({
335
- id: n = "#main:first-of-type"
336
- }) => /* @__PURE__ */ e(
337
- L,
338
- {
339
- onPress: () => {
340
- const o = document.querySelector(n);
341
- o && (o.tabIndex = -1, o.focus(), setTimeout(() => o.removeAttribute("tabindex"), 1e3));
342
- },
343
- className: a.skipToContent,
344
- children: "Hoppa till huvudinnehåll"
345
- }
346
- ), Te = () => {
347
- const { isOpened: n, setIsOpened: t } = v();
348
- return n ? /* @__PURE__ */ e(
349
- "div",
350
- {
351
- className: x(a.backdrop, a.backdropOpened),
352
- onClick: () => {
353
- t == null || t(!1);
354
- },
355
- "aria-hidden": !0
356
- }
357
- ) : null;
358
- }, Ie = () => {
359
- var l;
360
- const { items: n, clientSideRouter: t, clientSideHref: o } = v(), s = (l = n.at(0)) == null ? void 0 : l.items;
361
- return /* @__PURE__ */ e(
362
- "nav",
363
- {
364
- className: a.navbar,
365
- "aria-label": "Bottenmeny",
366
- children: s && /* @__PURE__ */ e("ul", { className: x(a.navbarList), children: t ? /* @__PURE__ */ e(
367
- S,
368
- {
369
- navigate: t,
370
- useHref: o,
371
- children: /* @__PURE__ */ e(I, { items: s })
372
- }
373
- ) : /* @__PURE__ */ e(I, { items: s }) })
374
- }
375
- );
376
- }, I = ({
377
- items: n
378
- }) => /* @__PURE__ */ e(P, { children: n.map(({ href: t, active: o, icon: s, title: l, hasBadge: c }, r) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ i(
379
- k,
380
- {
381
- href: t,
382
- className: x(a.navbarItem),
383
- "data-active": o,
384
- "aria-current": o && "page",
385
- children: [
386
- /* @__PURE__ */ i(C, { children: [
387
- /* @__PURE__ */ e(s, { size: 20 }),
388
- c && /* @__PURE__ */ e(y, {})
389
- ] }),
390
- l
391
- ]
392
- }
393
- ) }, r)) }), d = ({
394
- items: n,
395
- title: t,
396
- user: o,
397
- app: s,
398
- children: l,
399
- headerChildren: c,
400
- clientSideRouter: r,
401
- clientSideHref: h,
402
- variant: p
403
- }) => {
404
- const [m, _] = u.useState(!1), [b, N] = u.useState(!1);
405
- return p === "external" ? /* @__PURE__ */ e(
406
- d.Provider,
407
- {
408
- items: n,
409
- title: t,
410
- user: o,
411
- app: s,
412
- clientSideRouter: r,
413
- clientSideHref: h,
414
- headerChildren: c,
415
- isCollapsed: m,
416
- setIsCollapsed: _,
417
- variant: p,
418
- children: /* @__PURE__ */ i("div", { className: a.baseLayout, children: [
419
- /* @__PURE__ */ e(T, {}),
420
- /* @__PURE__ */ e(d.Header, {}),
421
- /* @__PURE__ */ i("div", { className: a.mainContent, children: [
422
- /* @__PURE__ */ e(d.Sidebar, {}),
423
- /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e("main", { className: a.main, children: /* @__PURE__ */ e("div", { className: a.app, children: l }) }) }),
424
- /* @__PURE__ */ e(d.Backdrop, {})
425
- ] }),
426
- /* @__PURE__ */ e("div", { className: a.navbarWrapper, children: /* @__PURE__ */ e(d.Navbar, {}) })
427
- ] })
428
- }
429
- ) : /* @__PURE__ */ e(
430
- d.Provider,
431
- {
432
- items: n,
433
- title: t,
434
- user: o,
435
- app: s,
436
- clientSideRouter: r,
437
- clientSideHref: h,
438
- headerChildren: c,
439
- isCollapsed: m,
440
- setIsCollapsed: _,
441
- isOpened: b,
442
- setIsOpened: N,
443
- variant: p,
444
- children: /* @__PURE__ */ i("div", { className: a.baseLayout, children: [
445
- /* @__PURE__ */ e(T, {}),
446
- /* @__PURE__ */ e(d.Header, {}),
447
- /* @__PURE__ */ i("div", { className: a.mainContent, children: [
448
- /* @__PURE__ */ e(d.Sidebar, {}),
449
- /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e("main", { className: a.main, children: /* @__PURE__ */ e("div", { className: a.app, children: l }) }) }),
450
- /* @__PURE__ */ e(d.Backdrop, {})
451
- ] })
452
- ] })
453
- }
454
- );
455
- };
456
- d.Provider = Le;
457
- d.Header = Ee;
458
- d.Sidebar = ge;
459
- d.SidebarLink = w;
460
- d.Navbar = Ie;
461
- d.Backdrop = Te;
462
- export {
463
- Ee as H,
464
- d as L,
465
- Ie as N,
466
- ge as S,
467
- w as a
468
- };
package/Link-SHMbeyIP.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";const n=require("./utils-BNtZbAib.cjs"),x=require("react"),T=require("./filterDOMProps-BS2lrgFA.cjs"),f=require("./usePress-BFa6cT9o.cjs"),m=require("./useFocusable-CuPQ7Cm5.cjs"),F=require("./useHover-_mv5J4_q.cjs"),q=require("./useFocusRing-CbImDrwF.cjs");function E(s,e){let{elementType:d="a",onPress:c,onPressStart:u,onPressEnd:o,onClick:$,isDisabled:t,...b}=s,i={};d!=="a"&&(i={role:"link",tabIndex:t?void 0:0});let{focusableProps:l}=m.$f645667febf57a63$export$4c014de7c8940b4c(s,e),{pressProps:a,isPressed:p}=f.$f6c31cce2adf654f$export$45712eceda6fad21({onPress:c,onPressStart:u,onPressEnd:o,onClick:$,isDisabled:t,ref:e}),h=T.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(b,{labelable:!0}),D=n.$3ef42575df84b30b$export$9d1611c77c2fe928(l,a),v=f.$ea8dcbcb9ea1b556$export$9a302a45f65d0572(),C=f.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18(s);return{isPressed:p,linkProps:n.$3ef42575df84b30b$export$9d1611c77c2fe928(h,C,{...D,...i,"aria-disabled":t||void 0,"aria-current":s["aria-current"],onClick:r=>{var P;(P=a.onClick)===null||P===void 0||P.call(a,r),!v.isNative&&r.currentTarget instanceof HTMLAnchorElement&&r.currentTarget.href&&!r.isDefaultPrevented()&&f.$ea8dcbcb9ea1b556$export$efa8c9099e530235(r.currentTarget,r)&&s.href&&(r.preventDefault(),v.open(r.currentTarget,r,s.href,s.routerOptions))}})}}const k=x.createContext(null),H=x.forwardRef(function(e,d){[e,d]=n.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,k);let c=e.href&&!e.isDisabled?"a":"span",{linkProps:u,isPressed:o}=E({...e,elementType:c},d),{hoverProps:$,isHovered:t}=F.$6179b936705e76d3$export$ae780daf29e6d456(e),{focusProps:b,isFocused:i,isFocusVisible:l}=q.$f7dceffc5ad7768b$export$4e328f61c538687f(),a=n.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-Link",values:{isCurrent:!!e["aria-current"],isDisabled:e.isDisabled||!1,isPressed:o,isHovered:t,isFocused:i,isFocusVisible:l}});return x.createElement(c,{ref:d,slot:e.slot||void 0,...n.$3ef42575df84b30b$export$9d1611c77c2fe928(a,u,$,b),"data-focused":i||void 0,"data-hovered":t||void 0,"data-pressed":o||void 0,"data-focus-visible":l||void 0,"data-current":!!e["aria-current"]||void 0,"data-disabled":e.isDisabled||void 0},a.children)});exports.$4f118338184dc1d9$export$a6c7ac8248d6e38a=H;exports.$4f118338184dc1d9$export$e2509388b49734e7=k;
@@ -1,69 +0,0 @@
1
- import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
- import { $ as p } from "./Link-B-nus-FT.js";
3
- import { c as y } from "./clsx-OuTLNxxd.js";
4
- import { S as z } from "./square-arrow-out-up-right-BkyqV2PN.js";
5
- import { c as g } from "./createLucideIcon-DeWljiyi.js";
6
- import { A as h } from "./arrow-right-Dg8sttFO.js";
7
- import './assets/LinkButton.css';/**
8
- * @license lucide-react v0.453.0 - ISC
9
- *
10
- * This source code is licensed under the ISC license.
11
- * See the LICENSE file in the root directory of this source tree.
12
- */
13
- const B = g("ArrowLeft", [
14
- ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
15
- ["path", { d: "M19 12H5", key: "x3x0zl" }]
16
- ]), L = "_linkButton_1epuz_4", k = "_secondary_1epuz_52", w = "_icon_1epuz_57", x = "_tertiary_1epuz_82", A = "_danger_1epuz_99", $ = "_iconBtn_1epuz_116", j = "_iconLeft_1epuz_139", N = "_fullwidth_1epuz_143", R = "_medium_1epuz_147", t = {
17
- linkButton: L,
18
- secondary: k,
19
- icon: w,
20
- tertiary: x,
21
- danger: A,
22
- iconBtn: $,
23
- iconLeft: j,
24
- fullwidth: N,
25
- medium: R
26
- }, O = ({
27
- children: c,
28
- variant: o,
29
- fullwidth: s,
30
- icon: e,
31
- iconPlacement: i,
32
- className: u,
33
- as: a,
34
- size: _ = "large",
35
- ...d
36
- }) => {
37
- const m = a || p, f = ({ ...n }) => e ? /* @__PURE__ */ r(e, { ...n }) : n.target === "_blank" ? /* @__PURE__ */ r(z, { ...n }) : i === "left" ? /* @__PURE__ */ r(B, { ...n }) : /* @__PURE__ */ r(h, { ...n });
38
- return /* @__PURE__ */ l(
39
- m,
40
- {
41
- className: y(
42
- t.linkButton,
43
- o === "primary" && t.primary,
44
- o === "secondary" && t.secondary,
45
- o === "tertiary" && t.tertiary,
46
- o === "danger" && t.danger,
47
- o === "icon" && t.iconBtn,
48
- _ === "medium" && t.medium,
49
- s && t.fullwidth,
50
- i === "left" && t.iconLeft,
51
- u
52
- ),
53
- ...d,
54
- children: [
55
- c,
56
- /* @__PURE__ */ r(
57
- f,
58
- {
59
- size: 20,
60
- className: t.icon
61
- }
62
- )
63
- ]
64
- }
65
- );
66
- };
67
- export {
68
- O as L
69
- };
@@ -1,6 +0,0 @@
1
- "use strict";require('./assets/LinkButton.css');const e=require("react/jsx-runtime"),p=require("./Link-SHMbeyIP.cjs"),m=require("./clsx-C11secjj.cjs"),y=require("./square-arrow-out-up-right-BCAO2eJs.cjs"),x=require("./createLucideIcon-DAY4oS-S.cjs"),g=require("./arrow-right-Cw48o2oW.cjs");/**
2
- * @license lucide-react v0.453.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const h=x.createLucideIcon("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),z="_linkButton_1epuz_4",L="_secondary_1epuz_52",k="_icon_1epuz_57",w="_tertiary_1epuz_82",B="_danger_1epuz_99",q="_iconBtn_1epuz_116",j="_iconLeft_1epuz_139",A="_fullwidth_1epuz_143",R="_medium_1epuz_147",t={linkButton:z,secondary:L,icon:k,tertiary:w,danger:B,iconBtn:q,iconLeft:j,fullwidth:A,medium:R},$=({children:i,variant:n,fullwidth:u,icon:o,iconPlacement:c,className:s,as:_,size:d="large",...a})=>{const l=_||p.$4f118338184dc1d9$export$a6c7ac8248d6e38a,f=({...r})=>o?e.jsx(o,{...r}):r.target==="_blank"?e.jsx(y.SquareArrowOutUpRight,{...r}):c==="left"?e.jsx(h,{...r}):e.jsx(g.ArrowRight,{...r});return e.jsxs(l,{className:m.clsx(t.linkButton,n==="primary"&&t.primary,n==="secondary"&&t.secondary,n==="tertiary"&&t.tertiary,n==="danger"&&t.danger,n==="icon"&&t.iconBtn,d==="medium"&&t.medium,u&&t.fullwidth,c==="left"&&t.iconLeft,s),...a,children:[i,e.jsx(f,{size:20,className:t.icon})]})};exports.LinkButton=$;
@@ -1 +0,0 @@
1
- "use strict";const P=require("./Collection-Csx3L9gh.cjs"),s=require("./utils-BNtZbAib.cjs"),m=require("./DragAndDrop-HvycSrKY.cjs"),_=require("./Separator-nPra6kD-.cjs"),te=require("./Text-B2K-BJKQ.cjs"),A=require("./filterDOMProps-BS2lrgFA.cjs"),re=require("./inertValue-BWmZ1afe.cjs"),t=require("react"),ae=require("./usePress-BFa6cT9o.cjs"),w=require("./useHover-_mv5J4_q.cjs"),de=require("./SelectionManager-C5NGBzvz.cjs"),Q=require("./useFocusRing-CbImDrwF.cjs"),ie=require("./useLabel-m_S5xkHy.cjs"),X=require("./useListState-Ca2-uZMO.cjs"),le=require("./context-DjwhtgxQ.cjs"),ne=require("./useCollator-C_ozeWLo.cjs"),se=require("./ListKeyboardDelegate-BqMETvPv.cjs"),ce=require("./FocusScope-NaPbvuuS.cjs"),q=new WeakMap;function ue(o){return typeof o=="string"?o.replace(/\s*/g,""):""+o}function Y(o,e){let d=q.get(o);if(!d)throw new Error("Unknown list");return`${d.id}-option-${ue(e)}`}function fe(o,e,d){let i=A.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(o,{labelable:!0}),l=o.selectionBehavior||"toggle",n=o.linkBehavior||(l==="replace"?"action":"override");l==="toggle"&&n==="action"&&(n="override");let{listProps:r}=_.$982254629710d113$export$b95089534ab7c1fd({...o,ref:d,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:n}),{focusWithinProps:a}=Q.$9ab94262bd0047c7$export$420e68273165f4ec({onFocusWithin:o.onFocus,onBlurWithin:o.onBlur,onFocusWithinChange:o.onFocusChange}),f=s.$bdb11010cef70236$export$f680877a34711e37(o.id);q.set(e,{id:f,shouldUseVirtualFocus:o.shouldUseVirtualFocus,shouldSelectOnPressUp:o.shouldSelectOnPressUp,shouldFocusOnHover:o.shouldFocusOnHover,isVirtualized:o.isVirtualized,onAction:o.onAction,linkBehavior:n});let{labelProps:g,fieldProps:c}=ie.$d191a55c9702f145$export$8467354a121f1b9f({...o,id:f,labelElementType:"span"});return{labelProps:g,listBoxProps:s.$3ef42575df84b30b$export$9d1611c77c2fe928(i,a,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...s.$3ef42575df84b30b$export$9d1611c77c2fe928(c,r)})}}function $e(o,e,d){var i,l;let{key:n}=o,r=q.get(e);var a;let f=(a=o.isDisabled)!==null&&a!==void 0?a:e.selectionManager.isDisabled(n);var g;let c=(g=o.isSelected)!==null&&g!==void 0?g:e.selectionManager.isSelected(n);var p;let u=(p=o.shouldSelectOnPressUp)!==null&&p!==void 0?p:r==null?void 0:r.shouldSelectOnPressUp;var $;let h=($=o.shouldFocusOnHover)!==null&&$!==void 0?$:r==null?void 0:r.shouldFocusOnHover;var x;let v=(x=o.shouldUseVirtualFocus)!==null&&x!==void 0?x:r==null?void 0:r.shouldUseVirtualFocus;var D;let y=(D=o.isVirtualized)!==null&&D!==void 0?D:r==null?void 0:r.isVirtualized,F=s.$bdb11010cef70236$export$b4cc09c592e8fdb8(),B=s.$bdb11010cef70236$export$b4cc09c592e8fdb8(),S={role:"option","aria-disabled":f||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?c:void 0};w.$c87311424ea30a05$export$9ac100e40613ea10()&&w.$c87311424ea30a05$export$78551043582a6a98()||(S["aria-label"]=o["aria-label"],S["aria-labelledby"]=F,S["aria-describedby"]=B);let b=e.collection.getItem(n);if(y){let E=Number(b==null?void 0:b.index);S["aria-posinset"]=Number.isNaN(E)?void 0:E+1,S["aria-setsize"]=_.$453cc9f0df89c0a5$export$77d5aafae4e095b2(e.collection)}let H=r!=null&&r.onAction?()=>{var E;return r==null||(E=r.onAction)===null||E===void 0?void 0:E.call(r,n)}:void 0,T=Y(e,n),{itemProps:z,isPressed:N,isFocused:M,hasAction:k,allowsSelection:C}=de.$880e95eb8b93ba9a$export$ecf600387e221c37({selectionManager:e.selectionManager,key:n,ref:d,shouldSelectOnPressUp:u,allowsDifferentPressOrigin:u&&h,isVirtualized:y,shouldUseVirtualFocus:v,isDisabled:f,onAction:H||!(b==null||(i=b.props)===null||i===void 0)&&i.onAction?s.$ff5963eb1fccf552$export$e08e3b67e392101e(b==null||(l=b.props)===null||l===void 0?void 0:l.onAction,H):void 0,linkBehavior:r==null?void 0:r.linkBehavior,id:T}),{hoverProps:I}=w.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:f||!h,onHoverStart(){w.$507fabe10e71c6fb$export$b9b3dfddab17db27()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(n))}}),L=A.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(b==null?void 0:b.props);delete L.id;let O=ae.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18(b==null?void 0:b.props);return{optionProps:{...S,...s.$3ef42575df84b30b$export$9d1611c77c2fe928(L,z,I,O),id:T},labelProps:{id:F},descriptionProps:{id:B},isFocused:M,isFocusVisible:M&&e.selectionManager.isFocused&&w.$507fabe10e71c6fb$export$b9b3dfddab17db27(),isSelected:c,isDisabled:f,isPressed:N,allowsSelection:C,hasAction:k}}function be(o){let{heading:e,"aria-label":d}=o,i=s.$bdb11010cef70236$export$f680877a34711e37();return{itemProps:{role:"presentation"},headingProps:e?{id:i,role:"presentation"}:{},groupProps:{role:"group","aria-label":d,"aria-labelledby":e?i:void 0}}}const K=t.createContext(null),V=t.createContext(null),pe=t.forwardRef(function(e,d){[e,d]=s.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,K);let i=t.useContext(V);return i?t.createElement(Z,{state:i,props:e,listBoxRef:d}):t.createElement(P.$e1995378a142960e$export$bf788dd355e3a401,{content:t.createElement(P.$e1995378a142960e$export$fb8073518f34e6ec,e)},l=>t.createElement(ge,{props:e,listBoxRef:d,collection:l}))});function ge({props:o,listBoxRef:e,collection:d}){o={...o,collection:d,children:null,items:null};let{layoutDelegate:i}=t.useContext(P.$7135fc7d473fd974$export$4feb769f8ddf26c5),l=X.$e72dd72e1c76a225$export$2f645645f7bca764({...o,layoutDelegate:i});return t.createElement(Z,{state:l,props:o,listBoxRef:e})}function Z({state:o,props:e,listBoxRef:d}){var i;let{filter:l,collectionProps:n,collectionRef:r}=t.useContext(_.$d2f53cda644affe3$export$65d2a03b8800d6e3)||{};e=t.useMemo(()=>n?{...e,...n}:e,[e,n]);let{dragAndDropHooks:a,layout:f="stack",orientation:g="vertical"}=e;d=s.$df56164dff5785e2$export$4338b53315abf666(t.useMemo(()=>s.$5dc95899b306f630$export$c9058316764c140e(d,r!==void 0?r:null),[r,d]));let c=X.$e72dd72e1c76a225$export$ba9d38c0f1bf2b36(o,l),{collection:p,selectionManager:u}=c,$=!!(a!=null&&a.useDraggableCollectionState),h=!!(a!=null&&a.useDroppableCollectionState),{direction:x}=le.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{disabledBehavior:v,disabledKeys:D}=u,y=ne.$325a3faab7a68acd$export$a16aca283550c30d({usage:"search",sensitivity:"base"}),{isVirtualized:F,layoutDelegate:B,dropTargetDelegate:S,CollectionRoot:b}=t.useContext(P.$7135fc7d473fd974$export$4feb769f8ddf26c5),H=t.useMemo(()=>e.keyboardDelegate||new se.$2a25aae57d74318e$export$a05409b8bb224a5a({collection:p,collator:y,ref:d,disabledKeys:D,disabledBehavior:v,layout:f,orientation:g,direction:x,layoutDelegate:B}),[p,y,d,v,D,g,x,e.keyboardDelegate,f,B]),{listBoxProps:T}=fe({...e,shouldSelectOnPressUp:$||e.shouldSelectOnPressUp,keyboardDelegate:H,isVirtualized:F},c,d),z=t.useRef($),N=t.useRef(h);t.useEffect(()=>{process.env.NODE_ENV!=="production"&&(z.current!==$&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),N.current!==h&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[$,h]);let M,k,C,I=!1,L=null,O=t.useRef(null);if($&&a){M=a.useDraggableCollectionState({collection:p,selectionManager:u,preview:a.renderDragPreview?O:void 0}),a.useDraggableCollection({},M,d);let R=a.DragPreview;L=a.renderDragPreview?t.createElement(R,{ref:O},a.renderDragPreview):null}if(h&&a){k=a.useDroppableCollectionState({collection:p,selectionManager:u});let R=a.dropTargetDelegate||S||new a.ListDropTargetDelegate(p,d,{orientation:g,layout:f,direction:x});C=a.useDroppableCollection({keyboardDelegate:H,dropTargetDelegate:R},k,d),I=k.isDropTarget({type:"root"})}let{focusProps:E,isFocused:W,isFocusVisible:j}=Q.$f7dceffc5ad7768b$export$4e328f61c538687f(),U=c.collection.size===0||c.collection.size===1&&((i=c.collection.getItem(c.collection.getFirstKey()))===null||i===void 0?void 0:i.type)==="loader",G={isDropTarget:I,isEmpty:U,isFocused:W,isFocusVisible:j,layout:e.layout||"stack",state:c},oe=s.$64fa3d84918910a7$export$4d86445c2cf5e3({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:G}),J=null;return U&&e.renderEmptyState&&(J=t.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(G))),t.createElement(ce.$9bf71ea28793e738$export$20e40289641fbbb6,null,t.createElement("div",{...A.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e),...s.$3ef42575df84b30b$export$9d1611c77c2fe928(T,E,C==null?void 0:C.collectionProps),...oe,ref:d,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":I||void 0,"data-empty":U||void 0,"data-focused":W||void 0,"data-focus-visible":j||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},t.createElement(s.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[K,e],[V,c],[m.$612b8eb6cb90e02d$export$d188a835a7bc5783,{dragAndDropHooks:a,dragState:M,dropState:k}],[_.$431f98aba6844401$export$6615d83f6de245ce,{elementType:"div"}],[m.$612b8eb6cb90e02d$export$f55761759794cf55,{render:he}],[P.$7135fc7d473fd974$export$d40e14dec8b060a8,{name:"ListBoxSection",render:ee}]]},t.createElement(b,{collection:p,scrollRef:d,persistedKeys:m.$612b8eb6cb90e02d$export$d1e8e3fbb7461f6(u,a,k),renderDropIndicator:m.$612b8eb6cb90e02d$export$971707d8a129a1f7(a,k)})),J,L))}function ee(o,e,d,i="react-aria-ListBoxSection"){let l=t.useContext(V),{dragAndDropHooks:n,dropState:r}=t.useContext(m.$612b8eb6cb90e02d$export$d188a835a7bc5783),{CollectionBranch:a}=t.useContext(P.$7135fc7d473fd974$export$4feb769f8ddf26c5),[f,g]=s.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8();var c;let{headingProps:p,groupProps:u}=be({heading:g,"aria-label":(c=o["aria-label"])!==null&&c!==void 0?c:void 0}),$=s.$64fa3d84918910a7$export$4d86445c2cf5e3({defaultClassName:i,className:o.className,style:o.style,values:{}});return t.createElement("section",{...A.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(o),...u,...$,ref:e},t.createElement(_.$72a5793c14baf454$export$e0e4026c12a8bdbb.Provider,{value:{...p,ref:f}},t.createElement(a,{collection:l.collection,parent:d,renderDropIndicator:m.$612b8eb6cb90e02d$export$971707d8a129a1f7(n,r)})))}const ve=P.$e1995378a142960e$export$e953bb1cd0f19726("section",ee),xe=P.$e1995378a142960e$export$18af5c7a9e9b3664("item",function(e,d,i){let l=s.$df56164dff5785e2$export$4338b53315abf666(d),n=t.useContext(V),{dragAndDropHooks:r,dragState:a,dropState:f}=t.useContext(m.$612b8eb6cb90e02d$export$d188a835a7bc5783),{optionProps:g,labelProps:c,descriptionProps:p,...u}=$e({key:i.key,"aria-label":e==null?void 0:e["aria-label"]},n,l),{hoverProps:$,isHovered:h}=w.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:!u.allowsSelection&&!u.hasAction,onHoverStart:i.props.onHoverStart,onHoverChange:i.props.onHoverChange,onHoverEnd:i.props.onHoverEnd}),x=null;a&&r&&(x=r.useDraggableItem({key:i.key},a));let v=null;f&&r&&(v=r.useDroppableItem({target:{type:"item",key:i.key,dropPosition:"on"}},f,l));let D=a&&a.isDragging(i.key),y=s.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...u,isHovered:h,selectionMode:n.selectionManager.selectionMode,selectionBehavior:n.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:D,isDropTarget:v==null?void 0:v.isDropTarget}});t.useEffect(()=>{!i.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[i.textValue]);let F=e.href?"a":"div";return t.createElement(F,{...s.$3ef42575df84b30b$export$9d1611c77c2fe928(g,$,x==null?void 0:x.dragProps,v==null?void 0:v.dropProps),...y,ref:l,"data-allows-dragging":!!a||void 0,"data-selected":u.isSelected||void 0,"data-disabled":u.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":u.isFocused||void 0,"data-focus-visible":u.isFocusVisible||void 0,"data-pressed":u.isPressed||void 0,"data-dragging":D||void 0,"data-drop-target":(v==null?void 0:v.isDropTarget)||void 0,"data-selection-mode":n.selectionManager.selectionMode==="none"?void 0:n.selectionManager.selectionMode},t.createElement(s.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[te.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{[s.$64fa3d84918910a7$export$c62b8e45d58ddad9]:c,label:c,description:p}}]]},y.children))});function he(o,e){e=s.$df56164dff5785e2$export$4338b53315abf666(e);let{dragAndDropHooks:d,dropState:i}=t.useContext(m.$612b8eb6cb90e02d$export$d188a835a7bc5783),{dropIndicatorProps:l,isHidden:n,isDropTarget:r}=d.useDropIndicator(o,i,e);return n?null:t.createElement(De,{...o,dropIndicatorProps:l,isDropTarget:r,ref:e})}function Pe(o,e){let{dropIndicatorProps:d,isDropTarget:i,...l}=o,n=s.$64fa3d84918910a7$export$4d86445c2cf5e3({...l,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:i}});return t.createElement("div",{...d,...n,role:"option",ref:e,"data-drop-target":i||void 0})}const De=t.forwardRef(Pe);P.$e1995378a142960e$export$18af5c7a9e9b3664("loader",function(e,d,i){let l=t.useContext(V),{isVirtualized:n}=t.useContext(P.$7135fc7d473fd974$export$4feb769f8ddf26c5),{isLoading:r,onLoadMore:a,scrollOffset:f,...g}=e,c=t.useRef(null),p=t.useMemo(()=>({onLoadMore:a,collection:l==null?void 0:l.collection,sentinelRef:c,scrollOffset:f}),[a,f,l==null?void 0:l.collection]);m.$a5fa973c1850dd36$export$90a12e6abf95cbe0(p,c);let u=s.$64fa3d84918910a7$export$4d86445c2cf5e3({...g,id:void 0,children:i.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:null}),$={tabIndex:-1};return n&&($["aria-posinset"]=i.index+1,$["aria-setsize"]=l.collection.size),t.createElement(t.Fragment,null,t.createElement("div",{style:{position:"relative",width:0,height:0},inert:re.$cdc5a6778b766db2$export$a9d04c5684123369(!0)},t.createElement("div",{"data-testid":"loadMoreSentinel",ref:c,style:{position:"absolute",height:1,width:1}})),r&&u.children&&t.createElement("div",{...s.$3ef42575df84b30b$export$9d1611c77c2fe928(A.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e),$),...u,role:"option",ref:d},u.children))});exports.$b1f0cad8af73213b$export$3585ede4d035bf14=q;exports.$b1f0cad8af73213b$export$9145995848b05025=Y;exports.$eed445e0843c11d0$export$41f133550aa26f48=pe;exports.$eed445e0843c11d0$export$7c5906fe4f1f2af2=V;exports.$eed445e0843c11d0$export$7ff8f37d2d81a48d=K;exports.$eed445e0843c11d0$export$a11e76429ed99b4=xe;exports.$eed445e0843c11d0$export$dca12b0bb56e4fc=ve;
@@ -1 +0,0 @@
1
- "use strict";require('./assets/ListBoxSection.css');const S=require("react/jsx-runtime"),V=require("./ListBox-CDOsQChA.cjs"),Y=require("./Collection-Csx3L9gh.cjs"),c=require("react"),C=require("./utils-BNtZbAib.cjs"),W=require("./context-DjwhtgxQ.cjs"),T=require("react-dom"),Z=require("./OverlayArrow-D75k-EMl.cjs"),ee=require("./useEvent-CjkbBniY.cjs"),M=require("./clsx-C11secjj.cjs"),q=require("./SelectionManager-C5NGBzvz.cjs"),te=require("./Dialog-Bd5hK360.cjs"),ie=require("./Separator-nPra6kD-.cjs");class le{shouldInvalidate(e,t){return e.width!==t.width||e.height!==t.height}shouldInvalidateLayoutOptions(e,t){return e!==t}update(e){}getItemRect(e){var t,i;return(i=(t=this.getLayoutInfo(e))===null||t===void 0?void 0:t.rect)!==null&&i!==void 0?i:null}getVisibleRect(){return this.virtualizer.visibleRect}constructor(){this.virtualizer=null}}class m{copy(){let e=new m(this.type,this.key,this.rect.copy());return e.estimatedSize=this.estimatedSize,e.opacity=this.opacity,e.transform=this.transform,e.parentKey=this.parentKey,e.content=this.content,e.isSticky=this.isSticky,e.zIndex=this.zIndex,e.allowOverflow=this.allowOverflow,e}constructor(e,t,i){this.type=e,this.key=t,this.parentKey=null,this.content=null,this.rect=i,this.estimatedSize=!1,this.isSticky=!1,this.opacity=1,this.transform=null,this.zIndex=0,this.allowOverflow=!1}}class x{copy(){return new x(this.x,this.y)}equals(e){return this.x===e.x&&this.y===e.y}isOrigin(){return this.x===0&&this.y===0}constructor(e=0,t=0){this.x=e,this.y=t}}class f{get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new x(this.x,this.y)}get topRight(){return new x(this.maxX,this.y)}get bottomLeft(){return new x(this.x,this.maxY)}get bottomRight(){return new x(this.maxX,this.maxY)}intersects(e){return this.area>0&&e.area>0&&this.x<=e.x+e.width&&e.x<=this.x+this.width&&this.y<=e.y+e.height&&e.y<=this.y+this.height}containsRect(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.maxX&&this.maxY>=e.maxY}containsPoint(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.x&&this.maxY>=e.y}getCornerInRect(e){for(let t of["topLeft","topRight","bottomLeft","bottomRight"])if(e.containsPoint(this[t]))return t;return null}equals(e){return e.x===this.x&&e.y===this.y&&e.width===this.width&&e.height===this.height}pointEquals(e){return this.x===e.x&&this.y===e.y}sizeEquals(e){return this.width===e.width&&this.height===e.height}union(e){let t=Math.min(this.x,e.x),i=Math.min(this.y,e.y),l=Math.max(this.maxX,e.maxX)-t,o=Math.max(this.maxY,e.maxY)-i;return new f(t,i,l,o)}intersection(e){if(!this.intersects(e))return new f(0,0,0,0);let t=Math.max(this.x,e.x),i=Math.max(this.y,e.y);return new f(t,i,Math.min(this.maxX,e.maxX)-t,Math.min(this.maxY,e.maxY)-i)}copy(){return new f(this.x,this.y,this.width,this.height)}constructor(e=0,t=0,i=0,l=0){this.x=e,this.y=t,this.width=i,this.height=l}}class z{copy(){return new z(this.width,this.height)}equals(e){return this.width===e.width&&this.height===e.height}get area(){return this.width*this.height}constructor(e=0,t=0){this.width=Math.max(e,0),this.height=Math.max(t,0)}}let oe=0;class D{prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null}getReusableView(e){let t=this.reusableViews.get(e);return t&&t.length>0?t.shift():new se(this.virtualizer,this,e)}reuseChild(e){e.prepareForReuse();let t=this.reusableViews.get(e.viewType);t||(t=[],this.reusableViews.set(e.viewType,t)),t.push(e)}constructor(e,t){this.virtualizer=e,this.key=++oe,this.viewType=t,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null}}class ne extends D{constructor(e){super(e,"root")}}class se extends D{constructor(e,t,i){super(e,i),this.parent=t}}function re(n,e){if(n===e)return!0;if(n.size!==e.size)return!1;for(let t of n)if(!e.has(t))return!1;return!0}class ae{setVisibleRect(e){let t=performance.now()-this.startTime;t<500&&(e.x!==this.visibleRect.x&&t>0&&(this.velocity.x=(e.x-this.visibleRect.x)/t),e.y!==this.visibleRect.y&&t>0&&(this.velocity.y=(e.y-this.visibleRect.y)/t)),this.startTime=performance.now(),this.visibleRect=e}getOverscannedRect(){let e=this.visibleRect.copy(),t=this.visibleRect.height/3;if(e.height+=t,this.velocity.y<0&&(e.y-=t),this.velocity.x!==0){let i=this.visibleRect.width/3;e.width+=i,this.velocity.x<0&&(e.x-=i)}return e}constructor(){this.startTime=0,this.velocity=new x(0,0),this.visibleRect=new f}}class he{isPersistedKey(e){if(this.persistedKeys.has(e))return!0;for(let t of this.persistedKeys)for(;t!=null;){let i=this.layout.getLayoutInfo(t);if(!i||i.parentKey==null)break;if(t=i.parentKey,t===e)return!0}return!1}getParentView(e){return e.parentKey!=null?this._visibleViews.get(e.parentKey):this._rootView}getReusableView(e){let i=this.getParentView(e).getReusableView(e.type);return i.layoutInfo=e,this._renderView(i),i}_renderView(e){if(e.layoutInfo){let{type:t,key:i,content:l}=e.layoutInfo;e.content=l||this.collection.getItem(i),e.rendered=this._renderContent(t,e.content)}}_renderContent(e,t){let i=t!=null?this._renderedContent.get(t):null;if(i!=null)return i;let l=this.delegate.renderView(e,t);return t&&this._renderedContent.set(t,l),l}keyAtPoint(e){let t=new f(e.x,e.y,1,1),i=t.area===0?[]:this.layout.getVisibleLayoutInfos(t);for(let l of i)if(l.rect.intersects(t))return l.key;return null}relayout(e={}){this.layout.update(e),this.contentSize=this.layout.getContentSize();let t=this.visibleRect,i=e.contentChanged?0:t.x,l=e.contentChanged?0:t.y;if(i=Math.max(0,Math.min(this.contentSize.width-t.width,i)),l=Math.max(0,Math.min(this.contentSize.height-t.height,l)),i!==t.x||l!==t.y){let o=new f(i,l,t.width,t.height);this.delegate.setVisibleRect(o)}else this.updateSubviews()}getVisibleLayoutInfos(){let e=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,t=e&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientWidth"),i=e&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientHeight"),l;e&&!(t&&i)?l=new f(0,0,this.contentSize.width,this.contentSize.height):l=this._overscanManager.getOverscannedRect();let o=this.layout.getVisibleLayoutInfos(l),s=new Map;for(let a of o)s.set(a.key,a);return s}updateSubviews(){let e=this.getVisibleLayoutInfos(),t=new Set;for(let[i,l]of this._visibleViews){let o=e.get(i);(!o||l.parent!==this.getParentView(o))&&(this._visibleViews.delete(i),l.parent.reuseChild(l),t.add(l))}for(let[i,l]of e){let o=this._visibleViews.get(i);if(!o)o=this.getReusableView(l),o.parent.children.add(o),this._visibleViews.set(i,o),t.delete(o);else{o.layoutInfo=l;let s=this.collection.getItem(l.key);o.content!==s&&(o.content!=null&&this._renderedContent.delete(o.content),this._renderView(o))}}for(let i of t)i.parent.children.delete(i),i.parent.reusableViews.clear();if(!this._isScrolling)for(let i of e.keys()){let l=this._visibleViews.get(i);l.parent.children.delete(l),l.parent.children.add(l)}}render(e){let t=this,i=!1,l=!1,o=!1,s=!1,a=!1,h=!1;return e.collection!==this.collection&&(t.collection=e.collection,i=!0),(e.layout!==this.layout||this.layout.virtualizer!==this)&&(this.layout&&(this.layout.virtualizer=null),e.layout.virtualizer=this,t.layout=e.layout,i=!0),e.persistedKeys&&!re(e.persistedKeys,this.persistedKeys)&&(t.persistedKeys=e.persistedKeys,h=!0),this.visibleRect.equals(e.visibleRect)||(this._overscanManager.setVisibleRect(e.visibleRect),this.layout.shouldInvalidate(e.visibleRect,this.visibleRect)?(l=!e.visibleRect.pointEquals(this.visibleRect),o=!e.visibleRect.sizeEquals(this.visibleRect),i=!0):h=!0,t.visibleRect=e.visibleRect),e.invalidationContext!==this._invalidationContext&&(e.invalidationContext&&(o||(o=e.invalidationContext.sizeChanged||!1),l||(l=e.invalidationContext.offsetChanged||!1),s||(s=e.invalidationContext.itemSizeChanged||!1),a||(a=e.invalidationContext.layoutOptions!=null&&this._invalidationContext.layoutOptions!=null&&e.invalidationContext.layoutOptions!==this._invalidationContext.layoutOptions&&this.layout.shouldInvalidateLayoutOptions(e.invalidationContext.layoutOptions,this._invalidationContext.layoutOptions)),i||(i=s||o||l||a)),this._invalidationContext=e.invalidationContext),e.isScrolling!==this._isScrolling&&(this._isScrolling=e.isScrolling,e.isScrolling||(h=!0)),i?this.relayout({offsetChanged:l,sizeChanged:o,itemSizeChanged:s,layoutOptionsChanged:a,layoutOptions:this._invalidationContext.layoutOptions}):h&&this.updateSubviews(),Array.from(this._rootView.children)}getVisibleView(e){return this._visibleViews.get(e)}invalidate(e){this.delegate.invalidate(e)}updateItemSize(e,t){if(!this.layout.updateItemSize)return;this.layout.updateItemSize(e,t)&&this.invalidate({itemSizeChanged:!0})}constructor(e){this.delegate=e.delegate,this.collection=e.collection,this.layout=e.layout,this.contentSize=new z,this.visibleRect=new f,this.persistedKeys=new Set,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._rootView=new ne(this),this._isScrolling=!1,this._invalidationContext={},this._overscanManager=new ae}}function de(n){let[e,t]=c.useState(new f(0,0,0,0)),[i,l]=c.useState(!1),[o,s]=c.useState({}),a=c.useRef(!1),[h]=c.useState(()=>new he({collection:n.collection,layout:n.layout,delegate:{setVisibleRect(w){t(w),a.current=!0},renderView:n.renderView,invalidate:s}}));C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{a.current&&(a.current=!1,n.onVisibleRectChange(e))});let r=c.useMemo(()=>n.layoutOptions!=null?{...o,layoutOptions:n.layoutOptions}:o,[o,n.layoutOptions]),d=h.render({layout:n.layout,collection:n.collection,persistedKeys:n.persistedKeys,layoutOptions:n.layoutOptions,visibleRect:e,invalidationContext:r,isScrolling:i}),u=h.contentSize,g=c.useCallback(()=>{l(!0)},[]),y=c.useCallback(()=>{l(!1)},[]);return c.useMemo(()=>({virtualizer:h,visibleViews:d,setVisibleRect:t,contentSize:u,isScrolling:i,startScrolling:g,endScrolling:y}),[h,d,t,u,i,g,y])}const I=48;class ce extends le{get collection(){return this.virtualizer.collection}getLayoutInfo(e){var t;return this.ensureLayoutInfo(e),((t=this.layoutNodes.get(e))===null||t===void 0?void 0:t.layoutInfo)||null}getVisibleLayoutInfos(e){if(e.height>1){var t,i;let s=((i=(t=this.rowHeight)!==null&&t!==void 0?t:this.estimatedRowHeight)!==null&&i!==void 0?i:I)+this.gap;e.y=Math.floor(e.y/s)*s,e.height=Math.ceil(e.height/s)*s}this.layoutIfNeeded(e);let l=[],o=s=>{for(let a of s)this.isVisible(a,e)&&(l.push(a.layoutInfo),a.children&&o(a.children))};return o(this.rootNodes),l}layoutIfNeeded(e){if(this.lastCollection){this.requestedRect.containsRect(e)||(this.requestedRect=this.requestedRect.union(e),this.rootNodes=this.buildCollection());for(let t of this.virtualizer.persistedKeys)if(this.ensureLayoutInfo(t))return}}ensureLayoutInfo(e){return!this.layoutNodes.has(e)&&this.requestedRect.area<this.contentSize.area&&this.lastCollection?(this.requestedRect=new f(0,0,1/0,1/0),this.rootNodes=this.buildCollection(),this.requestedRect=new f(0,0,this.contentSize.width,this.contentSize.height),!0):!1}isVisible(e,t){return e.layoutInfo.rect.intersects(t)||e.layoutInfo.isSticky||e.layoutInfo.type==="header"||e.layoutInfo.type==="loader"||this.virtualizer.isPersistedKey(e.layoutInfo.key)}shouldInvalidateEverything(e){let t=e.layoutOptions;var i,l,o,s,a;return e.sizeChanged||this.rowHeight!==((i=t==null?void 0:t.rowHeight)!==null&&i!==void 0?i:this.rowHeight)||this.headingHeight!==((l=t==null?void 0:t.headingHeight)!==null&&l!==void 0?l:this.headingHeight)||this.loaderHeight!==((o=t==null?void 0:t.loaderHeight)!==null&&o!==void 0?o:this.loaderHeight)||this.gap!==((s=t==null?void 0:t.gap)!==null&&s!==void 0?s:this.gap)||this.padding!==((a=t==null?void 0:t.padding)!==null&&a!==void 0?a:this.padding)}shouldInvalidateLayoutOptions(e,t){return e.rowHeight!==t.rowHeight||e.estimatedRowHeight!==t.estimatedRowHeight||e.headingHeight!==t.headingHeight||e.estimatedHeadingHeight!==t.estimatedHeadingHeight||e.loaderHeight!==t.loaderHeight||e.dropIndicatorThickness!==t.dropIndicatorThickness||e.gap!==t.gap||e.padding!==t.padding}update(e){let t=this.virtualizer.collection;this.invalidateEverything=this.shouldInvalidateEverything(e),this.invalidateEverything&&(this.requestedRect=this.virtualizer.visibleRect.copy(),this.layoutNodes.clear());let i=e.layoutOptions;var l;this.rowHeight=(l=i==null?void 0:i.rowHeight)!==null&&l!==void 0?l:this.rowHeight;var o;this.estimatedRowHeight=(o=i==null?void 0:i.estimatedRowHeight)!==null&&o!==void 0?o:this.estimatedRowHeight;var s;this.headingHeight=(s=i==null?void 0:i.headingHeight)!==null&&s!==void 0?s:this.headingHeight;var a;this.estimatedHeadingHeight=(a=i==null?void 0:i.estimatedHeadingHeight)!==null&&a!==void 0?a:this.estimatedHeadingHeight;var h;this.loaderHeight=(h=i==null?void 0:i.loaderHeight)!==null&&h!==void 0?h:this.loaderHeight;var r;this.dropIndicatorThickness=(r=i==null?void 0:i.dropIndicatorThickness)!==null&&r!==void 0?r:this.dropIndicatorThickness;var d;this.gap=(d=i==null?void 0:i.gap)!==null&&d!==void 0?d:this.gap;var u;if(this.padding=(u=i==null?void 0:i.padding)!==null&&u!==void 0?u:this.padding,this.rootNodes=this.buildCollection(),this.lastCollection&&t!==this.lastCollection)for(let g of this.lastCollection.getKeys())t.getItem(g)||this.layoutNodes.get(g)&&this.layoutNodes.delete(g);this.lastCollection=t,this.invalidateEverything=!1,this.validRect=this.requestedRect.copy()}buildCollection(e=this.padding){let t=this.virtualizer.collection,i=0,l=[],o=(t==null?void 0:t.size)===0||t.size===1&&t.getItem(t.getFirstKey()).type==="loader";o&&(e=0);for(let r of t){var s,a;let d=((a=(s=this.rowHeight)!==null&&s!==void 0?s:this.estimatedRowHeight)!==null&&a!==void 0?a:I)+this.gap;if(r.type==="item"&&e+d<this.requestedRect.y&&!this.isValid(r,e)){e+=d,i++;continue}let u=this.buildChild(r,this.padding,e,null);if(e=u.layoutInfo.rect.maxY+this.gap,l.push(u),r.type==="item"&&e>this.requestedRect.maxY){var h;let g=t.size-(l.length+i),y=t.getItem(t.getLastKey());if((y==null?void 0:y.type)==="loader"&&g--,e+=g*d,(y==null?void 0:y.type)==="loader"&&((h=l.at(-1))===null||h===void 0?void 0:h.layoutInfo.type)!=="loader"){let v=this.buildChild(y,this.padding,e,null);l.push(v),e=v.layoutInfo.rect.maxY}break}}return e-=this.gap,e+=o?0:this.padding,this.contentSize=new z(this.virtualizer.visibleRect.width,e),l}isValid(e,t){let i=this.layoutNodes.get(e.key);return!this.invalidateEverything&&!!i&&i.node===e&&t===i.layoutInfo.rect.y&&i.layoutInfo.rect.intersects(this.validRect)&&i.validRect.containsRect(i.layoutInfo.rect.intersection(this.requestedRect))}buildChild(e,t,i,l){if(this.isValid(e,i))return this.layoutNodes.get(e.key);let o=this.buildNode(e,t,i);return o.layoutInfo.parentKey=l??null,o.layoutInfo.allowOverflow=!0,this.layoutNodes.set(e.key,o),o}buildNode(e,t,i){switch(e.type){case"section":return this.buildSection(e,t,i);case"item":return this.buildItem(e,t,i);case"header":return this.buildSectionHeader(e,t,i);case"loader":return this.buildLoader(e,t,i);case"separator":return this.buildItem(e,t,i);default:throw new Error("Unsupported node type: "+e.type)}}buildLoader(e,t,i){let l=new f(t,i,this.padding,0),o=new m("loader",e.key,l);l.width=this.virtualizer.contentSize.width-this.padding-t;var s,a,h;return l.height=e.props.isLoading?(h=(a=(s=this.loaderHeight)!==null&&s!==void 0?s:this.rowHeight)!==null&&a!==void 0?a:this.estimatedRowHeight)!==null&&h!==void 0?h:I:0,{layoutInfo:o,validRect:l.intersection(this.requestedRect)}}buildSection(e,t,i){let l=this.virtualizer.collection,o=this.virtualizer.visibleRect.width-this.padding,s=new f(t,i,o-t,0),a=new m(e.type,e.key,s),h=i,r=0,d=[];for(let y of q.$c5a24bc478652b5f$export$1005530eda016c13(e,l)){var u,g;let v=((g=(u=this.rowHeight)!==null&&u!==void 0?u:this.estimatedRowHeight)!==null&&g!==void 0?g:I)+this.gap;if(i+v<this.requestedRect.y&&!this.isValid(e,i)){i+=v,r++;continue}let w=this.buildChild(y,t,i,a.key);if(i=w.layoutInfo.rect.maxY+this.gap,d.push(w),i>this.requestedRect.maxY){i+=([...q.$c5a24bc478652b5f$export$1005530eda016c13(e,l)].length-(d.length+r))*v;break}}return i-=this.gap,s.height=i-h,{layoutInfo:a,children:d,validRect:a.rect.intersection(this.requestedRect),node:e}}buildSectionHeader(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding,o=this.headingHeight,s=!1;if(o==null){let r=this.layoutNodes.get(e.key),d=r==null?void 0:r.layoutInfo;if(d){let u=this.virtualizer.collection.getItem(e.key),g=this.lastCollection?this.lastCollection.getItem(e.key):null;o=d.rect.height,s=l!==d.rect.width||u!==g||d.estimatedSize}else o=e.rendered?this.estimatedHeadingHeight:0,s=!0}o==null&&(o=I);let a=new f(t,i,l-t,o),h=new m("header",e.key,a);return h.estimatedSize=s,{layoutInfo:h,children:[],validRect:h.rect.intersection(this.requestedRect),node:e}}buildItem(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding-t,o=this.rowHeight,s=!1;if(o==null){let r=this.layoutNodes.get(e.key);r?(o=r.layoutInfo.rect.height,s=l!==r.layoutInfo.rect.width||e!==r.node||r.layoutInfo.estimatedSize):(o=this.estimatedRowHeight,s=!0)}o==null&&(o=I);let a=new f(t,i,l,o),h=new m(e.type,e.key,a);return h.estimatedSize=s,{layoutInfo:h,children:[],validRect:h.rect,node:e}}updateItemSize(e,t){let i=this.layoutNodes.get(e);if(!i)return!1;let l=this.virtualizer.collection,o=i.layoutInfo;if(o.estimatedSize=!1,o.rect.height!==t.height){let s=o.copy();s.rect.height=t.height,i.layoutInfo=s,this.validRect.height=Math.min(this.validRect.height,o.rect.y-this.validRect.y),this.requestedRect.height+=s.rect.height-o.rect.height,this.updateLayoutNode(e,o,s);let a=o.parentKey!=null?l.getItem(o.parentKey):null;for(;a;)this.updateLayoutNode(a.key,o,s),a=a.parentKey!=null?l.getItem(a.parentKey):null;return!0}return!1}updateLayoutNode(e,t,i){let l=this.layoutNodes.get(e);l&&(l.validRect=l.validRect.intersection(this.validRect),l.layoutInfo===t&&(l.layoutInfo=i))}getContentSize(){return this.contentSize}getDropTargetFromPoint(e,t,i){e+=this.virtualizer.visibleRect.x,t+=this.virtualizer.visibleRect.y;let l=new f(e,Math.max(0,t-this.gap),1,Math.max(1,this.gap*2)),o=this.getVisibleLayoutInfos(l),s=null,a=1/0;for(let u of o){if(!u.rect.intersects(l))continue;let g=Math.abs(u.rect.y-t),y=Math.abs(u.rect.maxY-t),v=Math.min(g,y);v<a&&(a=v,s=u.key)}if(s==null||this.virtualizer.collection.size===0)return{type:"root"};let h=this.getLayoutInfo(s);if(!h)return null;let r=h.rect,d={type:"item",key:h.key,dropPosition:"on"};return i(d)?t<=r.y+10&&i({...d,dropPosition:"before"})?d.dropPosition="before":t>=r.maxY-10&&i({...d,dropPosition:"after"})&&(d.dropPosition="after"):t<=r.y+r.height/2&&i({...d,dropPosition:"before"})?d.dropPosition="before":i({...d,dropPosition:"after"})&&(d.dropPosition="after"),d}getDropTargetLayoutInfo(e){let t=this.getLayoutInfo(e.key),i;return e.dropPosition==="before"?i=new f(t.rect.x,t.rect.y-this.dropIndicatorThickness/2,t.rect.width,this.dropIndicatorThickness):e.dropPosition==="after"?i=new f(t.rect.x,t.rect.maxY-this.dropIndicatorThickness/2,t.rect.width,this.dropIndicatorThickness):i=t.rect,new m("dropIndicator",e.key+":"+e.dropPosition,i)}constructor(e={}){super();var t;this.rowHeight=(t=e.rowHeight)!==null&&t!==void 0?t:null;var i;this.estimatedRowHeight=(i=e.estimatedRowHeight)!==null&&i!==void 0?i:null;var l;this.headingHeight=(l=e.headingHeight)!==null&&l!==void 0?l:null;var o;this.estimatedHeadingHeight=(o=e.estimatedHeadingHeight)!==null&&o!==void 0?o:null;var s;this.loaderHeight=(s=e.loaderHeight)!==null&&s!==void 0?s:null,this.dropIndicatorThickness=e.dropIndicatorThickness||2,this.gap=e.gap||0,this.padding=e.padding||0,this.layoutNodes=new Map,this.rootNodes=[],this.lastCollection=null,this.invalidateEverything=!1,this.validRect=new f,this.requestedRect=new f,this.contentSize=new z}}let R=null;function ue(n=!1){if(R===null||n){const e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";const i=document.createElement("div"),l=i.style;return l.width="100px",l.height="100px",e.appendChild(i),document.body.appendChild(e),e.scrollLeft>0?R="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?R="negative":R="positive-ascending"),document.body.removeChild(e),R}return R}function fe(n,e){let{scrollLeft:t}=n;if(e==="rtl"){let{scrollWidth:i,clientWidth:l}=n;switch(ue()){case"negative":t=-t;break;case"positive-descending":t=i-l-t;break}}return t}function ge(n,e){let{contentSize:t,onVisibleRectChange:i,innerStyle:l,onScrollStart:o,onScrollEnd:s,scrollDirection:a="both",...h}=n,r=c.useRef({scrollTop:0,scrollLeft:0,scrollEndTime:0,scrollTimeout:null,width:0,height:0,isScrolling:!1}).current,{direction:d}=W.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),[u,g]=c.useState(!1),y=c.useCallback(p=>{p.target===p.currentTarget&&(n.onScroll&&n.onScroll(p),T.flushSync(()=>{let b=p.currentTarget.scrollTop,H=fe(p.currentTarget,d);r.scrollTop=Math.max(0,Math.min(b,t.height-r.height)),r.scrollLeft=Math.max(0,Math.min(H,t.width-r.width)),i(new f(r.scrollLeft,r.scrollTop,r.width,r.height)),r.isScrolling||(r.isScrolling=!0,g(!0),window.dispatchEvent(new Event("tk.disconnect-observer")),o&&o());let L=Date.now();r.scrollEndTime<=L+50&&(r.scrollEndTime=L+300,r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.scrollTimeout=setTimeout(()=>{r.isScrolling=!1,g(!1),r.scrollTimeout=null,window.dispatchEvent(new Event("tk.connect-observer")),s&&s()},300))}))},[n,d,r,t,i,o,s]);ee.$e9faafb641e167db$export$90fc3a17d93f704c(e,"scroll",y),c.useEffect(()=>()=>{r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.isScrolling&&window.dispatchEvent(new Event("tk.connect-observer"))},[]);let v=c.useRef(!1),w=C.$8ae05eaa5c114e9c$export$7f54fc3180508a52(p=>{let b=e.current;if(!b||v.current)return;v.current=!0;let H=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,L=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"),Q=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight"),O=b.clientWidth,P=b.clientHeight,N=H&&!L?1/0:O,E=H&&!Q?1/0:P;(r.width!==N||r.height!==E)&&(r.width=N,r.height=E,p(()=>{i(new f(r.scrollLeft,r.scrollTop,N,E))}),(!H&&O!==b.clientWidth||P!==b.clientHeight)&&(r.width=b.clientWidth,r.height=b.clientHeight,p(()=>{i(new f(r.scrollLeft,r.scrollTop,r.width,r.height))}))),v.current=!1}),_=c.useRef(null),[U,G]=c.useState({});C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(!v.current&&(_.current==null||!t.equals(_.current)))if(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u"){G({}),_.current=t;return}else queueMicrotask(()=>w(T.flushSync));_.current=t}),C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{w(p=>p())},[U]);let J=c.useCallback(()=>{w(T.flushSync)},[w]);Z.$9daab02d461809db$export$683480f191c0e3ea({ref:e,box:"border-box",onResize:J});let $={padding:0,...h.style};return a==="horizontal"?($.overflowX="auto",$.overflowY="hidden"):a==="vertical"||t.width===r.width?($.overflowY="auto",$.overflowX="hidden"):$.overflow="auto",l={width:Number.isFinite(t.width)?t.width:void 0,height:Number.isFinite(t.height)?t.height:void 0,pointerEvents:u?"none":"auto",position:"relative",...l},{scrollViewProps:{...h,style:$},contentProps:{role:"presentation",style:l}}}function ye(n){let{layoutInfo:e,virtualizer:t,ref:i}=n,l=e==null?void 0:e.key,o=c.useCallback(()=>{if(l!=null&&i.current){let s=ve(i.current);t.updateItemSize(l,s)}},[t,l,i]);return C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{e!=null&&e.estimatedSize&&o()}),{updateSize:o}}function ve(n){let e=n.style.height;n.style.height="";let t=new z(n.scrollWidth,n.scrollHeight);return n.style.height=e,t}function X(n){let{style:e,className:t,layoutInfo:i,virtualizer:l,parent:o,children:s}=n,{direction:a}=W.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),h=c.useRef(null);return ye({layoutInfo:i,virtualizer:l,ref:h}),c.createElement("div",{role:"presentation",ref:h,className:t,style:{...pe(i,a,o),...e}},s)}let B=new WeakMap;function pe(n,e,t){let i=e==="rtl"?"right":"left",l=B.get(n);if(l&&l[i]!=null){if(!t)return l;let h=n.rect.y-t.rect.y,r=n.rect.x-t.rect.x;if(l.top===h&&l[i]===r)return l}let o={top:n.rect.y-(t&&!(t.allowOverflow&&n.isSticky)?t.rect.y:0),[i]:n.rect.x-(t&&!(t.allowOverflow&&n.isSticky)?t.rect.x:0),width:n.rect.width,height:n.rect.height};Object.entries(o).forEach(([h,r])=>{Number.isFinite(r)||(o[h]=void 0)});var s;let a={position:n.isSticky?"sticky":"absolute",display:n.isSticky?"inline-block":void 0,overflow:n.allowOverflow?"visible":"hidden",opacity:n.opacity,zIndex:n.zIndex,transform:(s=n.transform)!==null&&s!==void 0?s:void 0,contain:"size layout style",...o};return B.set(n,a),a}const j=c.createContext(null),A=c.createContext(null);function we(n){let{children:e,layout:t,layoutOptions:i}=n,l=c.useMemo(()=>typeof t=="function"?new t:t,[t]),o=c.useMemo(()=>({isVirtualized:!0,layoutDelegate:l,dropTargetDelegate:l.getDropTargetFromPoint?l:void 0,CollectionRoot:be,CollectionBranch:me}),[l]);return c.createElement(Y.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:o},c.createElement(A.Provider,{value:{layout:l,layoutOptions:i}},e))}function be({collection:n,persistedKeys:e,scrollRef:t,renderDropIndicator:i}){var l;let{layout:o,layoutOptions:s}=c.useContext(A),a=(l=o.useLayoutOptions)===null||l===void 0?void 0:l.call(o),h=de({layout:o,collection:n,renderView:(d,u)=>{var g;return u==null||(g=u.render)===null||g===void 0?void 0:g.call(u,u)},onVisibleRectChange(d){let u=t==null?void 0:t.current;u&&(u.scrollLeft=d.x,u.scrollTop=d.y)},persistedKeys:e,layoutOptions:c.useMemo(()=>s&&a?{...s,...a}:s||a,[s,a])}),{contentProps:r}=ge({onVisibleRectChange:h.setVisibleRect,contentSize:h.contentSize,onScrollStart:h.startScrolling,onScrollEnd:h.endScrolling},t);return c.createElement("div",r,c.createElement(j.Provider,{value:h},F(null,h.visibleViews,i)))}function me({parent:n,renderDropIndicator:e}){let i=c.useContext(j).virtualizer.getVisibleView(n.key);return F(i,Array.from(i.children),e)}function F(n,e,t){return e.map(i=>xe(n,i,t))}function xe(n,e,t){let i=c.createElement(X,{key:e.key,layoutInfo:e.layoutInfo,virtualizer:e.virtualizer,parent:n==null?void 0:n.layoutInfo},e.rendered),{collection:l,layout:o}=e.virtualizer,s=e.content;return(s==null?void 0:s.type)==="item"&&t&&o.getDropTargetLayoutInfo&&(i=c.createElement(c.Fragment,{key:e.key},K(n,e,{type:"item",key:e.content.key,dropPosition:"before"},t),i,Y.$7135fc7d473fd974$export$2dbbd341daed716d(l,s,a=>K(n,e,a,t)))),i}function K(n,e,t,i){let l=i(t);if(l){let o=e.virtualizer.layout.getDropTargetLayoutInfo(t);l=c.createElement(X,{layoutInfo:o,virtualizer:e.virtualizer,parent:n==null?void 0:n.layoutInfo},l)}return l}class $e extends ce{getContentSize(){var t;const e=(t=this==null?void 0:this.virtualizer)==null?void 0:t.collection.getKeys();return Array.from(e||[]).forEach(i=>{this.getLayoutInfo(i)}),this.contentSize}}const Ie="_listBox_iev2c_7",Re="_listBoxPopover_iev2c_19",Se="_listBoxSectionHeading_iev2c_31",ze="_listBoxButton_iev2c_38",He="_listBoxItem_iev2c_50",k={listBox:Ie,listBoxPopover:Re,listBoxSectionHeading:Se,listBoxButton:ze,listBoxItem:He},Ce=({className:n,children:e,...t})=>S.jsx(we,{layout:$e,layoutOptions:{headingHeight:44},children:S.jsx(V.$eed445e0843c11d0$export$41f133550aa26f48,{className:M.clsx(k.listBox,n),...t,children:e})}),ke=({children:n,className:e,...t})=>S.jsx(V.$eed445e0843c11d0$export$a11e76429ed99b4,{className:M.clsx(k.listBoxItem,e),...t,children:n}),_e=({className:n,children:e,...t})=>S.jsx(te.$07b14b47974efb58$export$5b6b19405a83ff9d,{className:M.clsx(n,k.listBoxPopover),offset:0,...t,children:e}),Le=({children:n,name:e,...t})=>S.jsxs(V.$eed445e0843c11d0$export$dca12b0bb56e4fc,{...t,children:[S.jsx(ie.$72a5793c14baf454$export$8b251419efc915eb,{className:k.listBoxSectionHeading,children:e}),n]});exports.ListBox=Ce;exports.ListBoxItem=ke;exports.ListBoxPopover=_e;exports.ListBoxSection=Le;exports.styles=k;