@midas-ds/components 17.33.5 → 17.33.7

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 (107) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/accordion/index.js +1 -1
  3. package/assets/date-field.css +1 -1
  4. package/assets/date-picker.css +1 -1
  5. package/badge/index.js +1 -1
  6. package/breadcrumbs/index.js +1 -1
  7. package/button/index.js +1 -1
  8. package/calendar/index.js +1 -1
  9. package/card/index.js +1 -1
  10. package/character-counter/index.js +1 -1
  11. package/checkbox/index.js +1 -1
  12. package/chunks/{Button.module-0C2ArlRs.js → Button.module-CXkKBjuB.js} +0 -1
  13. package/chunks/{FeedbackStatusIcon-DvMDGBGL.js → FeedbackStatusIcon-Ba31xgcy.js} +1 -2
  14. package/chunks/{TextField.module-Bg4LNalb.js → TextField.module-B-5HJOZt.js} +0 -1
  15. package/chunks/{accordion-DRXQI8XG.js → accordion-BKnABSyU.js} +4 -5
  16. package/chunks/{badge-C4bXJmhn.js → badge-C5Sdu_uw.js} +1 -2
  17. package/chunks/{breadcrumbs-BGnyY3bO.js → breadcrumbs-BwYDyKWo.js} +1 -2
  18. package/chunks/{button-dpe6hXmI.js → button-S2AY4EEn.js} +4 -5
  19. package/chunks/{calendar-Bq2qqFIW.js → calendar-BOTC3DKx.js} +26 -27
  20. package/chunks/{card-C0S9Kyi2.js → card-mIB1NewO.js} +3 -4
  21. package/chunks/{character-counter-CSoVSrxZ.js → character-counter-IbkPoEcq.js} +0 -1
  22. package/chunks/{checkbox-BGxv1TyT.js → checkbox-CzH8BdsB.js} +38 -40
  23. package/chunks/{clear-button-DWtOkhCH.js → clear-button-CeQy0RdK.js} +2 -3
  24. package/chunks/{clsx-DAqHMl_k.js → clsx-BtGY0yFD.js} +1 -2
  25. package/chunks/{color-scheme-switch-D7EpvqTW.js → color-scheme-switch-BpmV-r9p.js} +28 -29
  26. package/chunks/{combobox-f4uuMJcb.js → combobox-DQ3d6pLc.js} +16 -18
  27. package/chunks/date-field-CdlSlO7A.js +76 -0
  28. package/chunks/date-picker-IJI2Bxlx.js +144 -0
  29. package/chunks/{drop-zone-DNhEbH4w.js → drop-zone-BL3Z-Sbj.js} +1 -2
  30. package/chunks/{field-error-BHoPnRe4.js → field-error-C5ynuTRu.js} +2 -3
  31. package/chunks/{file-list-DT3zkJbO.js → file-list-etDe20pj.js} +9 -10
  32. package/chunks/{file-trigger-Dp5nH8oS.js → file-trigger-gOeeZzDP.js} +1 -2
  33. package/chunks/{grid-SIgkSK_-.js → grid-CFn_pqQX.js} +1 -2
  34. package/chunks/{heading-DcOjYrUM.js → heading-CIlMdywy.js} +1 -2
  35. package/chunks/{icons-UBHIX2oV.js → icons-a0WawN46.js} +1 -2
  36. package/chunks/{info-banner-DXjPEG69.js → info-banner-BKB7_CPh.js} +6 -7
  37. package/chunks/{label-2ac-zqbe.js → label-B5-Kmj4t.js} +8 -9
  38. package/chunks/{layout-BT-UgQne.js → layout-Cs8Oc8sf.js} +82 -83
  39. package/chunks/{link-B76JDA2N.js → link-CG_mHnLv.js} +2 -3
  40. package/chunks/{link-button-BeXxC22w.js → link-button-4xRbQqH2.js} +2 -3
  41. package/chunks/{list-box-BzBJX0nP.js → list-box-frfQGO1x.js} +5 -6
  42. package/chunks/{logo-DSJ1bUJZ.js → logo-Xe8PO0US.js} +2 -3
  43. package/chunks/{menu-DbQ98noD.js → menu-7gP2Sovj.js} +1 -2
  44. package/chunks/{modal-CzApHmjO.js → modal-BQrpnHT5.js} +15 -17
  45. package/chunks/{popover-B82BcP5n.js → popover-C7Ain5Qz.js} +1 -2
  46. package/chunks/{progress-bar-CJOm7oiN.js → progress-bar-DE7UoEWR.js} +9 -10
  47. package/chunks/{radio-DgFKSBa5.js → radio-DAB7WeIP.js} +17 -18
  48. package/chunks/{search-field-CpQnnJKa.js → search-field-BI1h0UBl.js} +23 -25
  49. package/chunks/{select-CdVW8cwA.js → select-BHpUGcW7.js} +38 -40
  50. package/chunks/{skeleton-R_3dS7Ro.js → skeleton-6y5HNJZp.js} +1 -2
  51. package/chunks/{spinner-CIjfJeGm.js → spinner-YKC-Vk3v.js} +2 -3
  52. package/chunks/{splitDataAttributes-_JTFOOIb.js → splitDataAttributes-ChyO_Kvc.js} +1 -2
  53. package/chunks/{stack-BAHKom_Q.js → stack-DKjRicm1.js} +1 -2
  54. package/chunks/{table-D02AQ0Xr.js → table-Fsf-jJip.js} +16 -17
  55. package/chunks/{tabs-CbcNTa7J.js → tabs-ZCpVhr_r.js} +2 -3
  56. package/chunks/{tag-BEawJnJm.js → tag-B1suqFhD.js} +2 -3
  57. package/chunks/{text-DnvD4Cjc.js → text-D7tnzTru.js} +1 -2
  58. package/chunks/textfield-C-lRIIil.js +110 -0
  59. package/chunks/time-field-nbvqWpzf.js +59 -0
  60. package/chunks/{toast-B8J42Yss.js → toast-DTqQhHFN.js} +13 -14
  61. package/chunks/{toggle-button-DD_bXanH.js → toggle-button-BVyG8F2K.js} +6 -7
  62. package/chunks/{tooltip-1GBTeMrm.js → tooltip-CR1uxtPd.js} +2 -4
  63. package/chunks/{useLocalizedStringFormatter-CeyBc0x0.js → useLocalizedStringFormatter-DhIAL1D7.js} +1 -2
  64. package/clear-button/index.js +1 -1
  65. package/color-scheme-switch/index.js +1 -1
  66. package/combobox/index.js +1 -1
  67. package/date-field/index.js +1 -1
  68. package/date-picker/index.js +1 -1
  69. package/drop-zone/index.js +1 -1
  70. package/field-error/index.js +1 -1
  71. package/file-list/index.js +1 -1
  72. package/file-trigger/index.js +1 -1
  73. package/grid/index.js +1 -1
  74. package/heading/index.js +1 -1
  75. package/icons/index.js +1 -1
  76. package/index.js +50 -52
  77. package/info-banner/index.js +1 -1
  78. package/label/index.js +1 -1
  79. package/layout/index.js +1 -1
  80. package/link/index.js +1 -1
  81. package/link-button/index.js +1 -1
  82. package/list-box/index.js +1 -1
  83. package/logo/index.js +1 -1
  84. package/menu/index.js +1 -1
  85. package/modal/index.js +1 -1
  86. package/package.json +1 -1
  87. package/popover/index.js +1 -1
  88. package/progress-bar/index.js +1 -1
  89. package/radio/index.js +1 -1
  90. package/search-field/index.js +1 -1
  91. package/select/index.js +1 -1
  92. package/skeleton/index.js +1 -1
  93. package/spinner/index.js +1 -1
  94. package/stack/index.js +1 -1
  95. package/table/index.js +1 -1
  96. package/tabs/index.js +1 -1
  97. package/tag/index.js +1 -1
  98. package/text/index.js +1 -1
  99. package/textfield/index.js +1 -1
  100. package/time-field/index.js +1 -1
  101. package/toast/index.js +1 -1
  102. package/toggle-button/index.js +1 -1
  103. package/tooltip/index.js +1 -1
  104. package/chunks/date-field-BCfp9ZpN.js +0 -73
  105. package/chunks/date-picker-DH8j2eU9.js +0 -142
  106. package/chunks/textfield-CeFppAMx.js +0 -113
  107. 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, 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 };
@@ -0,0 +1,76 @@
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
+ import * as s from "react";
8
+ import { DateField as c, DateFieldStateContext as l, DateInput as u, DateSegment as d } from "react-aria-components";
9
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
10
+ import { FocusScope as m, useFocusManager as h } from "react-aria";
11
+ import '../assets/date-field.css';var g = {
12
+ en: { clear: "Clear date" },
13
+ sv: { clear: "Rensa datum" }
14
+ }, _ = {
15
+ dateField: "_dateField_1w6t6_1",
16
+ inputField: "_inputField_1w6t6_7",
17
+ medium: "_medium_1w6t6_43",
18
+ clearButton: "_clearButton_1w6t6_52"
19
+ }, v = {
20
+ dateInput: "_dateInput_u92xb_1",
21
+ divider: "_divider_u92xb_21",
22
+ scroller: "_scroller_u92xb_31"
23
+ }, y = ({ isClearable: t, size: n, isDisabled: r, isReadOnly: i }) => {
24
+ let c = o(g), u = s.useContext(l), d = h();
25
+ return t && u?.value != null && !i ? /* @__PURE__ */ f(a, {
26
+ onPress: () => {
27
+ u?.setValue(null), d?.focusFirst();
28
+ },
29
+ size: n,
30
+ isDisabled: r,
31
+ "aria-label": c.format("clear"),
32
+ className: e(_.clearButton, { [_.medium]: n === "medium" })
33
+ }) : null;
34
+ }, b = s.forwardRef(({ className: a, description: o, errorMessage: s, errorPosition: l = "top", label: u, size: d = "large", popover: h, isClearable: g = !1, isReadOnly: b, isDisabled: x, ...w }, T) => /* @__PURE__ */ p(c, {
35
+ ...w,
36
+ ref: T,
37
+ isReadOnly: b,
38
+ isDisabled: x,
39
+ className: e(_.dateField, a),
40
+ children: [
41
+ /* @__PURE__ */ f(n, {
42
+ popover: h,
43
+ children: u && /* @__PURE__ */ f(r, { children: u })
44
+ }),
45
+ o && /* @__PURE__ */ f(i, {
46
+ slot: "description",
47
+ children: o
48
+ }),
49
+ l === "top" && /* @__PURE__ */ f(t, { children: s }),
50
+ /* @__PURE__ */ f("div", {
51
+ className: e(_.inputField, { [_.medium]: d === "medium" }),
52
+ "data-testid": "date-field_input-field",
53
+ children: /* @__PURE__ */ p(m, { children: [/* @__PURE__ */ f("div", {
54
+ className: v.scroller,
55
+ children: /* @__PURE__ */ f(C, { children: (e) => /* @__PURE__ */ f(S, { segment: e }) })
56
+ }), /* @__PURE__ */ f(y, {
57
+ isClearable: g,
58
+ size: d,
59
+ isDisabled: x,
60
+ isReadOnly: b
61
+ })] })
62
+ }),
63
+ l === "bottom" && /* @__PURE__ */ f(t, { children: s })
64
+ ]
65
+ })), x = { dateSegment: "_dateSegment_15g5c_1" }, S = ({ className: t, ...n }) => /* @__PURE__ */ f(d, {
66
+ className: e(x.dateSegment, t),
67
+ ...n
68
+ }), C = ({ className: t, ...n }) => /* @__PURE__ */ f(u, {
69
+ className: e(v.dateInput, t),
70
+ ...n
71
+ }), w = () => /* @__PURE__ */ f("span", {
72
+ "aria-hidden": "true",
73
+ className: v.divider,
74
+ children: "-"
75
+ });
76
+ export { v as a, b as i, C as n, S as r, w as t };
@@ -0,0 +1,144 @@
1
+ 'use client';
2
+ import { t as e } from "./clear-button-CeQy0RdK.js";
3
+ import { t } from "./useLocalizedStringFormatter-DhIAL1D7.js";
4
+ import { a as n, n as r, r as i, t as a } from "./date-field-CdlSlO7A.js";
5
+ import { n as o } from "./button-S2AY4EEn.js";
6
+ import { n as s, t as c } from "./calendar-BOTC3DKx.js";
7
+ import { t as l } from "./field-error-C5ynuTRu.js";
8
+ import { n as u, t as d } from "./label-B5-Kmj4t.js";
9
+ import { t as f } from "./text-D7tnzTru.js";
10
+ import * as p from "react";
11
+ import { clsx as m } from "clsx";
12
+ import { DatePicker as h, DatePickerStateContext as g, DateRangePicker as _, DateRangePickerStateContext as v, Group as y, Popover as b } from "react-aria-components";
13
+ import { jsx as x, jsxs as S } from "react/jsx-runtime";
14
+ import { CalendarDays as C } from "lucide-react";
15
+ import { FocusScope as w, useFocusManager as T } from "react-aria";
16
+ import '../assets/date-picker.css';var E = {
17
+ en: {
18
+ clear: "Clear date",
19
+ "open-calendar": "Open calendar"
20
+ },
21
+ sv: {
22
+ clear: "Rensa datum",
23
+ "open-calendar": "Öppna kalender"
24
+ }
25
+ }, D = {
26
+ datePicker: "_datePicker_g3zwq_1",
27
+ inputField: "_inputField_g3zwq_8",
28
+ medium: "_medium_g3zwq_25",
29
+ readOnly: "_readOnly_g3zwq_48",
30
+ buttonGroup: "_buttonGroup_g3zwq_53",
31
+ iconButton: "_iconButton_g3zwq_59",
32
+ popover: "_popover_g3zwq_82 _dropdownAnimation_1ljkv_4"
33
+ }, O = (e) => !!e && !!e.value && Object.prototype.hasOwnProperty.call(e.value, "start"), k = ({ isClearable: n, isDisabled: r, isReadOnly: i, size: a }) => {
34
+ let o = p.useContext(g), s = p.useContext(v), c = t(E), l = T(), u = s ?? o, d = O(u) ? !!u.value.start && u.value.end : !!u?.value;
35
+ return n && d && !i ? /* @__PURE__ */ x(e, {
36
+ onPress: () => {
37
+ u?.setValue(null), l?.focusFirst();
38
+ },
39
+ size: a,
40
+ isDisabled: r,
41
+ "aria-label": c.format("clear"),
42
+ className: m(D.iconButton, { [D.medium]: a === "medium" })
43
+ }) : null;
44
+ }, A = ({ children: e, isDisabled: r, isInvalid: i, isReadOnly: a, size: s = "large", isClearable: c = !1 }) => {
45
+ let l = t(E);
46
+ return /* @__PURE__ */ x(y, {
47
+ className: m(D.inputField, {
48
+ [D.medium]: s === "medium",
49
+ [D.readOnly]: a
50
+ }),
51
+ children: /* @__PURE__ */ S(w, { children: [/* @__PURE__ */ x("div", {
52
+ className: n.scroller,
53
+ children: e
54
+ }), /* @__PURE__ */ S("div", {
55
+ className: D.buttonGroup,
56
+ children: [/* @__PURE__ */ x(k, {
57
+ isClearable: c,
58
+ isDisabled: r,
59
+ isReadOnly: a,
60
+ size: s
61
+ }), /* @__PURE__ */ x(o, {
62
+ variant: "icon",
63
+ "aria-label": l.format("open-calendar"),
64
+ className: m(D.iconButton, {
65
+ [D.medium]: s === "medium",
66
+ [D.readOnly]: a
67
+ }),
68
+ "data-invalid": i || void 0,
69
+ size: s,
70
+ children: /* @__PURE__ */ x(C, {
71
+ "aria-hidden": !0,
72
+ size: 20
73
+ })
74
+ })]
75
+ })] })
76
+ });
77
+ }, j = ({ children: e }) => /* @__PURE__ */ x(b, {
78
+ className: D.popover,
79
+ children: e
80
+ }), M = p.forwardRef(({ className: e, description: t, errorMessage: n, errorPosition: a = "top", label: o, popover: c, isClearable: p = !1, isReadOnly: g, isDisabled: _, size: v, ...y }, b) => /* @__PURE__ */ S(h, {
81
+ className: m(D.datePicker, e),
82
+ isReadOnly: g,
83
+ isDisabled: _,
84
+ ref: b,
85
+ ...y,
86
+ children: [
87
+ /* @__PURE__ */ x(u, {
88
+ popover: c,
89
+ children: o && /* @__PURE__ */ x(d, { children: o })
90
+ }),
91
+ t && /* @__PURE__ */ x(f, {
92
+ slot: "description",
93
+ children: t
94
+ }),
95
+ a === "top" && /* @__PURE__ */ x(l, { children: n }),
96
+ /* @__PURE__ */ x(A, {
97
+ isClearable: p,
98
+ isReadOnly: g,
99
+ isDisabled: _,
100
+ size: v,
101
+ ...y,
102
+ children: /* @__PURE__ */ x(r, { children: (e) => /* @__PURE__ */ x(i, { segment: e }) })
103
+ }),
104
+ a === "bottom" && /* @__PURE__ */ x(l, { children: n }),
105
+ /* @__PURE__ */ x(j, { children: /* @__PURE__ */ x(s, {}) })
106
+ ]
107
+ })), N = ({ className: e, description: t, errorMessage: n, errorPosition: o = "top", label: s, popover: p, isClearable: h = !1, isReadOnly: g, isDisabled: v, size: y, ...b }) => /* @__PURE__ */ S(_, {
108
+ className: m(D.datePicker, e),
109
+ isReadOnly: g,
110
+ isDisabled: v,
111
+ ...b,
112
+ children: [
113
+ /* @__PURE__ */ x(u, {
114
+ popover: p,
115
+ children: s && /* @__PURE__ */ x(d, { children: s })
116
+ }),
117
+ t && /* @__PURE__ */ x(f, {
118
+ slot: "description",
119
+ children: t
120
+ }),
121
+ o === "top" && /* @__PURE__ */ x(l, { children: n }),
122
+ /* @__PURE__ */ S(A, {
123
+ isClearable: h,
124
+ isReadOnly: g,
125
+ isDisabled: v,
126
+ size: y,
127
+ ...b,
128
+ children: [
129
+ /* @__PURE__ */ x(r, {
130
+ slot: "start",
131
+ children: (e) => /* @__PURE__ */ x(i, { segment: e })
132
+ }),
133
+ /* @__PURE__ */ x(a, {}),
134
+ /* @__PURE__ */ x(r, {
135
+ slot: "end",
136
+ children: (e) => /* @__PURE__ */ x(i, { segment: e })
137
+ })
138
+ ]
139
+ }),
140
+ o === "bottom" && /* @__PURE__ */ x(l, { children: n }),
141
+ /* @__PURE__ */ x(j, { children: /* @__PURE__ */ x(c, {}) })
142
+ ]
143
+ });
144
+ export { M as n, N 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 };