@midas-ds/components 17.38.3 → 17.39.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 (78) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/accordion/index.js +1 -1
  3. package/aria/index.d.ts +3 -1
  4. package/aria/index.js +1 -2
  5. package/button/index.js +1 -1
  6. package/calendar/index.js +1 -1
  7. package/checkbox/index.js +1 -1
  8. package/chunks/{FeedbackStatusIcon-DX5ndhm3.js → FeedbackStatusIcon-UfooOyeI.js} +1 -1
  9. package/chunks/{accordion-DjL3rngW.js → accordion-PJZYLZCe.js} +2 -2
  10. package/chunks/aria-BikUfLIG.js +6 -0
  11. package/chunks/{button-Q51P-Ssk.js → button-Bz66bIrr.js} +2 -2
  12. package/chunks/{calendar-DyILzX_V.js → calendar-D0aiCkAv.js} +3 -3
  13. package/chunks/{checkbox-MN5mhbFU.js → checkbox-SsXhAn-g.js} +2 -2
  14. package/chunks/{clear-button-BYiazZ-1.js → clear-button-DvMuUjDR.js} +1 -1
  15. package/chunks/{color-scheme-switch-BlGoqk4H.js → color-scheme-switch-2oSS52vq.js} +4 -3
  16. package/chunks/{combobox-D2wPjTS5.js → combobox-Ccqxupn2.js} +3 -3
  17. package/chunks/{date-field-Afo_uDbQ.js → date-field-DKmbbOGo.js} +3 -3
  18. package/chunks/{date-picker-jH3-jQoL.js → date-picker-CAtF7M_p.js} +6 -6
  19. package/chunks/{file-list-BvBSJyRQ.js → file-list-Bg8-wkyR.js} +4 -4
  20. package/chunks/{file-picker-C8JWsO9f.js → file-picker-C05TDsQS.js} +1 -1
  21. package/chunks/{info-banner-CkXe0Xd8.js → info-banner-BBpsG8F_.js} +3 -3
  22. package/chunks/{label-DCpy2Iwh.js → label-C-Iks5zm.js} +3 -3
  23. package/chunks/{layout-CYcW4Dsm.js → layout-DGIzTNAu.js} +3 -3
  24. package/chunks/link-CegkRPqz.js +43 -0
  25. package/chunks/link-button-BRV_Hy7v.js +43 -0
  26. package/chunks/{list-box-YaPiKCld.js → list-box-DfpVnLLk.js} +3 -3
  27. package/chunks/{logo-CBGOnROk.js → logo-DUlLYUV2.js} +1 -1
  28. package/chunks/menu-CHZ0d9-S.js +51 -0
  29. package/chunks/{modal-BfWHExGd.js → modal-E4kV_R5n.js} +38 -38
  30. package/chunks/{progress-bar-XMAH7KIq.js → progress-bar-yFa08Xfd.js} +1 -1
  31. package/chunks/{radio-BXjMFwia.js → radio-DbIUs2iU.js} +1 -1
  32. package/chunks/{search-field-mQvQC_fC.js → search-field-D--4cgzH.js} +3 -3
  33. package/chunks/{select-B_o3hWvM.js → select-DLoIzTsv.js} +5 -5
  34. package/chunks/{spinner-V6QnHHAH.js → spinner-D3-NXLkB.js} +1 -1
  35. package/chunks/{table-BZsinvvB.js → table-DuzCUPCX.js} +2 -2
  36. package/chunks/{tag-DO8N54-r.js → tag-BpnVl9_M.js} +1 -1
  37. package/chunks/{textfield-O1kNTcwC.js → textfield-BuJeJV1g.js} +3 -3
  38. package/chunks/{time-field-Dte4G0is.js → time-field-Cr5P1aNn.js} +4 -4
  39. package/chunks/{toast-DhXnpJRF.js → toast-BgrlaMnw.js} +2 -2
  40. package/chunks/{useLocalizedStringFormatter-DU97U9ZX.js → useLocalizedStringFormatter-BFwXcMGl.js} +1 -1
  41. package/clear-button/index.js +1 -1
  42. package/color-scheme-switch/index.js +1 -1
  43. package/combobox/index.js +1 -1
  44. package/date-field/index.js +1 -1
  45. package/date-picker/index.js +1 -1
  46. package/file-list/index.js +1 -1
  47. package/file-picker/index.js +1 -1
  48. package/index.d.ts +1 -1
  49. package/index.js +53 -53
  50. package/info-banner/index.js +1 -1
  51. package/label/index.js +1 -1
  52. package/layout/index.js +1 -1
  53. package/link/Link.d.ts +2 -2
  54. package/link/index.js +3 -1
  55. package/link-button/LinkButton.d.ts +2 -2
  56. package/link-button/index.js +3 -1
  57. package/list-box/index.js +1 -1
  58. package/logo/index.js +1 -1
  59. package/menu/Menu.d.ts +3 -2
  60. package/menu/index.js +3 -1
  61. package/modal/Modal.d.ts +1 -2
  62. package/modal/index.js +3 -1
  63. package/package.json +1 -1
  64. package/progress-bar/index.js +1 -1
  65. package/radio/index.js +1 -1
  66. package/search-field/index.js +1 -1
  67. package/select/index.js +1 -1
  68. package/spinner/index.js +1 -1
  69. package/table/index.js +1 -1
  70. package/tag/index.js +1 -1
  71. package/textfield/index.js +1 -1
  72. package/time-field/index.js +1 -1
  73. package/toast/index.js +1 -1
  74. package/utils/childrenSource.d.ts +19 -0
  75. package/utils/withDisplayName.d.ts +13 -0
  76. package/chunks/link-CyjmtEZP.js +0 -43
  77. package/chunks/link-button-D6t-8zQQ.js +0 -43
  78. package/chunks/menu-DVrvuxQk.js +0 -51
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./clsx-BtGY0yFD.js";
2
- import { n as t } from "./button-Q51P-Ssk.js";
2
+ import { n as t } from "./button-Bz66bIrr.js";
3
3
  import { Children as n, forwardRef as r, isValidElement as i } from "react";
4
4
  import { Tag as a, TagGroup as o, TagGroupContext as s, TagList as c, TagListContext as l, composeRenderProps as u, useContextProps as d } from "react-aria-components";
5
5
  import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
@@ -3,10 +3,10 @@ import { t as e } from "./TextField.module-DQfRPRIT.js";
3
3
  import { t } from "./text-CtvUKU-v.js";
4
4
  import { t as n } from "./field-error-DmG_1v1a.js";
5
5
  import { t as r } from "./character-counter-IbkPoEcq.js";
6
- import { n as i, t as a } from "./label-DCpy2Iwh.js";
6
+ import { n as i, t as a } from "./label-C-Iks5zm.js";
7
7
  import { t as o } from "./clsx-BtGY0yFD.js";
8
- import { t as s } from "./useLocalizedStringFormatter-DU97U9ZX.js";
9
- import { n as c } from "./button-Q51P-Ssk.js";
8
+ import { t as s } from "./useLocalizedStringFormatter-BFwXcMGl.js";
9
+ import { n as c } from "./button-Bz66bIrr.js";
10
10
  import { forwardRef as l, useState as u } from "react";
11
11
  import { clsx as d } from "clsx";
12
12
  import { Input as f, InputContext as p, TextArea as m, TextField as h, TextFieldContext as g, useContextProps as _ } from "react-aria-components";
@@ -1,10 +1,10 @@
1
1
  import { t as e } from "./clsx-BtGY0yFD.js";
2
- import { n as t, r as n } from "./date-field-Afo_uDbQ.js";
2
+ import { n as t, r as n } from "./date-field-DKmbbOGo.js";
3
3
  import { t as r } from "./field-error-DmG_1v1a.js";
4
- import { n as i, t as a } from "./label-DCpy2Iwh.js";
4
+ import { n as i, t as a } from "./label-C-Iks5zm.js";
5
5
  import { t as o } from "./text-CtvUKU-v.js";
6
- import { t as s } from "./clear-button-BYiazZ-1.js";
7
- import { t as c } from "./useLocalizedStringFormatter-DU97U9ZX.js";
6
+ import { t as s } from "./clear-button-DvMuUjDR.js";
7
+ import { t as c } from "./useLocalizedStringFormatter-BFwXcMGl.js";
8
8
  import * as l from "react";
9
9
  import { TimeField as u, TimeFieldStateContext as d } from "react-aria-components";
10
10
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- import { n as e } from "./button-Q51P-Ssk.js";
2
+ import { n as e } from "./button-Bz66bIrr.js";
3
3
  import { t } from "./clsx-BtGY0yFD.js";
4
- import { t as n } from "./FeedbackStatusIcon-DX5ndhm3.js";
4
+ import { t as n } from "./FeedbackStatusIcon-UfooOyeI.js";
5
5
  import r from "react";
6
6
  import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
7
7
  import { X as s } from "lucide-react";
@@ -1,4 +1,4 @@
1
- import { useLocale as e } from "../aria/index.js";
1
+ import { m as e } from "./aria-BikUfLIG.js";
2
2
  import { useMemo as t } from "react";
3
3
  import { LocalizedStringDictionary as n, LocalizedStringFormatter as r } from "@internationalized/string";
4
4
  // src/utils/intl/useLocalizedStringFormatter.ts
@@ -1 +1 @@
1
- export { t as ClearButton } from "../chunks/clear-button-BYiazZ-1.js";
1
+ export { t as ClearButton } from "../chunks/clear-button-DvMuUjDR.js";
@@ -1 +1 @@
1
- export { n as ColorSchemeSwitch, t as ColorSchemeSwitchMenu } from "../chunks/color-scheme-switch-BlGoqk4H.js";
1
+ export { n as ColorSchemeSwitch, t as ColorSchemeSwitchMenu } from "../chunks/color-scheme-switch-2oSS52vq.js";
package/combobox/index.js CHANGED
@@ -1 +1 @@
1
- export { t as ComboBox } from "../chunks/combobox-D2wPjTS5.js";
1
+ export { t as ComboBox } from "../chunks/combobox-Ccqxupn2.js";
@@ -1 +1 @@
1
- export { i as DateField, n as DateInput, t as DateInputDivider, r as DateSegment } from "../chunks/date-field-Afo_uDbQ.js";
1
+ export { i as DateField, n as DateInput, t as DateInputDivider, r as DateSegment } from "../chunks/date-field-DKmbbOGo.js";
@@ -1 +1 @@
1
- export { n as DatePicker, t as DateRangePicker } from "../chunks/date-picker-jH3-jQoL.js";
1
+ export { n as DatePicker, t as DateRangePicker } from "../chunks/date-picker-CAtF7M_p.js";
@@ -1 +1 @@
1
- export { n as FileList, t as FileListItem } from "../chunks/file-list-BvBSJyRQ.js";
1
+ export { n as FileList, t as FileListItem } from "../chunks/file-list-Bg8-wkyR.js";
@@ -1 +1 @@
1
- export { t as FilePicker } from "../chunks/file-picker-C8JWsO9f.js";
1
+ export { t as FilePicker } from "../chunks/file-picker-C05TDsQS.js";
package/index.d.ts CHANGED
@@ -24,7 +24,7 @@ export * from './info-banner';
24
24
  export * from './label';
25
25
  export * from './layout';
26
26
  export * from './link';
27
- export { RouterProvider } from './link';
27
+ export { RouterProvider } from './aria';
28
28
  export * from './link-button';
29
29
  export * from './logo';
30
30
  export * from './modal';
package/index.js CHANGED
@@ -1,57 +1,57 @@
1
1
  'use client';
2
2
  "use client";
3
- import { n as e, t } from "./chunks/accordion-DjL3rngW.js";
4
- import { ButtonContext as n, Collection as r, Focusable as i, Form as a, I18nProvider as o, Pressable as s, TableLayout as c, Virtualizer as l, useLocale as u } from "./aria/index.js";
5
- import { n as d, t as f } from "./chunks/link-CyjmtEZP.js";
6
- import { t as p } from "./chunks/spinner-V6QnHHAH.js";
7
- import { t as m } from "./chunks/useLocalizedStringFormatter-DU97U9ZX.js";
8
- import { n as h, t as g } from "./chunks/button-Q51P-Ssk.js";
9
- import { t as _ } from "./chunks/heading-0P5rm7xK.js";
10
- import { n as v, t as y } from "./chunks/badge-C5Sdu_uw.js";
11
- import { n as b, t as x } from "./chunks/breadcrumbs-BwYDyKWo.js";
12
- import { n as S, t as C } from "./chunks/calendar-DyILzX_V.js";
13
- import { t as w } from "./chunks/label-DCpy2Iwh.js";
14
- import { t as T } from "./chunks/popover-C7Ain5Qz.js";
15
- import { n as E, r as D, t as O } from "./chunks/modal-BfWHExGd.js";
16
- import { t as k } from "./chunks/text-CtvUKU-v.js";
17
- import { t as A } from "./chunks/field-error-DmG_1v1a.js";
18
- import { i as j, n as M, r as N, t as P } from "./chunks/checkbox-MN5mhbFU.js";
19
- import { n as F, t as I } from "./chunks/select-B_o3hWvM.js";
20
- import { a as L, c as R, i as z, n as B, o as V, r as H, s as U, t as W } from "./chunks/list-box-YaPiKCld.js";
21
- import { n as G, r as K, t as q } from "./chunks/tag-DO8N54-r.js";
22
- import { a as J, c as Y, i as X, l as Z, n as Q, o as $, r as ee, s as te, t as ne } from "./chunks/card-CFy9gV47.js";
23
- import { t as re } from "./chunks/character-counter-IbkPoEcq.js";
24
- import { t as ie } from "./chunks/icons-a0WawN46.js";
25
- import { n as ae, t as oe } from "./chunks/toggle-button--nCm-94u.js";
26
- import { n as se, t as ce } from "./chunks/color-scheme-switch-BlGoqk4H.js";
27
- import { a as le, i as ue, n as de, o as fe, r as pe, s as me, t as he } from "./chunks/menu-DVrvuxQk.js";
28
- import { t as ge } from "./chunks/combobox-D2wPjTS5.js";
29
- import { i as _e, n as ve, r as ye, t as be } from "./chunks/date-field-Afo_uDbQ.js";
30
- import { n as xe, t as Se } from "./chunks/date-picker-jH3-jQoL.js";
31
- import { t as Ce } from "./chunks/drop-zone-CSN3p9Ci.js";
32
- import { a as we, i as Te, n as Ee, r as De, t as Oe } from "./chunks/empty-state-CnDZoO65.js";
33
- import { n as ke, t as Ae } from "./chunks/file-list-BvBSJyRQ.js";
34
- import { t as je } from "./chunks/progress-bar-XMAH7KIq.js";
35
- import { t as Me } from "./chunks/file-picker-C8JWsO9f.js";
36
- import { t as Ne } from "./chunks/file-trigger-MkxFBZEa.js";
37
- import { n as Pe, t as Fe } from "./chunks/grid-CFn_pqQX.js";
38
- import { t as Ie } from "./chunks/info-banner-CkXe0Xd8.js";
39
- import { a as Le, i as Re, n as ze, r as Be, t as Ve } from "./chunks/layout-CYcW4Dsm.js";
40
- import { n as He, t as Ue } from "./chunks/tooltip-CR1uxtPd.js";
41
- import { n as We, t as Ge } from "./chunks/logo-CBGOnROk.js";
42
- import { t as Ke } from "./chunks/clsx-BtGY0yFD.js";
43
- import { t as qe } from "./chunks/link-button-D6t-8zQQ.js";
44
- import { i as Je, n as Ye, r as Xe, t as Ze } from "./chunks/radio-BXjMFwia.js";
45
- import { t as Qe } from "./chunks/search-field-mQvQC_fC.js";
46
- import { t as $e } from "./chunks/skeleton-6y5HNJZp.js";
47
- import { t as et } from "./chunks/stack-DKjRicm1.js";
48
- import { a as tt, i as nt, n as rt, o as it, r as at, t as ot } from "./chunks/table-BZsinvvB.js";
49
- import { i as st, n as ct, r as lt, t as ut } from "./chunks/tabs-ZCpVhr_r.js";
50
- import { i as dt, n as ft, r as pt, t as mt } from "./chunks/textfield-O1kNTcwC.js";
51
- import { t as ht } from "./chunks/time-field-Dte4G0is.js";
52
- import { a as gt, i as _t, n as vt, o as yt, r as bt, t as xt } from "./chunks/toast-DhXnpJRF.js";
3
+ import { n as e, t } from "./chunks/accordion-PJZYLZCe.js";
4
+ import { a as n, c as r, d as i, f as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h } from "./chunks/aria-BikUfLIG.js";
5
+ import { t as g } from "./chunks/useLocalizedStringFormatter-BFwXcMGl.js";
6
+ import { t as _ } from "./chunks/spinner-D3-NXLkB.js";
7
+ import { t as v } from "./chunks/clsx-BtGY0yFD.js";
8
+ import { n as y, t as b } from "./chunks/button-Bz66bIrr.js";
9
+ import { t as x } from "./chunks/heading-0P5rm7xK.js";
10
+ import { n as S, t as C } from "./chunks/badge-C5Sdu_uw.js";
11
+ import { n as w, t as T } from "./chunks/breadcrumbs-BwYDyKWo.js";
12
+ import { n as E, t as D } from "./chunks/calendar-D0aiCkAv.js";
13
+ import { t as O } from "./chunks/label-C-Iks5zm.js";
14
+ import { t as k } from "./chunks/popover-C7Ain5Qz.js";
15
+ import { n as A, t as j } from "./chunks/modal-E4kV_R5n.js";
16
+ import { t as M } from "./chunks/text-CtvUKU-v.js";
17
+ import { t as N } from "./chunks/field-error-DmG_1v1a.js";
18
+ import { i as P, n as F, r as I, t as L } from "./chunks/checkbox-SsXhAn-g.js";
19
+ import { n as R, t as z } from "./chunks/select-DLoIzTsv.js";
20
+ import { a as B, c as V, i as H, n as U, o as W, r as G, s as K, t as q } from "./chunks/list-box-DfpVnLLk.js";
21
+ import { n as J, r as Y, t as X } from "./chunks/tag-BpnVl9_M.js";
22
+ import { a as Z, c as Q, i as $, l as ee, n as te, o as ne, r as re, s as ie, t as ae } from "./chunks/card-CFy9gV47.js";
23
+ import { t as oe } from "./chunks/character-counter-IbkPoEcq.js";
24
+ import { t as se } from "./chunks/icons-a0WawN46.js";
25
+ import { n as ce, t as le } from "./chunks/toggle-button--nCm-94u.js";
26
+ import { n as ue, t as de } from "./chunks/color-scheme-switch-2oSS52vq.js";
27
+ import { a as fe, i as pe, n as me, o as he, r as ge, t as _e } from "./chunks/menu-CHZ0d9-S.js";
28
+ import { t as ve } from "./chunks/combobox-Ccqxupn2.js";
29
+ import { i as ye, n as be, r as xe, t as Se } from "./chunks/date-field-DKmbbOGo.js";
30
+ import { n as Ce, t as we } from "./chunks/date-picker-CAtF7M_p.js";
31
+ import { t as Te } from "./chunks/drop-zone-CSN3p9Ci.js";
32
+ import { a as Ee, i as De, n as Oe, r as ke, t as Ae } from "./chunks/empty-state-CnDZoO65.js";
33
+ import { n as je, t as Me } from "./chunks/file-list-Bg8-wkyR.js";
34
+ import { t as Ne } from "./chunks/progress-bar-yFa08Xfd.js";
35
+ import { t as Pe } from "./chunks/file-picker-C05TDsQS.js";
36
+ import { t as Fe } from "./chunks/file-trigger-MkxFBZEa.js";
37
+ import { n as Ie, t as Le } from "./chunks/grid-CFn_pqQX.js";
38
+ import { t as Re } from "./chunks/info-banner-BBpsG8F_.js";
39
+ import { a as ze, i as Be, n as Ve, r as He, t as Ue } from "./chunks/layout-DGIzTNAu.js";
40
+ import { n as We, t as Ge } from "./chunks/tooltip-CR1uxtPd.js";
41
+ import { n as Ke, t as qe } from "./chunks/logo-DUlLYUV2.js";
42
+ import { t as Je } from "./chunks/link-CegkRPqz.js";
43
+ import { t as Ye } from "./chunks/link-button-BRV_Hy7v.js";
44
+ import { i as Xe, n as Ze, r as Qe, t as $e } from "./chunks/radio-DbIUs2iU.js";
45
+ import { t as et } from "./chunks/search-field-D--4cgzH.js";
46
+ import { t as tt } from "./chunks/skeleton-6y5HNJZp.js";
47
+ import { t as nt } from "./chunks/stack-DKjRicm1.js";
48
+ import { a as rt, i as it, n as at, o as ot, r as st, t as ct } from "./chunks/table-DuzCUPCX.js";
49
+ import { i as lt, n as ut, r as dt, t as ft } from "./chunks/tabs-ZCpVhr_r.js";
50
+ import { i as pt, n as mt, r as ht, t as gt } from "./chunks/textfield-BuJeJV1g.js";
51
+ import { t as _t } from "./chunks/time-field-Cr5P1aNn.js";
52
+ import { a as vt, i as yt, n as bt, o as xt, r as St, t as Ct } from "./chunks/toast-BgrlaMnw.js";
53
53
  // src/version.ts
54
- var St = {
54
+ var wt = {
55
55
  name: "@midas-ds/components",
56
56
  author: { name: "Migrationsverket" },
57
57
  keywords: [
@@ -63,7 +63,7 @@ var St = {
63
63
  description: "Midas Components",
64
64
  homepage: "https://designsystem.migrationsverket.se/",
65
65
  license: "CC0-1.0",
66
- version: "17.38.3",
66
+ version: "17.39.0",
67
67
  module: "./index.js",
68
68
  type: "module",
69
69
  main: "./index.js",
@@ -96,4 +96,4 @@ var St = {
96
96
  "react-stately": "3.50.0"
97
97
  }
98
98
  }.version;
99
- export { e as Accordion, t as AccordionItem, v as Badge, y as BadgeContainer, x as Breadcrumb, b as Breadcrumbs, h as Button, n as ButtonContext, g as ButtonGroup, S as Calendar, ee as Card, X as CardActionArea, J as CardActions, Q as CardBody, $ as CardContent, ne as CardHeader, te as CardImage, Y as CardLink, Z as CardTitle, ot as Cell, re as CharacterCounter, M as Checkbox, N as CheckboxButton, j as CheckboxField, P as CheckboxGroup, r as Collection, se as ColorSchemeSwitch, ce as ColorSchemeSwitchMenu, rt as Column, ge as ComboBox, ie as ContrastFilled, _e as DateField, ve as DateInput, be as DateInputDivider, xe as DatePicker, Se as DateRangePicker, ye as DateSegment, O as DialogTrigger, Ce as DropZone, Oe as EmptyState, we as EmptyStateActions, Te as EmptyStateHeading, De as EmptyStateText, Ee as EmptyStateVisual, A as FieldError, ke as FileList, Ae as FileListItem, Me as FilePicker, Ne as FileTrigger, i as Focusable, a as Form, xt as GlobalToastRegion, Pe as Grid, Fe as GridItem, Be as Header, _ as Heading, o as I18nProvider, Ie as InfoBanner, pt as Input, w as Label, Ve as Layout, f as Link, qe as LinkButton, R as ListBox, U as ListBoxButton, W as ListBoxEmptyState, B as ListBoxHeader, V as ListBoxItem, H as ListBoxLoadMoreItem, L as ListBoxPopover, z as ListBoxSection, Ge as Logo, We as LogoContext, fe as Menu, le as MenuHeader, ue as MenuItem, pe as MenuPopover, de as MenuSection, me as MenuTrigger, E as Modal, D as ModalOverlay, ze as Navbar, T as Popover, s as Pressable, je as ProgressBar, Ye as Radio, Xe as RadioButton, Je as RadioField, Ze as RadioGroup, C as RangeCalendar, d as RouterProvider, at as Row, Qe as SearchField, I as Select, F as SelectTrigger, he as Separator, Re as Sidebar, Le as SidebarLink, $e as Skeleton, p as Spinner, et as Stack, lt as Tab, ut as TabList, ct as TabPanel, nt as Table, tt as TableBody, it as TableHeader, c as TableLayout, st as Tabs, K as Tag, q as TagGroup, G as TagList, k as Text, mt as TextArea, ft as TextField, dt as TextFieldBase, ht as TimeField, vt as Toast, bt as ToastProvider, _t as ToastRegion, ae as ToggleButton, oe as ToggleButtonGroup, Ue as Tooltip, He as TooltipTrigger, St as VERSION, l as Virtualizer, Ke as clsx, gt as toastQueue, u as useLocale, m as useLocalizedStringFormatter, yt as useToastState };
99
+ export { e as Accordion, t as AccordionItem, S as Badge, C as BadgeContainer, T as Breadcrumb, w as Breadcrumbs, y as Button, m as ButtonContext, b as ButtonGroup, E as Calendar, re as Card, $ as CardActionArea, Z as CardActions, te as CardBody, ne as CardContent, ae as CardHeader, ie as CardImage, Q as CardLink, ee as CardTitle, ct as Cell, oe as CharacterCounter, F as Checkbox, I as CheckboxButton, P as CheckboxField, L as CheckboxGroup, l as Collection, ue as ColorSchemeSwitch, de as ColorSchemeSwitchMenu, at as Column, ve as ComboBox, se as ContrastFilled, ye as DateField, be as DateInput, Se as DateInputDivider, Ce as DatePicker, we as DateRangePicker, xe as DateSegment, f as DialogTrigger, Te as DropZone, Ae as EmptyState, Ee as EmptyStateActions, De as EmptyStateHeading, ke as EmptyStateText, Oe as EmptyStateVisual, N as FieldError, je as FileList, Me as FileListItem, Pe as FilePicker, Fe as FileTrigger, o as Focusable, n as Form, Ct as GlobalToastRegion, Ie as Grid, Le as GridItem, He as Header, x as Heading, u as I18nProvider, Re as InfoBanner, ht as Input, p as Keyboard, O as Label, Ue as Layout, Je as Link, Ye as LinkButton, V as ListBox, K as ListBoxButton, q as ListBoxEmptyState, U as ListBoxHeader, W as ListBoxItem, G as ListBoxLoadMoreItem, B as ListBoxPopover, H as ListBoxSection, qe as Logo, Ke as LogoContext, he as Menu, fe as MenuHeader, pe as MenuItem, ge as MenuPopover, me as MenuSection, r as MenuTrigger, j as Modal, A as ModalOverlay, Ve as Navbar, k as Popover, s as Pressable, Ne as ProgressBar, Ze as Radio, Qe as RadioButton, Xe as RadioField, $e as RadioGroup, D as RangeCalendar, h as RouterProvider, st as Row, et as SearchField, z as Select, R as SelectTrigger, _e as Separator, Be as Sidebar, ze as SidebarLink, tt as Skeleton, _ as Spinner, nt as Stack, i as SubmenuTrigger, dt as Tab, ft as TabList, ut as TabPanel, it as Table, rt as TableBody, ot as TableHeader, a as TableLayout, lt as Tabs, Y as Tag, X as TagGroup, J as TagList, M as Text, gt as TextArea, mt as TextField, pt as TextFieldBase, _t as TimeField, bt as Toast, St as ToastProvider, yt as ToastRegion, ce as ToggleButton, le as ToggleButtonGroup, Ge as Tooltip, We as TooltipTrigger, wt as VERSION, d as Virtualizer, v as clsx, vt as toastQueue, c as useLocale, g as useLocalizedStringFormatter, xt as useToastState };
@@ -1 +1 @@
1
- export { t as InfoBanner } from "../chunks/info-banner-CkXe0Xd8.js";
1
+ export { t as InfoBanner } from "../chunks/info-banner-BBpsG8F_.js";
package/label/index.js CHANGED
@@ -1 +1 @@
1
- export { t as Label } from "../chunks/label-DCpy2Iwh.js";
1
+ export { t as Label } from "../chunks/label-C-Iks5zm.js";
package/layout/index.js CHANGED
@@ -1 +1 @@
1
- export { r as Header, t as Layout, n as Navbar, i as Sidebar, a as SidebarLink } from "../chunks/layout-CYcW4Dsm.js";
1
+ export { r as Header, t as Layout, n as Navbar, i as Sidebar, a as SidebarLink } from "../chunks/layout-DGIzTNAu.js";
package/link/Link.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Link as AriaLink, RouterProvider } from 'react-aria-components';
1
+ import { Link as AriaLink } from 'react-aria-components';
2
2
  import { LucideIcon } from 'lucide-react';
3
3
  export interface LinkComponentProps<C extends React.ElementType> {
4
4
  children: React.ReactNode;
@@ -16,4 +16,4 @@ export interface LinkComponentProps<C extends React.ElementType> {
16
16
  }
17
17
  export type LinkProps<C extends React.ElementType> = LinkComponentProps<C> & Omit<React.ComponentProps<C>, keyof LinkComponentProps<C>>;
18
18
  export declare const Link: <C extends React.ElementType = typeof AriaLink>({ children, standalone, target, stretched, download, icon: customIcon, className, as, ...rest }: LinkProps<C>) => import('react').JSX.Element;
19
- export { RouterProvider };
19
+ export { RouterProvider } from '../aria';
package/link/index.js CHANGED
@@ -1 +1,3 @@
1
- export { t as Link, n as RouterProvider } from "../chunks/link-CyjmtEZP.js";
1
+ import { u as e } from "../chunks/aria-BikUfLIG.js";
2
+ import { t } from "../chunks/link-CegkRPqz.js";
3
+ export { t as Link, e as RouterProvider };
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { Link as AriaLink, RouterProvider } from 'react-aria-components';
2
+ import { Link as AriaLink } from 'react-aria-components';
3
3
  import { LucideIcon } from 'lucide-react';
4
4
  import { Size } from '../common/types';
5
5
  export interface LinkButtonComponentProps<C extends React.ElementType> {
@@ -38,4 +38,4 @@ export type LinkButtonProps<C extends React.ElementType> = LinkButtonComponentPr
38
38
  * A link to be used when a user expects a button but web technologies force us to use a a-tag
39
39
  * */
40
40
  export declare const LinkButton: <C extends React.ElementType = typeof AriaLink>({ children, variant, fullwidth, icon: customIcon, iconPlacement, className, as, size, ...rest }: LinkButtonProps<C>) => React.JSX.Element;
41
- export { RouterProvider };
41
+ export { RouterProvider } from '../aria';
@@ -1 +1,3 @@
1
- export { t as LinkButton, n as RouterProvider } from "../chunks/link-button-D6t-8zQQ.js";
1
+ import { u as e } from "../chunks/aria-BikUfLIG.js";
2
+ import { t } from "../chunks/link-button-BRV_Hy7v.js";
3
+ export { t as LinkButton, e as RouterProvider };
package/list-box/index.js CHANGED
@@ -1 +1 @@
1
- export { c as ListBox, s as ListBoxButton, t as ListBoxEmptyState, n as ListBoxHeader, o as ListBoxItem, r as ListBoxLoadMoreItem, a as ListBoxPopover, i as ListBoxSection } from "../chunks/list-box-YaPiKCld.js";
1
+ export { c as ListBox, s as ListBoxButton, t as ListBoxEmptyState, n as ListBoxHeader, o as ListBoxItem, r as ListBoxLoadMoreItem, a as ListBoxPopover, i as ListBoxSection } from "../chunks/list-box-DfpVnLLk.js";
package/logo/index.js CHANGED
@@ -1 +1 @@
1
- export { t as Logo, n as LogoContext } from "../chunks/logo-CBGOnROk.js";
1
+ export { t as Logo, n as LogoContext } from "../chunks/logo-DUlLYUV2.js";
package/menu/Menu.d.ts CHANGED
@@ -1,6 +1,7 @@
1
- import { MenuTrigger, MenuTriggerProps, MenuProps as AriaMenuProps } from 'react-aria-components';
1
+ import { MenuTriggerProps, MenuProps as AriaMenuProps } from 'react-aria-components';
2
2
  import { Size } from '../common/types';
3
- export { MenuTrigger, type MenuTriggerProps };
3
+ export { MenuTrigger } from '../aria';
4
+ export type { MenuTriggerProps };
4
5
  export interface MenuProps<T> extends AriaMenuProps<T> {
5
6
  /** Component size (large: height 40px, medium: height 32px)
6
7
  * @default 'large'
package/menu/index.js CHANGED
@@ -1 +1,3 @@
1
- export { o as Menu, a as MenuHeader, i as MenuItem, r as MenuPopover, n as MenuSection, s as MenuTrigger, t as Separator } from "../chunks/menu-DVrvuxQk.js";
1
+ import { c as e } from "../chunks/aria-BikUfLIG.js";
2
+ import { a as t, i as n, n as r, o as i, r as a, t as o } from "../chunks/menu-CHZ0d9-S.js";
3
+ export { i as Menu, t as MenuHeader, n as MenuItem, a as MenuPopover, r as MenuSection, e as MenuTrigger, o as Separator };
package/modal/Modal.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { DialogTrigger } from 'react-aria-components';
2
1
  import { ModalOverlayProps } from './modal-overlay';
3
2
  export interface ModalProps extends ModalOverlayProps {
4
3
  /**
@@ -14,5 +13,5 @@ export interface ModalProps extends ModalOverlayProps {
14
13
  */
15
14
  footer?: React.ReactNode;
16
15
  }
17
- export { DialogTrigger };
16
+ export { DialogTrigger } from '../aria';
18
17
  export declare const Modal: import('react').ForwardRefExoticComponent<ModalProps & import('react').RefAttributes<HTMLDivElement>>;
package/modal/index.js CHANGED
@@ -1 +1,3 @@
1
- export { t as DialogTrigger, n as Modal, r as ModalOverlay } from "../chunks/modal-BfWHExGd.js";
1
+ import { r as e } from "../chunks/aria-BikUfLIG.js";
2
+ import { n as t, t as n } from "../chunks/modal-E4kV_R5n.js";
3
+ export { e as DialogTrigger, n as Modal, t as ModalOverlay };
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": "17.38.3",
17
+ "version": "17.39.0",
18
18
  "module": "./index.js",
19
19
  "type": "module",
20
20
  "main": "./index.js",
@@ -1 +1 @@
1
- export { t as ProgressBar } from "../chunks/progress-bar-XMAH7KIq.js";
1
+ export { t as ProgressBar } from "../chunks/progress-bar-yFa08Xfd.js";
package/radio/index.js CHANGED
@@ -1 +1 @@
1
- export { n as Radio, r as RadioButton, i as RadioField, t as RadioGroup } from "../chunks/radio-BXjMFwia.js";
1
+ export { n as Radio, r as RadioButton, i as RadioField, t as RadioGroup } from "../chunks/radio-DbIUs2iU.js";
@@ -1 +1 @@
1
- export { t as SearchField } from "../chunks/search-field-mQvQC_fC.js";
1
+ export { t as SearchField } from "../chunks/search-field-D--4cgzH.js";
package/select/index.js CHANGED
@@ -1 +1 @@
1
- export { t as Select, n as SelectTrigger } from "../chunks/select-B_o3hWvM.js";
1
+ export { t as Select, n as SelectTrigger } from "../chunks/select-DLoIzTsv.js";
package/spinner/index.js CHANGED
@@ -1 +1 @@
1
- export { t as Spinner } from "../chunks/spinner-V6QnHHAH.js";
1
+ export { t as Spinner } from "../chunks/spinner-D3-NXLkB.js";
package/table/index.js CHANGED
@@ -1 +1 @@
1
- export { t as Cell, n as Column, r as Row, i as Table, a as TableBody, o as TableHeader } from "../chunks/table-BZsinvvB.js";
1
+ export { t as Cell, n as Column, r as Row, i as Table, a as TableBody, o as TableHeader } from "../chunks/table-DuzCUPCX.js";
package/tag/index.js CHANGED
@@ -1 +1 @@
1
- export { r as Tag, t as TagGroup, n as TagList } from "../chunks/tag-DO8N54-r.js";
1
+ export { r as Tag, t as TagGroup, n as TagList } from "../chunks/tag-BpnVl9_M.js";
@@ -1 +1 @@
1
- export { r as Input, t as TextArea, n as TextField, i as TextFieldBase } from "../chunks/textfield-O1kNTcwC.js";
1
+ export { r as Input, t as TextArea, n as TextField, i as TextFieldBase } from "../chunks/textfield-BuJeJV1g.js";
@@ -1 +1 @@
1
- export { t as TimeField } from "../chunks/time-field-Dte4G0is.js";
1
+ export { t as TimeField } from "../chunks/time-field-Cr5P1aNn.js";
package/toast/index.js CHANGED
@@ -1 +1 @@
1
- export { t as GlobalToastRegion, n as Toast, r as ToastProvider, i as ToastRegion, a as toastQueue, o as useToastState } from "../chunks/toast-DhXnpJRF.js";
1
+ export { t as GlobalToastRegion, n as Toast, r as ToastProvider, i as ToastRegion, a as toastQueue, o as useToastState } from "../chunks/toast-BgrlaMnw.js";
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Puts children back into the code of a Storybook snippet. Storybook leaves
3
+ * out children that are a function, e.g. the `item => <ListBoxItem />` of a
4
+ * collection, so the snippet doesn't render anything when copied. The
5
+ * children go into the first `<tag />` of the snippet that has none.
6
+ */
7
+ export declare const insertChildren: (code: string, tag: string, children: string) => string;
8
+ /**
9
+ * Story parameters that put the code of a function as children back into
10
+ * the snippet of `<tag />`, e.g.
11
+ * `childrenSource('Menu', '{item => <MenuItem>{item.name}</MenuItem>}')`
12
+ */
13
+ export declare const childrenSource: (tag: string, children: string) => {
14
+ docs: {
15
+ source: {
16
+ transform: (code: string) => string;
17
+ };
18
+ };
19
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Names a React Aria component that Midas re-exports as is. Its own name is
3
+ * minified, so without one it shows up as e.g. `$4e85f108e88277b8$export$...`
4
+ * in Storybook's code and React DevTools. It names the component itself,
5
+ * since React Aria compares some of them by identity, and so the export
6
+ * stays React Aria's own, with its docs:
7
+ *
8
+ * ```ts
9
+ * withDisplayName(MenuTrigger, 'MenuTrigger')
10
+ * export { MenuTrigger }
11
+ * ```
12
+ */
13
+ export declare const withDisplayName: <T extends object>(component: T, displayName: string) => T;
@@ -1,43 +0,0 @@
1
- 'use client';
2
- import { t as e } from "./clsx-BtGY0yFD.js";
3
- import { t } from "./useLocalizedStringFormatter-DU97U9ZX.js";
4
- import { Link as n, RouterProvider as r } from "react-aria-components";
5
- import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
6
- import { ArrowDownToLine as s, ArrowRight as c, SquareArrowOutUpRight as l } from "lucide-react";
7
- import { VisuallyHidden as u } from "react-aria";
8
- import '../assets/link.css';var d = {
9
- link: "_link_duep2_1",
10
- icon: "_icon_duep2_53",
11
- standalone: "_standalone_duep2_57",
12
- stretched: "_stretched_duep2_76"
13
- }, f = {
14
- en: {
15
- opensInNewTab: "Opens in new tab",
16
- downloadsFile: "Downloads file"
17
- },
18
- sv: {
19
- opensInNewTab: "Öppnas i ny flik",
20
- downloadsFile: "Hämtar fil"
21
- }
22
- }, p = ({ children: r, standalone: p, target: h, stretched: g, download: _, icon: v, className: y, as: b, ...x }) => {
23
- let S = b || n, C = t(f), w = v ? { icon: v } : _ ? {
24
- icon: s,
25
- label: C.format("downloadsFile")
26
- } : h === "_blank" ? {
27
- icon: l,
28
- label: C.format("opensInNewTab")
29
- } : p ? { icon: c } : null;
30
- return /* @__PURE__ */ o(S, {
31
- className: e(d.link, p && d.standalone, g && d.stretched, y),
32
- ...x,
33
- target: h,
34
- download: _,
35
- children: [r, w ? /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a(m, {
36
- className: d.icon,
37
- icon: w.icon,
38
- size: 16,
39
- "aria-hidden": !0
40
- }), w.label && /* @__PURE__ */ a(u, { children: w.label })] }) : null]
41
- });
42
- }, m = ({ icon: e, ...t }) => /* @__PURE__ */ a(e, { ...t });
43
- export { r as n, p as t };
@@ -1,43 +0,0 @@
1
- 'use client';
2
- import { t as e } from "./clsx-BtGY0yFD.js";
3
- import { t } from "./useLocalizedStringFormatter-DU97U9ZX.js";
4
- import "react";
5
- import { Link as n, RouterProvider as r } from "react-aria-components";
6
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
- import { ArrowLeft as o, ArrowRight as s, SquareArrowOutUpRight as c } from "lucide-react";
8
- import { VisuallyHidden as l } from "react-aria";
9
- import '../assets/link-button.css';var u = {
10
- linkButton: "_linkButton_1k5w6_1",
11
- secondary: "_secondary_1k5w6_58",
12
- icon: "_icon_1k5w6_63",
13
- tertiary: "_tertiary_1k5w6_102",
14
- danger: "_danger_1k5w6_130",
15
- iconBtn: "_iconBtn_1k5w6_149",
16
- medium: "_medium_1k5w6_173",
17
- iconLeft: "_iconLeft_1k5w6_178",
18
- fullwidth: "_fullwidth_1k5w6_182",
19
- button: "_button_1k5w6_192"
20
- }, d = {
21
- en: { opensInNewTab: "Opens in new tab" },
22
- sv: { opensInNewTab: "Öppnas i ny flik" }
23
- }, f = ({ children: r, variant: f, fullwidth: m, icon: h, iconPlacement: g, className: _, as: v, size: y = "large", ...b }) => {
24
- let x = v || n, S = t(d), C = h ? { icon: h } : b.target === "_blank" ? {
25
- icon: c,
26
- label: S.format("opensInNewTab")
27
- } : g === "left" ? { icon: o } : { icon: s };
28
- return /* @__PURE__ */ a(x, {
29
- className: e(u.linkButton, f === "primary" && u.primary, f === "secondary" && u.secondary, f === "tertiary" && u.tertiary, f === "danger" && u.danger, f === "icon" && u.iconBtn, y === "medium" && u.medium, m && u.fullwidth, g === "left" && u.iconLeft, _),
30
- ...b,
31
- children: [
32
- r,
33
- /* @__PURE__ */ i(p, {
34
- className: u.icon,
35
- icon: C.icon,
36
- size: 20,
37
- "aria-hidden": !0
38
- }),
39
- C.label && /* @__PURE__ */ i(l, { children: C.label })
40
- ]
41
- });
42
- }, p = ({ icon: e, ...t }) => /* @__PURE__ */ i(e, { ...t });
43
- export { r as n, f as t };
@@ -1,51 +0,0 @@
1
- import { t as e } from "./clsx-BtGY0yFD.js";
2
- import { Header as t, Menu as n, MenuItem as r, MenuSection as i, MenuTrigger as a, Popover as o, Separator as s } from "react-aria-components";
3
- import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
4
- import { Check as d, ChevronRight as f } from "lucide-react";
5
- import '../assets/menu.css';var p = {
6
- menu: "_menu_hfwrp_1",
7
- menuSectionHeader: "_menuSectionHeader_hfwrp_18",
8
- menuSection: "_menuSection_hfwrp_18",
9
- medium: "_medium_hfwrp_29",
10
- menuItem: "_menuItem_hfwrp_35",
11
- mainContent: "_mainContent_hfwrp_104",
12
- checkMark: "_checkMark_hfwrp_115",
13
- separator: "_separator_hfwrp_125",
14
- menuPopover: "_menuPopover_hfwrp_148 _dropdownAnimation_1ljkv_4"
15
- }, m = ({ className: t, size: r = "large", ...i }) => /* @__PURE__ */ l(n, {
16
- className: e(t, p.menu, r === "medium" && p.medium),
17
- ...i
18
- }), h = ({ className: n, ...r }) => /* @__PURE__ */ l(t, {
19
- className: e(n, p.menuSectionHeader),
20
- ...r
21
- }), g = (t) => /* @__PURE__ */ l(r, {
22
- ...t,
23
- textValue: t.textValue || (typeof t.children == "string" ? t.children : void 0),
24
- className: e(p.menuItem, t.className),
25
- children: (e) => {
26
- let { children: n } = t, { selectionMode: r, isSelected: i, hasSubmenu: a } = e;
27
- return /* @__PURE__ */ u(c, { children: [
28
- r !== "none" && /* @__PURE__ */ l(d, {
29
- size: 16,
30
- className: p.checkMark,
31
- "data-selected": i || void 0
32
- }),
33
- /* @__PURE__ */ l("div", {
34
- className: p.mainContent,
35
- children: typeof n == "function" ? n(e) : n
36
- }),
37
- a && /* @__PURE__ */ l(f, { size: 20 })
38
- ] });
39
- }
40
- }), _ = ({ className: t, ...n }) => /* @__PURE__ */ l(o, {
41
- className: e(t, p.menuPopover),
42
- offset: 4,
43
- ...n
44
- }), v = ({ className: t, ...n }) => /* @__PURE__ */ l(i, {
45
- className: e(t, p.menuSection),
46
- ...n
47
- }), y = ({ className: t, ...n }) => /* @__PURE__ */ l(s, {
48
- className: e(t, p.separator),
49
- ...n
50
- });
51
- export { h as a, g as i, v as n, m as o, _ as r, a as s, y as t };