@midas-ds/components 11.1.0 → 11.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 +25 -0
- package/{CheckboxGroup-oosHSGAt.js → CheckboxGroup-DvrN1oyw.js} +1 -1
- package/{ColorSchemeSwitch-Cnyb9EKC.js → ColorSchemeSwitch-PiEHptw1.js} +1 -1
- package/{ComboBox-CQ49PhNd.cjs → ComboBox-D_jh7TKo.cjs} +1 -1
- package/{ComboBox-D4MsSPBu.js → ComboBox-DfJ_aJrf.js} +10 -10
- package/{DateField-COs1-CkQ.js → DateField-DKCbEonm.js} +2 -2
- package/{DateInputDivider-B3oE1_tB.js → DateInputDivider-BmvqW1Hk.js} +2 -2
- package/{DateRangePicker-CvEycxmX.js → DateRangePicker-B5vx9onl.js} +183 -196
- package/DateRangePicker-DkIAEIIj.cjs +6 -0
- package/Dialog-CxHiZorC.cjs +1 -0
- package/{Dialog-DKHo0W9B.js → Dialog-D5c_dUnB.js} +3 -3
- package/Dialog-DuGcBeNN.js +212 -0
- package/{Dropdown-D6WCi_Ll.js → Dropdown-Cpc2EszJ.js} +1 -1
- package/{FocusScope-BCsrRPqD.js → FocusScope-DMsfA3bj.js} +1 -1
- package/{Label-DA6FZwy0.js → Label-endv1fkJ.js} +2 -2
- package/Layout-D0E1fOgZ.cjs +16 -0
- package/Layout-DtyhUz-G.js +498 -0
- package/{ListBox-CsxDGpCA.js → ListBox-Djy7244v.js} +5 -5
- package/{ListBoxButton-BsuHFd_O.cjs → ListBoxButton-CIqNRR3y.cjs} +1 -1
- package/{ListBoxButton-DawRfuny.js → ListBoxButton-sqirI6I4.js} +1 -1
- package/{ListBoxSection-C-Rz358T.cjs → ListBoxSection-BYJccE4T.cjs} +1 -1
- package/{ListBoxSection-Cc2cx0_S.js → ListBoxSection-Cicbu8pS.js} +375 -375
- package/{ListKeyboardDelegate-C-sPNj0f.js → ListKeyboardDelegate-CHki611g.js} +1 -1
- package/{Popover-DHoXfBp2.js → Popover-Tniqbaes.js} +1 -1
- package/{ProgressBar-C0IBfi5I.js → ProgressBar-DTn23Zkr.js} +1 -1
- package/{Radio-B6N9dCtB.js → Radio-CCN3o3s-.js} +2 -2
- package/{Select-DMVj2lrG.js → Select-MwvnbChP.js} +8 -8
- package/{Select-DiCEyap1.cjs → Select-lhIwwJL7.cjs} +1 -1
- package/{SelectionManager-BubxiIKu.js → SelectionManager-BKrZ_mMO.js} +1 -1
- package/{Separator-CEZ5y7tZ.js → Separator-DvvVAypT.js} +2 -2
- package/{TabList-BkSWzbDG.cjs → TabList-CWMlbijV.cjs} +1 -1
- package/{TabList-QApx8qRC.js → TabList-VpTv_Xff.js} +4 -4
- package/{Table-B5Aine4F.js → Table-DGTwyh7U.js} +4 -4
- package/{Tag-Byva_Xuy.js → Tag-rI-NhuT0.js} +7 -7
- package/{TextArea-eK7Jx3qs.js → TextArea-CrEALC58.js} +1 -1
- package/{ToggleButtonGroup-HjvaTYD4.js → ToggleButtonGroup-98z8Dw8-.js} +1 -1
- package/assets/Layout.css +1 -1
- package/assets/ListBoxSection.css +1 -1
- package/checkbox/index.js +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/DatePickerPopover.d.ts +1 -1
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/index.js +1 -1
- package/grid/index.d.ts +1 -1
- package/index.cjs +1 -1
- package/index.js +20 -20
- package/label/index.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/list-box/index.cjs +1 -1
- package/list-box/index.js +2 -2
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/package.json +1 -1
- package/popover/index.js +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.js +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/table/index.js +1 -1
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +1 -1
- package/tag/index.js +1 -1
- package/textfield/index.js +1 -1
- package/theme/index.cjs +1 -1
- package/theme/index.d.ts +1 -0
- package/theme/index.js +2 -2
- package/theme/tokens.d.ts +1 -0
- package/toggle-button/index.js +1 -1
- package/{tokens-BF-dPard.cjs → tokens-5PzK5zK7.cjs} +1 -1
- package/{tokens-r1r3wC04.js → tokens-CqvelUoA.js} +13 -12
- package/{useFilter-DginflOU.js → useFilter-DsOxD9JB.js} +1 -1
- package/{useHasTabbableChild-DP62kzkG.js → useHasTabbableChild-BgEe5J35.js} +1 -1
- package/{useListState-DNB7JWoj.js → useListState-B3c3xcNW.js} +1 -1
- package/{useSingleSelectListState-B0OMoHd_.js → useSingleSelectListState-DdBsBWKG.js} +1 -1
- package/DateRangePicker-Bfibl08v.cjs +0 -6
- package/Dialog-B3R3WtL5.cjs +0 -1
- package/Dialog-BkUw6PlA.js +0 -221
- package/Layout-BwLxIwtY.cjs +0 -16
- package/Layout-CcADAhds.js +0 -498
|
@@ -0,0 +1,498 @@
|
|
|
1
|
+
import { jsx as e, jsxs as l, Fragment as O } from "react/jsx-runtime";
|
|
2
|
+
import { G as S } from "./GridItem-DlbSdRmB.js";
|
|
3
|
+
import * as b from "react";
|
|
4
|
+
import { c as u } from "./clsx-OuTLNxxd.js";
|
|
5
|
+
import { B as E } from "./Button-BjMaGya2.js";
|
|
6
|
+
import { $ as y } from "./Link-CibH8uRY.js";
|
|
7
|
+
import { a as $, T as G } from "./Tooltip-DjNc93tV.js";
|
|
8
|
+
import { a as L, B as M } from "./BadgeContainer-CKBIZWsc.js";
|
|
9
|
+
import { c as T } from "./createLucideIcon-XRdN60yz.js";
|
|
10
|
+
import { $ as w } from "./usePress-BW47IcyU.js";
|
|
11
|
+
import { u as C } from "./useLocalizedStringFormatter-N0AyjzbM.js";
|
|
12
|
+
import { f as j } from "./tokens-CqvelUoA.js";
|
|
13
|
+
import { L as g } from "./Logo-ME4ffCue.js";
|
|
14
|
+
import { X as D } from "./x-C2xUHAEl.js";
|
|
15
|
+
import './assets/Layout.css';/**
|
|
16
|
+
* @license lucide-react v0.525.0 - ISC
|
|
17
|
+
*
|
|
18
|
+
* This source code is licensed under the ISC license.
|
|
19
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
20
|
+
*/
|
|
21
|
+
const W = [
|
|
22
|
+
["path", { d: "M4 12h16", key: "1lakjw" }],
|
|
23
|
+
["path", { d: "M4 18h16", key: "19g7jn" }],
|
|
24
|
+
["path", { d: "M4 6h16", key: "1o0s65" }]
|
|
25
|
+
], q = T("menu", W);
|
|
26
|
+
/**
|
|
27
|
+
* @license lucide-react v0.525.0 - ISC
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the ISC license.
|
|
30
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/
|
|
32
|
+
const A = [
|
|
33
|
+
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
34
|
+
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
35
|
+
["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
|
|
36
|
+
], F = T("panel-left-close", A);
|
|
37
|
+
/**
|
|
38
|
+
* @license lucide-react v0.525.0 - ISC
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the ISC license.
|
|
41
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/
|
|
43
|
+
const R = [
|
|
44
|
+
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
45
|
+
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
46
|
+
["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
|
|
47
|
+
], X = T("panel-left-open", R), J = "_baseLayout_1ssmv_4", K = "_mainContent_1ssmv_13", Q = "_header_1ssmv_18", U = "_headerExternal_1ssmv_29", V = "_headerContent_1ssmv_44", Y = "_logo_1ssmv_63", Z = "_headerItems_1ssmv_72", ee = "_toggleButton_1ssmv_78", se = "_sidebar_1ssmv_86", ae = "_main_1ssmv_13", te = "_app_1ssmv_119", ne = "_sidebarOpened_1ssmv_127", ie = "_sidebarHeader_1ssmv_131", re = "_appName_1ssmv_143", oe = "_collapseButton_1ssmv_150", le = "_sidebarCollapsed_1ssmv_159", de = "_userName_1ssmv_169", ce = "_userTitle_1ssmv_188", me = "_title_1ssmv_200", pe = "_sidebarNav_1ssmv_211", _e = "_list_1ssmv_217", ve = "_listGroupTitle_1ssmv_224", ue = "_listItem_1ssmv_231", he = "_listItemCollapsed_1ssmv_236", be = "_listLink_1ssmv_240", fe = "_listLinkCollapsed_1ssmv_285", Ne = "_active_1ssmv_290", ke = "_backdrop_1ssmv_304", Ce = "_backdropOpened_1ssmv_314", xe = "_skipToContent_1ssmv_332", ge = "_navbar_1ssmv_346", ye = "_navbarList_1ssmv_358", Le = "_navbarItem_1ssmv_380", Me = "_headerContentExternal_1ssmv_420", Ee = "_logoExternalContainer_1ssmv_428", Te = "_logoExternal_1ssmv_428", Ie = "_logoExternalDesktop_1ssmv_440", Se = "_navbarWrapper_1ssmv_449", s = {
|
|
48
|
+
baseLayout: J,
|
|
49
|
+
mainContent: K,
|
|
50
|
+
header: Q,
|
|
51
|
+
headerExternal: U,
|
|
52
|
+
headerContent: V,
|
|
53
|
+
logo: Y,
|
|
54
|
+
headerItems: Z,
|
|
55
|
+
toggleButton: ee,
|
|
56
|
+
sidebar: se,
|
|
57
|
+
main: ae,
|
|
58
|
+
app: te,
|
|
59
|
+
sidebarOpened: ne,
|
|
60
|
+
sidebarHeader: ie,
|
|
61
|
+
appName: re,
|
|
62
|
+
collapseButton: oe,
|
|
63
|
+
sidebarCollapsed: le,
|
|
64
|
+
userName: de,
|
|
65
|
+
userTitle: ce,
|
|
66
|
+
title: me,
|
|
67
|
+
sidebarNav: pe,
|
|
68
|
+
list: _e,
|
|
69
|
+
listGroupTitle: ve,
|
|
70
|
+
listItem: ue,
|
|
71
|
+
listItemCollapsed: he,
|
|
72
|
+
listLink: be,
|
|
73
|
+
listLinkCollapsed: fe,
|
|
74
|
+
active: Ne,
|
|
75
|
+
backdrop: ke,
|
|
76
|
+
backdropOpened: Ce,
|
|
77
|
+
skipToContent: xe,
|
|
78
|
+
navbar: ge,
|
|
79
|
+
navbarList: ye,
|
|
80
|
+
navbarItem: Le,
|
|
81
|
+
headerContentExternal: Me,
|
|
82
|
+
logoExternalContainer: Ee,
|
|
83
|
+
logoExternal: Te,
|
|
84
|
+
logoExternalDesktop: Ie,
|
|
85
|
+
navbarWrapper: Se
|
|
86
|
+
}, P = b.createContext(
|
|
87
|
+
void 0
|
|
88
|
+
), ze = ({
|
|
89
|
+
items: n,
|
|
90
|
+
title: t,
|
|
91
|
+
user: i,
|
|
92
|
+
app: a,
|
|
93
|
+
children: r,
|
|
94
|
+
clientSideRouter: d,
|
|
95
|
+
clientSideHref: o,
|
|
96
|
+
headerChildren: p,
|
|
97
|
+
isCollapsed: _,
|
|
98
|
+
setIsCollapsed: v,
|
|
99
|
+
isOpened: f,
|
|
100
|
+
setIsOpened: m,
|
|
101
|
+
variant: h,
|
|
102
|
+
id: N
|
|
103
|
+
}) => /* @__PURE__ */ e(
|
|
104
|
+
P.Provider,
|
|
105
|
+
{
|
|
106
|
+
value: {
|
|
107
|
+
items: n,
|
|
108
|
+
title: t,
|
|
109
|
+
user: i,
|
|
110
|
+
app: a,
|
|
111
|
+
headerChildren: p,
|
|
112
|
+
isCollapsed: _,
|
|
113
|
+
setIsCollapsed: v,
|
|
114
|
+
isOpened: f,
|
|
115
|
+
setIsOpened: m,
|
|
116
|
+
clientSideRouter: d,
|
|
117
|
+
clientSideHref: o,
|
|
118
|
+
variant: h,
|
|
119
|
+
id: N
|
|
120
|
+
},
|
|
121
|
+
children: r
|
|
122
|
+
}
|
|
123
|
+
), k = () => {
|
|
124
|
+
const n = b.useContext(P);
|
|
125
|
+
if (!n)
|
|
126
|
+
throw new Error("useLayoutContext must be used within a LayoutProvider");
|
|
127
|
+
return n;
|
|
128
|
+
}, H = ({
|
|
129
|
+
title: n,
|
|
130
|
+
href: t,
|
|
131
|
+
icon: i,
|
|
132
|
+
active: a,
|
|
133
|
+
hasBadge: r
|
|
134
|
+
}) => {
|
|
135
|
+
const { isCollapsed: d, setIsOpened: o } = k(), [p, _] = b.useState(!1);
|
|
136
|
+
return b.useEffect(() => {
|
|
137
|
+
typeof window < "u" && _(a ?? window.location.pathname === t);
|
|
138
|
+
}, [a, t]), d ? /* @__PURE__ */ l($, { children: [
|
|
139
|
+
/* @__PURE__ */ e(
|
|
140
|
+
y,
|
|
141
|
+
{
|
|
142
|
+
href: t,
|
|
143
|
+
"aria-label": n,
|
|
144
|
+
className: u(
|
|
145
|
+
s.listLink,
|
|
146
|
+
s.listLinkCollapsed,
|
|
147
|
+
p && s.active
|
|
148
|
+
),
|
|
149
|
+
onPress: () => o == null ? void 0 : o(!1),
|
|
150
|
+
children: /* @__PURE__ */ l(L, { children: [
|
|
151
|
+
/* @__PURE__ */ e(
|
|
152
|
+
i,
|
|
153
|
+
{
|
|
154
|
+
size: 20,
|
|
155
|
+
"aria-label": n
|
|
156
|
+
}
|
|
157
|
+
),
|
|
158
|
+
r && /* @__PURE__ */ e(M, {})
|
|
159
|
+
] })
|
|
160
|
+
}
|
|
161
|
+
),
|
|
162
|
+
/* @__PURE__ */ e(G, { placement: "right", children: n })
|
|
163
|
+
] }) : /* @__PURE__ */ l(
|
|
164
|
+
y,
|
|
165
|
+
{
|
|
166
|
+
href: t,
|
|
167
|
+
"aria-label": n,
|
|
168
|
+
className: u(s.listLink, p && s.active),
|
|
169
|
+
onPress: () => o == null ? void 0 : o(!1),
|
|
170
|
+
children: [
|
|
171
|
+
/* @__PURE__ */ l(L, { children: [
|
|
172
|
+
/* @__PURE__ */ e(i, { size: 20 }),
|
|
173
|
+
r && /* @__PURE__ */ e(M, {})
|
|
174
|
+
] }),
|
|
175
|
+
n
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
);
|
|
179
|
+
}, Be = {
|
|
180
|
+
closeMenu: "Close menu",
|
|
181
|
+
openMenu: "Open menu",
|
|
182
|
+
maximizeMenu: "Maximize menu",
|
|
183
|
+
minimizeMenu: "Minimize menu",
|
|
184
|
+
sidebarMenu: "Sidebar menu",
|
|
185
|
+
bottomMenu: "Bottom menu",
|
|
186
|
+
skipToContent: "Skip to main content"
|
|
187
|
+
}, we = {
|
|
188
|
+
closeMenu: "Stäng meny",
|
|
189
|
+
openMenu: "Öppna meny",
|
|
190
|
+
maximizeMenu: "Maximera meny",
|
|
191
|
+
minimizeMenu: "Minimera meny",
|
|
192
|
+
sidebarMenu: "Sidomeny",
|
|
193
|
+
bottomMenu: "Bottenmeny",
|
|
194
|
+
skipToContent: "Hoppa till huvudinnehåll"
|
|
195
|
+
}, x = {
|
|
196
|
+
en: Be,
|
|
197
|
+
sv: we
|
|
198
|
+
}, Pe = () => {
|
|
199
|
+
const {
|
|
200
|
+
items: n,
|
|
201
|
+
app: t,
|
|
202
|
+
isOpened: i,
|
|
203
|
+
isCollapsed: a,
|
|
204
|
+
setIsCollapsed: r,
|
|
205
|
+
setIsOpened: d,
|
|
206
|
+
clientSideRouter: o,
|
|
207
|
+
clientSideHref: p,
|
|
208
|
+
id: _
|
|
209
|
+
} = k(), v = C(x), f = ({ group: m }) => /* @__PURE__ */ e("ul", { className: s.list, children: m.items.map((h, N) => /* @__PURE__ */ e(
|
|
210
|
+
"li",
|
|
211
|
+
{
|
|
212
|
+
className: u(
|
|
213
|
+
s.listItem,
|
|
214
|
+
a && s.listItemCollapsed
|
|
215
|
+
),
|
|
216
|
+
children: /* @__PURE__ */ e(H, { ...h })
|
|
217
|
+
},
|
|
218
|
+
"link_" + N
|
|
219
|
+
)) });
|
|
220
|
+
return b.useEffect(() => {
|
|
221
|
+
const m = (h) => {
|
|
222
|
+
h.key === "Escape" && d !== void 0 && d(!1);
|
|
223
|
+
};
|
|
224
|
+
return window.addEventListener("keydown", m), () => {
|
|
225
|
+
window.removeEventListener("keydown", m);
|
|
226
|
+
};
|
|
227
|
+
}, [d]), /* @__PURE__ */ l(
|
|
228
|
+
"aside",
|
|
229
|
+
{
|
|
230
|
+
id: _,
|
|
231
|
+
className: u(
|
|
232
|
+
s.sidebar,
|
|
233
|
+
a && s.sidebarCollapsed,
|
|
234
|
+
i && s.sidebarOpened
|
|
235
|
+
),
|
|
236
|
+
children: [
|
|
237
|
+
/* @__PURE__ */ l("div", { className: s.sidebarHeader, children: [
|
|
238
|
+
!a && /* @__PURE__ */ e("p", { className: s.appName, children: t.name }),
|
|
239
|
+
/* @__PURE__ */ e(
|
|
240
|
+
E,
|
|
241
|
+
{
|
|
242
|
+
variant: "icon",
|
|
243
|
+
"aria-label": a ? v.format("maximizeMenu") : v.format("minimizeMenu"),
|
|
244
|
+
onPress: () => r(!a),
|
|
245
|
+
className: s.collapseButton,
|
|
246
|
+
children: a ? /* @__PURE__ */ e(X, { size: 20 }) : /* @__PURE__ */ e(F, { size: 20 })
|
|
247
|
+
}
|
|
248
|
+
)
|
|
249
|
+
] }),
|
|
250
|
+
/* @__PURE__ */ e(
|
|
251
|
+
"nav",
|
|
252
|
+
{
|
|
253
|
+
className: s.sidebarNav,
|
|
254
|
+
"aria-label": v.format("sidebarMenu"),
|
|
255
|
+
children: /* @__PURE__ */ e("ul", { className: s.list, children: n.map((m, h) => /* @__PURE__ */ l("li", { children: [
|
|
256
|
+
m.title && !a && /* @__PURE__ */ e("p", { className: s.listGroupTitle, children: m.title }),
|
|
257
|
+
o ? /* @__PURE__ */ e(
|
|
258
|
+
w,
|
|
259
|
+
{
|
|
260
|
+
navigate: o,
|
|
261
|
+
useHref: p,
|
|
262
|
+
children: /* @__PURE__ */ e(f, { group: m })
|
|
263
|
+
}
|
|
264
|
+
) : /* @__PURE__ */ e(f, { group: m })
|
|
265
|
+
] }, "list_" + h)) })
|
|
266
|
+
}
|
|
267
|
+
)
|
|
268
|
+
]
|
|
269
|
+
}
|
|
270
|
+
);
|
|
271
|
+
}, He = () => {
|
|
272
|
+
const {
|
|
273
|
+
title: n,
|
|
274
|
+
user: t,
|
|
275
|
+
app: i,
|
|
276
|
+
isOpened: a,
|
|
277
|
+
setIsOpened: r,
|
|
278
|
+
setIsCollapsed: d,
|
|
279
|
+
headerChildren: o,
|
|
280
|
+
variant: p,
|
|
281
|
+
id: _
|
|
282
|
+
} = k(), v = C(x);
|
|
283
|
+
return p === "external" ? /* @__PURE__ */ e("header", { className: u(s.header, s.headerExternal), children: /* @__PURE__ */ l("div", { className: s.headerContentExternal, children: [
|
|
284
|
+
/* @__PURE__ */ l("div", { className: s.logoExternalContainer, children: [
|
|
285
|
+
/* @__PURE__ */ e(
|
|
286
|
+
g,
|
|
287
|
+
{
|
|
288
|
+
size: "x-small",
|
|
289
|
+
padding: !1,
|
|
290
|
+
className: s.logoExternal
|
|
291
|
+
}
|
|
292
|
+
),
|
|
293
|
+
/* @__PURE__ */ e(
|
|
294
|
+
g,
|
|
295
|
+
{
|
|
296
|
+
size: "small",
|
|
297
|
+
padding: !1,
|
|
298
|
+
className: s.logoExternalDesktop
|
|
299
|
+
}
|
|
300
|
+
),
|
|
301
|
+
/* @__PURE__ */ l("div", { children: [
|
|
302
|
+
/* @__PURE__ */ e("p", { className: s.userName, children: t.name }),
|
|
303
|
+
/* @__PURE__ */ e("p", { className: s.userTitle, children: t.title })
|
|
304
|
+
] })
|
|
305
|
+
] }),
|
|
306
|
+
/* @__PURE__ */ e("div", { className: s.headerItems, children: o })
|
|
307
|
+
] }) }) : /* @__PURE__ */ l(
|
|
308
|
+
"header",
|
|
309
|
+
{
|
|
310
|
+
className: s.header,
|
|
311
|
+
style: {
|
|
312
|
+
borderTop: `solid 4px ${i.color ? i.color : j.brandPrimary}`
|
|
313
|
+
},
|
|
314
|
+
children: [
|
|
315
|
+
/* @__PURE__ */ l("div", { className: s.headerContent, children: [
|
|
316
|
+
/* @__PURE__ */ e("div", { className: s.logo, children: /* @__PURE__ */ e(
|
|
317
|
+
g,
|
|
318
|
+
{
|
|
319
|
+
size: "small",
|
|
320
|
+
padding: !1
|
|
321
|
+
}
|
|
322
|
+
) }),
|
|
323
|
+
a !== void 0 && /* @__PURE__ */ e(
|
|
324
|
+
E,
|
|
325
|
+
{
|
|
326
|
+
variant: "icon",
|
|
327
|
+
className: s.toggleButton,
|
|
328
|
+
"aria-label": a ? v.format("closeMenu") : v.format("openMenu"),
|
|
329
|
+
"aria-controls": _,
|
|
330
|
+
onPressStart: () => {
|
|
331
|
+
d(!1), r == null || r(!0);
|
|
332
|
+
},
|
|
333
|
+
children: a ? /* @__PURE__ */ e(
|
|
334
|
+
D,
|
|
335
|
+
{
|
|
336
|
+
size: 20,
|
|
337
|
+
"aria-hidden": "true"
|
|
338
|
+
}
|
|
339
|
+
) : /* @__PURE__ */ e(
|
|
340
|
+
q,
|
|
341
|
+
{
|
|
342
|
+
size: 20,
|
|
343
|
+
"aria-hidden": "true"
|
|
344
|
+
}
|
|
345
|
+
)
|
|
346
|
+
}
|
|
347
|
+
),
|
|
348
|
+
/* @__PURE__ */ l("div", { children: [
|
|
349
|
+
/* @__PURE__ */ e("p", { className: s.userName, children: t.name }),
|
|
350
|
+
/* @__PURE__ */ e("p", { className: s.userTitle, children: t.title }),
|
|
351
|
+
/* @__PURE__ */ e("p", { className: s.title, children: n })
|
|
352
|
+
] })
|
|
353
|
+
] }),
|
|
354
|
+
/* @__PURE__ */ e("div", { className: s.headerItems, children: o })
|
|
355
|
+
]
|
|
356
|
+
}
|
|
357
|
+
);
|
|
358
|
+
}, z = ({
|
|
359
|
+
id: n = "#main:first-of-type"
|
|
360
|
+
}) => {
|
|
361
|
+
const t = () => {
|
|
362
|
+
const a = document.querySelector(n);
|
|
363
|
+
a && (a.tabIndex = -1, a.focus(), setTimeout(() => a.removeAttribute("tabindex"), 1e3));
|
|
364
|
+
}, i = C(x);
|
|
365
|
+
return /* @__PURE__ */ e(
|
|
366
|
+
E,
|
|
367
|
+
{
|
|
368
|
+
onPress: t,
|
|
369
|
+
className: s.skipToContent,
|
|
370
|
+
children: i.format("skipToContent")
|
|
371
|
+
}
|
|
372
|
+
);
|
|
373
|
+
}, Oe = () => {
|
|
374
|
+
const { isOpened: n, setIsOpened: t } = k();
|
|
375
|
+
return n ? /* @__PURE__ */ e(
|
|
376
|
+
"div",
|
|
377
|
+
{
|
|
378
|
+
className: u(s.backdrop, s.backdropOpened),
|
|
379
|
+
onClick: () => {
|
|
380
|
+
t == null || t(!1);
|
|
381
|
+
},
|
|
382
|
+
"aria-hidden": !0
|
|
383
|
+
}
|
|
384
|
+
) : null;
|
|
385
|
+
}, $e = () => {
|
|
386
|
+
var d;
|
|
387
|
+
const { items: n, clientSideRouter: t, clientSideHref: i } = k(), a = C(x), r = (d = n.at(0)) == null ? void 0 : d.items;
|
|
388
|
+
return /* @__PURE__ */ e(
|
|
389
|
+
"nav",
|
|
390
|
+
{
|
|
391
|
+
className: s.navbar,
|
|
392
|
+
"aria-label": a.format("bottomMenu"),
|
|
393
|
+
children: r && /* @__PURE__ */ e("ul", { className: u(s.navbarList), children: t ? /* @__PURE__ */ e(
|
|
394
|
+
w,
|
|
395
|
+
{
|
|
396
|
+
navigate: t,
|
|
397
|
+
useHref: i,
|
|
398
|
+
children: /* @__PURE__ */ e(B, { items: r })
|
|
399
|
+
}
|
|
400
|
+
) : /* @__PURE__ */ e(B, { items: r }) })
|
|
401
|
+
}
|
|
402
|
+
);
|
|
403
|
+
}, B = ({
|
|
404
|
+
items: n
|
|
405
|
+
}) => /* @__PURE__ */ e(O, { children: n.map(({ href: t, active: i, icon: a, title: r, hasBadge: d }, o) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ l(
|
|
406
|
+
y,
|
|
407
|
+
{
|
|
408
|
+
href: t,
|
|
409
|
+
className: u(s.navbarItem),
|
|
410
|
+
"data-active": i,
|
|
411
|
+
"aria-current": i && "page",
|
|
412
|
+
children: [
|
|
413
|
+
/* @__PURE__ */ l(L, { children: [
|
|
414
|
+
/* @__PURE__ */ e(a, { size: 20 }),
|
|
415
|
+
d && /* @__PURE__ */ e(M, {})
|
|
416
|
+
] }),
|
|
417
|
+
r
|
|
418
|
+
]
|
|
419
|
+
}
|
|
420
|
+
) }, o)) }), c = ({
|
|
421
|
+
items: n,
|
|
422
|
+
title: t,
|
|
423
|
+
user: i,
|
|
424
|
+
app: a,
|
|
425
|
+
children: r,
|
|
426
|
+
headerChildren: d,
|
|
427
|
+
clientSideRouter: o,
|
|
428
|
+
clientSideHref: p,
|
|
429
|
+
variant: _,
|
|
430
|
+
className: v
|
|
431
|
+
}) => {
|
|
432
|
+
const [f, m] = b.useState(!1), [h, N] = b.useState(!1), I = b.useId();
|
|
433
|
+
return _ === "external" ? /* @__PURE__ */ e(
|
|
434
|
+
c.Provider,
|
|
435
|
+
{
|
|
436
|
+
items: n,
|
|
437
|
+
title: t,
|
|
438
|
+
user: i,
|
|
439
|
+
app: a,
|
|
440
|
+
clientSideRouter: o,
|
|
441
|
+
clientSideHref: p,
|
|
442
|
+
headerChildren: d,
|
|
443
|
+
isCollapsed: f,
|
|
444
|
+
setIsCollapsed: m,
|
|
445
|
+
variant: _,
|
|
446
|
+
id: I,
|
|
447
|
+
children: /* @__PURE__ */ l("div", { className: u(s.baseLayout, v), children: [
|
|
448
|
+
/* @__PURE__ */ e(z, {}),
|
|
449
|
+
/* @__PURE__ */ e(c.Header, {}),
|
|
450
|
+
/* @__PURE__ */ l("div", { className: s.mainContent, children: [
|
|
451
|
+
/* @__PURE__ */ e(c.Sidebar, {}),
|
|
452
|
+
/* @__PURE__ */ e(S, { children: /* @__PURE__ */ e("main", { className: s.main, children: /* @__PURE__ */ e("div", { className: s.app, children: r }) }) }),
|
|
453
|
+
/* @__PURE__ */ e(c.Backdrop, {})
|
|
454
|
+
] }),
|
|
455
|
+
/* @__PURE__ */ e("div", { className: s.navbarWrapper, children: /* @__PURE__ */ e(c.Navbar, {}) })
|
|
456
|
+
] })
|
|
457
|
+
}
|
|
458
|
+
) : /* @__PURE__ */ e(
|
|
459
|
+
c.Provider,
|
|
460
|
+
{
|
|
461
|
+
items: n,
|
|
462
|
+
title: t,
|
|
463
|
+
user: i,
|
|
464
|
+
app: a,
|
|
465
|
+
clientSideRouter: o,
|
|
466
|
+
clientSideHref: p,
|
|
467
|
+
headerChildren: d,
|
|
468
|
+
isCollapsed: f,
|
|
469
|
+
setIsCollapsed: m,
|
|
470
|
+
isOpened: h,
|
|
471
|
+
setIsOpened: N,
|
|
472
|
+
variant: _,
|
|
473
|
+
id: I,
|
|
474
|
+
children: /* @__PURE__ */ l("div", { className: u(s.baseLayout, v), children: [
|
|
475
|
+
/* @__PURE__ */ e(z, {}),
|
|
476
|
+
/* @__PURE__ */ e(c.Header, {}),
|
|
477
|
+
/* @__PURE__ */ l("div", { className: s.mainContent, children: [
|
|
478
|
+
/* @__PURE__ */ e(c.Sidebar, {}),
|
|
479
|
+
/* @__PURE__ */ e(S, { children: /* @__PURE__ */ e("main", { className: s.main, children: /* @__PURE__ */ e("div", { className: s.app, children: r }) }) }),
|
|
480
|
+
/* @__PURE__ */ e(c.Backdrop, {})
|
|
481
|
+
] })
|
|
482
|
+
] })
|
|
483
|
+
}
|
|
484
|
+
);
|
|
485
|
+
};
|
|
486
|
+
c.Provider = ze;
|
|
487
|
+
c.Header = He;
|
|
488
|
+
c.Sidebar = Pe;
|
|
489
|
+
c.SidebarLink = H;
|
|
490
|
+
c.Navbar = $e;
|
|
491
|
+
c.Backdrop = Oe;
|
|
492
|
+
export {
|
|
493
|
+
He as H,
|
|
494
|
+
c as L,
|
|
495
|
+
$e as N,
|
|
496
|
+
Pe as S,
|
|
497
|
+
H as a
|
|
498
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { $ as ee, a as fe, b as pe, c as $e, d as z, e as be } from "./Collection-D2jVTmDW.js";
|
|
2
2
|
import { $ as ve, b as q, a as H, f as oe, g as ge, h as me, d as he } from "./utils-KLjWgdLR.js";
|
|
3
3
|
import { $ as N, a as xe, b as te, c as Pe, d as De } from "./DragAndDrop-DOXLfJaA.js";
|
|
4
|
-
import { $ as ye, a as Se, b as ke, c as Ee, d as Fe } from "./Separator-
|
|
4
|
+
import { $ as ye, a as Se, b as ke, c as Ee, d as Fe } from "./Separator-DvvVAypT.js";
|
|
5
5
|
import { $ as Me } from "./Text-DcZqSUN9.js";
|
|
6
6
|
import { c as ae, a as M, b as Y, e as we } from "./mergeProps-C1U1OIeJ.js";
|
|
7
7
|
import { $ as L } from "./filterDOMProps-D6KHYVBX.js";
|
|
@@ -9,14 +9,14 @@ import { $ as Be } from "./inertValue-B7loUihk.js";
|
|
|
9
9
|
import s, { forwardRef as re, createContext as ie, useContext as m, useEffect as le, useMemo as C, useRef as O } from "react";
|
|
10
10
|
import { d as Ie } from "./usePress-BW47IcyU.js";
|
|
11
11
|
import { h as Ve, i as He, $ as de, a as Z } from "./useHover-DQvJ3Y-W.js";
|
|
12
|
-
import { d as Le } from "./SelectionManager-
|
|
12
|
+
import { d as Le } from "./SelectionManager-BKrZ_mMO.js";
|
|
13
13
|
import { $ as _e } from "./useFocusWithin-T1ifEM_s.js";
|
|
14
14
|
import { a as Ae } from "./Button-CepQFEit.js";
|
|
15
|
-
import { a as Te, $ as Ce } from "./useListState-
|
|
15
|
+
import { a as Te, $ as Ce } from "./useListState-B3c3xcNW.js";
|
|
16
16
|
import { $ as Oe } from "./context-CGNJ3grH.js";
|
|
17
|
-
import { $ as ze, a as Ne } from "./ListKeyboardDelegate-
|
|
17
|
+
import { $ as ze, a as Ne } from "./ListKeyboardDelegate-CHki611g.js";
|
|
18
18
|
import { $ as Ue } from "./useFocusRing-DOfBqnUN.js";
|
|
19
|
-
import { a as Ke } from "./FocusScope-
|
|
19
|
+
import { a as Ke } from "./FocusScope-DMsfA3bj.js";
|
|
20
20
|
const j = /* @__PURE__ */ new WeakMap();
|
|
21
21
|
function Re(o) {
|
|
22
22
|
return typeof o == "string" ? o.replace(/\s*/g, "") : "" + o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),n=require("./clsx-C11secjj.cjs"),t=require("./ListBoxSection-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),n=require("./clsx-C11secjj.cjs"),t=require("./ListBoxSection-BYJccE4T.cjs"),u=({className:s,children:o,...e})=>i.jsx("button",{type:"button",className:n.clsx(t.styles.listBoxItem,t.styles.listBoxButton,s),...e,children:o});exports.ListBoxButton=u;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { c as i } from "./clsx-OuTLNxxd.js";
|
|
3
|
-
import { s as t } from "./ListBoxSection-
|
|
3
|
+
import { s as t } from "./ListBoxSection-Cicbu8pS.js";
|
|
4
4
|
const l = ({ className: o, children: s, ...m }) => /* @__PURE__ */ r(
|
|
5
5
|
"button",
|
|
6
6
|
{
|