@midas-ds/components 17.34.1 → 17.35.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 (77) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/accordion/index.js +1 -1
  3. package/assets/empty-state.css +1 -0
  4. package/button/index.js +1 -1
  5. package/calendar/index.js +1 -1
  6. package/card/index.js +1 -1
  7. package/checkbox/index.js +1 -1
  8. package/chunks/{accordion-DCylOvk-.js → accordion-gXivv8Ra.js} +2 -2
  9. package/chunks/{button-Vq0ARno3.js → button-BZHl22O1.js} +15 -12
  10. package/chunks/{calendar-CdKnEG5o.js → calendar-uy8xBuNV.js} +5 -5
  11. package/chunks/{card-mIB1NewO.js → card-CFy9gV47.js} +2 -2
  12. package/chunks/{checkbox-BAYWLn77.js → checkbox-_8t0WxFw.js} +3 -3
  13. package/chunks/{clear-button-q2aTPqmU.js → clear-button-BBOWDvaE.js} +1 -1
  14. package/chunks/{color-scheme-switch-D--ppbpi.js → color-scheme-switch-CZGgC68M.js} +1 -1
  15. package/chunks/{combobox-DC8escnY.js → combobox-Ck-7IepP.js} +4 -4
  16. package/chunks/{date-field-B6STeIzX.js → date-field-DkypCMfi.js} +4 -4
  17. package/chunks/{date-picker-DCFHCDjr.js → date-picker-Cn9qhe2G.js} +7 -7
  18. package/chunks/empty-state-CnDZoO65.js +40 -0
  19. package/chunks/{field-error-C5ynuTRu.js → field-error-CUYIkJWj.js} +1 -1
  20. package/chunks/{file-list-BqPDm31w.js → file-list-Dld4Shgt.js} +3 -3
  21. package/chunks/heading-0P5rm7xK.js +31 -0
  22. package/chunks/{info-banner-DxN9h_6W.js → info-banner-CFmkzyL-.js} +1 -1
  23. package/chunks/{label-aX8yboSc.js → label-Biu5Hi7b.js} +2 -2
  24. package/chunks/{layout-CHum4Cpf.js → layout-BwW7Scqj.js} +1 -1
  25. package/chunks/{list-box-Cs65YWMd.js → list-box-Cyiu3Rq7.js} +1 -1
  26. package/chunks/{modal-RqzWc_NN.js → modal-DvTcNZNd.js} +2 -2
  27. package/chunks/{progress-bar-BHdz8PFO.js → progress-bar-BvueZ-dg.js} +1 -1
  28. package/chunks/{radio-D0PA15IV.js → radio-Li_ZoHYq.js} +3 -3
  29. package/chunks/{search-field-CfgBVzAV.js → search-field-BdS63CpD.js} +4 -4
  30. package/chunks/{select-C0o_SEd0.js → select-b6vie6hj.js} +6 -6
  31. package/chunks/{table-EjKTmTGr.js → table-Cvg_n39H.js} +1 -1
  32. package/chunks/{tag-BNARNuvq.js → tag-vxSxMsqS.js} +1 -1
  33. package/chunks/text-CtvUKU-v.js +28 -0
  34. package/chunks/{textfield-BWv4mP4v.js → textfield-i0dO0qgs.js} +4 -4
  35. package/chunks/{time-field-KpetgpDY.js → time-field-BG2BH5HH.js} +5 -5
  36. package/chunks/{toast-BO158amn.js → toast-CZHBaKdY.js} +1 -1
  37. package/clear-button/index.js +1 -1
  38. package/color-scheme-switch/index.js +1 -1
  39. package/combobox/index.js +1 -1
  40. package/date-field/index.js +1 -1
  41. package/date-picker/index.js +1 -1
  42. package/empty-state/EmptyState.d.ts +12 -0
  43. package/empty-state/empty-state-actions/EmptyStateActions.d.ts +3 -0
  44. package/empty-state/empty-state-actions/index.d.ts +1 -0
  45. package/empty-state/empty-state-heading/EmptyStateHeading.d.ts +3 -0
  46. package/empty-state/empty-state-heading/index.d.ts +1 -0
  47. package/empty-state/empty-state-text/EmptyStateText.d.ts +3 -0
  48. package/empty-state/empty-state-text/index.d.ts +1 -0
  49. package/empty-state/empty-state-visual/EmptyStateVisual.d.ts +3 -0
  50. package/empty-state/empty-state-visual/index.d.ts +1 -0
  51. package/empty-state/index.d.ts +5 -0
  52. package/empty-state/index.js +1 -0
  53. package/field-error/index.js +1 -1
  54. package/file-list/index.js +1 -1
  55. package/heading/Heading.d.ts +1 -2
  56. package/heading/index.js +1 -1
  57. package/index.d.ts +1 -0
  58. package/index.js +40 -39
  59. package/info-banner/index.js +1 -1
  60. package/label/index.js +1 -1
  61. package/layout/index.js +1 -1
  62. package/list-box/index.js +1 -1
  63. package/modal/index.js +1 -1
  64. package/package.json +1 -1
  65. package/progress-bar/index.js +1 -1
  66. package/radio/index.js +1 -1
  67. package/search-field/index.js +1 -1
  68. package/select/index.js +1 -1
  69. package/table/index.js +1 -1
  70. package/tag/index.js +1 -1
  71. package/text/Text.d.ts +1 -2
  72. package/text/index.js +1 -1
  73. package/textfield/index.js +1 -1
  74. package/time-field/index.js +1 -1
  75. package/toast/index.js +1 -1
  76. package/chunks/heading-CIlMdywy.js +0 -30
  77. package/chunks/text-D7tnzTru.js +0 -27
package/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## 17.35.0 (2026-11-17)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **components,empty-state:** new component EmptyState ([b25edcf1703](https://github.com/migrationsverket/midas/commit/b25edcf1703))
6
+ - **components,text,heading:** forward refs ([27348f56bcc](https://github.com/migrationsverket/midas/commit/27348f56bcc))
7
+
8
+ ### 🩹 Fixes
9
+
10
+ - **components,button:** call handlers from RAC context once ([7f625ea237c](https://github.com/migrationsverket/midas/commit/7f625ea237c))
11
+
1
12
  ## 17.34.1 (2026-11-16)
2
13
 
3
14
  ### 🩹 Fixes
@@ -1 +1 @@
1
- export { n as Accordion, t as AccordionItem } from "../chunks/accordion-DCylOvk-.js";
1
+ export { n as Accordion, t as AccordionItem } from "../chunks/accordion-gXivv8Ra.js";
@@ -0,0 +1 @@
1
+ ._emptyStateActions_17oo8_1{margin-block-start:var(--midas-space-small)}._emptyStateHeading_1wq5i_1,._emptyStateText_itela_1{flex-basis:100%;margin-block:0}._emptyStateVisual_dhkzu_1{margin-block-end:var(--midas-space-small)}._emptyStateVisual_dhkzu_1,._emptyStateVisual_dhkzu_1>svg{height:var(--midas-base-120);width:var(--midas-base-120)}._emptyState_1b7ad_1{font-family:var(--midas-typography-font-family);align-items:center;gap:var(--midas-space-small);max-inline-size:38rem;padding-block:var(--midas-space-xlarge);flex-flow:wrap;display:flex}._emptyState_1b7ad_1[data-align=center]{text-align:center;justify-content:center;margin-inline:auto}
package/button/index.js CHANGED
@@ -1 +1 @@
1
- export { n as Button, t as ButtonGroup } from "../chunks/button-Vq0ARno3.js";
1
+ export { n as Button, t as ButtonGroup } from "../chunks/button-BZHl22O1.js";
package/calendar/index.js CHANGED
@@ -1 +1 @@
1
- export { n as Calendar, t as RangeCalendar } from "../chunks/calendar-CdKnEG5o.js";
1
+ export { n as Calendar, t as RangeCalendar } from "../chunks/calendar-uy8xBuNV.js";
package/card/index.js CHANGED
@@ -1 +1 @@
1
- export { r as Card, i as CardActionArea, a as CardActions, n as CardBody, o as CardContent, t as CardHeader, s as CardImage, c as CardLink, l as CardTitle } from "../chunks/card-mIB1NewO.js";
1
+ export { r as Card, i as CardActionArea, a as CardActions, n as CardBody, o as CardContent, t as CardHeader, s as CardImage, c as CardLink, l as CardTitle } from "../chunks/card-CFy9gV47.js";
package/checkbox/index.js CHANGED
@@ -1 +1 @@
1
- export { n as Checkbox, r as CheckboxButton, i as CheckboxField, t as CheckboxGroup } from "../chunks/checkbox-BAYWLn77.js";
1
+ export { n as Checkbox, r as CheckboxButton, i as CheckboxField, t as CheckboxGroup } from "../chunks/checkbox-_8t0WxFw.js";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { t as e } from "./clsx-BtGY0yFD.js";
3
- import { n as t } from "./button-Vq0ARno3.js";
4
- import { t as n } from "./heading-CIlMdywy.js";
3
+ import { n as t } from "./button-BZHl22O1.js";
4
+ import { t as n } from "./heading-0P5rm7xK.js";
5
5
  import { t as r } from "./FeedbackStatusIcon-DX5ndhm3.js";
6
6
  import { createContext as i, useContext as a, useEffect as o } from "react";
7
7
  import { Disclosure as s, DisclosureGroup as c, DisclosurePanel as l, composeRenderProps as u } from "react-aria-components";
@@ -9,18 +9,21 @@ import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
9
9
  import '../assets/button2.css';// src/button/Button.tsx
10
10
  var d = i((i, d) => {
11
11
  let [f, p] = s(i, d, e), { className: m, fullwidth: h, icon: g, iconPlacement: _, iconSize: v, isPending: y, size: b = "large", variant: x = "primary", ...S } = f;
12
- return /* @__PURE__ */ l(a, {
13
- className: t(r.button, x === "primary" && r.primary, x === "secondary" && r.secondary, x === "tertiary" && r.tertiary, x === "danger" && r.danger, x === "icon" && r.iconBtn, h && r.fullwidth, b === "medium" && r.medium, _ === "right" && r.iconRight, m),
14
- ref: p,
15
- ...S,
16
- children: o(f.children, (e) => /* @__PURE__ */ u(c, { children: [
17
- g && !y && /* @__PURE__ */ l(g, {
18
- "aria-hidden": !0,
19
- size: v ?? 20
20
- }),
21
- y && /* @__PURE__ */ l(n, { small: !0 }),
22
- e
23
- ] }))
12
+ return /* @__PURE__ */ l(e.Provider, {
13
+ value: null,
14
+ children: /* @__PURE__ */ l(a, {
15
+ className: t(r.button, x === "primary" && r.primary, x === "secondary" && r.secondary, x === "tertiary" && r.tertiary, x === "danger" && r.danger, x === "icon" && r.iconBtn, h && r.fullwidth, b === "medium" && r.medium, _ === "right" && r.iconRight, m),
16
+ ref: p,
17
+ ...S,
18
+ children: o(f.children, (e) => /* @__PURE__ */ u(c, { children: [
19
+ g && !y && /* @__PURE__ */ l(g, {
20
+ "aria-hidden": !0,
21
+ size: v ?? 20
22
+ }),
23
+ y && /* @__PURE__ */ l(n, { small: !0 }),
24
+ e
25
+ ] }))
26
+ })
24
27
  });
25
28
  });
26
29
  d.displayName = "Button";
@@ -1,9 +1,9 @@
1
1
  import { t as e } from "./clsx-BtGY0yFD.js";
2
- import { n as t } from "./button-Vq0ARno3.js";
3
- import { t as n } from "./heading-CIlMdywy.js";
4
- import { n as r } from "./select-C0o_SEd0.js";
5
- import { a as i, c as a, o } from "./list-box-Cs65YWMd.js";
6
- import { t as s } from "./field-error-C5ynuTRu.js";
2
+ import { n as t } from "./button-BZHl22O1.js";
3
+ import { t as n } from "./heading-0P5rm7xK.js";
4
+ import { n as r } from "./select-b6vie6hj.js";
5
+ import { a as i, c as a, o } from "./list-box-Cyiu3Rq7.js";
6
+ import { t as s } from "./field-error-CUYIkJWj.js";
7
7
  import * as c from "react";
8
8
  import { clsx as l } from "clsx";
9
9
  import { Calendar as u, CalendarCell as d, CalendarGrid as f, CalendarMonthPicker as p, CalendarYearPicker as m, RangeCalendar as h, RangeCalendarContext as g, Select as _ } from "react-aria-components";
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./clsx-BtGY0yFD.js";
2
- import { t } from "./heading-CIlMdywy.js";
3
- import { t as n } from "./text-D7tnzTru.js";
2
+ import { t } from "./heading-0P5rm7xK.js";
3
+ import { t as n } from "./text-CtvUKU-v.js";
4
4
  import * as r from "react";
5
5
  import { Button as i, Link as a } from "react-aria-components";
6
6
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
@@ -1,9 +1,9 @@
1
1
  'use client';
2
- import { t as e } from "./field-error-C5ynuTRu.js";
3
- import { t } from "./text-D7tnzTru.js";
2
+ import { t as e } from "./field-error-CUYIkJWj.js";
3
+ import { t } from "./text-CtvUKU-v.js";
4
4
  import { t as n } from "./clsx-BtGY0yFD.js";
5
5
  import { t as r } from "./splitDataAttributes-ChyO_Kvc.js";
6
- import { n as i, t as a } from "./label-aX8yboSc.js";
6
+ import { n as i, t as a } from "./label-Biu5Hi7b.js";
7
7
  import { t as o } from "./useLocalizedStringFormatter-DU97U9ZX.js";
8
8
  import * as s from "react";
9
9
  import { forwardRef as c, useContext as l } from "react";
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { n as e } from "./button-Vq0ARno3.js";
2
+ import { n as e } from "./button-BZHl22O1.js";
3
3
  import "react";
4
4
  import { jsx as t } from "react/jsx-runtime";
5
5
  import { X as n } from "lucide-react";
@@ -2,7 +2,7 @@
2
2
  import { t as e } from "./icons-a0WawN46.js";
3
3
  import { n as t, t as n } from "./toggle-button-BVyG8F2K.js";
4
4
  import { t as r } from "./useLocalizedStringFormatter-DU97U9ZX.js";
5
- import { n as i } from "./button-Vq0ARno3.js";
5
+ import { n as i } from "./button-BZHl22O1.js";
6
6
  import { a, o, r as s } from "./menu-7gP2Sovj.js";
7
7
  import { t as c } from "./clsx-BtGY0yFD.js";
8
8
  import * as l from "react";
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
  import { t as e } from "./clsx-BtGY0yFD.js";
3
- import { n as t, t as n } from "./label-aX8yboSc.js";
4
- import { t as r } from "./text-D7tnzTru.js";
5
- import { t as i } from "./field-error-C5ynuTRu.js";
6
- import { a, c as o, t as s } from "./list-box-Cs65YWMd.js";
3
+ import { n as t, t as n } from "./label-Biu5Hi7b.js";
4
+ import { t as r } from "./text-CtvUKU-v.js";
5
+ import { t as i } from "./field-error-CUYIkJWj.js";
6
+ import { a, c as o, t as s } from "./list-box-Cyiu3Rq7.js";
7
7
  import { t as c } from "./useLocalizedStringFormatter-DU97U9ZX.js";
8
8
  import { useRef as l } from "react";
9
9
  import { Button as u, ComboBox as d, Input as f } from "react-aria-components";
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./clsx-BtGY0yFD.js";
2
- import { t } from "./field-error-C5ynuTRu.js";
3
- import { n, t as r } from "./label-aX8yboSc.js";
4
- import { t as i } from "./text-D7tnzTru.js";
5
- import { t as a } from "./clear-button-q2aTPqmU.js";
2
+ import { t } from "./field-error-CUYIkJWj.js";
3
+ import { n, t as r } from "./label-Biu5Hi7b.js";
4
+ import { t as i } from "./text-CtvUKU-v.js";
5
+ import { t as a } from "./clear-button-BBOWDvaE.js";
6
6
  import { t as o } from "./useLocalizedStringFormatter-DU97U9ZX.js";
7
7
  import * as s from "react";
8
8
  import { DateField as c, DateFieldStateContext as l, DateInput as u, DateSegment as d } from "react-aria-components";
@@ -1,12 +1,12 @@
1
1
  'use client';
2
- import { t as e } from "./clear-button-q2aTPqmU.js";
2
+ import { t as e } from "./clear-button-BBOWDvaE.js";
3
3
  import { t } from "./useLocalizedStringFormatter-DU97U9ZX.js";
4
- import { a as n, n as r, r as i, t as a } from "./date-field-B6STeIzX.js";
5
- import { n as o } from "./button-Vq0ARno3.js";
6
- import { n as s, t as c } from "./calendar-CdKnEG5o.js";
7
- import { t as l } from "./field-error-C5ynuTRu.js";
8
- import { n as u, t as d } from "./label-aX8yboSc.js";
9
- import { t as f } from "./text-D7tnzTru.js";
4
+ import { a as n, n as r, r as i, t as a } from "./date-field-DkypCMfi.js";
5
+ import { n as o } from "./button-BZHl22O1.js";
6
+ import { n as s, t as c } from "./calendar-uy8xBuNV.js";
7
+ import { t as l } from "./field-error-CUYIkJWj.js";
8
+ import { n as u, t as d } from "./label-Biu5Hi7b.js";
9
+ import { t as f } from "./text-CtvUKU-v.js";
10
10
  import * as p from "react";
11
11
  import { clsx as m } from "clsx";
12
12
  import { DatePicker as h, DatePickerStateContext as g, DateRangePicker as _, DateRangePickerStateContext as v, Group as y, Popover as b } from "react-aria-components";
@@ -0,0 +1,40 @@
1
+ 'use client';
2
+ import { t as e } from "./clsx-BtGY0yFD.js";
3
+ import { t } from "./heading-0P5rm7xK.js";
4
+ import { t as n } from "./text-CtvUKU-v.js";
5
+ import { forwardRef as r } from "react";
6
+ import { jsx as i } from "react/jsx-runtime";
7
+ import '../assets/empty-state.css';var a = { emptyStateActions: "_emptyStateActions_17oo8_1" }, o = r(({ className: t, ...n }, r) => /* @__PURE__ */ i("div", {
8
+ ...n,
9
+ ref: r,
10
+ className: e(a.emptyStateActions, t)
11
+ }));
12
+ o.displayName = "EmptyStateActions";
13
+ var s = { emptyStateHeading: "_emptyStateHeading_1wq5i_1" }, c = r(({ className: n, level: r = 2, ...a }, o) => /* @__PURE__ */ i(t, {
14
+ className: e(s.emptyStateHeading, n),
15
+ level: r,
16
+ ref: o,
17
+ ...a
18
+ }));
19
+ c.displayName = "EmptyStateHeading";
20
+ var l = { emptyStateText: "_emptyStateText_itela_1" }, u = r(({ className: t, elementType: r = "p", ...a }, o) => /* @__PURE__ */ i(n, {
21
+ className: e(l.emptyStateText, t),
22
+ elementType: r,
23
+ ref: o,
24
+ ...a
25
+ }));
26
+ u.displayName = "EmptyStateText";
27
+ var d = { emptyStateVisual: "_emptyStateVisual_dhkzu_1" }, f = r(({ className: t, ...n }, r) => /* @__PURE__ */ i("div", {
28
+ ...n,
29
+ ref: r,
30
+ className: e(d.emptyStateVisual, t)
31
+ }));
32
+ f.displayName = "EmptyStateVisual";
33
+ var p = { emptyState: "_emptyState_1b7ad_1" }, m = r(({ align: t = "center", className: n, ...r }, a) => /* @__PURE__ */ i("div", {
34
+ ...r,
35
+ ref: a,
36
+ className: e(p.emptyState, n),
37
+ "data-align": t
38
+ }));
39
+ m.displayName = "EmptyState";
40
+ export { o as a, c as i, f as n, u as r, m as t };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./clsx-BtGY0yFD.js";
2
- import { t } from "./text-D7tnzTru.js";
2
+ import { t } from "./text-CtvUKU-v.js";
3
3
  import { forwardRef as n, useContext as r } from "react";
4
4
  import { FieldError as i, FieldErrorContext as a } from "react-aria-components";
5
5
  import { jsx as o } from "react/jsx-runtime";
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
  import { t as e } from "./clsx-BtGY0yFD.js";
3
- import { n as t } from "./button-Vq0ARno3.js";
4
- import { t as n } from "./progress-bar-BHdz8PFO.js";
3
+ import { n as t } from "./button-BZHl22O1.js";
4
+ import { t as n } from "./progress-bar-BvueZ-dg.js";
5
5
  import { t as r } from "./FeedbackStatusIcon-DX5ndhm3.js";
6
- import { t as i } from "./field-error-C5ynuTRu.js";
6
+ import { t as i } from "./field-error-CUYIkJWj.js";
7
7
  import { t as a } from "./useLocalizedStringFormatter-DU97U9ZX.js";
8
8
  import { useEffect as o, useId as s, useRef as c } from "react";
9
9
  import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
@@ -0,0 +1,31 @@
1
+ import { t as e } from "./clsx-BtGY0yFD.js";
2
+ import { forwardRef as t } from "react";
3
+ import { Heading as n } from "react-aria-components";
4
+ import { jsx as r } from "react/jsx-runtime";
5
+ import '../assets/heading.css';var i = {
6
+ h1: "_h1_13alg_1",
7
+ h2: "_h2_13alg_2",
8
+ h3: "_h3_13alg_3",
9
+ h4: "_h4_13alg_4",
10
+ h5: "_h5_13alg_5",
11
+ h6: "_h6_13alg_6"
12
+ }, a = t(({ className: t, enableMargins: a = !1, isExpressive: o = !1, level: s = 3, elementType: c, ...l }, u) => {
13
+ let d = c && parseInt(c.split("h")[1]);
14
+ return /* @__PURE__ */ r(n, {
15
+ ref: u,
16
+ level: d || s,
17
+ className: e([
18
+ i.h1,
19
+ i.h2,
20
+ i.h3,
21
+ i.h4,
22
+ i.h5,
23
+ i.h6
24
+ ][s - 1], t),
25
+ ...o && { "data-expressive": !0 },
26
+ ...a && { "data-margin": !0 },
27
+ ...l
28
+ });
29
+ });
30
+ a.displayName = "Heading";
31
+ export { a as t };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./clsx-BtGY0yFD.js";
2
- import { n as t } from "./button-Vq0ARno3.js";
2
+ import { n as t } from "./button-BZHl22O1.js";
3
3
  import { t as n } from "./useLocalizedStringFormatter-DU97U9ZX.js";
4
4
  import { t as r } from "./FeedbackStatusIcon-DX5ndhm3.js";
5
5
  import "react";
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./clsx-BtGY0yFD.js";
2
2
  import { t } from "./popover-C7Ain5Qz.js";
3
- import { n } from "./button-Vq0ARno3.js";
4
- import { t as r } from "./modal-RqzWc_NN.js";
3
+ import { n } from "./button-BZHl22O1.js";
4
+ import { t as r } from "./modal-DvTcNZNd.js";
5
5
  import { t as i } from "./useLocalizedStringFormatter-DU97U9ZX.js";
6
6
  import * as a from "react";
7
7
  import o, { useContext as s } from "react";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { t as e } from "./grid-CFn_pqQX.js";
3
3
  import { t } from "./clsx-BtGY0yFD.js";
4
- import { n } from "./button-Vq0ARno3.js";
4
+ import { n } from "./button-BZHl22O1.js";
5
5
  import { n as r, t as i } from "./tooltip-CR1uxtPd.js";
6
6
  import { n as a, t as o } from "./badge-C5Sdu_uw.js";
7
7
  import { t as s } from "./useLocalizedStringFormatter-DU97U9ZX.js";
@@ -2,7 +2,7 @@ import { t as e } from "./clsx-BtGY0yFD.js";
2
2
  import { Virtualizer as t } from "../aria/index.js";
3
3
  import { t as n } from "./spinner-V6QnHHAH.js";
4
4
  import { t as r } from "./useLocalizedStringFormatter-DU97U9ZX.js";
5
- import { t as i } from "./text-D7tnzTru.js";
5
+ import { t as i } from "./text-CtvUKU-v.js";
6
6
  import "react";
7
7
  import { Header as a, ListBox as o, ListBoxItem as s, ListBoxLoadMoreItem as c, ListBoxSection as l, ListLayout as u, Popover as d, composeRenderProps as f } from "react-aria-components";
8
8
  import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
- import { n as e } from "./button-Vq0ARno3.js";
2
- import { t } from "./heading-CIlMdywy.js";
1
+ import { n as e } from "./button-BZHl22O1.js";
2
+ import { t } from "./heading-0P5rm7xK.js";
3
3
  import { t as n } from "./useLocalizedStringFormatter-DU97U9ZX.js";
4
4
  import { t as r } from "./clsx-BtGY0yFD.js";
5
5
  import { forwardRef as i, useCallback as a, useRef as o } from "react";
@@ -1,4 +1,4 @@
1
- import { t as e } from "./label-aX8yboSc.js";
1
+ import { t as e } from "./label-Biu5Hi7b.js";
2
2
  import { t } from "./clsx-BtGY0yFD.js";
3
3
  import "react";
4
4
  import { ProgressBar as n } from "react-aria-components";
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./clsx-BtGY0yFD.js";
2
2
  import { t } from "./splitDataAttributes-ChyO_Kvc.js";
3
- import { n, t as r } from "./label-aX8yboSc.js";
4
- import { t as i } from "./text-D7tnzTru.js";
5
- import { t as a } from "./field-error-C5ynuTRu.js";
3
+ import { n, t as r } from "./label-Biu5Hi7b.js";
4
+ import { t as i } from "./text-CtvUKU-v.js";
5
+ import { t as a } from "./field-error-CUYIkJWj.js";
6
6
  import { Group as o, RadioButton as s, RadioField as c, RadioGroup as l, composeRenderProps as u } from "react-aria-components";
7
7
  import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
8
8
  import '../assets/radio.css';// src/radio/RadioField.tsx
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
  import { t as e } from "./TextField.module-DQfRPRIT.js";
3
- import { n as t } from "./button-Vq0ARno3.js";
3
+ import { n as t } from "./button-BZHl22O1.js";
4
4
  import { t as n } from "./clsx-BtGY0yFD.js";
5
- import { t as r } from "./field-error-C5ynuTRu.js";
6
- import { t as i } from "./text-D7tnzTru.js";
7
- import { n as a, t as o } from "./label-aX8yboSc.js";
5
+ import { t as r } from "./field-error-CUYIkJWj.js";
6
+ import { t as i } from "./text-CtvUKU-v.js";
7
+ import { n as a, t as o } from "./label-Biu5Hi7b.js";
8
8
  import { t as s } from "./useLocalizedStringFormatter-DU97U9ZX.js";
9
9
  import { FormContext as c, Input as l, SearchField as u, useSlottedContext as d } from "react-aria-components";
10
10
  import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
@@ -1,12 +1,12 @@
1
- import { n as e, t } from "./label-aX8yboSc.js";
1
+ import { n as e, t } from "./label-Biu5Hi7b.js";
2
2
  import { t as n } from "./clsx-BtGY0yFD.js";
3
- import { t as r } from "./text-D7tnzTru.js";
4
- import { t as i } from "./field-error-C5ynuTRu.js";
5
- import { n as a } from "./checkbox-BAYWLn77.js";
3
+ import { t as r } from "./text-CtvUKU-v.js";
4
+ import { t as i } from "./field-error-CUYIkJWj.js";
5
+ import { n as a } from "./checkbox-_8t0WxFw.js";
6
6
  import { t as o } from "./useLocalizedStringFormatter-DU97U9ZX.js";
7
- import { c as s } from "./list-box-Cs65YWMd.js";
7
+ import { c as s } from "./list-box-Cyiu3Rq7.js";
8
8
  import { t as c } from "./popover-C7Ain5Qz.js";
9
- import { n as l, r as u, t as d } from "./tag-BNARNuvq.js";
9
+ import { n as l, r as u, t as d } from "./tag-vxSxMsqS.js";
10
10
  import f, { useContext as p } from "react";
11
11
  import m from "clsx";
12
12
  import { Button as h, Select as g, SelectStateContext as _, SelectValue as v } from "react-aria-components";
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { Collection as e } from "../aria/index.js";
3
- import { n as t } from "./checkbox-BAYWLn77.js";
3
+ import { n as t } from "./checkbox-_8t0WxFw.js";
4
4
  import { t as n } from "./clsx-BtGY0yFD.js";
5
5
  import { Button as r, Cell as i, Column as a, Row as o, Table as s, TableBody as c, TableHeader as l, useTableOptions as u } from "react-aria-components";
6
6
  import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./clsx-BtGY0yFD.js";
2
- import { n as t } from "./button-Vq0ARno3.js";
2
+ import { n as t } from "./button-BZHl22O1.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";
@@ -0,0 +1,28 @@
1
+ import { t as e } from "./clsx-BtGY0yFD.js";
2
+ import { forwardRef as t } from "react";
3
+ import { Text as n } from "react-aria-components";
4
+ import { jsx as r } from "react/jsx-runtime";
5
+ import '../assets/text.css';var i = {
6
+ body: "_body_g096r_1",
7
+ "body-small": "_body-small_g096r_2",
8
+ description: "_description_g096r_3",
9
+ "description-small": "_description-small_g096r_4",
10
+ bold: "_bold_g096r_24",
11
+ italic: "_italic_g096r_28"
12
+ }, a = "span", o = t(({ className: t, size: o, isExpressive: s = !1, elementType: c = a, ...l }, u) => {
13
+ let d = {
14
+ className: e(l.slot === "description" ? o === "small" ? i["description-small"] : i.description : o === "small" ? i["body-small"] : i.body, {
15
+ [i.bold]: ["b", "strong"].includes(c),
16
+ [i.italic]: ["i", "em"].includes(c)
17
+ }, t),
18
+ elementType: c || a,
19
+ ...s && { "data-expressive": !0 },
20
+ ...l
21
+ };
22
+ return /* @__PURE__ */ r(n, {
23
+ ref: u,
24
+ ...d
25
+ });
26
+ });
27
+ o.displayName = "Text";
28
+ export { o as t };
@@ -1,12 +1,12 @@
1
1
  'use client';
2
2
  import { t as e } from "./TextField.module-DQfRPRIT.js";
3
- import { t } from "./text-D7tnzTru.js";
4
- import { t as n } from "./field-error-C5ynuTRu.js";
3
+ import { t } from "./text-CtvUKU-v.js";
4
+ import { t as n } from "./field-error-CUYIkJWj.js";
5
5
  import { t as r } from "./character-counter-IbkPoEcq.js";
6
- import { n as i, t as a } from "./label-aX8yboSc.js";
6
+ import { n as i, t as a } from "./label-Biu5Hi7b.js";
7
7
  import { t as o } from "./clsx-BtGY0yFD.js";
8
8
  import { t as s } from "./useLocalizedStringFormatter-DU97U9ZX.js";
9
- import { n as c } from "./button-Vq0ARno3.js";
9
+ import { n as c } from "./button-BZHl22O1.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,9 +1,9 @@
1
1
  import { t as e } from "./clsx-BtGY0yFD.js";
2
- import { n as t, r as n } from "./date-field-B6STeIzX.js";
3
- import { t as r } from "./field-error-C5ynuTRu.js";
4
- import { n as i, t as a } from "./label-aX8yboSc.js";
5
- import { t as o } from "./text-D7tnzTru.js";
6
- import { t as s } from "./clear-button-q2aTPqmU.js";
2
+ import { n as t, r as n } from "./date-field-DkypCMfi.js";
3
+ import { t as r } from "./field-error-CUYIkJWj.js";
4
+ import { n as i, t as a } from "./label-Biu5Hi7b.js";
5
+ import { t as o } from "./text-CtvUKU-v.js";
6
+ import { t as s } from "./clear-button-BBOWDvaE.js";
7
7
  import { t as c } from "./useLocalizedStringFormatter-DU97U9ZX.js";
8
8
  import * as l from "react";
9
9
  import { TimeField as u, TimeFieldStateContext as d } from "react-aria-components";
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { n as e } from "./button-Vq0ARno3.js";
2
+ import { n as e } from "./button-BZHl22O1.js";
3
3
  import { t } from "./clsx-BtGY0yFD.js";
4
4
  import { t as n } from "./FeedbackStatusIcon-DX5ndhm3.js";
5
5
  import r from "react";
@@ -1 +1 @@
1
- export { t as ClearButton } from "../chunks/clear-button-q2aTPqmU.js";
1
+ export { t as ClearButton } from "../chunks/clear-button-BBOWDvaE.js";
@@ -1 +1 @@
1
- export { n as ColorSchemeSwitch, t as ColorSchemeSwitchMenu } from "../chunks/color-scheme-switch-D--ppbpi.js";
1
+ export { n as ColorSchemeSwitch, t as ColorSchemeSwitchMenu } from "../chunks/color-scheme-switch-CZGgC68M.js";
package/combobox/index.js CHANGED
@@ -1 +1 @@
1
- export { t as ComboBox } from "../chunks/combobox-DC8escnY.js";
1
+ export { t as ComboBox } from "../chunks/combobox-Ck-7IepP.js";
@@ -1 +1 @@
1
- export { i as DateField, n as DateInput, t as DateInputDivider, r as DateSegment } from "../chunks/date-field-B6STeIzX.js";
1
+ export { i as DateField, n as DateInput, t as DateInputDivider, r as DateSegment } from "../chunks/date-field-DkypCMfi.js";
@@ -1 +1 @@
1
- export { n as DatePicker, t as DateRangePicker } from "../chunks/date-picker-DCFHCDjr.js";
1
+ export { n as DatePicker, t as DateRangePicker } from "../chunks/date-picker-Cn9qhe2G.js";
@@ -0,0 +1,12 @@
1
+ import { HTMLAttributes } from 'react';
2
+ /**
3
+ * Text and calls to action for empty search results, blank pages etc.
4
+ */
5
+ export interface EmptyStateProps extends HTMLAttributes<HTMLDivElement> {
6
+ /**
7
+ * Center the content, or align it to the start.
8
+ * @default 'center'
9
+ */
10
+ align?: 'start' | 'center';
11
+ }
12
+ export declare const EmptyState: import('react').ForwardRefExoticComponent<EmptyStateProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,3 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export type EmptyStateActionsProps = HTMLAttributes<HTMLDivElement>;
3
+ export declare const EmptyStateActions: import('react').ForwardRefExoticComponent<EmptyStateActionsProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1 @@
1
+ export * from './EmptyStateActions';
@@ -0,0 +1,3 @@
1
+ import { HeadingProps } from '../../heading';
2
+ export type EmptyStateHeadingProps = HeadingProps;
3
+ export declare const EmptyStateHeading: import('react').ForwardRefExoticComponent<HeadingProps & import('react').RefAttributes<HTMLHeadingElement>>;
@@ -0,0 +1 @@
1
+ export * from './EmptyStateHeading';
@@ -0,0 +1,3 @@
1
+ import { TextProps } from '../../text';
2
+ export type EmptyStateTextProps = TextProps;
3
+ export declare const EmptyStateText: import('react').ForwardRefExoticComponent<TextProps & import('react').RefAttributes<HTMLElement>>;
@@ -0,0 +1 @@
1
+ export * from './EmptyStateText';
@@ -0,0 +1,3 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export type EmptyStateVisualProps = HTMLAttributes<HTMLDivElement>;
3
+ export declare const EmptyStateVisual: import('react').ForwardRefExoticComponent<EmptyStateVisualProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1 @@
1
+ export * from './EmptyStateVisual';
@@ -0,0 +1,5 @@
1
+ export * from './empty-state-actions';
2
+ export * from './empty-state-heading';
3
+ export * from './empty-state-text';
4
+ export * from './empty-state-visual';
5
+ export * from './EmptyState';
@@ -0,0 +1 @@
1
+ export { t as EmptyState, a as EmptyStateActions, i as EmptyStateHeading, r as EmptyStateText, n as EmptyStateVisual } from "../chunks/empty-state-CnDZoO65.js";
@@ -1 +1 @@
1
- export { t as FieldError } from "../chunks/field-error-C5ynuTRu.js";
1
+ export { t as FieldError } from "../chunks/field-error-CUYIkJWj.js";
@@ -1 +1 @@
1
- export { n as FileList, t as FileListItem } from "../chunks/file-list-BqPDm31w.js";
1
+ export { n as FileList, t as FileListItem } from "../chunks/file-list-Dld4Shgt.js";
@@ -1,5 +1,4 @@
1
1
  import { HeadingProps as AriaHeadingProps } from 'react-aria-components';
2
- import * as React from 'react';
3
2
  export interface HeadingProps extends AriaHeadingProps {
4
3
  /**
5
4
  * Override the semantic element of the component but keep the look of the level property
@@ -16,4 +15,4 @@ export interface HeadingProps extends AriaHeadingProps {
16
15
  */
17
16
  isExpressive?: boolean;
18
17
  }
19
- export declare const Heading: React.FC<HeadingProps>;
18
+ export declare const Heading: import('react').ForwardRefExoticComponent<HeadingProps & import('react').RefAttributes<HTMLHeadingElement>>;
package/heading/index.js CHANGED
@@ -1 +1 @@
1
- export { t as Heading } from "../chunks/heading-CIlMdywy.js";
1
+ export { t as Heading } from "../chunks/heading-0P5rm7xK.js";
package/index.d.ts CHANGED
@@ -13,6 +13,7 @@ export * from './common/types';
13
13
  export * from './date-field';
14
14
  export * from './date-picker';
15
15
  export * from './drop-zone';
16
+ export * from './empty-state';
16
17
  export * from './field-error';
17
18
  export * from './file-list';
18
19
  export * from './file-trigger';
package/index.js CHANGED
@@ -1,55 +1,56 @@
1
1
  'use client';
2
2
  "use client";
3
- import { n as e, t } from "./chunks/accordion-DCylOvk-.js";
3
+ import { n as e, t } from "./chunks/accordion-gXivv8Ra.js";
4
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
5
  import { n as d, t as f } from "./chunks/link-CyjmtEZP.js";
6
6
  import { t as p } from "./chunks/spinner-V6QnHHAH.js";
7
7
  import { t as m } from "./chunks/useLocalizedStringFormatter-DU97U9ZX.js";
8
- import { n as h, t as g } from "./chunks/button-Vq0ARno3.js";
9
- import { t as _ } from "./chunks/heading-CIlMdywy.js";
8
+ import { n as h, t as g } from "./chunks/button-BZHl22O1.js";
9
+ import { t as _ } from "./chunks/heading-0P5rm7xK.js";
10
10
  import { n as v, t as y } from "./chunks/badge-C5Sdu_uw.js";
11
11
  import { n as b, t as x } from "./chunks/breadcrumbs-BwYDyKWo.js";
12
- import { n as S, t as C } from "./chunks/calendar-CdKnEG5o.js";
13
- import { t as w } from "./chunks/label-aX8yboSc.js";
12
+ import { n as S, t as C } from "./chunks/calendar-uy8xBuNV.js";
13
+ import { t as w } from "./chunks/label-Biu5Hi7b.js";
14
14
  import { t as T } from "./chunks/popover-C7Ain5Qz.js";
15
- import { n as E, r as D, t as O } from "./chunks/modal-RqzWc_NN.js";
16
- import { t as k } from "./chunks/text-D7tnzTru.js";
17
- import { t as A } from "./chunks/field-error-C5ynuTRu.js";
18
- import { i as j, n as M, r as N, t as P } from "./chunks/checkbox-BAYWLn77.js";
19
- import { n as F, t as I } from "./chunks/select-C0o_SEd0.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-Cs65YWMd.js";
21
- import { n as G, r as K, t as q } from "./chunks/tag-BNARNuvq.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-mIB1NewO.js";
15
+ import { n as E, r as D, t as O } from "./chunks/modal-DvTcNZNd.js";
16
+ import { t as k } from "./chunks/text-CtvUKU-v.js";
17
+ import { t as A } from "./chunks/field-error-CUYIkJWj.js";
18
+ import { i as j, n as M, r as N, t as P } from "./chunks/checkbox-_8t0WxFw.js";
19
+ import { n as F, t as I } from "./chunks/select-b6vie6hj.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-Cyiu3Rq7.js";
21
+ import { n as G, r as K, t as q } from "./chunks/tag-vxSxMsqS.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
23
  import { t as re } from "./chunks/character-counter-IbkPoEcq.js";
24
24
  import { t as ie } from "./chunks/icons-a0WawN46.js";
25
25
  import { n as ae, t as oe } from "./chunks/toggle-button-BVyG8F2K.js";
26
- import { n as se, t as ce } from "./chunks/color-scheme-switch-D--ppbpi.js";
26
+ import { n as se, t as ce } from "./chunks/color-scheme-switch-CZGgC68M.js";
27
27
  import { a as le, i as ue, n as de, o as fe, r as pe, t as me } from "./chunks/menu-7gP2Sovj.js";
28
- import { t as he } from "./chunks/combobox-DC8escnY.js";
29
- import { i as ge, n as _e, r as ve, t as ye } from "./chunks/date-field-B6STeIzX.js";
30
- import { n as be, t as xe } from "./chunks/date-picker-DCFHCDjr.js";
28
+ import { t as he } from "./chunks/combobox-Ck-7IepP.js";
29
+ import { i as ge, n as _e, r as ve, t as ye } from "./chunks/date-field-DkypCMfi.js";
30
+ import { n as be, t as xe } from "./chunks/date-picker-Cn9qhe2G.js";
31
31
  import { t as Se } from "./chunks/drop-zone-BL3Z-Sbj.js";
32
- import { n as Ce, t as we } from "./chunks/file-list-BqPDm31w.js";
33
- import { t as Te } from "./chunks/progress-bar-BHdz8PFO.js";
34
- import { t as Ee } from "./chunks/file-trigger-gOeeZzDP.js";
35
- import { n as De, t as Oe } from "./chunks/grid-CFn_pqQX.js";
36
- import { t as ke } from "./chunks/info-banner-DxN9h_6W.js";
37
- import { a as Ae, i as je, n as Me, r as Ne, t as Pe } from "./chunks/layout-CHum4Cpf.js";
38
- import { n as Fe, t as Ie } from "./chunks/tooltip-CR1uxtPd.js";
39
- import { n as Le, t as Re } from "./chunks/logo-CBGOnROk.js";
40
- import { t as ze } from "./chunks/clsx-BtGY0yFD.js";
41
- import { t as Be } from "./chunks/link-button-D6t-8zQQ.js";
42
- import { i as Ve, n as He, r as Ue, t as We } from "./chunks/radio-D0PA15IV.js";
43
- import { t as Ge } from "./chunks/search-field-CfgBVzAV.js";
44
- import { t as Ke } from "./chunks/skeleton-6y5HNJZp.js";
45
- import { t as qe } from "./chunks/stack-DKjRicm1.js";
46
- import { a as Je, i as Ye, n as Xe, o as Ze, r as Qe, t as $e } from "./chunks/table-EjKTmTGr.js";
47
- import { i as et, n as tt, r as nt, t as rt } from "./chunks/tabs-ZCpVhr_r.js";
48
- import { i as it, n as at, r as ot, t as st } from "./chunks/textfield-BWv4mP4v.js";
49
- import { t as ct } from "./chunks/time-field-KpetgpDY.js";
50
- import { a as lt, i as ut, n as dt, o as ft, r as pt, t as mt } from "./chunks/toast-BO158amn.js";
32
+ import { a as Ce, i as we, n as Te, r as Ee, t as De } from "./chunks/empty-state-CnDZoO65.js";
33
+ import { n as Oe, t as ke } from "./chunks/file-list-Dld4Shgt.js";
34
+ import { t as Ae } from "./chunks/progress-bar-BvueZ-dg.js";
35
+ import { t as je } from "./chunks/file-trigger-gOeeZzDP.js";
36
+ import { n as Me, t as Ne } from "./chunks/grid-CFn_pqQX.js";
37
+ import { t as Pe } from "./chunks/info-banner-CFmkzyL-.js";
38
+ import { a as Fe, i as Ie, n as Le, r as Re, t as ze } from "./chunks/layout-BwW7Scqj.js";
39
+ import { n as Be, t as Ve } from "./chunks/tooltip-CR1uxtPd.js";
40
+ import { n as He, t as Ue } from "./chunks/logo-CBGOnROk.js";
41
+ import { t as We } from "./chunks/clsx-BtGY0yFD.js";
42
+ import { t as Ge } from "./chunks/link-button-D6t-8zQQ.js";
43
+ import { i as Ke, n as qe, r as Je, t as Ye } from "./chunks/radio-Li_ZoHYq.js";
44
+ import { t as Xe } from "./chunks/search-field-BdS63CpD.js";
45
+ import { t as Ze } from "./chunks/skeleton-6y5HNJZp.js";
46
+ import { t as Qe } from "./chunks/stack-DKjRicm1.js";
47
+ import { a as $e, i as et, n as tt, o as nt, r as rt, t as it } from "./chunks/table-Cvg_n39H.js";
48
+ import { i as at, n as ot, r as st, t as ct } from "./chunks/tabs-ZCpVhr_r.js";
49
+ import { i as lt, n as ut, r as dt, t as ft } from "./chunks/textfield-i0dO0qgs.js";
50
+ import { t as pt } from "./chunks/time-field-BG2BH5HH.js";
51
+ import { a as mt, i as ht, n as gt, o as _t, r as vt, t as yt } from "./chunks/toast-CZHBaKdY.js";
51
52
  // src/version.ts
52
- var ht = {
53
+ var bt = {
53
54
  name: "@midas-ds/components",
54
55
  author: { name: "Migrationsverket" },
55
56
  keywords: [
@@ -61,7 +62,7 @@ var ht = {
61
62
  description: "Midas Components",
62
63
  homepage: "https://designsystem.migrationsverket.se/",
63
64
  license: "CC0-1.0",
64
- version: "17.34.1",
65
+ version: "17.35.0",
65
66
  module: "./index.js",
66
67
  type: "module",
67
68
  main: "./index.js",
@@ -94,4 +95,4 @@ var ht = {
94
95
  "react-stately": "3.50.0"
95
96
  }
96
97
  }.version;
97
- 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, $e 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, Xe as Column, he as ComboBox, ie as ContrastFilled, ge as DateField, _e as DateInput, ye as DateInputDivider, be as DatePicker, xe as DateRangePicker, ve as DateSegment, O as DialogTrigger, Se as DropZone, A as FieldError, Ce as FileList, we as FileListItem, Ee as FileTrigger, i as Focusable, a as Form, mt as GlobalToastRegion, De as Grid, Oe as GridItem, Ne as Header, _ as Heading, o as I18nProvider, ke as InfoBanner, ot as Input, w as Label, Pe as Layout, f as Link, Be 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, Re as Logo, Le as LogoContext, le as Menu, ue as MenuItem, pe as MenuPopover, de as MenuSection, fe as MenuTrigger, E as Modal, D as ModalOverlay, Me as Navbar, T as Popover, s as Pressable, Te as ProgressBar, He as Radio, Ue as RadioButton, Ve as RadioField, We as RadioGroup, C as RangeCalendar, d as RouterProvider, Qe as Row, Ge as SearchField, I as Select, F as SelectTrigger, me as Separator, je as Sidebar, Ae as SidebarLink, Ke as Skeleton, p as Spinner, qe as Stack, nt as Tab, rt as TabList, tt as TabPanel, Ye as Table, Je as TableBody, Ze as TableHeader, c as TableLayout, et as Tabs, K as Tag, q as TagGroup, G as TagList, k as Text, st as TextArea, at as TextField, it as TextFieldBase, ct as TimeField, dt as Toast, pt as ToastProvider, ut as ToastRegion, ae as ToggleButton, oe as ToggleButtonGroup, Ie as Tooltip, Fe as TooltipTrigger, ht as VERSION, l as Virtualizer, ze as clsx, lt as toastQueue, u as useLocale, m as useLocalizedStringFormatter, ft as useToastState };
98
+ 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, it 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, tt as Column, he as ComboBox, ie as ContrastFilled, ge as DateField, _e as DateInput, ye as DateInputDivider, be as DatePicker, xe as DateRangePicker, ve as DateSegment, O as DialogTrigger, Se as DropZone, De as EmptyState, Ce as EmptyStateActions, we as EmptyStateHeading, Ee as EmptyStateText, Te as EmptyStateVisual, A as FieldError, Oe as FileList, ke as FileListItem, je as FileTrigger, i as Focusable, a as Form, yt as GlobalToastRegion, Me as Grid, Ne as GridItem, Re as Header, _ as Heading, o as I18nProvider, Pe as InfoBanner, dt as Input, w as Label, ze as Layout, f as Link, Ge 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, Ue as Logo, He as LogoContext, le as Menu, ue as MenuItem, pe as MenuPopover, de as MenuSection, fe as MenuTrigger, E as Modal, D as ModalOverlay, Le as Navbar, T as Popover, s as Pressable, Ae as ProgressBar, qe as Radio, Je as RadioButton, Ke as RadioField, Ye as RadioGroup, C as RangeCalendar, d as RouterProvider, rt as Row, Xe as SearchField, I as Select, F as SelectTrigger, me as Separator, Ie as Sidebar, Fe as SidebarLink, Ze as Skeleton, p as Spinner, Qe as Stack, st as Tab, ct as TabList, ot as TabPanel, et as Table, $e as TableBody, nt as TableHeader, c as TableLayout, at as Tabs, K as Tag, q as TagGroup, G as TagList, k as Text, ft as TextArea, ut as TextField, lt as TextFieldBase, pt as TimeField, gt as Toast, vt as ToastProvider, ht as ToastRegion, ae as ToggleButton, oe as ToggleButtonGroup, Ve as Tooltip, Be as TooltipTrigger, bt as VERSION, l as Virtualizer, We as clsx, mt as toastQueue, u as useLocale, m as useLocalizedStringFormatter, _t as useToastState };
@@ -1 +1 @@
1
- export { t as InfoBanner } from "../chunks/info-banner-DxN9h_6W.js";
1
+ export { t as InfoBanner } from "../chunks/info-banner-CFmkzyL-.js";
package/label/index.js CHANGED
@@ -1 +1 @@
1
- export { t as Label } from "../chunks/label-aX8yboSc.js";
1
+ export { t as Label } from "../chunks/label-Biu5Hi7b.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-CHum4Cpf.js";
1
+ export { r as Header, t as Layout, n as Navbar, i as Sidebar, a as SidebarLink } from "../chunks/layout-BwW7Scqj.js";
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-Cs65YWMd.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-Cyiu3Rq7.js";
package/modal/index.js CHANGED
@@ -1 +1 @@
1
- export { t as DialogTrigger, n as Modal, r as ModalOverlay } from "../chunks/modal-RqzWc_NN.js";
1
+ export { t as DialogTrigger, n as Modal, r as ModalOverlay } from "../chunks/modal-DvTcNZNd.js";
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.34.1",
17
+ "version": "17.35.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-BHdz8PFO.js";
1
+ export { t as ProgressBar } from "../chunks/progress-bar-BvueZ-dg.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-D0PA15IV.js";
1
+ export { n as Radio, r as RadioButton, i as RadioField, t as RadioGroup } from "../chunks/radio-Li_ZoHYq.js";
@@ -1 +1 @@
1
- export { t as SearchField } from "../chunks/search-field-CfgBVzAV.js";
1
+ export { t as SearchField } from "../chunks/search-field-BdS63CpD.js";
package/select/index.js CHANGED
@@ -1 +1 @@
1
- export { t as Select, n as SelectTrigger } from "../chunks/select-C0o_SEd0.js";
1
+ export { t as Select, n as SelectTrigger } from "../chunks/select-b6vie6hj.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-EjKTmTGr.js";
1
+ export { t as Cell, n as Column, r as Row, i as Table, a as TableBody, o as TableHeader } from "../chunks/table-Cvg_n39H.js";
package/tag/index.js CHANGED
@@ -1 +1 @@
1
- export { r as Tag, t as TagGroup, n as TagList } from "../chunks/tag-BNARNuvq.js";
1
+ export { r as Tag, t as TagGroup, n as TagList } from "../chunks/tag-vxSxMsqS.js";
package/text/Text.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { TextProps as AriaTextProps } from 'react-aria-components';
2
- import * as React from 'react';
3
2
  export type TextSize = 'small';
4
3
  export interface TextProps extends AriaTextProps {
5
4
  /**
@@ -12,4 +11,4 @@ export interface TextProps extends AriaTextProps {
12
11
  */
13
12
  isExpressive?: boolean;
14
13
  }
15
- export declare const Text: React.FC<TextProps>;
14
+ export declare const Text: import('react').ForwardRefExoticComponent<TextProps & import('react').RefAttributes<HTMLElement>>;
package/text/index.js CHANGED
@@ -1 +1 @@
1
- export { t as Text } from "../chunks/text-D7tnzTru.js";
1
+ export { t as Text } from "../chunks/text-CtvUKU-v.js";
@@ -1 +1 @@
1
- export { r as Input, t as TextArea, n as TextField, i as TextFieldBase } from "../chunks/textfield-BWv4mP4v.js";
1
+ export { r as Input, t as TextArea, n as TextField, i as TextFieldBase } from "../chunks/textfield-i0dO0qgs.js";
@@ -1 +1 @@
1
- export { t as TimeField } from "../chunks/time-field-KpetgpDY.js";
1
+ export { t as TimeField } from "../chunks/time-field-BG2BH5HH.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-BO158amn.js";
1
+ export { t as GlobalToastRegion, n as Toast, r as ToastProvider, i as ToastRegion, a as toastQueue, o as useToastState } from "../chunks/toast-CZHBaKdY.js";
@@ -1,30 +0,0 @@
1
- import { t as e } from "./clsx-BtGY0yFD.js";
2
- import "react";
3
- import { Heading as t } from "react-aria-components";
4
- import { jsx as n } from "react/jsx-runtime";
5
- import '../assets/heading.css';var r = {
6
- h1: "_h1_13alg_1",
7
- h2: "_h2_13alg_2",
8
- h3: "_h3_13alg_3",
9
- h4: "_h4_13alg_4",
10
- h5: "_h5_13alg_5",
11
- h6: "_h6_13alg_6"
12
- }, i = ({ children: i, className: a, enableMargins: o = !1, isExpressive: s = !1, level: c = 3, elementType: l, ...u }) => {
13
- let d = l && parseInt(l.split("h")[1]);
14
- return /* @__PURE__ */ n(t, {
15
- level: d || c,
16
- className: e([
17
- r.h1,
18
- r.h2,
19
- r.h3,
20
- r.h4,
21
- r.h5,
22
- r.h6
23
- ][c - 1], a),
24
- ...s && { "data-expressive": !0 },
25
- ...o && { "data-margin": !0 },
26
- ...u,
27
- children: i
28
- });
29
- };
30
- export { i as t };
@@ -1,27 +0,0 @@
1
- import { t as e } from "./clsx-BtGY0yFD.js";
2
- import "react";
3
- import { Text as t } from "react-aria-components";
4
- import { jsx as n } from "react/jsx-runtime";
5
- import '../assets/text.css';var r = {
6
- body: "_body_g096r_1",
7
- "body-small": "_body-small_g096r_2",
8
- description: "_description_g096r_3",
9
- "description-small": "_description-small_g096r_4",
10
- bold: "_bold_g096r_24",
11
- italic: "_italic_g096r_28"
12
- }, i = "span", a = ({ children: a, className: o, size: s, isExpressive: c = !1, elementType: l = i, ...u }) => {
13
- let d = {
14
- className: e(u.slot === "description" ? s === "small" ? r["description-small"] : r.description : s === "small" ? r["body-small"] : r.body, {
15
- [r.bold]: ["b", "strong"].includes(l),
16
- [r.italic]: ["i", "em"].includes(l)
17
- }, o),
18
- elementType: l || i,
19
- ...c && { "data-expressive": !0 },
20
- ...u
21
- };
22
- return /* @__PURE__ */ n(t, {
23
- ...d,
24
- children: a
25
- });
26
- };
27
- export { a as t };