@midas-ds/components 15.4.0 → 15.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/accordion/index.js +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.js +2 -2
- package/calendar/index.js +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.js +1 -1
- package/checkbox/index.js +2 -2
- package/chunks/{AccordionItem-BCoomT4-.js → AccordionItem-69q6FXXl.js} +37 -37
- package/chunks/{BadgeContainer-BJAC-kV0.js → BadgeContainer-CKVsfTlF.js} +1 -1
- package/chunks/Breadcrumbs-By2bMbQd.js +28 -0
- package/chunks/Button-BMf7mX0N.js +46 -0
- package/chunks/{ButtonGroup-B6mr4JGY.js → ButtonGroup-Dr6HOBo2.js} +1 -1
- package/chunks/Card-ia98VoKL.js +130 -0
- package/chunks/CharacterCounter-DeuE2det.js +21 -0
- package/chunks/Checkbox-ClhO-AzB.js +122 -0
- package/chunks/CheckboxGroup-C3FOm8N8.js +84 -0
- package/chunks/{ColorSchemeSwitch-Cd6VSXql.js → ColorSchemeSwitch-DugvPh6T.js} +17 -17
- package/chunks/ComboBox-BqRZMi8W.js +108 -0
- package/chunks/DateField-12KSJHls.js +46 -0
- package/chunks/DateInputDivider-CkTB5q5k.js +36 -0
- package/chunks/DateRangePicker-BLRFvUp0.js +117 -0
- package/chunks/Dialog-C-X_qUR6.js +66 -0
- package/chunks/Dropdown-D7HQo9eM.js +79 -0
- package/chunks/FieldError-C0HRIcAx.js +23 -0
- package/chunks/FileUpload-h1PxqQmb.js +16 -0
- package/chunks/{Grid-DeB7TdcZ.js → Grid-B-WgMwON.js} +2 -2
- package/chunks/{GridItem-B_3FFhPs.js → GridItem-5t1Z14sM.js} +1 -1
- package/chunks/Heading-D8tNNJkt.js +38 -0
- package/chunks/{InfoBanner-Bw3rjGtB.js → InfoBanner-Cc3GhryE.js} +3 -3
- package/chunks/Label-D6WuwdAj.js +73 -0
- package/chunks/{Layout-InD0Hl7F.js → Layout-DGCDkyf3.js} +70 -70
- package/chunks/Link-yTNUNv3C.js +54 -0
- package/chunks/LinkButton-3nAekUJ4.js +63 -0
- package/chunks/{ListBox-CKDglhFH.js → ListBox-D4tO_OrO.js} +18 -18
- package/chunks/ListBoxLoadMoreItem-Bo0eLhpt.js +41 -0
- package/chunks/ListBoxSection-DKHba2X0.js +49 -0
- package/chunks/{Logo-D80UDT1x.js → Logo-InDSslpO.js} +2 -2
- package/chunks/Popover-BAdqdN6C.js +38 -0
- package/chunks/ProgressBar-zeJLxHVL.js +53 -0
- package/chunks/Radio-kvQP7E9s.js +43 -0
- package/chunks/RangeCalendar-CnquULdq.js +99 -0
- package/chunks/{SearchField-Dr3DAs9W.js → SearchField-B6ygRRL4.js} +39 -39
- package/chunks/Select-Cm5VZRTx.js +576 -0
- package/chunks/{Select-fDRXxmLm.js → Select-qmCuJm2x.js} +48 -46
- package/chunks/Separator-BcnQEA9f.js +76 -0
- package/chunks/{Skeleton-Bcg_xgAx.js → Skeleton-DqIHQLQl.js} +1 -1
- package/chunks/Spinner-Pll5zpx8.js +48 -0
- package/chunks/TabList-D2XV5ixe.js +81 -0
- package/chunks/Table-B1rlSIhS.js +139 -0
- package/chunks/Tag-Ca8wKXOy.js +53 -0
- package/chunks/{Text-WP6RbnnK.js → Text-TWzJxnto.js} +9 -9
- package/chunks/TextArea-UU7gFMEb.js +124 -0
- package/chunks/Toast-Cm2Zqq-F.js +162 -0
- package/chunks/ToggleButtonGroup-CXKTrLbb.js +29 -0
- package/chunks/Tooltip-CtstfI8u.js +46 -0
- package/chunks/clsx-AexbMWKp.js +24 -0
- package/chunks/useLocalizedStringFormatter-ZgRJmvHC.js +25 -0
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.js +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/index.js +1 -1
- package/dropdown/index.js +1 -1
- package/field-error/index.js +1 -1
- package/file-upload/index.js +1 -1
- package/grid/index.js +2 -2
- package/heading/index.js +1 -1
- package/index.js +68 -68
- package/info-banner/index.js +1 -1
- package/label/index.js +1 -1
- package/layout/index.js +1 -1
- package/legacy-select/index.js +1 -1
- package/link/index.js +3 -3
- package/link-button/index.js +3 -3
- package/list-box/index.js +3 -3
- package/logo/index.js +1 -1
- package/menu/index.js +5 -5
- package/modal/index.js +2 -2
- package/package.json +2 -3
- package/popover/index.js +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.js +1 -1
- package/select/index.js +1 -1
- package/skeleton/index.js +1 -1
- package/spinner/index.js +1 -1
- package/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/Breadcrumbs-CnuqEeOL.js +0 -28
- package/chunks/Button-CHs1wv7n.js +0 -46
- package/chunks/Card-D58EJCcV.js +0 -130
- package/chunks/CharacterCounter-CzCvDmNP.js +0 -21
- package/chunks/Checkbox-CogzFDe3.js +0 -119
- package/chunks/CheckboxGroup-BLx25gqn.js +0 -83
- package/chunks/ComboBox-8YAwADqL.js +0 -108
- package/chunks/DateField-CpbYROK1.js +0 -46
- package/chunks/DateInputDivider-C43xP4is.js +0 -36
- package/chunks/DateRangePicker-CICkmtXG.js +0 -116
- package/chunks/Dialog-DBn9L3SP.js +0 -66
- package/chunks/Dropdown-Cctv2Qpv.js +0 -79
- package/chunks/FieldError-CZKAYQ-n.js +0 -23
- package/chunks/FileUpload-DILt4rAn.js +0 -16
- package/chunks/Heading-DIw3iLMN.js +0 -38
- package/chunks/Label-CKe9pgXT.js +0 -73
- package/chunks/Link-C3w5O2wT.js +0 -54
- package/chunks/LinkButton-D6X0Dvoz.js +0 -63
- package/chunks/ListBoxLoadMoreItem-y9pCuqRe.js +0 -41
- package/chunks/ListBoxSection-CvtRigQb.js +0 -49
- package/chunks/Popover-DktRiuCr.js +0 -38
- package/chunks/ProgressBar-Bjxi5TgY.js +0 -53
- package/chunks/Radio-DqFFcFra.js +0 -43
- package/chunks/RangeCalendar-CIxwICEf.js +0 -99
- package/chunks/Select-BSqv5Qi-.js +0 -566
- package/chunks/Separator-Cw1vlSYO.js +0 -76
- package/chunks/Spinner-B2EAm49Z.js +0 -48
- package/chunks/TabList-BIBQcX2n.js +0 -81
- package/chunks/Table-Cy-R3Ma8.js +0 -139
- package/chunks/Tag-BZnq1_yZ.js +0 -53
- package/chunks/TextArea-3fPkKmNx.js +0 -124
- package/chunks/Toast-CP_V12b3.js +0 -161
- package/chunks/ToggleButtonGroup-CgNeypuW.js +0 -29
- package/chunks/Tooltip-C53p0sfk.js +0 -46
- package/chunks/clsx-CuNqTHjr.js +0 -11
- package/chunks/internationalized-C9snpc7V.js +0 -1955
- package/chunks/react-aria-components-mIKW9wOa.js +0 -22645
- package/chunks/react-stately-DRNKkAB0.js +0 -2586
- package/chunks/useLocalizedStringFormatter-CPwiI7nv.js +0 -25
- package/chunks/variables-BkqZ2WGF.js +0 -5
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { jsx as s, jsxs as d, Fragment as b } from "react/jsx-runtime";
|
|
2
|
-
import { ae as f, af as l, ag as _, ah as $, ai as m, aj as x } from "./react-aria-components-mIKW9wOa.js";
|
|
3
|
-
import { c } from "./clsx-CuNqTHjr.js";
|
|
4
|
-
import * as r from "react";
|
|
5
|
-
import { createContext as p } from "react";
|
|
6
|
-
import '../assets/TabList.css';const o = p({
|
|
7
|
-
variant: "uncontained"
|
|
8
|
-
}), u = "_tabs_3k5fn_1", k = "_tabList_3k5fn_12", P = "_tab_3k5fn_1", T = "_contained_3k5fn_55", h = "_selectionIndicator_3k5fn_94", v = "_tabPanel_3k5fn_129", t = {
|
|
9
|
-
tabs: u,
|
|
10
|
-
tabList: k,
|
|
11
|
-
tab: P,
|
|
12
|
-
contained: T,
|
|
13
|
-
selectionIndicator: h,
|
|
14
|
-
tabPanel: v
|
|
15
|
-
}, j = ({
|
|
16
|
-
className: e,
|
|
17
|
-
variant: a = "uncontained",
|
|
18
|
-
...n
|
|
19
|
-
}) => /* @__PURE__ */ s(o.Provider, { value: { variant: a }, children: /* @__PURE__ */ s(
|
|
20
|
-
f,
|
|
21
|
-
{
|
|
22
|
-
className: c(t.tabs, e),
|
|
23
|
-
...n
|
|
24
|
-
}
|
|
25
|
-
) }), g = ({ className: e, ...a }) => {
|
|
26
|
-
const { variant: n } = r.useContext(o);
|
|
27
|
-
return /* @__PURE__ */ s(
|
|
28
|
-
l,
|
|
29
|
-
{
|
|
30
|
-
...a,
|
|
31
|
-
className: c(
|
|
32
|
-
t.tab,
|
|
33
|
-
{
|
|
34
|
-
[t.contained]: n === "contained"
|
|
35
|
-
},
|
|
36
|
-
e
|
|
37
|
-
),
|
|
38
|
-
children: _(a.children, (i) => /* @__PURE__ */ d(b, { children: [
|
|
39
|
-
i,
|
|
40
|
-
/* @__PURE__ */ s(
|
|
41
|
-
$,
|
|
42
|
-
{
|
|
43
|
-
className: c(t.selectionIndicator, {
|
|
44
|
-
[t.contained]: n === "contained"
|
|
45
|
-
})
|
|
46
|
-
}
|
|
47
|
-
)
|
|
48
|
-
] }))
|
|
49
|
-
}
|
|
50
|
-
);
|
|
51
|
-
}, y = ({ className: e, ...a }) => {
|
|
52
|
-
const { variant: n } = r.useContext(o);
|
|
53
|
-
return /* @__PURE__ */ s(
|
|
54
|
-
m,
|
|
55
|
-
{
|
|
56
|
-
className: c(
|
|
57
|
-
t.tabPanel,
|
|
58
|
-
{
|
|
59
|
-
[t.contained]: n === "contained"
|
|
60
|
-
},
|
|
61
|
-
e
|
|
62
|
-
),
|
|
63
|
-
...a
|
|
64
|
-
}
|
|
65
|
-
);
|
|
66
|
-
}, F = ({
|
|
67
|
-
className: e,
|
|
68
|
-
...a
|
|
69
|
-
}) => /* @__PURE__ */ s(
|
|
70
|
-
x,
|
|
71
|
-
{
|
|
72
|
-
className: c(t.tabList, e),
|
|
73
|
-
...a
|
|
74
|
-
}
|
|
75
|
-
);
|
|
76
|
-
export {
|
|
77
|
-
j as T,
|
|
78
|
-
g as a,
|
|
79
|
-
y as b,
|
|
80
|
-
F as c
|
|
81
|
-
};
|
package/chunks/Table-Cy-R3Ma8.js
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as d, Fragment as b } from "react/jsx-runtime";
|
|
2
|
-
import { ak as h, al as p, am as y, V as f, an as x, k as g, ao as w, ap as j, aq as k } from "./react-aria-components-mIKW9wOa.js";
|
|
3
|
-
import { C as $ } from "./Checkbox-CogzFDe3.js";
|
|
4
|
-
import { c as l } from "./clsx-CuNqTHjr.js";
|
|
5
|
-
import { c as i } from "./createLucideIcon-D4r5Phnh.js";
|
|
6
|
-
import '../assets/Table.css';const N = [
|
|
7
|
-
["path", { d: "M12 5v14", key: "s699le" }],
|
|
8
|
-
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
9
|
-
], I = i("arrow-down", N);
|
|
10
|
-
const v = [
|
|
11
|
-
["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
|
|
12
|
-
["path", { d: "M17 20V4", key: "1ejh1v" }],
|
|
13
|
-
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
14
|
-
["path", { d: "M7 4v16", key: "1glfcx" }]
|
|
15
|
-
], z = i("arrow-up-down", v);
|
|
16
|
-
const C = [
|
|
17
|
-
["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
|
|
18
|
-
["path", { d: "M12 19V5", key: "x0mq9r" }]
|
|
19
|
-
], H = i("arrow-up", C);
|
|
20
|
-
const M = [
|
|
21
|
-
["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
|
|
22
|
-
["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
|
|
23
|
-
["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
|
|
24
|
-
["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
|
|
25
|
-
["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
|
|
26
|
-
["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
|
|
27
|
-
], q = i("grip-vertical", M), B = "_table_1i4j5_1", T = "_tableHeader_1i4j5_11", V = "_column_1i4j5_12", A = "_sortIndicator_1i4j5_28", D = "_sortIconNeutral_1i4j5_36", R = "_selection_1i4j5_46", U = "_row_1i4j5_52", F = "_cell_1i4j5_70", G = "_medium_1i4j5_110", L = "_striped_1i4j5_121", c = {
|
|
28
|
-
table: B,
|
|
29
|
-
tableHeader: T,
|
|
30
|
-
column: V,
|
|
31
|
-
sortIndicator: A,
|
|
32
|
-
sortIconNeutral: D,
|
|
33
|
-
selection: R,
|
|
34
|
-
row: U,
|
|
35
|
-
cell: F,
|
|
36
|
-
medium: G,
|
|
37
|
-
striped: L
|
|
38
|
-
}, P = ({
|
|
39
|
-
size: o = "large",
|
|
40
|
-
striped: t = !1,
|
|
41
|
-
className: r,
|
|
42
|
-
...a
|
|
43
|
-
}) => /* @__PURE__ */ e(
|
|
44
|
-
h,
|
|
45
|
-
{
|
|
46
|
-
className: l(c.table, r, {
|
|
47
|
-
[c.medium]: o === "medium",
|
|
48
|
-
[c.striped]: t
|
|
49
|
-
}),
|
|
50
|
-
...a
|
|
51
|
-
}
|
|
52
|
-
), Q = ({
|
|
53
|
-
columns: o,
|
|
54
|
-
children: t,
|
|
55
|
-
className: r
|
|
56
|
-
}) => {
|
|
57
|
-
const { selectionBehavior: a, selectionMode: s, allowsDragging: n } = p();
|
|
58
|
-
return /* @__PURE__ */ d(y, { className: l(r, c.tableHeader), children: [
|
|
59
|
-
n && /* @__PURE__ */ e(m, {}),
|
|
60
|
-
a === "toggle" && /* @__PURE__ */ e(m, { width: 50, children: s === "multiple" && /* @__PURE__ */ e(
|
|
61
|
-
$,
|
|
62
|
-
{
|
|
63
|
-
className: c.selection,
|
|
64
|
-
slot: "selection"
|
|
65
|
-
}
|
|
66
|
-
) }),
|
|
67
|
-
/* @__PURE__ */ e(f, { items: o, children: t })
|
|
68
|
-
] });
|
|
69
|
-
}, W = ({
|
|
70
|
-
id: o,
|
|
71
|
-
columns: t,
|
|
72
|
-
children: r,
|
|
73
|
-
className: a,
|
|
74
|
-
...s
|
|
75
|
-
}) => {
|
|
76
|
-
const { selectionBehavior: n, allowsDragging: u } = p();
|
|
77
|
-
return /* @__PURE__ */ d(
|
|
78
|
-
x,
|
|
79
|
-
{
|
|
80
|
-
id: o,
|
|
81
|
-
className: l(a, c.row),
|
|
82
|
-
...s,
|
|
83
|
-
children: [
|
|
84
|
-
u && /* @__PURE__ */ e(_, { children: /* @__PURE__ */ e(g, { slot: "drag", children: /* @__PURE__ */ e(q, { size: 20 }) }) }),
|
|
85
|
-
n === "toggle" && /* @__PURE__ */ e(_, { children: /* @__PURE__ */ e(
|
|
86
|
-
$,
|
|
87
|
-
{
|
|
88
|
-
className: c.selection,
|
|
89
|
-
slot: "selection"
|
|
90
|
-
}
|
|
91
|
-
) }),
|
|
92
|
-
/* @__PURE__ */ e(f, { items: t, children: r })
|
|
93
|
-
]
|
|
94
|
-
}
|
|
95
|
-
);
|
|
96
|
-
}, m = ({ children: o, className: t, ...r }) => /* @__PURE__ */ e(
|
|
97
|
-
w,
|
|
98
|
-
{
|
|
99
|
-
className: l(t, c.column),
|
|
100
|
-
...r,
|
|
101
|
-
children: ({ allowsSorting: a, sortDirection: s }) => {
|
|
102
|
-
const n = () => s === "ascending" ? /* @__PURE__ */ e(H, { size: 16 }) : s === "descending" ? /* @__PURE__ */ e(I, { size: 16 }) : /* @__PURE__ */ e(z, { size: 16, className: c.sortIconNeutral });
|
|
103
|
-
return /* @__PURE__ */ d(b, { children: [
|
|
104
|
-
o,
|
|
105
|
-
a && /* @__PURE__ */ e(
|
|
106
|
-
"span",
|
|
107
|
-
{
|
|
108
|
-
"aria-hidden": "true",
|
|
109
|
-
className: c.sortIndicator,
|
|
110
|
-
children: n()
|
|
111
|
-
}
|
|
112
|
-
)
|
|
113
|
-
] });
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
), _ = ({ className: o, ...t }) => /* @__PURE__ */ e(
|
|
117
|
-
j,
|
|
118
|
-
{
|
|
119
|
-
className: l(o, c.cell),
|
|
120
|
-
...t
|
|
121
|
-
}
|
|
122
|
-
), X = ({
|
|
123
|
-
className: o,
|
|
124
|
-
...t
|
|
125
|
-
}) => /* @__PURE__ */ e(
|
|
126
|
-
k,
|
|
127
|
-
{
|
|
128
|
-
className: l(o, c.tableBody),
|
|
129
|
-
...t
|
|
130
|
-
}
|
|
131
|
-
);
|
|
132
|
-
export {
|
|
133
|
-
m as C,
|
|
134
|
-
W as R,
|
|
135
|
-
P as T,
|
|
136
|
-
Q as a,
|
|
137
|
-
_ as b,
|
|
138
|
-
X as c
|
|
139
|
-
};
|
package/chunks/Tag-BZnq1_yZ.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { jsxs as m, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { u as r, v as c, w as _ } from "./react-aria-components-mIKW9wOa.js";
|
|
3
|
-
import { B as g } from "./Button-CHs1wv7n.js";
|
|
4
|
-
import { c as f } from "./clsx-CuNqTHjr.js";
|
|
5
|
-
import { X as u } from "./x-BXShoIAM.js";
|
|
6
|
-
import '../assets/Tag.css';const b = "_button_1nm6n_1", l = "_success_1nm6n_16", d = "_warning_1nm6n_17", p = "_info_1nm6n_18", x = "_important_1nm6n_19", $ = "_tag_1nm6n_31", T = "_tagText_1nm6n_83", w = "_dismissable_1nm6n_88", v = "_tagList_1nm6n_92", s = {
|
|
7
|
-
button: b,
|
|
8
|
-
success: l,
|
|
9
|
-
warning: d,
|
|
10
|
-
info: p,
|
|
11
|
-
important: x,
|
|
12
|
-
tag: $,
|
|
13
|
-
tagText: T,
|
|
14
|
-
dismissable: w,
|
|
15
|
-
tagList: v
|
|
16
|
-
}, B = ({ children: o, ...n }) => /* @__PURE__ */ t(c, { ...n, children: /* @__PURE__ */ t(_, { className: s.tagList, children: o }) }), G = ({
|
|
17
|
-
children: o,
|
|
18
|
-
dismissable: n,
|
|
19
|
-
className: i,
|
|
20
|
-
type: a,
|
|
21
|
-
...e
|
|
22
|
-
}) => /* @__PURE__ */ m(
|
|
23
|
-
r,
|
|
24
|
-
{
|
|
25
|
-
className: f(
|
|
26
|
-
s.tag,
|
|
27
|
-
n && s.dismissable,
|
|
28
|
-
a === "success" && s.success,
|
|
29
|
-
a === "info" && s.info,
|
|
30
|
-
a === "important" && s.important,
|
|
31
|
-
a === "warning" && s.warning,
|
|
32
|
-
i
|
|
33
|
-
),
|
|
34
|
-
...e,
|
|
35
|
-
children: [
|
|
36
|
-
/* @__PURE__ */ t("div", { className: s.tagText, children: o }),
|
|
37
|
-
n && /* @__PURE__ */ t(
|
|
38
|
-
g,
|
|
39
|
-
{
|
|
40
|
-
variant: "icon",
|
|
41
|
-
size: "medium",
|
|
42
|
-
className: s.button,
|
|
43
|
-
slot: "remove",
|
|
44
|
-
children: /* @__PURE__ */ t(u, { size: 20 })
|
|
45
|
-
}
|
|
46
|
-
)
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
export {
|
|
51
|
-
G as T,
|
|
52
|
-
B as a
|
|
53
|
-
};
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { jsxs as f, jsx as r, Fragment as F } from "react/jsx-runtime";
|
|
2
|
-
import * as n from "react";
|
|
3
|
-
import { F as l, ab as N, l as T, ac as g, G as h, U as P, ad as R } from "./react-aria-components-mIKW9wOa.js";
|
|
4
|
-
import { c as m } from "./clsx-CuNqTHjr.js";
|
|
5
|
-
import { s as i } from "./TextField.module-DZslrEPC.js";
|
|
6
|
-
import { T as x } from "./Text-WP6RbnnK.js";
|
|
7
|
-
import { B as v } from "./Button-CHs1wv7n.js";
|
|
8
|
-
import { u as L } from "./useLocalizedStringFormatter-CPwiI7nv.js";
|
|
9
|
-
import { F as p } from "./FieldError-CZKAYQ-n.js";
|
|
10
|
-
import { C as y } from "./CharacterCounter-CzCvDmNP.js";
|
|
11
|
-
import { a as B, L as C } from "./Label-CKe9pgXT.js";
|
|
12
|
-
const w = n.forwardRef((e, t) => {
|
|
13
|
-
[e] = l(e, t, g);
|
|
14
|
-
const {
|
|
15
|
-
label: s,
|
|
16
|
-
description: a,
|
|
17
|
-
errorMessage: c,
|
|
18
|
-
showCounter: d,
|
|
19
|
-
errorPosition: o = "top",
|
|
20
|
-
size: $ = "large",
|
|
21
|
-
popover: b,
|
|
22
|
-
children: u
|
|
23
|
-
} = e;
|
|
24
|
-
return /* @__PURE__ */ f(
|
|
25
|
-
N,
|
|
26
|
-
{
|
|
27
|
-
...e,
|
|
28
|
-
className: T(i.textField, {
|
|
29
|
-
[i.medium]: $ === "medium"
|
|
30
|
-
}),
|
|
31
|
-
children: [
|
|
32
|
-
/* @__PURE__ */ r(B, { popover: b, children: s && /* @__PURE__ */ r(C, { children: s }) }),
|
|
33
|
-
a && /* @__PURE__ */ r(x, { slot: "description", children: a }),
|
|
34
|
-
d && /* @__PURE__ */ r(y, { isLonely: !a }),
|
|
35
|
-
o === "top" && /* @__PURE__ */ r(p, { "data-testid": "fieldError", children: c }),
|
|
36
|
-
u,
|
|
37
|
-
o === "bottom" && /* @__PURE__ */ r(
|
|
38
|
-
p,
|
|
39
|
-
{
|
|
40
|
-
"data-testid": "fieldError",
|
|
41
|
-
className: i.bottomError,
|
|
42
|
-
children: c
|
|
43
|
-
}
|
|
44
|
-
)
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
}), E = { hide: "Hide", show: "Show" }, S = { hide: "Dölj", show: "Visa" }, j = {
|
|
49
|
-
en: E,
|
|
50
|
-
sv: S
|
|
51
|
-
}, z = n.forwardRef(
|
|
52
|
-
(e, t) => {
|
|
53
|
-
[e, t] = l(e, t, h);
|
|
54
|
-
const [s, a] = n.useState(!1), c = () => a((o) => !o), d = L(j);
|
|
55
|
-
return /* @__PURE__ */ f(F, { children: [
|
|
56
|
-
s && /* @__PURE__ */ r(
|
|
57
|
-
x,
|
|
58
|
-
{
|
|
59
|
-
slot: "description",
|
|
60
|
-
className: i.passwordText,
|
|
61
|
-
children: e.value
|
|
62
|
-
}
|
|
63
|
-
),
|
|
64
|
-
/* @__PURE__ */ r(
|
|
65
|
-
v,
|
|
66
|
-
{
|
|
67
|
-
variant: "tertiary",
|
|
68
|
-
onPress: c,
|
|
69
|
-
className: i.passwordButton,
|
|
70
|
-
children: s ? d.format("hide") : d.format("show")
|
|
71
|
-
}
|
|
72
|
-
)
|
|
73
|
-
] });
|
|
74
|
-
}
|
|
75
|
-
), A = n.forwardRef(
|
|
76
|
-
({ skipContext: e = !1, ...t }, s) => {
|
|
77
|
-
const [a, c] = l(
|
|
78
|
-
t,
|
|
79
|
-
s,
|
|
80
|
-
h
|
|
81
|
-
), d = e ? s : c, o = e ? t : a;
|
|
82
|
-
return /* @__PURE__ */ f("div", { className: i.wrap, children: [
|
|
83
|
-
/* @__PURE__ */ r(
|
|
84
|
-
P,
|
|
85
|
-
{
|
|
86
|
-
...o,
|
|
87
|
-
ref: d,
|
|
88
|
-
className: m(i.input, o.className)
|
|
89
|
-
}
|
|
90
|
-
),
|
|
91
|
-
o.type === "password" && /* @__PURE__ */ r(z, { ...o })
|
|
92
|
-
] });
|
|
93
|
-
}
|
|
94
|
-
), J = n.forwardRef(
|
|
95
|
-
({ className: e, list: t, type: s, min: a, max: c, ...d }, o) => /* @__PURE__ */ r(w, { ...d, children: /* @__PURE__ */ r(
|
|
96
|
-
A,
|
|
97
|
-
{
|
|
98
|
-
className: m(e),
|
|
99
|
-
list: t,
|
|
100
|
-
min: a,
|
|
101
|
-
max: c,
|
|
102
|
-
ref: o,
|
|
103
|
-
type: s,
|
|
104
|
-
skipContext: !0
|
|
105
|
-
}
|
|
106
|
-
) })
|
|
107
|
-
), K = n.forwardRef(
|
|
108
|
-
({ className: e, cols: t, rows: s, wrap: a, ...c }, d) => /* @__PURE__ */ r(w, { ...c, children: /* @__PURE__ */ r(
|
|
109
|
-
R,
|
|
110
|
-
{
|
|
111
|
-
className: m(i.textArea, e),
|
|
112
|
-
cols: t,
|
|
113
|
-
ref: d,
|
|
114
|
-
rows: s,
|
|
115
|
-
wrap: a
|
|
116
|
-
}
|
|
117
|
-
) })
|
|
118
|
-
);
|
|
119
|
-
export {
|
|
120
|
-
A as I,
|
|
121
|
-
w as T,
|
|
122
|
-
J as a,
|
|
123
|
-
K as b
|
|
124
|
-
};
|
package/chunks/Toast-CP_V12b3.js
DELETED
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as c, Fragment as g } from "react/jsx-runtime";
|
|
2
|
-
import { B as q } from "./Button-CHs1wv7n.js";
|
|
3
|
-
import m, { useMemo as z } from "react";
|
|
4
|
-
import { createPortal as $, flushSync as h } from "react-dom";
|
|
5
|
-
import { c as u } from "./clsx-CuNqTHjr.js";
|
|
6
|
-
import { i as v } from "./icon-map-Ckc-nEUA.js";
|
|
7
|
-
import { q as l, r as d } from "./react-stately-DRNKkAB0.js";
|
|
8
|
-
import { n as w, o as x } from "./react-aria-components-mIKW9wOa.js";
|
|
9
|
-
import { X as y } from "./x-BXShoIAM.js";
|
|
10
|
-
import '../assets/Toast.css';const R = "_toastRegion_3qumz_49", P = "_toast_3qumz_49", I = "_success_3qumz_97", N = "_info_3qumz_105", E = "_important_3qumz_113", M = "_warning_3qumz_121", O = "_icon_3qumz_129", C = "_toastContent_3qumz_143", V = "_toastMessage_3qumz_150", B = "_slideInTop_3qumz_1", S = "_slideInEnd_3qumz_1", j = "_slideOutTop_3qumz_1", k = "_slideOutEnd_3qumz_1", a = {
|
|
11
|
-
toastRegion: R,
|
|
12
|
-
toast: P,
|
|
13
|
-
success: I,
|
|
14
|
-
info: N,
|
|
15
|
-
important: E,
|
|
16
|
-
warning: M,
|
|
17
|
-
icon: O,
|
|
18
|
-
toastContent: C,
|
|
19
|
-
toastMessage: V,
|
|
20
|
-
slideInTop: B,
|
|
21
|
-
slideInEnd: S,
|
|
22
|
-
slideOutTop: j,
|
|
23
|
-
slideOutEnd: k
|
|
24
|
-
}, _ = {
|
|
25
|
-
wrapUpdate(t) {
|
|
26
|
-
"startViewTransition" in document ? document.startViewTransition(() => {
|
|
27
|
-
h(t);
|
|
28
|
-
}) : t();
|
|
29
|
-
},
|
|
30
|
-
maxVisibleToasts: 5
|
|
31
|
-
};
|
|
32
|
-
function G(t = {}) {
|
|
33
|
-
const { maxVisibleToasts: o = 1, wrapUpdate: s } = t, n = z(
|
|
34
|
-
() => new l({ maxVisibleToasts: o, wrapUpdate: s }),
|
|
35
|
-
[o, s]
|
|
36
|
-
);
|
|
37
|
-
return d(n);
|
|
38
|
-
}
|
|
39
|
-
const U = new l(_), Y = (t) => {
|
|
40
|
-
const o = d(U);
|
|
41
|
-
return o.visibleToasts.length > 0 ? $(
|
|
42
|
-
/* @__PURE__ */ e(
|
|
43
|
-
f,
|
|
44
|
-
{
|
|
45
|
-
...t,
|
|
46
|
-
state: o
|
|
47
|
-
}
|
|
48
|
-
),
|
|
49
|
-
document.body
|
|
50
|
-
) : null;
|
|
51
|
-
}, Z = ({ children: t, ...o }) => {
|
|
52
|
-
const s = G(_);
|
|
53
|
-
return /* @__PURE__ */ c(g, { children: [
|
|
54
|
-
typeof t == "function" ? t(s) : t,
|
|
55
|
-
s.visibleToasts.length > 0 && /* @__PURE__ */ e(
|
|
56
|
-
f,
|
|
57
|
-
{
|
|
58
|
-
...o,
|
|
59
|
-
state: s
|
|
60
|
-
}
|
|
61
|
-
)
|
|
62
|
-
] });
|
|
63
|
-
};
|
|
64
|
-
function f({
|
|
65
|
-
state: t,
|
|
66
|
-
className: o,
|
|
67
|
-
...s
|
|
68
|
-
}) {
|
|
69
|
-
const n = m.useRef(null), { regionProps: r } = w(s, t, n);
|
|
70
|
-
return /* @__PURE__ */ e(
|
|
71
|
-
"div",
|
|
72
|
-
{
|
|
73
|
-
...r,
|
|
74
|
-
ref: n,
|
|
75
|
-
className: u(a.toastRegion, o),
|
|
76
|
-
children: t.visibleToasts.map((i) => /* @__PURE__ */ e(
|
|
77
|
-
F,
|
|
78
|
-
{
|
|
79
|
-
toast: i,
|
|
80
|
-
state: t
|
|
81
|
-
},
|
|
82
|
-
i.key
|
|
83
|
-
))
|
|
84
|
-
}
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
function F({
|
|
88
|
-
state: t,
|
|
89
|
-
className: o,
|
|
90
|
-
...s
|
|
91
|
-
}) {
|
|
92
|
-
const n = m.useRef(null), { toastProps: r, contentProps: i, titleProps: p, closeButtonProps: T } = x(
|
|
93
|
-
s,
|
|
94
|
-
t
|
|
95
|
-
), b = v[s.toast.content.type];
|
|
96
|
-
return /* @__PURE__ */ c(
|
|
97
|
-
"div",
|
|
98
|
-
{
|
|
99
|
-
...r,
|
|
100
|
-
ref: n,
|
|
101
|
-
className: u(
|
|
102
|
-
a.toast,
|
|
103
|
-
a[s.toast.content.type],
|
|
104
|
-
o
|
|
105
|
-
),
|
|
106
|
-
style: { viewTransitionName: s.toast.key },
|
|
107
|
-
children: [
|
|
108
|
-
/* @__PURE__ */ c(
|
|
109
|
-
"div",
|
|
110
|
-
{
|
|
111
|
-
...i,
|
|
112
|
-
className: u(a.toastContent, i.className),
|
|
113
|
-
children: [
|
|
114
|
-
/* @__PURE__ */ e(
|
|
115
|
-
b,
|
|
116
|
-
{
|
|
117
|
-
className: a.icon,
|
|
118
|
-
size: 20,
|
|
119
|
-
"aria-hidden": !0
|
|
120
|
-
}
|
|
121
|
-
),
|
|
122
|
-
/* @__PURE__ */ c("div", { children: [
|
|
123
|
-
/* @__PURE__ */ e(
|
|
124
|
-
"p",
|
|
125
|
-
{
|
|
126
|
-
className: a.toastMessage,
|
|
127
|
-
...p,
|
|
128
|
-
children: s.toast.content.message
|
|
129
|
-
}
|
|
130
|
-
),
|
|
131
|
-
s.toast.content.children
|
|
132
|
-
] })
|
|
133
|
-
]
|
|
134
|
-
}
|
|
135
|
-
),
|
|
136
|
-
/* @__PURE__ */ e(
|
|
137
|
-
q,
|
|
138
|
-
{
|
|
139
|
-
variant: "icon",
|
|
140
|
-
...T,
|
|
141
|
-
children: /* @__PURE__ */ e(
|
|
142
|
-
y,
|
|
143
|
-
{
|
|
144
|
-
size: 20,
|
|
145
|
-
"aria-hidden": !0
|
|
146
|
-
}
|
|
147
|
-
)
|
|
148
|
-
}
|
|
149
|
-
)
|
|
150
|
-
]
|
|
151
|
-
}
|
|
152
|
-
);
|
|
153
|
-
}
|
|
154
|
-
export {
|
|
155
|
-
Y as G,
|
|
156
|
-
Z as T,
|
|
157
|
-
f as a,
|
|
158
|
-
F as b,
|
|
159
|
-
U as t,
|
|
160
|
-
G as u
|
|
161
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { W as a, X as n } from "./react-aria-components-mIKW9wOa.js";
|
|
3
|
-
import { B as t } from "./Button.module-Cm0H98vy.js";
|
|
4
|
-
import { c as e } from "./clsx-CuNqTHjr.js";
|
|
5
|
-
import '../assets/ToggleButtonGroup.css';const g = "_group_q04hh_1", u = "_toggleButton_q04hh_10", r = {
|
|
6
|
-
group: g,
|
|
7
|
-
toggleButton: u
|
|
8
|
-
}, f = ({ ...o }) => /* @__PURE__ */ s(
|
|
9
|
-
a,
|
|
10
|
-
{
|
|
11
|
-
...o,
|
|
12
|
-
className: e(
|
|
13
|
-
t.button,
|
|
14
|
-
t.iconBtn,
|
|
15
|
-
r.toggleButton,
|
|
16
|
-
o.className
|
|
17
|
-
)
|
|
18
|
-
}
|
|
19
|
-
), B = ({ ...o }) => /* @__PURE__ */ s(
|
|
20
|
-
n,
|
|
21
|
-
{
|
|
22
|
-
...o,
|
|
23
|
-
className: e(r.group, o.className)
|
|
24
|
-
}
|
|
25
|
-
);
|
|
26
|
-
export {
|
|
27
|
-
f as T,
|
|
28
|
-
B as a
|
|
29
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { jsxs as a, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "./clsx-CuNqTHjr.js";
|
|
3
|
-
import { x as i, y as n, z as p } from "./react-aria-components-mIKW9wOa.js";
|
|
4
|
-
import '../assets/Tooltip.css';const l = "_tooltip_1nthz_1", d = "_arrow_1nthz_18", s = {
|
|
5
|
-
tooltip: l,
|
|
6
|
-
arrow: d
|
|
7
|
-
};
|
|
8
|
-
function $({ children: t, className: r, ...e }) {
|
|
9
|
-
return /* @__PURE__ */ a(
|
|
10
|
-
i,
|
|
11
|
-
{
|
|
12
|
-
className: c(s.tooltip, r),
|
|
13
|
-
...e,
|
|
14
|
-
children: [
|
|
15
|
-
/* @__PURE__ */ o(n, { className: s.arrow, children: /* @__PURE__ */ o(
|
|
16
|
-
"svg",
|
|
17
|
-
{
|
|
18
|
-
width: 8,
|
|
19
|
-
height: 8,
|
|
20
|
-
viewBox: "0 0 8 8",
|
|
21
|
-
children: /* @__PURE__ */ o("path", { d: "M0 0 L4 4 L8 0" })
|
|
22
|
-
}
|
|
23
|
-
) }),
|
|
24
|
-
t
|
|
25
|
-
]
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
function m({
|
|
30
|
-
children: t,
|
|
31
|
-
delay: r = 0,
|
|
32
|
-
...e
|
|
33
|
-
}) {
|
|
34
|
-
return /* @__PURE__ */ o(
|
|
35
|
-
p,
|
|
36
|
-
{
|
|
37
|
-
delay: r,
|
|
38
|
-
...e,
|
|
39
|
-
children: t
|
|
40
|
-
}
|
|
41
|
-
);
|
|
42
|
-
}
|
|
43
|
-
export {
|
|
44
|
-
$ as T,
|
|
45
|
-
m as a
|
|
46
|
-
};
|
package/chunks/clsx-CuNqTHjr.js
DELETED