@midas-ds/components 17.33.5 → 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.
- package/CHANGELOG.md +6 -0
- package/accordion/index.js +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.js +1 -1
- package/checkbox/index.js +1 -1
- package/chunks/{Button.module-0C2ArlRs.js → Button.module-CXkKBjuB.js} +0 -1
- package/chunks/{FeedbackStatusIcon-DvMDGBGL.js → FeedbackStatusIcon-Ba31xgcy.js} +1 -2
- package/chunks/{TextField.module-Bg4LNalb.js → TextField.module-B-5HJOZt.js} +0 -1
- package/chunks/{accordion-DRXQI8XG.js → accordion-BKnABSyU.js} +4 -5
- package/chunks/{badge-C4bXJmhn.js → badge-C5Sdu_uw.js} +1 -2
- package/chunks/{breadcrumbs-BGnyY3bO.js → breadcrumbs-BwYDyKWo.js} +1 -2
- package/chunks/{button-dpe6hXmI.js → button-S2AY4EEn.js} +4 -5
- package/chunks/{calendar-Bq2qqFIW.js → calendar-BOTC3DKx.js} +26 -27
- package/chunks/{card-C0S9Kyi2.js → card-mIB1NewO.js} +3 -4
- package/chunks/{character-counter-CSoVSrxZ.js → character-counter-IbkPoEcq.js} +0 -1
- package/chunks/{checkbox-BGxv1TyT.js → checkbox-CzH8BdsB.js} +38 -40
- package/chunks/{clear-button-DWtOkhCH.js → clear-button-CeQy0RdK.js} +2 -3
- package/chunks/{clsx-DAqHMl_k.js → clsx-BtGY0yFD.js} +1 -2
- package/chunks/{color-scheme-switch-D7EpvqTW.js → color-scheme-switch-BpmV-r9p.js} +28 -29
- package/chunks/{combobox-f4uuMJcb.js → combobox-DQ3d6pLc.js} +16 -18
- package/chunks/{date-field-BCfp9ZpN.js → date-field-DSBHnHdN.js} +16 -17
- package/chunks/{date-picker-DH8j2eU9.js → date-picker-CLizY8Vq.js} +39 -40
- package/chunks/{drop-zone-DNhEbH4w.js → drop-zone-BL3Z-Sbj.js} +1 -2
- package/chunks/{field-error-BHoPnRe4.js → field-error-C5ynuTRu.js} +2 -3
- package/chunks/{file-list-DT3zkJbO.js → file-list-etDe20pj.js} +9 -10
- package/chunks/{file-trigger-Dp5nH8oS.js → file-trigger-gOeeZzDP.js} +1 -2
- package/chunks/{grid-SIgkSK_-.js → grid-CFn_pqQX.js} +1 -2
- package/chunks/{heading-DcOjYrUM.js → heading-CIlMdywy.js} +1 -2
- package/chunks/{icons-UBHIX2oV.js → icons-a0WawN46.js} +1 -2
- package/chunks/{info-banner-DXjPEG69.js → info-banner-BKB7_CPh.js} +6 -7
- package/chunks/{label-2ac-zqbe.js → label-B5-Kmj4t.js} +8 -9
- package/chunks/{layout-BT-UgQne.js → layout-Cs8Oc8sf.js} +82 -83
- package/chunks/{link-B76JDA2N.js → link-CG_mHnLv.js} +2 -3
- package/chunks/{link-button-BeXxC22w.js → link-button-4xRbQqH2.js} +2 -3
- package/chunks/{list-box-BzBJX0nP.js → list-box-frfQGO1x.js} +5 -6
- package/chunks/{logo-DSJ1bUJZ.js → logo-Xe8PO0US.js} +2 -3
- package/chunks/{menu-DbQ98noD.js → menu-7gP2Sovj.js} +1 -2
- package/chunks/{modal-CzApHmjO.js → modal-BQrpnHT5.js} +15 -17
- package/chunks/{popover-B82BcP5n.js → popover-C7Ain5Qz.js} +1 -2
- package/chunks/{progress-bar-CJOm7oiN.js → progress-bar-DE7UoEWR.js} +9 -10
- package/chunks/{radio-DgFKSBa5.js → radio-DAB7WeIP.js} +17 -18
- package/chunks/{search-field-CpQnnJKa.js → search-field-BI1h0UBl.js} +23 -25
- package/chunks/{select-CdVW8cwA.js → select-BHpUGcW7.js} +38 -40
- package/chunks/{skeleton-R_3dS7Ro.js → skeleton-6y5HNJZp.js} +1 -2
- package/chunks/{spinner-CIjfJeGm.js → spinner-YKC-Vk3v.js} +2 -3
- package/chunks/{splitDataAttributes-_JTFOOIb.js → splitDataAttributes-ChyO_Kvc.js} +1 -2
- package/chunks/{stack-BAHKom_Q.js → stack-DKjRicm1.js} +1 -2
- package/chunks/{table-D02AQ0Xr.js → table-Fsf-jJip.js} +16 -17
- package/chunks/{tabs-CbcNTa7J.js → tabs-ZCpVhr_r.js} +2 -3
- package/chunks/{tag-BEawJnJm.js → tag-B1suqFhD.js} +2 -3
- package/chunks/{text-DnvD4Cjc.js → text-D7tnzTru.js} +1 -2
- package/chunks/textfield-C-lRIIil.js +110 -0
- package/chunks/time-field-1I6BMlaj.js +59 -0
- package/chunks/{toast-B8J42Yss.js → toast-DTqQhHFN.js} +13 -14
- package/chunks/{toggle-button-DD_bXanH.js → toggle-button-BVyG8F2K.js} +6 -7
- package/chunks/{tooltip-1GBTeMrm.js → tooltip-CR1uxtPd.js} +2 -4
- package/chunks/{useLocalizedStringFormatter-CeyBc0x0.js → useLocalizedStringFormatter-DhIAL1D7.js} +1 -2
- package/clear-button/index.js +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.js +1 -1
- package/date-field/index.js +1 -1
- package/date-picker/index.js +1 -1
- package/drop-zone/index.js +1 -1
- package/field-error/index.js +1 -1
- package/file-list/index.js +1 -1
- package/file-trigger/index.js +1 -1
- package/grid/index.js +1 -1
- package/heading/index.js +1 -1
- package/icons/index.js +1 -1
- package/index.js +50 -52
- package/info-banner/index.js +1 -1
- package/label/index.js +1 -1
- package/layout/index.js +1 -1
- package/link/index.js +1 -1
- package/link-button/index.js +1 -1
- package/list-box/index.js +1 -1
- package/logo/index.js +1 -1
- package/menu/index.js +1 -1
- package/modal/index.js +1 -1
- package/package.json +1 -1
- package/popover/index.js +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.js +1 -1
- package/select/index.js +1 -1
- package/skeleton/index.js +1 -1
- package/spinner/index.js +1 -1
- package/stack/index.js +1 -1
- package/table/index.js +1 -1
- package/tabs/index.js +1 -1
- package/tag/index.js +1 -1
- package/text/index.js +1 -1
- package/textfield/index.js +1 -1
- package/time-field/index.js +1 -1
- package/toast/index.js +1 -1
- package/toggle-button/index.js +1 -1
- package/tooltip/index.js +1 -1
- package/chunks/textfield-CeFppAMx.js +0 -113
- package/chunks/time-field-H-mXlxua.js +0 -60
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as e } from "./clsx-
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { n, t as r } from "./label-
|
|
4
|
-
import { t as i } from "./text-
|
|
5
|
-
import { t as a } from "./
|
|
6
|
-
import { t as o } from "./
|
|
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:
|
|
20
|
-
let c =
|
|
21
|
-
return
|
|
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:
|
|
26
|
-
isDisabled:
|
|
25
|
+
size: n,
|
|
26
|
+
isDisabled: r,
|
|
27
27
|
"aria-label": c.format("clear"),
|
|
28
|
-
className: e(_.clearButton, { [_.medium]:
|
|
28
|
+
className: e(_.clearButton, { [_.medium]: n === "medium" })
|
|
29
29
|
}) : null;
|
|
30
|
-
}, y = s.forwardRef(({ className:
|
|
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,
|
|
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(
|
|
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(
|
|
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 "./
|
|
3
|
-
import {
|
|
4
|
-
import { n
|
|
5
|
-
import { n as
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
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:
|
|
34
|
-
let
|
|
35
|
-
return
|
|
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:
|
|
40
|
-
isDisabled:
|
|
41
|
-
"aria-label":
|
|
42
|
-
className: p(E.iconButton, { [E.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:
|
|
45
|
-
let c =
|
|
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: [
|
|
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(
|
|
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:
|
|
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(
|
|
84
|
+
/* @__PURE__ */ b(l, {
|
|
85
85
|
popover: f,
|
|
86
|
-
children:
|
|
86
|
+
children: s && /* @__PURE__ */ b(u, { children: s })
|
|
87
87
|
}),
|
|
88
|
-
t && /* @__PURE__ */ b(
|
|
88
|
+
t && /* @__PURE__ */ b(d, {
|
|
89
89
|
slot: "description",
|
|
90
90
|
children: t
|
|
91
91
|
}),
|
|
92
|
-
|
|
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(
|
|
99
|
+
children: /* @__PURE__ */ b(a, { children: (e) => /* @__PURE__ */ b(o, { segment: e }) })
|
|
100
100
|
}),
|
|
101
|
-
|
|
102
|
-
/* @__PURE__ */ b(A, { children: /* @__PURE__ */ b(
|
|
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:
|
|
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(
|
|
110
|
+
/* @__PURE__ */ b(l, {
|
|
111
111
|
popover: m,
|
|
112
|
-
children: f && /* @__PURE__ */ b(
|
|
112
|
+
children: f && /* @__PURE__ */ b(u, { children: f })
|
|
113
113
|
}),
|
|
114
|
-
t && /* @__PURE__ */ b(
|
|
114
|
+
t && /* @__PURE__ */ b(d, {
|
|
115
115
|
slot: "description",
|
|
116
116
|
children: t
|
|
117
117
|
}),
|
|
118
|
-
|
|
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(
|
|
126
|
+
/* @__PURE__ */ b(a, {
|
|
127
127
|
slot: "start",
|
|
128
|
-
children: (e) => /* @__PURE__ */ b(
|
|
128
|
+
children: (e) => /* @__PURE__ */ b(o, { segment: e })
|
|
129
129
|
}),
|
|
130
|
-
/* @__PURE__ */ b(
|
|
131
|
-
/* @__PURE__ */ b(
|
|
130
|
+
/* @__PURE__ */ b(s, {}),
|
|
131
|
+
/* @__PURE__ */ b(a, {
|
|
132
132
|
slot: "end",
|
|
133
|
-
children: (e) => /* @__PURE__ */ b(
|
|
133
|
+
children: (e) => /* @__PURE__ */ b(o, { segment: e })
|
|
134
134
|
})
|
|
135
135
|
]
|
|
136
136
|
}),
|
|
137
|
-
|
|
138
|
-
/* @__PURE__ */ b(A, { children: /* @__PURE__ */ b(
|
|
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-
|
|
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-
|
|
2
|
-
import { t } from "./text-
|
|
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-
|
|
3
|
-
import { t } from "./
|
|
4
|
-
import { n } from "./
|
|
5
|
-
import { t as r } from "./FeedbackStatusIcon-
|
|
6
|
-
import { t as i } from "./field-error-
|
|
7
|
-
import { t as a } from "./
|
|
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 =
|
|
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(
|
|
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(
|
|
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
|
-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
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-
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { n } from "./
|
|
4
|
-
import { t as r } from "./FeedbackStatusIcon-
|
|
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 =
|
|
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(
|
|
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-
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { n } from "./button-
|
|
4
|
-
import { t as r } from "./
|
|
5
|
-
import { t as i } from "./
|
|
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 =
|
|
19
|
-
return /* @__PURE__ */ u(
|
|
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(
|
|
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 };
|