@midas-ds/components 16.0.0 → 16.2.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 +12 -0
- package/accordion/index.js +1 -1
- package/assets/AccordionItem.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/ComboBox.css +1 -1
- package/assets/Dialog.css +1 -1
- package/assets/Layout.css +1 -1
- package/assets/ListBox.css +1 -1
- package/assets/Popover.css +1 -1
- package/assets/ProgressBar.css +1 -1
- package/assets/Radio.css +1 -1
- package/assets/Select.css +1 -1
- package/assets/Select2.css +1 -1
- package/assets/Table.css +1 -1
- package/assets/Toast.css +1 -1
- package/assets/Tooltip.css +1 -1
- package/assets/default.css +1 -1
- package/checkbox/index.js +2 -2
- package/chunks/AccordionItem-BUUDZ7l6.js +128 -0
- package/chunks/{Checkbox-ClhO-AzB.js → Checkbox-CP6Nv9yx.js} +25 -25
- package/chunks/{CheckboxGroup-dofHjXkU.js → CheckboxGroup-C5kaqBcn.js} +2 -2
- package/chunks/ComboBox-N97lv5kN.js +108 -0
- package/chunks/{DateField-ltU-Jvra.js → DateField-DeuLPe1Y.js} +1 -1
- package/chunks/{DateRangePicker-CdoVIV-F.js → DateRangePicker-BqjLArNi.js} +1 -1
- package/chunks/Dialog-DC0cGNj5.js +66 -0
- package/chunks/{Label-DqmNWnmm.js → Label-Dup4lWaR.js} +1 -1
- package/chunks/{Layout-DtwVUZus.js → Layout-BFZSROTl.js} +95 -95
- package/chunks/{ListBox-D4tO_OrO.js → ListBox-D5BBeZWL.js} +12 -12
- package/chunks/{ListBoxLoadMoreItem-D9X8YnwD.js → ListBoxLoadMoreItem-CB67meAb.js} +1 -1
- package/chunks/{ListBoxSection-DKHba2X0.js → ListBoxSection-MZB_5DdD.js} +1 -1
- package/chunks/{Popover-D9tAN-g7.js → Popover-BcEtFiU1.js} +8 -8
- package/chunks/ProgressBar-CbwvcHvk.js +53 -0
- package/chunks/Radio-Dro99zCs.js +43 -0
- package/chunks/{Select-Bcu1yvbR.js → Select-D-LtFSZX.js} +42 -42
- package/chunks/{Select-DAlreRs2.js → Select-nL9iJMlf.js} +117 -117
- package/chunks/{Table-B1rlSIhS.js → Table-CgBjwlIi.js} +47 -47
- package/chunks/{TextArea-CEiOylOx.js → TextArea-CRvbqqVZ.js} +1 -1
- package/chunks/{Toast-DgQ6BTmK.js → Toast-DTwUGSJ8.js} +39 -39
- package/chunks/{Tooltip-uNMG_UU-.js → Tooltip-m032jGgF.js} +5 -5
- package/combobox/index.js +1 -1
- package/date-field/index.js +1 -1
- package/date-picker/index.js +1 -1
- package/index.js +21 -21
- package/label/index.js +1 -1
- package/layout/index.js +1 -1
- package/legacy-select/index.js +1 -1
- package/list-box/index.js +3 -3
- 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/select/index.js +1 -1
- package/table/index.js +1 -1
- package/textfield/index.js +1 -1
- package/toast/index.js +1 -1
- package/tooltip/index.js +1 -1
- package/chunks/AccordionItem-O3_wicV2.js +0 -128
- package/chunks/ComboBox-XQqP_jga.js +0 -108
- package/chunks/Dialog-x-HLOQFU.js +0 -66
- package/chunks/ProgressBar-DXBCKRe_.js +0 -53
- package/chunks/Radio-C1AFopLt.js +0 -43
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as i, Fragment as P } from "react/jsx-runtime";
|
|
2
2
|
import { G as T } from "./GridItem-5t1Z14sM.js";
|
|
3
3
|
import * as v from "react";
|
|
4
4
|
import { c as u } from "./clsx-AexbMWKp.js";
|
|
5
|
-
import { Link as
|
|
5
|
+
import { Link as q, RouterProvider as B } from "react-aria-components";
|
|
6
6
|
import { B as I } from "./Button-wBgWrXj3.js";
|
|
7
|
-
import { a as H, T as G } from "./Tooltip-
|
|
7
|
+
import { a as H, T as G } from "./Tooltip-m032jGgF.js";
|
|
8
8
|
import { a as L, B as y } from "./BadgeContainer-CKVsfTlF.js";
|
|
9
9
|
import { c as M } from "./createLucideIcon-D4r5Phnh.js";
|
|
10
|
-
import { u as
|
|
10
|
+
import { u as C } from "./useLocalizedStringFormatter-ZgRJmvHC.js";
|
|
11
11
|
import { variables as W } from "@midas-ds/theme";
|
|
12
12
|
import { L as g } from "./Logo-InDSslpO.js";
|
|
13
|
-
import { X as
|
|
14
|
-
import '../assets/Layout.css';const
|
|
13
|
+
import { X as j } from "./x-BXShoIAM.js";
|
|
14
|
+
import '../assets/Layout.css';const D = [
|
|
15
15
|
["path", { d: "M4 12h16", key: "1lakjw" }],
|
|
16
16
|
["path", { d: "M4 18h16", key: "19g7jn" }],
|
|
17
17
|
["path", { d: "M4 6h16", key: "1o0s65" }]
|
|
18
|
-
], A = M("menu",
|
|
18
|
+
], A = M("menu", D);
|
|
19
19
|
const R = [
|
|
20
20
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
21
21
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
@@ -25,7 +25,7 @@ const F = [
|
|
|
25
25
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
26
26
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
27
27
|
["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
|
|
28
|
-
], X = M("panel-left-open", F), J = "
|
|
28
|
+
], X = M("panel-left-open", F), J = "_baseLayout_1hkrq_1", K = "_mainContent_1hkrq_10", Q = "_header_1hkrq_15", U = "_headerExternal_1hkrq_26", V = "_headerContent_1hkrq_41", Y = "_logo_1hkrq_60", Z = "_headerItems_1hkrq_69", ee = "_toggleButton_1hkrq_75", ae = "_sidebar_1hkrq_83", te = "_main_1hkrq_10", ne = "_app_1hkrq_116", se = "_sidebarOpened_1hkrq_124", re = "_sidebarHeader_1hkrq_128", ie = "_appName_1hkrq_140", oe = "_collapseButton_1hkrq_147", le = "_sidebarCollapsed_1hkrq_156", de = "_userName_1hkrq_166", ce = "_userTitle_1hkrq_184", me = "_title_1hkrq_196", pe = "_sidebarNav_1hkrq_207", he = "_list_1hkrq_213", _e = "_listGroupTitle_1hkrq_219", ue = "_listItem_1hkrq_226", ke = "_listItemCollapsed_1hkrq_231", be = "_listLink_1hkrq_235", ve = "_listLinkCollapsed_1hkrq_298", Ne = "_active_1hkrq_303", fe = "_backdrop_1hkrq_330", Ce = "_backdropOpened_1hkrq_340", xe = "_skipToContent_1hkrq_358", ge = "_navbar_1hkrq_372", qe = "_navbarList_1hkrq_384", Le = "_navbarItem_1hkrq_406", ye = "_headerContentExternal_1hkrq_457", Ie = "_logoExternalContainer_1hkrq_465", Me = "_logoExternal_1hkrq_465", Ee = "_logoExternalDesktop_1hkrq_477", Te = "_navbarWrapper_1hkrq_486", a = {
|
|
29
29
|
baseLayout: J,
|
|
30
30
|
mainContent: K,
|
|
31
31
|
header: Q,
|
|
@@ -38,26 +38,26 @@ const F = [
|
|
|
38
38
|
main: te,
|
|
39
39
|
app: ne,
|
|
40
40
|
sidebarOpened: se,
|
|
41
|
-
sidebarHeader:
|
|
42
|
-
appName:
|
|
41
|
+
sidebarHeader: re,
|
|
42
|
+
appName: ie,
|
|
43
43
|
collapseButton: oe,
|
|
44
44
|
sidebarCollapsed: le,
|
|
45
45
|
userName: de,
|
|
46
46
|
userTitle: ce,
|
|
47
47
|
title: me,
|
|
48
48
|
sidebarNav: pe,
|
|
49
|
-
list:
|
|
50
|
-
listGroupTitle:
|
|
49
|
+
list: he,
|
|
50
|
+
listGroupTitle: _e,
|
|
51
51
|
listItem: ue,
|
|
52
|
-
listItemCollapsed:
|
|
53
|
-
listLink:
|
|
52
|
+
listItemCollapsed: ke,
|
|
53
|
+
listLink: be,
|
|
54
54
|
listLinkCollapsed: ve,
|
|
55
55
|
active: Ne,
|
|
56
56
|
backdrop: fe,
|
|
57
|
-
backdropOpened:
|
|
58
|
-
skipToContent:
|
|
57
|
+
backdropOpened: Ce,
|
|
58
|
+
skipToContent: xe,
|
|
59
59
|
navbar: ge,
|
|
60
|
-
navbarList:
|
|
60
|
+
navbarList: qe,
|
|
61
61
|
navbarItem: Le,
|
|
62
62
|
headerContentExternal: ye,
|
|
63
63
|
logoExternalContainer: Ie,
|
|
@@ -69,17 +69,17 @@ const F = [
|
|
|
69
69
|
), Se = ({
|
|
70
70
|
items: n,
|
|
71
71
|
title: s,
|
|
72
|
-
user:
|
|
72
|
+
user: r,
|
|
73
73
|
app: t,
|
|
74
74
|
children: o,
|
|
75
75
|
clientSideRouter: c,
|
|
76
76
|
clientSideHref: l,
|
|
77
|
-
headerChildren:
|
|
78
|
-
isCollapsed:
|
|
77
|
+
headerChildren: _,
|
|
78
|
+
isCollapsed: h,
|
|
79
79
|
setIsCollapsed: m,
|
|
80
|
-
isOpened:
|
|
80
|
+
isOpened: k,
|
|
81
81
|
setIsOpened: p,
|
|
82
|
-
variant:
|
|
82
|
+
variant: b,
|
|
83
83
|
id: N
|
|
84
84
|
}) => /* @__PURE__ */ e(
|
|
85
85
|
O.Provider,
|
|
@@ -87,16 +87,16 @@ const F = [
|
|
|
87
87
|
value: {
|
|
88
88
|
items: n,
|
|
89
89
|
title: s,
|
|
90
|
-
user:
|
|
90
|
+
user: r,
|
|
91
91
|
app: t,
|
|
92
|
-
headerChildren:
|
|
93
|
-
isCollapsed:
|
|
92
|
+
headerChildren: _,
|
|
93
|
+
isCollapsed: h,
|
|
94
94
|
setIsCollapsed: m,
|
|
95
|
-
isOpened:
|
|
95
|
+
isOpened: k,
|
|
96
96
|
setIsOpened: p,
|
|
97
97
|
clientSideRouter: c,
|
|
98
98
|
clientSideHref: l,
|
|
99
|
-
variant:
|
|
99
|
+
variant: b,
|
|
100
100
|
id: N
|
|
101
101
|
},
|
|
102
102
|
children: o
|
|
@@ -109,16 +109,16 @@ const F = [
|
|
|
109
109
|
}, w = ({
|
|
110
110
|
title: n,
|
|
111
111
|
href: s,
|
|
112
|
-
icon:
|
|
112
|
+
icon: r,
|
|
113
113
|
active: t,
|
|
114
114
|
hasBadge: o
|
|
115
115
|
}) => {
|
|
116
|
-
const { isCollapsed: c, setIsOpened: l, clientSideHref:
|
|
116
|
+
const { isCollapsed: c, setIsOpened: l, clientSideHref: _ } = f(), h = _ ? _(s) : s, [m, k] = v.useState(!1);
|
|
117
117
|
return v.useEffect(() => {
|
|
118
|
-
typeof window < "u" &&
|
|
119
|
-
}, [t,
|
|
118
|
+
typeof window < "u" && k(t ?? window.location.pathname === h);
|
|
119
|
+
}, [t, h]), c ? /* @__PURE__ */ i(H, { children: [
|
|
120
120
|
/* @__PURE__ */ e(
|
|
121
|
-
|
|
121
|
+
q,
|
|
122
122
|
{
|
|
123
123
|
href: s,
|
|
124
124
|
"aria-label": n,
|
|
@@ -128,9 +128,9 @@ const F = [
|
|
|
128
128
|
m && a.active
|
|
129
129
|
),
|
|
130
130
|
onPress: () => l?.(!1),
|
|
131
|
-
children: /* @__PURE__ */
|
|
131
|
+
children: /* @__PURE__ */ i(L, { children: [
|
|
132
132
|
/* @__PURE__ */ e(
|
|
133
|
-
|
|
133
|
+
r,
|
|
134
134
|
{
|
|
135
135
|
size: 20,
|
|
136
136
|
"aria-label": n
|
|
@@ -141,65 +141,65 @@ const F = [
|
|
|
141
141
|
}
|
|
142
142
|
),
|
|
143
143
|
/* @__PURE__ */ e(G, { placement: "right", children: n })
|
|
144
|
-
] }) : /* @__PURE__ */
|
|
145
|
-
|
|
144
|
+
] }) : /* @__PURE__ */ i(
|
|
145
|
+
q,
|
|
146
146
|
{
|
|
147
147
|
href: s,
|
|
148
148
|
"aria-label": n,
|
|
149
149
|
className: u(a.listLink, m && a.active),
|
|
150
150
|
onPress: () => l?.(!1),
|
|
151
151
|
children: [
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
-
/* @__PURE__ */ e(
|
|
152
|
+
/* @__PURE__ */ i(L, { children: [
|
|
153
|
+
/* @__PURE__ */ e(r, { size: 20 }),
|
|
154
154
|
o && /* @__PURE__ */ e(y, {})
|
|
155
155
|
] }),
|
|
156
156
|
n
|
|
157
157
|
]
|
|
158
158
|
}
|
|
159
159
|
);
|
|
160
|
-
}, ze = { closeMenu: "Close menu", openMenu: "Open menu", maximizeMenu: "Maximize menu", minimizeMenu: "Minimize menu", sidebarMenu: "Sidebar menu", bottomMenu: "Bottom menu", skipToContent: "Skip to main content" }, Be = { closeMenu: "Stäng meny", openMenu: "Öppna meny", maximizeMenu: "Maximera meny", minimizeMenu: "Minimera meny", sidebarMenu: "Sidomeny", bottomMenu: "Bottenmeny", skipToContent: "Hoppa till huvudinnehåll" },
|
|
160
|
+
}, ze = { closeMenu: "Close menu", openMenu: "Open menu", maximizeMenu: "Maximize menu", minimizeMenu: "Minimize menu", sidebarMenu: "Sidebar menu", bottomMenu: "Bottom menu", skipToContent: "Skip to main content" }, Be = { closeMenu: "Stäng meny", openMenu: "Öppna meny", maximizeMenu: "Maximera meny", minimizeMenu: "Minimera meny", sidebarMenu: "Sidomeny", bottomMenu: "Bottenmeny", skipToContent: "Hoppa till huvudinnehåll" }, x = {
|
|
161
161
|
en: ze,
|
|
162
162
|
sv: Be
|
|
163
163
|
}, Oe = () => {
|
|
164
164
|
const {
|
|
165
165
|
items: n,
|
|
166
166
|
app: s,
|
|
167
|
-
isOpened:
|
|
167
|
+
isOpened: r,
|
|
168
168
|
isCollapsed: t,
|
|
169
169
|
setIsCollapsed: o,
|
|
170
170
|
setIsOpened: c,
|
|
171
171
|
clientSideRouter: l,
|
|
172
|
-
clientSideHref:
|
|
173
|
-
id:
|
|
174
|
-
} = f(), m =
|
|
172
|
+
clientSideHref: _,
|
|
173
|
+
id: h
|
|
174
|
+
} = f(), m = C(x), k = ({ group: p }) => /* @__PURE__ */ e("ul", { className: a.list, children: p.items.map((b, N) => /* @__PURE__ */ e(
|
|
175
175
|
"li",
|
|
176
176
|
{
|
|
177
177
|
className: u(
|
|
178
178
|
a.listItem,
|
|
179
179
|
t && a.listItemCollapsed
|
|
180
180
|
),
|
|
181
|
-
children: /* @__PURE__ */ e(w, { ...
|
|
181
|
+
children: /* @__PURE__ */ e(w, { ...b })
|
|
182
182
|
},
|
|
183
183
|
"link_" + N
|
|
184
184
|
)) });
|
|
185
185
|
return v.useEffect(() => {
|
|
186
|
-
const p = (
|
|
187
|
-
|
|
186
|
+
const p = (b) => {
|
|
187
|
+
b.key === "Escape" && c !== void 0 && c(!1);
|
|
188
188
|
};
|
|
189
189
|
return window.addEventListener("keydown", p), () => {
|
|
190
190
|
window.removeEventListener("keydown", p);
|
|
191
191
|
};
|
|
192
|
-
}, [c]), /* @__PURE__ */
|
|
192
|
+
}, [c]), /* @__PURE__ */ i(
|
|
193
193
|
"aside",
|
|
194
194
|
{
|
|
195
|
-
id:
|
|
195
|
+
id: h,
|
|
196
196
|
className: u(
|
|
197
197
|
a.sidebar,
|
|
198
198
|
t && a.sidebarCollapsed,
|
|
199
|
-
|
|
199
|
+
r && a.sidebarOpened
|
|
200
200
|
),
|
|
201
201
|
children: [
|
|
202
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ i("div", { className: a.sidebarHeader, children: [
|
|
203
203
|
!t && /* @__PURE__ */ e("p", { className: a.appName, children: s.name }),
|
|
204
204
|
/* @__PURE__ */ e(
|
|
205
205
|
I,
|
|
@@ -217,17 +217,17 @@ const F = [
|
|
|
217
217
|
{
|
|
218
218
|
className: a.sidebarNav,
|
|
219
219
|
"aria-label": m.format("sidebarMenu"),
|
|
220
|
-
children: /* @__PURE__ */ e("ul", { className: a.list, children: n.map((p,
|
|
220
|
+
children: /* @__PURE__ */ e("ul", { className: a.list, children: n.map((p, b) => /* @__PURE__ */ i("li", { children: [
|
|
221
221
|
p.title && !t && /* @__PURE__ */ e("p", { className: a.listGroupTitle, children: p.title }),
|
|
222
222
|
l ? /* @__PURE__ */ e(
|
|
223
223
|
B,
|
|
224
224
|
{
|
|
225
225
|
navigate: l,
|
|
226
|
-
useHref:
|
|
227
|
-
children: /* @__PURE__ */ e(
|
|
226
|
+
useHref: _,
|
|
227
|
+
children: /* @__PURE__ */ e(k, { group: p })
|
|
228
228
|
}
|
|
229
|
-
) : /* @__PURE__ */ e(
|
|
230
|
-
] }, "list_" +
|
|
229
|
+
) : /* @__PURE__ */ e(k, { group: p })
|
|
230
|
+
] }, "list_" + b)) })
|
|
231
231
|
}
|
|
232
232
|
)
|
|
233
233
|
]
|
|
@@ -237,16 +237,16 @@ const F = [
|
|
|
237
237
|
const {
|
|
238
238
|
title: n,
|
|
239
239
|
user: s,
|
|
240
|
-
app:
|
|
240
|
+
app: r,
|
|
241
241
|
isOpened: t,
|
|
242
242
|
setIsOpened: o,
|
|
243
243
|
setIsCollapsed: c,
|
|
244
244
|
headerChildren: l,
|
|
245
|
-
variant:
|
|
246
|
-
id:
|
|
247
|
-
} = f(), m =
|
|
248
|
-
return
|
|
249
|
-
/* @__PURE__ */
|
|
245
|
+
variant: _,
|
|
246
|
+
id: h
|
|
247
|
+
} = f(), m = C(x);
|
|
248
|
+
return _ === "external" ? /* @__PURE__ */ e("header", { className: u(a.header, a.headerExternal), children: /* @__PURE__ */ i("div", { className: a.headerContentExternal, children: [
|
|
249
|
+
/* @__PURE__ */ i("div", { className: a.logoExternalContainer, children: [
|
|
250
250
|
/* @__PURE__ */ e(
|
|
251
251
|
g,
|
|
252
252
|
{
|
|
@@ -263,21 +263,21 @@ const F = [
|
|
|
263
263
|
className: a.logoExternalDesktop
|
|
264
264
|
}
|
|
265
265
|
),
|
|
266
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ i("div", { children: [
|
|
267
267
|
/* @__PURE__ */ e("p", { className: a.userName, children: s.name }),
|
|
268
268
|
/* @__PURE__ */ e("p", { className: a.userTitle, children: s.title })
|
|
269
269
|
] })
|
|
270
270
|
] }),
|
|
271
271
|
/* @__PURE__ */ e("div", { className: a.headerItems, children: l })
|
|
272
|
-
] }) }) : /* @__PURE__ */
|
|
272
|
+
] }) }) : /* @__PURE__ */ i(
|
|
273
273
|
"header",
|
|
274
274
|
{
|
|
275
275
|
className: a.header,
|
|
276
276
|
style: {
|
|
277
|
-
borderTop: `solid 4px ${
|
|
277
|
+
borderTop: `solid 4px ${r.color ? r.color : W.brandPrimary}`
|
|
278
278
|
},
|
|
279
279
|
children: [
|
|
280
|
-
/* @__PURE__ */
|
|
280
|
+
/* @__PURE__ */ i("div", { className: a.headerContent, children: [
|
|
281
281
|
/* @__PURE__ */ e("div", { className: a.logo, children: /* @__PURE__ */ e(
|
|
282
282
|
g,
|
|
283
283
|
{
|
|
@@ -291,12 +291,12 @@ const F = [
|
|
|
291
291
|
variant: "icon",
|
|
292
292
|
className: a.toggleButton,
|
|
293
293
|
"aria-label": t ? m.format("closeMenu") : m.format("openMenu"),
|
|
294
|
-
"aria-controls":
|
|
294
|
+
"aria-controls": h,
|
|
295
295
|
onPressStart: () => {
|
|
296
296
|
c(!1), o?.(!0);
|
|
297
297
|
},
|
|
298
298
|
children: t ? /* @__PURE__ */ e(
|
|
299
|
-
|
|
299
|
+
j,
|
|
300
300
|
{
|
|
301
301
|
size: 20,
|
|
302
302
|
"aria-hidden": "true"
|
|
@@ -310,7 +310,7 @@ const F = [
|
|
|
310
310
|
)
|
|
311
311
|
}
|
|
312
312
|
),
|
|
313
|
-
/* @__PURE__ */
|
|
313
|
+
/* @__PURE__ */ i("div", { children: [
|
|
314
314
|
/* @__PURE__ */ e("p", { className: a.userName, children: s.name }),
|
|
315
315
|
/* @__PURE__ */ e("p", { className: a.userTitle, children: s.title }),
|
|
316
316
|
/* @__PURE__ */ e("p", { className: a.title, children: n })
|
|
@@ -326,13 +326,13 @@ const F = [
|
|
|
326
326
|
const s = () => {
|
|
327
327
|
const t = document.querySelector(n);
|
|
328
328
|
t && (t.tabIndex = -1, t.focus(), setTimeout(() => t.removeAttribute("tabindex"), 1e3));
|
|
329
|
-
},
|
|
329
|
+
}, r = C(x);
|
|
330
330
|
return /* @__PURE__ */ e(
|
|
331
331
|
I,
|
|
332
332
|
{
|
|
333
333
|
onPress: s,
|
|
334
334
|
className: a.skipToContent,
|
|
335
|
-
children:
|
|
335
|
+
children: r.format("skipToContent")
|
|
336
336
|
}
|
|
337
337
|
);
|
|
338
338
|
}, Pe = () => {
|
|
@@ -348,7 +348,7 @@ const F = [
|
|
|
348
348
|
}
|
|
349
349
|
) : null;
|
|
350
350
|
}, He = () => {
|
|
351
|
-
const { items: n, clientSideRouter: s, clientSideHref:
|
|
351
|
+
const { items: n, clientSideRouter: s, clientSideHref: r } = f(), t = C(x), o = n.at(0)?.items;
|
|
352
352
|
return /* @__PURE__ */ e(
|
|
353
353
|
"nav",
|
|
354
354
|
{
|
|
@@ -358,7 +358,7 @@ const F = [
|
|
|
358
358
|
B,
|
|
359
359
|
{
|
|
360
360
|
navigate: s,
|
|
361
|
-
useHref:
|
|
361
|
+
useHref: r,
|
|
362
362
|
children: /* @__PURE__ */ e(z, { items: o })
|
|
363
363
|
}
|
|
364
364
|
) : /* @__PURE__ */ e(z, { items: o }) })
|
|
@@ -366,15 +366,15 @@ const F = [
|
|
|
366
366
|
);
|
|
367
367
|
}, z = ({
|
|
368
368
|
items: n
|
|
369
|
-
}) => /* @__PURE__ */ e(P, { children: n.map(({ href: s, active:
|
|
370
|
-
|
|
369
|
+
}) => /* @__PURE__ */ e(P, { children: n.map(({ href: s, active: r, icon: t, title: o, hasBadge: c }, l) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ i(
|
|
370
|
+
q,
|
|
371
371
|
{
|
|
372
372
|
href: s,
|
|
373
373
|
className: u(a.navbarItem),
|
|
374
|
-
"data-active":
|
|
375
|
-
"aria-current":
|
|
374
|
+
"data-active": r,
|
|
375
|
+
"aria-current": r && "page",
|
|
376
376
|
children: [
|
|
377
|
-
/* @__PURE__ */
|
|
377
|
+
/* @__PURE__ */ i(L, { children: [
|
|
378
378
|
/* @__PURE__ */ e(t, { size: 20 }),
|
|
379
379
|
c && /* @__PURE__ */ e(y, {})
|
|
380
380
|
] }),
|
|
@@ -384,34 +384,34 @@ const F = [
|
|
|
384
384
|
) }, l)) }), d = ({
|
|
385
385
|
items: n,
|
|
386
386
|
title: s,
|
|
387
|
-
user:
|
|
387
|
+
user: r,
|
|
388
388
|
app: t,
|
|
389
389
|
children: o,
|
|
390
390
|
headerChildren: c,
|
|
391
391
|
clientSideRouter: l,
|
|
392
|
-
clientSideHref:
|
|
393
|
-
variant:
|
|
392
|
+
clientSideHref: _,
|
|
393
|
+
variant: h,
|
|
394
394
|
className: m
|
|
395
395
|
}) => {
|
|
396
|
-
const [
|
|
397
|
-
return
|
|
396
|
+
const [k, p] = v.useState(!1), [b, N] = v.useState(!1), E = v.useId();
|
|
397
|
+
return h === "external" ? /* @__PURE__ */ e(
|
|
398
398
|
d.Provider,
|
|
399
399
|
{
|
|
400
400
|
items: n,
|
|
401
401
|
title: s,
|
|
402
|
-
user:
|
|
402
|
+
user: r,
|
|
403
403
|
app: t,
|
|
404
404
|
clientSideRouter: l,
|
|
405
|
-
clientSideHref:
|
|
405
|
+
clientSideHref: _,
|
|
406
406
|
headerChildren: c,
|
|
407
|
-
isCollapsed:
|
|
407
|
+
isCollapsed: k,
|
|
408
408
|
setIsCollapsed: p,
|
|
409
|
-
variant:
|
|
409
|
+
variant: h,
|
|
410
410
|
id: E,
|
|
411
|
-
children: /* @__PURE__ */
|
|
411
|
+
children: /* @__PURE__ */ i("div", { className: u(a.baseLayout, m), children: [
|
|
412
412
|
/* @__PURE__ */ e(S, {}),
|
|
413
413
|
/* @__PURE__ */ e(d.Header, {}),
|
|
414
|
-
/* @__PURE__ */
|
|
414
|
+
/* @__PURE__ */ i("div", { className: a.mainContent, children: [
|
|
415
415
|
/* @__PURE__ */ e(d.Sidebar, {}),
|
|
416
416
|
/* @__PURE__ */ e(T, { children: /* @__PURE__ */ e("main", { className: a.main, children: /* @__PURE__ */ e("div", { className: a.app, children: o }) }) }),
|
|
417
417
|
/* @__PURE__ */ e(d.Backdrop, {})
|
|
@@ -424,21 +424,21 @@ const F = [
|
|
|
424
424
|
{
|
|
425
425
|
items: n,
|
|
426
426
|
title: s,
|
|
427
|
-
user:
|
|
427
|
+
user: r,
|
|
428
428
|
app: t,
|
|
429
429
|
clientSideRouter: l,
|
|
430
|
-
clientSideHref:
|
|
430
|
+
clientSideHref: _,
|
|
431
431
|
headerChildren: c,
|
|
432
|
-
isCollapsed:
|
|
432
|
+
isCollapsed: k,
|
|
433
433
|
setIsCollapsed: p,
|
|
434
|
-
isOpened:
|
|
434
|
+
isOpened: b,
|
|
435
435
|
setIsOpened: N,
|
|
436
|
-
variant:
|
|
436
|
+
variant: h,
|
|
437
437
|
id: E,
|
|
438
|
-
children: /* @__PURE__ */
|
|
438
|
+
children: /* @__PURE__ */ i("div", { className: u(a.baseLayout, m), children: [
|
|
439
439
|
/* @__PURE__ */ e(S, {}),
|
|
440
440
|
/* @__PURE__ */ e(d.Header, {}),
|
|
441
|
-
/* @__PURE__ */
|
|
441
|
+
/* @__PURE__ */ i("div", { className: a.mainContent, children: [
|
|
442
442
|
/* @__PURE__ */ e(d.Sidebar, {}),
|
|
443
443
|
/* @__PURE__ */ e(T, { children: /* @__PURE__ */ e("main", { className: a.main, children: /* @__PURE__ */ e("div", { className: a.app, children: o }) }) }),
|
|
444
444
|
/* @__PURE__ */ e(d.Backdrop, {})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { ListLayout as e, Virtualizer as n, ListBox as
|
|
3
|
-
import { c as
|
|
4
|
-
import '../assets/ListBox.css';class
|
|
2
|
+
import { ListLayout as e, Virtualizer as n, ListBox as a } from "react-aria-components";
|
|
3
|
+
import { c as l } from "./clsx-AexbMWKp.js";
|
|
4
|
+
import '../assets/ListBox.css';class x extends e {
|
|
5
5
|
/**
|
|
6
6
|
* When using the ListLayout our scroll container height is not calculated properly when the content is partially sectioned.
|
|
7
7
|
* ```ts
|
|
@@ -25,29 +25,29 @@ import '../assets/ListBox.css';class B extends e {
|
|
|
25
25
|
}), this.contentSize;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
const
|
|
29
|
-
listBox:
|
|
30
|
-
listBoxPopover:
|
|
28
|
+
const B = "_listBox_1vajh_4", r = "_listBoxPopover_1vajh_16", c = "_listBoxSectionHeading_1vajh_31", _ = "_listBoxButton_1vajh_43", h = "_listBoxItem_1vajh_55", m = "_textContent_1vajh_69", L = "_listBoxLoadMoreItem_1vajh_175", u = {
|
|
29
|
+
listBox: B,
|
|
30
|
+
listBoxPopover: r,
|
|
31
31
|
listBoxSectionHeading: c,
|
|
32
32
|
listBoxButton: _,
|
|
33
|
-
listBoxItem:
|
|
33
|
+
listBoxItem: h,
|
|
34
34
|
textContent: m,
|
|
35
35
|
listBoxLoadMoreItem: L
|
|
36
|
-
},
|
|
36
|
+
}, g = ({
|
|
37
37
|
className: s,
|
|
38
38
|
children: t,
|
|
39
39
|
...o
|
|
40
40
|
}) => /* @__PURE__ */ i(
|
|
41
41
|
n,
|
|
42
42
|
{
|
|
43
|
-
layout:
|
|
43
|
+
layout: x,
|
|
44
44
|
layoutOptions: {
|
|
45
45
|
headingHeight: 38
|
|
46
46
|
},
|
|
47
47
|
children: /* @__PURE__ */ i(
|
|
48
|
-
|
|
48
|
+
a,
|
|
49
49
|
{
|
|
50
|
-
className:
|
|
50
|
+
className: l(u.listBox, s),
|
|
51
51
|
...o,
|
|
52
52
|
children: t
|
|
53
53
|
}
|
|
@@ -55,6 +55,6 @@ const r = "_listBox_1kyjv_4", a = "_listBoxPopover_1kyjv_16", c = "_listBoxSecti
|
|
|
55
55
|
}
|
|
56
56
|
);
|
|
57
57
|
export {
|
|
58
|
-
|
|
58
|
+
g as L,
|
|
59
59
|
u as s
|
|
60
60
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o, jsxs as m, Fragment as d } from "react/jsx-runtime";
|
|
2
2
|
import { c as e } from "./clsx-AexbMWKp.js";
|
|
3
|
-
import { s as a } from "./ListBox-
|
|
3
|
+
import { s as a } from "./ListBox-D5BBeZWL.js";
|
|
4
4
|
import { ListBoxLoadMoreItem as l } from "react-aria-components";
|
|
5
5
|
import { S as c } from "./Spinner-BORNnHph.js";
|
|
6
6
|
import { u as L } from "./useLocalizedStringFormatter-ZgRJmvHC.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
2
|
import { ListBoxItem as m, Popover as n, Header as B, ListBoxSection as l } from "react-aria-components";
|
|
3
3
|
import { c as a } from "./clsx-AexbMWKp.js";
|
|
4
|
-
import { s as i } from "./ListBox-
|
|
4
|
+
import { s as i } from "./ListBox-D5BBeZWL.js";
|
|
5
5
|
const I = ({
|
|
6
6
|
children: t,
|
|
7
7
|
className: o,
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { c as i } from "./clsx-AexbMWKp.js";
|
|
3
|
-
import { Popover as v, OverlayArrow as
|
|
4
|
-
import '../assets/Popover.css';const
|
|
5
|
-
popover:
|
|
6
|
-
arrow:
|
|
3
|
+
import { Popover as v, OverlayArrow as l } from "react-aria-components";
|
|
4
|
+
import '../assets/Popover.css';const n = "_popover_1wjt3_1", w = "_arrow_1wjt3_23", r = {
|
|
5
|
+
popover: n,
|
|
6
|
+
arrow: w
|
|
7
7
|
};
|
|
8
8
|
function d({
|
|
9
9
|
children: e,
|
|
10
10
|
className: s,
|
|
11
11
|
offset: p = 4,
|
|
12
|
-
hideArrow:
|
|
13
|
-
...
|
|
12
|
+
hideArrow: t = !1,
|
|
13
|
+
...a
|
|
14
14
|
}) {
|
|
15
15
|
return /* @__PURE__ */ c(
|
|
16
16
|
v,
|
|
17
17
|
{
|
|
18
|
-
...
|
|
18
|
+
...a,
|
|
19
19
|
offset: p,
|
|
20
20
|
className: i(r.popover, s),
|
|
21
21
|
children: [
|
|
22
|
-
!
|
|
22
|
+
!t && /* @__PURE__ */ o(l, { className: r.arrow, children: /* @__PURE__ */ o(
|
|
23
23
|
"svg",
|
|
24
24
|
{
|
|
25
25
|
width: 16,
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsx as s, jsxs as d, Fragment as _ } from "react/jsx-runtime";
|
|
2
|
+
import { ProgressBar as f } from "react-aria-components";
|
|
3
|
+
import { L as t } from "./Label-Dup4lWaR.js";
|
|
4
|
+
import { c as l } from "./clsx-AexbMWKp.js";
|
|
5
|
+
import '../assets/ProgressBar.css';const N = "_progressBar_1a2ad_1", g = "_label_1a2ad_9", p = "_value_1a2ad_14", v = "_bar_1a2ad_19", h = "_fill_1a2ad_29", e = {
|
|
6
|
+
progressBar: N,
|
|
7
|
+
label: g,
|
|
8
|
+
value: p,
|
|
9
|
+
bar: v,
|
|
10
|
+
fill: h
|
|
11
|
+
}, b = ({
|
|
12
|
+
label: r,
|
|
13
|
+
labelProps: a,
|
|
14
|
+
showValueLabel: m = !1,
|
|
15
|
+
...c
|
|
16
|
+
}) => /* @__PURE__ */ s(
|
|
17
|
+
f,
|
|
18
|
+
{
|
|
19
|
+
...c,
|
|
20
|
+
className: l(e.progressBar, c.className),
|
|
21
|
+
children: ({ percentage: i, valueText: n, isIndeterminate: o }) => /* @__PURE__ */ d(_, { children: [
|
|
22
|
+
r && /* @__PURE__ */ s(
|
|
23
|
+
t,
|
|
24
|
+
{
|
|
25
|
+
elementType: "span",
|
|
26
|
+
...a,
|
|
27
|
+
className: l(a?.className, e.label),
|
|
28
|
+
children: r
|
|
29
|
+
}
|
|
30
|
+
),
|
|
31
|
+
m && /* @__PURE__ */ s(
|
|
32
|
+
t,
|
|
33
|
+
{
|
|
34
|
+
elementType: "span",
|
|
35
|
+
...a,
|
|
36
|
+
id: r ? "" : a?.id,
|
|
37
|
+
className: l(a?.className, e.value),
|
|
38
|
+
children: n
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
/* @__PURE__ */ s("div", { className: e.bar, children: /* @__PURE__ */ s(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
className: e.fill,
|
|
45
|
+
style: { width: `${o ? 50 : i}%` }
|
|
46
|
+
}
|
|
47
|
+
) })
|
|
48
|
+
] })
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
export {
|
|
52
|
+
b as P
|
|
53
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx as r, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { Radio as u, RadioGroup as _, Group as f } from "react-aria-components";
|
|
3
|
+
import { c as p } from "./clsx-AexbMWKp.js";
|
|
4
|
+
import { a as G, L as R } from "./Label-Dup4lWaR.js";
|
|
5
|
+
import { T as h } from "./Text-TWzJxnto.js";
|
|
6
|
+
import { F as t } from "./FieldError-C0HRIcAx.js";
|
|
7
|
+
import '../assets/Radio.css';const x = "_radioGroup_1ls9z_1", w = "_wrap_1ls9z_12", z = "_radio_1ls9z_1", s = {
|
|
8
|
+
radioGroup: x,
|
|
9
|
+
wrap: w,
|
|
10
|
+
radio: z
|
|
11
|
+
}, T = ({
|
|
12
|
+
label: o,
|
|
13
|
+
description: a,
|
|
14
|
+
errorMessage: i,
|
|
15
|
+
children: l,
|
|
16
|
+
className: c,
|
|
17
|
+
errorPosition: d = "top",
|
|
18
|
+
popover: e,
|
|
19
|
+
...m
|
|
20
|
+
}) => /* @__PURE__ */ n(
|
|
21
|
+
_,
|
|
22
|
+
{
|
|
23
|
+
...m,
|
|
24
|
+
className: p(s.radioGroup, c),
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ r(G, { popover: e, children: o && /* @__PURE__ */ r(R, { children: o }) }),
|
|
27
|
+
a && /* @__PURE__ */ r(h, { slot: "description", children: a }),
|
|
28
|
+
d === "top" && /* @__PURE__ */ r(t, { "data-testid": "fieldError", children: i }),
|
|
29
|
+
/* @__PURE__ */ r(f, { className: s.wrap, children: l }),
|
|
30
|
+
d === "bottom" && /* @__PURE__ */ r(t, { "data-testid": "fieldError", children: i })
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
), $ = ({ className: o, ...a }) => /* @__PURE__ */ r(
|
|
34
|
+
u,
|
|
35
|
+
{
|
|
36
|
+
className: p(s.radio, o),
|
|
37
|
+
...a
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
export {
|
|
41
|
+
$ as R,
|
|
42
|
+
T as a
|
|
43
|
+
};
|