@midas-ds/components 17.2.5 → 17.3.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.
- package/CHANGELOG.md +21 -0
- package/accordion/index.js +1 -1
- package/assets/AccordionItem.css +1 -1
- package/assets/Button.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/ComboBox.css +1 -1
- package/assets/DateField.css +1 -1
- package/assets/DateRangePicker.css +1 -1
- package/assets/Dialog.css +1 -1
- package/assets/Heading.css +1 -1
- package/assets/Layout.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/ListBox.css +1 -1
- package/assets/ListBoxEmptyState.css +1 -1
- package/assets/Popover.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/SearchField.css +1 -1
- package/assets/Select.css +1 -1
- package/assets/Separator.css +1 -1
- package/assets/Skeleton.css +1 -1
- package/assets/TabList.css +1 -1
- package/assets/Table.css +1 -1
- package/assets/TagGroup.css +1 -1
- package/assets/Text.css +1 -1
- package/assets/TextField.css +1 -1
- package/assets/Tooltip.css +1 -1
- package/assets/default.css +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +1 -1
- package/card/index.js +1 -1
- package/checkbox/index.js +2 -2
- package/chunks/AccordionItem-BuUIdVd_.js +129 -0
- package/chunks/{Button-CaLOUTDO.js → Button-BhIvfqOc.js} +1 -1
- package/chunks/Button.module-BW0TvYZ2.js +14 -0
- package/chunks/{Card-DMSnokPn.js → Card-CVwiT9zm.js} +1 -1
- package/chunks/{Checkbox-CRLj7_Ox.js → Checkbox-sAkQe7Q9.js} +18 -18
- package/chunks/{CheckboxGroup-DooCBqUG.js → CheckboxGroup-DGVV0X_Z.js} +4 -4
- package/chunks/{ClearButton-DPm_d7SL.js → ClearButton-DBr9Zfwq.js} +1 -1
- package/chunks/{ColorSchemeSwitch-DOQ0yjtt.js → ColorSchemeSwitch-DkY8VTVR.js} +1 -1
- package/chunks/ComboBox-Dx4GD2oe.js +102 -0
- package/chunks/{DateField-6CclHfL2.js → DateField-h3l0qG7u.js} +23 -23
- package/chunks/{DateRangePicker-BoL-sn9u.js → DateRangePicker-BCZ6i1w0.js} +27 -27
- package/chunks/{Dialog-BHxDzbf8.js → Dialog-DVff9MDd.js} +17 -17
- package/chunks/{FieldError-BMTrvSof.js → FieldError-krpMBtie.js} +1 -1
- package/chunks/Heading-nfcRc2QF.js +38 -0
- package/chunks/{InfoBanner-C4HnaXQO.js → InfoBanner-otmuemqy.js} +1 -1
- package/chunks/{Label-6GZmmff9.js → Label-s4J9sYdy.js} +2 -2
- package/chunks/{Layout-CFhqS9ej.js → Layout-hXzqx4cY.js} +135 -135
- package/chunks/{LinkButton-B1zayj7k.js → LinkButton-DJ-D5PkB.js} +15 -15
- package/chunks/{ListBox-D5BBeZWL.js → ListBox-CDlOUvzJ.js} +13 -13
- package/chunks/{ListBoxEmptyState-_Cn38cQ6.js → ListBoxEmptyState-CXKkWQy1.js} +3 -3
- package/chunks/{ListBoxHeader-CL9bFH22.js → ListBoxHeader-DSYdXl2I.js} +1 -1
- package/chunks/{Popover-BcEtFiU1.js → Popover-CaP4LFhg.js} +12 -12
- package/chunks/{ProgressBar-Dg0JMQ71.js → ProgressBar-acc8946-.js} +1 -1
- package/chunks/{Radio-CAIyBgBp.js → Radio-DjivEe-_.js} +3 -3
- package/chunks/{RangeCalendar-DIMxoHhy.js → RangeCalendar-LheFd9WF.js} +26 -26
- package/chunks/SearchField-1DYv0w4b.js +128 -0
- package/chunks/Select-CV0H13h-.js +222 -0
- package/chunks/Separator-CkVOLF6I.js +76 -0
- package/chunks/{Skeleton-DqIHQLQl.js → Skeleton-D6mxKxuu.js} +22 -22
- package/chunks/{TabList-BaR443mu.js → TabList-BHX-cuhB.js} +20 -20
- package/chunks/{Table-UbdCFrkS.js → Table-Bg-AKi7d.js} +50 -50
- package/chunks/{TagGroup-CWe0P76-.js → TagGroup-BscTXQ_E.js} +29 -29
- package/chunks/{Text-BuXvuoqM.js → Text-D0r_W4lH.js} +16 -16
- package/chunks/{TextArea-BQuztcdA.js → TextArea-CBRE_gsN.js} +5 -5
- package/chunks/TextField.module-BDIbEV87.js +12 -0
- package/chunks/{Toast-UPM-1ipu.js → Toast-Cxm230CK.js} +1 -1
- package/chunks/{ToggleButtonGroup-CXKTrLbb.js → ToggleButtonGroup-Bv9xpwTT.js} +1 -1
- package/chunks/{Tooltip-rDmOkGmX.js → Tooltip-C1bbgr2l.js} +12 -12
- 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/field-error/index.js +1 -1
- package/heading/index.js +1 -1
- package/index.js +36 -36
- package/info-banner/index.js +1 -1
- package/label/index.js +1 -1
- package/layout/index.js +1 -1
- package/link-button/index.js +1 -1
- package/list-box/index.js +3 -3
- package/menu/index.js +1 -1
- package/modal/index.js +1 -1
- package/package.json +2 -2
- 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/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/toast/index.js +1 -1
- package/toggle-button/index.js +1 -1
- package/tooltip/index.js +1 -1
- package/chunks/AccordionItem-CSvARy63.js +0 -129
- package/chunks/Button.module-Cm0H98vy.js +0 -14
- package/chunks/ComboBox-DnqZjAqe.js +0 -102
- package/chunks/Heading-D8tNNJkt.js +0 -38
- package/chunks/SearchField-C_OjgTE0.js +0 -128
- package/chunks/Select-D7JfpIUT.js +0 -222
- package/chunks/Separator-XIzn8lsq.js +0 -76
- package/chunks/TextField.module-DmV0iI3P.js +0 -12
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as e, jsxs as h } from "react/jsx-runtime";
|
|
3
|
-
import { Group as x, DatePickerStateContext as F, DateRangePickerStateContext as
|
|
3
|
+
import { Group as x, DatePickerStateContext as F, DateRangePickerStateContext as B, Popover as M, Dialog as S, DatePicker as N, DateRangePicker as R } from "react-aria-components";
|
|
4
4
|
import { a as k } from "./clsx-AexbMWKp.js";
|
|
5
|
-
import { C as
|
|
6
|
-
import { D as
|
|
7
|
-
import { F as
|
|
8
|
-
import { a as y, L as v } from "./Label-
|
|
9
|
-
import { T as D } from "./Text-
|
|
10
|
-
import * as
|
|
11
|
-
import { C as
|
|
12
|
-
import { FocusScope as
|
|
13
|
-
import { B as O } from "./Button-
|
|
5
|
+
import { C as G, R as L } from "./RangeCalendar-LheFd9WF.js";
|
|
6
|
+
import { D as P, b as _, a as I } from "./DateInputDivider-DwopMIb9.js";
|
|
7
|
+
import { F as g } from "./FieldError-krpMBtie.js";
|
|
8
|
+
import { a as y, L as v } from "./Label-s4J9sYdy.js";
|
|
9
|
+
import { T as D } from "./Text-D0r_W4lH.js";
|
|
10
|
+
import * as f from "react";
|
|
11
|
+
import { C as V } from "./ClearButton-DBr9Zfwq.js";
|
|
12
|
+
import { FocusScope as j, useFocusManager as w } from "@react-aria/focus";
|
|
13
|
+
import { B as O } from "./Button-BhIvfqOc.js";
|
|
14
14
|
import { c as T } from "./createLucideIcon-CP-mMPfa.js";
|
|
15
15
|
import { u as $ } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
16
16
|
import '../assets/DateRangePicker.css';const E = [
|
|
@@ -27,7 +27,7 @@ import '../assets/DateRangePicker.css';const E = [
|
|
|
27
27
|
], W = T("calendar-days", E), q = { clear: "Clear date" }, A = { clear: "Rensa datum" }, H = {
|
|
28
28
|
en: q,
|
|
29
29
|
sv: A
|
|
30
|
-
}, J = "
|
|
30
|
+
}, J = "_datePicker_1g3e7_1", K = "_inputField_1g3e7_8", Q = "_medium_1g3e7_24", U = "_readOnly_1g3e7_47", X = "_buttonGroup_1g3e7_52", Y = "_iconButton_1g3e7_58", Z = "_dialog_1g3e7_81", o = {
|
|
31
31
|
datePicker: J,
|
|
32
32
|
inputField: K,
|
|
33
33
|
medium: Q,
|
|
@@ -41,9 +41,9 @@ import '../assets/DateRangePicker.css';const E = [
|
|
|
41
41
|
isReadOnly: i,
|
|
42
42
|
size: a
|
|
43
43
|
}) => {
|
|
44
|
-
const r =
|
|
44
|
+
const r = f.useContext(F), s = f.useContext(B), u = $(H), l = w(), n = s ?? r, p = z(n) ? !!n.value.start && n.value.end : !!n?.value;
|
|
45
45
|
return t && p && !i ? /* @__PURE__ */ e(
|
|
46
|
-
|
|
46
|
+
V,
|
|
47
47
|
{
|
|
48
48
|
onPress: () => {
|
|
49
49
|
n?.setValue(null), l?.focusFirst();
|
|
@@ -70,7 +70,7 @@ import '../assets/DateRangePicker.css';const E = [
|
|
|
70
70
|
[o.medium]: r === "medium",
|
|
71
71
|
[o.readOnly]: a
|
|
72
72
|
}),
|
|
73
|
-
children: /* @__PURE__ */ h(
|
|
73
|
+
children: /* @__PURE__ */ h(j, { children: [
|
|
74
74
|
t,
|
|
75
75
|
/* @__PURE__ */ h("div", { className: o.buttonGroup, children: [
|
|
76
76
|
/* @__PURE__ */ e(
|
|
@@ -106,7 +106,7 @@ import '../assets/DateRangePicker.css';const E = [
|
|
|
106
106
|
}
|
|
107
107
|
), b = ({
|
|
108
108
|
children: t
|
|
109
|
-
}) => /* @__PURE__ */ e(
|
|
109
|
+
}) => /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(S, { className: o.dialog, children: t }) }), he = ({
|
|
110
110
|
className: t,
|
|
111
111
|
description: c,
|
|
112
112
|
errorMessage: i,
|
|
@@ -119,7 +119,7 @@ import '../assets/DateRangePicker.css';const E = [
|
|
|
119
119
|
size: p,
|
|
120
120
|
...d
|
|
121
121
|
}) => /* @__PURE__ */ h(
|
|
122
|
-
|
|
122
|
+
N,
|
|
123
123
|
{
|
|
124
124
|
className: k(o.datePicker, t),
|
|
125
125
|
isReadOnly: l,
|
|
@@ -128,7 +128,7 @@ import '../assets/DateRangePicker.css';const E = [
|
|
|
128
128
|
children: [
|
|
129
129
|
/* @__PURE__ */ e(y, { popover: s, children: r && /* @__PURE__ */ e(v, { children: r }) }),
|
|
130
130
|
c && /* @__PURE__ */ e(D, { slot: "description", children: c }),
|
|
131
|
-
a === "top" && /* @__PURE__ */ e(
|
|
131
|
+
a === "top" && /* @__PURE__ */ e(g, { children: i }),
|
|
132
132
|
/* @__PURE__ */ e(
|
|
133
133
|
C,
|
|
134
134
|
{
|
|
@@ -137,11 +137,11 @@ import '../assets/DateRangePicker.css';const E = [
|
|
|
137
137
|
isDisabled: n,
|
|
138
138
|
size: p,
|
|
139
139
|
...d,
|
|
140
|
-
children: /* @__PURE__ */ e(
|
|
140
|
+
children: /* @__PURE__ */ e(P, { children: (m) => /* @__PURE__ */ e(_, { segment: m }) })
|
|
141
141
|
}
|
|
142
142
|
),
|
|
143
|
-
a === "bottom" && /* @__PURE__ */ e(
|
|
144
|
-
/* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(
|
|
143
|
+
a === "bottom" && /* @__PURE__ */ e(g, { children: i }),
|
|
144
|
+
/* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(G, {}) })
|
|
145
145
|
]
|
|
146
146
|
}
|
|
147
147
|
), ke = ({
|
|
@@ -157,7 +157,7 @@ import '../assets/DateRangePicker.css';const E = [
|
|
|
157
157
|
size: p,
|
|
158
158
|
...d
|
|
159
159
|
}) => /* @__PURE__ */ h(
|
|
160
|
-
|
|
160
|
+
R,
|
|
161
161
|
{
|
|
162
162
|
className: k(o.datePicker, t),
|
|
163
163
|
isReadOnly: l,
|
|
@@ -166,7 +166,7 @@ import '../assets/DateRangePicker.css';const E = [
|
|
|
166
166
|
children: [
|
|
167
167
|
/* @__PURE__ */ e(y, { popover: s, children: r && /* @__PURE__ */ e(v, { children: r }) }),
|
|
168
168
|
c && /* @__PURE__ */ e(D, { slot: "description", children: c }),
|
|
169
|
-
a === "top" && /* @__PURE__ */ e(
|
|
169
|
+
a === "top" && /* @__PURE__ */ e(g, { children: i }),
|
|
170
170
|
/* @__PURE__ */ h(
|
|
171
171
|
C,
|
|
172
172
|
{
|
|
@@ -176,14 +176,14 @@ import '../assets/DateRangePicker.css';const E = [
|
|
|
176
176
|
size: p,
|
|
177
177
|
...d,
|
|
178
178
|
children: [
|
|
179
|
-
/* @__PURE__ */ e(
|
|
180
|
-
/* @__PURE__ */ e(
|
|
181
|
-
/* @__PURE__ */ e(
|
|
179
|
+
/* @__PURE__ */ e(P, { slot: "start", children: (m) => /* @__PURE__ */ e(_, { segment: m }) }),
|
|
180
|
+
/* @__PURE__ */ e(I, {}),
|
|
181
|
+
/* @__PURE__ */ e(P, { slot: "end", children: (m) => /* @__PURE__ */ e(_, { segment: m }) })
|
|
182
182
|
]
|
|
183
183
|
}
|
|
184
184
|
),
|
|
185
|
-
a === "bottom" && /* @__PURE__ */ e(
|
|
186
|
-
/* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(
|
|
185
|
+
a === "bottom" && /* @__PURE__ */ e(g, { children: i }),
|
|
186
|
+
/* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(L, {}) })
|
|
187
187
|
]
|
|
188
188
|
}
|
|
189
189
|
);
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as o, jsxs as e } from "react/jsx-runtime";
|
|
2
|
-
import { ModalOverlay as
|
|
3
|
-
import { B as _ } from "./Button-
|
|
4
|
-
import { H as
|
|
5
|
-
import { c as
|
|
6
|
-
import { X as
|
|
2
|
+
import { ModalOverlay as i, Modal as c, Dialog as n } from "react-aria-components";
|
|
3
|
+
import { B as _ } from "./Button-BhIvfqOc.js";
|
|
4
|
+
import { H as h } from "./Heading-nfcRc2QF.js";
|
|
5
|
+
import { c as y } from "./clsx-AexbMWKp.js";
|
|
6
|
+
import { X as v } from "./x-B9bYxG31.js";
|
|
7
7
|
import { u as f } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
8
|
-
import '../assets/Dialog.css';const
|
|
9
|
-
modal:
|
|
10
|
-
overlay:
|
|
8
|
+
import '../assets/Dialog.css';const p = "_modal_10hiu_1", u = "_overlay_10hiu_24", g = "_modalHeader_10hiu_48", B = "_modalTitle_10hiu_59", H = "_modalBody_10hiu_65", a = {
|
|
9
|
+
modal: p,
|
|
10
|
+
overlay: u,
|
|
11
11
|
modalHeader: g,
|
|
12
12
|
modalTitle: B,
|
|
13
13
|
modalBody: H
|
|
14
|
-
},
|
|
15
|
-
en:
|
|
16
|
-
sv:
|
|
14
|
+
}, x = { close: "Close" }, M = { close: "Stäng" }, N = {
|
|
15
|
+
en: x,
|
|
16
|
+
sv: M
|
|
17
17
|
}, F = ({
|
|
18
18
|
children: s,
|
|
19
19
|
title: l,
|
|
@@ -21,16 +21,16 @@ import '../assets/Dialog.css';const h = "_modal_nxs78_1", p = "_overlay_nxs78_24
|
|
|
21
21
|
className: t,
|
|
22
22
|
...d
|
|
23
23
|
}) => {
|
|
24
|
-
const m = f(
|
|
24
|
+
const m = f(N);
|
|
25
25
|
return /* @__PURE__ */ o(
|
|
26
|
-
|
|
26
|
+
i,
|
|
27
27
|
{
|
|
28
28
|
...d,
|
|
29
|
-
className:
|
|
30
|
-
children: /* @__PURE__ */ o(c, { className: a.modal, children: /* @__PURE__ */ e(
|
|
29
|
+
className: y(a.overlay, t),
|
|
30
|
+
children: /* @__PURE__ */ o(c, { className: a.modal, children: /* @__PURE__ */ e(n, { children: [
|
|
31
31
|
/* @__PURE__ */ e("div", { className: a.modalHeader, children: [
|
|
32
32
|
/* @__PURE__ */ o("div", { className: a.modalTitle, children: l && /* @__PURE__ */ o(
|
|
33
|
-
|
|
33
|
+
h,
|
|
34
34
|
{
|
|
35
35
|
level: 3,
|
|
36
36
|
elementType: "h2",
|
|
@@ -43,7 +43,7 @@ import '../assets/Dialog.css';const h = "_modal_nxs78_1", p = "_overlay_nxs78_24
|
|
|
43
43
|
{
|
|
44
44
|
slot: "close",
|
|
45
45
|
variant: "tertiary",
|
|
46
|
-
icon:
|
|
46
|
+
icon: v,
|
|
47
47
|
iconPlacement: "right",
|
|
48
48
|
children: m.format("close")
|
|
49
49
|
}
|
|
@@ -2,7 +2,7 @@ import { jsx as i } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as n, useContext as f } from "react";
|
|
3
3
|
import { FieldErrorContext as c, FieldError as d } from "react-aria-components";
|
|
4
4
|
import { c as a } from "./clsx-AexbMWKp.js";
|
|
5
|
-
import { T as m } from "./Text-
|
|
5
|
+
import { T as m } from "./Text-D0r_W4lH.js";
|
|
6
6
|
import '../assets/FieldError.css';const E = "_fieldError_u3cks_1", u = {
|
|
7
7
|
fieldError: E
|
|
8
8
|
}, x = n(
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { c as l } from "./clsx-AexbMWKp.js";
|
|
3
|
+
import { Heading as g } from "react-aria-components";
|
|
4
|
+
import '../assets/Heading.css';const i = "_h1_13alg_1", m = "_h2_13alg_2", p = "_h3_13alg_3", d = "_h4_13alg_4", f = "_h5_13alg_5", x = "_h6_13alg_6", h = {
|
|
5
|
+
h1: i,
|
|
6
|
+
h2: m,
|
|
7
|
+
h3: p,
|
|
8
|
+
h4: d,
|
|
9
|
+
h5: f,
|
|
10
|
+
h6: x
|
|
11
|
+
}, j = ({
|
|
12
|
+
children: t,
|
|
13
|
+
className: _,
|
|
14
|
+
enableMargins: o = !1,
|
|
15
|
+
isExpressive: n = !1,
|
|
16
|
+
level: s = 3,
|
|
17
|
+
elementType: a,
|
|
18
|
+
...e
|
|
19
|
+
}) => {
|
|
20
|
+
const r = a && parseInt(a.split("h")[1]);
|
|
21
|
+
return /* @__PURE__ */ c(
|
|
22
|
+
g,
|
|
23
|
+
{
|
|
24
|
+
level: r || s,
|
|
25
|
+
className: l(
|
|
26
|
+
[h.h1, h.h2, h.h3, h.h4, h.h5, h.h6][s - 1],
|
|
27
|
+
_
|
|
28
|
+
),
|
|
29
|
+
...n && { "data-expressive": !0 },
|
|
30
|
+
...o && { "data-margin": !0 },
|
|
31
|
+
...e,
|
|
32
|
+
children: t
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
j as H
|
|
38
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as e, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import * as h from "react";
|
|
3
3
|
import { c as j } from "./clsx-AexbMWKp.js";
|
|
4
|
-
import { B as x } from "./Button-
|
|
4
|
+
import { B as x } from "./Button-BhIvfqOc.js";
|
|
5
5
|
import { F as B } from "./FeedbackStatusIcon-X9Bjgeta.js";
|
|
6
6
|
import { X as N } from "./x-B9bYxG31.js";
|
|
7
7
|
import { u as b } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
@@ -3,8 +3,8 @@ import * as b from "react";
|
|
|
3
3
|
import s from "react";
|
|
4
4
|
import { c as f } from "./clsx-AexbMWKp.js";
|
|
5
5
|
import { DialogTrigger as v, Label as d } from "react-aria-components";
|
|
6
|
-
import { P as g } from "./Popover-
|
|
7
|
-
import { B as u } from "./Button-
|
|
6
|
+
import { P as g } from "./Popover-CaP4LFhg.js";
|
|
7
|
+
import { B as u } from "./Button-BhIvfqOc.js";
|
|
8
8
|
import { I as P } from "./info-N5jWZg2A.js";
|
|
9
9
|
import { u as _ } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
10
10
|
import '../assets/Label.css';const I = "_labelBase_f5wtf_1", x = {
|