@midas-ds/components 17.8.1 → 17.8.3
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 +18 -0
- package/accordion/index.js +1 -1
- package/assets/Button.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/ComboBox.css +1 -1
- package/assets/DateRangePicker.css +1 -1
- package/assets/Dialog.css +1 -1
- package/assets/InfoBanner.css +1 -1
- package/assets/Label.css +1 -1
- package/assets/Link.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/ListBox.css +1 -1
- package/assets/Popover.css +1 -1
- package/assets/ProgressBar.css +1 -1
- package/assets/Radio.css +1 -1
- package/assets/Select.css +1 -1
- package/assets/Separator.css +1 -1
- package/assets/Skeleton.css +1 -1
- package/assets/Table.css +1 -1
- package/assets/Toast.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/checkbox/index.js +2 -2
- package/chunks/{AccordionItem-w6c28fSu.js → AccordionItem-DHhQDd6o.js} +1 -1
- package/chunks/{Button-D22xOe8j.js → Button-GCROAMSl.js} +1 -1
- package/chunks/Button.module-byTN5rhp.js +14 -0
- package/chunks/{Checkbox-sAkQe7Q9.js → Checkbox-DSW-_Qpm.js} +28 -28
- package/chunks/{CheckboxGroup-DY8sC9ro.js → CheckboxGroup-DteJIgnR.js} +2 -2
- package/chunks/{ClearButton-DfwjeVYh.js → ClearButton-DkC8PIMi.js} +1 -1
- package/chunks/{ColorSchemeSwitch-D52V0sr3.js → ColorSchemeSwitch-gD9pFu9h.js} +1 -1
- package/chunks/{ComboBox-BGMkkxN2.js → ComboBox-BEUfJ6IN.js} +29 -29
- package/chunks/{DateField-kEqIc-Nc.js → DateField-Bwis4G2o.js} +2 -2
- package/chunks/DateRangePicker-5E41DzGI.js +198 -0
- package/chunks/{Dialog-SBj6IJAF.js → Dialog-BSWBlyJI.js} +16 -16
- package/chunks/InfoBanner-CWLvkP6D.js +76 -0
- package/chunks/{Label-BNQY5OnB.js → Label-Cg0aAlnt.js} +7 -7
- package/chunks/{Layout-fkaVQ6a0.js → Layout-BLP0HVR-.js} +2 -2
- package/chunks/Link-CyY3-8M8.js +59 -0
- package/chunks/{LinkButton-DJ-D5PkB.js → LinkButton-DWKAbxXF.js} +28 -28
- package/chunks/{ListBox-BmONCo_D.js → ListBox-CRtyHPj1.js} +19 -19
- package/chunks/{ListBoxEmptyState-7VzB4KvQ.js → ListBoxEmptyState-D6Jvy1WT.js} +1 -1
- package/chunks/{ListBoxHeader-D_WqTfOS.js → ListBoxHeader-DIxY1gOH.js} +1 -1
- package/chunks/{Popover-6cnHxDEK.js → Popover-CjEPHe4A.js} +7 -7
- package/chunks/ProgressBar-CBz_dIOH.js +53 -0
- package/chunks/Radio-CRHdSthr.js +44 -0
- package/chunks/{RangeCalendar-_g_BVyUN.js → RangeCalendar-DL6cCjH3.js} +1 -1
- package/chunks/{SearchField-D2Mm_VUO.js → SearchField-C_wD8YuG.js} +2 -2
- package/chunks/{Select-DJ_VE1E4.js → Select-C01v_D--.js} +57 -57
- package/chunks/Separator-CDRwpeHz.js +76 -0
- package/chunks/{Skeleton-D6mxKxuu.js → Skeleton-tiP1Syzf.js} +20 -20
- package/chunks/{Table-Bg-AKi7d.js → Table-BpVSZ3aM.js} +48 -48
- package/chunks/{TagGroup-YCiXkdo3.js → TagGroup-DPFh8qHR.js} +1 -1
- package/chunks/{TextArea-Z4BKGpA9.js → TextArea-C7l7_Kof.js} +2 -2
- package/chunks/Toast-BFq_0Ue4.js +158 -0
- package/chunks/{ToggleButtonGroup-Bv9xpwTT.js → ToggleButtonGroup-DRnEEi5-.js} +1 -1
- package/chunks/{Tooltip-C1bbgr2l.js → Tooltip-BYEaNkZG.js} +11 -11
- 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/index.js +32 -32
- 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 +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/tag/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/Button.module-BW0TvYZ2.js +0 -14
- package/chunks/DateRangePicker-B7d3F0qi.js +0 -197
- package/chunks/InfoBanner-BIDGEIpk.js +0 -76
- package/chunks/Link-rqGQvFQq.js +0 -59
- package/chunks/ProgressBar-BIfkrfrH.js +0 -53
- package/chunks/Radio-D-sGYrD6.js +0 -44
- package/chunks/Separator-CkVOLF6I.js +0 -76
- package/chunks/Toast-D8euCY5O.js +0 -158
|
@@ -5,8 +5,8 @@ import * as y from "react";
|
|
|
5
5
|
import { useState as W, useEffect as j } from "react";
|
|
6
6
|
import { c as b } from "./clsx-AexbMWKp.js";
|
|
7
7
|
import { Link as L, RouterProvider as P } from "react-aria-components";
|
|
8
|
-
import { B as T } from "./Button-
|
|
9
|
-
import { a as D, T as q } from "./Tooltip-
|
|
8
|
+
import { B as T } from "./Button-GCROAMSl.js";
|
|
9
|
+
import { a as D, T as q } from "./Tooltip-BYEaNkZG.js";
|
|
10
10
|
import { a as I, B as M } from "./BadgeContainer-CKVsfTlF.js";
|
|
11
11
|
import { c as S } from "./createLucideIcon-CP-mMPfa.js";
|
|
12
12
|
import { u as k } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as r, jsxs as _, Fragment as f } from "react/jsx-runtime";
|
|
3
|
+
import { Link as p } from "react-aria-components";
|
|
4
|
+
import { c as k } from "./clsx-AexbMWKp.js";
|
|
5
|
+
import { c as u } from "./createLucideIcon-CP-mMPfa.js";
|
|
6
|
+
import { S as w } from "./square-arrow-out-up-right-x_I6wdNi.js";
|
|
7
|
+
import { A as L } from "./arrow-right-BVcFGZmy.js";
|
|
8
|
+
import '../assets/Link.css';const x = [
|
|
9
|
+
["path", { d: "M12 17V3", key: "1cwfxf" }],
|
|
10
|
+
["path", { d: "m6 11 6 6 6-6", key: "12ii2o" }],
|
|
11
|
+
["path", { d: "M19 21H5", key: "150jfl" }]
|
|
12
|
+
], g = u("arrow-down-to-line", x), y = "_link_1sdlh_1", A = "_icon_1sdlh_51", j = "_standalone_1sdlh_55", I = "_stretched_1sdlh_72", o = {
|
|
13
|
+
link: y,
|
|
14
|
+
icon: A,
|
|
15
|
+
standalone: j,
|
|
16
|
+
stretched: I
|
|
17
|
+
}, D = ({
|
|
18
|
+
children: t,
|
|
19
|
+
standalone: n,
|
|
20
|
+
target: s,
|
|
21
|
+
stretched: i,
|
|
22
|
+
download: l,
|
|
23
|
+
icon: e,
|
|
24
|
+
className: a,
|
|
25
|
+
as: d,
|
|
26
|
+
...m
|
|
27
|
+
}) => {
|
|
28
|
+
const h = d || p, c = e || (l ? g : s === "_blank" ? w : n ? L : null);
|
|
29
|
+
return /* @__PURE__ */ r(
|
|
30
|
+
h,
|
|
31
|
+
{
|
|
32
|
+
className: k(
|
|
33
|
+
o.link,
|
|
34
|
+
n && o.standalone,
|
|
35
|
+
i && o.stretched,
|
|
36
|
+
a
|
|
37
|
+
),
|
|
38
|
+
...m,
|
|
39
|
+
target: s,
|
|
40
|
+
children: /* @__PURE__ */ _(f, { children: [
|
|
41
|
+
t,
|
|
42
|
+
c ? /* @__PURE__ */ r(
|
|
43
|
+
N,
|
|
44
|
+
{
|
|
45
|
+
className: o.icon,
|
|
46
|
+
icon: c,
|
|
47
|
+
size: 16
|
|
48
|
+
}
|
|
49
|
+
) : null
|
|
50
|
+
] })
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}, N = ({
|
|
54
|
+
icon: t,
|
|
55
|
+
...n
|
|
56
|
+
}) => /* @__PURE__ */ r(t, { ...n });
|
|
57
|
+
export {
|
|
58
|
+
D as L
|
|
59
|
+
};
|
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as l, jsx as c } from "react/jsx-runtime";
|
|
3
3
|
import { Link as u } from "react-aria-components";
|
|
4
|
-
import { c as
|
|
4
|
+
import { c as x } from "./clsx-AexbMWKp.js";
|
|
5
5
|
import { S as y } from "./square-arrow-out-up-right-x_I6wdNi.js";
|
|
6
6
|
import { c as p } from "./createLucideIcon-CP-mMPfa.js";
|
|
7
7
|
import { A as g } from "./arrow-right-BVcFGZmy.js";
|
|
8
8
|
import '../assets/LinkButton.css';const h = [
|
|
9
9
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
10
10
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
11
|
-
], k = p("arrow-left", h), B = "
|
|
11
|
+
], k = p("arrow-left", h), B = "_linkButton_ix6fe_1", L = "_secondary_ix6fe_56", w = "_icon_ix6fe_61", A = "_tertiary_ix6fe_98", I = "_danger_ix6fe_124", N = "_iconBtn_ix6fe_141", j = "_medium_ix6fe_163", z = "_iconLeft_ix6fe_168", R = "_fullwidth_ix6fe_172", t = {
|
|
12
12
|
linkButton: B,
|
|
13
13
|
secondary: L,
|
|
14
|
-
icon:
|
|
15
|
-
tertiary:
|
|
16
|
-
danger:
|
|
17
|
-
iconBtn:
|
|
18
|
-
medium:
|
|
19
|
-
iconLeft:
|
|
20
|
-
fullwidth:
|
|
21
|
-
},
|
|
14
|
+
icon: w,
|
|
15
|
+
tertiary: A,
|
|
16
|
+
danger: I,
|
|
17
|
+
iconBtn: N,
|
|
18
|
+
medium: j,
|
|
19
|
+
iconLeft: z,
|
|
20
|
+
fullwidth: R
|
|
21
|
+
}, D = ({
|
|
22
22
|
children: o,
|
|
23
23
|
variant: n,
|
|
24
24
|
fullwidth: s,
|
|
25
25
|
icon: e,
|
|
26
|
-
iconPlacement:
|
|
27
|
-
className:
|
|
28
|
-
as:
|
|
29
|
-
size:
|
|
30
|
-
...
|
|
26
|
+
iconPlacement: i,
|
|
27
|
+
className: f,
|
|
28
|
+
as: _,
|
|
29
|
+
size: m = "large",
|
|
30
|
+
...r
|
|
31
31
|
}) => {
|
|
32
|
-
const
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
|
|
32
|
+
const a = _ || u, d = e || (r.target === "_blank" ? y : i === "left" ? k : g);
|
|
33
|
+
return /* @__PURE__ */ l(
|
|
34
|
+
a,
|
|
35
35
|
{
|
|
36
|
-
className:
|
|
36
|
+
className: x(
|
|
37
37
|
t.linkButton,
|
|
38
38
|
n === "primary" && t.primary,
|
|
39
39
|
n === "secondary" && t.secondary,
|
|
40
40
|
n === "tertiary" && t.tertiary,
|
|
41
41
|
n === "danger" && t.danger,
|
|
42
42
|
n === "icon" && t.iconBtn,
|
|
43
|
-
|
|
43
|
+
m === "medium" && t.medium,
|
|
44
44
|
s && t.fullwidth,
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
i === "left" && t.iconLeft,
|
|
46
|
+
f
|
|
47
47
|
),
|
|
48
|
-
...
|
|
48
|
+
...r,
|
|
49
49
|
children: [
|
|
50
50
|
o,
|
|
51
51
|
/* @__PURE__ */ c(
|
|
52
|
-
|
|
52
|
+
S,
|
|
53
53
|
{
|
|
54
54
|
className: t.icon,
|
|
55
|
-
icon:
|
|
55
|
+
icon: d,
|
|
56
56
|
size: 20
|
|
57
57
|
}
|
|
58
58
|
)
|
|
59
59
|
]
|
|
60
60
|
}
|
|
61
61
|
);
|
|
62
|
-
},
|
|
62
|
+
}, S = ({
|
|
63
63
|
icon: o,
|
|
64
64
|
...n
|
|
65
65
|
}) => /* @__PURE__ */ c(o, { ...n });
|
|
66
66
|
export {
|
|
67
|
-
|
|
67
|
+
D as L
|
|
68
68
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { ListLayout as
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { ListLayout as e, Virtualizer as n, ListBox as l } from "react-aria-components";
|
|
3
3
|
import { c as x } from "./clsx-AexbMWKp.js";
|
|
4
|
-
import '../assets/ListBox.css';class
|
|
4
|
+
import '../assets/ListBox.css';class r extends e {
|
|
5
5
|
/**
|
|
6
6
|
* When using the ListLayout our scroll container height is not calculated properly when the content is partially sectioned.
|
|
7
7
|
* ```ts
|
|
@@ -25,29 +25,29 @@ import '../assets/ListBox.css';class B extends i {
|
|
|
25
25
|
}), this.contentSize;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
const
|
|
29
|
-
listBox:
|
|
28
|
+
const B = "_listBox_6zv1j_4", a = "_listBoxPopover_6zv1j_16 _dropdownAnimation_1ljkv_4", _ = "_listBoxSectionHeading_6zv1j_31", c = "_listBoxButton_6zv1j_43", m = "_listBoxItem_6zv1j_55", d = "_textContent_6zv1j_68", v = "_listBoxLoadMoreItem_6zv1j_172", L = {
|
|
29
|
+
listBox: B,
|
|
30
30
|
listBoxPopover: a,
|
|
31
|
-
listBoxSectionHeading:
|
|
32
|
-
listBoxButton:
|
|
31
|
+
listBoxSectionHeading: _,
|
|
32
|
+
listBoxButton: c,
|
|
33
33
|
listBoxItem: m,
|
|
34
|
-
textContent:
|
|
35
|
-
listBoxLoadMoreItem:
|
|
36
|
-
},
|
|
37
|
-
className:
|
|
34
|
+
textContent: d,
|
|
35
|
+
listBoxLoadMoreItem: v
|
|
36
|
+
}, p = ({
|
|
37
|
+
className: s,
|
|
38
38
|
children: t,
|
|
39
39
|
...o
|
|
40
|
-
}) => /* @__PURE__ */
|
|
41
|
-
|
|
40
|
+
}) => /* @__PURE__ */ i(
|
|
41
|
+
n,
|
|
42
42
|
{
|
|
43
|
-
layout:
|
|
43
|
+
layout: r,
|
|
44
44
|
layoutOptions: {
|
|
45
45
|
headingHeight: 38
|
|
46
46
|
},
|
|
47
|
-
children: /* @__PURE__ */
|
|
48
|
-
|
|
47
|
+
children: /* @__PURE__ */ i(
|
|
48
|
+
l,
|
|
49
49
|
{
|
|
50
|
-
className: x(
|
|
50
|
+
className: x(L.listBox, s),
|
|
51
51
|
...o,
|
|
52
52
|
children: t
|
|
53
53
|
}
|
|
@@ -55,6 +55,6 @@ const r = "_listBox_1l41e_4", a = "_listBoxPopover_1l41e_16", c = "_listBoxSecti
|
|
|
55
55
|
}
|
|
56
56
|
);
|
|
57
57
|
export {
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
p as L,
|
|
59
|
+
L as s
|
|
60
60
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { c as m } from "./clsx-AexbMWKp.js";
|
|
3
3
|
import { Popover as r } from "react-aria-components";
|
|
4
|
-
import { s as a } from "./ListBox-
|
|
4
|
+
import { s as a } from "./ListBox-CRtyHPj1.js";
|
|
5
5
|
import { T as p } from "./Text-D0r_W4lH.js";
|
|
6
6
|
import '../assets/ListBoxEmptyState.css';const n = ({
|
|
7
7
|
className: t,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o, jsxs as m, Fragment as c } from "react/jsx-runtime";
|
|
2
2
|
import { c as i } from "./clsx-AexbMWKp.js";
|
|
3
|
-
import { s as e } from "./ListBox-
|
|
3
|
+
import { s as e } from "./ListBox-CRtyHPj1.js";
|
|
4
4
|
import { ListBoxItem as x, ListBoxSection as d, ListBoxLoadMoreItem as l, Header as L } from "react-aria-components";
|
|
5
5
|
import { S as B } from "./Spinner-CfKMn18u.js";
|
|
6
6
|
import { u as p } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
1
|
+
import { jsx as r, jsxs as i, Fragment as l } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as f } from "react";
|
|
3
|
-
import { useContextProps as v, PopoverContext as h, Popover as w, composeRenderProps as
|
|
3
|
+
import { useContextProps as v, PopoverContext as h, Popover as w, composeRenderProps as P, OverlayArrow as x } from "react-aria-components";
|
|
4
4
|
import { c as _ } from "./clsx-AexbMWKp.js";
|
|
5
|
-
import '../assets/Popover.css';const g = "
|
|
5
|
+
import '../assets/Popover.css';const g = "_popover_1k0dj_1", j = "_arrow_1k0dj_25", e = {
|
|
6
6
|
popover: g,
|
|
7
|
-
arrow:
|
|
7
|
+
arrow: j
|
|
8
8
|
}, y = f((s, t) => {
|
|
9
9
|
const [o, p] = v(s, t, h), { className: a, hideArrow: c = !1, offset: n = 4, ...m } = o;
|
|
10
10
|
return /* @__PURE__ */ r(
|
|
@@ -14,8 +14,8 @@ import '../assets/Popover.css';const g = "_popover_1sqxu_1", u = "_arrow_1sqxu_2
|
|
|
14
14
|
offset: n,
|
|
15
15
|
ref: p,
|
|
16
16
|
...m,
|
|
17
|
-
children:
|
|
18
|
-
!c && /* @__PURE__ */ r(
|
|
17
|
+
children: P(o.children, (d) => /* @__PURE__ */ i(l, { children: [
|
|
18
|
+
!c && /* @__PURE__ */ r(x, { className: e.arrow, children: /* @__PURE__ */ r(
|
|
19
19
|
"svg",
|
|
20
20
|
{
|
|
21
21
|
height: 16,
|
|
@@ -24,7 +24,7 @@ import '../assets/Popover.css';const g = "_popover_1sqxu_1", u = "_arrow_1sqxu_2
|
|
|
24
24
|
children: /* @__PURE__ */ r("path", { d: "M0 0 L8 8 L16 0" })
|
|
25
25
|
}
|
|
26
26
|
) }),
|
|
27
|
-
|
|
27
|
+
d
|
|
28
28
|
] }))
|
|
29
29
|
}
|
|
30
30
|
);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsx as e, jsxs as _, Fragment as v } from "react/jsx-runtime";
|
|
2
|
+
import { ProgressBar as h } from "react-aria-components";
|
|
3
|
+
import { L as t } from "./Label-Cg0aAlnt.js";
|
|
4
|
+
import { c as l } from "./clsx-AexbMWKp.js";
|
|
5
|
+
import '../assets/ProgressBar.css';const d = "_progressBar_1hwve_1", f = "_label_1hwve_9", N = "_value_1hwve_14", g = "_bar_1hwve_19", p = "_fill_1hwve_29", a = {
|
|
6
|
+
progressBar: d,
|
|
7
|
+
label: f,
|
|
8
|
+
value: N,
|
|
9
|
+
bar: g,
|
|
10
|
+
fill: p
|
|
11
|
+
}, y = ({
|
|
12
|
+
label: r,
|
|
13
|
+
labelProps: s,
|
|
14
|
+
showValueLabel: m = !1,
|
|
15
|
+
...c
|
|
16
|
+
}) => /* @__PURE__ */ e(
|
|
17
|
+
h,
|
|
18
|
+
{
|
|
19
|
+
...c,
|
|
20
|
+
className: l(a.progressBar, c.className),
|
|
21
|
+
children: ({ percentage: i, valueText: n, isIndeterminate: o }) => /* @__PURE__ */ _(v, { children: [
|
|
22
|
+
r && /* @__PURE__ */ e(
|
|
23
|
+
t,
|
|
24
|
+
{
|
|
25
|
+
elementType: "span",
|
|
26
|
+
...s,
|
|
27
|
+
className: l(s?.className, a.label),
|
|
28
|
+
children: r
|
|
29
|
+
}
|
|
30
|
+
),
|
|
31
|
+
m && /* @__PURE__ */ e(
|
|
32
|
+
t,
|
|
33
|
+
{
|
|
34
|
+
elementType: "span",
|
|
35
|
+
...s,
|
|
36
|
+
id: r ? "" : s?.id,
|
|
37
|
+
className: l(s?.className, a.value),
|
|
38
|
+
children: n
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
/* @__PURE__ */ e("div", { className: a.bar, children: /* @__PURE__ */ e(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
className: a.fill,
|
|
45
|
+
style: { width: `${o ? 50 : i}%` }
|
|
46
|
+
}
|
|
47
|
+
) })
|
|
48
|
+
] })
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
export {
|
|
52
|
+
y as P
|
|
53
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as o, jsxs as u, Fragment as _ } from "react/jsx-runtime";
|
|
3
|
+
import { Radio as f, RadioGroup as h, composeRenderProps as G, Group as R } from "react-aria-components";
|
|
4
|
+
import { c as p } from "./clsx-AexbMWKp.js";
|
|
5
|
+
import { a as x, L as w } from "./Label-Cg0aAlnt.js";
|
|
6
|
+
import { T as E } from "./Text-D0r_W4lH.js";
|
|
7
|
+
import { F as t } from "./FieldError-krpMBtie.js";
|
|
8
|
+
import '../assets/Radio.css';const F = "_radioGroup_1oic0_1", L = "_wrap_1oic0_12", N = "_radio_1oic0_1", i = {
|
|
9
|
+
radioGroup: F,
|
|
10
|
+
wrap: L,
|
|
11
|
+
radio: N
|
|
12
|
+
}, g = ({
|
|
13
|
+
label: r,
|
|
14
|
+
description: a,
|
|
15
|
+
errorMessage: d,
|
|
16
|
+
children: c,
|
|
17
|
+
className: e,
|
|
18
|
+
errorPosition: s = "top",
|
|
19
|
+
popover: m,
|
|
20
|
+
...l
|
|
21
|
+
}) => /* @__PURE__ */ o(
|
|
22
|
+
h,
|
|
23
|
+
{
|
|
24
|
+
...l,
|
|
25
|
+
className: p(i.radioGroup, e),
|
|
26
|
+
children: G(c, (n) => /* @__PURE__ */ u(_, { children: [
|
|
27
|
+
/* @__PURE__ */ o(x, { popover: m, children: r && /* @__PURE__ */ o(w, { children: r }) }),
|
|
28
|
+
a && /* @__PURE__ */ o(E, { slot: "description", children: a }),
|
|
29
|
+
s === "top" && /* @__PURE__ */ o(t, { "data-testid": "fieldError", children: d }),
|
|
30
|
+
/* @__PURE__ */ o(R, { className: i.wrap, children: n }),
|
|
31
|
+
s === "bottom" && /* @__PURE__ */ o(t, { "data-testid": "fieldError", children: d })
|
|
32
|
+
] }))
|
|
33
|
+
}
|
|
34
|
+
), k = ({ className: r, ...a }) => /* @__PURE__ */ o(
|
|
35
|
+
f,
|
|
36
|
+
{
|
|
37
|
+
className: p(i.radio, r),
|
|
38
|
+
...a
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
export {
|
|
42
|
+
k as R,
|
|
43
|
+
g as a
|
|
44
|
+
};
|
|
@@ -3,7 +3,7 @@ import { RangeCalendarContext as h, CalendarGrid as C, CalendarCell as v, Calend
|
|
|
3
3
|
import { c as y, a as l } from "./clsx-AexbMWKp.js";
|
|
4
4
|
import { F as s } from "./FieldError-krpMBtie.js";
|
|
5
5
|
import * as f from "react";
|
|
6
|
-
import { B as i } from "./Button-
|
|
6
|
+
import { B as i } from "./Button-GCROAMSl.js";
|
|
7
7
|
import { H as g } from "./Heading-nfcRc2QF.js";
|
|
8
8
|
import { c as R } from "./createLucideIcon-CP-mMPfa.js";
|
|
9
9
|
import { C as x } from "./chevron-right-DvXGOiS_.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsxs as u, jsx as a } from "react/jsx-runtime";
|
|
3
3
|
import { s as y } from "./TextField.module-BDIbEV87.js";
|
|
4
|
-
import { B as C } from "./Button-
|
|
5
|
-
import { C as F } from "./ClearButton-
|
|
4
|
+
import { B as C } from "./Button-GCROAMSl.js";
|
|
5
|
+
import { C as F } from "./ClearButton-DkC8PIMi.js";
|
|
6
6
|
import { c as l } from "./clsx-AexbMWKp.js";
|
|
7
7
|
import * as N from "react";
|
|
8
8
|
import { useSearchFieldState as x } from "react-stately";
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { jsx as e, Fragment as
|
|
2
|
-
import { SelectStateContext as d, SelectValue as f, Button as
|
|
3
|
-
import { FocusScope as
|
|
4
|
-
import { a as
|
|
5
|
-
import { a as
|
|
6
|
-
import { T
|
|
7
|
-
import { F as
|
|
8
|
-
import
|
|
9
|
-
import { C as
|
|
1
|
+
import { jsx as e, Fragment as j, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { SelectStateContext as d, SelectValue as f, Button as w, TagList as A, Select as C } from "react-aria-components";
|
|
3
|
+
import { FocusScope as N } from "@react-aria/focus";
|
|
4
|
+
import { a as q, L as x } from "./Label-Cg0aAlnt.js";
|
|
5
|
+
import { a as b, c as _ } from "./clsx-AexbMWKp.js";
|
|
6
|
+
import { T } from "./Text-D0r_W4lH.js";
|
|
7
|
+
import { F as h } from "./FieldError-krpMBtie.js";
|
|
8
|
+
import p, { useContext as S } from "react";
|
|
9
|
+
import { C as y } from "./Checkbox-DSW-_Qpm.js";
|
|
10
10
|
import { u as m } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
11
|
-
import { useFocusManager as
|
|
12
|
-
import { X as
|
|
13
|
-
import { L as
|
|
14
|
-
import { P as
|
|
15
|
-
import { a as
|
|
16
|
-
import { C as
|
|
17
|
-
import '../assets/Select.css';const
|
|
18
|
-
en:
|
|
19
|
-
sv:
|
|
20
|
-
},
|
|
21
|
-
select:
|
|
22
|
-
triggerContainer:
|
|
23
|
-
trigger:
|
|
24
|
-
medium:
|
|
25
|
-
icon:
|
|
26
|
-
selectValue:
|
|
27
|
-
placeholder:
|
|
11
|
+
import { useFocusManager as B } from "react-aria";
|
|
12
|
+
import { X as M } from "./x-B9bYxG31.js";
|
|
13
|
+
import { L as F } from "./ListBox-CRtyHPj1.js";
|
|
14
|
+
import { P as L } from "./Popover-CjEPHe4A.js";
|
|
15
|
+
import { a as I, T as G } from "./TagGroup-DPFh8qHR.js";
|
|
16
|
+
import { C as k } from "./chevron-down-BBFYYzZq.js";
|
|
17
|
+
import '../assets/Select.css';const R = { clearAll: "Clear all", selectAll: "Select all", selectedItems: "Selected items", selected: "selected" }, $ = { clearAll: "Rensa alla", selectAll: "Välj alla", selectedItems: "Valda objekt", selected: "valda" }, u = {
|
|
18
|
+
en: R,
|
|
19
|
+
sv: $
|
|
20
|
+
}, z = "_select_wjqw8_1", D = "_triggerContainer_wjqw8_7", E = "_trigger_wjqw8_7", K = "_medium_wjqw8_30", P = "_icon_wjqw8_68", W = "_selectValue_wjqw8_74", X = "_placeholder_wjqw8_80", H = "_multiSelectValue_wjqw8_90", J = "_selectValueTag_wjqw8_114", O = "_clearButton_wjqw8_128", Q = "_truncate_wjqw8_140", U = "_popover_wjqw8_177", Y = "_selectAll_wjqw8_205", Z = "_tagGroup_wjqw8_271", a = {
|
|
21
|
+
select: z,
|
|
22
|
+
triggerContainer: D,
|
|
23
|
+
trigger: E,
|
|
24
|
+
medium: K,
|
|
25
|
+
icon: P,
|
|
26
|
+
selectValue: W,
|
|
27
|
+
placeholder: X,
|
|
28
28
|
multiSelectValue: H,
|
|
29
29
|
selectValueTag: J,
|
|
30
30
|
clearButton: O,
|
|
@@ -33,13 +33,13 @@ import '../assets/Select.css';const w = { clearAll: "Clear all", selectAll: "Sel
|
|
|
33
33
|
selectAll: Y,
|
|
34
34
|
tagGroup: Z
|
|
35
35
|
}, ee = () => {
|
|
36
|
-
const t =
|
|
36
|
+
const t = p.useContext(d), c = m(u), r = () => {
|
|
37
37
|
t?.setValue(
|
|
38
38
|
t?.selectionManager.isSelectAll ? null : Array.from(t.collection.getKeys())
|
|
39
39
|
), t?.commitValidation();
|
|
40
40
|
};
|
|
41
41
|
return /* @__PURE__ */ e(
|
|
42
|
-
|
|
42
|
+
y,
|
|
43
43
|
{
|
|
44
44
|
className: a.selectAll,
|
|
45
45
|
isIndeterminate: !t?.selectionManager.isSelectAll && !t?.selectionManager.isEmpty,
|
|
@@ -57,7 +57,7 @@ import '../assets/Select.css';const w = { clearAll: "Clear all", selectAll: "Sel
|
|
|
57
57
|
{
|
|
58
58
|
className: a.multiSelectValue,
|
|
59
59
|
"data-disabled": t || void 0,
|
|
60
|
-
children: ({ isPlaceholder: l, selectedItems: n, selectedText: s }) => l ? /* @__PURE__ */ e(
|
|
60
|
+
children: ({ isPlaceholder: l, selectedItems: n, selectedText: s }) => l ? /* @__PURE__ */ e(j, {}) : /* @__PURE__ */ i(
|
|
61
61
|
"div",
|
|
62
62
|
{
|
|
63
63
|
className: a.selectValueTag,
|
|
@@ -73,11 +73,11 @@ import '../assets/Select.css';const w = { clearAll: "Clear all", selectAll: "Sel
|
|
|
73
73
|
}, le = ({
|
|
74
74
|
isDisabled: t
|
|
75
75
|
}) => {
|
|
76
|
-
const c =
|
|
76
|
+
const c = p.useContext(d), r = m(u), l = B(), n = () => {
|
|
77
77
|
l?.focusFirst(), c?.setValue(null);
|
|
78
78
|
};
|
|
79
79
|
return /* @__PURE__ */ e(
|
|
80
|
-
|
|
80
|
+
w,
|
|
81
81
|
{
|
|
82
82
|
"aria-label": r.format("clearAll"),
|
|
83
83
|
className: a.clearButton,
|
|
@@ -85,7 +85,7 @@ import '../assets/Select.css';const w = { clearAll: "Clear all", selectAll: "Sel
|
|
|
85
85
|
slot: null,
|
|
86
86
|
isDisabled: t,
|
|
87
87
|
children: /* @__PURE__ */ e(
|
|
88
|
-
|
|
88
|
+
M,
|
|
89
89
|
{
|
|
90
90
|
width: 20,
|
|
91
91
|
height: 20
|
|
@@ -97,18 +97,18 @@ import '../assets/Select.css';const w = { clearAll: "Clear all", selectAll: "Sel
|
|
|
97
97
|
showTags: t,
|
|
98
98
|
isDisabled: c
|
|
99
99
|
}) => {
|
|
100
|
-
const r = m(u), l =
|
|
100
|
+
const r = m(u), l = S(d), n = (s) => {
|
|
101
101
|
l?.selectionManager.toggleSelection(Array.from(s)[0]);
|
|
102
102
|
};
|
|
103
103
|
return !l?.selectedItems.length || !t ? null : /* @__PURE__ */ e(
|
|
104
|
-
|
|
104
|
+
I,
|
|
105
105
|
{
|
|
106
106
|
"aria-label": r.format("selectedItems"),
|
|
107
107
|
className: a.tagGroup,
|
|
108
108
|
onRemove: n,
|
|
109
109
|
selectionBehavior: "toggle",
|
|
110
|
-
children: /* @__PURE__ */ e(
|
|
111
|
-
|
|
110
|
+
children: /* @__PURE__ */ e(A, { items: l.selectedItems, children: (s) => /* @__PURE__ */ e(
|
|
111
|
+
G,
|
|
112
112
|
{
|
|
113
113
|
isDismissable: !0,
|
|
114
114
|
id: s.key,
|
|
@@ -125,11 +125,11 @@ import '../assets/Select.css';const w = { clearAll: "Clear all", selectAll: "Sel
|
|
|
125
125
|
selectionMode: c,
|
|
126
126
|
size: r
|
|
127
127
|
}) => {
|
|
128
|
-
const l =
|
|
128
|
+
const l = S(d);
|
|
129
129
|
return /* @__PURE__ */ i(
|
|
130
|
-
|
|
130
|
+
w,
|
|
131
131
|
{
|
|
132
|
-
className:
|
|
132
|
+
className: b(
|
|
133
133
|
{
|
|
134
134
|
[a.medium]: r === "medium"
|
|
135
135
|
},
|
|
@@ -150,34 +150,34 @@ import '../assets/Select.css';const w = { clearAll: "Clear all", selectAll: "Sel
|
|
|
150
150
|
{
|
|
151
151
|
"aria-hidden": "true",
|
|
152
152
|
className: a.icon,
|
|
153
|
-
children: /* @__PURE__ */ e(
|
|
153
|
+
children: /* @__PURE__ */ e(k, { size: 20 })
|
|
154
154
|
}
|
|
155
155
|
)
|
|
156
156
|
]
|
|
157
157
|
}
|
|
158
158
|
);
|
|
159
159
|
};
|
|
160
|
-
function
|
|
160
|
+
function ve({
|
|
161
161
|
children: t,
|
|
162
162
|
description: c,
|
|
163
163
|
errorMessage: r,
|
|
164
164
|
errorPosition: l = "top",
|
|
165
165
|
items: n,
|
|
166
166
|
label: s,
|
|
167
|
-
popover:
|
|
168
|
-
popoverProps:
|
|
169
|
-
size:
|
|
167
|
+
popover: V,
|
|
168
|
+
popoverProps: g,
|
|
169
|
+
size: v = "large",
|
|
170
170
|
...o
|
|
171
171
|
}) {
|
|
172
|
-
return /* @__PURE__ */ e(
|
|
173
|
-
|
|
172
|
+
return /* @__PURE__ */ e(N, { children: /* @__PURE__ */ i(
|
|
173
|
+
C,
|
|
174
174
|
{
|
|
175
175
|
...o,
|
|
176
|
-
className:
|
|
176
|
+
className: _(o.className, a.select),
|
|
177
177
|
children: [
|
|
178
|
-
/* @__PURE__ */ e(
|
|
179
|
-
c && /* @__PURE__ */ e(
|
|
180
|
-
l === "top" && /* @__PURE__ */ e(
|
|
178
|
+
/* @__PURE__ */ e(q, { popover: V, children: s && /* @__PURE__ */ e(x, { "data-disabled": o.isDisabled || void 0, children: s }) }),
|
|
179
|
+
c && /* @__PURE__ */ e(T, { slot: "description", children: c }),
|
|
180
|
+
l === "top" && /* @__PURE__ */ e(h, { children: r }),
|
|
181
181
|
/* @__PURE__ */ i(
|
|
182
182
|
"div",
|
|
183
183
|
{
|
|
@@ -187,7 +187,7 @@ function Ae({
|
|
|
187
187
|
/* @__PURE__ */ e(
|
|
188
188
|
se,
|
|
189
189
|
{
|
|
190
|
-
size:
|
|
190
|
+
size: v,
|
|
191
191
|
...o
|
|
192
192
|
}
|
|
193
193
|
),
|
|
@@ -195,18 +195,18 @@ function Ae({
|
|
|
195
195
|
]
|
|
196
196
|
}
|
|
197
197
|
),
|
|
198
|
-
l === "bottom" && /* @__PURE__ */ e(
|
|
198
|
+
l === "bottom" && /* @__PURE__ */ e(h, { children: r }),
|
|
199
199
|
/* @__PURE__ */ i(
|
|
200
|
-
|
|
200
|
+
L,
|
|
201
201
|
{
|
|
202
202
|
offset: 0,
|
|
203
203
|
hideArrow: !0,
|
|
204
|
-
...
|
|
205
|
-
className: g
|
|
204
|
+
...g,
|
|
205
|
+
className: _(g?.className, a.popover),
|
|
206
206
|
children: [
|
|
207
207
|
o.isSelectableAll && /* @__PURE__ */ e(ee, {}),
|
|
208
208
|
/* @__PURE__ */ e(
|
|
209
|
-
|
|
209
|
+
F,
|
|
210
210
|
{
|
|
211
211
|
escapeKeyBehavior: "none",
|
|
212
212
|
items: n,
|
|
@@ -222,5 +222,5 @@ function Ae({
|
|
|
222
222
|
) });
|
|
223
223
|
}
|
|
224
224
|
export {
|
|
225
|
-
|
|
225
|
+
ve as S
|
|
226
226
|
};
|