@midas-ds/components 10.1.1 → 10.2.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 (373) hide show
  1. package/AccordionItem-DZT76sWu.js +320 -0
  2. package/AccordionItem-Z_c9MpAM.cjs +1 -0
  3. package/BadgeContainer-D3RtqcPF.js +37 -0
  4. package/BadgeContainer-DeUgqGqb.cjs +1 -0
  5. package/Breadcrumbs-CmZXtTiS.js +250 -0
  6. package/Breadcrumbs-Cx09jwZZ.cjs +1 -0
  7. package/Button-CbFRzRrF.js +38 -0
  8. package/Button-DnhqHU01.cjs +1 -0
  9. package/Button-ZOQy9Ivu.js +78 -0
  10. package/Button-iSiWjocA.cjs +1 -0
  11. package/Button.module-CMMhIrkn.js +14 -0
  12. package/Button.module-DO5s9hOk.cjs +1 -0
  13. package/ButtonGroup-DUqW5dzM.cjs +1 -0
  14. package/ButtonGroup-DvVvear6.js +22 -0
  15. package/CHANGELOG.md +48 -0
  16. package/Card-C0BFW3wJ.cjs +1 -0
  17. package/Card-CaKKKv9k.js +131 -0
  18. package/CharacterCounter-CPGdboVJ.js +22 -0
  19. package/CharacterCounter-CrY8QRuY.cjs +1 -0
  20. package/Checkbox-CvFsn_FL.js +380 -0
  21. package/Checkbox-DSxGAJX2.cjs +1 -0
  22. package/CheckboxGroup-Bk9DPq4I.cjs +1 -0
  23. package/CheckboxGroup-Dij9zKlF.js +54 -0
  24. package/Collection-C5ONNBqd.js +576 -0
  25. package/Collection-Csx3L9gh.cjs +1 -0
  26. package/ColorSchemeSwitch-CbAWIJCg.js +106 -0
  27. package/ColorSchemeSwitch-JRrCyYVv.cjs +16 -0
  28. package/ComboBox-BCaqPEIH.js +1375 -0
  29. package/ComboBox-gveQKHU3.cjs +1 -0
  30. package/DateField-CAQlzuDD.js +46 -0
  31. package/DateField-deVVFwKA.cjs +1 -0
  32. package/DateInputDivider-DnUxETEC.cjs +1 -0
  33. package/DateInputDivider-Dx8n1Lxp.js +2908 -0
  34. package/DateRangePicker-BmBvwqo6.js +881 -0
  35. package/DateRangePicker-BzfitoK0.cjs +6 -0
  36. package/Dialog-Bd5hK360.cjs +1 -0
  37. package/Dialog-Bxx8cBEq.js +208 -0
  38. package/Dialog-CYxThuMl.js +1609 -0
  39. package/Dialog-CwTEAujZ.cjs +1 -0
  40. package/DragAndDrop-CSwmPhxC.js +60 -0
  41. package/DragAndDrop-HvycSrKY.cjs +1 -0
  42. package/Dropdown-CaGon9OR.cjs +6 -0
  43. package/Dropdown-nkjzsVYX.js +84 -0
  44. package/FieldError-BZw8UzBk.cjs +1 -0
  45. package/FieldError-CZikNDxX.js +28 -0
  46. package/FieldError-DqdfJ3fs.cjs +1 -0
  47. package/FieldError-Dv3bBEjh.js +23 -0
  48. package/FileUpload-DYRZ0M9F.cjs +2 -0
  49. package/FileUpload-ULwcYDxs.js +2372 -0
  50. package/FocusScope-DwIqdYpQ.js +625 -0
  51. package/FocusScope-NaPbvuuS.cjs +1 -0
  52. package/Form-BuOomA4T.cjs +1 -0
  53. package/Form-CXcEMuBf.js +5 -0
  54. package/Grid--OhtgCo6.js +27 -0
  55. package/Grid-DVQtOcu9.cjs +1 -0
  56. package/GridItem-DlbSdRmB.js +246 -0
  57. package/GridItem-XgHmZWXY.cjs +1 -0
  58. package/Group-CeSsSQVC.js +44 -0
  59. package/Group-CgiqQHH1.cjs +1 -0
  60. package/Heading-BY5-QN4S.js +46 -0
  61. package/Heading-DoJAtYZf.cjs +1 -0
  62. package/Hidden-B5ir3Lei.js +34 -0
  63. package/Hidden-BxRZGdEW.cjs +1 -0
  64. package/InfoBanner-BS-dAfzO.cjs +1 -0
  65. package/InfoBanner-CVIBFSWx.js +82 -0
  66. package/Input-D8Ku_FQz.js +41 -0
  67. package/Input-DKSAYvsw.cjs +1 -0
  68. package/Label-C9ivwkAd.js +21 -0
  69. package/Label-CUV21CAv.cjs +1 -0
  70. package/Label-DkDOsmUF.js +16 -0
  71. package/Label-IMWAyoKb.cjs +1 -0
  72. package/Layout-BWeHHnqU.cjs +16 -0
  73. package/Layout-CCt_2L1k.js +468 -0
  74. package/Link-B-nus-FT.js +71 -0
  75. package/Link-DsnCtNeI.cjs +6 -0
  76. package/Link-SHMbeyIP.cjs +1 -0
  77. package/Link-uFowN4qv.js +59 -0
  78. package/LinkButton-CuBilDML.js +69 -0
  79. package/LinkButton-CymMrcGL.cjs +6 -0
  80. package/ListBox-CDOsQChA.cjs +1 -0
  81. package/ListBox-DOi_y_Lt.js +530 -0
  82. package/ListBoxButton-CFeNhJhr.cjs +1 -0
  83. package/ListBoxButton-O6zN3P4W.js +15 -0
  84. package/ListBoxSection-C1aLKL9p.js +1058 -0
  85. package/ListBoxSection-DGCP6xpf.cjs +1 -0
  86. package/ListKeyboardDelegate-BqMETvPv.cjs +1 -0
  87. package/ListKeyboardDelegate-DNOzQ8nc.js +158 -0
  88. package/LiveAnnouncer-B6177m92.js +51 -0
  89. package/LiveAnnouncer-CwEWPU8b.cjs +1 -0
  90. package/LocalizedStringFormatter-C0C54hjf.cjs +1 -0
  91. package/LocalizedStringFormatter-D-4Qyql0.js +77 -0
  92. package/Logo-BIrOEINM.js +133 -0
  93. package/Logo-DT2_2O43.cjs +1 -0
  94. package/NumberFormatter-DewVDY5w.cjs +1 -0
  95. package/NumberFormatter-DgOUVrge.js +119 -0
  96. package/OverlayArrow-D75k-EMl.cjs +1 -0
  97. package/OverlayArrow-DorA4Rbr.js +506 -0
  98. package/PressResponder-C06O3Z5P.cjs +1 -0
  99. package/PressResponder-CVEg5kND.js +33 -0
  100. package/ProgressBar-Bkw9zavs.cjs +1 -0
  101. package/ProgressBar-CEX2WNoW.js +77 -0
  102. package/ProgressBar-Dqh3ftSP.cjs +1 -0
  103. package/ProgressBar-gmAzSsrz.js +53 -0
  104. package/RSPContexts-BW2SEIqe.js +11 -0
  105. package/RSPContexts-D8hmBfGm.cjs +1 -0
  106. package/Radio-CDKrvQe4.cjs +1 -0
  107. package/Radio-_ukSkxPT.js +311 -0
  108. package/RangeCalendar-cbCKBPZv.cjs +11 -0
  109. package/RangeCalendar-uXwoBL-O.js +1685 -0
  110. package/SearchField-6yBGiojX.cjs +6 -0
  111. package/SearchField-DYl2uo7o.js +362 -0
  112. package/Select-CpHjd1tp.cjs +1 -0
  113. package/Select-PvCqY7Lp.js +646 -0
  114. package/SelectionManager-6H88Cv6B.js +1033 -0
  115. package/SelectionManager-C5NGBzvz.cjs +1 -0
  116. package/Separator-LYnFqh4L.js +60 -0
  117. package/Separator-nPra6kD-.cjs +1 -0
  118. package/Skeleton-BAwbfKBW.cjs +1 -0
  119. package/Skeleton-BePDRmrO.js +40 -0
  120. package/Spinner-D31SXm-U.js +41 -0
  121. package/Spinner-DAJtfxqJ.cjs +6 -0
  122. package/Table-B_N7wUmA.js +2451 -0
  123. package/Table-D9vNc_y-.cjs +16 -0
  124. package/Tabs-Ct6D83aR.js +404 -0
  125. package/Tabs-Dtcl2oK2.cjs +1 -0
  126. package/Tag-CVFkzg3s.cjs +1 -0
  127. package/Tag-g6HN-YCv.js +748 -0
  128. package/Text-3MNwRMpI.cjs +1 -0
  129. package/Text-B2K-BJKQ.cjs +1 -0
  130. package/Text-BN-g1iWi.js +32 -0
  131. package/Text-B_H68Tvq.js +15 -0
  132. package/TextArea-DSiQ578a.js +206 -0
  133. package/TextArea-cVyGBRbL.cjs +1 -0
  134. package/TextField-B70CL2qz.cjs +1 -0
  135. package/TextField-DBaRuNj7.js +119 -0
  136. package/TextField.module-BcpPBWnD.js +13 -0
  137. package/TextField.module-Dw5Rtn9y.cjs +1 -0
  138. package/Toast-CjpldAI8.js +988 -0
  139. package/Toast-DrkOGy4d.cjs +1 -0
  140. package/ToggleButtonGroup-BuU_6dYe.cjs +1 -0
  141. package/ToggleButtonGroup-Ceh9_yBM.js +210 -0
  142. package/Tooltip-BAIjaYax.js +283 -0
  143. package/Tooltip-CiWg4zIC.cjs +1 -0
  144. package/VisuallyHidden-CtXvK_Tw.cjs +1 -0
  145. package/VisuallyHidden-D-4z1VgU.js +40 -0
  146. package/accordion/index.cjs +1 -0
  147. package/accordion/index.js +5 -0
  148. package/arrow-right-Cw48o2oW.cjs +6 -0
  149. package/arrow-right-Dg8sttFO.js +14 -0
  150. package/assets/AccordionItem.css +1 -0
  151. package/assets/BadgeContainer.css +1 -0
  152. package/assets/Breadcrumbs.css +1 -0
  153. package/assets/Button.css +1 -0
  154. package/assets/ButtonGroup.css +1 -0
  155. package/assets/Card.css +1 -0
  156. package/assets/CharacterCounter.css +1 -0
  157. package/assets/Checkbox.css +1 -0
  158. package/assets/ColorSchemeSwitch.css +1 -0
  159. package/assets/ComboBox.css +1 -0
  160. package/assets/DateField.css +1 -0
  161. package/assets/DateInputDivider.css +1 -0
  162. package/assets/DateRangePicker.css +1 -0
  163. package/assets/Dialog.css +1 -0
  164. package/assets/Dropdown.css +1 -0
  165. package/assets/FieldError.css +1 -0
  166. package/assets/FileUpload.css +1 -0
  167. package/assets/GridItem.css +1 -0
  168. package/assets/Heading.css +1 -0
  169. package/assets/InfoBanner.css +1 -0
  170. package/assets/Label.css +1 -0
  171. package/assets/Layout.css +1 -0
  172. package/assets/Link.css +1 -0
  173. package/assets/LinkButton.css +1 -0
  174. package/assets/ListBoxSection.css +1 -0
  175. package/assets/Logo.css +1 -0
  176. package/assets/ProgressBar.css +1 -0
  177. package/assets/Radio.css +1 -0
  178. package/assets/RangeCalendar.css +1 -0
  179. package/assets/SearchField.css +1 -0
  180. package/assets/Select.css +1 -0
  181. package/assets/Skeleton.css +1 -0
  182. package/assets/Spinner.css +1 -0
  183. package/assets/Table.css +1 -0
  184. package/assets/Tabs.css +1 -0
  185. package/assets/Tag.css +1 -0
  186. package/assets/Text.css +1 -0
  187. package/assets/TextField.css +1 -0
  188. package/assets/Toast.css +1 -0
  189. package/assets/ToggleButtonGroup.css +1 -0
  190. package/assets/Tooltip.css +1 -0
  191. package/badge/index.cjs +1 -0
  192. package/badge/index.js +5 -0
  193. package/breadcrumbs/index.cjs +1 -0
  194. package/breadcrumbs/index.js +4 -0
  195. package/button/index.cjs +1 -0
  196. package/button/index.js +6 -0
  197. package/calendar/CalendarHeader.d.ts +2 -1
  198. package/calendar/index.cjs +1 -0
  199. package/calendar/index.js +5 -0
  200. package/card/index.cjs +1 -0
  201. package/card/index.js +10 -0
  202. package/character-counter/index.cjs +1 -0
  203. package/character-counter/index.js +4 -0
  204. package/check-CLF6Yxza.js +11 -0
  205. package/check-Dw9c62O4.cjs +6 -0
  206. package/checkbox/index.cjs +1 -0
  207. package/checkbox/index.js +6 -0
  208. package/chevron-down-C2E7aZ3N.cjs +6 -0
  209. package/chevron-down-Cd1bkzXT.js +13 -0
  210. package/clsx-C11secjj.cjs +1 -0
  211. package/clsx-OuTLNxxd.js +16 -0
  212. package/color-scheme-switch/index.cjs +1 -0
  213. package/color-scheme-switch/index.js +4 -0
  214. package/combobox/index.cjs +1 -0
  215. package/combobox/index.js +7 -0
  216. package/common/types.d.ts +2 -0
  217. package/context-B8cn10po.js +80 -0
  218. package/context-DjwhtgxQ.cjs +1 -0
  219. package/createLucideIcon-DAY4oS-S.cjs +21 -0
  220. package/createLucideIcon-DeWljiyi.js +79 -0
  221. package/date-field/index.cjs +1 -0
  222. package/date-field/index.js +8 -0
  223. package/date-picker/index.cjs +1 -0
  224. package/date-picker/index.js +5 -0
  225. package/dropdown/index.cjs +1 -0
  226. package/dropdown/index.js +5 -0
  227. package/field-error/FieldError.d.ts +4 -1
  228. package/field-error/index.cjs +1 -0
  229. package/field-error/index.js +4 -0
  230. package/file-upload/index.cjs +1 -0
  231. package/file-upload/index.js +4 -0
  232. package/filterDOMProps-BS2lrgFA.cjs +1 -0
  233. package/filterDOMProps-D6KHYVBX.js +24 -0
  234. package/focusSafely-Bqfo_DH7.cjs +1 -0
  235. package/focusSafely-C48ucRUz.js +56 -0
  236. package/getScrollParent-DuKmPmUa.cjs +1 -0
  237. package/getScrollParent-Ru2U2LlM.js +9 -0
  238. package/grid/Grid.d.ts +15 -4
  239. package/grid/GridItem.d.ts +31 -2
  240. package/grid/index.cjs +1 -0
  241. package/grid/index.d.ts +2 -2
  242. package/grid/index.js +8 -0
  243. package/heading/index.cjs +1 -0
  244. package/heading/index.js +4 -0
  245. package/index-BSMrH_Du.js +120 -0
  246. package/index-D97L3EBk.cjs +17 -0
  247. package/index.cjs +1 -169
  248. package/index.d.ts +0 -1
  249. package/index.js +127 -29979
  250. package/inertValue-B7loUihk.js +8 -0
  251. package/inertValue-BWmZ1afe.cjs +1 -0
  252. package/info-DkzVqB8I.js +38 -0
  253. package/info-DlzSeKbc.cjs +16 -0
  254. package/info-banner/index.cjs +1 -0
  255. package/info-banner/index.js +4 -0
  256. package/label/index.cjs +1 -0
  257. package/label/index.js +4 -0
  258. package/layout/index.cjs +1 -0
  259. package/layout/index.js +8 -0
  260. package/link/index.cjs +1 -0
  261. package/link/index.js +6 -0
  262. package/link-button/index.cjs +1 -0
  263. package/link-button/index.js +6 -0
  264. package/list-box/index.cjs +1 -0
  265. package/list-box/index.js +9 -0
  266. package/logo/index.cjs +1 -0
  267. package/logo/index.js +4 -0
  268. package/modal/index.cjs +1 -0
  269. package/modal/index.js +6 -0
  270. package/number-BE8InLgI.js +6 -0
  271. package/number-E0x3H9cL.cjs +1 -0
  272. package/package.json +4 -4
  273. package/progress-bar/index.cjs +1 -0
  274. package/progress-bar/index.js +4 -0
  275. package/radio/index.cjs +1 -0
  276. package/radio/index.js +5 -0
  277. package/scrollIntoView-ClEACHUk.js +57 -0
  278. package/scrollIntoView-DRSoJp89.cjs +1 -0
  279. package/search-field/index.cjs +1 -0
  280. package/search-field/index.js +4 -0
  281. package/select/index.cjs +1 -0
  282. package/select/index.js +4 -0
  283. package/skeleton/Skeleton.d.ts +5 -0
  284. package/skeleton/index.cjs +1 -0
  285. package/skeleton/index.js +4 -0
  286. package/spinner/index.cjs +1 -0
  287. package/spinner/index.js +4 -0
  288. package/square-arrow-out-up-right-BCAO2eJs.cjs +6 -0
  289. package/square-arrow-out-up-right-BkyqV2PN.js +15 -0
  290. package/table/Table.d.ts +7 -1
  291. package/table/index.cjs +1 -0
  292. package/table/index.js +9 -0
  293. package/tabs/index.cjs +1 -0
  294. package/tabs/index.js +4 -0
  295. package/tag/index.cjs +1 -0
  296. package/tag/index.js +5 -0
  297. package/text/index.cjs +1 -0
  298. package/text/index.js +4 -0
  299. package/textfield/index.cjs +1 -0
  300. package/textfield/index.js +7 -0
  301. package/theme/index.cjs +1 -0
  302. package/theme/index.d.ts +4 -0
  303. package/{theme.js → theme/index.js} +2 -2
  304. package/theme/tokens.d.ts +10 -0
  305. package/toast/index.cjs +1 -0
  306. package/toast/index.js +9 -0
  307. package/toggle-button/index.cjs +1 -0
  308. package/toggle-button/index.js +5 -0
  309. package/tokens-p6pg1Cea.cjs +1 -0
  310. package/{tokens-C0U7hdoO.js → tokens-xp-7KMK7.js} +18 -8
  311. package/tooltip/index.cjs +1 -0
  312. package/tooltip/index.js +5 -0
  313. package/triangle-alert-C0lvfCYH.cjs +6 -0
  314. package/triangle-alert-wxyxspAl.js +21 -0
  315. package/useButton-B1Fa-6qE.cjs +1 -0
  316. package/useButton-C-Lq7CNY.js +47 -0
  317. package/useCollator-C_ozeWLo.cjs +1 -0
  318. package/useCollator-CgZcHC8N.js +11 -0
  319. package/useControlledState-D0L6S_5r.cjs +1 -0
  320. package/useControlledState-u436Wbp1.js +30 -0
  321. package/useDateFormatter-C53Uxdli.js +1571 -0
  322. package/useDateFormatter-g2maMTGH.cjs +1 -0
  323. package/useDescription-CVKhFa3c.js +32 -0
  324. package/useDescription-DmQYSEES.cjs +1 -0
  325. package/useEvent-CjkbBniY.cjs +1 -0
  326. package/useEvent-Cyd2ZL0c.js +21 -0
  327. package/useField-B1RU0GKs.cjs +1 -0
  328. package/useField-BPMAlIbU.js +35 -0
  329. package/useFilter-ChIbnALW.js +35 -0
  330. package/useFilter-CtIwF2qW.cjs +1 -0
  331. package/useFocusRing-BDGH3lpn.js +82 -0
  332. package/useFocusRing-CbImDrwF.cjs +1 -0
  333. package/useFocusable-CaedRTpB.js +74 -0
  334. package/useFocusable-CuPQ7Cm5.cjs +1 -0
  335. package/useFormValidation-ClximP89.cjs +1 -0
  336. package/useFormValidation-R8hQIjWP.js +215 -0
  337. package/useHasTabbableChild-DgphNvnk.cjs +1 -0
  338. package/useHasTabbableChild-DsD9AJwE.js +34 -0
  339. package/useHighlightSelectionDescription-BizKjvPU.cjs +1 -0
  340. package/useHighlightSelectionDescription-DFfcgbUj.js +567 -0
  341. package/useHover-_mv5J4_q.cjs +1 -0
  342. package/useHover-qRAon4nS.js +490 -0
  343. package/useLabel-DDdAJ1JO.js +23 -0
  344. package/useLabel-m_S5xkHy.cjs +1 -0
  345. package/useLabels-BLOfc6Y-.cjs +1 -0
  346. package/useLabels-BZjoZA1Z.js +17 -0
  347. package/useListState-Ca2-uZMO.cjs +1 -0
  348. package/useListState-DFQ9d-uE.js +132 -0
  349. package/useLocalizedStringFormatter-D07YB2e1.js +22 -0
  350. package/useLocalizedStringFormatter-u9SJaOwk.cjs +1 -0
  351. package/useObserveElement-BdI4zgd7.js +27 -0
  352. package/useObserveElement-BzEr5D32.cjs +1 -0
  353. package/usePress-BFa6cT9o.cjs +7 -0
  354. package/usePress-CUJ3pMOw.js +542 -0
  355. package/useSingleSelectListState-C-nB8cug.js +34 -0
  356. package/useSingleSelectListState-MGNxUTum.cjs +1 -0
  357. package/useTextField-5OZQPyOW.js +86 -0
  358. package/useTextField-CtUDWsUl.cjs +1 -0
  359. package/useToggleState-Bz5rAf4C.js +18 -0
  360. package/useToggleState-DoIkSQdj.cjs +1 -0
  361. package/useUpdateEffect-CCDx8D4X.js +13 -0
  362. package/useUpdateEffect-sk3kiVGz.cjs +1 -0
  363. package/utils-BNtZbAib.cjs +1 -0
  364. package/utils-HNTsIwux.js +308 -0
  365. package/x-CvxiAZTW.cjs +6 -0
  366. package/x-JK7i-TQC.js +14 -0
  367. package/flex/Flex.d.ts +0 -17
  368. package/flex/FlexItem.d.ts +0 -15
  369. package/flex/index.d.ts +0 -2
  370. package/index.css +0 -1
  371. package/theme.cjs +0 -1
  372. package/tokens-COoF1t17.cjs +0 -1
  373. /package/{global.css → assets/global.css} +0 -0
@@ -0,0 +1,78 @@
1
+ import { a as D, b as F, c as P, d as E } from "./utils-HNTsIwux.js";
2
+ import { $ as V } from "./ProgressBar-CEX2WNoW.js";
3
+ import { $ as v } from "./LiveAnnouncer-B6177m92.js";
4
+ import { $ as C } from "./Hidden-B5ir3Lei.js";
5
+ import { $ as H } from "./filterDOMProps-D6KHYVBX.js";
6
+ import x, { createContext as w, useRef as B, useEffect as N } from "react";
7
+ import { $ as S } from "./useButton-C-Lq7CNY.js";
8
+ import { $ as T } from "./useFocusRing-BDGH3lpn.js";
9
+ import { $ as A } from "./useHover-qRAon4nS.js";
10
+ const I = /* @__PURE__ */ new Set([
11
+ "form",
12
+ "formAction",
13
+ "formEncType",
14
+ "formMethod",
15
+ "formNoValidate",
16
+ "formTarget",
17
+ "name",
18
+ "value"
19
+ ]), K = /* @__PURE__ */ w({}), J = /* @__PURE__ */ C(function(e, n) {
20
+ [e, n] = D(e, n, K), e = L(e);
21
+ let b = e, { isPending: d } = b, { buttonProps: i, isPressed: g } = S(e, n), { focusProps: y, isFocused: s, isFocusVisible: c } = T(e), { hoverProps: h, isHovered: l } = A({
22
+ ...e,
23
+ isDisabled: e.isDisabled || d
24
+ }), $ = {
25
+ isHovered: l,
26
+ isPressed: (b.isPressed || g) && !d,
27
+ isFocused: s,
28
+ isFocusVisible: c,
29
+ isDisabled: e.isDisabled || !1,
30
+ isPending: d ?? !1
31
+ }, u = F({
32
+ ...e,
33
+ values: $,
34
+ defaultClassName: "react-aria-Button"
35
+ }), r = P(i.id), f = P(), t = i["aria-labelledby"];
36
+ d && (t ? t = `${t} ${f}` : i["aria-label"] && (t = `${r} ${f}`));
37
+ let o = B(d);
38
+ return N(() => {
39
+ let m = {
40
+ "aria-labelledby": t || r
41
+ };
42
+ !o.current && s && d ? v(m, "assertive") : o.current && s && !d && v(m, "assertive"), o.current = d;
43
+ }, [
44
+ d,
45
+ s,
46
+ t,
47
+ r
48
+ ]), /* @__PURE__ */ x.createElement("button", {
49
+ ...H(e, {
50
+ propNames: I
51
+ }),
52
+ ...E(i, y, h),
53
+ ...u,
54
+ type: i.type === "submit" && d ? "button" : i.type,
55
+ id: r,
56
+ ref: n,
57
+ "aria-labelledby": t,
58
+ slot: e.slot || void 0,
59
+ "aria-disabled": d ? "true" : i["aria-disabled"],
60
+ "data-disabled": e.isDisabled || void 0,
61
+ "data-pressed": $.isPressed || void 0,
62
+ "data-hovered": l || void 0,
63
+ "data-focused": s || void 0,
64
+ "data-pending": d || void 0,
65
+ "data-focus-visible": c || void 0
66
+ }, /* @__PURE__ */ x.createElement(V.Provider, {
67
+ value: {
68
+ id: f
69
+ }
70
+ }, u.children));
71
+ });
72
+ function L(a) {
73
+ return a.isPending && (a.onPress = void 0, a.onPressStart = void 0, a.onPressEnd = void 0, a.onPressChange = void 0, a.onPressUp = void 0, a.onKeyDown = void 0, a.onKeyUp = void 0, a.onClick = void 0, a.href = void 0), a;
74
+ }
75
+ export {
76
+ J as $,
77
+ K as a
78
+ };
@@ -0,0 +1 @@
1
+ "use strict";const r=require("react/jsx-runtime"),t=require("./Button.module-DO5s9hOk.cjs"),y=require("./Button-DnhqHU01.cjs"),d=require("./clsx-C11secjj.cjs"),B=({variant:e="primary",fullwidth:u,className:o,iconPlacement:i,size:c="large",icon:n,iconSize:l,...s})=>r.jsx(y.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,{className:d.clsx(t.ButtonStyles.button,e==="primary"&&t.ButtonStyles.primary,e==="secondary"&&t.ButtonStyles.secondary,e==="tertiary"&&t.ButtonStyles.tertiary,e==="danger"&&t.ButtonStyles.danger,e==="icon"&&t.ButtonStyles.iconBtn,u&&t.ButtonStyles.fullwidth,c==="medium"&&t.ButtonStyles.medium,i==="right"&&t.ButtonStyles.iconRight,o),...s,children:r.jsxs(r.Fragment,{children:[n&&r.jsx(n,{"aria-hidden":!0,size:l??20}),s.children]})});exports.Button=B;
@@ -0,0 +1,14 @@
1
+ import './assets/Button.css';const t = "_button_1rwlo_4", o = "_secondary_1rwlo_49", n = "_tertiary_1rwlo_72", r = "_iconBtn_1rwlo_93", _ = "_danger_1rwlo_114", i = "_iconRight_1rwlo_136", c = "_fullwidth_1rwlo_140", l = "_medium_1rwlo_144", s = "_primary_1rwlo_150", e = {
2
+ button: t,
3
+ secondary: o,
4
+ tertiary: n,
5
+ iconBtn: r,
6
+ danger: _,
7
+ iconRight: i,
8
+ fullwidth: c,
9
+ medium: l,
10
+ primary: s
11
+ };
12
+ export {
13
+ e as B
14
+ };
@@ -0,0 +1 @@
1
+ "use strict";require('./assets/Button.css');const t="_button_1rwlo_4",o="_secondary_1rwlo_49",n="_tertiary_1rwlo_72",r="_iconBtn_1rwlo_93",_="_danger_1rwlo_114",i="_iconRight_1rwlo_136",c="_fullwidth_1rwlo_140",l="_medium_1rwlo_144",s="_primary_1rwlo_150",e={button:t,secondary:o,tertiary:n,iconBtn:r,danger:_,iconRight:i,fullwidth:c,medium:l,primary:s};exports.ButtonStyles=e;
@@ -0,0 +1 @@
1
+ "use strict";require('./assets/ButtonGroup.css');const s=require("react/jsx-runtime"),n=require("./clsx-C11secjj.cjs"),e="_buttonGroup_fh6r8_4",c={buttonGroup:e},l=({children:t,className:o,"aria-label":r,...u})=>s.jsx("div",{role:"group","aria-label":r,className:n.clsx(c.buttonGroup,o),...u,children:t});exports.ButtonGroup=l;
@@ -0,0 +1,22 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { c as a } from "./clsx-OuTLNxxd.js";
3
+ import './assets/ButtonGroup.css';const n = "_buttonGroup_fh6r8_4", p = {
4
+ buttonGroup: n
5
+ }, b = ({
6
+ children: o,
7
+ className: t,
8
+ "aria-label": r,
9
+ ...u
10
+ }) => /* @__PURE__ */ s(
11
+ "div",
12
+ {
13
+ role: "group",
14
+ "aria-label": r,
15
+ className: a(p.buttonGroup, t),
16
+ ...u,
17
+ children: o
18
+ }
19
+ );
20
+ export {
21
+ b as B
22
+ };
package/CHANGELOG.md CHANGED
@@ -1,3 +1,51 @@
1
+ ## 10.2.0 (2025-06-18)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **theme:** new color tokens for skeleton ([#663](https://github.com/migrationsverket/midas/pull/663))
6
+ - **skeleton:** add prop for use on layer01 backgrounds ([#655](https://github.com/migrationsverket/midas/pull/655))
7
+ - **grid:** new grid v2 📏 ([#656](https://github.com/migrationsverket/midas/pull/656))
8
+ - **table:** add size prop ([6f3cc36071](https://github.com/migrationsverket/midas/commit/6f3cc36071))
9
+ - **calendar:** extend calendar with state for disabled ([#635](https://github.com/migrationsverket/midas/pull/635))
10
+
11
+ ### 🩹 Fixes
12
+
13
+ - css syntax errors for media queries ([d4935c1e57](https://github.com/migrationsverket/midas/commit/d4935c1e57))
14
+ - **calendar:** change text color for day button on hover ([#651](https://github.com/migrationsverket/midas/pull/651))
15
+ - **textfield:** remove `height:100%` on wrapper ([dccd5bdd09](https://github.com/migrationsverket/midas/commit/dccd5bdd09))
16
+
17
+ ### 💅 Refactors
18
+
19
+ - **field-error:** make component usable without context ([9ce07e9444](https://github.com/migrationsverket/midas/commit/9ce07e9444))
20
+
21
+ ### 📖 Documentation changes
22
+
23
+ - grid improvements ([5b0db59cd0](https://github.com/migrationsverket/midas/commit/5b0db59cd0))
24
+ - new get started pages ([fc4eb7851c](https://github.com/migrationsverket/midas/commit/fc4eb7851c))
25
+ - **table:** update docs on medium size ([c70a1ff4df](https://github.com/migrationsverket/midas/commit/c70a1ff4df))
26
+ - add release notes for 10.1.1 ([154ab05ae6](https://github.com/migrationsverket/midas/commit/154ab05ae6))
27
+
28
+ ### 🔧 Maintenance
29
+
30
+ - chunk bundle with rollup ([80e3b0c949](https://github.com/migrationsverket/midas/commit/80e3b0c949))
31
+ - format css ([9c9e48254f](https://github.com/migrationsverket/midas/commit/9c9e48254f))
32
+ - **components:** add command to watch for typescript errors ([aeebaffc55](https://github.com/migrationsverket/midas/commit/aeebaffc55))
33
+ - **search-field:** add column id type to story ([12a8b9af66](https://github.com/migrationsverket/midas/commit/12a8b9af66))
34
+ - **deps-dev:** bump brace-expansion ([4cdfd0e167](https://github.com/migrationsverket/midas/commit/4cdfd0e167))
35
+ - run storybook tests in pipeline temporary ([730680d696](https://github.com/migrationsverket/midas/commit/730680d696))
36
+
37
+ ### 🧪 Tests updated
38
+
39
+ - **table:** add chromatic modes ([7081f8adac](https://github.com/migrationsverket/midas/commit/7081f8adac))
40
+ - **table:** await queries ([7e18645ead](https://github.com/migrationsverket/midas/commit/7e18645ead))
41
+ - **table:** test medium size prop ([073b317cc8](https://github.com/migrationsverket/midas/commit/073b317cc8))
42
+ - **calendar:** bypass a11y tests on disabled stories ([d1ce956cb5](https://github.com/migrationsverket/midas/commit/d1ce956cb5))
43
+
44
+ ### 🎨 Styles
45
+
46
+ - **link-button:** change chevron icon to arrow icon ([#647](https://github.com/migrationsverket/midas/pull/647))
47
+ - **table:** adjust paddings and heights ([b84828bfd7](https://github.com/migrationsverket/midas/commit/b84828bfd7))
48
+
1
49
  ## 10.1.1 (2025-06-09)
2
50
 
3
51
  ### 🩹 Fixes
@@ -0,0 +1 @@
1
+ "use strict";require('./assets/Card.css');const a=require("react/jsx-runtime"),o=require("./clsx-C11secjj.cjs"),l=require("react"),u=require("./Heading-DoJAtYZf.cjs"),C=require("./Button-DnhqHU01.cjs"),x=require("./Link-SHMbeyIP.cjs"),_=require("./arrow-right-Cw48o2oW.cjs");function h(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(c,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return c.default=e,Object.freeze(c)}const s=h(l),m="_card_1hl11_4",A="_horizontal_1hl11_10",g="_cardLink_1hl11_15",I="_cardContent_1hl11_20",b="_cardActions_1hl11_39",j="_cardActionArea_1hl11_49",f="_cardImage_1hl11_82",k="_cardLinkIcon_1hl11_114",r={card:m,horizontal:A,cardLink:g,cardContent:I,cardActions:b,cardActionArea:j,cardImage:f,cardLinkIcon:k},i=s.createContext({horizontal:void 0,titleId:void 0}),z=({horizontal:e,className:c,children:t,...n})=>{const d=`card-title-${s.useId()}`;return a.jsx(i.Provider,{value:{horizontal:e,titleId:d},children:a.jsx("div",{...n,className:o.clsx(r.card,e&&r.horizontal,c),children:t})})},L=({children:e,...c})=>{const{horizontal:t}=s.useContext(i);return a.jsx("div",{...c,className:o.clsx(r.cardContent,t&&r.horizontal),children:e})},$=({elementType:e="h2",children:c})=>{const{horizontal:t,titleId:n}=s.useContext(i);return a.jsx(u.Heading,{level:t?5:3,elementType:e,isExpressive:t,className:o.clsx(r.cardTitle,t&&r.horizontal),id:n,children:c})},p=({children:e,...c})=>{const{horizontal:t}=s.useContext(i);return a.jsx("div",{...c,className:o.clsx(r.cardActions,t&&r.horizontal),children:e})},v=({children:e,className:c,...t})=>{const{titleId:n}=s.useContext(i);return a.jsx(C.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,{...t,"aria-labelledby":n,className:o.clsx(r.cardActionArea,c),children:e})},N=({as:e="img",className:c,...t})=>a.jsx(e,{...t,className:o.clsx(r.cardImage,c)}),q=({children:e,as:c,...t})=>{const n=c||x.$4f118338184dc1d9$export$a6c7ac8248d6e38a;return a.jsxs(n,{...t,className:o.clsx(r.cardLink,t.className),children:[e,a.jsx(_.ArrowRight,{className:r.cardLinkIcon,size:24})]})};exports.Card=z;exports.CardActionArea=v;exports.CardActions=p;exports.CardContent=L;exports.CardImage=N;exports.CardLink=q;exports.CardTitle=$;
@@ -0,0 +1,131 @@
1
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
2
+ import { c as n } from "./clsx-OuTLNxxd.js";
3
+ import * as e from "react";
4
+ import { H as m } from "./Heading-BY5-QN4S.js";
5
+ import { $ as _ } from "./Button-ZOQy9Ivu.js";
6
+ import { $ as h } from "./Link-B-nus-FT.js";
7
+ import { A as C } from "./arrow-right-Dg8sttFO.js";
8
+ import './assets/Card.css';const A = "_card_1hl11_4", I = "_horizontal_1hl11_10", p = "_cardLink_1hl11_15", u = "_cardContent_1hl11_20", x = "_cardActions_1hl11_39", f = "_cardActionArea_1hl11_49", z = "_cardImage_1hl11_82", $ = "_cardLinkIcon_1hl11_114", r = {
9
+ card: A,
10
+ horizontal: I,
11
+ cardLink: p,
12
+ cardContent: u,
13
+ cardActions: x,
14
+ cardActionArea: f,
15
+ cardImage: z,
16
+ cardLinkIcon: $
17
+ }, d = e.createContext({
18
+ horizontal: void 0,
19
+ titleId: void 0
20
+ }), y = ({
21
+ horizontal: t,
22
+ className: o,
23
+ children: a,
24
+ ...s
25
+ }) => {
26
+ const i = `card-title-${e.useId()}`;
27
+ return /* @__PURE__ */ c(d.Provider, { value: { horizontal: t, titleId: i }, children: /* @__PURE__ */ c(
28
+ "div",
29
+ {
30
+ ...s,
31
+ className: n(
32
+ r.card,
33
+ t && r.horizontal,
34
+ o
35
+ ),
36
+ children: a
37
+ }
38
+ ) });
39
+ }, H = ({
40
+ children: t,
41
+ ...o
42
+ }) => {
43
+ const { horizontal: a } = e.useContext(d);
44
+ return /* @__PURE__ */ c(
45
+ "div",
46
+ {
47
+ ...o,
48
+ className: n(r.cardContent, a && r.horizontal),
49
+ children: t
50
+ }
51
+ );
52
+ }, R = ({
53
+ elementType: t = "h2",
54
+ children: o
55
+ }) => {
56
+ const { horizontal: a, titleId: s } = e.useContext(d);
57
+ return /* @__PURE__ */ c(
58
+ m,
59
+ {
60
+ level: a ? 5 : 3,
61
+ elementType: t,
62
+ isExpressive: a,
63
+ className: n(r.cardTitle, a && r.horizontal),
64
+ id: s,
65
+ children: o
66
+ }
67
+ );
68
+ }, T = ({
69
+ children: t,
70
+ ...o
71
+ }) => {
72
+ const { horizontal: a } = e.useContext(d);
73
+ return /* @__PURE__ */ c(
74
+ "div",
75
+ {
76
+ ...o,
77
+ className: n(r.cardActions, a && r.horizontal),
78
+ children: t
79
+ }
80
+ );
81
+ }, w = ({ children: t, className: o, ...a }) => {
82
+ const { titleId: s } = e.useContext(d);
83
+ return /* @__PURE__ */ c(
84
+ _,
85
+ {
86
+ ...a,
87
+ "aria-labelledby": s,
88
+ className: n(r.cardActionArea, o),
89
+ children: t
90
+ }
91
+ );
92
+ }, E = ({
93
+ as: t = "img",
94
+ className: o,
95
+ ...a
96
+ }) => /* @__PURE__ */ c(
97
+ t,
98
+ {
99
+ ...a,
100
+ className: n(r.cardImage, o)
101
+ }
102
+ ), P = ({
103
+ children: t,
104
+ as: o,
105
+ ...a
106
+ }) => /* @__PURE__ */ l(
107
+ o || h,
108
+ {
109
+ ...a,
110
+ className: n(r.cardLink, a.className),
111
+ children: [
112
+ t,
113
+ /* @__PURE__ */ c(
114
+ C,
115
+ {
116
+ className: r.cardLinkIcon,
117
+ size: 24
118
+ }
119
+ )
120
+ ]
121
+ }
122
+ );
123
+ export {
124
+ y as C,
125
+ H as a,
126
+ R as b,
127
+ T as c,
128
+ w as d,
129
+ E as e,
130
+ P as f
131
+ };
@@ -0,0 +1,22 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import * as d from "react";
3
+ import { a as f } from "./utils-HNTsIwux.js";
4
+ import { $ as i } from "./Input-D8Ku_FQz.js";
5
+ import './assets/CharacterCounter.css';const $ = "_characterCounter_4224k_4", m = {
6
+ characterCounter: $
7
+ }, l = d.forwardRef((t, c) => {
8
+ [t] = f(t, c, i);
9
+ const { maxLength: r, value: a, isLonely: n } = t, { length: e } = (a == null ? void 0 : a.toString()) ?? "", o = r !== void 0;
10
+ return /* @__PURE__ */ s(
11
+ "span",
12
+ {
13
+ className: m.characterCounter,
14
+ "data-exceeded": o && e > r || void 0,
15
+ "data-lonely": n || void 0,
16
+ children: o ? `${e} / ${r}` : e
17
+ }
18
+ );
19
+ });
20
+ export {
21
+ l as C
22
+ };
@@ -0,0 +1 @@
1
+ "use strict";require('./assets/CharacterCounter.css');const s=require("react/jsx-runtime"),u=require("react"),i=require("./utils-BNtZbAib.cjs"),d=require("./Input-DKSAYvsw.cjs");function f(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const l=f(u),$="_characterCounter_4224k_4",b={characterCounter:$},h=l.forwardRef((e,n)=>{[e]=i.$64fa3d84918910a7$export$29f1550f4b0d4415(e,n,d.$3985021b0ad6602f$export$37fb8590cf2c088c);const{maxLength:t,value:r,isLonely:o}=e,{length:c}=(r==null?void 0:r.toString())??"",a=t!==void 0;return s.jsx("span",{className:b.characterCounter,"data-exceeded":a&&c>t||void 0,"data-lonely":o||void 0,children:a?`${c} / ${t}`:c})});exports.CharacterCounter=h;