@midas-ds/components 17.2.6 → 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 +15 -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/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-BclBqFzc.js → Layout-hXzqx4cY.js} +2 -2
- 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,128 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsxs as u, jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { s as y } from "./TextField.module-BDIbEV87.js";
|
|
4
|
+
import { B as C } from "./Button-BhIvfqOc.js";
|
|
5
|
+
import { C as F } from "./ClearButton-DBr9Zfwq.js";
|
|
6
|
+
import { c as l } from "./clsx-AexbMWKp.js";
|
|
7
|
+
import * as N from "react";
|
|
8
|
+
import { useSearchFieldState as x } from "react-stately";
|
|
9
|
+
import { useSearchField as j } from "react-aria";
|
|
10
|
+
import { F as f } from "./FieldError-krpMBtie.js";
|
|
11
|
+
import { c as p } from "./createLucideIcon-CP-mMPfa.js";
|
|
12
|
+
import { u as B } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
13
|
+
import '../assets/SearchField.css';const D = [
|
|
14
|
+
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
15
|
+
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
16
|
+
], E = p("search", D), k = "_container_19q7q_1", P = "_inner_19q7q_10", T = "_inputContainer_19q7q_15", w = "_medium_19q7q_21", I = "_icon_19q7q_26", K = "_clear_19q7q_39", L = "_input_19q7q_15", n = {
|
|
17
|
+
container: k,
|
|
18
|
+
inner: P,
|
|
19
|
+
inputContainer: T,
|
|
20
|
+
medium: w,
|
|
21
|
+
icon: I,
|
|
22
|
+
clear: K,
|
|
23
|
+
input: L
|
|
24
|
+
}, M = { search: "Search" }, R = { search: "Sök" }, V = {
|
|
25
|
+
en: M,
|
|
26
|
+
sv: R
|
|
27
|
+
};
|
|
28
|
+
function O(r) {
|
|
29
|
+
return !!r?.length;
|
|
30
|
+
}
|
|
31
|
+
const Z = ({
|
|
32
|
+
errorPosition: r = "top",
|
|
33
|
+
size: i = "large",
|
|
34
|
+
...e
|
|
35
|
+
}) => {
|
|
36
|
+
const { value: t, setValue: m } = x(e), b = B(V), d = N.useRef(null), { inputProps: o, isInvalid: c, validationErrors: h, clearButtonProps: q } = j(
|
|
37
|
+
{
|
|
38
|
+
...e,
|
|
39
|
+
label: e.placeholder,
|
|
40
|
+
validationBehavior: "native"
|
|
41
|
+
},
|
|
42
|
+
{ value: t, setValue: m },
|
|
43
|
+
d
|
|
44
|
+
), v = ({ target: s }) => m(s.value), S = () => m(""), _ = () => {
|
|
45
|
+
if (e.validate && O(e.validate(t)) || c || !t) {
|
|
46
|
+
d.current?.focus();
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
e.onSubmit && e.onSubmit(t);
|
|
50
|
+
}, g = ({ key: s }) => {
|
|
51
|
+
s === "Enter" && _();
|
|
52
|
+
};
|
|
53
|
+
return /* @__PURE__ */ u(
|
|
54
|
+
"div",
|
|
55
|
+
{
|
|
56
|
+
className: l(n.container, e.className),
|
|
57
|
+
"data-disabled": o.disabled,
|
|
58
|
+
children: [
|
|
59
|
+
r === "top" && /* @__PURE__ */ a(f, { isInvalid: c, children: e.errorMessage ?? h.join(" ") }),
|
|
60
|
+
/* @__PURE__ */ u("div", { className: n.inner, children: [
|
|
61
|
+
/* @__PURE__ */ u(
|
|
62
|
+
"div",
|
|
63
|
+
{
|
|
64
|
+
className: l(n.inputContainer, {
|
|
65
|
+
[n.medium]: i === "medium"
|
|
66
|
+
}),
|
|
67
|
+
children: [
|
|
68
|
+
/* @__PURE__ */ a(
|
|
69
|
+
E,
|
|
70
|
+
{
|
|
71
|
+
size: 20,
|
|
72
|
+
className: n.icon
|
|
73
|
+
}
|
|
74
|
+
),
|
|
75
|
+
/* @__PURE__ */ a(
|
|
76
|
+
"input",
|
|
77
|
+
{
|
|
78
|
+
...o,
|
|
79
|
+
...o.disabled && { "data-disabled": !0 },
|
|
80
|
+
className: l(
|
|
81
|
+
y.input,
|
|
82
|
+
n.input,
|
|
83
|
+
o.className,
|
|
84
|
+
{ [n.medium]: i === "medium" }
|
|
85
|
+
),
|
|
86
|
+
ref: d,
|
|
87
|
+
onChange: v,
|
|
88
|
+
value: t,
|
|
89
|
+
"aria-invalid": c,
|
|
90
|
+
onKeyDown: g,
|
|
91
|
+
"aria-label": e.placeholder,
|
|
92
|
+
"aria-labelledby": ""
|
|
93
|
+
}
|
|
94
|
+
),
|
|
95
|
+
t.length > 0 && /* @__PURE__ */ a(
|
|
96
|
+
F,
|
|
97
|
+
{
|
|
98
|
+
...q,
|
|
99
|
+
onPress: S,
|
|
100
|
+
size: i,
|
|
101
|
+
className: l(n.clear, {
|
|
102
|
+
[n.medium]: i === "medium"
|
|
103
|
+
})
|
|
104
|
+
}
|
|
105
|
+
)
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
),
|
|
109
|
+
/* @__PURE__ */ a(
|
|
110
|
+
C,
|
|
111
|
+
{
|
|
112
|
+
size: i,
|
|
113
|
+
isDisabled: e.isDisabled,
|
|
114
|
+
excludeFromTabOrder: !0,
|
|
115
|
+
onPress: _,
|
|
116
|
+
type: "button",
|
|
117
|
+
children: e.buttonText ? e.buttonText : b.format("search")
|
|
118
|
+
}
|
|
119
|
+
)
|
|
120
|
+
] }),
|
|
121
|
+
r === "bottom" && /* @__PURE__ */ a(f, { isInvalid: c, children: e.errorMessage ?? h.join(" ") })
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
);
|
|
125
|
+
};
|
|
126
|
+
export {
|
|
127
|
+
Z as S
|
|
128
|
+
};
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { jsx as e, Fragment as V, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { SelectStateContext as d, SelectValue as g, Button as _, TagList as A, Select as C } from "react-aria-components";
|
|
3
|
+
import { FocusScope as N } from "@react-aria/focus";
|
|
4
|
+
import { a as x, L as b } from "./Label-s4J9sYdy.js";
|
|
5
|
+
import { a as T, c as y } from "./clsx-AexbMWKp.js";
|
|
6
|
+
import { T as B } from "./Text-D0r_W4lH.js";
|
|
7
|
+
import { F as h } from "./FieldError-krpMBtie.js";
|
|
8
|
+
import p, { useContext as f } from "react";
|
|
9
|
+
import { C as M } from "./Checkbox-sAkQe7Q9.js";
|
|
10
|
+
import { u as m } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
11
|
+
import { useFocusManager as F } from "react-aria";
|
|
12
|
+
import { X as L } from "./x-B9bYxG31.js";
|
|
13
|
+
import { L as I } from "./ListBox-CDlOUvzJ.js";
|
|
14
|
+
import { P as G } from "./Popover-CaP4LFhg.js";
|
|
15
|
+
import { a as j, T as k } from "./TagGroup-BscTXQ_E.js";
|
|
16
|
+
import { C as R } from "./chevron-down-BBFYYzZq.js";
|
|
17
|
+
import '../assets/Select.css';const $ = { clearAll: "Clear all", selectAll: "Select all", selectedItems: "Selected items", selected: "selected" }, w = { clearAll: "Rensa alla", selectAll: "Välj alla", selectedItems: "Valda objekt", selected: "valda" }, u = {
|
|
18
|
+
en: $,
|
|
19
|
+
sv: w
|
|
20
|
+
}, P = "_select_1h0s2_1", z = "_triggerContainer_1h0s2_7", D = "_trigger_1h0s2_7", E = "_medium_1h0s2_29", K = "_icon_1h0s2_66", W = "_selectValue_1h0s2_72", X = "_placeholder_1h0s2_78", q = "_multiSelectValue_1h0s2_88", H = "_selectValueTag_1h0s2_112", J = "_clearButton_1h0s2_126", O = "_truncate_1h0s2_138", Q = "_popover_1h0s2_175", U = "_selectAll_1h0s2_201", Y = "_tagGroup_1h0s2_269", s = {
|
|
21
|
+
select: P,
|
|
22
|
+
triggerContainer: z,
|
|
23
|
+
trigger: D,
|
|
24
|
+
medium: E,
|
|
25
|
+
icon: K,
|
|
26
|
+
selectValue: W,
|
|
27
|
+
placeholder: X,
|
|
28
|
+
multiSelectValue: q,
|
|
29
|
+
selectValueTag: H,
|
|
30
|
+
clearButton: J,
|
|
31
|
+
truncate: O,
|
|
32
|
+
popover: Q,
|
|
33
|
+
selectAll: U,
|
|
34
|
+
tagGroup: Y
|
|
35
|
+
}, Z = () => {
|
|
36
|
+
const t = p.useContext(d), c = m(u), r = () => t?.setValue(
|
|
37
|
+
t?.selectionManager.isSelectAll ? null : Array.from(t.collection.getKeys())
|
|
38
|
+
);
|
|
39
|
+
return /* @__PURE__ */ e(
|
|
40
|
+
M,
|
|
41
|
+
{
|
|
42
|
+
className: s.selectAll,
|
|
43
|
+
isIndeterminate: !t?.selectionManager.isSelectAll && !t?.selectionManager.isEmpty,
|
|
44
|
+
isSelected: t?.selectionManager.isSelectAll,
|
|
45
|
+
onChange: r,
|
|
46
|
+
children: c.format("selectAll")
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}, ee = ({
|
|
50
|
+
isDisabled: t
|
|
51
|
+
}) => {
|
|
52
|
+
const c = m(u), r = (l, o) => l.length === 1 ? o : `${l.length} ${c.format("selected")}`;
|
|
53
|
+
return /* @__PURE__ */ e(
|
|
54
|
+
g,
|
|
55
|
+
{
|
|
56
|
+
className: s.multiSelectValue,
|
|
57
|
+
"data-disabled": t || void 0,
|
|
58
|
+
children: ({ isPlaceholder: l, selectedItems: o, selectedText: a }) => l ? /* @__PURE__ */ e(V, {}) : /* @__PURE__ */ i(
|
|
59
|
+
"div",
|
|
60
|
+
{
|
|
61
|
+
className: s.selectValueTag,
|
|
62
|
+
"data-disabled": t || void 0,
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ e("span", { className: s.truncate, children: r(o, a) }),
|
|
65
|
+
/* @__PURE__ */ e(te, { isDisabled: t })
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
}, te = ({
|
|
72
|
+
isDisabled: t
|
|
73
|
+
}) => {
|
|
74
|
+
const c = p.useContext(d), r = m(u), l = F(), o = () => {
|
|
75
|
+
l?.focusFirst(), c?.setValue(null);
|
|
76
|
+
};
|
|
77
|
+
return /* @__PURE__ */ e(
|
|
78
|
+
_,
|
|
79
|
+
{
|
|
80
|
+
"aria-label": r.format("clearAll"),
|
|
81
|
+
className: s.clearButton,
|
|
82
|
+
onPress: o,
|
|
83
|
+
slot: null,
|
|
84
|
+
isDisabled: t,
|
|
85
|
+
children: /* @__PURE__ */ e(
|
|
86
|
+
L,
|
|
87
|
+
{
|
|
88
|
+
width: 20,
|
|
89
|
+
height: 20
|
|
90
|
+
}
|
|
91
|
+
)
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
}, le = ({
|
|
95
|
+
showTags: t,
|
|
96
|
+
isDisabled: c
|
|
97
|
+
}) => {
|
|
98
|
+
const r = m(u), l = f(d), o = (a) => {
|
|
99
|
+
l?.selectionManager.toggleSelection(Array.from(a)[0]);
|
|
100
|
+
};
|
|
101
|
+
return !l?.selectedItems.length || !t ? null : /* @__PURE__ */ e(
|
|
102
|
+
j,
|
|
103
|
+
{
|
|
104
|
+
"aria-label": r.format("selectedItems"),
|
|
105
|
+
className: s.tagGroup,
|
|
106
|
+
onRemove: o,
|
|
107
|
+
selectionBehavior: "toggle",
|
|
108
|
+
children: /* @__PURE__ */ e(A, { items: l.selectedItems, children: (a) => /* @__PURE__ */ e(
|
|
109
|
+
k,
|
|
110
|
+
{
|
|
111
|
+
isDismissable: !0,
|
|
112
|
+
id: a.key,
|
|
113
|
+
isDisabled: c,
|
|
114
|
+
textValue: a.textValue,
|
|
115
|
+
children: a.textValue
|
|
116
|
+
},
|
|
117
|
+
a.key
|
|
118
|
+
) })
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
}, se = ({
|
|
122
|
+
isDisabled: t,
|
|
123
|
+
selectionMode: c,
|
|
124
|
+
size: r
|
|
125
|
+
}) => {
|
|
126
|
+
const l = f(d);
|
|
127
|
+
return /* @__PURE__ */ i(
|
|
128
|
+
_,
|
|
129
|
+
{
|
|
130
|
+
className: T(
|
|
131
|
+
{
|
|
132
|
+
[s.medium]: r === "medium"
|
|
133
|
+
},
|
|
134
|
+
s.trigger
|
|
135
|
+
),
|
|
136
|
+
"data-invalid": !!l?.displayValidation.isInvalid || void 0,
|
|
137
|
+
children: [
|
|
138
|
+
/* @__PURE__ */ e(
|
|
139
|
+
g,
|
|
140
|
+
{
|
|
141
|
+
className: s.selectValue,
|
|
142
|
+
"data-disabled": t || void 0,
|
|
143
|
+
children: ({ selectedText: o, defaultChildren: a }) => /* @__PURE__ */ e("div", { className: s.placeholder, children: /* @__PURE__ */ e("span", { className: s.truncate, children: c === "multiple" && o ? null : o || a }) })
|
|
144
|
+
}
|
|
145
|
+
),
|
|
146
|
+
/* @__PURE__ */ e(
|
|
147
|
+
"span",
|
|
148
|
+
{
|
|
149
|
+
"aria-hidden": "true",
|
|
150
|
+
className: s.icon,
|
|
151
|
+
children: /* @__PURE__ */ e(R, { size: 20 })
|
|
152
|
+
}
|
|
153
|
+
)
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
);
|
|
157
|
+
};
|
|
158
|
+
function Ve({
|
|
159
|
+
children: t,
|
|
160
|
+
description: c,
|
|
161
|
+
errorMessage: r,
|
|
162
|
+
errorPosition: l = "top",
|
|
163
|
+
items: o,
|
|
164
|
+
label: a,
|
|
165
|
+
popover: S,
|
|
166
|
+
size: v = "large",
|
|
167
|
+
...n
|
|
168
|
+
}) {
|
|
169
|
+
return /* @__PURE__ */ e(N, { children: /* @__PURE__ */ i(
|
|
170
|
+
C,
|
|
171
|
+
{
|
|
172
|
+
...n,
|
|
173
|
+
className: y(n.className, s.select),
|
|
174
|
+
children: [
|
|
175
|
+
/* @__PURE__ */ e(x, { popover: S, children: a && /* @__PURE__ */ e(b, { "data-disabled": n.isDisabled || void 0, children: a }) }),
|
|
176
|
+
c && /* @__PURE__ */ e(B, { slot: "description", children: c }),
|
|
177
|
+
l === "top" && /* @__PURE__ */ e(h, { children: r }),
|
|
178
|
+
/* @__PURE__ */ i(
|
|
179
|
+
"div",
|
|
180
|
+
{
|
|
181
|
+
className: s.triggerContainer,
|
|
182
|
+
"data-disabled": n.isDisabled || void 0,
|
|
183
|
+
children: [
|
|
184
|
+
/* @__PURE__ */ e(
|
|
185
|
+
se,
|
|
186
|
+
{
|
|
187
|
+
size: v,
|
|
188
|
+
...n
|
|
189
|
+
}
|
|
190
|
+
),
|
|
191
|
+
n.selectionMode === "multiple" ? /* @__PURE__ */ e(ee, { ...n }) : null
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
),
|
|
195
|
+
l === "bottom" && /* @__PURE__ */ e(h, { children: r }),
|
|
196
|
+
/* @__PURE__ */ i(
|
|
197
|
+
G,
|
|
198
|
+
{
|
|
199
|
+
className: s.popover,
|
|
200
|
+
offset: 0,
|
|
201
|
+
hideArrow: !0,
|
|
202
|
+
children: [
|
|
203
|
+
n.isSelectableAll && /* @__PURE__ */ e(Z, {}),
|
|
204
|
+
/* @__PURE__ */ e(
|
|
205
|
+
I,
|
|
206
|
+
{
|
|
207
|
+
escapeKeyBehavior: "none",
|
|
208
|
+
items: o,
|
|
209
|
+
children: t
|
|
210
|
+
}
|
|
211
|
+
)
|
|
212
|
+
]
|
|
213
|
+
}
|
|
214
|
+
),
|
|
215
|
+
/* @__PURE__ */ e(le, { ...n })
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
) });
|
|
219
|
+
}
|
|
220
|
+
export {
|
|
221
|
+
Ve as S
|
|
222
|
+
};
|
|
@@ -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
|
};
|