@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
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { jsx as n, jsxs as r, Fragment as u } from "react/jsx-runtime";
|
|
2
|
+
import { Menu as _, MenuItem as l, Popover as d, MenuSection as M, Separator as h } from "react-aria-components";
|
|
3
|
+
import { c as a } from "./clsx-AexbMWKp.js";
|
|
4
|
+
import { C as S } from "./check-Bt2UikoU.js";
|
|
5
|
+
import { C as f } from "./chevron-right-DvXGOiS_.js";
|
|
6
|
+
import '../assets/Separator.css';const p = "_menu_1oois_1", v = "_menuSection_1oois_17", k = "_medium_1oois_29", C = "_menuItem_1oois_36", N = "_mainContent_1oois_106", I = "_checkMark_1oois_117", x = "_separator_1oois_127", P = "_menuPopover_1oois_150", t = {
|
|
7
|
+
menu: p,
|
|
8
|
+
menuSection: v,
|
|
9
|
+
medium: k,
|
|
10
|
+
menuItem: C,
|
|
11
|
+
mainContent: N,
|
|
12
|
+
checkMark: I,
|
|
13
|
+
separator: x,
|
|
14
|
+
menuPopover: P
|
|
15
|
+
}, z = ({
|
|
16
|
+
className: e,
|
|
17
|
+
size: o = "large",
|
|
18
|
+
...s
|
|
19
|
+
}) => /* @__PURE__ */ n(
|
|
20
|
+
_,
|
|
21
|
+
{
|
|
22
|
+
className: a(e, t.menu, o === "medium" && t.medium),
|
|
23
|
+
...s
|
|
24
|
+
}
|
|
25
|
+
), V = (e) => /* @__PURE__ */ n(
|
|
26
|
+
l,
|
|
27
|
+
{
|
|
28
|
+
...e,
|
|
29
|
+
textValue: e.textValue || (typeof e.children == "string" ? e.children : void 0),
|
|
30
|
+
className: a(t.menuItem, e.className),
|
|
31
|
+
children: (o) => {
|
|
32
|
+
const { children: s } = e, { selectionMode: m, isSelected: c, hasSubmenu: i } = o;
|
|
33
|
+
return /* @__PURE__ */ r(u, { children: [
|
|
34
|
+
m !== "none" && /* @__PURE__ */ n(
|
|
35
|
+
S,
|
|
36
|
+
{
|
|
37
|
+
size: 16,
|
|
38
|
+
className: t.checkMark,
|
|
39
|
+
"data-selected": c || void 0
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
/* @__PURE__ */ n("div", { className: t.mainContent, children: typeof s == "function" ? s(o) : s }),
|
|
43
|
+
i && /* @__PURE__ */ n(f, { size: 20 })
|
|
44
|
+
] });
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
), F = ({ className: e, ...o }) => /* @__PURE__ */ n(
|
|
48
|
+
d,
|
|
49
|
+
{
|
|
50
|
+
className: a(e, t.menuPopover),
|
|
51
|
+
offset: 4,
|
|
52
|
+
...o
|
|
53
|
+
}
|
|
54
|
+
), R = ({
|
|
55
|
+
className: e,
|
|
56
|
+
...o
|
|
57
|
+
}) => /* @__PURE__ */ n(
|
|
58
|
+
M,
|
|
59
|
+
{
|
|
60
|
+
className: a(e, t.menuSection),
|
|
61
|
+
...o
|
|
62
|
+
}
|
|
63
|
+
), q = ({ className: e, ...o }) => /* @__PURE__ */ n(
|
|
64
|
+
h,
|
|
65
|
+
{
|
|
66
|
+
className: a(e, t.separator),
|
|
67
|
+
...o
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
export {
|
|
71
|
+
z as M,
|
|
72
|
+
q as S,
|
|
73
|
+
V as a,
|
|
74
|
+
F as b,
|
|
75
|
+
R as c
|
|
76
|
+
};
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { jsxs as f, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { c as r } from "./clsx-AexbMWKp.js";
|
|
3
|
-
import '../assets/Skeleton.css';const
|
|
4
|
-
skeleton:
|
|
3
|
+
import '../assets/Skeleton.css';const k = "_skeleton_i5zk6_11", p = "_circle_i5zk6_25", u = "_wave_i5zk6_30", v = "_onLayer01_i5zk6_54", w = "_form_i5zk6_58", z = "_formLabel_i5zk6_64", d = "_formDescription_i5zk6_70", L = "_formInput_i5zk6_76", y = "_medium_i5zk6_81", o = {
|
|
4
|
+
skeleton: k,
|
|
5
5
|
circle: p,
|
|
6
6
|
wave: u,
|
|
7
7
|
onLayer01: v,
|
|
8
|
-
form:
|
|
9
|
-
formLabel:
|
|
10
|
-
formDescription:
|
|
11
|
-
formInput:
|
|
12
|
-
medium:
|
|
13
|
-
},
|
|
8
|
+
form: w,
|
|
9
|
+
formLabel: z,
|
|
10
|
+
formDescription: d,
|
|
11
|
+
formInput: L,
|
|
12
|
+
medium: y
|
|
13
|
+
}, D = ({
|
|
14
14
|
variant: s = "rectangle",
|
|
15
15
|
width: t,
|
|
16
|
-
height:
|
|
17
|
-
size:
|
|
16
|
+
height: l,
|
|
17
|
+
size: a = "large",
|
|
18
18
|
isAnimated: n = !0,
|
|
19
|
-
className:
|
|
20
|
-
style:
|
|
19
|
+
className: i,
|
|
20
|
+
style: m,
|
|
21
21
|
isOnLayer01: e,
|
|
22
|
-
...
|
|
23
|
-
}) => (s === "circle" &&
|
|
22
|
+
..._
|
|
23
|
+
}) => (s === "circle" && l !== void 0 && console.warn(
|
|
24
24
|
"Height is not allowed when using circle, control size with width"
|
|
25
25
|
), s === "form" ? /* @__PURE__ */ f(
|
|
26
26
|
"div",
|
|
27
27
|
{
|
|
28
28
|
className: r(
|
|
29
29
|
o.form,
|
|
30
|
-
o[
|
|
30
|
+
o[a],
|
|
31
31
|
e && o.onLayer01,
|
|
32
|
-
|
|
32
|
+
i
|
|
33
33
|
),
|
|
34
|
-
style: { width: t, ...
|
|
35
|
-
...
|
|
34
|
+
style: { width: t, ...m },
|
|
35
|
+
..._,
|
|
36
36
|
children: [
|
|
37
37
|
/* @__PURE__ */ c(
|
|
38
38
|
"div",
|
|
@@ -77,12 +77,12 @@ import '../assets/Skeleton.css';const w = "_skeleton_wia11_11", p = "_circle_wia
|
|
|
77
77
|
o[s],
|
|
78
78
|
n && o.wave,
|
|
79
79
|
e && o.onLayer01,
|
|
80
|
-
|
|
80
|
+
i
|
|
81
81
|
),
|
|
82
|
-
style: { width: t, height:
|
|
83
|
-
...
|
|
82
|
+
style: { width: t, height: l, ...m },
|
|
83
|
+
..._
|
|
84
84
|
}
|
|
85
85
|
));
|
|
86
86
|
export {
|
|
87
|
-
|
|
87
|
+
D as S
|
|
88
88
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as e, jsxs as b, Fragment as l } from "react/jsx-runtime";
|
|
3
|
-
import { Tabs as d, Tab as _, composeRenderProps as m, SelectionIndicator as T, TabPanel as
|
|
3
|
+
import { Tabs as d, Tab as _, composeRenderProps as m, SelectionIndicator as T, TabPanel as u, TabList as P } from "react-aria-components";
|
|
4
4
|
import { c as o } from "./clsx-AexbMWKp.js";
|
|
5
5
|
import * as i from "react";
|
|
6
|
-
import { createContext as
|
|
7
|
-
import '../assets/TabList.css';const c =
|
|
6
|
+
import { createContext as x } from "react";
|
|
7
|
+
import '../assets/TabList.css';const c = x({
|
|
8
8
|
variant: "uncontained"
|
|
9
|
-
}),
|
|
10
|
-
tabs:
|
|
11
|
-
tabList:
|
|
12
|
-
tab:
|
|
13
|
-
contained:
|
|
14
|
-
selectionIndicator:
|
|
15
|
-
tabPanel:
|
|
16
|
-
},
|
|
9
|
+
}), L = "_tabs_1nli1_1", p = "_tabList_1nli1_12", f = "_tab_1nli1_1", v = "_contained_1nli1_55", I = "_selectionIndicator_1nli1_94", N = "_tabPanel_1nli1_129", t = {
|
|
10
|
+
tabs: L,
|
|
11
|
+
tabList: p,
|
|
12
|
+
tab: f,
|
|
13
|
+
contained: v,
|
|
14
|
+
selectionIndicator: I,
|
|
15
|
+
tabPanel: N
|
|
16
|
+
}, R = ({
|
|
17
17
|
className: n,
|
|
18
18
|
variant: a = "uncontained",
|
|
19
19
|
...s
|
|
@@ -23,7 +23,7 @@ import '../assets/TabList.css';const c = P({
|
|
|
23
23
|
className: o(t.tabs, n),
|
|
24
24
|
...s
|
|
25
25
|
}
|
|
26
|
-
) }),
|
|
26
|
+
) }), g = ({ className: n, ...a }) => {
|
|
27
27
|
const { variant: s } = i.useContext(c);
|
|
28
28
|
return /* @__PURE__ */ e(
|
|
29
29
|
_,
|
|
@@ -49,10 +49,10 @@ import '../assets/TabList.css';const c = P({
|
|
|
49
49
|
] }))
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
|
-
},
|
|
52
|
+
}, y = ({ className: n, ...a }) => {
|
|
53
53
|
const { variant: s } = i.useContext(c);
|
|
54
54
|
return /* @__PURE__ */ e(
|
|
55
|
-
|
|
55
|
+
u,
|
|
56
56
|
{
|
|
57
57
|
className: o(
|
|
58
58
|
t.tabPanel,
|
|
@@ -64,19 +64,19 @@ import '../assets/TabList.css';const c = P({
|
|
|
64
64
|
...a
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
|
-
},
|
|
67
|
+
}, F = ({
|
|
68
68
|
className: n,
|
|
69
69
|
...a
|
|
70
70
|
}) => /* @__PURE__ */ e(
|
|
71
|
-
|
|
71
|
+
P,
|
|
72
72
|
{
|
|
73
73
|
className: o(t.tabList, n),
|
|
74
74
|
...a
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
77
|
export {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
g as T,
|
|
79
|
+
F as a,
|
|
80
|
+
y as b,
|
|
81
|
+
R as c
|
|
82
82
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx as e, jsxs as
|
|
2
|
+
import { jsx as e, jsxs as d, Fragment as b } from "react/jsx-runtime";
|
|
3
3
|
import { Cell as w, Column as g, useTableOptions as u, Row as N, Button as k, Collection as p, Table as f, TableBody as x, TableHeader as T } from "react-aria-components";
|
|
4
|
-
import { C as h } from "./Checkbox-
|
|
4
|
+
import { C as h } from "./Checkbox-sAkQe7Q9.js";
|
|
5
5
|
import { c as a } from "./clsx-AexbMWKp.js";
|
|
6
|
-
import { c as
|
|
6
|
+
import { c as i } from "./createLucideIcon-CP-mMPfa.js";
|
|
7
7
|
import '../assets/Table.css';const C = [
|
|
8
8
|
["path", { d: "M12 5v14", key: "s699le" }],
|
|
9
9
|
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
10
|
-
], I =
|
|
10
|
+
], I = i("arrow-down", C);
|
|
11
11
|
const v = [
|
|
12
12
|
["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
|
|
13
13
|
["path", { d: "M17 20V4", key: "1ejh1v" }],
|
|
14
14
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
15
15
|
["path", { d: "M7 4v16", key: "1glfcx" }]
|
|
16
|
-
], $ =
|
|
16
|
+
], $ = i("arrow-up-down", v);
|
|
17
17
|
const j = [
|
|
18
18
|
["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
|
|
19
19
|
["path", { d: "M12 19V5", key: "x0mq9r" }]
|
|
20
|
-
], B =
|
|
20
|
+
], B = i("arrow-up", j);
|
|
21
21
|
const H = [
|
|
22
22
|
["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
|
|
23
23
|
["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
|
|
@@ -25,7 +25,7 @@ const H = [
|
|
|
25
25
|
["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
|
|
26
26
|
["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
|
|
27
27
|
["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
|
|
28
|
-
], z =
|
|
28
|
+
], z = i("grip-vertical", H), M = "_table_m31t0_1", R = "_tableHeader_m31t0_11", q = "_column_m31t0_12", A = "_sortIndicator_m31t0_28", D = "_sortIconNeutral_m31t0_36", V = "_selection_m31t0_50", U = "_row_m31t0_56", F = "_cell_m31t0_74", G = "_medium_m31t0_114", L = "_striped_m31t0_125", t = {
|
|
29
29
|
table: M,
|
|
30
30
|
tableHeader: R,
|
|
31
31
|
column: q,
|
|
@@ -37,97 +37,97 @@ const H = [
|
|
|
37
37
|
medium: G,
|
|
38
38
|
striped: L
|
|
39
39
|
}, P = ({
|
|
40
|
-
size:
|
|
41
|
-
striped:
|
|
42
|
-
className:
|
|
43
|
-
...
|
|
40
|
+
size: o = "large",
|
|
41
|
+
striped: c = !1,
|
|
42
|
+
className: s,
|
|
43
|
+
...r
|
|
44
44
|
}) => /* @__PURE__ */ e(
|
|
45
45
|
f,
|
|
46
46
|
{
|
|
47
|
-
className: a(
|
|
48
|
-
[
|
|
49
|
-
[
|
|
47
|
+
className: a(t.table, s, {
|
|
48
|
+
[t.medium]: o === "medium",
|
|
49
|
+
[t.striped]: c
|
|
50
50
|
}),
|
|
51
|
-
...
|
|
51
|
+
...r
|
|
52
52
|
}
|
|
53
53
|
), Q = ({
|
|
54
|
-
columns:
|
|
55
|
-
children:
|
|
56
|
-
className:
|
|
54
|
+
columns: o,
|
|
55
|
+
children: c,
|
|
56
|
+
className: s
|
|
57
57
|
}) => {
|
|
58
|
-
const { selectionBehavior:
|
|
59
|
-
return /* @__PURE__ */
|
|
58
|
+
const { selectionBehavior: r, selectionMode: l, allowsDragging: n } = u();
|
|
59
|
+
return /* @__PURE__ */ d(T, { className: a(s, t.tableHeader), children: [
|
|
60
60
|
n && /* @__PURE__ */ e(m, {}),
|
|
61
|
-
|
|
61
|
+
r === "toggle" && /* @__PURE__ */ e(m, { width: 50, children: l === "multiple" && /* @__PURE__ */ e(
|
|
62
62
|
h,
|
|
63
63
|
{
|
|
64
|
-
className:
|
|
64
|
+
className: t.selection,
|
|
65
65
|
slot: "selection"
|
|
66
66
|
}
|
|
67
67
|
) }),
|
|
68
|
-
/* @__PURE__ */ e(p, { items:
|
|
68
|
+
/* @__PURE__ */ e(p, { items: o, children: c })
|
|
69
69
|
] });
|
|
70
70
|
}, W = ({
|
|
71
|
-
id:
|
|
72
|
-
columns:
|
|
73
|
-
children:
|
|
74
|
-
className:
|
|
75
|
-
...
|
|
71
|
+
id: o,
|
|
72
|
+
columns: c,
|
|
73
|
+
children: s,
|
|
74
|
+
className: r,
|
|
75
|
+
...l
|
|
76
76
|
}) => {
|
|
77
77
|
const { selectionBehavior: n, allowsDragging: y } = u();
|
|
78
|
-
return /* @__PURE__ */
|
|
78
|
+
return /* @__PURE__ */ d(
|
|
79
79
|
N,
|
|
80
80
|
{
|
|
81
|
-
id:
|
|
82
|
-
className: a(
|
|
83
|
-
...
|
|
81
|
+
id: o,
|
|
82
|
+
className: a(r, t.row),
|
|
83
|
+
...l,
|
|
84
84
|
children: [
|
|
85
85
|
y && /* @__PURE__ */ e(_, { children: /* @__PURE__ */ e(k, { slot: "drag", children: /* @__PURE__ */ e(z, { size: 20 }) }) }),
|
|
86
86
|
n === "toggle" && /* @__PURE__ */ e(_, { children: /* @__PURE__ */ e(
|
|
87
87
|
h,
|
|
88
88
|
{
|
|
89
|
-
className:
|
|
89
|
+
className: t.selection,
|
|
90
90
|
slot: "selection"
|
|
91
91
|
}
|
|
92
92
|
) }),
|
|
93
|
-
/* @__PURE__ */ e(p, { items:
|
|
93
|
+
/* @__PURE__ */ e(p, { items: c, children: s })
|
|
94
94
|
]
|
|
95
95
|
}
|
|
96
96
|
);
|
|
97
|
-
}, m = ({ children:
|
|
97
|
+
}, m = ({ children: o, className: c, ...s }) => /* @__PURE__ */ e(
|
|
98
98
|
g,
|
|
99
99
|
{
|
|
100
|
-
className: a(
|
|
101
|
-
...
|
|
102
|
-
children: ({ allowsSorting:
|
|
103
|
-
const n = () =>
|
|
104
|
-
return /* @__PURE__ */
|
|
105
|
-
|
|
106
|
-
|
|
100
|
+
className: a(c, t.column),
|
|
101
|
+
...s,
|
|
102
|
+
children: ({ allowsSorting: r, sortDirection: l }) => {
|
|
103
|
+
const n = () => l === "ascending" ? /* @__PURE__ */ e(B, { size: 16 }) : l === "descending" ? /* @__PURE__ */ e(I, { size: 16 }) : /* @__PURE__ */ e($, { size: 16, className: t.sortIconNeutral });
|
|
104
|
+
return /* @__PURE__ */ d(b, { children: [
|
|
105
|
+
o,
|
|
106
|
+
r && /* @__PURE__ */ e(
|
|
107
107
|
"span",
|
|
108
108
|
{
|
|
109
109
|
"aria-hidden": "true",
|
|
110
|
-
className:
|
|
110
|
+
className: t.sortIndicator,
|
|
111
111
|
children: n()
|
|
112
112
|
}
|
|
113
113
|
)
|
|
114
114
|
] });
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
), _ = ({ className:
|
|
117
|
+
), _ = ({ className: o, ...c }) => /* @__PURE__ */ e(
|
|
118
118
|
w,
|
|
119
119
|
{
|
|
120
|
-
className: a(
|
|
121
|
-
...
|
|
120
|
+
className: a(o, t.cell),
|
|
121
|
+
...c
|
|
122
122
|
}
|
|
123
123
|
), X = ({
|
|
124
|
-
className:
|
|
125
|
-
...
|
|
124
|
+
className: o,
|
|
125
|
+
...c
|
|
126
126
|
}) => /* @__PURE__ */ e(
|
|
127
127
|
x,
|
|
128
128
|
{
|
|
129
|
-
className: a(
|
|
130
|
-
...
|
|
129
|
+
className: a(o, t.tableBody),
|
|
130
|
+
...c
|
|
131
131
|
}
|
|
132
132
|
);
|
|
133
133
|
export {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
2
|
-
import { Tag as T, composeRenderProps as
|
|
3
|
-
import { B as
|
|
1
|
+
import { jsx as i, jsxs as _, Fragment as u } from "react/jsx-runtime";
|
|
2
|
+
import { Tag as T, composeRenderProps as p, useContextProps as d, TagListContext as b, TagList as x, TagGroupContext as h, TagGroup as L } from "react-aria-components";
|
|
3
|
+
import { B as v } from "./Button-BhIvfqOc.js";
|
|
4
4
|
import { c } from "./clsx-AexbMWKp.js";
|
|
5
|
-
import { X as
|
|
6
|
-
import { forwardRef as
|
|
7
|
-
import '../assets/TagGroup.css';const
|
|
8
|
-
button:
|
|
9
|
-
green:
|
|
10
|
-
red:
|
|
11
|
-
blue:
|
|
12
|
-
yellow:
|
|
13
|
-
tag:
|
|
14
|
-
tagText:
|
|
15
|
-
dismissable:
|
|
16
|
-
},
|
|
5
|
+
import { X as y } from "./x-B9bYxG31.js";
|
|
6
|
+
import { forwardRef as f, Children as N, isValidElement as w } from "react";
|
|
7
|
+
import '../assets/TagGroup.css';const q = "_button_f7q96_1", G = "_green_f7q96_16", C = "_red_f7q96_17", R = "_blue_f7q96_18", V = "_yellow_f7q96_19", $ = "_tag_f7q96_31", z = "_tagText_f7q96_83", E = "_dismissable_f7q96_88", a = {
|
|
8
|
+
button: q,
|
|
9
|
+
green: G,
|
|
10
|
+
red: C,
|
|
11
|
+
blue: R,
|
|
12
|
+
yellow: V,
|
|
13
|
+
tag: $,
|
|
14
|
+
tagText: z,
|
|
15
|
+
dismissable: E
|
|
16
|
+
}, X = ({
|
|
17
17
|
className: r,
|
|
18
18
|
color: e,
|
|
19
19
|
dismissable: o = !1,
|
|
@@ -38,48 +38,48 @@ import '../assets/TagGroup.css';const G = "_button_137b0_1", C = "_green_137b0_1
|
|
|
38
38
|
),
|
|
39
39
|
...n,
|
|
40
40
|
textValue: n.textValue || (typeof n.children == "string" ? n.children : void 0),
|
|
41
|
-
children:
|
|
41
|
+
children: p(n.children, (l) => /* @__PURE__ */ _(u, { children: [
|
|
42
42
|
/* @__PURE__ */ i("div", { className: a.tagText, children: l }),
|
|
43
43
|
g && /* @__PURE__ */ i(
|
|
44
|
-
|
|
44
|
+
v,
|
|
45
45
|
{
|
|
46
46
|
variant: "icon",
|
|
47
47
|
size: "medium",
|
|
48
48
|
className: a.button,
|
|
49
49
|
slot: "remove",
|
|
50
|
-
children: /* @__PURE__ */ i(
|
|
50
|
+
children: /* @__PURE__ */ i(y, { size: 20 })
|
|
51
51
|
}
|
|
52
52
|
)
|
|
53
53
|
] }))
|
|
54
54
|
}
|
|
55
55
|
);
|
|
56
|
-
},
|
|
57
|
-
tagList:
|
|
58
|
-
},
|
|
56
|
+
}, j = "_tagList_17pz2_1", B = {
|
|
57
|
+
tagList: j
|
|
58
|
+
}, P = (r, e) => {
|
|
59
59
|
const [{ className: o, ...t }, s] = d(
|
|
60
60
|
r,
|
|
61
61
|
e,
|
|
62
|
-
|
|
62
|
+
b
|
|
63
63
|
);
|
|
64
64
|
return /* @__PURE__ */ i(
|
|
65
65
|
x,
|
|
66
66
|
{
|
|
67
|
-
className: c(o,
|
|
67
|
+
className: c(o, B.tagList),
|
|
68
68
|
ref: s,
|
|
69
69
|
...t
|
|
70
70
|
}
|
|
71
71
|
);
|
|
72
|
-
}, m =
|
|
72
|
+
}, m = f(P), k = f(
|
|
73
73
|
(r, e) => {
|
|
74
74
|
const [{ className: o, children: t, ...s }, n] = d(
|
|
75
75
|
r,
|
|
76
76
|
e,
|
|
77
|
-
|
|
77
|
+
h
|
|
78
78
|
), g = N.toArray(t).filter(w).find((l) => l.type === m);
|
|
79
79
|
return !g && process.env.NODE_ENV === "development" && console.warn(
|
|
80
80
|
"Using a TagGroup without providing a TagList component is deprecated since v17.0.0, see: https://designsystem.migrationsverket.se/components/tag/"
|
|
81
81
|
), /* @__PURE__ */ i(
|
|
82
|
-
|
|
82
|
+
L,
|
|
83
83
|
{
|
|
84
84
|
className: c(o),
|
|
85
85
|
ref: n,
|
|
@@ -89,9 +89,9 @@ import '../assets/TagGroup.css';const G = "_button_137b0_1", C = "_green_137b0_1
|
|
|
89
89
|
);
|
|
90
90
|
}
|
|
91
91
|
);
|
|
92
|
-
|
|
92
|
+
k.displayName = "TagGroup";
|
|
93
93
|
export {
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
X as T,
|
|
95
|
+
k as a,
|
|
96
96
|
m as b
|
|
97
97
|
};
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { c as d } from "./clsx-AexbMWKp.js";
|
|
3
3
|
import { Text as _ } from "react-aria-components";
|
|
4
|
-
import '../assets/Text.css';const m = "
|
|
4
|
+
import '../assets/Text.css';const m = "_body_g096r_1", p = "_description_g096r_3", b = "_bold_g096r_24", g = "_italic_g096r_28", s = {
|
|
5
5
|
body: m,
|
|
6
|
-
"body-small": "_body-
|
|
6
|
+
"body-small": "_body-small_g096r_2",
|
|
7
7
|
description: p,
|
|
8
|
-
"description-small": "_description-
|
|
9
|
-
bold:
|
|
10
|
-
italic:
|
|
11
|
-
},
|
|
12
|
-
children:
|
|
13
|
-
className:
|
|
8
|
+
"description-small": "_description-small_g096r_4",
|
|
9
|
+
bold: b,
|
|
10
|
+
italic: g
|
|
11
|
+
}, l = "span", E = ({
|
|
12
|
+
children: r,
|
|
13
|
+
className: c,
|
|
14
14
|
size: t,
|
|
15
|
-
isExpressive:
|
|
16
|
-
elementType: o =
|
|
15
|
+
isExpressive: e = !1,
|
|
16
|
+
elementType: o = l,
|
|
17
17
|
...i
|
|
18
18
|
}) => {
|
|
19
|
-
const
|
|
19
|
+
const n = {
|
|
20
20
|
className: d(
|
|
21
21
|
i.slot === "description" ? t === "small" ? s["description-small"] : s.description : t === "small" ? s["body-small"] : s.body,
|
|
22
22
|
{
|
|
23
23
|
[s.bold]: ["b", "strong"].includes(o),
|
|
24
24
|
[s.italic]: ["i", "em"].includes(o)
|
|
25
25
|
},
|
|
26
|
-
|
|
26
|
+
c
|
|
27
27
|
),
|
|
28
|
-
elementType: o ||
|
|
29
|
-
...
|
|
28
|
+
elementType: o || l,
|
|
29
|
+
...e && { "data-expressive": !0 },
|
|
30
30
|
...i
|
|
31
31
|
};
|
|
32
|
-
return /* @__PURE__ */ a(_, { ...
|
|
32
|
+
return /* @__PURE__ */ a(_, { ...n, children: r });
|
|
33
33
|
};
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
E as T
|
|
36
36
|
};
|
|
@@ -3,13 +3,13 @@ import { jsxs as w, jsx as t } from "react/jsx-runtime";
|
|
|
3
3
|
import { forwardRef as c, useState as F } from "react";
|
|
4
4
|
import { useContextProps as u, TextFieldContext as y, TextField as g, InputContext as P, Input as b, TextArea as C } from "react-aria-components";
|
|
5
5
|
import { a as I, c as h } from "./clsx-AexbMWKp.js";
|
|
6
|
-
import { s as d } from "./TextField.module-
|
|
7
|
-
import { B as A } from "./Button-
|
|
6
|
+
import { s as d } from "./TextField.module-BDIbEV87.js";
|
|
7
|
+
import { B as A } from "./Button-BhIvfqOc.js";
|
|
8
8
|
import { u as B } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
9
|
-
import { T as L } from "./Text-
|
|
10
|
-
import { F as f } from "./FieldError-
|
|
9
|
+
import { T as L } from "./Text-D0r_W4lH.js";
|
|
10
|
+
import { F as f } from "./FieldError-krpMBtie.js";
|
|
11
11
|
import { C as S } from "./CharacterCounter-Dgnv-orm.js";
|
|
12
|
-
import { a as v, L as E } from "./Label-
|
|
12
|
+
import { a as v, L as E } from "./Label-s4J9sYdy.js";
|
|
13
13
|
const x = c(
|
|
14
14
|
(e, o) => {
|
|
15
15
|
[e] = u(e, o, y);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import '../assets/TextField.css';const t = "_textField_51vk6_1", o = "_bottomError_51vk6_20", _ = "_textArea_51vk6_29", r = "_input_51vk6_30", s = "_wrap_51vk6_87", e = "_medium_51vk6_92", n = "_passwordButton_51vk6_159", a = {
|
|
2
|
+
textField: t,
|
|
3
|
+
bottomError: o,
|
|
4
|
+
textArea: _,
|
|
5
|
+
input: r,
|
|
6
|
+
wrap: s,
|
|
7
|
+
medium: e,
|
|
8
|
+
passwordButton: n
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
a as s
|
|
12
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as e, jsxs as c, Fragment as g } from "react/jsx-runtime";
|
|
3
|
-
import { B as T } from "./Button-
|
|
3
|
+
import { B as T } from "./Button-BhIvfqOc.js";
|
|
4
4
|
import { useToast as f, useToastRegion as v } from "react-aria";
|
|
5
5
|
import { ToastQueue as w, useToastQueue as h, useToastState as R } from "react-stately";
|
|
6
6
|
import _ from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as g } from "react/jsx-runtime";
|
|
2
2
|
import { ToggleButton as u, ToggleButtonGroup as r } from "react-aria-components";
|
|
3
|
-
import { B as t } from "./Button.module-
|
|
3
|
+
import { B as t } from "./Button.module-BW0TvYZ2.js";
|
|
4
4
|
import { c as s } from "./clsx-AexbMWKp.js";
|
|
5
5
|
import '../assets/ToggleButtonGroup.css';const e = "_group_q04hh_1", l = "_toggleButton_q04hh_10", n = {
|
|
6
6
|
group: e,
|