@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,24 +1,26 @@
|
|
|
1
1
|
import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
2
|
+
import { SelectStateContext as m, Button as _, TagList as A, Select as V, SelectValue as x } from "react-aria-components";
|
|
3
|
+
import { FocusScope as C } from "@react-aria/focus";
|
|
4
|
+
import { a as T, L as N } from "./Label-D6WuwdAj.js";
|
|
5
|
+
import { a as y, c as h } from "./clsx-AexbMWKp.js";
|
|
6
|
+
import { T as B } from "./Text-TWzJxnto.js";
|
|
7
|
+
import { F as b } from "./FieldError-C0HRIcAx.js";
|
|
8
|
+
import f, { useContext as p } from "react";
|
|
9
|
+
import { C as L } from "./Checkbox-ClhO-AzB.js";
|
|
10
|
+
import { u } from "./useLocalizedStringFormatter-ZgRJmvHC.js";
|
|
11
|
+
import { useFocusManager as M } from "react-aria";
|
|
12
|
+
import { X as F } from "./x-BXShoIAM.js";
|
|
13
|
+
import { L as I } from "./ListBox-D4tO_OrO.js";
|
|
14
|
+
import { P as G } from "./Popover-BAdqdN6C.js";
|
|
15
|
+
import { a as j, T as k } from "./Tag-Ca8wKXOy.js";
|
|
16
|
+
import { C as R } from "./chevron-down-DgT-uSF9.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" }, g = {
|
|
18
|
+
en: $,
|
|
19
|
+
sv: w
|
|
20
|
+
}, D = "_select_17bb3_1", z = "_triggerContainer_17bb3_7", E = "_trigger_17bb3_7", K = "_medium_17bb3_28", P = "_selectValue_17bb3_71", W = "_placeholder_17bb3_81", X = "_selectValueTag_17bb3_95", q = "_clearButton_17bb3_109", H = "_truncate_17bb3_121", J = "_popover_17bb3_158", O = "_selectAll_17bb3_184", Q = "_tagGroup_17bb3_247", a = {
|
|
21
|
+
select: D,
|
|
22
|
+
triggerContainer: z,
|
|
23
|
+
trigger: E,
|
|
22
24
|
medium: K,
|
|
23
25
|
selectValue: P,
|
|
24
26
|
placeholder: W,
|
|
@@ -29,11 +31,11 @@ import '../assets/Select.css';const w = { clearAll: "Clear all", selectAll: "Sel
|
|
|
29
31
|
selectAll: O,
|
|
30
32
|
tagGroup: Q
|
|
31
33
|
}, U = () => {
|
|
32
|
-
const t =
|
|
34
|
+
const t = f.useContext(m), l = u(g), s = () => t?.setValue(
|
|
33
35
|
t?.selectionManager.isSelectAll ? null : Array.from(t.collection.getKeys())
|
|
34
36
|
);
|
|
35
37
|
return /* @__PURE__ */ e(
|
|
36
|
-
|
|
38
|
+
L,
|
|
37
39
|
{
|
|
38
40
|
className: a.selectAll,
|
|
39
41
|
isIndeterminate: !t?.selectionManager.isSelectAll && !t?.selectionManager.isEmpty,
|
|
@@ -47,7 +49,7 @@ import '../assets/Select.css';const w = { clearAll: "Clear all", selectAll: "Sel
|
|
|
47
49
|
selectedItems: l,
|
|
48
50
|
selectedText: s
|
|
49
51
|
}) => {
|
|
50
|
-
const c = u(
|
|
52
|
+
const c = u(g), n = () => l.length === 1 ? s : `${l.length} ${c.format("selected")}`;
|
|
51
53
|
return /* @__PURE__ */ d(
|
|
52
54
|
"div",
|
|
53
55
|
{
|
|
@@ -62,11 +64,11 @@ import '../assets/Select.css';const w = { clearAll: "Clear all", selectAll: "Sel
|
|
|
62
64
|
}, Z = ({
|
|
63
65
|
isDisabled: t
|
|
64
66
|
}) => {
|
|
65
|
-
const l =
|
|
67
|
+
const l = f.useContext(m), s = u(g), c = M(), n = () => {
|
|
66
68
|
c?.focusFirst(), l?.setValue(null);
|
|
67
69
|
};
|
|
68
70
|
return /* @__PURE__ */ e(
|
|
69
|
-
|
|
71
|
+
_,
|
|
70
72
|
{
|
|
71
73
|
"aria-label": s.format("clearAll"),
|
|
72
74
|
className: a.clearButton,
|
|
@@ -74,7 +76,7 @@ import '../assets/Select.css';const w = { clearAll: "Clear all", selectAll: "Sel
|
|
|
74
76
|
slot: null,
|
|
75
77
|
isDisabled: t,
|
|
76
78
|
children: /* @__PURE__ */ e(
|
|
77
|
-
|
|
79
|
+
F,
|
|
78
80
|
{
|
|
79
81
|
width: 20,
|
|
80
82
|
height: 20
|
|
@@ -86,18 +88,18 @@ import '../assets/Select.css';const w = { clearAll: "Clear all", selectAll: "Sel
|
|
|
86
88
|
showTags: t,
|
|
87
89
|
isDisabled: l
|
|
88
90
|
}) => {
|
|
89
|
-
const s = u(
|
|
91
|
+
const s = u(g), c = p(m), n = (r) => {
|
|
90
92
|
c?.selectionManager.toggleSelection(Array.from(r)[0]);
|
|
91
93
|
};
|
|
92
94
|
return !c?.selectedItems.length || !t ? null : /* @__PURE__ */ e(
|
|
93
|
-
|
|
95
|
+
j,
|
|
94
96
|
{
|
|
95
97
|
"aria-label": s.format("selectedItems"),
|
|
96
98
|
className: a.tagGroup,
|
|
97
99
|
onRemove: n,
|
|
98
100
|
selectionBehavior: "toggle",
|
|
99
101
|
children: /* @__PURE__ */ e(A, { items: c.selectedItems, children: (r) => /* @__PURE__ */ e(
|
|
100
|
-
|
|
102
|
+
k,
|
|
101
103
|
{
|
|
102
104
|
dismissable: !0,
|
|
103
105
|
id: r.key,
|
|
@@ -112,9 +114,9 @@ import '../assets/Select.css';const w = { clearAll: "Clear all", selectAll: "Sel
|
|
|
112
114
|
}, te = ({ size: t }) => {
|
|
113
115
|
const l = p(m);
|
|
114
116
|
return /* @__PURE__ */ e(
|
|
115
|
-
|
|
117
|
+
_,
|
|
116
118
|
{
|
|
117
|
-
className:
|
|
119
|
+
className: y(
|
|
118
120
|
{
|
|
119
121
|
[a.medium]: t === "medium"
|
|
120
122
|
},
|
|
@@ -126,45 +128,45 @@ import '../assets/Select.css';const w = { clearAll: "Clear all", selectAll: "Sel
|
|
|
126
128
|
{
|
|
127
129
|
"aria-hidden": "true",
|
|
128
130
|
style: { display: "flex" },
|
|
129
|
-
children: /* @__PURE__ */ e(
|
|
131
|
+
children: /* @__PURE__ */ e(R, { size: 20 })
|
|
130
132
|
}
|
|
131
133
|
)
|
|
132
134
|
}
|
|
133
135
|
);
|
|
134
136
|
};
|
|
135
|
-
function
|
|
137
|
+
function pe({
|
|
136
138
|
children: t,
|
|
137
139
|
description: l,
|
|
138
140
|
errorMessage: s,
|
|
139
141
|
errorPosition: c = "top",
|
|
140
142
|
items: n,
|
|
141
143
|
label: r,
|
|
142
|
-
popover:
|
|
143
|
-
size:
|
|
144
|
+
popover: S,
|
|
145
|
+
size: v = "large",
|
|
144
146
|
...o
|
|
145
147
|
}) {
|
|
146
|
-
return /* @__PURE__ */ e(
|
|
148
|
+
return /* @__PURE__ */ e(C, { children: /* @__PURE__ */ d(
|
|
147
149
|
V,
|
|
148
150
|
{
|
|
149
151
|
...o,
|
|
150
|
-
className:
|
|
152
|
+
className: h(o.className, a.select),
|
|
151
153
|
children: [
|
|
152
|
-
/* @__PURE__ */ e(T, { popover:
|
|
154
|
+
/* @__PURE__ */ e(T, { popover: S, children: r && /* @__PURE__ */ e(N, { "data-disabled": o.isDisabled || void 0, children: r }) }),
|
|
153
155
|
l && /* @__PURE__ */ e(B, { slot: "description", children: l }),
|
|
154
|
-
c === "top" && /* @__PURE__ */ e(
|
|
156
|
+
c === "top" && /* @__PURE__ */ e(b, { children: s }),
|
|
155
157
|
/* @__PURE__ */ d(
|
|
156
158
|
"div",
|
|
157
159
|
{
|
|
158
160
|
className: a.triggerContainer,
|
|
159
161
|
"data-disabled": o.isDisabled || void 0,
|
|
160
162
|
children: [
|
|
161
|
-
/* @__PURE__ */ e(te, { size:
|
|
163
|
+
/* @__PURE__ */ e(te, { size: v }),
|
|
162
164
|
/* @__PURE__ */ e(
|
|
163
|
-
|
|
165
|
+
x,
|
|
164
166
|
{
|
|
165
167
|
className: a.selectValue,
|
|
166
168
|
"data-disabled": o.isDisabled || void 0,
|
|
167
|
-
children: (i) => i.isPlaceholder || o.selectionMode !== "multiple" ? /* @__PURE__ */ e("div", { className:
|
|
169
|
+
children: (i) => i.isPlaceholder || o.selectionMode !== "multiple" ? /* @__PURE__ */ e("div", { className: h(a.placeholder), children: /* @__PURE__ */ e("span", { className: h(a.truncate), children: i.selectedText || i.defaultChildren }) }) : /* @__PURE__ */ e(
|
|
168
170
|
Y,
|
|
169
171
|
{
|
|
170
172
|
...o,
|
|
@@ -176,9 +178,9 @@ function he({
|
|
|
176
178
|
]
|
|
177
179
|
}
|
|
178
180
|
),
|
|
179
|
-
c === "bottom" && /* @__PURE__ */ e(
|
|
181
|
+
c === "bottom" && /* @__PURE__ */ e(b, { children: s }),
|
|
180
182
|
/* @__PURE__ */ d(
|
|
181
|
-
|
|
183
|
+
G,
|
|
182
184
|
{
|
|
183
185
|
className: a.popover,
|
|
184
186
|
offset: 0,
|
|
@@ -186,7 +188,7 @@ function he({
|
|
|
186
188
|
children: [
|
|
187
189
|
o.isSelectableAll && /* @__PURE__ */ e(U, {}),
|
|
188
190
|
/* @__PURE__ */ e(
|
|
189
|
-
|
|
191
|
+
I,
|
|
190
192
|
{
|
|
191
193
|
escapeKeyBehavior: "none",
|
|
192
194
|
items: n,
|
|
@@ -202,5 +204,5 @@ function he({
|
|
|
202
204
|
) });
|
|
203
205
|
}
|
|
204
206
|
export {
|
|
205
|
-
|
|
207
|
+
pe as S
|
|
206
208
|
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { jsx as t, jsxs as r, Fragment as i } from "react/jsx-runtime";
|
|
2
|
+
import { Menu as _, MenuItem as l, Popover as d, MenuSection as k, Separator as M } from "react-aria-components";
|
|
3
|
+
import { c as m } from "./clsx-AexbMWKp.js";
|
|
4
|
+
import { C as h } from "./check-BxlvVsvD.js";
|
|
5
|
+
import { C as S } from "./chevron-right-GpyqdYK4.js";
|
|
6
|
+
import '../assets/Separator.css';const f = "_menu_1ku97_1", p = "_menuSection_1ku97_17", v = "_medium_1ku97_29", C = "_menuItem_1ku97_35", N = "_mainContent_1ku97_105", I = "_checkMark_1ku97_116", x = "_separator_1ku97_126", P = "_menuPopover_1ku97_149", o = {
|
|
7
|
+
menu: f,
|
|
8
|
+
menuSection: p,
|
|
9
|
+
medium: v,
|
|
10
|
+
menuItem: C,
|
|
11
|
+
mainContent: N,
|
|
12
|
+
checkMark: I,
|
|
13
|
+
separator: x,
|
|
14
|
+
menuPopover: P
|
|
15
|
+
}, z = ({
|
|
16
|
+
className: e,
|
|
17
|
+
size: n = "large",
|
|
18
|
+
...a
|
|
19
|
+
}) => /* @__PURE__ */ t(
|
|
20
|
+
_,
|
|
21
|
+
{
|
|
22
|
+
className: m(e, o.menu, n === "medium" && o.medium),
|
|
23
|
+
...a
|
|
24
|
+
}
|
|
25
|
+
), V = (e) => /* @__PURE__ */ t(
|
|
26
|
+
l,
|
|
27
|
+
{
|
|
28
|
+
...e,
|
|
29
|
+
textValue: e.textValue || (typeof e.children == "string" ? e.children : void 0),
|
|
30
|
+
className: m(o.menuItem, e.className),
|
|
31
|
+
children: (n) => {
|
|
32
|
+
const { children: a } = e, { selectionMode: s, isSelected: c, hasSubmenu: u } = n;
|
|
33
|
+
return /* @__PURE__ */ r(i, { children: [
|
|
34
|
+
s !== "none" && /* @__PURE__ */ t(
|
|
35
|
+
h,
|
|
36
|
+
{
|
|
37
|
+
size: 16,
|
|
38
|
+
className: o.checkMark,
|
|
39
|
+
"data-selected": c || void 0
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
/* @__PURE__ */ t("div", { className: o.mainContent, children: typeof a == "function" ? a(n) : a }),
|
|
43
|
+
u && /* @__PURE__ */ t(S, { size: 20 })
|
|
44
|
+
] });
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
), F = ({ className: e, ...n }) => /* @__PURE__ */ t(
|
|
48
|
+
d,
|
|
49
|
+
{
|
|
50
|
+
className: m(e, o.menuPopover),
|
|
51
|
+
offset: 4,
|
|
52
|
+
...n
|
|
53
|
+
}
|
|
54
|
+
), R = ({
|
|
55
|
+
className: e,
|
|
56
|
+
...n
|
|
57
|
+
}) => /* @__PURE__ */ t(
|
|
58
|
+
k,
|
|
59
|
+
{
|
|
60
|
+
className: m(e, o.menuSection),
|
|
61
|
+
...n
|
|
62
|
+
}
|
|
63
|
+
), q = ({ className: e, ...n }) => /* @__PURE__ */ t(
|
|
64
|
+
M,
|
|
65
|
+
{
|
|
66
|
+
className: m(e, o.separator),
|
|
67
|
+
...n
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as f, jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { c as r } from "./clsx-
|
|
2
|
+
import { c as r } from "./clsx-AexbMWKp.js";
|
|
3
3
|
import '../assets/Skeleton.css';const w = "_skeleton_wia11_11", p = "_circle_wia11_25", u = "_wave_wia11_30", v = "_onLayer01_wia11_54", d = "_form_wia11_58", k = "_formLabel_wia11_64", L = "_formDescription_wia11_70", y = "_formInput_wia11_76", b = "_medium_wia11_81", o = {
|
|
4
4
|
skeleton: w,
|
|
5
5
|
circle: p,
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { c as n } from "./clsx-AexbMWKp.js";
|
|
3
|
+
import { VisuallyHidden as d } from "react-aria";
|
|
4
|
+
import { u as l } from "./useLocalizedStringFormatter-ZgRJmvHC.js";
|
|
5
|
+
import { c as _ } from "./createLucideIcon-D4r5Phnh.js";
|
|
6
|
+
import '../assets/Spinner.css';const m = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], p = _("loader-circle", m), g = "_container_vf3ec_1", f = "_spinner_vf3ec_5", u = "_large_vf3ec_18", v = "_dark_vf3ec_23", e = {
|
|
7
|
+
container: g,
|
|
8
|
+
spinner: f,
|
|
9
|
+
large: u,
|
|
10
|
+
dark: v
|
|
11
|
+
}, k = { loadingPleaseWait: "Loading, please wait..." }, h = { loadingPleaseWait: "Laddar, vänligen vänta..." }, L = {
|
|
12
|
+
en: k,
|
|
13
|
+
sv: h
|
|
14
|
+
}, N = ({
|
|
15
|
+
small: a,
|
|
16
|
+
isOnColor: s = !1,
|
|
17
|
+
color: t,
|
|
18
|
+
className: o
|
|
19
|
+
}) => {
|
|
20
|
+
const i = l(L);
|
|
21
|
+
return /* @__PURE__ */ c(
|
|
22
|
+
"div",
|
|
23
|
+
{
|
|
24
|
+
className: n(e.container, o),
|
|
25
|
+
role: "status",
|
|
26
|
+
children: [
|
|
27
|
+
/* @__PURE__ */ r(
|
|
28
|
+
p,
|
|
29
|
+
{
|
|
30
|
+
className: n(
|
|
31
|
+
e.spinner,
|
|
32
|
+
!a && e.large,
|
|
33
|
+
s && e.dark
|
|
34
|
+
),
|
|
35
|
+
size: a ? 20 : 96,
|
|
36
|
+
strokeWidth: a ? 2 : 8,
|
|
37
|
+
absoluteStrokeWidth: !0,
|
|
38
|
+
color: t
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
/* @__PURE__ */ r(d, { children: i.format("loadingPleaseWait") })
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
N as S
|
|
48
|
+
};
|
|
@@ -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-BMf7mX0N.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
|
};
|