@midas-ds/components 15.2.1 → 15.2.2

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 (351) hide show
  1. package/{AccordionItem-8UtB6O1X.js → AccordionItem-B_49vBml.js} +58 -58
  2. package/AccordionItem-C-gkv3jn.cjs +1 -0
  3. package/{Breadcrumbs-BenPNv8Z.js → Breadcrumbs-BKft9SZ9.js} +8 -8
  4. package/{Breadcrumbs-BBDGxc68.cjs → Breadcrumbs-G8PykxwF.cjs} +1 -1
  5. package/{Button-DdXFHfXw.js → Button-Bb0wSnh4.js} +1 -1
  6. package/Button-BuelSBWx.cjs +1 -0
  7. package/{Button-BEWKXjlP.cjs → Button-CaPoPCq8.cjs} +1 -1
  8. package/{Button-BbfVT9Yl.js → Button-DQKRTkoz.js} +8 -8
  9. package/CHANGELOG.md +7 -0
  10. package/{Card-CdqGFff2.js → Card-BIx_JcUG.js} +4 -4
  11. package/{Card-Db9xdzJ0.cjs → Card-Du2Tzg4R.cjs} +1 -1
  12. package/CharacterCounter-C8PalBAH.cjs +1 -0
  13. package/CharacterCounter-mifF3s5f.js +22 -0
  14. package/{Checkbox-ujNi8mrO.js → Checkbox-CsITchPQ.js} +68 -75
  15. package/Checkbox-LGIr8OfT.cjs +1 -0
  16. package/CheckboxGroup-BdcEnLWf.cjs +1 -0
  17. package/{CheckboxGroup-BeBThHOu.js → CheckboxGroup-Cn5j_R5a.js} +44 -42
  18. package/{Collection-BkxwF21i.js → Collection-CXAXUgCh.js} +12 -12
  19. package/Collection-Dq97IKYm.cjs +1 -0
  20. package/ColorSchemeSwitch-AM8Xon5u.cjs +1 -0
  21. package/{ColorSchemeSwitch-aF2UxI20.js → ColorSchemeSwitch-DK2w93PC.js} +5 -23
  22. package/{ComboBox-BGXUTKrW.js → ComboBox-BFfUWFb-.js} +59 -60
  23. package/{ComboBox-lteAZwCb.cjs → ComboBox-_fqwvHy1.cjs} +1 -1
  24. package/{DateField-snXaUoBR.js → DateField-CJkMWNOU.js} +4 -4
  25. package/{DateField-ZPcapPji.cjs → DateField-CuEzECWT.cjs} +1 -1
  26. package/{DateInputDivider-BjVsNVEk.js → DateInputDivider-DCOj8K0x.js} +43 -43
  27. package/DateInputDivider-DJN5KyLX.cjs +1 -0
  28. package/DateRangePicker-BleP75yR.cjs +1 -0
  29. package/{DateRangePicker-CgvPZfMd.js → DateRangePicker-Dwd6n5Ep.js} +64 -69
  30. package/{Dialog-DtOf0vWx.cjs → Dialog-DOXrOfUr.cjs} +1 -1
  31. package/{Dialog-D4Py85wi.js → Dialog-F3u8agGf.js} +43 -43
  32. package/{Dialog-CPuJA2fm.js → Dialog-OKCVfgWq.js} +11 -11
  33. package/Dialog-XOUP-FA_.cjs +6 -0
  34. package/{DragAndDrop-DF0VoPJw.js → DragAndDrop-37cBrgqG.js} +7 -7
  35. package/DragAndDrop-pskCjm3i.cjs +1 -0
  36. package/Dropdown-C-2k1le5.cjs +1 -0
  37. package/{Dropdown-B4lwe0Hn.js → Dropdown-yIguICs_.js} +4 -10
  38. package/FieldError-DQ61agyq.js +48 -0
  39. package/FieldError-DwYQXCwP.cjs +1 -0
  40. package/{FileUpload-DLBP3VPp.js → FileUpload-B3KSWqbo.js} +16 -16
  41. package/{FileUpload-C0TjNkuh.cjs → FileUpload-DsTi9F39.cjs} +2 -2
  42. package/{Group-B0Wj9pI8.cjs → Group-BGDzFZ4R.cjs} +1 -1
  43. package/{Group-BAd7alBM.js → Group-C-bh9aEE.js} +4 -4
  44. package/{Heading-CCoGfKQ8.js → Heading-BRErvUe8.js} +1 -1
  45. package/{Heading-x7y3xadc.cjs → Heading-DWSQCI4U.cjs} +1 -1
  46. package/InfoBanner-BY-ATC3B.cjs +1 -0
  47. package/InfoBanner-DU8GMggz.js +72 -0
  48. package/{Input-CQzv-D9g.js → Input-B6G4aU36.js} +4 -4
  49. package/{Input-Bda0PCu5.cjs → Input-CpMWCSE3.cjs} +1 -1
  50. package/Label-DkNtFYv5.cjs +1 -0
  51. package/Label-knQhhLVp.js +74 -0
  52. package/Layout-B6EeXI6A.cjs +1 -0
  53. package/{Layout-FveYuBny.js → Layout-DTTpCtPx.js} +160 -179
  54. package/{Link-BudFjYrw.js → Link-BEXS7vVU.js} +5 -11
  55. package/Link-BPg_SBiF.cjs +1 -0
  56. package/{Link-DRU6Qzia.cjs → Link-MUiihlbG.cjs} +1 -1
  57. package/{Link-l-nMP-Zd.js → Link-bblcx0a9.js} +7 -7
  58. package/{LinkButton-DP9W-E32.js → LinkButton-Dr3wO2Gq.js} +5 -11
  59. package/LinkButton-zk257klG.cjs +1 -0
  60. package/ListBox-BDEzuwgf.cjs +1 -0
  61. package/ListBox-BJLtPJiW.cjs +1 -0
  62. package/{ListBox-5GK4ZRj1.js → ListBox-CEkHNTKf.js} +34 -34
  63. package/{ListBox-CfzKpJFW.js → ListBox-TsgvK95f.js} +26 -27
  64. package/{ListBoxLoadMoreItem-10BeO9ux.cjs → ListBoxLoadMoreItem-Bpp_Sab2.cjs} +1 -1
  65. package/{ListBoxLoadMoreItem-k-uwDi4f.js → ListBoxLoadMoreItem-z7Cpu0NS.js} +4 -4
  66. package/{ListBoxSection-XoMfdRLd.js → ListBoxSection-C-7JFypr.js} +4 -4
  67. package/{ListBoxSection-B5l2LIMZ.cjs → ListBoxSection-DcajcZMK.cjs} +1 -1
  68. package/ListKeyboardDelegate-6U5oNrPf.cjs +1 -0
  69. package/{ListKeyboardDelegate-BBmpJ-2O.js → ListKeyboardDelegate-RT2g6YNq.js} +9 -9
  70. package/{LocalizedStringFormatter-D-4Qyql0.js → LocalizedStringFormatter-B30riBJg.js} +1 -1
  71. package/LocalizedStringFormatter-COUSbzAQ.cjs +1 -0
  72. package/{Logo-DLlt576_.js → Logo-DJIcUslN.js} +1 -1
  73. package/{Logo-4tRnV4Su.cjs → Logo-YY9hQ8G3.cjs} +1 -1
  74. package/{OverlayArrow-CjGslX2c.js → OverlayArrow--IqDwz6a.js} +26 -26
  75. package/OverlayArrow-C2rMXHUL.cjs +1 -0
  76. package/{Popover-DpB0XDBp.cjs → Popover-DatBJsbE.cjs} +1 -1
  77. package/{Popover-CS8Yyfrq.js → Popover-wdMVjcxB.js} +2 -2
  78. package/PressResponder-DNelELQh.cjs +1 -0
  79. package/{PressResponder-BMj6Zvbn.js → PressResponder-zxT2DkkQ.js} +5 -5
  80. package/ProgressBar-Cp0-AYZG.js +53 -0
  81. package/ProgressBar-DkpC1juo.cjs +1 -0
  82. package/{Radio-CNO4IHkf.js → Radio-BPNKJKOP.js} +20 -20
  83. package/Radio-BxWwVigT.cjs +1 -0
  84. package/RangeCalendar-BNrmWgzG.cjs +1 -0
  85. package/{RangeCalendar-DKsuoiPF.js → RangeCalendar-vgnMNbq9.js} +31 -37
  86. package/{SearchField-3XoN9q0k.js → SearchField-DPfxzKjv.js} +124 -131
  87. package/SearchField-o3f8qUIH.cjs +1 -0
  88. package/Select-CBDKZpHJ.js +672 -0
  89. package/Select-C_NA-Rmt.cjs +1 -0
  90. package/Select-CsKzomrZ.cjs +1 -0
  91. package/{Select-oiNYST-S.js → Select-L_SkM5rY.js} +118 -118
  92. package/{SelectionIndicator-C2E23-zO.js → SelectionIndicator-B5J-eND9.js} +16 -16
  93. package/SelectionIndicator-CD2Lb431.cjs +1 -0
  94. package/SelectionManager-C4hvFZl0.cjs +1 -0
  95. package/{SelectionManager-DoNLJm8c.js → SelectionManager-bnxBDhgb.js} +20 -20
  96. package/{Separator-DCi4bnBr.cjs → Separator--v6lgpnX.cjs} +1 -1
  97. package/{Separator-CSyYDGNE.cjs → Separator-CYPstw7z.cjs} +1 -1
  98. package/{Separator-CQfDz_zr.js → Separator-Cxt7kicM.js} +6 -6
  99. package/{Separator-DLr4kUJD.js → Separator-DNzGXwgr.js} +4 -4
  100. package/{Spinner-D6Fcu_Dp.js → Spinner-BY-ql54i.js} +4 -10
  101. package/{Spinner-DIapnvIz.cjs → Spinner-Diy-6pvn.cjs} +1 -6
  102. package/{TabList-BBmBumm6.js → TabList-B3171e0b.js} +17 -17
  103. package/TabList-DPmDWfKk.cjs +1 -0
  104. package/Table-BUdVtD4F.cjs +1 -0
  105. package/{Table-3x_iGkVe.js → Table-CbogM0Ti.js} +49 -67
  106. package/Tag-Bd8ql_zX.cjs +1 -0
  107. package/{Tag-DX1X_NZE.js → Tag-DbNUEevV.js} +29 -29
  108. package/{Text-CnY7jiPS.js → Text-6Fdknq88.js} +1 -1
  109. package/{Text-bqP9NeVg.js → Text-B30xuDOt.js} +1 -1
  110. package/{Text-0wXj3J8E.cjs → Text-BiDSbNaP.cjs} +1 -1
  111. package/{Text-DUIBTA3N.cjs → Text-D29KP4_q.cjs} +1 -1
  112. package/{TextArea-Bzgu6xU_.js → TextArea-CPNWfdbi.js} +9 -9
  113. package/{TextArea-DPeIoF7V.cjs → TextArea-CWEBjWY4.cjs} +1 -1
  114. package/{TextField-DFMRyd9V.js → TextField-1_-3gKYa.js} +11 -11
  115. package/{TextField-CdhdTYjC.cjs → TextField-6v1u8c__.cjs} +1 -1
  116. package/Toast-Ds5Fo6h5.cjs +1 -0
  117. package/{Toast-B99bLWnh.js → Toast-_qUnywNt.js} +14 -14
  118. package/{ToggleButtonGroup-dnvnzkaD.cjs → ToggleButtonGroup-DWqPFJWL.cjs} +1 -1
  119. package/{ToggleButtonGroup-CFRutAZ4.js → ToggleButtonGroup-H5EyZXFC.js} +7 -7
  120. package/Tooltip-CPn8DVh8.cjs +1 -0
  121. package/{Tooltip-CUdmOznK.js → Tooltip-CTF8e-pm.js} +9 -9
  122. package/{VisuallyHidden-DuW70K-5.js → VisuallyHidden-BCa6ThRH.js} +2 -2
  123. package/{VisuallyHidden-BMelU6B0.cjs → VisuallyHidden-CrRi8fmq.cjs} +1 -1
  124. package/accordion/index.cjs +1 -1
  125. package/accordion/index.js +1 -1
  126. package/arrow-right-CG_-Xh3g.cjs +1 -0
  127. package/arrow-right-DNeP8Eqv.js +8 -0
  128. package/assets/Card.css +1 -1
  129. package/assets/Checkbox.css +1 -1
  130. package/assets/DateRangePicker.css +1 -1
  131. package/assets/Layout.css +1 -1
  132. package/assets/Link.css +1 -1
  133. package/assets/LinkButton.css +1 -1
  134. package/assets/SearchField.css +1 -1
  135. package/assets/Table.css +1 -1
  136. package/breadcrumbs/index.cjs +1 -1
  137. package/breadcrumbs/index.js +1 -1
  138. package/button/index.cjs +1 -1
  139. package/button/index.js +1 -1
  140. package/calendar/index.cjs +1 -1
  141. package/calendar/index.js +1 -1
  142. package/card/index.cjs +1 -1
  143. package/card/index.js +1 -1
  144. package/character-counter/index.cjs +1 -1
  145. package/character-counter/index.js +1 -1
  146. package/check-BxlvVsvD.js +5 -0
  147. package/check-DA2sdqW6.cjs +1 -0
  148. package/checkbox/index.cjs +1 -1
  149. package/checkbox/index.js +2 -2
  150. package/chevron-down-DgT-uSF9.js +5 -0
  151. package/chevron-down-DyBh7agb.cjs +1 -0
  152. package/chevron-right-BBue_o6c.cjs +1 -0
  153. package/chevron-right-GpyqdYK4.js +5 -0
  154. package/color-scheme-switch/index.cjs +1 -1
  155. package/color-scheme-switch/index.js +1 -1
  156. package/combobox/index.cjs +1 -1
  157. package/combobox/index.js +1 -1
  158. package/{createLucideIcon-XRdN60yz.js → createLucideIcon-D4r5Phnh.js} +0 -24
  159. package/createLucideIcon-H_Gy5FIB.cjs +1 -0
  160. package/date-field/index.cjs +1 -1
  161. package/date-field/index.js +2 -2
  162. package/date-picker/index.cjs +1 -1
  163. package/date-picker/index.js +1 -1
  164. package/dropdown/index.cjs +1 -1
  165. package/dropdown/index.js +1 -1
  166. package/field-error/index.cjs +1 -1
  167. package/field-error/index.js +1 -1
  168. package/file-upload/index.cjs +1 -1
  169. package/file-upload/index.js +1 -1
  170. package/{filterDOMProps-wsa9OcNI.js → filterDOMProps-BSVCO5jK.js} +1 -1
  171. package/{filterDOMProps-RRlKPKX0.cjs → filterDOMProps-WUskt27c.cjs} +1 -1
  172. package/{getScrollParent-DjULaF_q.cjs → getScrollParent-DL0OH1RF.cjs} +1 -1
  173. package/{getScrollParent-DFCzfqHG.js → getScrollParent-DcNANHTB.js} +1 -1
  174. package/heading/index.cjs +1 -1
  175. package/heading/index.js +1 -1
  176. package/icon-map-BzhRRdiZ.cjs +1 -0
  177. package/{icon-map-uS87FT_Q.js → icon-map-Ckc-nEUA.js} +3 -15
  178. package/{index-DEx4upZl.js → index-Cm_oKP6P.js} +0 -18
  179. package/index-DTHSUSyf.cjs +1 -0
  180. package/index.cjs +1 -1
  181. package/index.js +45 -45
  182. package/info-BxSJFLL7.cjs +1 -0
  183. package/info-banner/index.cjs +1 -1
  184. package/info-banner/index.js +1 -1
  185. package/info-kdfED7Wh.js +9 -0
  186. package/label/index.cjs +1 -1
  187. package/label/index.js +1 -1
  188. package/layout/index.cjs +1 -1
  189. package/layout/index.js +1 -1
  190. package/legacy-select/index.cjs +1 -1
  191. package/legacy-select/index.js +1 -1
  192. package/link/index.cjs +1 -1
  193. package/link/index.js +2 -2
  194. package/link-button/index.cjs +1 -1
  195. package/link-button/index.js +2 -2
  196. package/list-box/index.cjs +1 -1
  197. package/list-box/index.js +3 -3
  198. package/logo/index.cjs +1 -1
  199. package/logo/index.js +1 -1
  200. package/menu/index.cjs +1 -1
  201. package/menu/index.js +2 -2
  202. package/mergeProps-D9EPHb19.cjs +1 -0
  203. package/{mergeProps-Ct8m5-xW.js → mergeProps-oYrDoKjU.js} +1 -1
  204. package/modal/index.cjs +1 -1
  205. package/modal/index.js +2 -2
  206. package/package.json +1 -1
  207. package/popover/index.cjs +1 -1
  208. package/popover/index.js +1 -1
  209. package/progress-bar/index.cjs +1 -1
  210. package/progress-bar/index.js +1 -1
  211. package/radio/index.cjs +1 -1
  212. package/radio/index.js +1 -1
  213. package/{scrollIntoView-BueMOyGp.cjs → scrollIntoView-CogxjvPU.cjs} +1 -1
  214. package/{scrollIntoView-BVI21Y4-.js → scrollIntoView-LRRMWgN9.js} +1 -1
  215. package/search-field/index.cjs +1 -1
  216. package/search-field/index.js +1 -1
  217. package/select/index.cjs +1 -1
  218. package/select/index.js +1 -1
  219. package/spinner/index.cjs +1 -1
  220. package/spinner/index.js +1 -1
  221. package/square-arrow-out-up-right-BRD_p9sV.cjs +1 -0
  222. package/{square-arrow-out-up-right-ok0A3Ovo.js → square-arrow-out-up-right-XMqOAsOL.js} +1 -7
  223. package/table/index.cjs +1 -1
  224. package/table/index.js +1 -1
  225. package/tabs/index.cjs +1 -1
  226. package/tabs/index.js +1 -1
  227. package/tag/index.cjs +1 -1
  228. package/tag/index.js +1 -1
  229. package/text/index.cjs +1 -1
  230. package/text/index.js +1 -1
  231. package/textfield/index.cjs +1 -1
  232. package/textfield/index.js +1 -1
  233. package/toast/index.cjs +1 -1
  234. package/toast/index.js +1 -1
  235. package/toggle-button/index.cjs +1 -1
  236. package/toggle-button/index.js +1 -1
  237. package/tooltip/index.cjs +1 -1
  238. package/tooltip/index.js +1 -1
  239. package/{useButton-C0r5nrqs.cjs → useButton-BuHg3SHI.cjs} +1 -1
  240. package/{useButton-CRgN6aZf.js → useButton-aiD_OMdm.js} +4 -4
  241. package/{useDateFormatter-Bs5A6Xtu.js → useDateFormatter-BjUtrG4h.js} +12 -12
  242. package/useDateFormatter-DsPmipft.cjs +1 -0
  243. package/{useDescription-BFwQx7Rp.js → useDescription-6jSV4EKe.js} +1 -1
  244. package/{useDescription-6BYtQxe6.cjs → useDescription-D-EGF3RO.cjs} +1 -1
  245. package/{useEvent-smuTnX4G.js → useEvent-ChPThFqF.js} +1 -1
  246. package/{useEvent-C125NAue.cjs → useEvent-DnWDW9C-.cjs} +1 -1
  247. package/{useField-Bx76iuoW.js → useField-Bf6sH2Px.js} +2 -2
  248. package/{useField-DvszkIMx.cjs → useField-yjDSH-M4.cjs} +1 -1
  249. package/{useFilter-Dn4vTT3G.js → useFilter-DMfUE0Pr.js} +1 -1
  250. package/{useFilter-eOgdlVLd.cjs → useFilter-Dg_Msy0o.cjs} +1 -1
  251. package/{useFocusRing-C-XVcAE5.cjs → useFocusRing-BV6zA8CX.cjs} +1 -1
  252. package/{useFocusRing-CcxI7nbg.js → useFocusRing-DAZgolYd.js} +2 -2
  253. package/{useFocusWithin-DhXBuB2O.js → useFocusWithin-Bfslfw41.js} +1 -1
  254. package/{useFocusWithin-GBjoTL5o.cjs → useFocusWithin-CrScjOpV.cjs} +1 -1
  255. package/{useFocusable-BJj-Bkig.js → useFocusable--wi5KJXc.js} +4 -4
  256. package/{useFocusable-M4se1KJt.cjs → useFocusable-Sz45n7Ye.cjs} +1 -1
  257. package/{useFormValidation-By7G-T7y.js → useFormValidation-BgOffXI-.js} +11 -11
  258. package/useFormValidation-pVNhWoaN.cjs +1 -0
  259. package/useHasTabbableChild-CdkTG0q5.cjs +1 -0
  260. package/{useHasTabbableChild-DpISgPsS.js → useHasTabbableChild-CqUFT0lE.js} +4 -4
  261. package/{useHighlightSelectionDescription-Zvo5KTxM.js → useHighlightSelectionDescription-Cb6lF44_.js} +5 -5
  262. package/{useHighlightSelectionDescription-CBZfyrhy.cjs → useHighlightSelectionDescription-P3sZZm15.cjs} +1 -1
  263. package/{useHover-DkC5FyNd.js → useHover-BkQu__4t.js} +4 -4
  264. package/useHover-DIDiFsU7.cjs +1 -0
  265. package/{useLabels-B5pmat1S.cjs → useLabels-CU8PN8IQ.cjs} +1 -1
  266. package/{useLabels-D24on06F.js → useLabels-Cu5Jf9jq.js} +1 -1
  267. package/useListState-BCVYtjD-.cjs +1 -0
  268. package/{useListState-CP7AKhOX.js → useListState-DeBExb3v.js} +8 -8
  269. package/{useLocalizedStringFormatter-CSEh15AZ.js → useLocalizedStringFormatter-D1ErlkJ8.js} +1 -1
  270. package/{useLocalizedStringFormatter-BSac43NO.cjs → useLocalizedStringFormatter-Dfow0G-0.cjs} +1 -1
  271. package/{useLocalizedStringFormatter-CHAo1AyN.cjs → useLocalizedStringFormatter-MAvCRfhy.cjs} +1 -1
  272. package/{useLocalizedStringFormatter-aOhh7wdl.js → useLocalizedStringFormatter-m7LExKN3.js} +1 -1
  273. package/usePress-BQdBua-S.cjs +7 -0
  274. package/{usePress-BqQIhkNY.js → usePress-DPxp2Cij.js} +14 -14
  275. package/{useSingleSelectListState-JCvbhUVI.cjs → useSingleSelectListState-CdlkYnNt.cjs} +1 -1
  276. package/{useSingleSelectListState-GSY0f4qW.js → useSingleSelectListState-HaZMDvFf.js} +1 -1
  277. package/{useTextField-I3QVGvyX.js → useTextField-BwMgd3fF.js} +6 -6
  278. package/{useTextField-CiWV3eeD.cjs → useTextField-CMt3kP3D.cjs} +1 -1
  279. package/{utils-D2iKpxcZ.js → utils-BJ6_Ry69.js} +1 -1
  280. package/utils-CByogC0r.cjs +1 -0
  281. package/{utils-Dxh86KaB.js → utils-DdKRtUsl.js} +4 -4
  282. package/{utils-CtICjCYt.cjs → utils-ZN3Na38z.cjs} +1 -1
  283. package/x-BXShoIAM.js +8 -0
  284. package/x-DRkCcaDU.cjs +1 -0
  285. package/AccordionItem-DKE794Si.cjs +0 -1
  286. package/Button-1sEX8jKn.cjs +0 -1
  287. package/CharacterCounter-BjOzWOoN.cjs +0 -1
  288. package/CharacterCounter-b6RpXKDF.js +0 -22
  289. package/Checkbox-D9X5vM4a.cjs +0 -6
  290. package/CheckboxGroup-BmEiqFKx.cjs +0 -1
  291. package/Collection-vGO6v3_U.cjs +0 -1
  292. package/ColorSchemeSwitch-Ckna0otR.cjs +0 -16
  293. package/DateInputDivider-YOvEmapQ.cjs +0 -1
  294. package/DateRangePicker-Biwt-Q8X.cjs +0 -6
  295. package/Dialog-DycTLpdr.cjs +0 -6
  296. package/DragAndDrop-Cs-V-9ak.cjs +0 -1
  297. package/Dropdown-_g9l5k07.cjs +0 -6
  298. package/FieldError-DHzrxRPt.cjs +0 -1
  299. package/FieldError-DtEDCIQK.js +0 -48
  300. package/InfoBanner-D7Ta-7PI.js +0 -72
  301. package/InfoBanner-_M_rGQiu.cjs +0 -1
  302. package/Label-Cbp1q387.cjs +0 -1
  303. package/Label-DH4JI6a4.js +0 -74
  304. package/Layout-DQiqgjqR.cjs +0 -16
  305. package/Link-BvUSTIip.cjs +0 -6
  306. package/LinkButton-DGdnbTgR.cjs +0 -6
  307. package/ListBox-CMM6O46x.cjs +0 -1
  308. package/ListBox-FD30iELk.cjs +0 -1
  309. package/ListKeyboardDelegate-8zuIfwQ7.cjs +0 -1
  310. package/LocalizedStringFormatter-C0C54hjf.cjs +0 -1
  311. package/OverlayArrow-bcrb_syE.cjs +0 -1
  312. package/PressResponder-ChvCuOue.cjs +0 -1
  313. package/ProgressBar-C6ExqGom.cjs +0 -1
  314. package/ProgressBar-CePyiuw1.js +0 -53
  315. package/Radio-bfeheQ39.cjs +0 -1
  316. package/RangeCalendar-D7xj3ObC.cjs +0 -6
  317. package/SearchField-ClK2IHpM.cjs +0 -6
  318. package/Select-C1rNC9sy.cjs +0 -1
  319. package/Select-CCyvb02g.cjs +0 -1
  320. package/Select-mz65sX1p.js +0 -677
  321. package/SelectionIndicator-ClG0GpJu.cjs +0 -1
  322. package/SelectionManager-CNJmHeCF.cjs +0 -1
  323. package/TabList-DVzXuGXA.cjs +0 -1
  324. package/Table-BKbmV4Yp.cjs +0 -16
  325. package/Tag-BL-_PONN.cjs +0 -1
  326. package/Toast-DUZ5jfG1.cjs +0 -1
  327. package/Tooltip-D-ATlbIM.cjs +0 -1
  328. package/arrow-right-BGd86zzR.cjs +0 -6
  329. package/arrow-right-uemUGIg8.js +0 -14
  330. package/check-B0aKTFe5.cjs +0 -6
  331. package/check-B5h1DvDs.js +0 -11
  332. package/chevron-down-5hFlg_lR.cjs +0 -6
  333. package/chevron-down-DmZMdOiC.js +0 -11
  334. package/chevron-right-0-sUFBiR.cjs +0 -6
  335. package/chevron-right-BYYHEJjK.js +0 -11
  336. package/createLucideIcon-CTVXwe6i.cjs +0 -21
  337. package/icon-map-9XcghDra.cjs +0 -11
  338. package/index-hURPlN0u.cjs +0 -17
  339. package/info-CPK1vbOJ.js +0 -15
  340. package/info-Dj6SyPex.cjs +0 -6
  341. package/mergeProps-Du5A8xi8.cjs +0 -1
  342. package/square-arrow-out-up-right-xCFdJTzY.cjs +0 -6
  343. package/useDateFormatter-BrrFo4nY.cjs +0 -1
  344. package/useFormValidation-DV2Ioblb.cjs +0 -1
  345. package/useHasTabbableChild-BJ_VejL5.cjs +0 -1
  346. package/useHover-DULSfLuK.cjs +0 -1
  347. package/useListState-DZFWpD-x.cjs +0 -1
  348. package/usePress-DmU79HEg.cjs +0 -7
  349. package/utils-DRIRjPUS.cjs +0 -1
  350. package/x-C2xUHAEl.js +0 -14
  351. package/x-rV-nu490.cjs +0 -6
@@ -1,59 +1,59 @@
1
1
  import { jsxs as F, jsx as u } from "react/jsx-runtime";
2
2
  import * as R from "react";
3
- import H, { useEffect as D, useMemo as W, useRef as J } from "react";
3
+ import H, { useEffect as _, useMemo as W, useRef as J } from "react";
4
4
  import { c as K } from "./RSPContexts-B0lEq7qq.js";
5
- import { $ as Q, c as T } from "./utils-D2iKpxcZ.js";
5
+ import { $ as Q, c as T } from "./utils-BJ6_Ry69.js";
6
6
  import { $ as X } from "./Form-CXcEMuBf.js";
7
7
  import { c as S } from "./clsx-OuTLNxxd.js";
8
8
  import { i as V } from "./variables-BkqZ2WGF.js";
9
- import { a as y } from "./mergeProps-Ct8m5-xW.js";
10
- import { c as Y } from "./createLucideIcon-XRdN60yz.js";
11
- import { C as Z } from "./check-B5h1DvDs.js";
12
- import { $ as ee } from "./VisuallyHidden-DuW70K-5.js";
13
- import { a as ae, $ as _, b as ie, d as p, e as oe } from "./useFormValidation-By7G-T7y.js";
14
- import { b as k } from "./usePress-BqQIhkNY.js";
15
- import { $ as de } from "./filterDOMProps-wsa9OcNI.js";
16
- import { a as ne } from "./useFocusable-BJj-Bkig.js";
17
- import { $ as B } from "./useToggleState-BVOqL4hI.js";
18
- import { $ as se } from "./useHover-DkC5FyNd.js";
19
- import { $ as le } from "./useFocusRing-CcxI7nbg.js";
9
+ import { a as k } from "./mergeProps-oYrDoKjU.js";
10
+ import { c as Y } from "./createLucideIcon-D4r5Phnh.js";
11
+ import { C as Z } from "./check-BxlvVsvD.js";
12
+ import { $ as ee } from "./VisuallyHidden-BCa6ThRH.js";
13
+ import { a as ae, $ as D, b as ie, d as O, e as oe } from "./useFormValidation-BgOffXI-.js";
14
+ import { b as I } from "./usePress-DPxp2Cij.js";
15
+ import { $ as de } from "./filterDOMProps-BSVCO5jK.js";
16
+ import { a as ne } from "./useFocusable--wi5KJXc.js";
17
+ import { $ as p } from "./useToggleState-BVOqL4hI.js";
18
+ import { $ as se } from "./useHover-BkQu__4t.js";
19
+ import { $ as le } from "./useFocusRing-DAZgolYd.js";
20
20
  import './assets/Checkbox.css';function re(e, a, i) {
21
- let { isDisabled: o = !1, isReadOnly: d = !1, value: l, name: r, form: t, children: n, "aria-label": v, "aria-labelledby": $, validationState: b = "valid", isInvalid: m, onPressStart: h, onPressEnd: P, onPressChange: c, onPress: f, onPressUp: s, onClick: I } = e, q = (x) => {
21
+ let { isDisabled: o = !1, isReadOnly: d = !1, value: l, name: r, form: t, children: n, "aria-label": b, "aria-labelledby": $, validationState: v = "valid", isInvalid: m, onPressStart: h, onPressEnd: P, onPressChange: c, onPress: f, onPressUp: s, onClick: y } = e, E = (x) => {
22
22
  x.stopPropagation(), a.setSelected(x.target.checked);
23
- }, E = n != null, M = v != null || $ != null;
24
- !E && !M && process.env.NODE_ENV !== "production" && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
25
- let { pressProps: G, isPressed: N } = k({
23
+ }, L = n != null, w = b != null || $ != null;
24
+ !L && !w && process.env.NODE_ENV !== "production" && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
25
+ let { pressProps: M, isPressed: G } = I({
26
26
  onPressStart: h,
27
27
  onPressEnd: P,
28
28
  onPressChange: c,
29
29
  onPress: f,
30
30
  onPressUp: s,
31
- onClick: I,
31
+ onClick: y,
32
32
  isDisabled: o
33
- }), { pressProps: L, isPressed: U } = k({
33
+ }), { pressProps: N, isPressed: U } = I({
34
34
  onPressStart: h,
35
35
  onPressEnd: P,
36
36
  onPressChange: c,
37
37
  onPressUp: s,
38
- onClick: I,
38
+ onClick: y,
39
39
  onPress(x) {
40
40
  var C;
41
- f == null || f(x), a.toggle(), (C = i.current) === null || C === void 0 || C.focus();
41
+ f?.(x), a.toggle(), (C = i.current) === null || C === void 0 || C.focus();
42
42
  },
43
43
  isDisabled: o || d
44
- }), { focusableProps: j } = ne(e, i), A = y(G, j), z = de(e, {
44
+ }), { focusableProps: j } = ne(e, i), A = k(M, j), z = de(e, {
45
45
  labelable: !0
46
46
  });
47
47
  return ae(i, a.defaultSelected, a.setSelected), {
48
- labelProps: y(L, {
48
+ labelProps: k(N, {
49
49
  onClick: (x) => x.preventDefault()
50
50
  }),
51
- inputProps: y(z, {
52
- "aria-invalid": m || b === "invalid" || void 0,
51
+ inputProps: k(z, {
52
+ "aria-invalid": m || v === "invalid" || void 0,
53
53
  "aria-errormessage": e["aria-errormessage"],
54
54
  "aria-controls": e["aria-controls"],
55
55
  "aria-readonly": d || void 0,
56
- onChange: q,
56
+ onChange: E,
57
57
  disabled: o,
58
58
  ...l == null ? {} : {
59
59
  value: l
@@ -64,47 +64,47 @@ import './assets/Checkbox.css';function re(e, a, i) {
64
64
  ...A
65
65
  }),
66
66
  isSelected: a.isSelected,
67
- isPressed: N || U,
67
+ isPressed: G || U,
68
68
  isDisabled: o,
69
69
  isReadOnly: d,
70
- isInvalid: m || b === "invalid"
70
+ isInvalid: m || v === "invalid"
71
71
  };
72
72
  }
73
- function O(e, a, i) {
74
- let o = _({
73
+ function B(e, a, i) {
74
+ let o = D({
75
75
  ...e,
76
76
  value: a.isSelected
77
- }), { isInvalid: d, validationErrors: l, validationDetails: r } = o.displayValidation, { labelProps: t, inputProps: n, isSelected: v, isPressed: $, isDisabled: b, isReadOnly: m } = re({
77
+ }), { isInvalid: d, validationErrors: l, validationDetails: r } = o.displayValidation, { labelProps: t, inputProps: n, isSelected: b, isPressed: $, isDisabled: v, isReadOnly: m } = re({
78
78
  ...e,
79
79
  isInvalid: d
80
80
  }, a, i);
81
81
  ie(e, o, i);
82
82
  let { isIndeterminate: h, isRequired: P, validationBehavior: c = "aria" } = e;
83
- D(() => {
83
+ _(() => {
84
84
  i.current && (i.current.indeterminate = !!h);
85
85
  });
86
- let { pressProps: f } = k({
87
- isDisabled: b || m,
86
+ let { pressProps: f } = I({
87
+ isDisabled: v || m,
88
88
  onPress() {
89
- let { [p]: s } = e, { commitValidation: I } = s || o;
90
- I();
89
+ let { [O]: s } = e, { commitValidation: y } = s || o;
90
+ y();
91
91
  }
92
92
  });
93
93
  return {
94
- labelProps: y(t, f, W(() => ({
94
+ labelProps: k(t, f, W(() => ({
95
95
  // Prevent label from being focused when mouse down on it.
96
96
  // Note, this does not prevent the input from being focused in the `click` event.
97
97
  onMouseDown: (s) => s.preventDefault()
98
98
  }), [])),
99
99
  inputProps: {
100
100
  ...n,
101
- checked: v,
101
+ checked: b,
102
102
  "aria-required": P && c === "aria" || void 0,
103
103
  required: P && c === "native"
104
104
  },
105
- isSelected: v,
105
+ isSelected: b,
106
106
  isPressed: $,
107
- isDisabled: b,
107
+ isDisabled: v,
108
108
  isReadOnly: m,
109
109
  isInvalid: d,
110
110
  validationErrors: l,
@@ -113,7 +113,7 @@ function O(e, a, i) {
113
113
  }
114
114
  const te = /* @__PURE__ */ new WeakMap();
115
115
  function ce(e, a, i) {
116
- const o = B({
116
+ const o = p({
117
117
  isReadOnly: e.isReadOnly || a.isReadOnly,
118
118
  isSelected: a.isSelected(e.value),
119
119
  defaultSelected: a.defaultValue.includes(e.value),
@@ -122,21 +122,21 @@ function ce(e, a, i) {
122
122
  }
123
123
  });
124
124
  let { name: d, form: l, descriptionId: r, errorMessageId: t, validationBehavior: n } = te.get(a);
125
- var v;
126
- n = (v = e.validationBehavior) !== null && v !== void 0 ? v : n;
127
- let { realtimeValidation: $ } = _({
125
+ var b;
126
+ n = (b = e.validationBehavior) !== null && b !== void 0 ? b : n;
127
+ let { realtimeValidation: $ } = D({
128
128
  ...e,
129
129
  value: o.isSelected,
130
130
  // Server validation is handled at the group level.
131
131
  name: void 0,
132
132
  validationBehavior: "aria"
133
- }), b = J(oe), m = () => {
134
- a.setInvalid(e.value, $.isInvalid ? $ : b.current);
133
+ }), v = J(oe), m = () => {
134
+ a.setInvalid(e.value, $.isInvalid ? $ : v.current);
135
135
  };
136
- D(m);
136
+ _(m);
137
137
  let h = a.realtimeValidation.isInvalid ? a.realtimeValidation : $, P = n === "native" ? a.displayValidation : h;
138
138
  var c;
139
- let f = O({
139
+ let f = B({
140
140
  ...e,
141
141
  isReadOnly: e.isReadOnly || a.isReadOnly,
142
142
  isDisabled: e.isDisabled || a.isDisabled,
@@ -144,13 +144,13 @@ function ce(e, a, i) {
144
144
  form: e.form || l,
145
145
  isRequired: (c = e.isRequired) !== null && c !== void 0 ? c : a.isRequired,
146
146
  validationBehavior: n,
147
- [p]: {
147
+ [O]: {
148
148
  realtimeValidation: h,
149
149
  displayValidation: P,
150
150
  resetValidation: a.resetValidation,
151
151
  commitValidation: a.commitValidation,
152
152
  updateValidation(s) {
153
- b.current = s, m();
153
+ v.current = s, m();
154
154
  }
155
155
  }
156
156
  }, o, i);
@@ -166,23 +166,18 @@ function ce(e, a, i) {
166
166
  }
167
167
  };
168
168
  }
169
- /**
170
- * @license lucide-react v0.525.0 - ISC
171
- *
172
- * This source code is licensed under the ISC license.
173
- * See the LICENSE file in the root directory of this source tree.
174
- */
175
- const fe = [["path", { d: "M5 12h14", key: "1ays0h" }]], ue = Y("minus", fe), ve = H.createContext(null), be = "_checkboxInner_nh1pw_1", me = "_checkbox_nh1pw_1", $e = "_checkboxGroup_nh1pw_146", g = {
176
- checkboxInner: be,
169
+ const fe = [["path", { d: "M5 12h14", key: "1ays0h" }]], ue = Y("minus", fe), be = H.createContext(null), ve = "_checkboxInner_19c98_1", me = "_checkbox_19c98_1", $e = "_checkboxGroup_19c98_143", he = "_checkboxList_19c98_154", g = {
170
+ checkboxInner: ve,
177
171
  checkbox: me,
178
- checkboxGroup: $e
179
- }, w = R.forwardRef((e, a) => {
172
+ checkboxGroup: $e,
173
+ checkboxList: he
174
+ }, q = R.forwardRef((e, a) => {
180
175
  const { hoverProps: i, isHovered: o } = e.hoverResult, { pressProps: d, isPressed: l } = e.pressResult, { isFocused: r, isFocusVisible: t, focusProps: n } = e.focusRingAria;
181
176
  return /* @__PURE__ */ F(
182
177
  "label",
183
178
  {
184
179
  ref: a,
185
- ...y(i, d, e.labelProps),
180
+ ...k(i, d, e.labelProps),
186
181
  slot: e.slot || void 0,
187
182
  className: S(g.checkbox, e.className),
188
183
  "data-hovered": o || void 0,
@@ -199,22 +194,20 @@ const fe = [["path", { d: "M5 12h14", key: "1ays0h" }]], ue = Y("minus", fe), ve
199
194
  /* @__PURE__ */ u("div", { className: S(g.checkboxInner), children: e.isIndeterminate ? /* @__PURE__ */ u(
200
195
  ue,
201
196
  {
202
- size: 16,
203
- viewBox: "0 0 24 24",
197
+ size: 14,
204
198
  color: V
205
199
  }
206
200
  ) : /* @__PURE__ */ u(
207
201
  Z,
208
202
  {
209
- size: 16,
210
- viewBox: "0 0 24 24",
203
+ size: 14,
211
204
  color: V
212
205
  }
213
206
  ) }),
214
207
  /* @__PURE__ */ u(ee, { children: /* @__PURE__ */ u(
215
208
  "input",
216
209
  {
217
- ...y(e.inputProps, n),
210
+ ...k(e.inputProps, n),
218
211
  ref: e.inputRef
219
212
  }
220
213
  ) }),
@@ -222,7 +215,7 @@ const fe = [["path", { d: "M5 12h14", key: "1ays0h" }]], ue = Y("minus", fe), ve
222
215
  ]
223
216
  }
224
217
  );
225
- }), he = R.forwardRef((e, a) => {
218
+ }), Pe = R.forwardRef((e, a) => {
226
219
  const i = ce(
227
220
  {
228
221
  ...e,
@@ -232,17 +225,17 @@ const fe = [["path", { d: "M5 12h14", key: "1ays0h" }]], ue = Y("minus", fe), ve
232
225
  e.inputRef
233
226
  );
234
227
  return /* @__PURE__ */ u(
235
- w,
228
+ q,
236
229
  {
237
230
  ...e,
238
231
  ...i,
239
232
  ref: a
240
233
  }
241
234
  );
242
- }), Pe = R.forwardRef((e, a) => {
243
- const i = O(e, B(e), e.inputRef);
235
+ }), xe = R.forwardRef((e, a) => {
236
+ const i = B(e, p(e), e.inputRef);
244
237
  return /* @__PURE__ */ u(
245
- w,
238
+ q,
246
239
  {
247
240
  ...e,
248
241
  ...i,
@@ -252,12 +245,12 @@ const fe = [["path", { d: "M5 12h14", key: "1ays0h" }]], ue = Y("minus", fe), ve
252
245
  }), Ge = R.forwardRef(
253
246
  (e, a) => {
254
247
  [e, a] = Q(e, a, K);
255
- const i = T(X), o = e.validationBehavior ?? (i == null ? void 0 : i.validationBehavior) ?? "native", d = R.useContext(ve), l = R.useRef(null), r = se(e), t = k({
248
+ const i = T(X), o = e.validationBehavior ?? i?.validationBehavior ?? "native", d = R.useContext(be), l = R.useRef(null), r = se(e), t = I({
256
249
  ref: a,
257
250
  isDisabled: e.isDisabled
258
251
  }), n = le();
259
252
  return d ? /* @__PURE__ */ u(
260
- he,
253
+ Pe,
261
254
  {
262
255
  ...e,
263
256
  state: d,
@@ -268,7 +261,7 @@ const fe = [["path", { d: "M5 12h14", key: "1ays0h" }]], ue = Y("minus", fe), ve
268
261
  validationBehavior: o
269
262
  }
270
263
  ) : /* @__PURE__ */ u(
271
- Pe,
264
+ xe,
272
265
  {
273
266
  ...e,
274
267
  inputRef: l,
@@ -283,6 +276,6 @@ const fe = [["path", { d: "M5 12h14", key: "1ays0h" }]], ue = Y("minus", fe), ve
283
276
  export {
284
277
  te as $,
285
278
  Ge as C,
286
- ve as a,
279
+ be as a,
287
280
  g as s
288
281
  };
@@ -0,0 +1 @@
1
+ "use strict";require('./assets/Checkbox.css');const c=require("react/jsx-runtime"),g=require("react"),T=require("./RSPContexts-XUvspq3j.cjs"),V=require("./utils-ZN3Na38z.cjs"),W=require("./Form-BuOomA4T.cjs"),D=require("./clsx-C11secjj.cjs"),_=require("./variables-CVumCR9l.cjs"),y=require("./mergeProps-D9EPHb19.cjs"),J=require("./createLucideIcon-H_Gy5FIB.cjs"),K=require("./check-DA2sdqW6.cjs"),Q=require("./VisuallyHidden-CrRi8fmq.cjs"),m=require("./useFormValidation-pVNhWoaN.cjs"),I=require("./usePress-BQdBua-S.cjs"),X=require("./filterDOMProps-WUskt27c.cjs"),Y=require("./useFocusable-Sz45n7Ye.cjs"),O=require("./useToggleState-DaxmInOW.cjs"),Z=require("./useHover-DIDiFsU7.cjs"),ee=require("./useFocusRing-BV6zA8CX.cjs");function ie(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(i,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return i.default=e,Object.freeze(i)}const k=ie(g);function ae(e,i,a){let{isDisabled:n=!1,isReadOnly:d=!1,value:s,name:r,form:l,children:o,"aria-label":b,"aria-labelledby":x,validationState:$="valid",isInvalid:v,onPressStart:h,onPressEnd:P,onPressChange:u,onPress:f,onPressUp:t,onClick:C}=e,L=R=>{R.stopPropagation(),i.setSelected(R.target.checked)},M=o!=null,w=b!=null||x!=null;!M&&!w&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:G,isPressed:N}=I.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:h,onPressEnd:P,onPressChange:u,onPress:f,onPressUp:t,onClick:C,isDisabled:n}),{pressProps:F,isPressed:U}=I.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:h,onPressEnd:P,onPressChange:u,onPressUp:t,onClick:C,onPress(R){var S;f?.(R),i.toggle(),(S=a.current)===null||S===void 0||S.focus()},isDisabled:n||d}),{focusableProps:z}=Y.$f645667febf57a63$export$4c014de7c8940b4c(e,a),A=y.$3ef42575df84b30b$export$9d1611c77c2fe928(G,z),H=X.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0});return m.$99facab73266f662$export$5add1d006293d136(a,i.defaultSelected,i.setSelected),{labelProps:y.$3ef42575df84b30b$export$9d1611c77c2fe928(F,{onClick:R=>R.preventDefault()}),inputProps:y.$3ef42575df84b30b$export$9d1611c77c2fe928(H,{"aria-invalid":v||$==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":d||void 0,onChange:L,disabled:n,...s==null?{}:{value:s},name:r,form:l,type:"checkbox",...A}),isSelected:i.isSelected,isPressed:N||U,isDisabled:n,isReadOnly:d,isInvalid:v||$==="invalid"}}function j(e,i,a){let n=m.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:i.isSelected}),{isInvalid:d,validationErrors:s,validationDetails:r}=n.displayValidation,{labelProps:l,inputProps:o,isSelected:b,isPressed:x,isDisabled:$,isReadOnly:v}=ae({...e,isInvalid:d},i,a);m.$e93e671b31057976$export$b8473d3665f3a75a(e,n,a);let{isIndeterminate:h,isRequired:P,validationBehavior:u="aria"}=e;g.useEffect(()=>{a.current&&(a.current.indeterminate=!!h)});let{pressProps:f}=I.$f6c31cce2adf654f$export$45712eceda6fad21({isDisabled:$||v,onPress(){let{[m.$e5be200c675c3b3a$export$a763b9476acd3eb]:t}=e,{commitValidation:C}=t||n;C()}});return{labelProps:y.$3ef42575df84b30b$export$9d1611c77c2fe928(l,f,g.useMemo(()=>({onMouseDown:t=>t.preventDefault()}),[])),inputProps:{...o,checked:b,"aria-required":P&&u==="aria"||void 0,required:P&&u==="native"},isSelected:b,isPressed:x,isDisabled:$,isReadOnly:v,isInvalid:d,validationErrors:s,validationDetails:r}}const p=new WeakMap;function ne(e,i,a){const n=O.$3017fa7ffdddec74$export$8042c6c013fd5226({isReadOnly:e.isReadOnly||i.isReadOnly,isSelected:i.isSelected(e.value),defaultSelected:i.defaultValue.includes(e.value),onChange(t){t?i.addValue(e.value):i.removeValue(e.value),e.onChange&&e.onChange(t)}});let{name:d,form:s,descriptionId:r,errorMessageId:l,validationBehavior:o}=p.get(i);var b;o=(b=e.validationBehavior)!==null&&b!==void 0?b:o;let{realtimeValidation:x}=m.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:n.isSelected,name:void 0,validationBehavior:"aria"}),$=g.useRef(m.$e5be200c675c3b3a$export$dad6ae84456c676a),v=()=>{i.setInvalid(e.value,x.isInvalid?x:$.current)};g.useEffect(v);let h=i.realtimeValidation.isInvalid?i.realtimeValidation:x,P=o==="native"?i.displayValidation:h;var u;let f=j({...e,isReadOnly:e.isReadOnly||i.isReadOnly,isDisabled:e.isDisabled||i.isDisabled,name:e.name||d,form:e.form||s,isRequired:(u=e.isRequired)!==null&&u!==void 0?u:i.isRequired,validationBehavior:o,[m.$e5be200c675c3b3a$export$a763b9476acd3eb]:{realtimeValidation:h,displayValidation:P,resetValidation:i.resetValidation,commitValidation:i.commitValidation,updateValidation(t){$.current=t,v()}}},n,a);return{...f,inputProps:{...f.inputProps,"aria-describedby":[e["aria-describedby"],i.isInvalid?l:null,r].filter(Boolean).join(" ")||void 0}}}const de=[["path",{d:"M5 12h14",key:"1ays0h"}]],oe=J.createLucideIcon("minus",de),B=g.createContext(null),te="_checkboxInner_19c98_1",se="_checkbox_19c98_1",re="_checkboxGroup_19c98_143",le="_checkboxList_19c98_154",q={checkboxInner:te,checkbox:se,checkboxGroup:re,checkboxList:le},E=k.forwardRef((e,i)=>{const{hoverProps:a,isHovered:n}=e.hoverResult,{pressProps:d,isPressed:s}=e.pressResult,{isFocused:r,isFocusVisible:l,focusProps:o}=e.focusRingAria;return c.jsxs("label",{ref:i,...y.$3ef42575df84b30b$export$9d1611c77c2fe928(a,d,e.labelProps),slot:e.slot||void 0,className:D.clsx(q.checkbox,e.className),"data-hovered":n||void 0,"data-selected":e.isSelected||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":s||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-invalid":e.isInvalid||void 0,"data-focused":r||void 0,"data-focus-visible":l||void 0,"data-required":e.isRequired||void 0,children:[c.jsx("div",{className:D.clsx(q.checkboxInner),children:e.isIndeterminate?c.jsx(oe,{size:14,color:_.iconOnColor}):c.jsx(K.Check,{size:14,color:_.iconOnColor})}),c.jsx(Q.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:c.jsx("input",{...y.$3ef42575df84b30b$export$9d1611c77c2fe928(e.inputProps,o),ref:e.inputRef})}),e.children]})}),ce=k.forwardRef((e,i)=>{const a=ne({...e,value:e.value||""},e.state,e.inputRef);return c.jsx(E,{...e,...a,ref:i})}),ue=k.forwardRef((e,i)=>{const a=j(e,O.$3017fa7ffdddec74$export$8042c6c013fd5226(e),e.inputRef);return c.jsx(E,{...e,...a,ref:i})}),fe=k.forwardRef((e,i)=>{[e,i]=V.$64fa3d84918910a7$export$29f1550f4b0d4415(e,i,T.$4e85f108e88277b8$export$b085522c77523c51);const a=V.$64fa3d84918910a7$export$fabf2dc03a41866e(W.$d3e0e05bdfcf66bd$export$c24727297075ec6a),n=e.validationBehavior??a?.validationBehavior??"native",d=k.useContext(B),s=k.useRef(null),r=Z.$6179b936705e76d3$export$ae780daf29e6d456(e),l=I.$f6c31cce2adf654f$export$45712eceda6fad21({ref:i,isDisabled:e.isDisabled}),o=ee.$f7dceffc5ad7768b$export$4e328f61c538687f();return d?c.jsx(ce,{...e,state:d,inputRef:s,hoverResult:r,pressResult:l,focusRingAria:o,validationBehavior:n}):c.jsx(ue,{...e,inputRef:s,hoverResult:r,pressResult:l,focusRingAria:o,validationBehavior:n})});exports.$1ae600c947479353$export$ec98120685d4f57d=p;exports.Checkbox=fe;exports.CheckboxGroupContext=B;exports.styles=q;
@@ -0,0 +1 @@
1
+ "use strict";const n=require("react/jsx-runtime"),m=require("./Label-DkNtFYv5.cjs"),S=require("./Text-D29KP4_q.cjs"),$=require("react"),b=require("./Checkbox-LGIr8OfT.cjs"),g=require("./FieldError-DwYQXCwP.cjs"),P=require("./useFormValidation-pVNhWoaN.cjs"),C=require("./useControlledState-D0L6S_5r.cjs"),j=require("./mergeProps-D9EPHb19.cjs"),q=require("./filterDOMProps-WUskt27c.cjs"),O=require("./useField-yjDSH-M4.cjs"),R=require("./useFocusWithin-CrScjOpV.cjs"),k=require("./useLocalizedStringFormatter-Dfow0G-0.cjs");function D(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(i,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return i.default=e,Object.freeze(i)}const v=D($);function F(e,i){let{isDisabled:a,name:s,form:u,validationBehavior:d="aria"}=e,{isInvalid:r,validationErrors:c,validationDetails:l}=i.displayValidation,{labelProps:f,fieldProps:x,descriptionProps:t,errorMessageProps:o}=O.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,labelElementType:"span",isInvalid:r,errorMessage:e.errorMessage||c});b.$1ae600c947479353$export$ec98120685d4f57d.set(i,{name:s,form:u,descriptionId:t.id,errorMessageId:o.id,validationBehavior:d});let h=q.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0}),{focusWithinProps:V}=R.$9ab94262bd0047c7$export$420e68273165f4ec({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:j.$3ef42575df84b30b$export$9d1611c77c2fe928(h,{role:"group","aria-disabled":a||void 0,...x,...V}),labelProps:f,descriptionProps:t,errorMessageProps:o,isInvalid:r,validationErrors:c,validationDetails:l}}function I(e={}){let[i,a]=C.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||[],e.onChange),[s]=$.useState(i),u=!!e.isRequired&&i.length===0,d=$.useRef(new Map),r=P.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:i}),c=r.displayValidation.isInvalid;var l,f;return{...r,value:i,defaultValue:(l=e.defaultValue)!==null&&l!==void 0?l:s,setValue(t){e.isReadOnly||e.isDisabled||a(t)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(t){return i.includes(t)},addValue(t){e.isReadOnly||e.isDisabled||i.includes(t)||(i=i.concat(t),a(i))},removeValue(t){e.isReadOnly||e.isDisabled||i.includes(t)&&a(i.filter(o=>o!==t))},toggleValue(t){e.isReadOnly||e.isDisabled||(i.includes(t)?a(i.filter(o=>o!==t)):a(i.concat(t)))},setInvalid(t,o){let h=new Map(d.current);o.isInvalid?h.set(t,o):h.delete(t),d.current=h,r.updateValidation(P.$e5be200c675c3b3a$export$75ee7c75d68f5b0e(...h.values()))},validationState:(f=e.validationState)!==null&&f!==void 0?f:c?"invalid":null,isInvalid:c,isRequired:u}}const M=(e,{value:i})=>{const a=v.Children.toArray(e).filter(l=>v.isValidElement(l)&&l.type===b.Checkbox),s=v.Children.count(a),u=v.Children.toArray(e).filter(l=>v.isValidElement(l)).filter(l=>!!l&&l.type===b.Checkbox).map(l=>l.props.value),d=i.length===0,r=i.length===s;return{allSelected:r,someSelected:!d&&!r,checkboxValues:u}},y=({state:e,errorMessage:i})=>n.jsx(g.$ee014567cb39d3f0$export$ff05c3ac10437e03.Provider,{value:e.displayValidation,children:n.jsx(g.FieldError,{children:i})}),E={selectAll:"Select all"},A={selectAll:"Välj alla"},L={en:E,sv:A};function W(e){const i=I(e),a=k.useLocalizedStringFormatter(L),{groupProps:s,labelProps:u,descriptionProps:d}=F(e,i),{allSelected:r,someSelected:c,checkboxValues:l}=M(e.children,i),f=x=>{i.setValue(x?l:[])};return n.jsxs("div",{...s,className:b.styles.checkboxGroup,"data-readonly":e.isReadOnly||void 0,"data-disabled":e.isDisabled||void 0,children:[n.jsx(m.LabelWrapper,{popover:e.popover,children:e.label&&n.jsx(m.Label,{...u,children:e.label})}),e.description&&n.jsx(S.Text,{slot:"description",...d,children:e.description}),e.errorPosition==="top"&&n.jsx(y,{...e,state:i}),n.jsxs("div",{className:b.styles.checkboxList,children:[e.showSelectAll&&n.jsx(b.Checkbox,{isSelected:r,isIndeterminate:c,isReadOnly:e.isReadOnly,onChange:f,children:e.selectAllLabel||a.format("selectAll")}),n.jsx(b.CheckboxGroupContext.Provider,{value:i,children:e.children})]}),e.errorPosition==="bottom"&&n.jsx(y,{...e,state:i})]})}exports.CheckboxGroup=W;
@@ -1,19 +1,19 @@
1
- import { jsx as s, jsxs as g } from "react/jsx-runtime";
2
- import { a as P, L as V } from "./Label-DH4JI6a4.js";
3
- import { T as y } from "./Text-CnY7jiPS.js";
1
+ import { jsx as s, jsxs as h } from "react/jsx-runtime";
2
+ import { a as V, L as y } from "./Label-knQhhLVp.js";
3
+ import { T as S } from "./Text-6Fdknq88.js";
4
4
  import * as m from "react";
5
- import { useState as S, useRef as C } from "react";
6
- import { $ as R, C as v, s as D, a as I } from "./Checkbox-ujNi8mrO.js";
7
- import { $ as O, F as k } from "./FieldError-DtEDCIQK.js";
8
- import { $ as F, c as A } from "./useFormValidation-By7G-T7y.js";
5
+ import { useState as C, useRef as R } from "react";
6
+ import { $ as D, C as $, s as x, a as I } from "./Checkbox-CsITchPQ.js";
7
+ import { $ as k, F as O } from "./FieldError-DQ61agyq.js";
8
+ import { $ as F, c as A } from "./useFormValidation-BgOffXI-.js";
9
9
  import { $ as E } from "./useControlledState-u436Wbp1.js";
10
- import { a as M } from "./mergeProps-Ct8m5-xW.js";
11
- import { $ as W } from "./filterDOMProps-wsa9OcNI.js";
12
- import { $ as p } from "./useField-Bx76iuoW.js";
13
- import { $ as B } from "./useFocusWithin-DhXBuB2O.js";
14
- import { u as L } from "./useLocalizedStringFormatter-aOhh7wdl.js";
10
+ import { a as M } from "./mergeProps-oYrDoKjU.js";
11
+ import { $ as L } from "./filterDOMProps-BSVCO5jK.js";
12
+ import { $ as W } from "./useField-Bf6sH2Px.js";
13
+ import { $ as p } from "./useFocusWithin-Bfslfw41.js";
14
+ import { u as B } from "./useLocalizedStringFormatter-m7LExKN3.js";
15
15
  function G(e, a) {
16
- let { isDisabled: t, name: c, form: f, validationBehavior: n = "aria" } = e, { isInvalid: r, validationErrors: d, validationDetails: l } = a.displayValidation, { labelProps: u, fieldProps: $, descriptionProps: i, errorMessageProps: o } = p({
16
+ let { isDisabled: t, name: c, form: f, validationBehavior: n = "aria" } = e, { isInvalid: r, validationErrors: d, validationDetails: l } = a.displayValidation, { labelProps: u, fieldProps: v, descriptionProps: i, errorMessageProps: o } = W({
17
17
  ...e,
18
18
  // Checkbox group is not an HTML input element so it
19
19
  // shouldn't be labeled by a <label> element.
@@ -21,16 +21,16 @@ function G(e, a) {
21
21
  isInvalid: r,
22
22
  errorMessage: e.errorMessage || d
23
23
  });
24
- R.set(a, {
24
+ D.set(a, {
25
25
  name: c,
26
26
  form: f,
27
27
  descriptionId: i.id,
28
28
  errorMessageId: o.id,
29
29
  validationBehavior: n
30
30
  });
31
- let b = W(e, {
31
+ let b = L(e, {
32
32
  labelable: !0
33
- }), { focusWithinProps: x } = B({
33
+ }), { focusWithinProps: P } = p({
34
34
  onBlurWithin: e.onBlur,
35
35
  onFocusWithin: e.onFocus,
36
36
  onFocusWithinChange: e.onFocusChange
@@ -39,8 +39,8 @@ function G(e, a) {
39
39
  groupProps: M(b, {
40
40
  role: "group",
41
41
  "aria-disabled": t || void 0,
42
- ...$,
43
- ...x
42
+ ...v,
43
+ ...P
44
44
  }),
45
45
  labelProps: u,
46
46
  descriptionProps: i,
@@ -51,7 +51,7 @@ function G(e, a) {
51
51
  };
52
52
  }
53
53
  function _(e = {}) {
54
- let [a, t] = E(e.value, e.defaultValue || [], e.onChange), [c] = S(a), f = !!e.isRequired && a.length === 0, n = C(/* @__PURE__ */ new Map()), r = F({
54
+ let [a, t] = E(e.value, e.defaultValue || [], e.onChange), [c] = C(a), f = !!e.isRequired && a.length === 0, n = R(/* @__PURE__ */ new Map()), r = F({
55
55
  ...e,
56
56
  value: a
57
57
  }), d = r.displayValidation.isInvalid;
@@ -88,38 +88,38 @@ function _(e = {}) {
88
88
  }
89
89
  const j = (e, { value: a }) => {
90
90
  const t = m.Children.toArray(e).filter(
91
- (l) => m.isValidElement(l) && l.type === v
92
- ), c = m.Children.count(t), f = m.Children.toArray(e).filter((l) => m.isValidElement(l)).filter((l) => !!l && l.type === v).map((l) => l.props.value), n = a.length === 0, r = a.length === c;
91
+ (l) => m.isValidElement(l) && l.type === $
92
+ ), c = m.Children.count(t), f = m.Children.toArray(e).filter((l) => m.isValidElement(l)).filter((l) => !!l && l.type === $).map((l) => l.props.value), n = a.length === 0, r = a.length === c;
93
93
  return {
94
94
  allSelected: r,
95
95
  someSelected: !n && !r,
96
96
  checkboxValues: f
97
97
  };
98
- }, h = ({ state: e, errorMessage: a }) => /* @__PURE__ */ s(O.Provider, { value: e.displayValidation, children: /* @__PURE__ */ s(k, { children: a }) }), q = { selectAll: "Select all" }, w = { selectAll: "Välj alla" }, T = {
98
+ }, g = ({ state: e, errorMessage: a }) => /* @__PURE__ */ s(k.Provider, { value: e.displayValidation, children: /* @__PURE__ */ s(O, { children: a }) }), q = { selectAll: "Select all" }, w = { selectAll: "Välj alla" }, T = {
99
99
  en: q,
100
100
  sv: w
101
101
  };
102
102
  function le(e) {
103
- const a = _(e), t = L(T), { groupProps: c, labelProps: f, descriptionProps: n } = G(
103
+ const a = _(e), t = B(T), { groupProps: c, labelProps: f, descriptionProps: n } = G(
104
104
  e,
105
105
  a
106
106
  ), { allSelected: r, someSelected: d, checkboxValues: l } = j(
107
107
  e.children,
108
108
  a
109
- ), u = ($) => {
110
- a.setValue($ ? l : []);
109
+ ), u = (v) => {
110
+ a.setValue(v ? l : []);
111
111
  };
112
- return /* @__PURE__ */ g(
112
+ return /* @__PURE__ */ h(
113
113
  "div",
114
114
  {
115
115
  ...c,
116
- className: D.checkboxGroup,
116
+ className: x.checkboxGroup,
117
117
  "data-readonly": e.isReadOnly || void 0,
118
118
  "data-disabled": e.isDisabled || void 0,
119
119
  children: [
120
- /* @__PURE__ */ s(P, { popover: e.popover, children: e.label && /* @__PURE__ */ s(V, { ...f, children: e.label }) }),
120
+ /* @__PURE__ */ s(V, { popover: e.popover, children: e.label && /* @__PURE__ */ s(y, { ...f, children: e.label }) }),
121
121
  e.description && /* @__PURE__ */ s(
122
- y,
122
+ S,
123
123
  {
124
124
  slot: "description",
125
125
  ...n,
@@ -127,25 +127,27 @@ function le(e) {
127
127
  }
128
128
  ),
129
129
  e.errorPosition === "top" && /* @__PURE__ */ s(
130
- h,
130
+ g,
131
131
  {
132
132
  ...e,
133
133
  state: a
134
134
  }
135
135
  ),
136
- e.showSelectAll && /* @__PURE__ */ s(
137
- v,
138
- {
139
- isSelected: r,
140
- isIndeterminate: d,
141
- isReadOnly: e.isReadOnly,
142
- onChange: u,
143
- children: e.selectAllLabel || t.format("selectAll")
144
- }
145
- ),
146
- /* @__PURE__ */ s(I.Provider, { value: a, children: e.children }),
136
+ /* @__PURE__ */ h("div", { className: x.checkboxList, children: [
137
+ e.showSelectAll && /* @__PURE__ */ s(
138
+ $,
139
+ {
140
+ isSelected: r,
141
+ isIndeterminate: d,
142
+ isReadOnly: e.isReadOnly,
143
+ onChange: u,
144
+ children: e.selectAllLabel || t.format("selectAll")
145
+ }
146
+ ),
147
+ /* @__PURE__ */ s(I.Provider, { value: a, children: e.children })
148
+ ] }),
147
149
  e.errorPosition === "bottom" && /* @__PURE__ */ s(
148
- h,
150
+ g,
149
151
  {
150
152
  ...e,
151
153
  state: a
@@ -1,9 +1,9 @@
1
1
  import { a as U } from "./Hidden-B5ir3Lei.js";
2
2
  import { createPortal as L } from "react-dom";
3
- import { c as D } from "./useFocusable-BJj-Bkig.js";
3
+ import { c as D } from "./useFocusable--wi5KJXc.js";
4
4
  import h, { useMemo as b, cloneElement as E, forwardRef as R, useContext as p, createContext as v, useCallback as m, useState as W, useRef as T, isValidElement as j } from "react";
5
5
  import { $ as V } from "./SSRProvider-D8lZ0o6A.js";
6
- import { s as G } from "./index-DEx4upZl.js";
6
+ import { s as G } from "./index-Cm_oKP6P.js";
7
7
  class g {
8
8
  get childNodes() {
9
9
  throw new Error("childNodes is not supported");
@@ -70,7 +70,7 @@ class Y {
70
70
  let t = this.keyMap;
71
71
  return {
72
72
  *[Symbol.iterator]() {
73
- let l = t.get(e), i = (l == null ? void 0 : l.firstChildKey) != null ? t.get(l.firstChildKey) : null;
73
+ let l = t.get(e), i = l?.firstChildKey != null ? t.get(l.firstChildKey) : null;
74
74
  for (; i; )
75
75
  yield i, i = i.nextKey != null ? t.get(i.nextKey) : void 0;
76
76
  }
@@ -82,7 +82,7 @@ class Y {
82
82
  if (t.prevKey != null) {
83
83
  for (t = this.keyMap.get(t.prevKey); t && t.type !== "item" && t.lastChildKey != null; ) t = this.keyMap.get(t.lastChildKey);
84
84
  var l;
85
- return (l = t == null ? void 0 : t.key) !== null && l !== void 0 ? l : null;
85
+ return (l = t?.key) !== null && l !== void 0 ? l : null;
86
86
  }
87
87
  return t.parentKey;
88
88
  }
@@ -102,9 +102,9 @@ class Y {
102
102
  }
103
103
  getLastKey() {
104
104
  let e = this.lastKey != null ? this.keyMap.get(this.lastKey) : null;
105
- for (; (e == null ? void 0 : e.lastChildKey) != null; ) e = this.keyMap.get(e.lastChildKey);
105
+ for (; e?.lastChildKey != null; ) e = this.keyMap.get(e.lastChildKey);
106
106
  var t;
107
- return (t = e == null ? void 0 : e.key) !== null && t !== void 0 ? t : null;
107
+ return (t = e?.key) !== null && t !== void 0 ? t : null;
108
108
  }
109
109
  getItem(e) {
110
110
  var t;
@@ -138,7 +138,7 @@ class Y {
138
138
  }
139
139
  filter(e) {
140
140
  let t = new this.constructor(), [l, i] = _(this, t, this.firstKey, e);
141
- return t == null || t.commit(l, i), t;
141
+ return t?.commit(l, i), t;
142
142
  }
143
143
  constructor() {
144
144
  this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1, this.itemCount = 0;
@@ -160,8 +160,8 @@ function _(n, e, t, l) {
160
160
  }
161
161
  var o, d;
162
162
  return [
163
- (o = i == null ? void 0 : i.key) !== null && o !== void 0 ? o : null,
164
- (d = r == null ? void 0 : r.key) !== null && d !== void 0 ? d : null
163
+ (o = i?.key) !== null && o !== void 0 ? o : null,
164
+ (d = r?.key) !== null && d !== void 0 ? d : null
165
165
  ];
166
166
  }
167
167
  class A {
@@ -437,7 +437,7 @@ function te(n, e, t) {
437
437
  }
438
438
  const ie = typeof h.useSyncExternalStore == "function" ? h.useSyncExternalStore : te;
439
439
  function ne(n) {
440
- let [e] = W(() => new Z((n == null ? void 0 : n()) || new Y())), t = m((s) => e.subscribe(s), [
440
+ let [e] = W(() => new Z(n?.() || new Y())), t = m((s) => e.subscribe(s), [
441
441
  e
442
442
  ]), l = m(() => {
443
443
  let s = e.getCollection();
@@ -461,7 +461,7 @@ function le(n) {
461
461
  function q(n, e, t, l, i, r) {
462
462
  typeof n == "string" && (n = le(n));
463
463
  let s = m((d) => {
464
- d == null || d.setProps(e, t, n, l, r);
464
+ d?.setProps(e, t, n, l, r);
465
465
  }, [
466
466
  e,
467
467
  t,
@@ -515,7 +515,7 @@ function F(n) {
515
515
  }
516
516
  const N = /* @__PURE__ */ v(null);
517
517
  function me(n) {
518
- let e = p(N), t = ((e == null ? void 0 : e.dependencies) || []).concat(n.dependencies), l = n.idScope || (e == null ? void 0 : e.idScope), i = F({
518
+ let e = p(N), t = (e?.dependencies || []).concat(n.dependencies), l = n.idScope || e?.idScope, i = F({
519
519
  ...n,
520
520
  idScope: l,
521
521
  dependencies: t
@@ -0,0 +1 @@
1
+ "use strict";const L=require("./Hidden-BxRZGdEW.cjs"),W=require("react-dom"),w=require("./useFocusable-Sz45n7Ye.cjs"),o=require("react"),N=require("./SSRProvider-DZRLwxPS.cjs"),T=require("./index-DTHSUSyf.cjs");class v{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,l){let i=this.clone();return t.addDescendants(i,e),i}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}}class S extends v{filter(e,t,l){let[i,r]=q(e,t,this.firstChildKey,l),s=this.clone();return s.firstChildKey=i,s.lastChildKey=r,s}}class M extends v{}M.type="header";class E extends v{}E.type="loader";class R extends S{filter(e,t,l){if(l(this.textValue,this)){let i=this.clone();return t.addDescendants(i,e),i}return null}}R.type="item";class V extends S{filter(e,t,l){let i=super.filter(e,t,l);if(i&&i.lastChildKey!==null){let r=e.getItem(i.lastChildKey);if(r&&r.type!=="header")return i}return null}}V.type="section";class P{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let l=t.get(e),i=l?.firstChildKey!=null?t.get(l.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?t.get(i.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!=="item"&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var l;return(l=t?.key)!==null&&l!==void 0?l:null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!=="item"&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);var t;return(t=e?.key)!==null&&t!==void 0?t:null}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let l=t.getChildren(e.key);for(let i of l)this.addDescendants(i,t)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let t=this.keyMap.get(e);t!=null&&t.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,l=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!l}filter(e){let t=new this.constructor,[l,i]=q(this,t,this.firstKey,e);return t?.commit(l,i),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function q(n,e,t,l){if(t==null)return[null,null];let i=null,r=null,s=n.getItem(t);for(;s!=null;){let a=s.filter(n,e,l);a!=null&&(a.nextKey=null,r&&(a.prevKey=r.key,r.nextKey=a.key),i==null&&(i=a),e.addNode(a),r=a),s=s.nextKey?n.getItem(s.nextKey):null}if(r&&r.type==="separator"){let a=r.prevKey;e.removeNode(r.key),a?(r=e.getItem(a),r.nextKey=null):r=null}var d,u;return[(d=i?.key)!==null&&d!==void 0?d:null,(u=r?.key)!==null&&u!==void 0?u:null]}class _{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}}class p extends _{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){var e;return this.parentNode instanceof p?this.parentNode.level+(((e=this.node)===null||e===void 0?void 0:e.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var e,t,l,i,r,s,d,u;let a=this.nextVisibleSibling,h=this.getMutableNode();if(h!=null){h.index=this.index,h.level=this.level;var f;h.parentKey=this.parentNode instanceof p&&(f=(e=this.parentNode.node)===null||e===void 0?void 0:e.key)!==null&&f!==void 0?f:null;var c;h.prevKey=(c=(l=this.previousVisibleSibling)===null||l===void 0||(t=l.node)===null||t===void 0?void 0:t.key)!==null&&c!==void 0?c:null;var b;h.nextKey=(b=a==null||(i=a.node)===null||i===void 0?void 0:i.key)!==null&&b!==void 0?b:null,h.hasChildNodes=!!this.firstChild;var x;h.firstChildKey=(x=(s=this.firstVisibleChild)===null||s===void 0||(r=s.node)===null||r===void 0?void 0:r.key)!==null&&x!==void 0?x:null;var $;if(h.lastChildKey=($=(u=this.lastVisibleChild)===null||u===void 0||(d=u.node)===null||d===void 0?void 0:d.key)!==null&&$!==void 0?$:null,(h.colSpan!=null||h.colIndex!=null)&&a){var m,C;let K=((m=h.colIndex)!==null&&m!==void 0?m:h.index)+((C=h.colSpan)!==null&&C!==void 0?C:1);if(a.node!=null&&K!==a.node.colIndex){let U=a.getMutableNode();U.colIndex=K}}}}setProps(e,t,l,i,r){let s,{value:d,textValue:u,id:a,...h}=e;if(this.node==null?(s=new l(a??`react-aria-${++this.ownerDocument.nodeId}`),this.node=s):s=this.getMutableNode(),h.ref=t,s.props=h,s.rendered=i,s.render=r,s.value=d,s.textValue=u||(typeof h.children=="string"?h.children:"")||e["aria-label"]||"",a!=null&&a!==s.key)throw new Error("Cannot change the id of an item");h.colSpan!=null&&(s.colSpan=h.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(t){let l=t==="none";if(e.isHidden!==l){var i,r;(((i=e.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===e||((r=e.parentNode)===null||r===void 0?void 0:r.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let s=e.previousVisibleSibling,d=e.nextVisibleSibling;s&&e.ownerDocument.markDirty(s),d&&e.ownerDocument.markDirty(d),e.isHidden=l,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,t){super(t),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}}class O extends _{get isConnected(){return!0}createElement(e){return new p(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let l of e)this.addNode(l);t.addNode(e.node)}removeNode(e){for(let t of e)this.removeNode(t);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let d of this.dirtyNodes)d instanceof p&&(!d.isConnected||d.isHidden)?this.removeNode(d):d.updateChildIndices();for(let d of this.dirtyNodes)d instanceof p?(d.isConnected&&!d.isHidden&&(d.updateNode(),this.addNode(d)),d.node&&this.dirtyNodes.delete(d),d.isMutated=!1):this.dirtyNodes.delete(d);if(this.nextCollection){var e,t,l,i,r,s;this.nextCollection.commit((r=(t=this.firstVisibleChild)===null||t===void 0||(e=t.node)===null||e===void 0?void 0:e.key)!==null&&r!==void 0?r:null,(s=(i=this.lastVisibleChild)===null||i===void 0||(l=i.node)===null||l===void 0?void 0:l.key)!==null&&s!==void 0?s:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}}function k(n){let{children:e,items:t,idScope:l,addIdAndValue:i,dependencies:r=[]}=n,s=o.useMemo(()=>new WeakMap,r);return o.useMemo(()=>{if(t&&typeof e=="function"){let a=[];for(let h of t){let f=s.get(h);if(!f){f=e(h);var d,u;let c=(u=(d=f.props.id)!==null&&d!==void 0?d:h.key)!==null&&u!==void 0?u:h.id;if(c==null)throw new Error("Could not determine key for item");l&&(c=l+":"+c),f=o.cloneElement(f,i?{key:c,id:c,value:h}:{key:c}),s.set(h,f)}a.push(f)}return a}else if(typeof e!="function")return e},[e,t,s,l,i])}const A=o.createContext(!1),y=o.createContext(null);function G(n){if(o.useContext(y))return n.content;let{collection:t,document:l}=Y(n.createCollection);return o.createElement(o.Fragment,null,o.createElement(L.$f39a9eba43920ace$export$8dc98ba7eadeaa56,null,o.createElement(y.Provider,{value:l},n.content)),o.createElement(J,{render:n.children,collection:t}))}function J({collection:n,render:e}){return e(n)}function Q(n,e,t){let l=N.$b5e257d569688ac6$export$535bd6ca7f90a273(),i=o.useRef(l);i.current=l;let r=o.useCallback(()=>i.current?t():e(),[e,t]);return T.shimExports.useSyncExternalStore(n,r)}const X=typeof o.useSyncExternalStore=="function"?o.useSyncExternalStore:Q;function Y(n){let[e]=o.useState(()=>new O(n?.()||new P)),t=o.useCallback(s=>e.subscribe(s),[e]),l=o.useCallback(()=>{let s=e.getCollection();return e.isSSR&&e.resetAfterSSR(),s},[e]),i=o.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]);return{collection:X(t,l,i),document:e}}const g=o.createContext(null);function Z(n){var e;return e=class extends v{},e.type=n,e}function H(n,e,t,l,i,r){typeof n=="string"&&(n=Z(n));let s=o.useCallback(u=>{u?.setProps(e,t,n,l,r)},[e,t,l,r,n]),d=o.useContext(g);if(d){let u=d.ownerDocument.nodesByProps.get(e);return u||(u=d.ownerDocument.createElement(n.type),u.setProps(e,t,n,l,r),d.appendChild(u),d.ownerDocument.updateCollection(),d.ownerDocument.nodesByProps.set(e,u)),i?o.createElement(g.Provider,{value:u},i):null}return o.createElement(n.type,{ref:s},i)}function j(n,e){let t=({node:i})=>e(i.props,i.props.ref,i),l=o.forwardRef((i,r)=>{let s=o.useContext(w.$f645667febf57a63$export$f9762fab77588ecb);if(!o.useContext(A)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,r)}return H(n,i,r,"children"in i?i.children:null,null,u=>o.createElement(w.$f645667febf57a63$export$f9762fab77588ecb.Provider,{value:s},o.createElement(t,{node:u})))});return l.displayName=e.name,l}function ee(n,e,t=z){let l=({node:r})=>e(r.props,r.props.ref,r),i=o.forwardRef((r,s)=>{let d=t(r);var u;return(u=H(n,r,s,null,d,a=>o.createElement(l,{node:a})))!==null&&u!==void 0?u:o.createElement(o.Fragment,null)});return i.displayName=e.name,i}function z(n){return k({...n,addIdAndValue:!0})}const I=o.createContext(null);function te(n){let e=o.useContext(I),t=(e?.dependencies||[]).concat(n.dependencies),l=n.idScope||e?.idScope,i=z({...n,idScope:l,dependencies:t});return o.useContext(y)&&(i=o.createElement(ie,null,i)),e=o.useMemo(()=>({dependencies:t,idScope:l}),[l,...t]),o.createElement(I.Provider,{value:e},i)}function ie({children:n}){let e=o.useContext(y),t=o.useMemo(()=>o.createElement(y.Provider,{value:null},o.createElement(A.Provider,{value:!0},n)),[n]);return N.$b5e257d569688ac6$export$535bd6ca7f90a273()?o.createElement(g.Provider,{value:e},t):W.createPortal(t,e)}const ne=o.createContext(null),F={CollectionRoot({collection:n,renderDropIndicator:e}){return D(n,null,e)},CollectionBranch({collection:n,parent:e,renderDropIndicator:t}){return D(n,e,t)}};function D(n,e,t){return k({items:e?n.getChildren(e.key):n,dependencies:[t],children(l){let i=l.render(l);return!t||l.type!=="item"?i:o.createElement(o.Fragment,null,t({type:"item",key:l.key,dropPosition:"before"}),i,B(n,l,t))}})}function B(n,e,t){let l=e.key,i=n.getKeyAfter(l),r=i!=null?n.getItem(i):null;for(;r!=null&&r.type!=="item";)i=n.getKeyAfter(r.key),r=i!=null?n.getItem(i):null;let s=e.nextKey!=null?n.getItem(e.nextKey):null;for(;s!=null&&s.type!=="item";)s=s.nextKey!=null?n.getItem(s.nextKey):null;let d=[];if(s==null){let u=e;for(;u&&(!r||u.parentKey!==r.parentKey&&r.level<u.level);){let a=t({type:"item",key:u.key,dropPosition:"after"});o.isValidElement(a)&&d.push(o.cloneElement(a,{key:`${u.key}-after`})),u=u.parentKey!=null?n.getItem(u.parentKey):null}}return d}const le=o.createContext(F);function re(n){return o.useMemo(()=>n!=null?new Set([n]):null,[n])}exports.$23b9f4fcf0fe224b$export$408d25a4e12db025=P;exports.$23b9f4fcf0fe224b$export$437f11dc9b403b78=V;exports.$23b9f4fcf0fe224b$export$5ae2504e948afce5=M;exports.$23b9f4fcf0fe224b$export$8258a0665a675899=E;exports.$23b9f4fcf0fe224b$export$b1918e978f1ee46f=S;exports.$23b9f4fcf0fe224b$export$d68d59712b04d9d1=v;exports.$23b9f4fcf0fe224b$export$fd11f34e1d07f134=R;exports.$7135fc7d473fd974$export$2dbbd341daed716d=B;exports.$7135fc7d473fd974$export$4feb769f8ddf26c5=le;exports.$7135fc7d473fd974$export$90e00781bc59d8f9=re;exports.$7135fc7d473fd974$export$a164736487e3f0ae=F;exports.$7135fc7d473fd974$export$d40e14dec8b060a8=ne;exports.$e1995378a142960e$export$18af5c7a9e9b3664=j;exports.$e1995378a142960e$export$bf788dd355e3a401=G;exports.$e1995378a142960e$export$e953bb1cd0f19726=ee;exports.$e1995378a142960e$export$fb8073518f34e6ec=te;exports.$e948873055cbafe4$export$727c8fc270210f13=k;
@@ -0,0 +1 @@
1
+ "use strict";require('./assets/ColorSchemeSwitch.css');const e=require("react/jsx-runtime"),m=require("react"),s=require("./ToggleButtonGroup-DWqPFJWL.cjs"),i=require("./createLucideIcon-H_Gy5FIB.cjs"),a=require("./VisuallyHidden-CrRi8fmq.cjs"),g=require("./useLocalizedStringFormatter-Dfow0G-0.cjs");function p(t){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(c,o,n.get?n:{enumerable:!0,get:()=>t[o]})}}return c.default=t,Object.freeze(c)}const u=p(m);const y=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],f=i.createLucideIcon("laptop",y);const k=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],S=i.createLucideIcon("moon",k);const j=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],M=i.createLucideIcon("sun",j),x="_button_1dy1i_1",d={button:x},b={darkMode:"Dark Mode",lightMode:"Light Mode",system:"System Setting"},$={darkMode:"Mörkt läge",lightMode:"Ljust läge",system:"Systeminställning"},_={en:b,sv:$},L=({selector:t="body",defaultValue:c=new Set(["light dark"]),className:o})=>{const[n,h]=u.useState(c);u.useEffect(()=>{const l=document.querySelector(t);l?l.style.setProperty("color-scheme",Array.from(n).join(" ")):console.warn(`No element found for selector: "${t}"`)},[n,t]);const r=g.useLocalizedStringFormatter(_);return e.jsxs(s.ToggleButtonGroup,{selectionMode:"single",selectedKeys:n,onSelectionChange:h,disallowEmptySelection:!0,className:o,children:[e.jsxs(s.ToggleButton,{id:"light dark",className:d.button,children:[e.jsx(f,{}),e.jsx(a.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:r.format("system")})]}),e.jsxs(s.ToggleButton,{id:"light",className:d.button,children:[e.jsx(M,{}),e.jsx(a.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:r.format("lightMode")})]}),e.jsxs(s.ToggleButton,{id:"dark",className:d.button,children:[e.jsx(S,{}),e.jsx(a.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:r.format("darkMode")})]})]})};exports.ColorSchemeSwitch=L;