@midas-ds/components 14.0.0 → 15.0.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 (334) hide show
  1. package/AccordionItem-DTbu3lqx.js +343 -0
  2. package/AccordionItem-tWS22wDv.cjs +1 -0
  3. package/{Breadcrumbs-DpUPChG9.cjs → Breadcrumbs-BBDGxc68.cjs} +1 -1
  4. package/{Breadcrumbs-CV3rVTjR.js → Breadcrumbs-BenPNv8Z.js} +4 -4
  5. package/Button-1sEX8jKn.cjs +1 -0
  6. package/{Button-xc8A29pm.cjs → Button-BEWKXjlP.cjs} +1 -1
  7. package/{Button-B6lxIKPk.js → Button-BbfVT9Yl.js} +122 -116
  8. package/{Button-CRIYvCRM.js → Button-DdXFHfXw.js} +1 -1
  9. package/CHANGELOG.md +49 -0
  10. package/{Card-CfosvMF5.js → Card-CdqGFff2.js} +3 -3
  11. package/{Card-D2E3gviQ.cjs → Card-Db9xdzJ0.cjs} +1 -1
  12. package/{CharacterCounter-C-PFKoGg.cjs → CharacterCounter-CTpQ12f7.cjs} +1 -1
  13. package/{CharacterCounter-DpFONstE.js → CharacterCounter-gbDGfize.js} +2 -2
  14. package/Checkbox-BgrLxY6P.cjs +1 -0
  15. package/{Checkbox-Cr3MmHPE.js → Checkbox-CdN1D5pD.js} +94 -90
  16. package/{CheckboxGroup-DEY3JDEL.js → CheckboxGroup-CtJJqk_q.js} +7 -7
  17. package/{CheckboxGroup-f9Oa1MhQ.cjs → CheckboxGroup-thvsvOqD.cjs} +1 -1
  18. package/{Collection-j_iWeuZo.js → Collection-BkxwF21i.js} +205 -213
  19. package/Collection-vGO6v3_U.cjs +1 -0
  20. package/{ColorSchemeSwitch-Cur7zN5_.cjs → ColorSchemeSwitch-Ckna0otR.cjs} +1 -1
  21. package/{ColorSchemeSwitch-ChFSNntp.js → ColorSchemeSwitch-aF2UxI20.js} +2 -2
  22. package/{ComboBox-D7eKe-M5.js → ComboBox-BDX4BYWJ.js} +244 -229
  23. package/ComboBox-DFPrJUoV.cjs +1 -0
  24. package/{DateField-BszKZodr.cjs → DateField-B92Cqf9K.cjs} +1 -1
  25. package/{DateField-xyhyDy7u.js → DateField-BPRWrVcu.js} +4 -4
  26. package/DateInputDivider-CCrXjsUB.cjs +1 -0
  27. package/{DateInputDivider-2Wf2hlXA.js → DateInputDivider-DOHpVaNE.js} +191 -188
  28. package/DateRangePicker-COSTCOt8.cjs +6 -0
  29. package/{DateRangePicker-YwKi0ukr.js → DateRangePicker-Cmt9NC35.js} +119 -115
  30. package/Dialog-CPuJA2fm.js +256 -0
  31. package/{Dialog-DOyFzvUa.js → Dialog-D4Py85wi.js} +712 -694
  32. package/Dialog-DtOf0vWx.cjs +1 -0
  33. package/Dialog-DycTLpdr.cjs +6 -0
  34. package/{DragAndDrop-DQ_6tl6K.cjs → DragAndDrop-Cs-V-9ak.cjs} +1 -1
  35. package/{DragAndDrop-DPRU3Y0Y.js → DragAndDrop-DF0VoPJw.js} +1 -1
  36. package/{Dropdown-uC9wc8vd.js → Dropdown-B4lwe0Hn.js} +2 -2
  37. package/{Dropdown-5rmvcHD_.cjs → Dropdown-_g9l5k07.cjs} +1 -1
  38. package/{FieldError-C4kD4yJZ.js → FieldError-CIxlNQCM.js} +13 -13
  39. package/{FieldError-C4WBoCRc.cjs → FieldError-JWxR_EqN.cjs} +1 -1
  40. package/{FileUpload-CTbh7Gic.cjs → FileUpload-C0TjNkuh.cjs} +2 -2
  41. package/{FileUpload-01wGpykv.js → FileUpload-DLBP3VPp.js} +260 -534
  42. package/Group-B0Wj9pI8.cjs +1 -0
  43. package/Group-BAd7alBM.js +46 -0
  44. package/{Heading-CEx2LJyM.js → Heading-CCoGfKQ8.js} +9 -9
  45. package/{Heading-CUShN98j.cjs → Heading-x7y3xadc.cjs} +1 -1
  46. package/{InfoBanner-CRSz8DK2.js → InfoBanner-D7Ta-7PI.js} +1 -1
  47. package/{InfoBanner-D_pNj1J2.cjs → InfoBanner-_M_rGQiu.cjs} +1 -1
  48. package/{Input-CCuE9Sc5.cjs → Input-Bda0PCu5.cjs} +1 -1
  49. package/{Input-CkTOajNJ.js → Input-CQzv-D9g.js} +3 -3
  50. package/{Label-CkIRTC0_.cjs → Label-DpY2SZdQ.cjs} +1 -1
  51. package/{Label-CV9p0K2n.js → Label-FfEnd4ai.js} +4 -4
  52. package/Layout-BrEuHajQ.cjs +16 -0
  53. package/{Layout-IeVrHpT0.js → Layout-Hd1e_MEA.js} +62 -63
  54. package/{Link-BFvUN5Sq.js → Link-BudFjYrw.js} +1 -1
  55. package/{Link-D2K7bDd3.cjs → Link-BvUSTIip.cjs} +1 -1
  56. package/{Link-a3Ymcnoa.cjs → Link-DRU6Qzia.cjs} +1 -1
  57. package/{Link-B9CQXWzE.js → Link-l-nMP-Zd.js} +5 -5
  58. package/{LinkButton-BCn5gR10.cjs → LinkButton-DGdnbTgR.cjs} +1 -1
  59. package/{LinkButton-DN3J1Agu.js → LinkButton-DP9W-E32.js} +1 -1
  60. package/{ListBox-2eEa1l0M.js → ListBox-5GK4ZRj1.js} +189 -178
  61. package/ListBox-FD30iELk.cjs +1 -0
  62. package/{ListBoxSection-dksiACMZ.js → ListBox-LJ3VgZMr.js} +230 -266
  63. package/ListBox-u6ZXp5Yi.cjs +1 -0
  64. package/{ListBoxLoadMoreItem-IcGb_XwN.js → ListBoxLoadMoreItem-B4GFbdYf.js} +3 -3
  65. package/ListBoxLoadMoreItem-DMUOzVtt.cjs +1 -0
  66. package/ListBoxSection-CBlpg0AG.cjs +1 -0
  67. package/ListBoxSection-DjGs1ndn.js +51 -0
  68. package/ListKeyboardDelegate-8zuIfwQ7.cjs +1 -0
  69. package/{ListKeyboardDelegate-Dyu4eFtP.js → ListKeyboardDelegate-BBmpJ-2O.js} +36 -40
  70. package/{OverlayArrow-Bh_G2tJ3.js → OverlayArrow-CjGslX2c.js} +2 -2
  71. package/{OverlayArrow-DJ4nNscD.cjs → OverlayArrow-bcrb_syE.cjs} +1 -1
  72. package/Popover-CS8Yyfrq.js +39 -0
  73. package/Popover-DpB0XDBp.cjs +1 -0
  74. package/{PressResponder-DUhG97jJ.js → PressResponder-BMj6Zvbn.js} +3 -3
  75. package/{PressResponder-AXK2I_yx.cjs → PressResponder-ChvCuOue.cjs} +1 -1
  76. package/{ProgressBar-B-TOuoAC.cjs → ProgressBar-BZqAQTV3.cjs} +1 -1
  77. package/{ProgressBar-B0WEQkyq.js → ProgressBar-BpsvPCKk.js} +12 -12
  78. package/{RSPContexts-BW2SEIqe.js → RSPContexts-B0lEq7qq.js} +5 -3
  79. package/RSPContexts-XUvspq3j.cjs +1 -0
  80. package/Radio-B3FBTn4F.cjs +1 -0
  81. package/Radio-LevFYAg4.js +340 -0
  82. package/{RangeCalendar-B6zKSDju.cjs → RangeCalendar-CH0CyBui.cjs} +2 -2
  83. package/{RangeCalendar-D5TMu8GI.js → RangeCalendar-DT_KVd80.js} +58 -58
  84. package/{SearchField-DnBBlPT7.cjs → SearchField-BX7P7BgV.cjs} +1 -1
  85. package/{SearchField-wojUSY2S.js → SearchField-C-TFzcJF.js} +3 -3
  86. package/Select-C-ykeY_T.js +773 -0
  87. package/Select-CiCng7ZP.js +678 -0
  88. package/Select-D4wi-0Jw.cjs +1 -0
  89. package/Select-JIDW2mN8.cjs +1 -0
  90. package/{FocusScope-8ILtcq9W.js → SelectionIndicator-C2E23-zO.js} +270 -174
  91. package/SelectionIndicator-ClG0GpJu.cjs +1 -0
  92. package/SelectionManager-CNJmHeCF.cjs +1 -0
  93. package/SelectionManager-DoNLJm8c.js +1063 -0
  94. package/{Separator-COlhRmJF.js → Separator-CQfDz_zr.js} +10 -10
  95. package/{Separator-DcbM84B8.cjs → Separator-CSyYDGNE.cjs} +1 -1
  96. package/{Separator-BQkxEZC9.cjs → Separator-DCi4bnBr.cjs} +1 -1
  97. package/{Separator--4b7vckr.js → Separator-DLr4kUJD.js} +2 -2
  98. package/Spinner-D6Fcu_Dp.js +54 -0
  99. package/Spinner-DIapnvIz.cjs +6 -0
  100. package/TabList-BBmBumm6.js +394 -0
  101. package/TabList-DVzXuGXA.cjs +1 -0
  102. package/Table-B1nxmW14.cjs +16 -0
  103. package/{Table-cCSOrPkK.js → Table-DxqKDp7N.js} +707 -703
  104. package/Tag-BL-_PONN.cjs +1 -0
  105. package/Tag-DX1X_NZE.js +774 -0
  106. package/{Text-CkhG15SU.cjs → Text-0wXj3J8E.cjs} +1 -1
  107. package/{Text-BQe1I4-r.js → Text-BBFWBNAH.js} +1 -1
  108. package/{Text-CkhZTTV5.cjs → Text-D5OSv6Uv.cjs} +1 -1
  109. package/{Text-BpERRete.js → Text-bqP9NeVg.js} +1 -1
  110. package/{TextArea-B5TsyJxa.cjs → TextArea-Bjf8CBp0.cjs} +1 -1
  111. package/{TextArea-Cado2arG.js → TextArea-CJPBvogq.js} +8 -8
  112. package/TextField-DtD9-arA.cjs +1 -0
  113. package/{TextField-5AI6T1ol.js → TextField-DyR61bjZ.js} +10 -10
  114. package/{Toast-CgXRE33Y.js → Toast-B99bLWnh.js} +12 -12
  115. package/{Toast-Cs-Uvf1p.cjs → Toast-DUZ5jfG1.cjs} +1 -1
  116. package/{ToggleButtonGroup-SKGgfFs4.js → ToggleButtonGroup-CFRutAZ4.js} +82 -78
  117. package/ToggleButtonGroup-dnvnzkaD.cjs +1 -0
  118. package/{Tooltip-txk48Qof.js → Tooltip-CUdmOznK.js} +4 -4
  119. package/{Tooltip-BrupFzaI.cjs → Tooltip-D-ATlbIM.cjs} +1 -1
  120. package/{VisuallyHidden-Awup6QxT.cjs → VisuallyHidden-BMelU6B0.cjs} +1 -1
  121. package/{VisuallyHidden-D2ZXHTJs.js → VisuallyHidden-DuW70K-5.js} +1 -1
  122. package/accordion/index.cjs +1 -1
  123. package/accordion/index.js +1 -1
  124. package/assets/AccordionItem.css +1 -1
  125. package/assets/FieldError.css +1 -1
  126. package/assets/ListBox.css +1 -0
  127. package/assets/Popover.css +1 -1
  128. package/assets/RangeCalendar.css +1 -1
  129. package/assets/Select.css +1 -1
  130. package/assets/Select2.css +1 -0
  131. package/assets/Spinner.css +1 -1
  132. package/assets/TabList.css +1 -1
  133. package/assets/Tag.css +1 -1
  134. package/assets/default.css +1 -1
  135. package/breadcrumbs/index.cjs +1 -1
  136. package/breadcrumbs/index.js +1 -1
  137. package/button/index.cjs +1 -1
  138. package/button/index.js +1 -1
  139. package/calendar/index.cjs +1 -1
  140. package/calendar/index.js +1 -1
  141. package/card/index.cjs +1 -1
  142. package/card/index.js +1 -1
  143. package/character-counter/index.cjs +1 -1
  144. package/character-counter/index.js +1 -1
  145. package/checkbox/index.cjs +1 -1
  146. package/checkbox/index.js +2 -2
  147. package/color-scheme-switch/index.cjs +1 -1
  148. package/color-scheme-switch/index.js +1 -1
  149. package/combobox/index.cjs +1 -1
  150. package/combobox/index.js +1 -1
  151. package/date-field/index.cjs +1 -1
  152. package/date-field/index.js +2 -2
  153. package/date-picker/index.cjs +1 -1
  154. package/date-picker/index.js +1 -1
  155. package/dropdown/index.cjs +1 -1
  156. package/dropdown/index.js +1 -1
  157. package/field-error/index.cjs +1 -1
  158. package/field-error/index.js +1 -1
  159. package/file-upload/index.cjs +1 -1
  160. package/file-upload/index.js +1 -1
  161. package/{getScrollParent-Ru2U2LlM.js → getScrollParent-DFCzfqHG.js} +1 -1
  162. package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-DjULaF_q.cjs} +1 -1
  163. package/heading/index.cjs +1 -1
  164. package/heading/index.js +1 -1
  165. package/index.cjs +1 -1
  166. package/index.d.ts +1 -0
  167. package/index.js +99 -95
  168. package/info-banner/index.cjs +1 -1
  169. package/info-banner/index.js +1 -1
  170. package/intlStrings-Cd44R5hT.js +278 -0
  171. package/intlStrings-ClBuC6xN.cjs +1 -0
  172. package/label/index.cjs +1 -1
  173. package/label/index.js +1 -1
  174. package/layout/index.cjs +1 -1
  175. package/layout/index.js +1 -1
  176. package/legacy-select/Select.d.ts +8 -0
  177. package/legacy-select/SelectTrigger.d.ts +10 -0
  178. package/legacy-select/index.cjs +1 -0
  179. package/legacy-select/index.d.ts +2 -0
  180. package/legacy-select/index.js +4 -0
  181. package/legacy-select/intl/translations.json.d.ts +17 -0
  182. package/{select → legacy-select}/types.d.ts +2 -2
  183. package/legacy-select/useMultiSelect.d.ts +5 -0
  184. package/link/index.cjs +1 -1
  185. package/link/index.js +2 -2
  186. package/link-button/index.cjs +1 -1
  187. package/link-button/index.js +2 -2
  188. package/list-box/ListBox.d.ts +1 -2
  189. package/list-box/ListBoxHeader.d.ts +3 -0
  190. package/list-box/ListBoxItem.d.ts +9 -3
  191. package/list-box/ListBoxSection.d.ts +1 -1
  192. package/list-box/index.cjs +1 -1
  193. package/list-box/index.d.ts +1 -0
  194. package/list-box/index.js +9 -7
  195. package/menu/index.cjs +1 -1
  196. package/menu/index.js +2 -2
  197. package/modal/index.cjs +1 -1
  198. package/modal/index.js +2 -2
  199. package/package.json +4 -4
  200. package/popover/Popover.d.ts +2 -1
  201. package/popover/index.cjs +1 -1
  202. package/popover/index.js +1 -1
  203. package/progress-bar/index.cjs +1 -1
  204. package/progress-bar/index.js +1 -1
  205. package/radio/index.cjs +1 -1
  206. package/radio/index.js +1 -1
  207. package/scrollIntoView-BVI21Y4-.js +65 -0
  208. package/scrollIntoView-BueMOyGp.cjs +1 -0
  209. package/search-field/index.cjs +1 -1
  210. package/search-field/index.js +1 -1
  211. package/select/Select.d.ts +33 -4
  212. package/select/SelectAll.d.ts +1 -0
  213. package/select/SelectTags.d.ts +4 -0
  214. package/select/SelectTrigger.d.ts +4 -8
  215. package/select/SelectValueTag.d.ts +5 -0
  216. package/select/index.cjs +1 -1
  217. package/select/index.d.ts +1 -2
  218. package/select/index.js +1 -1
  219. package/select/intl/translations.json.d.ts +2 -2
  220. package/spinner/Spinner.d.ts +5 -1
  221. package/spinner/index.cjs +1 -1
  222. package/spinner/index.js +1 -1
  223. package/table/index.cjs +1 -1
  224. package/table/index.js +1 -1
  225. package/tabs/Tabs.d.ts +2 -9
  226. package/tabs/index.cjs +1 -1
  227. package/tabs/index.d.ts +0 -1
  228. package/tabs/index.js +1 -1
  229. package/tag/index.cjs +1 -1
  230. package/tag/index.js +1 -1
  231. package/text/index.cjs +1 -1
  232. package/text/index.js +1 -1
  233. package/textfield/TextArea.d.ts +3 -2
  234. package/textfield/TextField.d.ts +3 -2
  235. package/textfield/index.cjs +1 -1
  236. package/textfield/index.js +1 -1
  237. package/toast/index.cjs +1 -1
  238. package/toast/index.js +1 -1
  239. package/toggle-button/index.cjs +1 -1
  240. package/toggle-button/index.js +1 -1
  241. package/tooltip/index.cjs +1 -1
  242. package/tooltip/index.js +1 -1
  243. package/{useButton-Bh3duhYL.cjs → useButton-C0r5nrqs.cjs} +1 -1
  244. package/{useButton-A-VOfwuT.js → useButton-CRgN6aZf.js} +2 -2
  245. package/useDateFormatter-BrrFo4nY.cjs +1 -0
  246. package/{useDateFormatter-CxlJTAki.js → useDateFormatter-Bs5A6Xtu.js} +353 -322
  247. package/{useField-sSWPm-He.js → useField-Bx76iuoW.js} +1 -1
  248. package/{useField-CY4OYE5a.cjs → useField-DvszkIMx.cjs} +1 -1
  249. package/{useFilter-DHcouDzv.js → useFilter-Dn4vTT3G.js} +1 -1
  250. package/{useFilter-DlZLqsJD.cjs → useFilter-eOgdlVLd.cjs} +1 -1
  251. package/{useFocusRing-Cig5Y0l-.cjs → useFocusRing-C-XVcAE5.cjs} +1 -1
  252. package/{useFocusRing-Copf_tx8.js → useFocusRing-CcxI7nbg.js} +2 -2
  253. package/{useFocusWithin-BKopz9sr.js → useFocusWithin-DhXBuB2O.js} +1 -1
  254. package/{useFocusWithin-TryC2Kkw.cjs → useFocusWithin-GBjoTL5o.cjs} +1 -1
  255. package/{useFocusable-CCh54GIw.js → useFocusable-BJj-Bkig.js} +3 -3
  256. package/{useFocusable-DhdAtEw8.cjs → useFocusable-M4se1KJt.cjs} +1 -1
  257. package/{useFormValidation-DdIIVZ5j.js → useFormValidation-By7G-T7y.js} +1 -1
  258. package/{useFormValidation-BJNizNDf.cjs → useFormValidation-DV2Ioblb.cjs} +1 -1
  259. package/useHasTabbableChild-BJ_VejL5.cjs +1 -0
  260. package/{useHasTabbableChild-BbgOpdGQ.js → useHasTabbableChild-DpISgPsS.js} +1 -1
  261. package/{useHighlightSelectionDescription-D6F-YO6b.cjs → useHighlightSelectionDescription-CBZfyrhy.cjs} +1 -1
  262. package/{useHighlightSelectionDescription-BL_02EKv.js → useHighlightSelectionDescription-Zvo5KTxM.js} +2 -2
  263. package/{useHover-eU40luVI.cjs → useHover-DULSfLuK.cjs} +1 -1
  264. package/{useHover-zCCNtF6g.js → useHover-DkC5FyNd.js} +4 -4
  265. package/{useListState-D2yPZrFZ.js → useListState-CP7AKhOX.js} +1 -1
  266. package/{useListState-BdC308Sq.cjs → useListState-DZFWpD-x.cjs} +1 -1
  267. package/{usePress-4yZ5a87p.js → usePress-BqQIhkNY.js} +43 -43
  268. package/usePress-DmU79HEg.cjs +7 -0
  269. package/{useSingleSelectListState-lyai-bC_.js → useSingleSelectListState-GSY0f4qW.js} +1 -1
  270. package/{useSingleSelectListState-b_SPhYG4.cjs → useSingleSelectListState-JCvbhUVI.cjs} +1 -1
  271. package/{useTextField-DUEQl6sr.cjs → useTextField-CiWV3eeD.cjs} +1 -1
  272. package/{useTextField-DjxrmW7d.js → useTextField-I3QVGvyX.js} +4 -4
  273. package/utils/types.d.ts +5 -0
  274. package/utils-CtICjCYt.cjs +1 -0
  275. package/{utils-BMBoiyL7.js → utils-D2iKpxcZ.js} +43 -39
  276. package/utils-DRIRjPUS.cjs +1 -0
  277. package/{utils-CrT5PVBA.js → utils-Dxh86KaB.js} +19 -17
  278. package/AccordionItem-BJw5IKe0.js +0 -334
  279. package/AccordionItem-DhMimhYo.cjs +0 -1
  280. package/Button-BTX5G3le.cjs +0 -1
  281. package/Checkbox-D-CFY6QF.cjs +0 -1
  282. package/Collection-DaZzboRu.cjs +0 -1
  283. package/ComboBox-C4NybZ32.cjs +0 -1
  284. package/DateInputDivider-BgXKFwB0.cjs +0 -1
  285. package/DateRangePicker-DTPkr3hX.cjs +0 -6
  286. package/Dialog-DLnopN3Z.js +0 -237
  287. package/Dialog-DNu42oLH.cjs +0 -1
  288. package/Dialog-w6EBWT__.cjs +0 -1
  289. package/FocusScope-Dv0F-mG2.cjs +0 -1
  290. package/Group-C2hEIsGV.js +0 -45
  291. package/Group-cuyk9Hsy.cjs +0 -1
  292. package/Layout-CVnlO10z.cjs +0 -16
  293. package/ListBox-Bx9M5vqb.cjs +0 -1
  294. package/ListBoxLoadMoreItem-BBE3OF4J.cjs +0 -1
  295. package/ListBoxSection-kujY2gUl.cjs +0 -1
  296. package/ListKeyboardDelegate-DJDPir-w.cjs +0 -1
  297. package/Popover-BI2Koco0.cjs +0 -1
  298. package/Popover-D7_IfJ3o.js +0 -38
  299. package/RSPContexts-D8hmBfGm.cjs +0 -1
  300. package/Radio-D6KNkSA2.js +0 -333
  301. package/Radio-DsVsutMH.cjs +0 -1
  302. package/Select-D9h_RQ2k.cjs +0 -1
  303. package/Select-Dc6y8gPR.js +0 -654
  304. package/SelectionManager-D-4ThfPZ.js +0 -1043
  305. package/SelectionManager-FYrDfe5v.cjs +0 -1
  306. package/Spinner-CTha503N.js +0 -47
  307. package/Spinner-DKQ9_SQB.cjs +0 -6
  308. package/TabList-BhC96APe.cjs +0 -1
  309. package/TabList-P5HnizZt.js +0 -393
  310. package/Table-BB8Ag5_3.cjs +0 -16
  311. package/Tag-D2vh0KRD.js +0 -765
  312. package/Tag-D32MGLjS.cjs +0 -1
  313. package/TextField-4xfAzdBI.cjs +0 -1
  314. package/ToggleButtonGroup-CiX2eXB8.cjs +0 -1
  315. package/assets/ListBoxSection.css +0 -1
  316. package/scrollIntoView-ClEACHUk.js +0 -57
  317. package/scrollIntoView-DRSoJp89.cjs +0 -1
  318. package/select/useMultiSelect.d.ts +0 -4
  319. package/useDateFormatter-D0bVjgIb.cjs +0 -1
  320. package/useHasTabbableChild-wH3RCjTd.cjs +0 -1
  321. package/useObserveElement-BdI4zgd7.js +0 -27
  322. package/useObserveElement-BzEr5D32.cjs +0 -1
  323. package/usePress-Dj3t18Pf.cjs +0 -7
  324. package/utils-I-LGXGYH.cjs +0 -1
  325. package/utils-cBvgilDa.cjs +0 -1
  326. package/variables-B3KEYyhW.cjs +0 -1
  327. package/variables-DzXcMW2k.js +0 -5
  328. /package/{select → legacy-select}/HiddenMultiSelect.d.ts +0 -0
  329. /package/{select → legacy-select}/MultiSelectValueTag.d.ts +0 -0
  330. /package/{select → legacy-select}/SelectFieldError.d.ts +0 -0
  331. /package/{select → legacy-select}/SelectListBox.d.ts +0 -0
  332. /package/{select → legacy-select}/useMultiSelectListState.d.ts +0 -0
  333. /package/{select → legacy-select}/useMultiSelectState.d.ts +0 -0
  334. /package/{select → legacy-select}/utils.d.ts +0 -0
package/link/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { L as e } from "../Link-BFvUN5Sq.js";
2
- import { $ as a } from "../usePress-4yZ5a87p.js";
1
+ import { L as e } from "../Link-BudFjYrw.js";
2
+ import { $ as a } from "../usePress-BqQIhkNY.js";
3
3
  export {
4
4
  e as Link,
5
5
  a as RouterProvider
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../LinkButton-BCn5gR10.cjs"),t=require("../usePress-Dj3t18Pf.cjs");exports.LinkButton=e.LinkButton;exports.RouterProvider=t.$ea8dcbcb9ea1b556$export$323e4fc2fa4753fb;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../LinkButton-DGdnbTgR.cjs"),t=require("../usePress-DmU79HEg.cjs");exports.LinkButton=e.LinkButton;exports.RouterProvider=t.$ea8dcbcb9ea1b556$export$323e4fc2fa4753fb;
@@ -1,5 +1,5 @@
1
- import { L as t } from "../LinkButton-DN3J1Agu.js";
2
- import { $ as a } from "../usePress-4yZ5a87p.js";
1
+ import { L as t } from "../LinkButton-DP9W-E32.js";
2
+ import { $ as a } from "../usePress-BqQIhkNY.js";
3
3
  export {
4
4
  t as LinkButton,
5
5
  a as RouterProvider
@@ -1,4 +1,3 @@
1
1
  import { ListBoxProps } from 'react-aria-components';
2
- import { ListBoxOption } from './types';
3
2
  import { Node } from '@react-types/shared';
4
- export declare const ListBox: <T extends ListBoxOption | Node<ListBoxOption>>({ className, children, ...rest }: ListBoxProps<T>) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const ListBox: <T extends object | Node<object>>({ className, children, ...rest }: ListBoxProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ export type ListBoxHeaderProps = React.HTMLAttributes<HTMLElement> & React.RefAttributes<object>;
3
+ export declare const ListBoxHeader: ({ className, ...rest }: ListBoxHeaderProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,9 @@
1
- import { ListBoxItemProps } from 'react-aria-components';
2
- import { ListBoxItemElement } from './types';
3
- export declare const ListBoxItem: <T extends ListBoxItemElement>({ children, className, ...rest }: ListBoxItemProps<T>) => import("react/jsx-runtime").JSX.Element;
1
+ import { ListBoxItemProps as AriaListBoxItemProps } from 'react-aria-components';
2
+ export interface ListBoxItemProps<T extends object> extends AriaListBoxItemProps<T> {
3
+ /**
4
+ * Wheter to hide the checkmarks and checkboxes for selected items
5
+ * @default false
6
+ */
7
+ hideSelectionIndicator?: boolean;
8
+ }
9
+ export declare const ListBoxItem: <T extends object>({ children, className, hideSelectionIndicator, ...rest }: ListBoxItemProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,7 @@ import { ListBoxSectionProps as AriaListBoxSectionProps } from 'react-aria-compo
2
2
  import { ListBoxSectionElement } from './types';
3
3
  import * as React from 'react';
4
4
  export interface ListBoxSectionProps<T extends ListBoxSectionElement> extends Omit<AriaListBoxSectionProps<T>, 'children'> {
5
- name: React.ReactNode;
5
+ name?: React.ReactNode;
6
6
  children?: React.ReactNode;
7
7
  }
8
8
  export declare const ListBoxSection: <T extends ListBoxSectionElement>({ children, name, ...rest }: ListBoxSectionProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../ListBoxSection-kujY2gUl.cjs"),t=require("../ListBoxLoadMoreItem-BBE3OF4J.cjs");exports.ListBox=o.ListBox;exports.ListBoxItem=o.ListBoxItem;exports.ListBoxPopover=o.ListBoxPopover;exports.ListBoxSection=o.ListBoxSection;exports.ListBoxButton=t.ListBoxButton;exports.ListBoxLoadMoreItem=t.ListBoxLoadMoreItem;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ListBox-u6ZXp5Yi.cjs"),t=require("../ListBoxLoadMoreItem-DMUOzVtt.cjs"),o=require("../ListBoxSection-CBlpg0AG.cjs");exports.ListBox=e.ListBox;exports.ListBoxButton=t.ListBoxButton;exports.ListBoxLoadMoreItem=t.ListBoxLoadMoreItem;exports.ListBoxHeader=o.ListBoxHeader;exports.ListBoxItem=o.ListBoxItem;exports.ListBoxPopover=o.ListBoxPopover;exports.ListBoxSection=o.ListBoxSection;
@@ -4,4 +4,5 @@ export * from './ListBoxItem';
4
4
  export * from './ListBoxPopover';
5
5
  export * from './ListBoxSection';
6
6
  export * from './ListBoxLoadMoreItem';
7
+ export * from './ListBoxHeader';
7
8
  export * from './types';
package/list-box/index.js CHANGED
@@ -1,10 +1,12 @@
1
- import { L as s, a, b as L, c as x } from "../ListBoxSection-dksiACMZ.js";
2
- import { L as i, a as B } from "../ListBoxLoadMoreItem-IcGb_XwN.js";
1
+ import { L as s } from "../ListBox-LJ3VgZMr.js";
2
+ import { L, a as e } from "../ListBoxLoadMoreItem-B4GFbdYf.js";
3
+ import { c as r, L as i, a as B, b as m } from "../ListBoxSection-DjGs1ndn.js";
3
4
  export {
4
5
  s as ListBox,
5
- i as ListBoxButton,
6
- a as ListBoxItem,
7
- B as ListBoxLoadMoreItem,
8
- L as ListBoxPopover,
9
- x as ListBoxSection
6
+ L as ListBoxButton,
7
+ r as ListBoxHeader,
8
+ i as ListBoxItem,
9
+ e as ListBoxLoadMoreItem,
10
+ B as ListBoxPopover,
11
+ m as ListBoxSection
10
12
  };
package/menu/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Separator-DcbM84B8.cjs"),r=require("../Dialog-DNu42oLH.cjs");exports.Menu=e.Menu;exports.MenuItem=e.MenuItem;exports.MenuPopover=e.MenuPopover;exports.MenuSection=e.MenuSection;exports.Separator=e.Separator;exports.MenuTrigger=r.$3674c52c6b3c5bce$export$27d2ad3c5815583e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Separator-CSyYDGNE.cjs"),r=require("../Dialog-DycTLpdr.cjs");exports.Menu=e.Menu;exports.MenuItem=e.MenuItem;exports.MenuPopover=e.MenuPopover;exports.MenuSection=e.MenuSection;exports.Separator=e.Separator;exports.MenuTrigger=r.$3674c52c6b3c5bce$export$27d2ad3c5815583e;
package/menu/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { M as r, a as o, b as n, c as s, S as M } from "../Separator--4b7vckr.js";
2
- import { a as u } from "../Dialog-DOyFzvUa.js";
1
+ import { M as r, a as o, b as n, c as s, S as M } from "../Separator-DLr4kUJD.js";
2
+ import { a as u } from "../Dialog-D4Py85wi.js";
3
3
  export {
4
4
  r as Menu,
5
5
  o as MenuItem,
package/modal/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Dialog-w6EBWT__.cjs"),o=require("../Dialog-DNu42oLH.cjs");exports.Modal=e.Modal;exports.DialogTrigger=o.$de32f1b87079253c$export$2e1e1122cf0cba88;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Dialog-DtOf0vWx.cjs"),o=require("../Dialog-DycTLpdr.cjs");exports.Modal=e.Modal;exports.DialogTrigger=o.$de32f1b87079253c$export$2e1e1122cf0cba88;
package/modal/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { M as a } from "../Dialog-DLnopN3Z.js";
2
- import { $ as g } from "../Dialog-DOyFzvUa.js";
1
+ import { M as a } from "../Dialog-CPuJA2fm.js";
2
+ import { $ as g } from "../Dialog-D4Py85wi.js";
3
3
  export {
4
4
  g as DialogTrigger,
5
5
  a as Modal
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "description": "Midas Components",
15
15
  "homepage": "https://designsystem.migrationsverket.se/",
16
16
  "license": "CC0-1.0",
17
- "version": "14.0.0",
17
+ "version": "15.0.0",
18
18
  "main": "./index.cjs",
19
19
  "module": "./index.js",
20
20
  "types": "./index.d.ts",
@@ -44,8 +44,8 @@
44
44
  }
45
45
  },
46
46
  "dependencies": {
47
- "@midas-ds/theme": "3.1.0",
48
- "react-aria-components": "^1.12.1",
49
- "react-stately": "^3.39.0"
47
+ "@midas-ds/theme": "3.1.1",
48
+ "react-aria-components": "1.13.0",
49
+ "react-stately": "3.42.0"
50
50
  }
51
51
  }
@@ -2,5 +2,6 @@ import { PopoverProps } from 'react-aria-components';
2
2
  import * as React from 'react';
3
3
  export interface MidasPopoverProps extends Omit<PopoverProps, 'children'> {
4
4
  children: React.ReactNode;
5
+ hideArrow?: boolean;
5
6
  }
6
- export declare function Popover({ children, className, offset, ...props }: MidasPopoverProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function Popover({ children, className, offset, hideArrow, ...props }: MidasPopoverProps): import("react/jsx-runtime").JSX.Element;
package/popover/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Popover-BI2Koco0.cjs");exports.Popover=e.Popover;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Popover-DpB0XDBp.cjs");exports.Popover=e.Popover;
package/popover/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { P as e } from "../Popover-D7_IfJ3o.js";
1
+ import { P as e } from "../Popover-CS8Yyfrq.js";
2
2
  export {
3
3
  e as Popover
4
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../ProgressBar-B-TOuoAC.cjs");exports.ProgressBar=r.ProgressBar;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../ProgressBar-BZqAQTV3.cjs");exports.ProgressBar=r.ProgressBar;
@@ -1,4 +1,4 @@
1
- import { P as s } from "../ProgressBar-B0WEQkyq.js";
1
+ import { P as s } from "../ProgressBar-BpsvPCKk.js";
2
2
  export {
3
3
  s as ProgressBar
4
4
  };
package/radio/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../Radio-DsVsutMH.cjs");exports.Radio=o.Radio;exports.RadioGroup=o.RadioGroup;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../Radio-B3FBTn4F.cjs");exports.Radio=o.Radio;exports.RadioGroup=o.RadioGroup;
package/radio/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { R as r, a as R } from "../Radio-D6KNkSA2.js";
1
+ import { R as r, a as R } from "../Radio-LevFYAg4.js";
2
2
  export {
3
3
  r as Radio,
4
4
  R as RadioGroup
@@ -0,0 +1,65 @@
1
+ import { e as O } from "./useHover-DkC5FyNd.js";
2
+ function w(t, e) {
3
+ if (!t) return !1;
4
+ let l = window.getComputedStyle(t), o = /(auto|scroll)/.test(l.overflow + l.overflowX + l.overflowY);
5
+ return o && e && (o = t.scrollHeight !== t.clientHeight || t.scrollWidth !== t.clientWidth), o;
6
+ }
7
+ function D(t, e) {
8
+ const l = [];
9
+ for (; t && t !== document.documentElement; )
10
+ w(t, e) && l.push(t), t = t.parentElement;
11
+ return l;
12
+ }
13
+ function q(t, e) {
14
+ let l = m(t, e, "left"), o = m(t, e, "top"), r = e.offsetWidth, d = e.offsetHeight, i = t.scrollLeft, f = t.scrollTop, { borderTopWidth: s, borderLeftWidth: c, scrollPaddingTop: a, scrollPaddingRight: n, scrollPaddingBottom: I, scrollPaddingLeft: B } = getComputedStyle(t), { scrollMarginTop: N, scrollMarginRight: R, scrollMarginBottom: x, scrollMarginLeft: W } = getComputedStyle(e), S = i + parseInt(c, 10), M = f + parseInt(s, 10), p = S + t.clientWidth, u = M + t.clientHeight, b = parseInt(a, 10) || 0, g = parseInt(I, 10) || 0, P = parseInt(n, 10) || 0, h = parseInt(B, 10) || 0, y = parseInt(N, 10) || 0, C = parseInt(x, 10) || 0, k = parseInt(R, 10) || 0, H = parseInt(W, 10) || 0, v = l - H, $ = l + r + k, T = o - y, L = o + d + C, X = i + parseInt(c, 10) + h, Y = p - P, j = f + parseInt(s, 10) + b, A = u - g;
15
+ if ((v > X || $ < Y) && (v <= i + h ? i = v - parseInt(c, 10) - h : $ > p - P && (i += $ - p + P)), (T > j || L < A) && (T <= M + b ? f = T - parseInt(s, 10) - b : L > u - g && (f += L - u + g)), process.env.NODE_ENV === "test") {
16
+ t.scrollLeft = i, t.scrollTop = f;
17
+ return;
18
+ }
19
+ t.scrollTo({
20
+ left: i,
21
+ top: f
22
+ });
23
+ }
24
+ function m(t, e, l) {
25
+ const o = l === "left" ? "offsetLeft" : "offsetTop";
26
+ let r = 0;
27
+ for (; e.offsetParent && (r += e[o], e.offsetParent !== t); ) {
28
+ if (e.offsetParent.contains(t)) {
29
+ r -= t[o];
30
+ break;
31
+ }
32
+ e = e.offsetParent;
33
+ }
34
+ return r;
35
+ }
36
+ function F(t, e) {
37
+ if (t && document.contains(t)) {
38
+ let i = document.scrollingElement || document.documentElement;
39
+ if (!(window.getComputedStyle(i).overflow === "hidden") && !O()) {
40
+ var l;
41
+ let { left: s, top: c } = t.getBoundingClientRect();
42
+ t == null || (l = t.scrollIntoView) === null || l === void 0 || l.call(t, {
43
+ block: "nearest"
44
+ });
45
+ let { left: a, top: n } = t.getBoundingClientRect();
46
+ if (Math.abs(s - a) > 1 || Math.abs(c - n) > 1) {
47
+ var o, r, d;
48
+ e == null || (r = e.containingElement) === null || r === void 0 || (o = r.scrollIntoView) === null || o === void 0 || o.call(r, {
49
+ block: "center",
50
+ inline: "center"
51
+ }), (d = t.scrollIntoView) === null || d === void 0 || d.call(t, {
52
+ block: "nearest"
53
+ });
54
+ }
55
+ } else {
56
+ let s = D(t);
57
+ for (let c of s) q(c, t);
58
+ }
59
+ }
60
+ }
61
+ export {
62
+ w as $,
63
+ q as a,
64
+ F as b
65
+ };
@@ -0,0 +1 @@
1
+ "use strict";const w=require("./useHover-DULSfLuK.cjs");function I(e,t){if(!e)return!1;let l=window.getComputedStyle(e),o=/(auto|scroll)/.test(l.overflow+l.overflowX+l.overflowY);return o&&t&&(o=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),o}function D(e,t){const l=[];for(;e&&e!==document.documentElement;)I(e,t)&&l.push(e),e=e.parentElement;return l}function m(e,t){let l=x(e,t,"left"),o=x(e,t,"top"),r=t.offsetWidth,d=t.offsetHeight,c=e.scrollLeft,f=e.scrollTop,{borderTopWidth:i,borderLeftWidth:s,scrollPaddingTop:n,scrollPaddingRight:a,scrollPaddingBottom:B,scrollPaddingLeft:N}=getComputedStyle(e),{scrollMarginTop:R,scrollMarginRight:W,scrollMarginBottom:S,scrollMarginLeft:y}=getComputedStyle(t),C=c+parseInt(s,10),M=f+parseInt(i,10),u=C+e.clientWidth,p=M+e.clientHeight,b=parseInt(n,10)||0,g=parseInt(B,10)||0,$=parseInt(a,10)||0,P=parseInt(N,10)||0,k=parseInt(R,10)||0,H=parseInt(S,10)||0,X=parseInt(W,10)||0,Y=parseInt(y,10)||0,h=l-Y,v=l+r+X,T=o-k,L=o+d+H,j=c+parseInt(s,10)+P,A=u-$,O=f+parseInt(i,10)+b,q=p-g;if((h>j||v<A)&&(h<=c+P?c=h-parseInt(s,10)-P:v>u-$&&(c+=v-u+$)),(T>O||L<q)&&(T<=M+b?f=T-parseInt(i,10)-b:L>p-g&&(f+=L-p+g)),process.env.NODE_ENV==="test"){e.scrollLeft=c,e.scrollTop=f;return}e.scrollTo({left:c,top:f})}function x(e,t,l){const o=l==="left"?"offsetLeft":"offsetTop";let r=0;for(;t.offsetParent&&(r+=t[o],t.offsetParent!==e);){if(t.offsetParent.contains(e)){r-=e[o];break}t=t.offsetParent}return r}function z(e,t){if(e&&document.contains(e)){let c=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(c).overflow==="hidden")&&!w.$c87311424ea30a05$export$6446a186d09e379e()){var l;let{left:i,top:s}=e.getBoundingClientRect();e==null||(l=e.scrollIntoView)===null||l===void 0||l.call(e,{block:"nearest"});let{left:n,top:a}=e.getBoundingClientRect();if(Math.abs(i-n)>1||Math.abs(s-a)>1){var o,r,d;t==null||(r=t.containingElement)===null||r===void 0||(o=r.scrollIntoView)===null||o===void 0||o.call(r,{block:"center",inline:"center"}),(d=e.scrollIntoView)===null||d===void 0||d.call(e,{block:"nearest"})}}else{let i=D(e);for(let s of i)m(s,e)}}}exports.$2f04cbc44ee30ce0$export$53a0910f038337bd=m;exports.$2f04cbc44ee30ce0$export$c826860796309d1b=z;exports.$cc38e7bd3fc7b213$export$2bb74740c4e19def=I;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../SearchField-DnBBlPT7.cjs");exports.SearchField=e.SearchField;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../SearchField-BX7P7BgV.cjs");exports.SearchField=e.SearchField;
@@ -1,4 +1,4 @@
1
- import { S as a } from "../SearchField-wojUSY2S.js";
1
+ import { S as a } from "../SearchField-C-TFzcJF.js";
2
2
  export {
3
3
  a as SearchField
4
4
  };
@@ -1,5 +1,34 @@
1
- import { SelectProps } from './types';
1
+ import { SelectProps, ValidationResult } from 'react-aria-components';
2
+ import { InfoPopoverProps } from '../label';
3
+ import { Size } from '../common/types';
2
4
  import * as React from 'react';
3
- export declare const Select: React.ForwardRefExoticComponent<Omit<SelectProps, "children" | "items"> & {
4
- options: import('..').ListBoxOption[];
5
- } & React.RefAttributes<HTMLButtonElement>>;
5
+ export type SelectionMode = 'single' | 'multiple';
6
+ export interface MidasSelectProps<T extends object, M extends SelectionMode = 'single'> extends Omit<SelectProps<T, M>, 'children'> {
7
+ children: React.ReactNode | ((item: T) => React.ReactNode);
8
+ description?: string;
9
+ errorMessage?: string | ((validation: ValidationResult) => string);
10
+ /**
11
+ * The position of the error message
12
+ * @default "top"
13
+ */
14
+ errorPosition?: 'top' | 'bottom';
15
+ /**
16
+ * Whether to show a button to select all items.
17
+ */
18
+ isSelectableAll?: boolean;
19
+ items?: Iterable<T>;
20
+ label?: string;
21
+ /**
22
+ * An assistive text that helps the user understand the field better. Will be hidden in a popover with an info icon button.
23
+ */
24
+ popover?: InfoPopoverProps;
25
+ /**
26
+ * Show selected items as tags below select
27
+ */
28
+ showTags?: boolean;
29
+ /** Component size (large: height 48px, medium: height 40px)
30
+ * @default 'large'
31
+ */
32
+ size?: Size;
33
+ }
34
+ export declare function Select<T extends object, M extends SelectionMode = 'single'>({ children, description, errorMessage, errorPosition, items, label, popover, size, ...props }: MidasSelectProps<T, M>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const SelectAll: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { MidasSelectProps, SelectionMode } from './';
2
+ type SelectTagsProps<T extends object, M extends SelectionMode = 'single'> = Pick<MidasSelectProps<T, M>, 'showTags' | 'isDisabled'>;
3
+ export declare const SelectTags: <T extends object, M extends SelectionMode = "single">({ showTags, isDisabled, }: SelectTagsProps<T, M>) => import("react/jsx-runtime").JSX.Element | null;
4
+ export {};
@@ -1,10 +1,6 @@
1
- import { default as React } from 'react';
2
- import { AriaButtonProps } from 'react-aria';
3
- import { SelectProps, MultiSelectState } from './types';
4
- import { ListBoxOption } from '../list-box';
5
- interface SelectTriggerProps extends Omit<SelectProps, 'children'>, AriaButtonProps<'button'> {
6
- state: MultiSelectState<ListBoxOption>;
7
- triggerRef: React.MutableRefObject<HTMLButtonElement | null>;
1
+ import { Size } from '../common/types';
2
+ interface SelectTriggerProps {
3
+ size: Size;
8
4
  }
9
- export declare const SelectTrigger: React.FC<SelectTriggerProps>;
5
+ export declare const SelectTrigger: ({ size }: SelectTriggerProps) => import("react/jsx-runtime").JSX.Element;
10
6
  export {};
@@ -0,0 +1,5 @@
1
+ import { SelectValueRenderProps } from 'react-aria-components';
2
+ import { MidasSelectProps, SelectionMode } from './';
3
+ type SelectValueTagProps<T extends object, M extends SelectionMode = 'single'> = SelectValueRenderProps<T> & Pick<MidasSelectProps<T, M>, 'isDisabled'>;
4
+ export declare const SelectValueTag: <T extends object, M extends SelectionMode = "single">({ isDisabled, selectedItems, selectedText, }: SelectValueTagProps<T, M>) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
package/select/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Select-D9h_RQ2k.cjs");exports.Select=e.Select;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Select-D4wi-0Jw.cjs");exports.Select=e.Select;
package/select/index.d.ts CHANGED
@@ -1,2 +1 @@
1
- export * from './Select';
2
- export type { SelectContainerProps as SelectProps, SelectionMode, } from './types';
1
+ export { type SelectionMode, Select, type MidasSelectProps } from './Select';
package/select/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as r } from "../Select-Dc6y8gPR.js";
1
+ import { S as r } from "../Select-C-ykeY_T.js";
2
2
  export {
3
3
  r as Select
4
4
  };
@@ -3,13 +3,13 @@ declare const _default: {
3
3
  "clearAll": "Clear all",
4
4
  "selectAll": "Select all",
5
5
  "selectedItems": "Selected items",
6
- "chosen": "chosen"
6
+ "selected": "selected"
7
7
  },
8
8
  "sv": {
9
9
  "clearAll": "Rensa alla",
10
10
  "selectAll": "Välj alla",
11
11
  "selectedItems": "Valda objekt",
12
- "chosen": "valda"
12
+ "selected": "valda"
13
13
  }
14
14
  }
15
15
  ;
@@ -3,10 +3,14 @@ export interface SpinnerProps {
3
3
  * @default false
4
4
  */
5
5
  small?: boolean;
6
- /** For use on coloured background
6
+ /**
7
+ * @deprecated since v14, define color based on context. Use `color` prop instead.
8
+ *
7
9
  * @default false
8
10
  */
9
11
  isOnColor?: boolean;
12
+ /** User defined color */
13
+ color?: string;
10
14
  className?: string;
11
15
  }
12
16
  export declare const Spinner: React.FC<SpinnerProps>;
package/spinner/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Spinner-DKQ9_SQB.cjs");exports.Spinner=e.Spinner;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Spinner-DIapnvIz.cjs");exports.Spinner=e.Spinner;
package/spinner/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as n } from "../Spinner-CTha503N.js";
1
+ import { S as n } from "../Spinner-D6Fcu_Dp.js";
2
2
  export {
3
3
  n as Spinner
4
4
  };
package/table/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Table-BB8Ag5_3.cjs");exports.Cell=e.Cell;exports.Column=e.Column;exports.Row=e.Row;exports.Table=e.Table;exports.TableBody=e.TableBody;exports.TableHeader=e.TableHeader;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Table-B1nxmW14.cjs");exports.Cell=e.Cell;exports.Column=e.Column;exports.Row=e.Row;exports.Table=e.Table;exports.TableBody=e.TableBody;exports.TableHeader=e.TableHeader;
package/table/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as l, C as s, R as o, T as b, c as T, a as r } from "../Table-cCSOrPkK.js";
1
+ import { b as l, C as s, R as o, T as b, c as T, a as r } from "../Table-DxqKDp7N.js";
2
2
  export {
3
3
  l as Cell,
4
4
  s as Column,
package/tabs/Tabs.d.ts CHANGED
@@ -1,11 +1,4 @@
1
- import { TabsProps as AriaTabsProps } from 'react-aria-components';
1
+ import { TabsProps } from 'react-aria-components';
2
2
  import * as React from 'react';
3
- export interface TabsProps extends AriaTabsProps {
4
- /**
5
- * The orientation of the tabs.
6
- * Will adjust to screen size automatically if omitted
7
- * @default undefined
8
- */
9
- orientation?: AriaTabsProps['orientation'];
10
- }
3
+ export type { TabsProps };
11
4
  export declare const Tabs: React.FC<TabsProps>;
package/tabs/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../TabList-BhC96APe.cjs");exports.Tab=a.Tab;exports.TabList=a.TabList;exports.TabPanel=a.TabPanel;exports.Tabs=a.Tabs;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../TabList-DVzXuGXA.cjs");exports.Tab=a.Tab;exports.TabList=a.TabList;exports.TabPanel=a.TabPanel;exports.Tabs=a.Tabs;
package/tabs/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  export * from './Tabs';
2
- export type { TabsProps } from './Tabs';
3
2
  export * from './Tab';
4
3
  export * from './TabPanel';
5
4
  export * from './TabList';
package/tabs/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as b, c as T, b as e, T as o } from "../TabList-P5HnizZt.js";
1
+ import { a as b, c as T, b as e, T as o } from "../TabList-BBmBumm6.js";
2
2
  export {
3
3
  b as Tab,
4
4
  T as TabList,
package/tag/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Tag-D32MGLjS.cjs");exports.Tag=e.Tag;exports.TagGroup=e.TagGroup;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Tag-BL-_PONN.cjs");exports.Tag=e.Tag;exports.TagGroup=e.TagGroup;
package/tag/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { T as r, a as T } from "../Tag-D2vh0KRD.js";
1
+ import { T as r, a as T } from "../Tag-DX1X_NZE.js";
2
2
  export {
3
3
  r as Tag,
4
4
  T as TagGroup
package/text/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Text-CkhZTTV5.cjs");exports.Text=e.Text;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Text-D5OSv6Uv.cjs");exports.Text=e.Text;
package/text/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { T as r } from "../Text-BQe1I4-r.js";
1
+ import { T as r } from "../Text-BBFWBNAH.js";
2
2
  export {
3
3
  r as Text
4
4
  };
@@ -1,5 +1,6 @@
1
1
  import { TextFieldBaseProps } from './TextFieldBase';
2
2
  import { TextAreaProps as AriaTextAreaProps } from 'react-aria-components';
3
+ import { Complement } from '../utils/types';
3
4
  import * as React from 'react';
4
- export type TextAreaProps = Omit<TextFieldBaseProps, 'type' | 'pattern'> & AriaTextAreaProps;
5
- export declare const TextArea: React.ForwardRefExoticComponent<Omit<TextFieldBaseProps, "type" | "pattern"> & AriaTextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
5
+ export type TextAreaProps = Omit<TextFieldBaseProps, 'type' | 'pattern'> & Complement<TextFieldBaseProps, AriaTextAreaProps>;
6
+ export declare const TextArea: React.ForwardRefExoticComponent<Omit<TextFieldBaseProps, "type" | "pattern"> & Complement<TextFieldBaseProps, AriaTextAreaProps> & React.RefAttributes<HTMLTextAreaElement>>;
@@ -1,5 +1,6 @@
1
1
  import { TextFieldBaseProps } from './TextFieldBase';
2
2
  import { InputProps } from './Input';
3
+ import { Complement } from '../utils/types';
3
4
  import * as React from 'react';
4
- export type TextFieldProps = TextFieldBaseProps & Omit<InputProps, 'size'>;
5
- export declare const TextField: React.ForwardRefExoticComponent<TextFieldBaseProps & Omit<InputProps, "size"> & React.RefAttributes<HTMLInputElement>>;
5
+ export type TextFieldProps = TextFieldBaseProps & Complement<TextFieldBaseProps, InputProps>;
6
+ export declare const TextField: React.ForwardRefExoticComponent<TextFieldBaseProps & Complement<TextFieldBaseProps, InputProps> & React.RefAttributes<HTMLInputElement>>;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../TextArea-B5TsyJxa.cjs");exports.Input=e.Input;exports.TextArea=e.TextArea;exports.TextField=e.TextField;exports.TextFieldBase=e.TextFieldBase;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../TextArea-Bjf8CBp0.cjs");exports.Input=e.Input;exports.TextArea=e.TextArea;exports.TextField=e.TextField;exports.TextFieldBase=e.TextFieldBase;
@@ -1,4 +1,4 @@
1
- import { I as s, b as t, a as x, T } from "../TextArea-Cado2arG.js";
1
+ import { I as s, b as t, a as x, T } from "../TextArea-CJPBvogq.js";
2
2
  export {
3
3
  s as Input,
4
4
  t as TextArea,
package/toast/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../Toast-Cs-Uvf1p.cjs");exports.GlobalToastRegion=o.GlobalToastRegion;exports.Toast=o.Toast;exports.ToastProvider=o.ToastProvider;exports.ToastRegion=o.ToastRegion;exports.toastQueue=o.toastQueue;exports.useToastState=o.useToastState;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../Toast-DUZ5jfG1.cjs");exports.GlobalToastRegion=o.GlobalToastRegion;exports.Toast=o.Toast;exports.ToastProvider=o.ToastProvider;exports.ToastRegion=o.ToastRegion;exports.toastQueue=o.toastQueue;exports.useToastState=o.useToastState;
package/toast/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { G as o, b as t, T as e, a as T, t as r, u } from "../Toast-CgXRE33Y.js";
1
+ import { G as o, b as t, T as e, a as T, t as r, u } from "../Toast-B99bLWnh.js";
2
2
  export {
3
3
  o as GlobalToastRegion,
4
4
  t as Toast,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../ToggleButtonGroup-CiX2eXB8.cjs");exports.ToggleButton=o.ToggleButton;exports.ToggleButtonGroup=o.ToggleButtonGroup;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../ToggleButtonGroup-dnvnzkaD.cjs");exports.ToggleButton=o.ToggleButton;exports.ToggleButtonGroup=o.ToggleButtonGroup;
@@ -1,4 +1,4 @@
1
- import { T as g, a } from "../ToggleButtonGroup-SKGgfFs4.js";
1
+ import { T as g, a } from "../ToggleButtonGroup-CFRutAZ4.js";
2
2
  export {
3
3
  g as ToggleButton,
4
4
  a as ToggleButtonGroup
package/tooltip/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../Tooltip-BrupFzaI.cjs");exports.Tooltip=o.Tooltip;exports.TooltipTrigger=o.TooltipTrigger;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../Tooltip-D-ATlbIM.cjs");exports.Tooltip=o.Tooltip;exports.TooltipTrigger=o.TooltipTrigger;
package/tooltip/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { T, a } from "../Tooltip-txk48Qof.js";
1
+ import { T, a } from "../Tooltip-CUdmOznK.js";
2
2
  export {
3
3
  T as Tooltip,
4
4
  a as TooltipTrigger
@@ -1 +1 @@
1
- "use strict";const d=require("./mergeProps-Du5A8xi8.cjs"),C=require("./filterDOMProps-RRlKPKX0.cjs"),D=require("./usePress-Dj3t18Pf.cjs"),F=require("./useFocusable-DhdAtEw8.cjs");function T(e,t){let{elementType:r="button",isDisabled:a,onPress:i,onPressStart:c,onPressEnd:l,onPressUp:f,onPressChange:u,preventFocusOnPress:b,allowFocusWhenDisabled:P,onClick:$,href:m,target:p,rel:h,type:o="button"}=e,s;r==="button"?s={type:o,disabled:a,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:s={role:"button",href:r==="a"&&!a?m:void 0,target:r==="a"?p:void 0,type:r==="input"?o:void 0,disabled:r==="input"?a:void 0,"aria-disabled":!a||r==="input"?void 0:a,rel:r==="a"?h:void 0};let{pressProps:x,isPressed:g}=D.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:c,onPressEnd:l,onPressChange:u,onPress:i,onPressUp:f,onClick:$,isDisabled:a,preventFocusOnPress:b,ref:t}),{focusableProps:n}=F.$f645667febf57a63$export$4c014de7c8940b4c(e,t);P&&(n.tabIndex=a?-1:n.tabIndex);let y=d.$3ef42575df84b30b$export$9d1611c77c2fe928(n,x,C.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0}));return{isPressed:g,buttonProps:d.$3ef42575df84b30b$export$9d1611c77c2fe928(s,y,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}exports.$701a24aa0da5b062$export$ea18c227d4417cc3=T;
1
+ "use strict";const d=require("./mergeProps-Du5A8xi8.cjs"),C=require("./filterDOMProps-RRlKPKX0.cjs"),D=require("./usePress-DmU79HEg.cjs"),F=require("./useFocusable-M4se1KJt.cjs");function T(e,t){let{elementType:r="button",isDisabled:a,onPress:i,onPressStart:c,onPressEnd:l,onPressUp:f,onPressChange:u,preventFocusOnPress:b,allowFocusWhenDisabled:P,onClick:$,href:m,target:p,rel:h,type:o="button"}=e,s;r==="button"?s={type:o,disabled:a,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:s={role:"button",href:r==="a"&&!a?m:void 0,target:r==="a"?p:void 0,type:r==="input"?o:void 0,disabled:r==="input"?a:void 0,"aria-disabled":!a||r==="input"?void 0:a,rel:r==="a"?h:void 0};let{pressProps:x,isPressed:g}=D.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:c,onPressEnd:l,onPressChange:u,onPress:i,onPressUp:f,onClick:$,isDisabled:a,preventFocusOnPress:b,ref:t}),{focusableProps:n}=F.$f645667febf57a63$export$4c014de7c8940b4c(e,t);P&&(n.tabIndex=a?-1:n.tabIndex);let y=d.$3ef42575df84b30b$export$9d1611c77c2fe928(n,x,C.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0}));return{isPressed:g,buttonProps:d.$3ef42575df84b30b$export$9d1611c77c2fe928(s,y,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}exports.$701a24aa0da5b062$export$ea18c227d4417cc3=T;
@@ -1,7 +1,7 @@
1
1
  import { a as d } from "./mergeProps-Ct8m5-xW.js";
2
2
  import { $ as C } from "./filterDOMProps-wsa9OcNI.js";
3
- import { b as T } from "./usePress-4yZ5a87p.js";
4
- import { a as v } from "./useFocusable-CCh54GIw.js";
3
+ import { b as T } from "./usePress-BqQIhkNY.js";
4
+ import { a as v } from "./useFocusable-BJj-Bkig.js";
5
5
  function O(e, t) {
6
6
  let { elementType: a = "button", isDisabled: r, onPress: i, onPressStart: f, onPressEnd: l, onPressUp: c, onPressChange: u, preventFocusOnPress: b, allowFocusWhenDisabled: P, onClick: m, href: $, target: p, rel: h, type: o = "button" } = e, s;
7
7
  a === "button" ? s = {