@midas-ds/components 13.0.1 → 14.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (409) hide show
  1. package/AccordionItem-CAi-XFOc.js +343 -0
  2. package/AccordionItem-tWS22wDv.cjs +1 -0
  3. package/BadgeContainer-BZl6mSeb.cjs +1 -0
  4. package/{BadgeContainer-iNNgJKD9.js → BadgeContainer-DilMiV6u.js} +9 -9
  5. package/{Breadcrumbs-BQLxFZVm.cjs → Breadcrumbs-BBDGxc68.cjs} +1 -1
  6. package/{Breadcrumbs-C6B4fyk3.js → Breadcrumbs-BenPNv8Z.js} +15 -15
  7. package/Button-1sEX8jKn.cjs +1 -0
  8. package/{Button-D_tRdPW9.cjs → Button-BEWKXjlP.cjs} +1 -1
  9. package/{Button-CUMHt7MG.js → Button-CF97piBl.js} +10 -4
  10. package/{Button-DD5_S-tD.js → Button-CGe3Nyos.js} +122 -116
  11. package/Button.module-COONZqNU.cjs +1 -0
  12. package/Button.module-Cm0H98vy.js +14 -0
  13. package/{ButtonGroup-zx-9mxbJ.cjs → ButtonGroup-BpvDDECt.cjs} +1 -1
  14. package/{ButtonGroup-DC8925jD.js → ButtonGroup-Swh2E6Es.js} +1 -1
  15. package/CHANGELOG.md +59 -0
  16. package/Card-DJ8E5Rzd.js +131 -0
  17. package/Card-Db9xdzJ0.cjs +1 -0
  18. package/{CharacterCounter-CnRv-iUP.cjs → CharacterCounter-CTpQ12f7.cjs} +1 -1
  19. package/{CharacterCounter-DT7A0wWP.js → CharacterCounter-gbDGfize.js} +8 -8
  20. package/Checkbox-BgrLxY6P.cjs +1 -0
  21. package/{Checkbox-DTuryJdM.js → Checkbox-CdN1D5pD.js} +91 -87
  22. package/{CheckboxGroup-BmFdy-K6.js → CheckboxGroup-B1b-6bKq.js} +12 -12
  23. package/{CheckboxGroup-LrqCwPET.cjs → CheckboxGroup-BfZyy5yU.cjs} +1 -1
  24. package/{Collection-B0_WAieZ.js → Collection-BkxwF21i.js} +205 -213
  25. package/Collection-vGO6v3_U.cjs +1 -0
  26. package/{ColorSchemeSwitch-D5juAHPc.cjs → ColorSchemeSwitch-BOooU0iy.cjs} +3 -3
  27. package/{ColorSchemeSwitch-CgZfgCG4.js → ColorSchemeSwitch-KjnsdbDr.js} +10 -10
  28. package/{ComboBox-B2btGwWe.js → ComboBox-D1ZSZ6m-.js} +286 -278
  29. package/ComboBox-Dztk_jtC.cjs +1 -0
  30. package/DateField-BogEOseq.cjs +1 -0
  31. package/DateField-lsr_1fw4.js +47 -0
  32. package/{DateInputDivider-LxS0Kw1H.js → DateInputDivider-CRv3YuXd.js} +199 -196
  33. package/DateInputDivider-CYqm6PZP.cjs +1 -0
  34. package/{DateRangePicker-BmPPDZIF.js → DateRangePicker-5k1swaEt.js} +123 -119
  35. package/DateRangePicker-CgNXWOT6.cjs +6 -0
  36. package/Dialog-B1N4Ndyx.js +256 -0
  37. package/{Dialog-COeUapMW.js → Dialog-BUAp30Wc.js} +710 -692
  38. package/Dialog-BgSxz1JW.cjs +1 -0
  39. package/Dialog-PrnV8KTh.cjs +6 -0
  40. package/{DragAndDrop-Dw8JZmrn.cjs → DragAndDrop-Cs-V-9ak.cjs} +1 -1
  41. package/{DragAndDrop-PrUJv--B.js → DragAndDrop-DF0VoPJw.js} +2 -2
  42. package/{Dropdown-C_W6Sizy.cjs → Dropdown-DBFLb8Tl.cjs} +2 -2
  43. package/{Dropdown-CGQbf7OT.js → Dropdown-DaARa89l.js} +8 -8
  44. package/FieldError-Cimgm8qD.cjs +1 -0
  45. package/FieldError-l3xULRa0.js +48 -0
  46. package/{FileUpload-D2gnQKdn.js → FileUpload-CN0HNJ_Y.js} +14 -14
  47. package/{FileUpload-D3RaARDV.cjs → FileUpload-DHmsupSe.cjs} +1 -1
  48. package/{Grid-BmX6arAO.js → Grid-0XOQPryP.js} +2 -2
  49. package/{Grid-Bn1bCTH8.cjs → Grid-B6G4PWn5.cjs} +1 -1
  50. package/{GridItem-luVsL9lu.cjs → GridItem-BZ8eOXMB.cjs} +1 -1
  51. package/{GridItem-BtO9kCX9.js → GridItem-YtIpL5V2.js} +1 -1
  52. package/Group-B0Wj9pI8.cjs +1 -0
  53. package/Group-BAd7alBM.js +46 -0
  54. package/Heading-CCoGfKQ8.js +48 -0
  55. package/Heading-x7y3xadc.cjs +1 -0
  56. package/{Hidden-C9KWUR7b.js → Hidden-B5ir3Lei.js} +2 -2
  57. package/InfoBanner-BW3vy9mc.js +72 -0
  58. package/InfoBanner-_M_rGQiu.cjs +1 -0
  59. package/{Input-CzMx2mfl.cjs → Input-Bda0PCu5.cjs} +1 -1
  60. package/{Input-BLVRv0FK.js → Input-CQzv-D9g.js} +9 -9
  61. package/{Label-1N6ddn5w.js → Label-BGMXsSFb.js} +15 -15
  62. package/Label-CNTODOFg.cjs +1 -0
  63. package/Layout-BrEuHajQ.cjs +16 -0
  64. package/{Layout-B-A-s7B0.js → Layout-JL9l-y7w.js} +144 -145
  65. package/{Link-lO-Ke97K.js → Link-BudFjYrw.js} +22 -22
  66. package/Link-BvUSTIip.cjs +6 -0
  67. package/{Link-wM7cVPlS.cjs → Link-DRU6Qzia.cjs} +1 -1
  68. package/{Link-CbFSuEI1.js → Link-l-nMP-Zd.js} +10 -10
  69. package/LinkButton-DGdnbTgR.cjs +6 -0
  70. package/LinkButton-DP9W-E32.js +69 -0
  71. package/ListBox-TGCxrXIJ.cjs +1 -0
  72. package/ListBox-mOCZvKD4.js +534 -0
  73. package/{ListBoxLoadMoreItem-C4jnDcYH.js → ListBoxLoadMoreItem-CLdTe6-z.js} +5 -5
  74. package/{ListBoxLoadMoreItem-3jGpi90m.cjs → ListBoxLoadMoreItem-UX0jFQN4.cjs} +1 -1
  75. package/ListBoxSection-BNBHosou.cjs +1 -0
  76. package/{ListBoxSection-D7BcbjUt.js → ListBoxSection-D_kTkvgG.js} +139 -140
  77. package/{ListKeyboardDelegate-CVxkAn5D.js → ListKeyboardDelegate-BHnZMUhW.js} +36 -40
  78. package/ListKeyboardDelegate-CLRlDto7.cjs +1 -0
  79. package/{Logo-CFjZc5u2.cjs → Logo-4tRnV4Su.cjs} +1 -1
  80. package/{Logo-DkagDdKQ.js → Logo-DLlt576_.js} +17 -17
  81. package/{OverlayArrow-CvNuu3e3.js → OverlayArrow-CjGslX2c.js} +4 -4
  82. package/{OverlayArrow-ByH6lM-H.cjs → OverlayArrow-bcrb_syE.cjs} +1 -1
  83. package/{Popover-Bf5YH53o.js → Popover-CZFi2YGz.js} +13 -13
  84. package/Popover-uYTWBGHa.cjs +1 -0
  85. package/{PressResponder-CxVtArtP.js → PressResponder-BMj6Zvbn.js} +9 -9
  86. package/PressResponder-ChvCuOue.cjs +1 -0
  87. package/ProgressBar-BGemuJIq.cjs +1 -0
  88. package/ProgressBar-DhRmckYM.js +53 -0
  89. package/{RSPContexts-BW2SEIqe.js → RSPContexts-B0lEq7qq.js} +5 -3
  90. package/RSPContexts-XUvspq3j.cjs +1 -0
  91. package/Radio-Bp_31Z59.js +340 -0
  92. package/Radio-D3RGVrEd.cjs +1 -0
  93. package/{RangeCalendar-Bi9jc61A.js → RangeCalendar-9C96gMvy.js} +146 -145
  94. package/RangeCalendar-ChfmP_ql.cjs +6 -0
  95. package/{SSRProvider-40TXmsUG.js → SSRProvider-D8lZ0o6A.js} +5 -5
  96. package/{SSRProvider-Bc-sMhsT.cjs → SSRProvider-DZRLwxPS.cjs} +1 -1
  97. package/{SearchField-BevjTbcW.js → SearchField-DrEdzWAy.js} +44 -44
  98. package/SearchField-JaDXLq5W.cjs +6 -0
  99. package/Select-BCUH-Z7q.cjs +1 -0
  100. package/{Select-CEwJo1BT.js → Select-CpPE78Ke.js} +210 -188
  101. package/SelectionIndicator-BiSN1toV.cjs +1 -0
  102. package/{FocusScope-Bj40Ir-g.js → SelectionIndicator-ant6jeC1.js} +256 -165
  103. package/SelectionManager-C469yQeD.js +1063 -0
  104. package/SelectionManager-uFYC4wpu.cjs +1 -0
  105. package/{Separator-Bj24aGrT.js → Separator-B6l5qSpR.js} +28 -28
  106. package/{Separator-CM0KPvsX.js → Separator-BWAnBMVN.js} +5 -5
  107. package/Separator-DbhmtwDa.cjs +1 -0
  108. package/{Separator-Dgin8BNW.cjs → Separator-J0pLW4BN.cjs} +1 -1
  109. package/Skeleton-8onymGEG.cjs +1 -0
  110. package/Skeleton-BjTEGRpe.js +35 -0
  111. package/Spinner-D6Fcu_Dp.js +54 -0
  112. package/Spinner-DIapnvIz.cjs +6 -0
  113. package/TabList-C0tRVI6Q.cjs +1 -0
  114. package/TabList-DmkxO7MM.js +394 -0
  115. package/Table-BLqjyYKk.cjs +16 -0
  116. package/{Table-BzJktg2G.js → Table-CyWZO9uf.js} +710 -706
  117. package/Tag-DJqYiBLR.js +774 -0
  118. package/Tag-FDHGu_WP.cjs +1 -0
  119. package/{Text-BtPiT2P1.cjs → Text-0wXj3J8E.cjs} +1 -1
  120. package/Text-BBFWBNAH.js +32 -0
  121. package/{Text-BAFsaON-.cjs → Text-D5OSv6Uv.cjs} +1 -1
  122. package/{Text-Be7WIOwv.js → Text-bqP9NeVg.js} +3 -3
  123. package/TextArea-CZxwvBcS.cjs +1 -0
  124. package/TextArea-CrY7P18c.js +125 -0
  125. package/{TextField-_UY8CXtW.js → TextField-BWea-IT-.js} +26 -26
  126. package/TextField-DsN-kBfh.cjs +1 -0
  127. package/TextField.module-C03d0VY9.js +13 -0
  128. package/TextField.module-DmRrFHra.cjs +1 -0
  129. package/{Toast-Cs0CEbRr.cjs → Toast-DUZ5jfG1.cjs} +1 -1
  130. package/{Toast-B74PMVL9.js → Toast-Di3h8A14.js} +101 -101
  131. package/{ToggleButtonGroup-CwHPu7w5.js → ToggleButtonGroup-Bh4hP6Lk.js} +83 -79
  132. package/ToggleButtonGroup-D7r34GCt.cjs +1 -0
  133. package/{Tooltip-BHAtsp9k.js → Tooltip-CUdmOznK.js} +13 -13
  134. package/{Tooltip-CZa9n5sT.cjs → Tooltip-D-ATlbIM.cjs} +1 -1
  135. package/{VisuallyHidden-EjrqodVh.cjs → VisuallyHidden-BMelU6B0.cjs} +1 -1
  136. package/{VisuallyHidden-CGEtjAP7.js → VisuallyHidden-DuW70K-5.js} +8 -8
  137. package/accordion/Accordion.d.ts +0 -1
  138. package/accordion/index.cjs +1 -1
  139. package/accordion/index.js +2 -3
  140. package/assets/AccordionItem.css +1 -1
  141. package/assets/Button.css +1 -1
  142. package/assets/Card.css +1 -1
  143. package/assets/Checkbox.css +1 -1
  144. package/assets/ComboBox.css +1 -1
  145. package/assets/DateField.css +1 -1
  146. package/assets/DateInputDivider.css +1 -1
  147. package/assets/DateRangePicker.css +1 -1
  148. package/assets/Dialog.css +1 -1
  149. package/assets/Dropdown.css +1 -1
  150. package/assets/FieldError.css +1 -1
  151. package/assets/Heading.css +1 -1
  152. package/assets/InfoBanner.css +1 -1
  153. package/assets/Label.css +1 -1
  154. package/assets/Layout.css +1 -1
  155. package/assets/Link.css +1 -1
  156. package/assets/LinkButton.css +1 -1
  157. package/assets/ListBoxSection.css +1 -1
  158. package/assets/Logo.css +1 -1
  159. package/assets/Popover.css +1 -1
  160. package/assets/ProgressBar.css +1 -1
  161. package/assets/Radio.css +1 -1
  162. package/assets/RangeCalendar.css +1 -1
  163. package/assets/SearchField.css +1 -1
  164. package/assets/Select.css +1 -1
  165. package/assets/Separator.css +1 -1
  166. package/assets/Skeleton.css +1 -1
  167. package/assets/Spinner.css +1 -1
  168. package/assets/TabList.css +1 -1
  169. package/assets/Text.css +1 -1
  170. package/assets/TextField.css +1 -1
  171. package/assets/Toast.css +1 -1
  172. package/assets/Tooltip.css +1 -1
  173. package/assets/default.css +1 -1
  174. package/badge/index.cjs +1 -1
  175. package/badge/index.js +1 -1
  176. package/breadcrumbs/index.cjs +1 -1
  177. package/breadcrumbs/index.js +1 -1
  178. package/button/index.cjs +1 -1
  179. package/button/index.js +2 -2
  180. package/calendar/index.cjs +1 -1
  181. package/calendar/index.js +1 -1
  182. package/card/index.cjs +1 -1
  183. package/card/index.js +1 -1
  184. package/character-counter/index.cjs +1 -1
  185. package/character-counter/index.js +1 -1
  186. package/checkbox/index.cjs +1 -1
  187. package/checkbox/index.js +2 -2
  188. package/clsx-DKOfLqne.cjs +1 -0
  189. package/clsx-jbLnTBqA.js +11 -0
  190. package/color-scheme-switch/index.cjs +1 -1
  191. package/color-scheme-switch/index.js +1 -1
  192. package/combobox/index.cjs +1 -1
  193. package/combobox/index.js +1 -1
  194. package/{context-CGNJ3grH.js → context-Dl_saGB6.js} +11 -11
  195. package/{context-Df3XbgBG.cjs → context-UOrD6Zxk.cjs} +1 -1
  196. package/date-field/index.cjs +1 -1
  197. package/date-field/index.js +2 -2
  198. package/date-picker/index.cjs +1 -1
  199. package/date-picker/index.js +1 -1
  200. package/dropdown/index.cjs +1 -1
  201. package/dropdown/index.js +1 -1
  202. package/field-error/index.cjs +1 -1
  203. package/field-error/index.js +1 -1
  204. package/file-upload/index.cjs +1 -1
  205. package/file-upload/index.js +1 -1
  206. package/{getScrollParent-Ru2U2LlM.js → getScrollParent-DFCzfqHG.js} +1 -1
  207. package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-DjULaF_q.cjs} +1 -1
  208. package/grid/index.cjs +1 -1
  209. package/grid/index.js +2 -2
  210. package/heading/Heading.d.ts +6 -0
  211. package/heading/index.cjs +1 -1
  212. package/heading/index.js +1 -1
  213. package/{index-BLPblar-.js → index-DEx4upZl.js} +19 -19
  214. package/{index-DSFSh2sC.cjs → index-hURPlN0u.cjs} +2 -2
  215. package/index.cjs +1 -1
  216. package/index.js +126 -127
  217. package/inertValue-BWmZ1afe.cjs +1 -0
  218. package/info-banner/index.cjs +1 -1
  219. package/info-banner/index.js +1 -1
  220. package/label/index.cjs +1 -1
  221. package/label/index.js +1 -1
  222. package/layout/index.cjs +1 -1
  223. package/layout/index.js +1 -1
  224. package/link/index.cjs +1 -1
  225. package/link/index.js +2 -2
  226. package/link-button/index.cjs +1 -1
  227. package/link-button/index.js +2 -2
  228. package/list-box/index.cjs +1 -1
  229. package/list-box/index.js +2 -2
  230. package/logo/index.cjs +1 -1
  231. package/logo/index.js +1 -1
  232. package/menu/index.cjs +1 -1
  233. package/menu/index.js +2 -2
  234. package/{mergeProps-BSsN7Bgk.js → mergeProps-Ct8m5-xW.js} +1 -1
  235. package/{mergeProps-JhcJ7uJL.cjs → mergeProps-Du5A8xi8.cjs} +1 -1
  236. package/modal/Dialog.d.ts +16 -3
  237. package/modal/index.cjs +1 -1
  238. package/modal/index.d.ts +1 -1
  239. package/modal/index.js +2 -2
  240. package/package.json +4 -4
  241. package/popover/index.cjs +1 -1
  242. package/popover/index.js +1 -1
  243. package/progress-bar/index.cjs +1 -1
  244. package/progress-bar/index.js +1 -1
  245. package/radio/index.cjs +1 -1
  246. package/radio/index.js +1 -1
  247. package/scrollIntoView-BVI21Y4-.js +65 -0
  248. package/scrollIntoView-BueMOyGp.cjs +1 -0
  249. package/search-field/index.cjs +1 -1
  250. package/search-field/index.js +1 -1
  251. package/select/index.cjs +1 -1
  252. package/select/index.js +1 -1
  253. package/select/types.d.ts +1 -1
  254. package/select/useMultiSelect.d.ts +2 -2
  255. package/skeleton/index.cjs +1 -1
  256. package/skeleton/index.js +1 -1
  257. package/spinner/Spinner.d.ts +5 -1
  258. package/spinner/index.cjs +1 -1
  259. package/spinner/index.js +1 -1
  260. package/table/index.cjs +1 -1
  261. package/table/index.js +1 -1
  262. package/tabs/Tabs.d.ts +2 -9
  263. package/tabs/index.cjs +1 -1
  264. package/tabs/index.d.ts +0 -1
  265. package/tabs/index.js +1 -1
  266. package/tag/index.cjs +1 -1
  267. package/tag/index.js +1 -1
  268. package/text/index.cjs +1 -1
  269. package/text/index.js +1 -1
  270. package/textfield/TextArea.d.ts +3 -2
  271. package/textfield/TextField.d.ts +3 -2
  272. package/textfield/index.cjs +1 -1
  273. package/textfield/index.js +1 -1
  274. package/toast/index.cjs +1 -1
  275. package/toast/index.js +1 -1
  276. package/toggle-button/index.cjs +1 -1
  277. package/toggle-button/index.js +1 -1
  278. package/tooltip/index.cjs +1 -1
  279. package/tooltip/index.js +1 -1
  280. package/{useButton-R8-i3HLC.cjs → useButton-C0r5nrqs.cjs} +1 -1
  281. package/{useButton-D6iUB8cN.js → useButton-CRgN6aZf.js} +3 -3
  282. package/useDateFormatter-BrrFo4nY.cjs +1 -0
  283. package/{useDateFormatter-BJ1ZyaH1.js → useDateFormatter-Bs5A6Xtu.js} +353 -322
  284. package/{useDescription-BMuiAqI5.cjs → useDescription-6BYtQxe6.cjs} +1 -1
  285. package/{useDescription-BLmIkYCq.js → useDescription-BFwQx7Rp.js} +1 -1
  286. package/useEvent-C125NAue.cjs +1 -0
  287. package/{useEvent-DpBHTuHJ.js → useEvent-smuTnX4G.js} +1 -1
  288. package/{useField-BMegM8fA.js → useField-BhJ9dM2g.js} +2 -2
  289. package/{useField-DyeD7MLj.cjs → useField-DvszkIMx.cjs} +1 -1
  290. package/{useFilter-BFnSe_Eq.js → useFilter-BdUU-HQZ.js} +1 -1
  291. package/{useFilter-aoggM85n.cjs → useFilter-R2IPvbS8.cjs} +1 -1
  292. package/{useFocusRing-BcbYske2.cjs → useFocusRing-C-XVcAE5.cjs} +1 -1
  293. package/{useFocusRing-DMo8ctYV.js → useFocusRing-CcxI7nbg.js} +2 -2
  294. package/{useFocusWithin-ClMkhYcq.js → useFocusWithin-DhXBuB2O.js} +1 -1
  295. package/{useFocusWithin-DTnk0e8a.cjs → useFocusWithin-GBjoTL5o.cjs} +1 -1
  296. package/{useFocusable-DXlMChFC.js → useFocusable-BJj-Bkig.js} +14 -14
  297. package/{useFocusable-CsG-IPuC.cjs → useFocusable-M4se1KJt.cjs} +1 -1
  298. package/{useFormValidation-L0UHvOsP.js → useFormValidation-By7G-T7y.js} +2 -2
  299. package/{useFormValidation-BQIRxgbU.cjs → useFormValidation-DV2Ioblb.cjs} +1 -1
  300. package/useHasTabbableChild-CIZGg_iG.cjs +1 -0
  301. package/{useHasTabbableChild-BDaxMsGu.js → useHasTabbableChild-CnpSoDuJ.js} +2 -2
  302. package/{useHighlightSelectionDescription-CQaG611l.cjs → useHighlightSelectionDescription-CBZfyrhy.cjs} +1 -1
  303. package/{useHighlightSelectionDescription-BkEv9Jye.js → useHighlightSelectionDescription-DPiqOr_Z.js} +5 -5
  304. package/{useHover-DGAmG7jt.cjs → useHover-DULSfLuK.cjs} +1 -1
  305. package/{useHover-D6bNIkU0.js → useHover-DkC5FyNd.js} +5 -5
  306. package/{useLabels-CvUk-yS3.cjs → useLabels-B5pmat1S.cjs} +1 -1
  307. package/{useLabels-Kmq5JCp_.js → useLabels-D24on06F.js} +1 -1
  308. package/{useListState-D2IEg6_e.cjs → useListState-DBawAMhF.cjs} +1 -1
  309. package/{useListState-pixYqSLl.js → useListState-PZF3ahpk.js} +1 -1
  310. package/{useLocalizedStringFormatter-BO2iZEL0.cjs → useLocalizedStringFormatter-BSac43NO.cjs} +1 -1
  311. package/useLocalizedStringFormatter-CHAo1AyN.cjs +1 -0
  312. package/{useLocalizedStringFormatter-CL9MUZ8A.js → useLocalizedStringFormatter-CSEh15AZ.js} +1 -1
  313. package/{useLocalizedStringFormatter-N0AyjzbM.js → useLocalizedStringFormatter-aOhh7wdl.js} +1 -1
  314. package/{usePress-DMUpU0GU.js → usePress-BqQIhkNY.js} +54 -54
  315. package/usePress-DmU79HEg.cjs +7 -0
  316. package/{useSingleSelectListState-BlvpP8y-.js → useSingleSelectListState-BLRBEJC7.js} +1 -1
  317. package/{useSingleSelectListState-CwWK_Dx2.cjs → useSingleSelectListState-CNETmoj5.cjs} +1 -1
  318. package/{useTextField-BC5X_AO_.js → useTextField-B8pM0p6X.js} +7 -7
  319. package/{useTextField-Cxpfu0U3.cjs → useTextField-CiWV3eeD.cjs} +1 -1
  320. package/useToggleState-DaxmInOW.cjs +1 -0
  321. package/{useUpdateEffect-C5YQs_1w.cjs → useUpdateEffect-sk3kiVGz.cjs} +1 -1
  322. package/utils/clsx.d.ts +8 -0
  323. package/utils/types.d.ts +5 -0
  324. package/utils-CtICjCYt.cjs +1 -0
  325. package/{utils-Cpcjg55U.js → utils-D2iKpxcZ.js} +47 -43
  326. package/utils-DRIRjPUS.cjs +1 -0
  327. package/{utils-DFIwp4PB.js → utils-Dxh86KaB.js} +20 -18
  328. package/AccordionItem-Bq8nUKg4.cjs +0 -1
  329. package/AccordionItem-D2Y0gJZB.js +0 -335
  330. package/BadgeContainer-su0iCJKy.cjs +0 -1
  331. package/Button-CMIbSc4-.cjs +0 -1
  332. package/Button.module-BT9wZenr.cjs +0 -1
  333. package/Button.module-CGIVvzVm.js +0 -14
  334. package/Card-D2UbrhDW.js +0 -131
  335. package/Card-UolcSL5O.cjs +0 -1
  336. package/Checkbox-dtZfsSfx.cjs +0 -1
  337. package/Collection-BvWp2xBd.cjs +0 -1
  338. package/ComboBox-uMsVrOYu.cjs +0 -1
  339. package/DateField-B5dlDwdH.cjs +0 -1
  340. package/DateField-CEpRn4wR.js +0 -47
  341. package/DateInputDivider-BnSo_Aox.cjs +0 -1
  342. package/DateRangePicker-It4M98bT.cjs +0 -6
  343. package/Dialog-B1HuzqOX.js +0 -240
  344. package/Dialog-DR6nEqMT.cjs +0 -1
  345. package/Dialog-doGnVsJJ.cjs +0 -1
  346. package/FieldError-Cornph2A.cjs +0 -1
  347. package/FieldError-DdvFyIf4.js +0 -48
  348. package/FocusScope-Uy3DiY0-.cjs +0 -1
  349. package/Group-BKYGeOBr.cjs +0 -1
  350. package/Group-C73mD_-i.js +0 -45
  351. package/Heading-BQlmb5Tm.js +0 -46
  352. package/Heading-D3FR_KXb.cjs +0 -1
  353. package/InfoBanner-C82hcpzj.cjs +0 -1
  354. package/InfoBanner-Dz_0wVSa.js +0 -83
  355. package/Label-06gf6yKQ.cjs +0 -1
  356. package/Layout-DlE30BHE.cjs +0 -16
  357. package/Link-ePZ3nrAW.cjs +0 -6
  358. package/LinkButton-CJyZh3BS.js +0 -69
  359. package/LinkButton-Cw73pOM2.cjs +0 -6
  360. package/ListBox-ICZKGluC.cjs +0 -1
  361. package/ListBox-LncMQt6I.js +0 -523
  362. package/ListBoxSection-BeDwnVZx.cjs +0 -1
  363. package/ListKeyboardDelegate-C_X1wLkh.cjs +0 -1
  364. package/Popover-DIq3kp6B.cjs +0 -1
  365. package/PressResponder-DbnYqwGB.cjs +0 -1
  366. package/ProgressBar-DRhXkSE6.js +0 -53
  367. package/ProgressBar-i7almbvK.cjs +0 -1
  368. package/RSPContexts-D8hmBfGm.cjs +0 -1
  369. package/Radio-BpQoJB8e.cjs +0 -1
  370. package/Radio-D4wUZfW9.js +0 -333
  371. package/RangeCalendar-KcJooXYf.cjs +0 -6
  372. package/SearchField-BA-X9dzb.cjs +0 -6
  373. package/Select-1QuVY4f5.cjs +0 -1
  374. package/SelectionManager-Bq-Gw1UT.js +0 -1043
  375. package/SelectionManager-BtbHoHpA.cjs +0 -1
  376. package/Separator-Cfv2pbWf.cjs +0 -1
  377. package/Skeleton-Iovq135_.js +0 -35
  378. package/Skeleton-MaBUPqhT.cjs +0 -1
  379. package/Spinner-BZ7i01Kt.js +0 -47
  380. package/Spinner-DxWDMW6e.cjs +0 -6
  381. package/TabList-3fErCDyP.cjs +0 -1
  382. package/TabList-CXaxruLg.js +0 -397
  383. package/Table-Dyqa6_rE.cjs +0 -16
  384. package/Tag-BYUPXbhG.js +0 -765
  385. package/Tag-BweDKw1v.cjs +0 -1
  386. package/Text-CmlsaWMA.js +0 -32
  387. package/TextArea-B4BZUoJp.cjs +0 -1
  388. package/TextArea-Df1fR5R4.js +0 -124
  389. package/TextField-Bm5916AD.cjs +0 -1
  390. package/TextField.module-CH39P8ZE.js +0 -13
  391. package/TextField.module-gJ-ruFra.cjs +0 -1
  392. package/ToggleButtonGroup-DY9S3USc.cjs +0 -1
  393. package/inertValue-B3AFhVG4.cjs +0 -1
  394. package/scrollIntoView-ClEACHUk.js +0 -57
  395. package/scrollIntoView-DRSoJp89.cjs +0 -1
  396. package/useDateFormatter-2B0vgHc-.cjs +0 -1
  397. package/useEvent-3ZO5TPSH.cjs +0 -1
  398. package/useHasTabbableChild-CJcLnolh.cjs +0 -1
  399. package/useLocalizedStringFormatter-BiX5BTlb.cjs +0 -1
  400. package/useObserveElement-BdI4zgd7.js +0 -27
  401. package/useObserveElement-MhzEsCkX.cjs +0 -1
  402. package/usePress-CicXV7UO.cjs +0 -7
  403. package/useToggleState-SqDyNfRi.cjs +0 -1
  404. package/utils/storybook.d.ts +0 -5
  405. package/utils/test.d.ts +0 -11
  406. package/utils-CMHKYKlz.cjs +0 -1
  407. package/utils-__vrf9VZ.cjs +0 -1
  408. package/variables-B3KEYyhW.cjs +0 -1
  409. package/variables-DzXcMW2k.js +0 -5
@@ -1,16 +1,16 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import * as f from "react";
3
- import { $ as d } from "./utils-Cpcjg55U.js";
4
- import { $ as i } from "./Input-BLVRv0FK.js";
5
- import './assets/CharacterCounter.css';const m = "_characterCounter_4nrnf_1", $ = {
6
- characterCounter: m
7
- }, l = f.forwardRef((t, n) => {
8
- [t] = d(t, n, i);
2
+ import * as d from "react";
3
+ import { $ as f } from "./utils-D2iKpxcZ.js";
4
+ import { $ as i } from "./Input-CQzv-D9g.js";
5
+ import './assets/CharacterCounter.css';const $ = "_characterCounter_4nrnf_1", m = {
6
+ characterCounter: $
7
+ }, l = d.forwardRef((t, n) => {
8
+ [t] = f(t, n, i);
9
9
  const { maxLength: r, value: e, isLonely: c } = t, { length: a } = (e == null ? void 0 : e.toString()) ?? "", o = r !== void 0;
10
10
  return /* @__PURE__ */ s(
11
11
  "span",
12
12
  {
13
- className: $.characterCounter,
13
+ className: m.characterCounter,
14
14
  "data-exceeded": o && a > r || void 0,
15
15
  "data-lonely": c || void 0,
16
16
  children: o ? `${a} / ${r}` : a
@@ -0,0 +1 @@
1
+ "use strict";require('./assets/Checkbox.css');const o=require("react/jsx-runtime"),k=require("react"),T=require("./RSPContexts-XUvspq3j.cjs"),q=require("./utils-CtICjCYt.cjs"),z=require("./Form-BuOomA4T.cjs"),D=require("./clsx-C11secjj.cjs"),R=require("./mergeProps-Du5A8xi8.cjs"),W=require("./VisuallyHidden-BMelU6B0.cjs"),m=require("./useFormValidation-DV2Ioblb.cjs"),I=require("./usePress-DmU79HEg.cjs"),J=require("./filterDOMProps-RRlKPKX0.cjs"),K=require("./useFocusable-M4se1KJt.cjs"),O=require("./useToggleState-DaxmInOW.cjs"),Q=require("./useHover-DULSfLuK.cjs"),X=require("./useFocusRing-C-XVcAE5.cjs");function Y(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const d=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(i,a,d.get?d:{enumerable:!0,get:()=>e[a]})}}return i.default=e,Object.freeze(i)}const g=Y(k);function Z(e,i,a){let{isDisabled:d=!1,isReadOnly:n=!1,value:r,name:l,form:c,children:t,"aria-label":b,"aria-labelledby":x,validationState:$="valid",isInvalid:v,onPressStart:h,onPressEnd:P,onPressChange:u,onPress:f,onPressUp:s,onClick:S}=e,w=y=>{y.stopPropagation(),i.setSelected(y.target.checked)},E=t!=null,G=b!=null||x!=null;!E&&!G&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:M,isPressed:F}=I.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:h,onPressEnd:P,onPressChange:u,onPress:f,onPressUp:s,onClick:S,isDisabled:d}),{pressProps:N,isPressed:L}=I.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:h,onPressEnd:P,onPressChange:u,onPressUp:s,onClick:S,onPress(y){var C;f==null||f(y),i.toggle(),(C=a.current)===null||C===void 0||C.focus()},isDisabled:d||n}),{focusableProps:U}=K.$f645667febf57a63$export$4c014de7c8940b4c(e,a),A=R.$3ef42575df84b30b$export$9d1611c77c2fe928(M,U),H=J.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0});return m.$99facab73266f662$export$5add1d006293d136(a,i.defaultSelected,i.setSelected),{labelProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(N,{onClick:y=>y.preventDefault()}),inputProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(H,{"aria-invalid":v||$==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":n||void 0,onChange:w,disabled:d,...r==null?{}:{value:r},name:l,form:c,type:"checkbox",...A}),isSelected:i.isSelected,isPressed:F||L,isDisabled:d,isReadOnly:n,isInvalid:v||$==="invalid"}}function _(e,i,a){let d=m.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:i.isSelected}),{isInvalid:n,validationErrors:r,validationDetails:l}=d.displayValidation,{labelProps:c,inputProps:t,isSelected:b,isPressed:x,isDisabled:$,isReadOnly:v}=Z({...e,isInvalid:n},i,a);m.$e93e671b31057976$export$b8473d3665f3a75a(e,d,a);let{isIndeterminate:h,isRequired:P,validationBehavior:u="aria"}=e;k.useEffect(()=>{a.current&&(a.current.indeterminate=!!h)});let{pressProps:f}=I.$f6c31cce2adf654f$export$45712eceda6fad21({isDisabled:$||v,onPress(){let{[m.$e5be200c675c3b3a$export$a763b9476acd3eb]:s}=e,{commitValidation:S}=s||d;S()}});return{labelProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(c,f,k.useMemo(()=>({onMouseDown:s=>s.preventDefault()}),[])),inputProps:{...t,checked:b,"aria-required":P&&u==="aria"||void 0,required:P&&u==="native"},isSelected:b,isPressed:x,isDisabled:$,isReadOnly:v,isInvalid:n,validationErrors:r,validationDetails:l}}const j=new WeakMap;function ee(e,i,a){const d=O.$3017fa7ffdddec74$export$8042c6c013fd5226({isReadOnly:e.isReadOnly||i.isReadOnly,isSelected:i.isSelected(e.value),defaultSelected:i.defaultValue.includes(e.value),onChange(s){s?i.addValue(e.value):i.removeValue(e.value),e.onChange&&e.onChange(s)}});let{name:n,form:r,descriptionId:l,errorMessageId:c,validationBehavior:t}=j.get(i);var b;t=(b=e.validationBehavior)!==null&&b!==void 0?b:t;let{realtimeValidation:x}=m.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:d.isSelected,name:void 0,validationBehavior:"aria"}),$=k.useRef(m.$e5be200c675c3b3a$export$dad6ae84456c676a),v=()=>{i.setInvalid(e.value,x.isInvalid?x:$.current)};k.useEffect(v);let h=i.realtimeValidation.isInvalid?i.realtimeValidation:x,P=t==="native"?i.displayValidation:h;var u;let f=_({...e,isReadOnly:e.isReadOnly||i.isReadOnly,isDisabled:e.isDisabled||i.isDisabled,name:e.name||n,form:e.form||r,isRequired:(u=e.isRequired)!==null&&u!==void 0?u:i.isRequired,validationBehavior:t,[m.$e5be200c675c3b3a$export$a763b9476acd3eb]:{realtimeValidation:h,displayValidation:P,resetValidation:i.resetValidation,commitValidation:i.commitValidation,updateValidation(s){$.current=s,v()}}},d,a);return{...f,inputProps:{...f.inputProps,"aria-describedby":[e["aria-describedby"],i.isInvalid?c:null,l].filter(Boolean).join(" ")||void 0}}}const p=k.createContext(null),ie="_checkboxInner_164xy_1",ae="_checkbox_164xy_1",de="_checkboxGroup_164xy_142",V={checkboxInner:ie,checkbox:ae,checkboxGroup:de},B=g.forwardRef((e,i)=>{const{hoverProps:a,isHovered:d}=e.hoverResult,{pressProps:n,isPressed:r}=e.pressResult,{isFocused:l,isFocusVisible:c,focusProps:t}=e.focusRingAria;return o.jsxs("label",{ref:i,...R.$3ef42575df84b30b$export$9d1611c77c2fe928(a,n,e.labelProps),slot:e.slot||void 0,className:D.clsx(V.checkbox,e.className),"data-hovered":d||void 0,"data-selected":e.isSelected||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":r||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-invalid":e.isInvalid||void 0,"data-focused":l||void 0,"data-focus-visible":c||void 0,"data-required":e.isRequired||void 0,children:[o.jsx("div",{className:D.clsx(V.checkboxInner),children:o.jsx("svg",{width:16,height:16,viewBox:"0 0 18 18","aria-hidden":"true",children:e.isIndeterminate?o.jsx("rect",{x:4,y:8,width:10,height:2}):o.jsx("polyline",{points:"3,9 7,13 15,4"})})}),o.jsx(W.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:o.jsx("input",{...R.$3ef42575df84b30b$export$9d1611c77c2fe928(e.inputProps,t),ref:e.inputRef})}),e.children]})}),ne=g.forwardRef((e,i)=>{const a=ee({...e,value:e.value||""},e.state,e.inputRef);return o.jsx(B,{...e,...a,ref:i})}),te=g.forwardRef((e,i)=>{const a=_(e,O.$3017fa7ffdddec74$export$8042c6c013fd5226(e),e.inputRef);return o.jsx(B,{...e,...a,ref:i})}),se=g.forwardRef((e,i)=>{[e,i]=q.$64fa3d84918910a7$export$29f1550f4b0d4415(e,i,T.$4e85f108e88277b8$export$b085522c77523c51);const a=q.$64fa3d84918910a7$export$fabf2dc03a41866e(z.$d3e0e05bdfcf66bd$export$c24727297075ec6a),d=e.validationBehavior??(a==null?void 0:a.validationBehavior)??"native",n=g.useContext(p),r=g.useRef(null),l=Q.$6179b936705e76d3$export$ae780daf29e6d456(e),c=I.$f6c31cce2adf654f$export$45712eceda6fad21({ref:i,isDisabled:e.isDisabled}),t=X.$f7dceffc5ad7768b$export$4e328f61c538687f();return n?o.jsx(ne,{...e,state:n,inputRef:r,hoverResult:l,pressResult:c,focusRingAria:t,validationBehavior:d}):o.jsx(te,{...e,inputRef:r,hoverResult:l,pressResult:c,focusRingAria:t,validationBehavior:d})});exports.$1ae600c947479353$export$ec98120685d4f57d=j;exports.Checkbox=se;exports.CheckboxGroupContext=p;exports.styles=V;
@@ -1,67 +1,67 @@
1
1
  import { jsxs as F, jsx as c } from "react/jsx-runtime";
2
2
  import * as R from "react";
3
- import H, { useEffect as S, useRef as W } from "react";
4
- import { a as z } from "./RSPContexts-BW2SEIqe.js";
5
- import { $ as J, c as K } from "./utils-Cpcjg55U.js";
6
- import { $ as Q } from "./Form-CXcEMuBf.js";
7
- import { c as V } from "./clsx-OuTLNxxd.js";
8
- import { a as y } from "./mergeProps-BSsN7Bgk.js";
9
- import { $ as T } from "./VisuallyHidden-CGEtjAP7.js";
10
- import { a as X, $ as D, b as Y, d as _, e as Z } from "./useFormValidation-L0UHvOsP.js";
11
- import { b as g } from "./usePress-DMUpU0GU.js";
12
- import { $ as ee } from "./filterDOMProps-wsa9OcNI.js";
13
- import { a as ae } from "./useFocusable-DXlMChFC.js";
3
+ import H, { useEffect as C, useMemo as W, useRef as z } from "react";
4
+ import { c as J } from "./RSPContexts-B0lEq7qq.js";
5
+ import { $ as K, c as Q } from "./utils-D2iKpxcZ.js";
6
+ import { $ as T } from "./Form-CXcEMuBf.js";
7
+ import { c as S } from "./clsx-OuTLNxxd.js";
8
+ import { a as y } from "./mergeProps-Ct8m5-xW.js";
9
+ import { $ as X } from "./VisuallyHidden-DuW70K-5.js";
10
+ import { a as Y, $ as D, b as Z, d as _, e as ee } from "./useFormValidation-By7G-T7y.js";
11
+ import { b as g } from "./usePress-BqQIhkNY.js";
12
+ import { $ as ae } from "./filterDOMProps-wsa9OcNI.js";
13
+ import { a as ie } from "./useFocusable-BJj-Bkig.js";
14
14
  import { $ as B } from "./useToggleState-BVOqL4hI.js";
15
- import { $ as ie } from "./useHover-D6bNIkU0.js";
16
- import { $ as de } from "./useFocusRing-DMo8ctYV.js";
17
- import './assets/Checkbox.css';function ne(e, a, i) {
18
- let { isDisabled: d = !1, isReadOnly: n = !1, value: o, name: s, form: t, children: l, "aria-label": v, "aria-labelledby": $, validationState: b = "valid", isInvalid: m, onPressStart: h, onPressEnd: P, onPressChange: f, onPress: u, onPressUp: r, onClick: I } = e, E = (x) => {
15
+ import { $ as de } from "./useHover-DkC5FyNd.js";
16
+ import { $ as ne } from "./useFocusRing-CcxI7nbg.js";
17
+ import './assets/Checkbox.css';function oe(e, a, i) {
18
+ let { isDisabled: d = !1, isReadOnly: n = !1, value: s, name: t, form: r, children: o, "aria-label": v, "aria-labelledby": $, validationState: b = "valid", isInvalid: m, onPressStart: h, onPressEnd: P, onPressChange: f, onPress: u, onPressUp: l, onClick: I } = e, q = (x) => {
19
19
  x.stopPropagation(), a.setSelected(x.target.checked);
20
- }, p = l != null, w = v != null || $ != null;
21
- !p && !w && process.env.NODE_ENV !== "production" && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
22
- let { pressProps: j, isPressed: G } = g({
20
+ }, w = o != null, E = v != null || $ != null;
21
+ !w && !E && process.env.NODE_ENV !== "production" && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
22
+ let { pressProps: G, isPressed: M } = g({
23
23
  onPressStart: h,
24
24
  onPressEnd: P,
25
25
  onPressChange: f,
26
26
  onPress: u,
27
- onPressUp: r,
27
+ onPressUp: l,
28
28
  onClick: I,
29
29
  isDisabled: d
30
30
  }), { pressProps: N, isPressed: L } = g({
31
31
  onPressStart: h,
32
32
  onPressEnd: P,
33
33
  onPressChange: f,
34
- onPressUp: r,
34
+ onPressUp: l,
35
35
  onClick: I,
36
36
  onPress(x) {
37
37
  var k;
38
38
  u == null || u(x), a.toggle(), (k = i.current) === null || k === void 0 || k.focus();
39
39
  },
40
40
  isDisabled: d || n
41
- }), { focusableProps: U } = ae(e, i), A = y(j, U), M = ee(e, {
41
+ }), { focusableProps: U } = ie(e, i), j = y(G, U), A = ae(e, {
42
42
  labelable: !0
43
43
  });
44
- return X(i, a.defaultSelected, a.setSelected), {
44
+ return Y(i, a.defaultSelected, a.setSelected), {
45
45
  labelProps: y(N, {
46
46
  onClick: (x) => x.preventDefault()
47
47
  }),
48
- inputProps: y(M, {
48
+ inputProps: y(A, {
49
49
  "aria-invalid": m || b === "invalid" || void 0,
50
50
  "aria-errormessage": e["aria-errormessage"],
51
51
  "aria-controls": e["aria-controls"],
52
52
  "aria-readonly": n || void 0,
53
- onChange: E,
53
+ onChange: q,
54
54
  disabled: d,
55
- ...o == null ? {} : {
56
- value: o
55
+ ...s == null ? {} : {
56
+ value: s
57
57
  },
58
- name: s,
59
- form: t,
58
+ name: t,
59
+ form: r,
60
60
  type: "checkbox",
61
- ...A
61
+ ...j
62
62
  }),
63
63
  isSelected: a.isSelected,
64
- isPressed: G || L,
64
+ isPressed: M || L,
65
65
  isDisabled: d,
66
66
  isReadOnly: n,
67
67
  isInvalid: m || b === "invalid"
@@ -71,26 +71,30 @@ function O(e, a, i) {
71
71
  let d = D({
72
72
  ...e,
73
73
  value: a.isSelected
74
- }), { isInvalid: n, validationErrors: o, validationDetails: s } = d.displayValidation, { labelProps: t, inputProps: l, isSelected: v, isPressed: $, isDisabled: b, isReadOnly: m } = ne({
74
+ }), { isInvalid: n, validationErrors: s, validationDetails: t } = d.displayValidation, { labelProps: r, inputProps: o, isSelected: v, isPressed: $, isDisabled: b, isReadOnly: m } = oe({
75
75
  ...e,
76
76
  isInvalid: n
77
77
  }, a, i);
78
- Y(e, d, i);
78
+ Z(e, d, i);
79
79
  let { isIndeterminate: h, isRequired: P, validationBehavior: f = "aria" } = e;
80
- S(() => {
80
+ C(() => {
81
81
  i.current && (i.current.indeterminate = !!h);
82
82
  });
83
83
  let { pressProps: u } = g({
84
84
  isDisabled: b || m,
85
85
  onPress() {
86
- let { [_]: r } = e, { commitValidation: I } = r || d;
86
+ let { [_]: l } = e, { commitValidation: I } = l || d;
87
87
  I();
88
88
  }
89
89
  });
90
90
  return {
91
- labelProps: y(t, u),
91
+ labelProps: y(r, u, W(() => ({
92
+ // Prevent label from being focused when mouse down on it.
93
+ // Note, this does not prevent the input from being focused in the `click` event.
94
+ onMouseDown: (l) => l.preventDefault()
95
+ }), [])),
92
96
  inputProps: {
93
- ...l,
97
+ ...o,
94
98
  checked: v,
95
99
  "aria-required": P && f === "aria" || void 0,
96
100
  required: P && f === "native"
@@ -100,50 +104,50 @@ function O(e, a, i) {
100
104
  isDisabled: b,
101
105
  isReadOnly: m,
102
106
  isInvalid: n,
103
- validationErrors: o,
104
- validationDetails: s
107
+ validationErrors: s,
108
+ validationDetails: t
105
109
  };
106
110
  }
107
111
  const le = /* @__PURE__ */ new WeakMap();
108
- function oe(e, a, i) {
112
+ function se(e, a, i) {
109
113
  const d = B({
110
114
  isReadOnly: e.isReadOnly || a.isReadOnly,
111
115
  isSelected: a.isSelected(e.value),
112
116
  defaultSelected: a.defaultValue.includes(e.value),
113
- onChange(r) {
114
- r ? a.addValue(e.value) : a.removeValue(e.value), e.onChange && e.onChange(r);
117
+ onChange(l) {
118
+ l ? a.addValue(e.value) : a.removeValue(e.value), e.onChange && e.onChange(l);
115
119
  }
116
120
  });
117
- let { name: n, form: o, descriptionId: s, errorMessageId: t, validationBehavior: l } = le.get(a);
121
+ let { name: n, form: s, descriptionId: t, errorMessageId: r, validationBehavior: o } = le.get(a);
118
122
  var v;
119
- l = (v = e.validationBehavior) !== null && v !== void 0 ? v : l;
123
+ o = (v = e.validationBehavior) !== null && v !== void 0 ? v : o;
120
124
  let { realtimeValidation: $ } = D({
121
125
  ...e,
122
126
  value: d.isSelected,
123
127
  // Server validation is handled at the group level.
124
128
  name: void 0,
125
129
  validationBehavior: "aria"
126
- }), b = W(Z), m = () => {
130
+ }), b = z(ee), m = () => {
127
131
  a.setInvalid(e.value, $.isInvalid ? $ : b.current);
128
132
  };
129
- S(m);
130
- let h = a.realtimeValidation.isInvalid ? a.realtimeValidation : $, P = l === "native" ? a.displayValidation : h;
133
+ C(m);
134
+ let h = a.realtimeValidation.isInvalid ? a.realtimeValidation : $, P = o === "native" ? a.displayValidation : h;
131
135
  var f;
132
136
  let u = O({
133
137
  ...e,
134
138
  isReadOnly: e.isReadOnly || a.isReadOnly,
135
139
  isDisabled: e.isDisabled || a.isDisabled,
136
140
  name: e.name || n,
137
- form: e.form || o,
141
+ form: e.form || s,
138
142
  isRequired: (f = e.isRequired) !== null && f !== void 0 ? f : a.isRequired,
139
- validationBehavior: l,
143
+ validationBehavior: o,
140
144
  [_]: {
141
145
  realtimeValidation: h,
142
146
  displayValidation: P,
143
147
  resetValidation: a.resetValidation,
144
148
  commitValidation: a.commitValidation,
145
- updateValidation(r) {
146
- b.current = r, m();
149
+ updateValidation(l) {
150
+ b.current = l, m();
147
151
  }
148
152
  }
149
153
  }, d, i);
@@ -153,37 +157,37 @@ function oe(e, a, i) {
153
157
  ...u.inputProps,
154
158
  "aria-describedby": [
155
159
  e["aria-describedby"],
156
- a.isInvalid ? t : null,
157
- s
160
+ a.isInvalid ? r : null,
161
+ t
158
162
  ].filter(Boolean).join(" ") || void 0
159
163
  }
160
164
  };
161
165
  }
162
- const se = H.createContext(null), te = "_checkboxInner_1jfol_1", re = "_checkbox_1jfol_1", ce = "_checkboxGroup_1jfol_121", C = {
163
- checkboxInner: te,
164
- checkbox: re,
165
- checkboxGroup: ce
166
- }, q = R.forwardRef((e, a) => {
167
- const { hoverProps: i, isHovered: d } = e.hoverResult, { pressProps: n, isPressed: o } = e.pressResult, { isFocused: s, isFocusVisible: t, focusProps: l } = e.focusRingAria;
166
+ const te = H.createContext(null), re = "_checkboxInner_164xy_1", ce = "_checkbox_164xy_1", fe = "_checkboxGroup_164xy_142", V = {
167
+ checkboxInner: re,
168
+ checkbox: ce,
169
+ checkboxGroup: fe
170
+ }, p = R.forwardRef((e, a) => {
171
+ const { hoverProps: i, isHovered: d } = e.hoverResult, { pressProps: n, isPressed: s } = e.pressResult, { isFocused: t, isFocusVisible: r, focusProps: o } = e.focusRingAria;
168
172
  return /* @__PURE__ */ F(
169
173
  "label",
170
174
  {
171
175
  ref: a,
172
176
  ...y(i, n, e.labelProps),
173
177
  slot: e.slot || void 0,
174
- className: V(C.checkbox, e.className),
178
+ className: S(V.checkbox, e.className),
175
179
  "data-hovered": d || void 0,
176
180
  "data-selected": e.isSelected || void 0,
177
181
  "data-indeterminate": e.isIndeterminate || void 0,
178
- "data-pressed": o || void 0,
182
+ "data-pressed": s || void 0,
179
183
  "data-disabled": e.isDisabled || void 0,
180
184
  "data-readonly": e.isReadOnly || void 0,
181
185
  "data-invalid": e.isInvalid || void 0,
182
- "data-focused": s || void 0,
183
- "data-focus-visible": t || void 0,
186
+ "data-focused": t || void 0,
187
+ "data-focus-visible": r || void 0,
184
188
  "data-required": e.isRequired || void 0,
185
189
  children: [
186
- /* @__PURE__ */ c("div", { className: V(C.checkboxInner), children: /* @__PURE__ */ c(
190
+ /* @__PURE__ */ c("div", { className: S(V.checkboxInner), children: /* @__PURE__ */ c(
187
191
  "svg",
188
192
  {
189
193
  width: 16,
@@ -201,10 +205,10 @@ const se = H.createContext(null), te = "_checkboxInner_1jfol_1", re = "_checkbox
201
205
  ) : /* @__PURE__ */ c("polyline", { points: "3,9 7,13 15,4" })
202
206
  }
203
207
  ) }),
204
- /* @__PURE__ */ c(T, { children: /* @__PURE__ */ c(
208
+ /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
205
209
  "input",
206
210
  {
207
- ...y(e.inputProps, l),
211
+ ...y(e.inputProps, o),
208
212
  ref: e.inputRef
209
213
  }
210
214
  ) }),
@@ -212,8 +216,8 @@ const se = H.createContext(null), te = "_checkboxInner_1jfol_1", re = "_checkbox
212
216
  ]
213
217
  }
214
218
  );
215
- }), fe = R.forwardRef((e, a) => {
216
- const i = oe(
219
+ }), ue = R.forwardRef((e, a) => {
220
+ const i = se(
217
221
  {
218
222
  ...e,
219
223
  value: e.value || ""
@@ -222,49 +226,49 @@ const se = H.createContext(null), te = "_checkboxInner_1jfol_1", re = "_checkbox
222
226
  e.inputRef
223
227
  );
224
228
  return /* @__PURE__ */ c(
225
- q,
229
+ p,
226
230
  {
227
231
  ...e,
228
232
  ...i,
229
233
  ref: a
230
234
  }
231
235
  );
232
- }), ue = R.forwardRef((e, a) => {
236
+ }), ve = R.forwardRef((e, a) => {
233
237
  const i = O(e, B(e), e.inputRef);
234
238
  return /* @__PURE__ */ c(
235
- q,
239
+ p,
236
240
  {
237
241
  ...e,
238
242
  ...i,
239
243
  ref: a
240
244
  }
241
245
  );
242
- }), De = R.forwardRef(
246
+ }), _e = R.forwardRef(
243
247
  (e, a) => {
244
- [e, a] = J(e, a, z);
245
- const i = K(Q), d = e.validationBehavior ?? (i == null ? void 0 : i.validationBehavior) ?? "native", n = R.useContext(se), o = R.useRef(null), s = ie(e), t = g({
248
+ [e, a] = K(e, a, J);
249
+ const i = Q(T), d = e.validationBehavior ?? (i == null ? void 0 : i.validationBehavior) ?? "native", n = R.useContext(te), s = R.useRef(null), t = de(e), r = g({
246
250
  ref: a,
247
251
  isDisabled: e.isDisabled
248
- }), l = de();
252
+ }), o = ne();
249
253
  return n ? /* @__PURE__ */ c(
250
- fe,
254
+ ue,
251
255
  {
252
256
  ...e,
253
257
  state: n,
254
- inputRef: o,
255
- hoverResult: s,
256
- pressResult: t,
257
- focusRingAria: l,
258
+ inputRef: s,
259
+ hoverResult: t,
260
+ pressResult: r,
261
+ focusRingAria: o,
258
262
  validationBehavior: d
259
263
  }
260
264
  ) : /* @__PURE__ */ c(
261
- ue,
265
+ ve,
262
266
  {
263
267
  ...e,
264
- inputRef: o,
265
- hoverResult: s,
266
- pressResult: t,
267
- focusRingAria: l,
268
+ inputRef: s,
269
+ hoverResult: t,
270
+ pressResult: r,
271
+ focusRingAria: o,
268
272
  validationBehavior: d
269
273
  }
270
274
  );
@@ -272,7 +276,7 @@ const se = H.createContext(null), te = "_checkboxInner_1jfol_1", re = "_checkbox
272
276
  );
273
277
  export {
274
278
  le as $,
275
- De as C,
276
- se as a,
277
- C as s
279
+ _e as C,
280
+ te as a,
281
+ V as s
278
282
  };
@@ -1,17 +1,17 @@
1
1
  import { jsx as s, jsxs as g } from "react/jsx-runtime";
2
- import { a as P, L as V } from "./Label-1N6ddn5w.js";
3
- import { T as C } from "./Text-CmlsaWMA.js";
2
+ import { a as P, L as V } from "./Label-BGMXsSFb.js";
3
+ import { T as S } from "./Text-BBFWBNAH.js";
4
4
  import * as m from "react";
5
- import { useState as S, useRef as y } from "react";
6
- import { $ as p, C as v, s as D, a as I } from "./Checkbox-DTuryJdM.js";
7
- import { $ as R, F as k } from "./FieldError-DdvFyIf4.js";
8
- import { $ as F, c as A } from "./useFormValidation-L0UHvOsP.js";
5
+ import { useState as C, useRef as y } from "react";
6
+ import { $ as p, C as v, s as D, a as I } from "./Checkbox-CdN1D5pD.js";
7
+ import { $ as R, F as k } from "./FieldError-l3xULRa0.js";
8
+ import { $ as F, c as A } from "./useFormValidation-By7G-T7y.js";
9
9
  import { $ as E } from "./useControlledState-u436Wbp1.js";
10
- import { a as M } from "./mergeProps-BSsN7Bgk.js";
10
+ import { a as M } from "./mergeProps-Ct8m5-xW.js";
11
11
  import { $ as O } from "./filterDOMProps-wsa9OcNI.js";
12
- import { $ as W } from "./useField-BMegM8fA.js";
13
- import { $ as B } from "./useFocusWithin-ClMkhYcq.js";
14
- import { u as L } from "./useLocalizedStringFormatter-N0AyjzbM.js";
12
+ import { $ as W } from "./useField-BhJ9dM2g.js";
13
+ import { $ as B } from "./useFocusWithin-DhXBuB2O.js";
14
+ import { u as L } from "./useLocalizedStringFormatter-aOhh7wdl.js";
15
15
  function G(e, a) {
16
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 } = W({
17
17
  ...e,
@@ -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 = y(/* @__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 = y(/* @__PURE__ */ new Map()), r = F({
55
55
  ...e,
56
56
  value: a
57
57
  }), d = r.displayValidation.isInvalid;
@@ -117,7 +117,7 @@ function le(e) {
117
117
  children: [
118
118
  /* @__PURE__ */ s(P, { popover: e.popover, children: e.label && /* @__PURE__ */ s(V, { ...f, children: e.label }) }),
119
119
  e.description && /* @__PURE__ */ s(
120
- C,
120
+ S,
121
121
  {
122
122
  slot: "description",
123
123
  ...n,
@@ -1 +1 @@
1
- "use strict";const s=require("react/jsx-runtime"),m=require("./Label-06gf6yKQ.cjs"),C=require("./Text-BAFsaON-.cjs"),$=require("react"),h=require("./Checkbox-dtZfsSfx.cjs"),g=require("./FieldError-Cornph2A.cjs"),P=require("./useFormValidation-BQIRxgbU.cjs"),y=require("./useControlledState-D0L6S_5r.cjs"),j=require("./mergeProps-JhcJ7uJL.cjs"),q=require("./filterDOMProps-RRlKPKX0.cjs"),k=require("./useField-DyeD7MLj.cjs"),D=require("./useFocusWithin-DTnk0e8a.cjs"),F=require("./useLocalizedStringFormatter-BO2iZEL0.cjs");function O(e){const t=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(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const v=O($);function R(e,t){let{isDisabled:a,name:n,form:u,validationBehavior:c="aria"}=e,{isInvalid:r,validationErrors:d,validationDetails:l}=t.displayValidation,{labelProps:f,fieldProps:x,descriptionProps:i,errorMessageProps:o}=k.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,labelElementType:"span",isInvalid:r,errorMessage:e.errorMessage||d});h.$1ae600c947479353$export$ec98120685d4f57d.set(t,{name:n,form:u,descriptionId:i.id,errorMessageId:o.id,validationBehavior:c});let b=q.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0}),{focusWithinProps:S}=D.$9ab94262bd0047c7$export$420e68273165f4ec({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:j.$3ef42575df84b30b$export$9d1611c77c2fe928(b,{role:"group","aria-disabled":a||void 0,...x,...S}),labelProps:f,descriptionProps:i,errorMessageProps:o,isInvalid:r,validationErrors:d,validationDetails:l}}function I(e={}){let[t,a]=y.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||[],e.onChange),[n]=$.useState(t),u=!!e.isRequired&&t.length===0,c=$.useRef(new Map),r=P.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:t}),d=r.displayValidation.isInvalid;var l,f;return{...r,value:t,defaultValue:(l=e.defaultValue)!==null&&l!==void 0?l:n,setValue(i){e.isReadOnly||e.isDisabled||a(i)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(i){return t.includes(i)},addValue(i){e.isReadOnly||e.isDisabled||t.includes(i)||(t=t.concat(i),a(t))},removeValue(i){e.isReadOnly||e.isDisabled||t.includes(i)&&a(t.filter(o=>o!==i))},toggleValue(i){e.isReadOnly||e.isDisabled||(t.includes(i)?a(t.filter(o=>o!==i)):a(t.concat(i)))},setInvalid(i,o){let b=new Map(c.current);o.isInvalid?b.set(i,o):b.delete(i),c.current=b,r.updateValidation(P.$e5be200c675c3b3a$export$75ee7c75d68f5b0e(...b.values()))},validationState:(f=e.validationState)!==null&&f!==void 0?f:d?"invalid":null,isInvalid:d,isRequired:u}}const M=(e,{value:t})=>{const a=v.Children.toArray(e).filter(l=>v.isValidElement(l)&&l.type===h.Checkbox),n=v.Children.count(a),u=v.Children.toArray(e).filter(l=>v.isValidElement(l)).filter(l=>!!l&&l.type===h.Checkbox).map(l=>l.props.value),c=t.length===0,r=t.length===n;return{allSelected:r,someSelected:!c&&!r,checkboxValues:u}},V=({state:e,errorMessage:t})=>s.jsx(g.$ee014567cb39d3f0$export$ff05c3ac10437e03.Provider,{value:e.displayValidation,children:s.jsx(g.FieldError,{children:t})}),E={selectAll:"Select all"},A={selectAll:"Välj alla"},W={en:E,sv:A};function _(e){const t=I(e),a=F.useLocalizedStringFormatter(W),{groupProps:n,labelProps:u,descriptionProps:c}=R(e,t),{allSelected:r,someSelected:d,checkboxValues:l}=M(e.children,t),f=x=>{t.setValue(x?l:[])};return s.jsxs("div",{...n,className:h.styles.checkboxGroup,children:[s.jsx(m.LabelWrapper,{popover:e.popover,children:e.label&&s.jsx(m.Label,{...u,children:e.label})}),e.description&&s.jsx(C.Text,{slot:"description",...c,children:e.description}),e.errorPosition==="top"&&s.jsx(V,{...e,state:t}),e.showSelectAll&&s.jsx(h.Checkbox,{isSelected:r,isIndeterminate:d,onChange:f,children:e.selectAllLabel||a.format("selectAll")}),s.jsx(h.CheckboxGroupContext.Provider,{value:t,children:e.children}),e.errorPosition==="bottom"&&s.jsx(V,{...e,state:t})]})}exports.CheckboxGroup=_;
1
+ "use strict";const s=require("react/jsx-runtime"),m=require("./Label-CNTODOFg.cjs"),C=require("./Text-D5OSv6Uv.cjs"),$=require("react"),h=require("./Checkbox-BgrLxY6P.cjs"),g=require("./FieldError-Cimgm8qD.cjs"),P=require("./useFormValidation-DV2Ioblb.cjs"),y=require("./useControlledState-D0L6S_5r.cjs"),j=require("./mergeProps-Du5A8xi8.cjs"),q=require("./filterDOMProps-RRlKPKX0.cjs"),k=require("./useField-DvszkIMx.cjs"),D=require("./useFocusWithin-GBjoTL5o.cjs"),F=require("./useLocalizedStringFormatter-BSac43NO.cjs");function O(e){const t=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(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const v=O($);function R(e,t){let{isDisabled:a,name:n,form:u,validationBehavior:c="aria"}=e,{isInvalid:r,validationErrors:d,validationDetails:l}=t.displayValidation,{labelProps:f,fieldProps:x,descriptionProps:i,errorMessageProps:o}=k.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,labelElementType:"span",isInvalid:r,errorMessage:e.errorMessage||d});h.$1ae600c947479353$export$ec98120685d4f57d.set(t,{name:n,form:u,descriptionId:i.id,errorMessageId:o.id,validationBehavior:c});let b=q.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0}),{focusWithinProps:S}=D.$9ab94262bd0047c7$export$420e68273165f4ec({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:j.$3ef42575df84b30b$export$9d1611c77c2fe928(b,{role:"group","aria-disabled":a||void 0,...x,...S}),labelProps:f,descriptionProps:i,errorMessageProps:o,isInvalid:r,validationErrors:d,validationDetails:l}}function I(e={}){let[t,a]=y.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||[],e.onChange),[n]=$.useState(t),u=!!e.isRequired&&t.length===0,c=$.useRef(new Map),r=P.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:t}),d=r.displayValidation.isInvalid;var l,f;return{...r,value:t,defaultValue:(l=e.defaultValue)!==null&&l!==void 0?l:n,setValue(i){e.isReadOnly||e.isDisabled||a(i)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(i){return t.includes(i)},addValue(i){e.isReadOnly||e.isDisabled||t.includes(i)||(t=t.concat(i),a(t))},removeValue(i){e.isReadOnly||e.isDisabled||t.includes(i)&&a(t.filter(o=>o!==i))},toggleValue(i){e.isReadOnly||e.isDisabled||(t.includes(i)?a(t.filter(o=>o!==i)):a(t.concat(i)))},setInvalid(i,o){let b=new Map(c.current);o.isInvalid?b.set(i,o):b.delete(i),c.current=b,r.updateValidation(P.$e5be200c675c3b3a$export$75ee7c75d68f5b0e(...b.values()))},validationState:(f=e.validationState)!==null&&f!==void 0?f:d?"invalid":null,isInvalid:d,isRequired:u}}const M=(e,{value:t})=>{const a=v.Children.toArray(e).filter(l=>v.isValidElement(l)&&l.type===h.Checkbox),n=v.Children.count(a),u=v.Children.toArray(e).filter(l=>v.isValidElement(l)).filter(l=>!!l&&l.type===h.Checkbox).map(l=>l.props.value),c=t.length===0,r=t.length===n;return{allSelected:r,someSelected:!c&&!r,checkboxValues:u}},V=({state:e,errorMessage:t})=>s.jsx(g.$ee014567cb39d3f0$export$ff05c3ac10437e03.Provider,{value:e.displayValidation,children:s.jsx(g.FieldError,{children:t})}),E={selectAll:"Select all"},A={selectAll:"Välj alla"},W={en:E,sv:A};function _(e){const t=I(e),a=F.useLocalizedStringFormatter(W),{groupProps:n,labelProps:u,descriptionProps:c}=R(e,t),{allSelected:r,someSelected:d,checkboxValues:l}=M(e.children,t),f=x=>{t.setValue(x?l:[])};return s.jsxs("div",{...n,className:h.styles.checkboxGroup,children:[s.jsx(m.LabelWrapper,{popover:e.popover,children:e.label&&s.jsx(m.Label,{...u,children:e.label})}),e.description&&s.jsx(C.Text,{slot:"description",...c,children:e.description}),e.errorPosition==="top"&&s.jsx(V,{...e,state:t}),e.showSelectAll&&s.jsx(h.Checkbox,{isSelected:r,isIndeterminate:d,onChange:f,children:e.selectAllLabel||a.format("selectAll")}),s.jsx(h.CheckboxGroupContext.Provider,{value:t,children:e.children}),e.errorPosition==="bottom"&&s.jsx(V,{...e,state:t})]})}exports.CheckboxGroup=_;