@midas-ds/components 15.4.0 → 15.5.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 +16 -0
- package/accordion/AccordionItem.d.ts +5 -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-BDkCTxFM.js +132 -0
- package/chunks/{BadgeContainer-BJAC-kV0.js → BadgeContainer-CKVsfTlF.js} +1 -1
- package/chunks/Breadcrumbs-By2bMbQd.js +28 -0
- package/chunks/Button-DbQwg49l.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-CIFMaanI.js +84 -0
- package/chunks/{ColorSchemeSwitch-Cd6VSXql.js → ColorSchemeSwitch-DugvPh6T.js} +17 -17
- package/chunks/ComboBox-D86agoIk.js +108 -0
- package/chunks/DateField-CdJdPIuj.js +46 -0
- package/chunks/DateInputDivider-CkTB5q5k.js +36 -0
- package/chunks/DateRangePicker-p0l1tSMb.js +117 -0
- package/chunks/Dialog-BndmKdiv.js +66 -0
- package/chunks/Dropdown-CWP2clB2.js +79 -0
- package/chunks/FeedbackStatusIcon-COWuMusk.js +56 -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-tXWNVxpu.js +72 -0
- package/chunks/Label-B7taTXkd.js +73 -0
- package/chunks/{Layout-InD0Hl7F.js → Layout-DPRkHK4y.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-BKptRAtt.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-B2W7BTjA.js +53 -0
- package/chunks/Radio-BzuxVV_g.js +43 -0
- package/chunks/RangeCalendar-CuXHsT-k.js +99 -0
- package/chunks/{SearchField-Dr3DAs9W.js → SearchField-CLrAjcdA.js} +39 -39
- package/chunks/{Select-fDRXxmLm.js → Select-C-0lWpoz.js} +48 -46
- package/chunks/Select-CzfIyTE7.js +576 -0
- package/chunks/Separator-BcnQEA9f.js +76 -0
- package/chunks/{Skeleton-Bcg_xgAx.js → Skeleton-DqIHQLQl.js} +1 -1
- package/chunks/Spinner-CL9evrHm.js +49 -0
- package/chunks/TabList-D2XV5ixe.js +81 -0
- package/chunks/Table-B1rlSIhS.js +139 -0
- package/chunks/Tag-CEfQksg8.js +53 -0
- package/chunks/{Text-WP6RbnnK.js → Text-TWzJxnto.js} +9 -9
- package/chunks/TextArea-34YgkUEE.js +124 -0
- package/chunks/{Toast-CP_V12b3.js → Toast-CCA9sCnB.js} +46 -45
- 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/common/FeedbackStatusIcon.d.ts +6 -0
- package/common/intl/translations.json.d.ts +17 -0
- 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/Toast.d.ts +1 -1
- package/toast/index.js +1 -1
- package/toggle-button/index.js +1 -1
- package/tooltip/index.js +1 -1
- package/chunks/AccordionItem-BCoomT4-.js +0 -132
- 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/InfoBanner-Bw3rjGtB.js +0 -72
- 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/ToggleButtonGroup-CgNeypuW.js +0 -29
- package/chunks/Tooltip-C53p0sfk.js +0 -46
- package/chunks/clsx-CuNqTHjr.js +0 -11
- package/chunks/icon-map-Ckc-nEUA.js +0 -31
- 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
- package/common/icon-map.d.ts +0 -6
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { jsx as e, jsxs as b, Fragment as l } from "react/jsx-runtime";
|
|
2
|
+
import { Tabs as d, Tab as _, composeRenderProps as m, SelectionIndicator as T, TabPanel as f, TabList as u } from "react-aria-components";
|
|
3
|
+
import { c as o } from "./clsx-AexbMWKp.js";
|
|
4
|
+
import * as i from "react";
|
|
5
|
+
import { createContext as P } from "react";
|
|
6
|
+
import '../assets/TabList.css';const c = P({
|
|
7
|
+
variant: "uncontained"
|
|
8
|
+
}), x = "_tabs_3k5fn_1", L = "_tabList_3k5fn_12", k = "_tab_3k5fn_1", p = "_contained_3k5fn_55", v = "_selectionIndicator_3k5fn_94", I = "_tabPanel_3k5fn_129", t = {
|
|
9
|
+
tabs: x,
|
|
10
|
+
tabList: L,
|
|
11
|
+
tab: k,
|
|
12
|
+
contained: p,
|
|
13
|
+
selectionIndicator: v,
|
|
14
|
+
tabPanel: I
|
|
15
|
+
}, j = ({
|
|
16
|
+
className: n,
|
|
17
|
+
variant: a = "uncontained",
|
|
18
|
+
...s
|
|
19
|
+
}) => /* @__PURE__ */ e(c.Provider, { value: { variant: a }, children: /* @__PURE__ */ e(
|
|
20
|
+
d,
|
|
21
|
+
{
|
|
22
|
+
className: o(t.tabs, n),
|
|
23
|
+
...s
|
|
24
|
+
}
|
|
25
|
+
) }), R = ({ className: n, ...a }) => {
|
|
26
|
+
const { variant: s } = i.useContext(c);
|
|
27
|
+
return /* @__PURE__ */ e(
|
|
28
|
+
_,
|
|
29
|
+
{
|
|
30
|
+
...a,
|
|
31
|
+
className: o(
|
|
32
|
+
t.tab,
|
|
33
|
+
{
|
|
34
|
+
[t.contained]: s === "contained"
|
|
35
|
+
},
|
|
36
|
+
n
|
|
37
|
+
),
|
|
38
|
+
children: m(a.children, (r) => /* @__PURE__ */ b(l, { children: [
|
|
39
|
+
r,
|
|
40
|
+
/* @__PURE__ */ e(
|
|
41
|
+
T,
|
|
42
|
+
{
|
|
43
|
+
className: o(t.selectionIndicator, {
|
|
44
|
+
[t.contained]: s === "contained"
|
|
45
|
+
})
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
] }))
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
}, g = ({ className: n, ...a }) => {
|
|
52
|
+
const { variant: s } = i.useContext(c);
|
|
53
|
+
return /* @__PURE__ */ e(
|
|
54
|
+
f,
|
|
55
|
+
{
|
|
56
|
+
className: o(
|
|
57
|
+
t.tabPanel,
|
|
58
|
+
{
|
|
59
|
+
[t.contained]: s === "contained"
|
|
60
|
+
},
|
|
61
|
+
n
|
|
62
|
+
),
|
|
63
|
+
...a
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
}, y = ({
|
|
67
|
+
className: n,
|
|
68
|
+
...a
|
|
69
|
+
}) => /* @__PURE__ */ e(
|
|
70
|
+
u,
|
|
71
|
+
{
|
|
72
|
+
className: o(t.tabList, n),
|
|
73
|
+
...a
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
export {
|
|
77
|
+
j as T,
|
|
78
|
+
R as a,
|
|
79
|
+
g as b,
|
|
80
|
+
y as c
|
|
81
|
+
};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { jsx as e, jsxs as d, Fragment as b } from "react/jsx-runtime";
|
|
2
|
+
import { Table as w, useTableOptions as u, TableHeader as g, Collection as p, Row as j, Button as N, Column as k, Cell as f, TableBody as x } from "react-aria-components";
|
|
3
|
+
import { C as h } from "./Checkbox-ClhO-AzB.js";
|
|
4
|
+
import { c as a } from "./clsx-AexbMWKp.js";
|
|
5
|
+
import { c as i } from "./createLucideIcon-D4r5Phnh.js";
|
|
6
|
+
import '../assets/Table.css';const T = [
|
|
7
|
+
["path", { d: "M12 5v14", key: "s699le" }],
|
|
8
|
+
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
9
|
+
], C = i("arrow-down", T);
|
|
10
|
+
const I = [
|
|
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
|
+
], v = i("arrow-up-down", I);
|
|
16
|
+
const $ = [
|
|
17
|
+
["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
|
|
18
|
+
["path", { d: "M12 19V5", key: "x0mq9r" }]
|
|
19
|
+
], B = i("arrow-up", $);
|
|
20
|
+
const H = [
|
|
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
|
+
], z = i("grip-vertical", H), M = "_table_1i4j5_1", R = "_tableHeader_1i4j5_11", q = "_column_1i4j5_12", A = "_sortIndicator_1i4j5_28", D = "_sortIconNeutral_1i4j5_36", V = "_selection_1i4j5_46", U = "_row_1i4j5_52", F = "_cell_1i4j5_70", G = "_medium_1i4j5_110", L = "_striped_1i4j5_121", o = {
|
|
28
|
+
table: M,
|
|
29
|
+
tableHeader: R,
|
|
30
|
+
column: q,
|
|
31
|
+
sortIndicator: A,
|
|
32
|
+
sortIconNeutral: D,
|
|
33
|
+
selection: V,
|
|
34
|
+
row: U,
|
|
35
|
+
cell: F,
|
|
36
|
+
medium: G,
|
|
37
|
+
striped: L
|
|
38
|
+
}, P = ({
|
|
39
|
+
size: c = "large",
|
|
40
|
+
striped: t = !1,
|
|
41
|
+
className: s,
|
|
42
|
+
...r
|
|
43
|
+
}) => /* @__PURE__ */ e(
|
|
44
|
+
w,
|
|
45
|
+
{
|
|
46
|
+
className: a(o.table, s, {
|
|
47
|
+
[o.medium]: c === "medium",
|
|
48
|
+
[o.striped]: t
|
|
49
|
+
}),
|
|
50
|
+
...r
|
|
51
|
+
}
|
|
52
|
+
), Q = ({
|
|
53
|
+
columns: c,
|
|
54
|
+
children: t,
|
|
55
|
+
className: s
|
|
56
|
+
}) => {
|
|
57
|
+
const { selectionBehavior: r, selectionMode: l, allowsDragging: n } = u();
|
|
58
|
+
return /* @__PURE__ */ d(g, { className: a(s, o.tableHeader), children: [
|
|
59
|
+
n && /* @__PURE__ */ e(m, {}),
|
|
60
|
+
r === "toggle" && /* @__PURE__ */ e(m, { width: 50, children: l === "multiple" && /* @__PURE__ */ e(
|
|
61
|
+
h,
|
|
62
|
+
{
|
|
63
|
+
className: o.selection,
|
|
64
|
+
slot: "selection"
|
|
65
|
+
}
|
|
66
|
+
) }),
|
|
67
|
+
/* @__PURE__ */ e(p, { items: c, children: t })
|
|
68
|
+
] });
|
|
69
|
+
}, W = ({
|
|
70
|
+
id: c,
|
|
71
|
+
columns: t,
|
|
72
|
+
children: s,
|
|
73
|
+
className: r,
|
|
74
|
+
...l
|
|
75
|
+
}) => {
|
|
76
|
+
const { selectionBehavior: n, allowsDragging: y } = u();
|
|
77
|
+
return /* @__PURE__ */ d(
|
|
78
|
+
j,
|
|
79
|
+
{
|
|
80
|
+
id: c,
|
|
81
|
+
className: a(r, o.row),
|
|
82
|
+
...l,
|
|
83
|
+
children: [
|
|
84
|
+
y && /* @__PURE__ */ e(_, { children: /* @__PURE__ */ e(N, { slot: "drag", children: /* @__PURE__ */ e(z, { size: 20 }) }) }),
|
|
85
|
+
n === "toggle" && /* @__PURE__ */ e(_, { children: /* @__PURE__ */ e(
|
|
86
|
+
h,
|
|
87
|
+
{
|
|
88
|
+
className: o.selection,
|
|
89
|
+
slot: "selection"
|
|
90
|
+
}
|
|
91
|
+
) }),
|
|
92
|
+
/* @__PURE__ */ e(p, { items: t, children: s })
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
}, m = ({ children: c, className: t, ...s }) => /* @__PURE__ */ e(
|
|
97
|
+
k,
|
|
98
|
+
{
|
|
99
|
+
className: a(t, o.column),
|
|
100
|
+
...s,
|
|
101
|
+
children: ({ allowsSorting: r, sortDirection: l }) => {
|
|
102
|
+
const n = () => l === "ascending" ? /* @__PURE__ */ e(B, { size: 16 }) : l === "descending" ? /* @__PURE__ */ e(C, { size: 16 }) : /* @__PURE__ */ e(v, { size: 16, className: o.sortIconNeutral });
|
|
103
|
+
return /* @__PURE__ */ d(b, { children: [
|
|
104
|
+
c,
|
|
105
|
+
r && /* @__PURE__ */ e(
|
|
106
|
+
"span",
|
|
107
|
+
{
|
|
108
|
+
"aria-hidden": "true",
|
|
109
|
+
className: o.sortIndicator,
|
|
110
|
+
children: n()
|
|
111
|
+
}
|
|
112
|
+
)
|
|
113
|
+
] });
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
), _ = ({ className: c, ...t }) => /* @__PURE__ */ e(
|
|
117
|
+
f,
|
|
118
|
+
{
|
|
119
|
+
className: a(c, o.cell),
|
|
120
|
+
...t
|
|
121
|
+
}
|
|
122
|
+
), X = ({
|
|
123
|
+
className: c,
|
|
124
|
+
...t
|
|
125
|
+
}) => /* @__PURE__ */ e(
|
|
126
|
+
x,
|
|
127
|
+
{
|
|
128
|
+
className: a(c, o.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
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsxs as r, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { Tag as c, TagGroup as _, TagList as e } from "react-aria-components";
|
|
3
|
+
import { B as g } from "./Button-DbQwg49l.js";
|
|
4
|
+
import { c as u } from "./clsx-AexbMWKp.js";
|
|
5
|
+
import { X as l } from "./x-BXShoIAM.js";
|
|
6
|
+
import '../assets/Tag.css';const T = "_button_1nm6n_1", p = "_success_1nm6n_16", f = "_warning_1nm6n_17", d = "_info_1nm6n_18", x = "_important_1nm6n_19", b = "_tag_1nm6n_31", w = "_tagText_1nm6n_83", L = "_dismissable_1nm6n_88", N = "_tagList_1nm6n_92", s = {
|
|
7
|
+
button: T,
|
|
8
|
+
success: p,
|
|
9
|
+
warning: f,
|
|
10
|
+
info: d,
|
|
11
|
+
important: x,
|
|
12
|
+
tag: b,
|
|
13
|
+
tagText: w,
|
|
14
|
+
dismissable: L,
|
|
15
|
+
tagList: N
|
|
16
|
+
}, B = ({ children: o, ...t }) => /* @__PURE__ */ n(_, { ...t, children: /* @__PURE__ */ n(e, { className: s.tagList, children: o }) }), $ = ({
|
|
17
|
+
children: o,
|
|
18
|
+
dismissable: t,
|
|
19
|
+
className: i,
|
|
20
|
+
type: a,
|
|
21
|
+
...m
|
|
22
|
+
}) => /* @__PURE__ */ r(
|
|
23
|
+
c,
|
|
24
|
+
{
|
|
25
|
+
className: u(
|
|
26
|
+
s.tag,
|
|
27
|
+
t && 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
|
+
...m,
|
|
35
|
+
children: [
|
|
36
|
+
/* @__PURE__ */ n("div", { className: s.tagText, children: o }),
|
|
37
|
+
t && /* @__PURE__ */ n(
|
|
38
|
+
g,
|
|
39
|
+
{
|
|
40
|
+
variant: "icon",
|
|
41
|
+
size: "medium",
|
|
42
|
+
className: s.button,
|
|
43
|
+
slot: "remove",
|
|
44
|
+
children: /* @__PURE__ */ n(l, { size: 20 })
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
export {
|
|
51
|
+
$ as T,
|
|
52
|
+
B as a
|
|
53
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import '../assets/Text.css';const
|
|
5
|
-
body:
|
|
2
|
+
import { c as _ } from "./clsx-AexbMWKp.js";
|
|
3
|
+
import { Text as m } from "react-aria-components";
|
|
4
|
+
import '../assets/Text.css';const p = "_body_1w3he_5", y = "_description_1w3he_20", s = {
|
|
5
|
+
body: p,
|
|
6
6
|
"body-02": "_body-02_1w3he_6",
|
|
7
7
|
"body-small": "_body-small_1w3he_16",
|
|
8
8
|
"description-small": "_description-small_1w3he_20",
|
|
9
9
|
"body-01": "_body-01_1w3he_24",
|
|
10
|
-
description:
|
|
11
|
-
}, r = "span",
|
|
10
|
+
description: y
|
|
11
|
+
}, r = "span", u = ({
|
|
12
12
|
children: i,
|
|
13
13
|
className: d,
|
|
14
14
|
size: o,
|
|
@@ -18,13 +18,13 @@ import '../assets/Text.css';const m = "_body_1w3he_5", b = "_description_1w3he_2
|
|
|
18
18
|
...t
|
|
19
19
|
}) => {
|
|
20
20
|
const c = {
|
|
21
|
-
className:
|
|
21
|
+
className: _(e === "body-01" ? s["body-01"] : e === "body-02" ? s["body-02"] : t.slot === "description" ? o === "small" ? s["description-small"] : s.description : o === "small" ? s["body-small"] : s.body, d),
|
|
22
22
|
elementType: n || r,
|
|
23
23
|
...l && { "data-expressive": !0 },
|
|
24
24
|
...t
|
|
25
25
|
};
|
|
26
|
-
return /* @__PURE__ */ a(
|
|
26
|
+
return /* @__PURE__ */ a(m, { ...c, children: i });
|
|
27
27
|
};
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
u as T
|
|
30
30
|
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { jsxs as l, jsx as s, Fragment as N } from "react/jsx-runtime";
|
|
2
|
+
import * as c from "react";
|
|
3
|
+
import { useContextProps as m, TextFieldContext as C, TextField as P, InputContext as p, Input as b, TextArea as g } from "react-aria-components";
|
|
4
|
+
import { a as R, c as f } from "./clsx-AexbMWKp.js";
|
|
5
|
+
import { s as d } from "./TextField.module-DZslrEPC.js";
|
|
6
|
+
import { T as x } from "./Text-TWzJxnto.js";
|
|
7
|
+
import { B as v } from "./Button-DbQwg49l.js";
|
|
8
|
+
import { u as I } from "./useLocalizedStringFormatter-ZgRJmvHC.js";
|
|
9
|
+
import { F as h } from "./FieldError-C0HRIcAx.js";
|
|
10
|
+
import { C as L } from "./CharacterCounter-DeuE2det.js";
|
|
11
|
+
import { a as y, L as A } from "./Label-B7taTXkd.js";
|
|
12
|
+
const u = c.forwardRef((e, t) => {
|
|
13
|
+
[e] = m(e, t, C);
|
|
14
|
+
const {
|
|
15
|
+
label: r,
|
|
16
|
+
description: o,
|
|
17
|
+
errorMessage: i,
|
|
18
|
+
showCounter: n,
|
|
19
|
+
errorPosition: a = "top",
|
|
20
|
+
size: w = "large",
|
|
21
|
+
popover: T,
|
|
22
|
+
children: F
|
|
23
|
+
} = e;
|
|
24
|
+
return /* @__PURE__ */ l(
|
|
25
|
+
P,
|
|
26
|
+
{
|
|
27
|
+
...e,
|
|
28
|
+
className: R(d.textField, {
|
|
29
|
+
[d.medium]: w === "medium"
|
|
30
|
+
}),
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ s(y, { popover: T, children: r && /* @__PURE__ */ s(A, { children: r }) }),
|
|
33
|
+
o && /* @__PURE__ */ s(x, { slot: "description", children: o }),
|
|
34
|
+
n && /* @__PURE__ */ s(L, { isLonely: !o }),
|
|
35
|
+
a === "top" && /* @__PURE__ */ s(h, { "data-testid": "fieldError", children: i }),
|
|
36
|
+
F,
|
|
37
|
+
a === "bottom" && /* @__PURE__ */ s(
|
|
38
|
+
h,
|
|
39
|
+
{
|
|
40
|
+
"data-testid": "fieldError",
|
|
41
|
+
className: d.bottomError,
|
|
42
|
+
children: i
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
}), B = { hide: "Hide", show: "Show" }, E = { hide: "Dölj", show: "Visa" }, S = {
|
|
49
|
+
en: B,
|
|
50
|
+
sv: E
|
|
51
|
+
}, $ = c.forwardRef(
|
|
52
|
+
(e, t) => {
|
|
53
|
+
[e, t] = m(e, t, p);
|
|
54
|
+
const [r, o] = c.useState(!1), i = () => o((a) => !a), n = I(S);
|
|
55
|
+
return /* @__PURE__ */ l(N, { children: [
|
|
56
|
+
r && /* @__PURE__ */ s(
|
|
57
|
+
x,
|
|
58
|
+
{
|
|
59
|
+
slot: "description",
|
|
60
|
+
className: d.passwordText,
|
|
61
|
+
children: e.value
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
/* @__PURE__ */ s(
|
|
65
|
+
v,
|
|
66
|
+
{
|
|
67
|
+
variant: "tertiary",
|
|
68
|
+
onPress: i,
|
|
69
|
+
className: d.passwordButton,
|
|
70
|
+
children: r ? n.format("hide") : n.format("show")
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
] });
|
|
74
|
+
}
|
|
75
|
+
), j = c.forwardRef(
|
|
76
|
+
({ skipContext: e = !1, ...t }, r) => {
|
|
77
|
+
const [o, i] = m(
|
|
78
|
+
t,
|
|
79
|
+
r,
|
|
80
|
+
p
|
|
81
|
+
), n = e ? r : i, a = e ? t : o;
|
|
82
|
+
return /* @__PURE__ */ l("div", { className: d.wrap, children: [
|
|
83
|
+
/* @__PURE__ */ s(
|
|
84
|
+
b,
|
|
85
|
+
{
|
|
86
|
+
...a,
|
|
87
|
+
ref: n,
|
|
88
|
+
className: f(d.input, a.className)
|
|
89
|
+
}
|
|
90
|
+
),
|
|
91
|
+
a.type === "password" && /* @__PURE__ */ s($, { ...a })
|
|
92
|
+
] });
|
|
93
|
+
}
|
|
94
|
+
), K = c.forwardRef(
|
|
95
|
+
({ className: e, list: t, type: r, min: o, max: i, ...n }, a) => /* @__PURE__ */ s(u, { ...n, children: /* @__PURE__ */ s(
|
|
96
|
+
j,
|
|
97
|
+
{
|
|
98
|
+
className: f(e),
|
|
99
|
+
list: t,
|
|
100
|
+
min: o,
|
|
101
|
+
max: i,
|
|
102
|
+
ref: a,
|
|
103
|
+
type: r,
|
|
104
|
+
skipContext: !0
|
|
105
|
+
}
|
|
106
|
+
) })
|
|
107
|
+
), O = c.forwardRef(
|
|
108
|
+
({ className: e, cols: t, rows: r, wrap: o, ...i }, n) => /* @__PURE__ */ s(u, { ...i, children: /* @__PURE__ */ s(
|
|
109
|
+
g,
|
|
110
|
+
{
|
|
111
|
+
className: f(d.textArea, e),
|
|
112
|
+
cols: t,
|
|
113
|
+
ref: n,
|
|
114
|
+
rows: r,
|
|
115
|
+
wrap: o
|
|
116
|
+
}
|
|
117
|
+
) })
|
|
118
|
+
);
|
|
119
|
+
export {
|
|
120
|
+
j as I,
|
|
121
|
+
u as T,
|
|
122
|
+
K as a,
|
|
123
|
+
O as b
|
|
124
|
+
};
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import { jsx as e, jsxs as c, Fragment as g } from "react/jsx-runtime";
|
|
2
|
-
import { B as q } from "./Button-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import { B as q } from "./Button-DbQwg49l.js";
|
|
3
|
+
import { useToastRegion as z, useToast as h } from "react-aria";
|
|
4
|
+
import { ToastQueue as m, useToastQueue as l } from "react-stately";
|
|
5
|
+
import d, { useMemo as v } from "react";
|
|
6
|
+
import { createPortal as w, flushSync as R } from "react-dom";
|
|
7
|
+
import { c as u } from "./clsx-AexbMWKp.js";
|
|
8
|
+
import { F as b } from "./FeedbackStatusIcon-COWuMusk.js";
|
|
9
9
|
import { X as y } from "./x-BXShoIAM.js";
|
|
10
|
-
import '../assets/Toast.css';const
|
|
11
|
-
toastRegion:
|
|
12
|
-
toast:
|
|
13
|
-
success:
|
|
14
|
-
info:
|
|
10
|
+
import '../assets/Toast.css';const P = "_toastRegion_3qumz_49", I = "_toast_3qumz_49", N = "_success_3qumz_97", x = "_info_3qumz_105", E = "_important_3qumz_113", O = "_warning_3qumz_121", M = "_icon_3qumz_129", C = "_toastContent_3qumz_143", S = "_toastMessage_3qumz_150", V = "_slideInTop_3qumz_1", k = "_slideInEnd_3qumz_1", B = "_slideOutTop_3qumz_1", F = "_slideOutEnd_3qumz_1", a = {
|
|
11
|
+
toastRegion: P,
|
|
12
|
+
toast: I,
|
|
13
|
+
success: N,
|
|
14
|
+
info: x,
|
|
15
15
|
important: E,
|
|
16
|
-
warning:
|
|
17
|
-
icon:
|
|
16
|
+
warning: O,
|
|
17
|
+
icon: M,
|
|
18
18
|
toastContent: C,
|
|
19
|
-
toastMessage:
|
|
20
|
-
slideInTop:
|
|
21
|
-
slideInEnd:
|
|
22
|
-
slideOutTop:
|
|
23
|
-
slideOutEnd:
|
|
19
|
+
toastMessage: S,
|
|
20
|
+
slideInTop: V,
|
|
21
|
+
slideInEnd: k,
|
|
22
|
+
slideOutTop: B,
|
|
23
|
+
slideOutEnd: F
|
|
24
24
|
}, _ = {
|
|
25
25
|
wrapUpdate(t) {
|
|
26
26
|
"startViewTransition" in document ? document.startViewTransition(() => {
|
|
27
|
-
|
|
27
|
+
R(t);
|
|
28
28
|
}) : t();
|
|
29
29
|
},
|
|
30
30
|
maxVisibleToasts: 5
|
|
31
31
|
};
|
|
32
|
-
function
|
|
33
|
-
const { maxVisibleToasts: o = 1, wrapUpdate: s } = t, n =
|
|
34
|
-
() => new
|
|
32
|
+
function Q(t = {}) {
|
|
33
|
+
const { maxVisibleToasts: o = 1, wrapUpdate: s } = t, n = v(
|
|
34
|
+
() => new m({ maxVisibleToasts: o, wrapUpdate: s }),
|
|
35
35
|
[o, s]
|
|
36
36
|
);
|
|
37
|
-
return
|
|
37
|
+
return l(n);
|
|
38
38
|
}
|
|
39
|
-
const
|
|
40
|
-
const o =
|
|
41
|
-
return o.visibleToasts.length > 0 ?
|
|
39
|
+
const j = new m(_), Y = (t) => {
|
|
40
|
+
const o = l(j);
|
|
41
|
+
return o.visibleToasts.length > 0 ? w(
|
|
42
42
|
/* @__PURE__ */ e(
|
|
43
|
-
|
|
43
|
+
p,
|
|
44
44
|
{
|
|
45
45
|
...t,
|
|
46
46
|
state: o
|
|
@@ -49,11 +49,11 @@ const U = new l(_), Y = (t) => {
|
|
|
49
49
|
document.body
|
|
50
50
|
) : null;
|
|
51
51
|
}, Z = ({ children: t, ...o }) => {
|
|
52
|
-
const s =
|
|
52
|
+
const s = Q(_);
|
|
53
53
|
return /* @__PURE__ */ c(g, { children: [
|
|
54
54
|
typeof t == "function" ? t(s) : t,
|
|
55
55
|
s.visibleToasts.length > 0 && /* @__PURE__ */ e(
|
|
56
|
-
|
|
56
|
+
p,
|
|
57
57
|
{
|
|
58
58
|
...o,
|
|
59
59
|
state: s
|
|
@@ -61,12 +61,12 @@ const U = new l(_), Y = (t) => {
|
|
|
61
61
|
)
|
|
62
62
|
] });
|
|
63
63
|
};
|
|
64
|
-
function
|
|
64
|
+
function p({
|
|
65
65
|
state: t,
|
|
66
66
|
className: o,
|
|
67
67
|
...s
|
|
68
68
|
}) {
|
|
69
|
-
const n =
|
|
69
|
+
const n = d.useRef(null), { regionProps: r } = z(s, t, n);
|
|
70
70
|
return /* @__PURE__ */ e(
|
|
71
71
|
"div",
|
|
72
72
|
{
|
|
@@ -74,7 +74,7 @@ function f({
|
|
|
74
74
|
ref: n,
|
|
75
75
|
className: u(a.toastRegion, o),
|
|
76
76
|
children: t.visibleToasts.map((i) => /* @__PURE__ */ e(
|
|
77
|
-
|
|
77
|
+
G,
|
|
78
78
|
{
|
|
79
79
|
toast: i,
|
|
80
80
|
state: t
|
|
@@ -84,15 +84,16 @@ function f({
|
|
|
84
84
|
}
|
|
85
85
|
);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function G({
|
|
88
88
|
state: t,
|
|
89
89
|
className: o,
|
|
90
90
|
...s
|
|
91
91
|
}) {
|
|
92
|
-
const n =
|
|
92
|
+
const n = d.useRef(null), { toastProps: r, contentProps: i, titleProps: T, closeButtonProps: f } = h(
|
|
93
93
|
s,
|
|
94
|
-
t
|
|
95
|
-
|
|
94
|
+
t,
|
|
95
|
+
n
|
|
96
|
+
);
|
|
96
97
|
return /* @__PURE__ */ c(
|
|
97
98
|
"div",
|
|
98
99
|
{
|
|
@@ -114,9 +115,9 @@ function F({
|
|
|
114
115
|
/* @__PURE__ */ e(
|
|
115
116
|
b,
|
|
116
117
|
{
|
|
118
|
+
"aria-hidden": !0,
|
|
117
119
|
className: a.icon,
|
|
118
|
-
|
|
119
|
-
"aria-hidden": !0
|
|
120
|
+
status: s.toast.content.type
|
|
120
121
|
}
|
|
121
122
|
),
|
|
122
123
|
/* @__PURE__ */ c("div", { children: [
|
|
@@ -124,7 +125,7 @@ function F({
|
|
|
124
125
|
"p",
|
|
125
126
|
{
|
|
126
127
|
className: a.toastMessage,
|
|
127
|
-
...
|
|
128
|
+
...T,
|
|
128
129
|
children: s.toast.content.message
|
|
129
130
|
}
|
|
130
131
|
),
|
|
@@ -137,7 +138,7 @@ function F({
|
|
|
137
138
|
q,
|
|
138
139
|
{
|
|
139
140
|
variant: "icon",
|
|
140
|
-
...
|
|
141
|
+
...f,
|
|
141
142
|
children: /* @__PURE__ */ e(
|
|
142
143
|
y,
|
|
143
144
|
{
|
|
@@ -154,8 +155,8 @@ function F({
|
|
|
154
155
|
export {
|
|
155
156
|
Y as G,
|
|
156
157
|
Z as T,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
p as a,
|
|
159
|
+
G as b,
|
|
160
|
+
j as t,
|
|
161
|
+
Q as u
|
|
161
162
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
+
import { ToggleButton as u, ToggleButtonGroup as r } from "react-aria-components";
|
|
3
|
+
import { B as t } from "./Button.module-Cm0H98vy.js";
|
|
4
|
+
import { c as s } from "./clsx-AexbMWKp.js";
|
|
5
|
+
import '../assets/ToggleButtonGroup.css';const e = "_group_q04hh_1", l = "_toggleButton_q04hh_10", n = {
|
|
6
|
+
group: e,
|
|
7
|
+
toggleButton: l
|
|
8
|
+
}, p = ({ ...o }) => /* @__PURE__ */ g(
|
|
9
|
+
u,
|
|
10
|
+
{
|
|
11
|
+
...o,
|
|
12
|
+
className: s(
|
|
13
|
+
t.button,
|
|
14
|
+
t.iconBtn,
|
|
15
|
+
n.toggleButton,
|
|
16
|
+
o.className
|
|
17
|
+
)
|
|
18
|
+
}
|
|
19
|
+
), T = ({ ...o }) => /* @__PURE__ */ g(
|
|
20
|
+
r,
|
|
21
|
+
{
|
|
22
|
+
...o,
|
|
23
|
+
className: s(n.group, o.className)
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
export {
|
|
27
|
+
p as T,
|
|
28
|
+
T as a
|
|
29
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsxs as l, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { c as a } from "./clsx-AexbMWKp.js";
|
|
3
|
+
import { Tooltip as e, OverlayArrow as p, TooltipTrigger as n } from "react-aria-components";
|
|
4
|
+
import '../assets/Tooltip.css';const c = "_tooltip_1nthz_1", T = "_arrow_1nthz_18", s = {
|
|
5
|
+
tooltip: c,
|
|
6
|
+
arrow: T
|
|
7
|
+
};
|
|
8
|
+
function w({ children: r, className: t, ...i }) {
|
|
9
|
+
return /* @__PURE__ */ l(
|
|
10
|
+
e,
|
|
11
|
+
{
|
|
12
|
+
className: a(s.tooltip, t),
|
|
13
|
+
...i,
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ o(p, { 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
|
+
r
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
function _({
|
|
30
|
+
children: r,
|
|
31
|
+
delay: t = 0,
|
|
32
|
+
...i
|
|
33
|
+
}) {
|
|
34
|
+
return /* @__PURE__ */ o(
|
|
35
|
+
n,
|
|
36
|
+
{
|
|
37
|
+
delay: t,
|
|
38
|
+
...i,
|
|
39
|
+
children: r
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
w as T,
|
|
45
|
+
_ as a
|
|
46
|
+
};
|