@midas-ds/components 17.33.4 → 17.33.6

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 (104) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/accordion/index.js +1 -1
  3. package/assets/default.css +1 -1
  4. package/badge/index.js +1 -1
  5. package/breadcrumbs/index.js +1 -1
  6. package/button/index.js +1 -1
  7. package/calendar/index.js +1 -1
  8. package/card/index.js +1 -1
  9. package/character-counter/index.js +1 -1
  10. package/checkbox/index.js +1 -1
  11. package/chunks/{Button.module-0C2ArlRs.js → Button.module-CXkKBjuB.js} +0 -1
  12. package/chunks/{FeedbackStatusIcon-DvMDGBGL.js → FeedbackStatusIcon-Ba31xgcy.js} +1 -2
  13. package/chunks/{TextField.module-Bg4LNalb.js → TextField.module-B-5HJOZt.js} +0 -1
  14. package/chunks/{accordion-DRXQI8XG.js → accordion-BKnABSyU.js} +4 -5
  15. package/chunks/{badge-C4bXJmhn.js → badge-C5Sdu_uw.js} +1 -2
  16. package/chunks/{breadcrumbs-BGnyY3bO.js → breadcrumbs-BwYDyKWo.js} +1 -2
  17. package/chunks/{button-dpe6hXmI.js → button-S2AY4EEn.js} +4 -5
  18. package/chunks/{calendar-Bq2qqFIW.js → calendar-BOTC3DKx.js} +26 -27
  19. package/chunks/{card-C0S9Kyi2.js → card-mIB1NewO.js} +3 -4
  20. package/chunks/{character-counter-CSoVSrxZ.js → character-counter-IbkPoEcq.js} +0 -1
  21. package/chunks/{checkbox-BGxv1TyT.js → checkbox-CzH8BdsB.js} +38 -40
  22. package/chunks/{clear-button-DWtOkhCH.js → clear-button-CeQy0RdK.js} +2 -3
  23. package/chunks/{clsx-DAqHMl_k.js → clsx-BtGY0yFD.js} +1 -2
  24. package/chunks/{color-scheme-switch-D7EpvqTW.js → color-scheme-switch-BpmV-r9p.js} +28 -29
  25. package/chunks/{combobox-f4uuMJcb.js → combobox-DQ3d6pLc.js} +16 -18
  26. package/chunks/{date-field-BCfp9ZpN.js → date-field-DSBHnHdN.js} +16 -17
  27. package/chunks/{date-picker-DH8j2eU9.js → date-picker-CLizY8Vq.js} +39 -40
  28. package/chunks/{drop-zone-DNhEbH4w.js → drop-zone-BL3Z-Sbj.js} +1 -2
  29. package/chunks/{field-error-BHoPnRe4.js → field-error-C5ynuTRu.js} +2 -3
  30. package/chunks/{file-list-DT3zkJbO.js → file-list-etDe20pj.js} +9 -10
  31. package/chunks/{file-trigger-Dp5nH8oS.js → file-trigger-gOeeZzDP.js} +1 -2
  32. package/chunks/{grid-SIgkSK_-.js → grid-CFn_pqQX.js} +1 -2
  33. package/chunks/{heading-DcOjYrUM.js → heading-CIlMdywy.js} +1 -2
  34. package/chunks/{icons-UBHIX2oV.js → icons-a0WawN46.js} +1 -2
  35. package/chunks/{info-banner-DXjPEG69.js → info-banner-BKB7_CPh.js} +6 -7
  36. package/chunks/{label-2ac-zqbe.js → label-B5-Kmj4t.js} +8 -9
  37. package/chunks/{layout-BT-UgQne.js → layout-Cs8Oc8sf.js} +82 -83
  38. package/chunks/{link-B76JDA2N.js → link-CG_mHnLv.js} +2 -3
  39. package/chunks/{link-button-BeXxC22w.js → link-button-4xRbQqH2.js} +2 -3
  40. package/chunks/{list-box-BzBJX0nP.js → list-box-frfQGO1x.js} +5 -6
  41. package/chunks/{logo-DSJ1bUJZ.js → logo-Xe8PO0US.js} +2 -3
  42. package/chunks/{menu-DbQ98noD.js → menu-7gP2Sovj.js} +1 -2
  43. package/chunks/{modal-CzApHmjO.js → modal-BQrpnHT5.js} +15 -17
  44. package/chunks/{popover-B82BcP5n.js → popover-C7Ain5Qz.js} +1 -2
  45. package/chunks/{progress-bar-CJOm7oiN.js → progress-bar-DE7UoEWR.js} +9 -10
  46. package/chunks/{radio-DgFKSBa5.js → radio-DAB7WeIP.js} +17 -18
  47. package/chunks/{search-field-CpQnnJKa.js → search-field-BI1h0UBl.js} +23 -25
  48. package/chunks/{select-CdVW8cwA.js → select-BHpUGcW7.js} +38 -40
  49. package/chunks/{skeleton-R_3dS7Ro.js → skeleton-6y5HNJZp.js} +1 -2
  50. package/chunks/{spinner-CIjfJeGm.js → spinner-YKC-Vk3v.js} +2 -3
  51. package/chunks/{splitDataAttributes-_JTFOOIb.js → splitDataAttributes-ChyO_Kvc.js} +1 -2
  52. package/chunks/{stack-BAHKom_Q.js → stack-DKjRicm1.js} +1 -2
  53. package/chunks/{table-D02AQ0Xr.js → table-Fsf-jJip.js} +16 -17
  54. package/chunks/{tabs-CbcNTa7J.js → tabs-ZCpVhr_r.js} +2 -3
  55. package/chunks/{tag-BEawJnJm.js → tag-B1suqFhD.js} +2 -3
  56. package/chunks/{text-DnvD4Cjc.js → text-D7tnzTru.js} +1 -2
  57. package/chunks/textfield-C-lRIIil.js +110 -0
  58. package/chunks/time-field-1I6BMlaj.js +59 -0
  59. package/chunks/{toast-B8J42Yss.js → toast-DTqQhHFN.js} +13 -14
  60. package/chunks/{toggle-button-DD_bXanH.js → toggle-button-BVyG8F2K.js} +6 -7
  61. package/chunks/{tooltip-1GBTeMrm.js → tooltip-CR1uxtPd.js} +2 -4
  62. package/chunks/{useLocalizedStringFormatter-CeyBc0x0.js → useLocalizedStringFormatter-DhIAL1D7.js} +1 -2
  63. package/clear-button/index.js +1 -1
  64. package/color-scheme-switch/index.js +1 -1
  65. package/combobox/index.js +1 -1
  66. package/date-field/index.js +1 -1
  67. package/date-picker/index.js +1 -1
  68. package/drop-zone/index.js +1 -1
  69. package/field-error/index.js +1 -1
  70. package/file-list/index.js +1 -1
  71. package/file-trigger/index.js +1 -1
  72. package/grid/index.js +1 -1
  73. package/heading/index.js +1 -1
  74. package/icons/index.js +1 -1
  75. package/index.js +51 -53
  76. package/info-banner/index.js +1 -1
  77. package/label/index.js +1 -1
  78. package/layout/index.js +1 -1
  79. package/link/index.js +1 -1
  80. package/link-button/index.js +1 -1
  81. package/list-box/index.js +1 -1
  82. package/logo/index.js +1 -1
  83. package/menu/index.js +1 -1
  84. package/modal/index.js +1 -1
  85. package/package.json +2 -2
  86. package/popover/index.js +1 -1
  87. package/progress-bar/index.js +1 -1
  88. package/radio/index.js +1 -1
  89. package/search-field/index.js +1 -1
  90. package/select/index.js +1 -1
  91. package/skeleton/index.js +1 -1
  92. package/spinner/index.js +1 -1
  93. package/stack/index.js +1 -1
  94. package/table/index.js +1 -1
  95. package/tabs/index.js +1 -1
  96. package/tag/index.js +1 -1
  97. package/text/index.js +1 -1
  98. package/textfield/index.js +1 -1
  99. package/time-field/index.js +1 -1
  100. package/toast/index.js +1 -1
  101. package/toggle-button/index.js +1 -1
  102. package/tooltip/index.js +1 -1
  103. package/chunks/textfield-CeFppAMx.js +0 -113
  104. package/chunks/time-field-H-mXlxua.js +0 -60
@@ -1,10 +1,10 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-DAqHMl_k.js";
3
- import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
4
- import { n } from "./button-dpe6hXmI.js";
5
- import { t as r } from "./icons-UBHIX2oV.js";
6
- import { n as i, t as a } from "./toggle-button-DD_bXanH.js";
7
- import { a as o, o as s, r as c } from "./menu-DbQ98noD.js";
2
+ import { t as e } from "./icons-a0WawN46.js";
3
+ import { n as t, t as n } from "./toggle-button-BVyG8F2K.js";
4
+ import { t as r } from "./useLocalizedStringFormatter-DhIAL1D7.js";
5
+ import { n as i } from "./button-S2AY4EEn.js";
6
+ import { a, o, r as s } from "./menu-7gP2Sovj.js";
7
+ import { t as c } from "./clsx-BtGY0yFD.js";
8
8
  import * as l from "react";
9
9
  import { useEffect as u, useState as d } from "react";
10
10
  import { MenuItem as f, SelectionIndicator as p } from "react-aria-components";
@@ -44,14 +44,14 @@ import '../assets/color-scheme-switch.css';var b = {
44
44
  a(e), r?.(e);
45
45
  }
46
46
  };
47
- }, C = ({ selector: e = ":root", defaultScheme: n = "light dark", scheme: o, onSchemeChange: s, defaultValue: c, className: l }) => {
47
+ }, C = ({ selector: i = ":root", defaultScheme: a = "light dark", scheme: o, onSchemeChange: s, defaultValue: c, className: l }) => {
48
48
  let { resolved: u, onChange: d } = S({
49
- selector: e,
50
- defaultScheme: c ? Array.from(c)[0] : n,
49
+ selector: i,
50
+ defaultScheme: c ? Array.from(c)[0] : a,
51
51
  scheme: o,
52
52
  onSchemeChange: s
53
- }), f = t(x);
54
- return /* @__PURE__ */ h(a, {
53
+ }), f = r(x);
54
+ return /* @__PURE__ */ h(n, {
55
55
  selectionMode: "single",
56
56
  selectedKeys: /* @__PURE__ */ new Set([u]),
57
57
  onSelectionChange: (e) => {
@@ -61,7 +61,7 @@ import '../assets/color-scheme-switch.css';var b = {
61
61
  "aria-label": f.format("colorScheme"),
62
62
  className: l,
63
63
  children: [
64
- /* @__PURE__ */ h(i, {
64
+ /* @__PURE__ */ h(t, {
65
65
  id: "light",
66
66
  className: b.button,
67
67
  children: [
@@ -70,7 +70,7 @@ import '../assets/color-scheme-switch.css';var b = {
70
70
  /* @__PURE__ */ m(p, { className: b.selectionIndicator })
71
71
  ]
72
72
  }),
73
- /* @__PURE__ */ h(i, {
73
+ /* @__PURE__ */ h(t, {
74
74
  id: "dark",
75
75
  className: b.button,
76
76
  children: [
@@ -79,11 +79,11 @@ import '../assets/color-scheme-switch.css';var b = {
79
79
  /* @__PURE__ */ m(p, { className: b.selectionIndicator })
80
80
  ]
81
81
  }),
82
- /* @__PURE__ */ h(i, {
82
+ /* @__PURE__ */ h(t, {
83
83
  id: "light dark",
84
84
  className: b.button,
85
85
  children: [
86
- /* @__PURE__ */ m(r, {}),
86
+ /* @__PURE__ */ m(e, {}),
87
87
  /* @__PURE__ */ m(y, { children: f.format("system") }),
88
88
  /* @__PURE__ */ m(p, { className: b.selectionIndicator })
89
89
  ]
@@ -97,32 +97,32 @@ import '../assets/color-scheme-switch.css';var b = {
97
97
  menuItem: "_menuItem_y8ah9_21"
98
98
  }, T = {
99
99
  light: v,
100
- "light dark": r,
100
+ "light dark": e,
101
101
  dark: _
102
- }, E = (e) => e === "light" ? "triggerLightMode" : e === "dark" ? "triggerDarkMode" : "triggerSystem", D = ({ selector: i = ":root", defaultScheme: a = "light dark", scheme: u, onSchemeChange: d, className: p }) => {
102
+ }, E = (e) => e === "light" ? "triggerLightMode" : e === "dark" ? "triggerDarkMode" : "triggerSystem", D = ({ selector: t = ":root", defaultScheme: n = "light dark", scheme: u, onSchemeChange: d, className: p }) => {
103
103
  let { resolved: b, onChange: C } = S({
104
- selector: i,
105
- defaultScheme: a,
104
+ selector: t,
105
+ defaultScheme: n,
106
106
  scheme: u,
107
107
  onSchemeChange: d
108
108
  }), D = T[b];
109
109
  l.useEffect(() => {
110
- let e = document.querySelector(i);
111
- e ? b === "light dark" ? delete e.dataset.colorScheme : e.dataset.colorScheme = b : console.warn(`No element found for selector: "${i}"`);
112
- }, [b, i]);
113
- let O = t(x);
114
- return /* @__PURE__ */ h(s, { children: [/* @__PURE__ */ h(n, {
110
+ let e = document.querySelector(t);
111
+ e ? b === "light dark" ? delete e.dataset.colorScheme : e.dataset.colorScheme = b : console.warn(`No element found for selector: "${t}"`);
112
+ }, [b, t]);
113
+ let O = r(x);
114
+ return /* @__PURE__ */ h(o, { children: [/* @__PURE__ */ h(i, {
115
115
  variant: "icon",
116
116
  size: "medium",
117
- className: e(w.trigger, p),
117
+ className: c(w.trigger, p),
118
118
  "aria-label": O.format(E(b)),
119
119
  children: [/* @__PURE__ */ m(D, { size: 20 }), /* @__PURE__ */ m(g, {
120
120
  size: 20,
121
121
  className: w.chevron
122
122
  })]
123
- }), /* @__PURE__ */ m(c, {
123
+ }), /* @__PURE__ */ m(s, {
124
124
  placement: "bottom start",
125
- children: /* @__PURE__ */ h(o, {
125
+ children: /* @__PURE__ */ h(a, {
126
126
  onAction: (e) => C(e),
127
127
  className: w.menu,
128
128
  children: [
@@ -142,11 +142,10 @@ import '../assets/color-scheme-switch.css';var b = {
142
142
  id: "light dark",
143
143
  textValue: O.format("system"),
144
144
  className: w.menuItem,
145
- children: [/* @__PURE__ */ m(r, { size: 20 }), /* @__PURE__ */ m(y, { children: O.format("system") })]
145
+ children: [/* @__PURE__ */ m(e, { size: 20 }), /* @__PURE__ */ m(y, { children: O.format("system") })]
146
146
  })
147
147
  ]
148
148
  })
149
149
  })] });
150
150
  };
151
- //#endregion
152
151
  export { C as n, D as t };
@@ -1,10 +1,10 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-DAqHMl_k.js";
3
- import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
4
- import { n, t as r } from "./label-2ac-zqbe.js";
5
- import { t as i } from "./text-DnvD4Cjc.js";
6
- import { t as a } from "./field-error-BHoPnRe4.js";
7
- import { a as o, c as s, t as c } from "./list-box-BzBJX0nP.js";
2
+ import { t as e } from "./clsx-BtGY0yFD.js";
3
+ import { n as t, t as n } from "./label-B5-Kmj4t.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-frfQGO1x.js";
7
+ import { t as c } from "./useLocalizedStringFormatter-DhIAL1D7.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";
10
10
  import { jsx as p, jsxs as m } from "react/jsx-runtime";
@@ -27,10 +27,9 @@ import '../assets/combobox.css';var g = {
27
27
  noResultsFound: "Inga träffar"
28
28
  }
29
29
  };
30
- //#endregion
31
- //#region src/combobox/ComboBox.tsx
30
+ // src/combobox/ComboBox.tsx
32
31
  function v({ label: v, description: y, errorMessage: b, children: x, items: S, className: C, errorPosition: w = "top", size: T = "large", popover: E, listBoxProps: D, ...O }) {
33
- let k = l(null), A = t(_), j = (e) => {
32
+ let k = l(null), A = c(_), j = (e) => {
34
33
  e.currentTarget.value && k.current?.select();
35
34
  };
36
35
  return /* @__PURE__ */ m(d, {
@@ -38,15 +37,15 @@ function v({ label: v, description: y, errorMessage: b, children: x, items: S, c
38
37
  ...O,
39
38
  "data-readonly": O.isReadOnly || void 0,
40
39
  children: [
41
- /* @__PURE__ */ p(n, {
40
+ /* @__PURE__ */ p(t, {
42
41
  popover: E,
43
- children: v && /* @__PURE__ */ p(r, { children: v })
42
+ children: v && /* @__PURE__ */ p(n, { children: v })
44
43
  }),
45
- y && /* @__PURE__ */ p(i, {
44
+ y && /* @__PURE__ */ p(r, {
46
45
  slot: "description",
47
46
  children: y
48
47
  }),
49
- w === "top" && /* @__PURE__ */ p(a, {
48
+ w === "top" && /* @__PURE__ */ p(i, {
50
49
  "data-testid": "fieldError",
51
50
  children: b
52
51
  }),
@@ -70,15 +69,15 @@ function v({ label: v, description: y, errorMessage: b, children: x, items: S, c
70
69
  })
71
70
  })]
72
71
  }),
73
- w === "bottom" && /* @__PURE__ */ p(a, {
72
+ w === "bottom" && /* @__PURE__ */ p(i, {
74
73
  "data-testid": "fieldError",
75
74
  children: b
76
75
  }),
77
- /* @__PURE__ */ p(o, {
76
+ /* @__PURE__ */ p(a, {
78
77
  offset: 4,
79
- children: /* @__PURE__ */ p(s, {
78
+ children: /* @__PURE__ */ p(o, {
80
79
  items: S,
81
- renderEmptyState: () => /* @__PURE__ */ p(c, { children: A.format("noResultsFound") }),
80
+ renderEmptyState: () => /* @__PURE__ */ p(s, { children: A.format("noResultsFound") }),
82
81
  ...D,
83
82
  children: x
84
83
  })
@@ -86,5 +85,4 @@ function v({ label: v, description: y, errorMessage: b, children: x, items: S, c
86
85
  ]
87
86
  });
88
87
  }
89
- //#endregion
90
88
  export { v as t };
@@ -1,9 +1,9 @@
1
- import { t as e } from "./clsx-DAqHMl_k.js";
2
- import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
3
- import { n, t as r } from "./label-2ac-zqbe.js";
4
- import { t as i } from "./text-DnvD4Cjc.js";
5
- import { t as a } from "./field-error-BHoPnRe4.js";
6
- import { t as o } from "./clear-button-DWtOkhCH.js";
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-B5-Kmj4t.js";
4
+ import { t as i } from "./text-D7tnzTru.js";
5
+ import { t as a } from "./clear-button-CeQy0RdK.js";
6
+ import { t as o } from "./useLocalizedStringFormatter-DhIAL1D7.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";
9
9
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
@@ -16,23 +16,23 @@ import '../assets/date-field.css';var g = {
16
16
  inputField: "_inputField_t65wr_7",
17
17
  medium: "_medium_t65wr_41",
18
18
  clearButton: "_clearButton_t65wr_50"
19
- }, v = ({ isClearable: n, size: r, isDisabled: i, isReadOnly: a }) => {
20
- let c = t(g), u = s.useContext(l), d = h();
21
- return n && u?.value != null && !a ? /* @__PURE__ */ f(o, {
19
+ }, v = ({ isClearable: t, size: n, isDisabled: r, isReadOnly: i }) => {
20
+ let c = o(g), u = s.useContext(l), d = h();
21
+ return t && u?.value != null && !i ? /* @__PURE__ */ f(a, {
22
22
  onPress: () => {
23
23
  u?.setValue(null), d?.focusFirst();
24
24
  },
25
- size: r,
26
- isDisabled: i,
25
+ size: n,
26
+ isDisabled: r,
27
27
  "aria-label": c.format("clear"),
28
- className: e(_.clearButton, { [_.medium]: r === "medium" })
28
+ className: e(_.clearButton, { [_.medium]: n === "medium" })
29
29
  }) : null;
30
- }, y = s.forwardRef(({ className: t, description: o, errorMessage: s, errorPosition: l = "top", label: u, size: d = "large", popover: h, isClearable: g = !1, isReadOnly: y, isDisabled: b, ...S }, w) => /* @__PURE__ */ p(c, {
30
+ }, y = s.forwardRef(({ className: a, description: o, errorMessage: s, errorPosition: l = "top", label: u, size: d = "large", popover: h, isClearable: g = !1, isReadOnly: y, isDisabled: b, ...S }, w) => /* @__PURE__ */ p(c, {
31
31
  ...S,
32
32
  ref: w,
33
33
  isReadOnly: y,
34
34
  isDisabled: b,
35
- className: e(_.dateField, t),
35
+ className: e(_.dateField, a),
36
36
  children: [
37
37
  /* @__PURE__ */ f(n, {
38
38
  popover: h,
@@ -42,7 +42,7 @@ import '../assets/date-field.css';var g = {
42
42
  slot: "description",
43
43
  children: o
44
44
  }),
45
- l === "top" && /* @__PURE__ */ f(a, { children: s }),
45
+ l === "top" && /* @__PURE__ */ f(t, { children: s }),
46
46
  /* @__PURE__ */ f("div", {
47
47
  className: e(_.inputField, { [_.medium]: d === "medium" }),
48
48
  "data-testid": "date-field_input-field",
@@ -53,7 +53,7 @@ import '../assets/date-field.css';var g = {
53
53
  isReadOnly: y
54
54
  })] })
55
55
  }),
56
- l === "bottom" && /* @__PURE__ */ f(a, { children: s })
56
+ l === "bottom" && /* @__PURE__ */ f(t, { children: s })
57
57
  ]
58
58
  })), b = { dateSegment: "_dateSegment_15g5c_1" }, x = ({ className: t, ...n }) => /* @__PURE__ */ f(d, {
59
59
  className: e(b.dateSegment, t),
@@ -69,5 +69,4 @@ import '../assets/date-field.css';var g = {
69
69
  className: S.divider,
70
70
  children: "-"
71
71
  });
72
- //#endregion
73
72
  export { y as i, C as n, x as r, w as t };
@@ -1,12 +1,12 @@
1
1
  'use client';
2
- import { t as e } from "./useLocalizedStringFormatter-CeyBc0x0.js";
3
- import { n as t } from "./button-dpe6hXmI.js";
4
- import { n, t as r } from "./calendar-Bq2qqFIW.js";
5
- import { n as i, t as a } from "./label-2ac-zqbe.js";
6
- import { t as o } from "./text-DnvD4Cjc.js";
7
- import { t as s } from "./field-error-BHoPnRe4.js";
8
- import { t as c } from "./clear-button-DWtOkhCH.js";
9
- import { n as l, r as u, t as d } from "./date-field-BCfp9ZpN.js";
2
+ import { t as e } from "./clear-button-CeQy0RdK.js";
3
+ import { t } from "./useLocalizedStringFormatter-DhIAL1D7.js";
4
+ import { n } from "./button-S2AY4EEn.js";
5
+ import { n as r, t as i } from "./calendar-BOTC3DKx.js";
6
+ import { n as a, r as o, t as s } from "./date-field-DSBHnHdN.js";
7
+ import { t as c } from "./field-error-C5ynuTRu.js";
8
+ import { n as l, t as u } from "./label-B5-Kmj4t.js";
9
+ import { t as d } from "./text-D7tnzTru.js";
10
10
  import * as f from "react";
11
11
  import { clsx as p } from "clsx";
12
12
  import { DatePicker as m, DatePickerStateContext as h, DateRangePicker as g, DateRangePickerStateContext as _, Group as v, Popover as y } from "react-aria-components";
@@ -30,32 +30,32 @@ import '../assets/date-picker.css';var T = {
30
30
  buttonGroup: "_buttonGroup_14wog_52",
31
31
  iconButton: "_iconButton_14wog_58",
32
32
  popover: "_popover_14wog_81 _dropdownAnimation_1ljkv_4"
33
- }, D = (e) => !!e && !!e.value && Object.prototype.hasOwnProperty.call(e.value, "start"), O = ({ isClearable: t, isDisabled: n, isReadOnly: r, size: i }) => {
34
- let a = f.useContext(h), o = f.useContext(_), s = e(T), l = w(), u = o ?? a, d = D(u) ? !!u.value.start && u.value.end : !!u?.value;
35
- return t && d && !r ? /* @__PURE__ */ b(c, {
33
+ }, D = (e) => !!e && !!e.value && Object.prototype.hasOwnProperty.call(e.value, "start"), O = ({ isClearable: n, isDisabled: r, isReadOnly: i, size: a }) => {
34
+ let o = f.useContext(h), s = f.useContext(_), c = t(T), l = w(), u = s ?? o, d = D(u) ? !!u.value.start && u.value.end : !!u?.value;
35
+ return n && d && !i ? /* @__PURE__ */ b(e, {
36
36
  onPress: () => {
37
37
  u?.setValue(null), l?.focusFirst();
38
38
  },
39
- size: i,
40
- isDisabled: n,
41
- "aria-label": s.format("clear"),
42
- className: p(E.iconButton, { [E.medium]: i === "medium" })
39
+ size: a,
40
+ isDisabled: r,
41
+ "aria-label": c.format("clear"),
42
+ className: p(E.iconButton, { [E.medium]: a === "medium" })
43
43
  }) : null;
44
- }, k = ({ children: n, isDisabled: r, isInvalid: i, isReadOnly: a, size: o = "large", isClearable: s = !1 }) => {
45
- let c = e(T);
44
+ }, k = ({ children: e, isDisabled: r, isInvalid: i, isReadOnly: a, size: o = "large", isClearable: s = !1 }) => {
45
+ let c = t(T);
46
46
  return /* @__PURE__ */ b(v, {
47
47
  className: p(E.inputField, {
48
48
  [E.medium]: o === "medium",
49
49
  [E.readOnly]: a
50
50
  }),
51
- children: /* @__PURE__ */ x(C, { children: [n, /* @__PURE__ */ x("div", {
51
+ children: /* @__PURE__ */ x(C, { children: [e, /* @__PURE__ */ x("div", {
52
52
  className: E.buttonGroup,
53
53
  children: [/* @__PURE__ */ b(O, {
54
54
  isClearable: s,
55
55
  isDisabled: r,
56
56
  isReadOnly: a,
57
57
  size: o
58
- }), /* @__PURE__ */ b(t, {
58
+ }), /* @__PURE__ */ b(n, {
59
59
  variant: "icon",
60
60
  "aria-label": c.format("open-calendar"),
61
61
  className: p(E.iconButton, {
@@ -74,48 +74,48 @@ import '../assets/date-picker.css';var T = {
74
74
  }, A = ({ children: e }) => /* @__PURE__ */ b(y, {
75
75
  className: E.popover,
76
76
  children: e
77
- }), j = f.forwardRef(({ className: e, description: t, errorMessage: r, errorPosition: c = "top", label: d, popover: f, isClearable: h = !1, isReadOnly: g, isDisabled: _, size: v, ...y }, S) => /* @__PURE__ */ x(m, {
77
+ }), j = f.forwardRef(({ className: e, description: t, errorMessage: n, errorPosition: i = "top", label: s, popover: f, isClearable: h = !1, isReadOnly: g, isDisabled: _, size: v, ...y }, S) => /* @__PURE__ */ x(m, {
78
78
  className: p(E.datePicker, e),
79
79
  isReadOnly: g,
80
80
  isDisabled: _,
81
81
  ref: S,
82
82
  ...y,
83
83
  children: [
84
- /* @__PURE__ */ b(i, {
84
+ /* @__PURE__ */ b(l, {
85
85
  popover: f,
86
- children: d && /* @__PURE__ */ b(a, { children: d })
86
+ children: s && /* @__PURE__ */ b(u, { children: s })
87
87
  }),
88
- t && /* @__PURE__ */ b(o, {
88
+ t && /* @__PURE__ */ b(d, {
89
89
  slot: "description",
90
90
  children: t
91
91
  }),
92
- c === "top" && /* @__PURE__ */ b(s, { children: r }),
92
+ i === "top" && /* @__PURE__ */ b(c, { children: n }),
93
93
  /* @__PURE__ */ b(k, {
94
94
  isClearable: h,
95
95
  isReadOnly: g,
96
96
  isDisabled: _,
97
97
  size: v,
98
98
  ...y,
99
- children: /* @__PURE__ */ b(l, { children: (e) => /* @__PURE__ */ b(u, { segment: e }) })
99
+ children: /* @__PURE__ */ b(a, { children: (e) => /* @__PURE__ */ b(o, { segment: e }) })
100
100
  }),
101
- c === "bottom" && /* @__PURE__ */ b(s, { children: r }),
102
- /* @__PURE__ */ b(A, { children: /* @__PURE__ */ b(n, {}) })
101
+ i === "bottom" && /* @__PURE__ */ b(c, { children: n }),
102
+ /* @__PURE__ */ b(A, { children: /* @__PURE__ */ b(r, {}) })
103
103
  ]
104
- })), M = ({ className: e, description: t, errorMessage: n, errorPosition: c = "top", label: f, popover: m, isClearable: h = !1, isReadOnly: _, isDisabled: v, size: y, ...S }) => /* @__PURE__ */ x(g, {
104
+ })), M = ({ className: e, description: t, errorMessage: n, errorPosition: r = "top", label: f, popover: m, isClearable: h = !1, isReadOnly: _, isDisabled: v, size: y, ...S }) => /* @__PURE__ */ x(g, {
105
105
  className: p(E.datePicker, e),
106
106
  isReadOnly: _,
107
107
  isDisabled: v,
108
108
  ...S,
109
109
  children: [
110
- /* @__PURE__ */ b(i, {
110
+ /* @__PURE__ */ b(l, {
111
111
  popover: m,
112
- children: f && /* @__PURE__ */ b(a, { children: f })
112
+ children: f && /* @__PURE__ */ b(u, { children: f })
113
113
  }),
114
- t && /* @__PURE__ */ b(o, {
114
+ t && /* @__PURE__ */ b(d, {
115
115
  slot: "description",
116
116
  children: t
117
117
  }),
118
- c === "top" && /* @__PURE__ */ b(s, { children: n }),
118
+ r === "top" && /* @__PURE__ */ b(c, { children: n }),
119
119
  /* @__PURE__ */ x(k, {
120
120
  isClearable: h,
121
121
  isReadOnly: _,
@@ -123,20 +123,19 @@ import '../assets/date-picker.css';var T = {
123
123
  size: y,
124
124
  ...S,
125
125
  children: [
126
- /* @__PURE__ */ b(l, {
126
+ /* @__PURE__ */ b(a, {
127
127
  slot: "start",
128
- children: (e) => /* @__PURE__ */ b(u, { segment: e })
128
+ children: (e) => /* @__PURE__ */ b(o, { segment: e })
129
129
  }),
130
- /* @__PURE__ */ b(d, {}),
131
- /* @__PURE__ */ b(l, {
130
+ /* @__PURE__ */ b(s, {}),
131
+ /* @__PURE__ */ b(a, {
132
132
  slot: "end",
133
- children: (e) => /* @__PURE__ */ b(u, { segment: e })
133
+ children: (e) => /* @__PURE__ */ b(o, { segment: e })
134
134
  })
135
135
  ]
136
136
  }),
137
- c === "bottom" && /* @__PURE__ */ b(s, { children: n }),
138
- /* @__PURE__ */ b(A, { children: /* @__PURE__ */ b(r, {}) })
137
+ r === "bottom" && /* @__PURE__ */ b(c, { children: n }),
138
+ /* @__PURE__ */ b(A, { children: /* @__PURE__ */ b(i, {}) })
139
139
  ]
140
140
  });
141
- //#endregion
142
141
  export { j as n, M as t };
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-DAqHMl_k.js";
2
+ import { t as e } from "./clsx-BtGY0yFD.js";
3
3
  import { forwardRef as t } from "react";
4
4
  import { DropZone as n, FieldErrorContext as r, composeRenderProps as i } from "react-aria-components";
5
5
  import { jsx as a } from "react/jsx-runtime";
@@ -21,5 +21,4 @@ import '../assets/drop-zone.css';var o = { dropZone: "_dropZone_1g3sx_1" }, s =
21
21
  });
22
22
  });
23
23
  s.displayName = "DropZone";
24
- //#endregion
25
24
  export { s as t };
@@ -1,5 +1,5 @@
1
- import { t as e } from "./clsx-DAqHMl_k.js";
2
- import { t } from "./text-DnvD4Cjc.js";
1
+ import { t as e } from "./clsx-BtGY0yFD.js";
2
+ import { t } from "./text-D7tnzTru.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";
@@ -15,5 +15,4 @@ import '../assets/field-error.css';var s = { fieldError: "_fieldError_u3cks_1" }
15
15
  }) : null;
16
16
  });
17
17
  c.displayName = "FieldError";
18
- //#endregion
19
18
  export { c as t };
@@ -1,10 +1,10 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-DAqHMl_k.js";
3
- import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
4
- import { n } from "./button-dpe6hXmI.js";
5
- import { t as r } from "./FeedbackStatusIcon-DvMDGBGL.js";
6
- import { t as i } from "./field-error-BHoPnRe4.js";
7
- import { t as a } from "./progress-bar-CJOm7oiN.js";
2
+ import { t as e } from "./clsx-BtGY0yFD.js";
3
+ import { n as t } from "./button-S2AY4EEn.js";
4
+ import { t as n } from "./progress-bar-DE7UoEWR.js";
5
+ import { t as r } from "./FeedbackStatusIcon-Ba31xgcy.js";
6
+ import { t as i } from "./field-error-C5ynuTRu.js";
7
+ import { t as a } from "./useLocalizedStringFormatter-DhIAL1D7.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";
10
10
  import { Trash2 as f, X as p } from "lucide-react";
@@ -62,7 +62,7 @@ import '../assets/file-list.css';var _ = {
62
62
  uploadFailed: "Uppladdning misslyckades"
63
63
  }
64
64
  }, x = ({ fileName: o, fileSize: c, status: m = "idle", progress: g, errorMessage: v, onCancel: y, onDelete: x, className: S }) => {
65
- let C = t(b), w = m === "uploading", T = m === "success", E = m === "error", D = E && !!v, O = s(), k = s(), A = T ? C.format("uploadComplete") : E ? C.format("uploadFailed") : void 0, j = [A && k, D && O].filter(Boolean).join(" ") || void 0, M = w ? y ?? x : x;
65
+ let C = a(b), w = m === "uploading", T = m === "success", E = m === "error", D = E && !!v, O = s(), k = s(), A = T ? C.format("uploadComplete") : E ? C.format("uploadFailed") : void 0, j = [A && k, D && O].filter(Boolean).join(" ") || void 0, M = w ? y ?? x : x;
66
66
  return /* @__PURE__ */ d("li", {
67
67
  className: e(_.fileListItem, S),
68
68
  "data-status": m,
@@ -73,7 +73,7 @@ import '../assets/file-list.css';var _ = {
73
73
  /* @__PURE__ */ d("span", {
74
74
  className: _.iconSlot,
75
75
  children: [
76
- w && /* @__PURE__ */ u(a, {
76
+ w && /* @__PURE__ */ u(n, {
77
77
  shape: "circular",
78
78
  small: !0,
79
79
  value: g,
@@ -107,7 +107,7 @@ import '../assets/file-list.css';var _ = {
107
107
  children: c
108
108
  })] })]
109
109
  }),
110
- M && /* @__PURE__ */ u(n, {
110
+ M && /* @__PURE__ */ u(t, {
111
111
  variant: "icon",
112
112
  onPress: M,
113
113
  "aria-label": `${C.format(w ? "cancelUpload" : "removeFile")} ${o}`,
@@ -135,5 +135,4 @@ import '../assets/file-list.css';var _ = {
135
135
  ]
136
136
  });
137
137
  };
138
- //#endregion
139
138
  export { v as n, x as t };
@@ -1,7 +1,6 @@
1
1
  'use client';
2
2
  import { FileTrigger as e } from "react-aria-components";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
- //#region src/file-trigger/FileTrigger.tsx
4
+ // src/file-trigger/FileTrigger.tsx
5
5
  var n = (n) => /* @__PURE__ */ t(e, { ...n });
6
- //#endregion
7
6
  export { n as t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./clsx-DAqHMl_k.js";
1
+ import { t as e } from "./clsx-BtGY0yFD.js";
2
2
  import "react";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  import '../assets/grid.css';var n = {
@@ -221,5 +221,4 @@ import '../assets/grid.css';var n = {
221
221
  children: r
222
222
  });
223
223
  }, a = (e) => e ? typeof e == "object" ? Object.entries(e).map(([e, t]) => e === "xs" ? `col-${t}` : `col-${e}-${t}`) : [`col-${e}`] : [], o = (e) => e ? typeof e == "object" ? Object.entries(e).map(([e, t]) => e === "xs" ? `offset-${t}` : `offset-${e}-${t}`) : [`offset-${e}`] : [];
224
- //#endregion
225
224
  export { r as n, i as t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./clsx-DAqHMl_k.js";
1
+ import { t as e } from "./clsx-BtGY0yFD.js";
2
2
  import "react";
3
3
  import { Heading as t } from "react-aria-components";
4
4
  import { jsx as n } from "react/jsx-runtime";
@@ -27,5 +27,4 @@ import '../assets/heading.css';var r = {
27
27
  children: i
28
28
  });
29
29
  };
30
- //#endregion
31
30
  export { i as t };
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { forwardRef as e } from "react";
3
3
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
- //#region src/icons/ContrastFilled.tsx
4
+ // src/icons/ContrastFilled.tsx
5
5
  var r = e(({ size: e = 24, color: r = "currentColor", strokeWidth: i = 2, className: a, ...o }, s) => /* @__PURE__ */ n("svg", {
6
6
  ref: s,
7
7
  xmlns: "http://www.w3.org/2000/svg",
@@ -26,5 +26,4 @@ var r = e(({ size: e = 24, color: r = "currentColor", strokeWidth: i = 2, classN
26
26
  })]
27
27
  }));
28
28
  r.displayName = "ContrastFilled";
29
- //#endregion
30
29
  export { r as t };
@@ -1,7 +1,7 @@
1
- import { t as e } from "./clsx-DAqHMl_k.js";
2
- import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
3
- import { n } from "./button-dpe6hXmI.js";
4
- import { t as r } from "./FeedbackStatusIcon-DvMDGBGL.js";
1
+ import { t as e } from "./clsx-BtGY0yFD.js";
2
+ import { n as t } from "./button-S2AY4EEn.js";
3
+ import { t as n } from "./useLocalizedStringFormatter-DhIAL1D7.js";
4
+ import { t as r } from "./FeedbackStatusIcon-Ba31xgcy.js";
5
5
  import "react";
6
6
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
7
  import { X as o } from "lucide-react";
@@ -21,7 +21,7 @@ import '../assets/info-banner.css';var c = {
21
21
  en: { close: "Close" },
22
22
  sv: { close: "Stäng" }
23
23
  }, u = ({ title: u, message: d, type: f, children: p, isDismissable: m = !1, defaultOpen: h = !0, isOpen: g, onOpenChange: _, ...v }) => {
24
- let [y, b] = s(g, h, _), x = t(l), S = () => {
24
+ let [y, b] = s(g, h, _), x = n(l), S = () => {
25
25
  b(!1);
26
26
  };
27
27
  return y ? /* @__PURE__ */ a("aside", {
@@ -45,7 +45,7 @@ import '../assets/info-banner.css';var c = {
45
45
  }),
46
46
  m && /* @__PURE__ */ i("div", {
47
47
  className: c.dismissable,
48
- children: /* @__PURE__ */ i(n, {
48
+ children: /* @__PURE__ */ i(t, {
49
49
  variant: "icon",
50
50
  "aria-label": x.format("close"),
51
51
  onPress: S,
@@ -55,5 +55,4 @@ import '../assets/info-banner.css';var c = {
55
55
  ]
56
56
  }) : null;
57
57
  };
58
- //#endregion
59
58
  export { u as t };
@@ -1,8 +1,8 @@
1
- import { t as e } from "./clsx-DAqHMl_k.js";
2
- import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
3
- import { n } from "./button-dpe6hXmI.js";
4
- import { t as r } from "./popover-B82BcP5n.js";
5
- import { t as i } from "./modal-CzApHmjO.js";
1
+ import { t as e } from "./clsx-BtGY0yFD.js";
2
+ import { t } from "./popover-C7Ain5Qz.js";
3
+ import { n } from "./button-S2AY4EEn.js";
4
+ import { t as r } from "./modal-BQrpnHT5.js";
5
+ import { t as i } from "./useLocalizedStringFormatter-DhIAL1D7.js";
6
6
  import * as a from "react";
7
7
  import o, { useContext as s } from "react";
8
8
  import { Label as c } from "react-aria-components";
@@ -15,8 +15,8 @@ import '../assets/label.css';var f = { labelBase: "_labelBase_f5wtf_1" }, p = {
15
15
  en: { moreInfo: "More info" },
16
16
  sv: { moreInfo: "Mer information" }
17
17
  }, h = ({ children: e, "aria-label": a }) => {
18
- let o = s(g), c = t(m);
19
- return /* @__PURE__ */ u(i, { children: [/* @__PURE__ */ l(n, {
18
+ let o = s(g), c = i(m);
19
+ return /* @__PURE__ */ u(r, { children: [/* @__PURE__ */ l(n, {
20
20
  "aria-label": a || c.format("moreInfo"),
21
21
  className: p.labelPopoverTrigger,
22
22
  id: o?.popoverId,
@@ -24,7 +24,7 @@ import '../assets/label.css';var f = { labelBase: "_labelBase_f5wtf_1" }, p = {
24
24
  slot: null,
25
25
  variant: "icon",
26
26
  children: /* @__PURE__ */ l(d, { size: 20 })
27
- }), /* @__PURE__ */ l(r, { children: e })] });
27
+ }), /* @__PURE__ */ l(t, { children: e })] });
28
28
  }, g = o.createContext(void 0), _ = ({ children: e, popover: t }) => {
29
29
  let n = o.useId();
30
30
  return t ? /* @__PURE__ */ l(g.Provider, {
@@ -46,5 +46,4 @@ import '../assets/label.css';var f = { labelBase: "_labelBase_f5wtf_1" }, p = {
46
46
  children: t
47
47
  });
48
48
  };
49
- //#endregion
50
49
  export { _ as n, y as t };