@midas-ds/components 16.7.0 → 16.8.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 CHANGED
@@ -1,3 +1,23 @@
1
+ ## 16.8.0 (2026-02-06)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **components, layout:** add click-event for sidebar links ([#1040](https://github.com/migrationsverket/midas/pull/1040))
6
+
7
+ ## 16.7.1 (2026-02-05)
8
+
9
+ ### 🔧 Maintenance
10
+
11
+ - add version export, add e2e version confirmation ([0215e0591c](https://github.com/migrationsverket/midas/commit/0215e0591c))
12
+
13
+ ### 🧪 Tests updated
14
+
15
+ - add e2e next project ([#1034](https://github.com/migrationsverket/midas/pull/1034))
16
+
17
+ ### 🧱 Updated Dependencies
18
+
19
+ - Updated theme to 3.10.6
20
+
1
21
  ## 16.7.0 (2026-02-05)
2
22
 
3
23
  ### 🚀 Features
@@ -1 +1 @@
1
- ._characterCounter_1f0mh_1{font-size:var(--midas-typography-font-size-20);line-height:var(--midas-typography-line-height-20);font-weight:400;font-family:var(--midas-typography-font-family);color:var(--midas-text-primary);text-align:right;grid-area:Count;align-self:flex-end;margin-bottom:.5rem}._characterCounter_1f0mh_1[data-lonely]{margin-bottom:.25rem}._characterCounter_1f0mh_1[data-exceeded]{color:var(--midas-text-warning)}[data-readonly]>._characterCounter_1f0mh_1{color:var(--midas-text-read-only)}
1
+ ._characterCounter_1cgvx_1{font-size:var(--midas-typography-font-size-20);line-height:var(--midas-typography-line-height-20);font-weight:400;font-family:var(--midas-typography-font-family);color:var(--midas-text-primary);text-align:right;grid-area:Count;align-self:flex-end;margin-bottom:.5rem}._characterCounter_1cgvx_1[data-lonely]{margin-bottom:.25rem}._characterCounter_1cgvx_1[data-exceeded]{color:var(--midas-text-warning)}._characterCounter_1cgvx_1>[data-readonly],[data-readonly] ._characterCounter_1cgvx_1{color:var(--midas-text-read-only)}
@@ -1,4 +1,4 @@
1
- import { C as e } from "../chunks/CharacterCounter-R6vh7AE5.js";
1
+ import { C as e } from "../chunks/CharacterCounter-Dgnv-orm.js";
2
2
  export {
3
3
  e as CharacterCounter
4
4
  };
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as n, jsxs as m } from "react/jsx-runtime";
2
3
  import { c as d } from "./clsx-AexbMWKp.js";
3
4
  import { DisclosureGroup as f, Disclosure as v, DisclosurePanel as C } from "react-aria-components";
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as e, jsxs as h, Fragment as y } from "react/jsx-runtime";
2
3
  import { B as r } from "./Button.module-Cm0H98vy.js";
3
4
  import { useContextProps as B, ButtonContext as x, Button as P } from "react-aria-components";
@@ -1,22 +1,22 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import { forwardRef as i } from "react";
3
- import { useContextProps as d, InputContext as h } from "react-aria-components";
4
- import '../assets/CharacterCounter.css';const C = "_characterCounter_1f0mh_1", m = {
5
- characterCounter: C
6
- }, u = i((t, a) => {
7
- [t] = d(t, a, h);
3
+ import { useContextProps as d, InputContext as C } from "react-aria-components";
4
+ import '../assets/CharacterCounter.css';const h = "_characterCounter_1cgvx_1", u = {
5
+ characterCounter: h
6
+ }, l = i((t, a) => {
7
+ [t] = d(t, a, C);
8
8
  const { maxLength: e, value: n, isLonely: c } = t, { length: r } = n?.toString() ?? "", o = e !== void 0;
9
9
  return /* @__PURE__ */ s(
10
10
  "span",
11
11
  {
12
- className: m.characterCounter,
12
+ className: u.characterCounter,
13
13
  "data-exceeded": o && r > e || void 0,
14
14
  "data-lonely": c || void 0,
15
15
  children: o ? `${r} / ${e}` : r
16
16
  }
17
17
  );
18
18
  });
19
- u.displayName = "CharacterCounter";
19
+ l.displayName = "CharacterCounter";
20
20
  export {
21
- u as C
21
+ l as C
22
22
  };
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as r } from "react/jsx-runtime";
2
3
  import { B as o } from "./Button-CaLOUTDO.js";
3
4
  import { X as i } from "./x-B9bYxG31.js";
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsxs as e, jsx as t } from "react/jsx-runtime";
2
3
  import * as i from "react";
3
4
  import { VisuallyHidden as a } from "react-aria";
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
3
  import y from "react";
3
4
  import { ComboBox as B, Input as F, Button as w, Collection as C } from "react-aria-components";
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as e, jsxs as h } from "react/jsx-runtime";
2
3
  import { Group as x, DatePickerStateContext as F, DateRangePickerStateContext as B, Popover as M, Dialog as S, DatePicker as N, DateRangePicker as R } from "react-aria-components";
3
4
  import { a as k } from "./clsx-AexbMWKp.js";
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as r } from "react/jsx-runtime";
2
3
  import { DropZone as s, FileTrigger as n } from "react-aria-components";
3
4
  import { c as p } from "./clsx-AexbMWKp.js";
@@ -0,0 +1,484 @@
1
+ 'use client';
2
+ import { jsx as e, jsxs as o, Fragment as G } from "react/jsx-runtime";
3
+ import { G as z } from "./GridItem-z7zclNdT.js";
4
+ import * as f from "react";
5
+ import { useState as W, useEffect as j } from "react";
6
+ import { c as b } from "./clsx-AexbMWKp.js";
7
+ import { Link as y, RouterProvider as w } from "react-aria-components";
8
+ import { B as E } from "./Button-CaLOUTDO.js";
9
+ import { a as D, T as q } from "./Tooltip-rDmOkGmX.js";
10
+ import { a as I, B as M } from "./BadgeContainer-CKVsfTlF.js";
11
+ import { c as T } from "./createLucideIcon-CP-mMPfa.js";
12
+ import { u as C } from "./useLocalizedStringFormatter-BHvsRxDk.js";
13
+ import { variables as A } from "@midas-ds/theme";
14
+ import { L } from "./Logo-CCxPAmgw.js";
15
+ import { X as R } from "./x-B9bYxG31.js";
16
+ import '../assets/Layout.css';const $ = [
17
+ ["path", { d: "M4 5h16", key: "1tepv9" }],
18
+ ["path", { d: "M4 12h16", key: "1lakjw" }],
19
+ ["path", { d: "M4 19h16", key: "1djgab" }]
20
+ ], F = T("menu", $);
21
+ const X = [
22
+ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
23
+ ["path", { d: "M9 3v18", key: "fh3hqa" }],
24
+ ["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
25
+ ], J = T("panel-left-close", X);
26
+ const K = [
27
+ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
28
+ ["path", { d: "M9 3v18", key: "fh3hqa" }],
29
+ ["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
30
+ ], Q = T("panel-left-open", K), U = "_baseLayout_1n71v_1", V = "_mainContent_1n71v_10", Y = "_header_1n71v_15", Z = "_headerExternal_1n71v_26", ee = "_headerContent_1n71v_41", ne = "_logo_1n71v_60", ae = "_headerItems_1n71v_69", te = "_toggleButton_1n71v_75", se = "_sidebar_1n71v_83", ie = "_main_1n71v_10", re = "_app_1n71v_116", oe = "_sidebarOpened_1n71v_124", le = "_sidebarHeader_1n71v_128", de = "_appName_1n71v_140", ce = "_collapseButton_1n71v_147", me = "_sidebarCollapsed_1n71v_156", pe = "_userName_1n71v_166", _e = "_userTitle_1n71v_184", ve = "_title_1n71v_196", he = "_sidebarNav_1n71v_207", ue = "_list_1n71v_213", be = "_listGroupTitle_1n71v_219", Ne = "_listItem_1n71v_226", fe = "_listItemCollapsed_1n71v_231", ke = "_listLink_1n71v_235", Ce = "_listLinkCollapsed_1n71v_298", xe = "_active_1n71v_303", ge = "_backdrop_1n71v_321", Le = "_backdropOpened_1n71v_331", ye = "_skipToContent_1n71v_349", Ie = "_navbar_1n71v_363", Me = "_navbarList_1n71v_375", Ee = "_navbarItem_1n71v_397", Te = "_headerContentExternal_1n71v_448", Se = "_logoExternalContainer_1n71v_456", ze = "_logoExternal_1n71v_456", Be = "_logoExternalDesktop_1n71v_468", Oe = "_navbarWrapper_1n71v_477", n = {
31
+ baseLayout: U,
32
+ mainContent: V,
33
+ header: Y,
34
+ headerExternal: Z,
35
+ headerContent: ee,
36
+ logo: ne,
37
+ headerItems: ae,
38
+ toggleButton: te,
39
+ sidebar: se,
40
+ main: ie,
41
+ app: re,
42
+ sidebarOpened: oe,
43
+ sidebarHeader: le,
44
+ appName: de,
45
+ collapseButton: ce,
46
+ sidebarCollapsed: me,
47
+ userName: pe,
48
+ userTitle: _e,
49
+ title: ve,
50
+ sidebarNav: he,
51
+ list: ue,
52
+ listGroupTitle: be,
53
+ listItem: Ne,
54
+ listItemCollapsed: fe,
55
+ listLink: ke,
56
+ listLinkCollapsed: Ce,
57
+ active: xe,
58
+ backdrop: ge,
59
+ backdropOpened: Le,
60
+ skipToContent: ye,
61
+ navbar: Ie,
62
+ navbarList: Me,
63
+ navbarItem: Ee,
64
+ headerContentExternal: Te,
65
+ logoExternalContainer: Se,
66
+ logoExternal: ze,
67
+ logoExternalDesktop: Be,
68
+ navbarWrapper: Oe
69
+ }, P = f.createContext(
70
+ void 0
71
+ ), we = ({
72
+ items: a,
73
+ title: t,
74
+ user: r,
75
+ app: i,
76
+ children: s,
77
+ clientSideRouter: p,
78
+ clientSideHref: d,
79
+ headerChildren: v,
80
+ isCollapsed: _,
81
+ setIsCollapsed: m,
82
+ isOpened: h,
83
+ setIsOpened: N,
84
+ variant: l,
85
+ id: u
86
+ }) => /* @__PURE__ */ e(
87
+ P.Provider,
88
+ {
89
+ value: {
90
+ items: a,
91
+ title: t,
92
+ user: r,
93
+ app: i,
94
+ headerChildren: v,
95
+ isCollapsed: _,
96
+ setIsCollapsed: m,
97
+ isOpened: h,
98
+ setIsOpened: N,
99
+ clientSideRouter: p,
100
+ clientSideHref: d,
101
+ variant: l,
102
+ id: u
103
+ },
104
+ children: s
105
+ }
106
+ ), k = () => {
107
+ const a = f.useContext(P);
108
+ if (!a)
109
+ throw new Error("useLayoutContext must be used within a LayoutProvider");
110
+ return a;
111
+ }, H = ({
112
+ title: a,
113
+ href: t,
114
+ icon: r,
115
+ active: i,
116
+ hasBadge: s,
117
+ onClick: p
118
+ }) => {
119
+ const { isCollapsed: d, setIsOpened: v, clientSideHref: _ } = k(), m = _ ? _(t) : t, [h, N] = W(!1);
120
+ j(() => {
121
+ if (typeof window < "u") {
122
+ const u = window.location.pathname === m || window.location.pathname.startsWith(m + "/");
123
+ N(i ?? u);
124
+ }
125
+ }, [i, m]);
126
+ const l = () => {
127
+ v?.(!1), p && p({
128
+ title: a,
129
+ href: m
130
+ });
131
+ };
132
+ return d ? /* @__PURE__ */ o(D, { children: [
133
+ /* @__PURE__ */ e(
134
+ y,
135
+ {
136
+ href: t,
137
+ "aria-label": a,
138
+ className: b(
139
+ n.listLink,
140
+ n.listLinkCollapsed,
141
+ h && n.active
142
+ ),
143
+ onPress: l,
144
+ children: /* @__PURE__ */ o(I, { children: [
145
+ /* @__PURE__ */ e(
146
+ r,
147
+ {
148
+ size: 20,
149
+ "aria-label": a
150
+ }
151
+ ),
152
+ s && /* @__PURE__ */ e(M, {})
153
+ ] })
154
+ }
155
+ ),
156
+ /* @__PURE__ */ e(q, { placement: "right", children: a })
157
+ ] }) : /* @__PURE__ */ o(
158
+ y,
159
+ {
160
+ href: t,
161
+ "aria-label": a,
162
+ className: b(n.listLink, h && n.active),
163
+ onPress: l,
164
+ children: [
165
+ /* @__PURE__ */ o(I, { children: [
166
+ /* @__PURE__ */ e(r, { size: 20 }),
167
+ s && /* @__PURE__ */ e(M, {})
168
+ ] }),
169
+ a
170
+ ]
171
+ }
172
+ );
173
+ }, Pe = { closeMenu: "Close menu", openMenu: "Open menu", maximizeMenu: "Maximize menu", minimizeMenu: "Minimize menu", sidebarMenu: "Sidebar menu", bottomMenu: "Bottom menu", skipToContent: "Skip to main content" }, He = { closeMenu: "Stäng meny", openMenu: "Öppna meny", maximizeMenu: "Maximera meny", minimizeMenu: "Minimera meny", sidebarMenu: "Sidomeny", bottomMenu: "Bottenmeny", skipToContent: "Hoppa till huvudinnehåll" }, x = {
174
+ en: Pe,
175
+ sv: He
176
+ }, Ge = ({
177
+ onLinkClick: a
178
+ }) => {
179
+ const {
180
+ items: t,
181
+ app: r,
182
+ isOpened: i,
183
+ isCollapsed: s,
184
+ setIsCollapsed: p,
185
+ setIsOpened: d,
186
+ clientSideRouter: v,
187
+ clientSideHref: _,
188
+ id: m
189
+ } = k(), h = C(x), N = ({ group: l }) => /* @__PURE__ */ e("ul", { className: n.list, children: l.items.map((u, g) => /* @__PURE__ */ e(
190
+ "li",
191
+ {
192
+ className: b(
193
+ n.listItem,
194
+ s && n.listItemCollapsed
195
+ ),
196
+ children: /* @__PURE__ */ e(
197
+ H,
198
+ {
199
+ onClick: a,
200
+ ...u
201
+ }
202
+ )
203
+ },
204
+ "link_" + g
205
+ )) });
206
+ return f.useEffect(() => {
207
+ const l = (u) => {
208
+ u.key === "Escape" && d !== void 0 && d(!1);
209
+ };
210
+ return window.addEventListener("keydown", l), () => {
211
+ window.removeEventListener("keydown", l);
212
+ };
213
+ }, [d]), /* @__PURE__ */ o(
214
+ "aside",
215
+ {
216
+ id: m,
217
+ className: b(
218
+ n.sidebar,
219
+ s && n.sidebarCollapsed,
220
+ i && n.sidebarOpened
221
+ ),
222
+ children: [
223
+ /* @__PURE__ */ o("div", { className: n.sidebarHeader, children: [
224
+ !s && /* @__PURE__ */ e("p", { className: n.appName, children: r.name }),
225
+ /* @__PURE__ */ e(
226
+ E,
227
+ {
228
+ variant: "icon",
229
+ "aria-label": s ? h.format("maximizeMenu") : h.format("minimizeMenu"),
230
+ onPress: () => p(!s),
231
+ className: n.collapseButton,
232
+ children: s ? /* @__PURE__ */ e(Q, { size: 20 }) : /* @__PURE__ */ e(J, { size: 20 })
233
+ }
234
+ )
235
+ ] }),
236
+ /* @__PURE__ */ e(
237
+ "nav",
238
+ {
239
+ className: n.sidebarNav,
240
+ "aria-label": h.format("sidebarMenu"),
241
+ children: /* @__PURE__ */ e("ul", { className: n.list, children: t.map((l, u) => /* @__PURE__ */ o("li", { children: [
242
+ l.title && !s && /* @__PURE__ */ e("p", { className: n.listGroupTitle, children: l.title }),
243
+ v ? /* @__PURE__ */ e(
244
+ w,
245
+ {
246
+ navigate: v,
247
+ useHref: _,
248
+ children: /* @__PURE__ */ e(N, { group: l })
249
+ }
250
+ ) : /* @__PURE__ */ e(N, { group: l })
251
+ ] }, "list_" + u)) })
252
+ }
253
+ )
254
+ ]
255
+ }
256
+ );
257
+ }, We = () => {
258
+ const {
259
+ title: a,
260
+ user: t,
261
+ app: r,
262
+ isOpened: i,
263
+ setIsOpened: s,
264
+ setIsCollapsed: p,
265
+ headerChildren: d,
266
+ variant: v,
267
+ id: _
268
+ } = k(), m = C(x);
269
+ return v === "external" ? /* @__PURE__ */ e("header", { className: b(n.header, n.headerExternal), children: /* @__PURE__ */ o("div", { className: n.headerContentExternal, children: [
270
+ /* @__PURE__ */ o("div", { className: n.logoExternalContainer, children: [
271
+ /* @__PURE__ */ e(
272
+ L,
273
+ {
274
+ size: "x-small",
275
+ padding: !1,
276
+ className: n.logoExternal
277
+ }
278
+ ),
279
+ /* @__PURE__ */ e(
280
+ L,
281
+ {
282
+ size: "small",
283
+ padding: !1,
284
+ className: n.logoExternalDesktop
285
+ }
286
+ ),
287
+ /* @__PURE__ */ o("div", { children: [
288
+ /* @__PURE__ */ e("p", { className: n.userName, children: t.name }),
289
+ /* @__PURE__ */ e("p", { className: n.userTitle, children: t.title })
290
+ ] })
291
+ ] }),
292
+ /* @__PURE__ */ e("div", { className: n.headerItems, children: d })
293
+ ] }) }) : /* @__PURE__ */ o(
294
+ "header",
295
+ {
296
+ className: n.header,
297
+ style: {
298
+ borderTop: `solid 4px ${r.color ? r.color : A.brandPrimary}`
299
+ },
300
+ children: [
301
+ /* @__PURE__ */ o("div", { className: n.headerContent, children: [
302
+ /* @__PURE__ */ e("div", { className: n.logo, children: /* @__PURE__ */ e(
303
+ L,
304
+ {
305
+ size: "small",
306
+ padding: !1
307
+ }
308
+ ) }),
309
+ i !== void 0 && /* @__PURE__ */ e(
310
+ E,
311
+ {
312
+ variant: "icon",
313
+ className: n.toggleButton,
314
+ "aria-label": i ? m.format("closeMenu") : m.format("openMenu"),
315
+ "aria-controls": _,
316
+ onPressStart: () => {
317
+ p(!1), s?.(!0);
318
+ },
319
+ children: i ? /* @__PURE__ */ e(
320
+ R,
321
+ {
322
+ size: 20,
323
+ "aria-hidden": "true"
324
+ }
325
+ ) : /* @__PURE__ */ e(
326
+ F,
327
+ {
328
+ size: 20,
329
+ "aria-hidden": "true"
330
+ }
331
+ )
332
+ }
333
+ ),
334
+ /* @__PURE__ */ o("div", { children: [
335
+ /* @__PURE__ */ e("p", { className: n.userName, children: t.name }),
336
+ /* @__PURE__ */ e("p", { className: n.userTitle, children: t.title }),
337
+ /* @__PURE__ */ e("p", { className: n.title, children: a })
338
+ ] })
339
+ ] }),
340
+ /* @__PURE__ */ e("div", { className: n.headerItems, children: d })
341
+ ]
342
+ }
343
+ );
344
+ }, B = ({
345
+ id: a = "main:first-of-type"
346
+ }) => {
347
+ const t = () => {
348
+ const i = document.querySelector(a);
349
+ i && (i.tabIndex = -1, i.focus(), setTimeout(() => i.removeAttribute("tabindex"), 1e3));
350
+ }, r = C(x);
351
+ return /* @__PURE__ */ e(
352
+ E,
353
+ {
354
+ onPress: t,
355
+ className: n.skipToContent,
356
+ children: r.format("skipToContent")
357
+ }
358
+ );
359
+ }, je = () => {
360
+ const { isOpened: a, setIsOpened: t } = k();
361
+ return a ? /* @__PURE__ */ e(
362
+ "div",
363
+ {
364
+ className: b(n.backdrop, n.backdropOpened),
365
+ onClick: () => {
366
+ t?.(!1);
367
+ },
368
+ "aria-hidden": !0
369
+ }
370
+ ) : null;
371
+ }, De = () => {
372
+ const { items: a, clientSideRouter: t, clientSideHref: r } = k(), i = C(x), s = a.at(0)?.items;
373
+ return /* @__PURE__ */ e(
374
+ "nav",
375
+ {
376
+ className: n.navbar,
377
+ "aria-label": i.format("bottomMenu"),
378
+ children: s && /* @__PURE__ */ e("ul", { className: b(n.navbarList), children: t ? /* @__PURE__ */ e(
379
+ w,
380
+ {
381
+ navigate: t,
382
+ useHref: r,
383
+ children: /* @__PURE__ */ e(O, { items: s })
384
+ }
385
+ ) : /* @__PURE__ */ e(O, { items: s }) })
386
+ }
387
+ );
388
+ }, O = ({
389
+ items: a
390
+ }) => /* @__PURE__ */ e(G, { children: a.map(({ href: t, active: r, icon: i, title: s, hasBadge: p }, d) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ o(
391
+ y,
392
+ {
393
+ href: t,
394
+ className: b(n.navbarItem),
395
+ "data-active": r,
396
+ "aria-current": r && "page",
397
+ children: [
398
+ /* @__PURE__ */ o(I, { children: [
399
+ /* @__PURE__ */ e(i, { size: 20 }),
400
+ p && /* @__PURE__ */ e(M, {})
401
+ ] }),
402
+ s
403
+ ]
404
+ }
405
+ ) }, d)) }), c = ({
406
+ items: a,
407
+ title: t,
408
+ user: r,
409
+ app: i,
410
+ children: s,
411
+ headerChildren: p,
412
+ clientSideRouter: d,
413
+ clientSideHref: v,
414
+ variant: _,
415
+ className: m,
416
+ onSidebarLinkClick: h
417
+ }) => {
418
+ const [N, l] = f.useState(!1), [u, g] = f.useState(!1), S = f.useId();
419
+ return _ === "external" ? /* @__PURE__ */ e(
420
+ c.Provider,
421
+ {
422
+ items: a,
423
+ title: t,
424
+ user: r,
425
+ app: i,
426
+ clientSideRouter: d,
427
+ clientSideHref: v,
428
+ headerChildren: p,
429
+ isCollapsed: N,
430
+ setIsCollapsed: l,
431
+ variant: _,
432
+ id: S,
433
+ children: /* @__PURE__ */ o("div", { className: b(n.baseLayout, m), children: [
434
+ /* @__PURE__ */ e(B, {}),
435
+ /* @__PURE__ */ e(c.Header, {}),
436
+ /* @__PURE__ */ o("div", { className: n.mainContent, children: [
437
+ /* @__PURE__ */ e(c.Sidebar, { onLinkClick: h }),
438
+ /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e("main", { className: n.main, children: /* @__PURE__ */ e("div", { className: n.app, children: s }) }) }),
439
+ /* @__PURE__ */ e(c.Backdrop, {})
440
+ ] }),
441
+ /* @__PURE__ */ e("div", { className: n.navbarWrapper, children: /* @__PURE__ */ e(c.Navbar, {}) })
442
+ ] })
443
+ }
444
+ ) : /* @__PURE__ */ e(
445
+ c.Provider,
446
+ {
447
+ items: a,
448
+ title: t,
449
+ user: r,
450
+ app: i,
451
+ clientSideRouter: d,
452
+ clientSideHref: v,
453
+ headerChildren: p,
454
+ isCollapsed: N,
455
+ setIsCollapsed: l,
456
+ isOpened: u,
457
+ setIsOpened: g,
458
+ variant: _,
459
+ id: S,
460
+ children: /* @__PURE__ */ o("div", { className: b(n.baseLayout, m), children: [
461
+ /* @__PURE__ */ e(B, {}),
462
+ /* @__PURE__ */ e(c.Header, {}),
463
+ /* @__PURE__ */ o("div", { className: n.mainContent, children: [
464
+ /* @__PURE__ */ e(c.Sidebar, { onLinkClick: h }),
465
+ /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e("main", { className: n.main, children: /* @__PURE__ */ e("div", { className: n.app, children: s }) }) }),
466
+ /* @__PURE__ */ e(c.Backdrop, {})
467
+ ] })
468
+ ] })
469
+ }
470
+ );
471
+ };
472
+ c.Provider = we;
473
+ c.Header = We;
474
+ c.Sidebar = Ge;
475
+ c.SidebarLink = H;
476
+ c.Navbar = De;
477
+ c.Backdrop = je;
478
+ export {
479
+ We as H,
480
+ c as L,
481
+ De as N,
482
+ Ge as S,
483
+ H as a
484
+ };
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as r, jsxs as u, Fragment as f } from "react/jsx-runtime";
2
3
  import { Link as p } from "react-aria-components";
3
4
  import { c as h } from "./clsx-AexbMWKp.js";
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsxs as f, jsx as c } from "react/jsx-runtime";
2
3
  import { Link as u } from "react-aria-components";
3
4
  import { c as j } from "./clsx-AexbMWKp.js";
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as r, jsxs as n } from "react/jsx-runtime";
2
3
  import { Radio as u, RadioGroup as _, Group as f } from "react-aria-components";
3
4
  import { c as p } from "./clsx-AexbMWKp.js";
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsxs as u, jsx as t } from "react/jsx-runtime";
2
3
  import { s as C } from "./TextField.module-B3n8v1vH.js";
3
4
  import { B as F } from "./Button-CaLOUTDO.js";
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as e, jsxs as b, Fragment as l } from "react/jsx-runtime";
2
3
  import { Tabs as d, Tab as _, composeRenderProps as m, SelectionIndicator as T, TabPanel as f, TabList as u } from "react-aria-components";
3
4
  import { c as o } from "./clsx-AexbMWKp.js";
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as e, jsxs as i, Fragment as b } from "react/jsx-runtime";
2
3
  import { Cell as w, Column as g, useTableOptions as u, Row as N, Button as k, Collection as p, Table as f, TableBody as x, TableHeader as T } from "react-aria-components";
3
4
  import { C as h } from "./Checkbox-CRLj7_Ox.js";
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsxs as c, jsx as s, Fragment as P } from "react/jsx-runtime";
2
3
  import { forwardRef as l, useState as C } from "react";
3
4
  import { useContextProps as p, TextFieldContext as b, TextField as g, InputContext as f, Input as I, TextArea as v } from "react-aria-components";
@@ -7,7 +8,7 @@ import { T as w } from "./Text-Bxww8mmL.js";
7
8
  import { B } from "./Button-CaLOUTDO.js";
8
9
  import { u as L } from "./useLocalizedStringFormatter-BHvsRxDk.js";
9
10
  import { F as u } from "./FieldError-C_3uLAGY.js";
10
- import { C as E } from "./CharacterCounter-R6vh7AE5.js";
11
+ import { C as E } from "./CharacterCounter-Dgnv-orm.js";
11
12
  import { a as S, L as $ } from "./Label-6GZmmff9.js";
12
13
  const x = l(
13
14
  (e, a) => {
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as n, jsxs as c, Fragment as f } from "react/jsx-runtime";
2
3
  import { B as p } from "./Button-CaLOUTDO.js";
3
4
  import { useToast as g, useToastRegion as v } from "react-aria";
package/index.d.ts CHANGED
@@ -41,3 +41,4 @@ export * from './tooltip';
41
41
  export * from './list-box';
42
42
  export * from './menu';
43
43
  export { useLocalizedStringFormatter } from './utils/intl';
44
+ export { VERSION } from './version';