@midas-ds/components 17.8.2 → 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 +12 -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
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { jsx as t, jsxs as i, 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 p } from "./chevron-right-DvXGOiS_.js";
|
|
6
|
+
import '../assets/Separator.css';const v = "_menu_1wm5z_1", f = "_menuSection_1wm5z_17", k = "_medium_1wm5z_29", z = "_menuItem_1wm5z_36", w = "_mainContent_1wm5z_105", C = "_checkMark_1wm5z_116", N = "_separator_1wm5z_126", I = "_menuPopover_1wm5z_149 _dropdownAnimation_1ljkv_4", m = {
|
|
7
|
+
menu: v,
|
|
8
|
+
menuSection: f,
|
|
9
|
+
medium: k,
|
|
10
|
+
menuItem: z,
|
|
11
|
+
mainContent: w,
|
|
12
|
+
checkMark: C,
|
|
13
|
+
separator: N,
|
|
14
|
+
menuPopover: I
|
|
15
|
+
}, y = ({
|
|
16
|
+
className: e,
|
|
17
|
+
size: n = "large",
|
|
18
|
+
...o
|
|
19
|
+
}) => /* @__PURE__ */ t(
|
|
20
|
+
_,
|
|
21
|
+
{
|
|
22
|
+
className: a(e, m.menu, n === "medium" && m.medium),
|
|
23
|
+
...o
|
|
24
|
+
}
|
|
25
|
+
), b = (e) => /* @__PURE__ */ t(
|
|
26
|
+
l,
|
|
27
|
+
{
|
|
28
|
+
...e,
|
|
29
|
+
textValue: e.textValue || (typeof e.children == "string" ? e.children : void 0),
|
|
30
|
+
className: a(m.menuItem, e.className),
|
|
31
|
+
children: (n) => {
|
|
32
|
+
const { children: o } = e, { selectionMode: s, isSelected: c, hasSubmenu: r } = n;
|
|
33
|
+
return /* @__PURE__ */ i(u, { children: [
|
|
34
|
+
s !== "none" && /* @__PURE__ */ t(
|
|
35
|
+
S,
|
|
36
|
+
{
|
|
37
|
+
size: 16,
|
|
38
|
+
className: m.checkMark,
|
|
39
|
+
"data-selected": c || void 0
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
/* @__PURE__ */ t("div", { className: m.mainContent, children: typeof o == "function" ? o(n) : o }),
|
|
43
|
+
r && /* @__PURE__ */ t(p, { size: 20 })
|
|
44
|
+
] });
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
), V = ({ className: e, ...n }) => /* @__PURE__ */ t(
|
|
48
|
+
d,
|
|
49
|
+
{
|
|
50
|
+
className: a(e, m.menuPopover),
|
|
51
|
+
offset: 4,
|
|
52
|
+
...n
|
|
53
|
+
}
|
|
54
|
+
), A = ({
|
|
55
|
+
className: e,
|
|
56
|
+
...n
|
|
57
|
+
}) => /* @__PURE__ */ t(
|
|
58
|
+
M,
|
|
59
|
+
{
|
|
60
|
+
className: a(e, m.menuSection),
|
|
61
|
+
...n
|
|
62
|
+
}
|
|
63
|
+
), F = ({ className: e, ...n }) => /* @__PURE__ */ t(
|
|
64
|
+
h,
|
|
65
|
+
{
|
|
66
|
+
className: a(e, m.separator),
|
|
67
|
+
...n
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
export {
|
|
71
|
+
y as M,
|
|
72
|
+
F as S,
|
|
73
|
+
b as a,
|
|
74
|
+
V as b,
|
|
75
|
+
A as c
|
|
76
|
+
};
|
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as i, jsx as n } 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 x = "_skeleton_1rxfc_11", p = "_circle_1rxfc_25", u = "_wave_1rxfc_30", v = "_onLayer01_1rxfc_54", w = "_form_1rxfc_58", d = "_formLabel_1rxfc_64", k = "_formDescription_1rxfc_70", L = "_formInput_1rxfc_76", y = "_medium_1rxfc_81", o = {
|
|
4
|
+
skeleton: x,
|
|
5
5
|
circle: p,
|
|
6
6
|
wave: u,
|
|
7
7
|
onLayer01: v,
|
|
8
8
|
form: w,
|
|
9
|
-
formLabel:
|
|
10
|
-
formDescription:
|
|
9
|
+
formLabel: d,
|
|
10
|
+
formDescription: k,
|
|
11
11
|
formInput: L,
|
|
12
12
|
medium: y
|
|
13
|
-
},
|
|
13
|
+
}, I = ({
|
|
14
14
|
variant: s = "rectangle",
|
|
15
15
|
width: t,
|
|
16
16
|
height: l,
|
|
17
17
|
size: a = "large",
|
|
18
|
-
isAnimated:
|
|
19
|
-
className:
|
|
18
|
+
isAnimated: c = !0,
|
|
19
|
+
className: f,
|
|
20
20
|
style: m,
|
|
21
21
|
isOnLayer01: e,
|
|
22
22
|
..._
|
|
23
23
|
}) => (s === "circle" && l !== void 0 && console.warn(
|
|
24
24
|
"Height is not allowed when using circle, control size with width"
|
|
25
|
-
), s === "form" ? /* @__PURE__ */
|
|
25
|
+
), s === "form" ? /* @__PURE__ */ i(
|
|
26
26
|
"div",
|
|
27
27
|
{
|
|
28
28
|
className: r(
|
|
29
29
|
o.form,
|
|
30
30
|
o[a],
|
|
31
31
|
e && o.onLayer01,
|
|
32
|
-
|
|
32
|
+
f
|
|
33
33
|
),
|
|
34
34
|
style: { width: t, ...m },
|
|
35
35
|
..._,
|
|
36
36
|
children: [
|
|
37
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ n(
|
|
38
38
|
"div",
|
|
39
39
|
{
|
|
40
40
|
className: r(
|
|
41
41
|
o.skeleton,
|
|
42
42
|
o.formLabel,
|
|
43
|
-
|
|
43
|
+
c && o.wave,
|
|
44
44
|
e && o.onLayer01
|
|
45
45
|
)
|
|
46
46
|
}
|
|
47
47
|
),
|
|
48
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ n(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
51
|
className: r(
|
|
52
52
|
o.skeleton,
|
|
53
53
|
o.formDescription,
|
|
54
|
-
|
|
54
|
+
c && o.wave,
|
|
55
55
|
e && o.onLayer01
|
|
56
56
|
)
|
|
57
57
|
}
|
|
58
58
|
),
|
|
59
|
-
/* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ n(
|
|
60
60
|
"div",
|
|
61
61
|
{
|
|
62
62
|
className: r(
|
|
63
63
|
o.skeleton,
|
|
64
64
|
o.formInput,
|
|
65
|
-
|
|
65
|
+
c && o.wave,
|
|
66
66
|
e && o.onLayer01
|
|
67
67
|
)
|
|
68
68
|
}
|
|
69
69
|
)
|
|
70
70
|
]
|
|
71
71
|
}
|
|
72
|
-
) : /* @__PURE__ */
|
|
72
|
+
) : /* @__PURE__ */ n(
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
75
|
className: r(
|
|
76
76
|
o.skeleton,
|
|
77
77
|
o[s],
|
|
78
|
-
|
|
78
|
+
c && o.wave,
|
|
79
79
|
e && o.onLayer01,
|
|
80
|
-
|
|
80
|
+
f
|
|
81
81
|
),
|
|
82
82
|
style: { width: t, height: l, ...m },
|
|
83
83
|
..._
|
|
84
84
|
}
|
|
85
85
|
));
|
|
86
86
|
export {
|
|
87
|
-
|
|
87
|
+
I as S
|
|
88
88
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as e, jsxs as d, Fragment as b } from "react/jsx-runtime";
|
|
3
|
-
import { Cell as w, Column as g, useTableOptions as
|
|
4
|
-
import { C as h } from "./Checkbox-
|
|
3
|
+
import { Cell as w, Column as g, useTableOptions as _, Row as N, Button as k, Collection as u, Table as f, TableBody as x, TableHeader as T } from "react-aria-components";
|
|
4
|
+
import { C as h } from "./Checkbox-DSW-_Qpm.js";
|
|
5
5
|
import { c as a } from "./clsx-AexbMWKp.js";
|
|
6
6
|
import { c as i } from "./createLucideIcon-CP-mMPfa.js";
|
|
7
7
|
import '../assets/Table.css';const C = [
|
|
@@ -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 = i("grip-vertical", H), M = "
|
|
28
|
+
], z = i("grip-vertical", H), M = "_table_6m1lp_1", R = "_tableHeader_6m1lp_11", q = "_column_6m1lp_12", A = "_sortIndicator_6m1lp_28", D = "_sortIconNeutral_6m1lp_36", V = "_selection_6m1lp_51", U = "_row_6m1lp_57", F = "_cell_6m1lp_75", G = "_medium_6m1lp_115", L = "_striped_6m1lp_126", o = {
|
|
29
29
|
table: M,
|
|
30
30
|
tableHeader: R,
|
|
31
31
|
column: q,
|
|
@@ -37,101 +37,101 @@ const H = [
|
|
|
37
37
|
medium: G,
|
|
38
38
|
striped: L
|
|
39
39
|
}, P = ({
|
|
40
|
-
size:
|
|
41
|
-
striped:
|
|
42
|
-
className:
|
|
43
|
-
...
|
|
40
|
+
size: c = "large",
|
|
41
|
+
striped: l = !1,
|
|
42
|
+
className: t,
|
|
43
|
+
...s
|
|
44
44
|
}) => /* @__PURE__ */ e(
|
|
45
45
|
f,
|
|
46
46
|
{
|
|
47
|
-
className: a(
|
|
48
|
-
[
|
|
49
|
-
[
|
|
47
|
+
className: a(o.table, t, {
|
|
48
|
+
[o.medium]: c === "medium",
|
|
49
|
+
[o.striped]: l
|
|
50
50
|
}),
|
|
51
|
-
...
|
|
51
|
+
...s
|
|
52
52
|
}
|
|
53
53
|
), Q = ({
|
|
54
|
-
columns:
|
|
55
|
-
children:
|
|
56
|
-
className:
|
|
54
|
+
columns: c,
|
|
55
|
+
children: l,
|
|
56
|
+
className: t
|
|
57
57
|
}) => {
|
|
58
|
-
const { selectionBehavior:
|
|
59
|
-
return /* @__PURE__ */ d(T, { className: a(
|
|
58
|
+
const { selectionBehavior: s, selectionMode: r, allowsDragging: n } = _();
|
|
59
|
+
return /* @__PURE__ */ d(T, { className: a(t, o.tableHeader), children: [
|
|
60
60
|
n && /* @__PURE__ */ e(m, {}),
|
|
61
|
-
|
|
61
|
+
s === "toggle" && /* @__PURE__ */ e(m, { width: 50, children: r === "multiple" && /* @__PURE__ */ e(
|
|
62
62
|
h,
|
|
63
63
|
{
|
|
64
|
-
className:
|
|
64
|
+
className: o.selection,
|
|
65
65
|
slot: "selection"
|
|
66
66
|
}
|
|
67
67
|
) }),
|
|
68
|
-
/* @__PURE__ */ e(
|
|
68
|
+
/* @__PURE__ */ e(u, { items: c, children: l })
|
|
69
69
|
] });
|
|
70
70
|
}, W = ({
|
|
71
|
-
id:
|
|
72
|
-
columns:
|
|
73
|
-
children:
|
|
74
|
-
className:
|
|
75
|
-
...
|
|
71
|
+
id: c,
|
|
72
|
+
columns: l,
|
|
73
|
+
children: t,
|
|
74
|
+
className: s,
|
|
75
|
+
...r
|
|
76
76
|
}) => {
|
|
77
|
-
const { selectionBehavior: n, allowsDragging: y } =
|
|
77
|
+
const { selectionBehavior: n, allowsDragging: y } = _();
|
|
78
78
|
return /* @__PURE__ */ d(
|
|
79
79
|
N,
|
|
80
80
|
{
|
|
81
|
-
id:
|
|
82
|
-
className: a(
|
|
83
|
-
...
|
|
81
|
+
id: c,
|
|
82
|
+
className: a(s, o.row),
|
|
83
|
+
...r,
|
|
84
84
|
children: [
|
|
85
|
-
y && /* @__PURE__ */ e(
|
|
86
|
-
n === "toggle" && /* @__PURE__ */ e(
|
|
85
|
+
y && /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(k, { slot: "drag", children: /* @__PURE__ */ e(z, { size: 20 }) }) }),
|
|
86
|
+
n === "toggle" && /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
|
|
87
87
|
h,
|
|
88
88
|
{
|
|
89
|
-
className:
|
|
89
|
+
className: o.selection,
|
|
90
90
|
slot: "selection"
|
|
91
91
|
}
|
|
92
92
|
) }),
|
|
93
|
-
/* @__PURE__ */ e(
|
|
93
|
+
/* @__PURE__ */ e(u, { items: l, children: t })
|
|
94
94
|
]
|
|
95
95
|
}
|
|
96
96
|
);
|
|
97
|
-
}, m = ({ children:
|
|
97
|
+
}, m = ({ children: c, className: l, ...t }) => /* @__PURE__ */ e(
|
|
98
98
|
g,
|
|
99
99
|
{
|
|
100
|
-
className: a(
|
|
101
|
-
...
|
|
102
|
-
children: ({ allowsSorting:
|
|
103
|
-
const n = () =>
|
|
100
|
+
className: a(l, o.column),
|
|
101
|
+
...t,
|
|
102
|
+
children: ({ allowsSorting: s, sortDirection: r }) => {
|
|
103
|
+
const n = () => r === "ascending" ? /* @__PURE__ */ e(B, { size: 16 }) : r === "descending" ? /* @__PURE__ */ e(I, { size: 16 }) : /* @__PURE__ */ e($, { size: 16, className: o.sortIconNeutral });
|
|
104
104
|
return /* @__PURE__ */ d(b, { children: [
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
c,
|
|
106
|
+
s && /* @__PURE__ */ e(
|
|
107
107
|
"span",
|
|
108
108
|
{
|
|
109
109
|
"aria-hidden": "true",
|
|
110
|
-
className:
|
|
110
|
+
className: o.sortIndicator,
|
|
111
111
|
children: n()
|
|
112
112
|
}
|
|
113
113
|
)
|
|
114
114
|
] });
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
),
|
|
117
|
+
), p = ({ className: c, ...l }) => /* @__PURE__ */ e(
|
|
118
118
|
w,
|
|
119
119
|
{
|
|
120
|
-
className: a(
|
|
121
|
-
...
|
|
120
|
+
className: a(c, o.cell),
|
|
121
|
+
...l
|
|
122
122
|
}
|
|
123
123
|
), X = ({
|
|
124
|
-
className:
|
|
125
|
-
...
|
|
124
|
+
className: c,
|
|
125
|
+
...l
|
|
126
126
|
}) => /* @__PURE__ */ e(
|
|
127
127
|
x,
|
|
128
128
|
{
|
|
129
|
-
className: a(
|
|
130
|
-
...
|
|
129
|
+
className: a(c, o.tableBody),
|
|
130
|
+
...l
|
|
131
131
|
}
|
|
132
132
|
);
|
|
133
133
|
export {
|
|
134
|
-
|
|
134
|
+
p as C,
|
|
135
135
|
W as R,
|
|
136
136
|
P as T,
|
|
137
137
|
m as a,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i, jsxs as _, Fragment as u } from "react/jsx-runtime";
|
|
2
2
|
import { Tag as b, composeRenderProps as T, useContextProps as d, TagListContext as p, TagList as v, TagGroupContext as y, TagGroup as x } from "react-aria-components";
|
|
3
|
-
import { B as h } from "./Button-
|
|
3
|
+
import { B as h } from "./Button-GCROAMSl.js";
|
|
4
4
|
import { c } from "./clsx-AexbMWKp.js";
|
|
5
5
|
import { X as L } from "./x-B9bYxG31.js";
|
|
6
6
|
import { forwardRef as f, Children as N, isValidElement as w } from "react";
|
|
@@ -4,12 +4,12 @@ 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
6
|
import { s as d } from "./TextField.module-BDIbEV87.js";
|
|
7
|
-
import { B as A } from "./Button-
|
|
7
|
+
import { B as A } from "./Button-GCROAMSl.js";
|
|
8
8
|
import { u as B } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
9
9
|
import { T as L } from "./Text-D0r_W4lH.js";
|
|
10
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-Cg0aAlnt.js";
|
|
13
13
|
const x = c(
|
|
14
14
|
(e, o) => {
|
|
15
15
|
[e] = u(e, o, y);
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as n, jsxs as c, Fragment as T } from "react/jsx-runtime";
|
|
3
|
+
import { B as f } from "./Button-GCROAMSl.js";
|
|
4
|
+
import { useToast as p, useToastRegion as g } from "react-aria";
|
|
5
|
+
import { ToastQueue as q, useToastQueue as w, useToastState as h } from "react-stately";
|
|
6
|
+
import _ from "react";
|
|
7
|
+
import { createPortal as R, flushSync as y } from "react-dom";
|
|
8
|
+
import { c as l } from "./clsx-AexbMWKp.js";
|
|
9
|
+
import { F as b } from "./FeedbackStatusIcon-X9Bjgeta.js";
|
|
10
|
+
import { X as P } from "./x-B9bYxG31.js";
|
|
11
|
+
import '../assets/Toast.css';const I = "_toastRegion_1vq8s_49", N = "_toast_1vq8s_49", E = "_success_1vq8s_98", O = "_info_1vq8s_106", x = "_important_1vq8s_114", C = "_warning_1vq8s_122", M = "_icon_1vq8s_130", S = "_toastContent_1vq8s_144", k = "_toastMessage_1vq8s_151", B = "_viewTransition_1vq8s_157", F = "_slideInTop_1vq8s_1", Q = "_slideInEnd_1vq8s_1", V = "_slideOutTop_1vq8s_1", j = "_slideOutEnd_1vq8s_1", e = {
|
|
12
|
+
toastRegion: I,
|
|
13
|
+
toast: N,
|
|
14
|
+
success: E,
|
|
15
|
+
info: O,
|
|
16
|
+
important: x,
|
|
17
|
+
warning: C,
|
|
18
|
+
icon: M,
|
|
19
|
+
toastContent: S,
|
|
20
|
+
toastMessage: k,
|
|
21
|
+
viewTransition: B,
|
|
22
|
+
slideInTop: F,
|
|
23
|
+
slideInEnd: Q,
|
|
24
|
+
slideOutTop: V,
|
|
25
|
+
slideOutEnd: j
|
|
26
|
+
}, u = {
|
|
27
|
+
wrapUpdate(t) {
|
|
28
|
+
"startViewTransition" in document ? document.startViewTransition(() => {
|
|
29
|
+
y(t);
|
|
30
|
+
}) : t();
|
|
31
|
+
},
|
|
32
|
+
maxVisibleToasts: 5
|
|
33
|
+
}, G = new q(u), Y = (t) => {
|
|
34
|
+
const o = w(G);
|
|
35
|
+
return o.visibleToasts.length > 0 ? R(
|
|
36
|
+
/* @__PURE__ */ n(
|
|
37
|
+
d,
|
|
38
|
+
{
|
|
39
|
+
...t,
|
|
40
|
+
state: o
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
document.body
|
|
44
|
+
) : null;
|
|
45
|
+
}, Z = ({ children: t, ...o }) => {
|
|
46
|
+
const s = h(u);
|
|
47
|
+
return /* @__PURE__ */ c(T, { children: [
|
|
48
|
+
typeof t == "function" ? t(s) : t,
|
|
49
|
+
s.visibleToasts.length > 0 && /* @__PURE__ */ n(
|
|
50
|
+
d,
|
|
51
|
+
{
|
|
52
|
+
...o,
|
|
53
|
+
state: s
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
] });
|
|
57
|
+
};
|
|
58
|
+
function d({
|
|
59
|
+
state: t,
|
|
60
|
+
className: o,
|
|
61
|
+
...s
|
|
62
|
+
}) {
|
|
63
|
+
const a = _.useRef(null), { regionProps: r } = g(s, t, a);
|
|
64
|
+
return /* @__PURE__ */ n(
|
|
65
|
+
"div",
|
|
66
|
+
{
|
|
67
|
+
...r,
|
|
68
|
+
ref: a,
|
|
69
|
+
className: l(e.toastRegion, o),
|
|
70
|
+
children: t.visibleToasts.map((i) => /* @__PURE__ */ n(
|
|
71
|
+
z,
|
|
72
|
+
{
|
|
73
|
+
toast: i,
|
|
74
|
+
state: t
|
|
75
|
+
},
|
|
76
|
+
i.key
|
|
77
|
+
))
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
function z({
|
|
82
|
+
state: t,
|
|
83
|
+
className: o,
|
|
84
|
+
...s
|
|
85
|
+
}) {
|
|
86
|
+
const a = _.useRef(null), { toastProps: r, contentProps: i, titleProps: m, closeButtonProps: v } = p(
|
|
87
|
+
s,
|
|
88
|
+
t,
|
|
89
|
+
a
|
|
90
|
+
);
|
|
91
|
+
return /* @__PURE__ */ c(
|
|
92
|
+
"div",
|
|
93
|
+
{
|
|
94
|
+
...r,
|
|
95
|
+
ref: a,
|
|
96
|
+
className: l(
|
|
97
|
+
e.toast,
|
|
98
|
+
e[s.toast.content.type],
|
|
99
|
+
o
|
|
100
|
+
),
|
|
101
|
+
style: {
|
|
102
|
+
viewTransitionName: s.toast.key,
|
|
103
|
+
viewTransitionClass: e.viewTransition
|
|
104
|
+
},
|
|
105
|
+
children: [
|
|
106
|
+
/* @__PURE__ */ c(
|
|
107
|
+
"div",
|
|
108
|
+
{
|
|
109
|
+
...i,
|
|
110
|
+
className: l(e.toastContent, i.className),
|
|
111
|
+
children: [
|
|
112
|
+
/* @__PURE__ */ n(
|
|
113
|
+
b,
|
|
114
|
+
{
|
|
115
|
+
"aria-hidden": !0,
|
|
116
|
+
className: e.icon,
|
|
117
|
+
status: s.toast.content.type
|
|
118
|
+
}
|
|
119
|
+
),
|
|
120
|
+
/* @__PURE__ */ c("div", { children: [
|
|
121
|
+
/* @__PURE__ */ n(
|
|
122
|
+
"p",
|
|
123
|
+
{
|
|
124
|
+
className: e.toastMessage,
|
|
125
|
+
...m,
|
|
126
|
+
children: s.toast.content.message
|
|
127
|
+
}
|
|
128
|
+
),
|
|
129
|
+
s.toast.content.children
|
|
130
|
+
] })
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
),
|
|
134
|
+
/* @__PURE__ */ n(
|
|
135
|
+
f,
|
|
136
|
+
{
|
|
137
|
+
variant: "icon",
|
|
138
|
+
...v,
|
|
139
|
+
children: /* @__PURE__ */ n(
|
|
140
|
+
P,
|
|
141
|
+
{
|
|
142
|
+
size: 20,
|
|
143
|
+
"aria-hidden": !0
|
|
144
|
+
}
|
|
145
|
+
)
|
|
146
|
+
}
|
|
147
|
+
)
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
export {
|
|
153
|
+
Y as G,
|
|
154
|
+
z as T,
|
|
155
|
+
Z as a,
|
|
156
|
+
d as b,
|
|
157
|
+
G as t
|
|
158
|
+
};
|
|
@@ -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-byTN5rhp.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,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
1
|
+
import { jsx as t, jsxs as a, Fragment as l } from "react/jsx-runtime";
|
|
2
2
|
import { c as p } from "./clsx-AexbMWKp.js";
|
|
3
|
-
import { Tooltip as n, OverlayArrow as c, TooltipTrigger as
|
|
4
|
-
import '../assets/Tooltip.css';const
|
|
5
|
-
tooltip:
|
|
3
|
+
import { Tooltip as n, OverlayArrow as c, TooltipTrigger as T } from "react-aria-components";
|
|
4
|
+
import '../assets/Tooltip.css';const g = "_tooltip_exq12_1", m = "_arrow_exq12_18", i = {
|
|
5
|
+
tooltip: g,
|
|
6
6
|
arrow: m
|
|
7
7
|
};
|
|
8
|
-
function
|
|
8
|
+
function h({ children: o, className: r, ...s }) {
|
|
9
9
|
return /* @__PURE__ */ t(
|
|
10
10
|
n,
|
|
11
11
|
{
|
|
12
12
|
className: p(i.tooltip, r),
|
|
13
13
|
...s,
|
|
14
|
-
children: (
|
|
14
|
+
children: (e) => /* @__PURE__ */ a(l, { children: [
|
|
15
15
|
/* @__PURE__ */ t(c, { className: i.arrow, children: /* @__PURE__ */ t(
|
|
16
16
|
"svg",
|
|
17
17
|
{
|
|
@@ -21,17 +21,17 @@ function x({ children: o, className: r, ...s }) {
|
|
|
21
21
|
children: /* @__PURE__ */ t("path", { d: "M0 0 L4 4 L8 0" })
|
|
22
22
|
}
|
|
23
23
|
) }),
|
|
24
|
-
typeof o == "function" ? o(
|
|
24
|
+
typeof o == "function" ? o(e) : o
|
|
25
25
|
] })
|
|
26
26
|
}
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function _({
|
|
30
30
|
delay: o = 0,
|
|
31
31
|
...r
|
|
32
32
|
}) {
|
|
33
33
|
return /* @__PURE__ */ t(
|
|
34
|
-
|
|
34
|
+
T,
|
|
35
35
|
{
|
|
36
36
|
delay: o,
|
|
37
37
|
...r
|
|
@@ -39,6 +39,6 @@ function h({
|
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
41
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
h as T,
|
|
43
|
+
_ as a
|
|
44
44
|
};
|
package/clear-button/index.js
CHANGED
package/combobox/index.js
CHANGED
package/date-field/index.js
CHANGED
package/date-picker/index.js
CHANGED