@midas-ds/components 16.1.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.
Files changed (61) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/accordion/index.js +1 -1
  3. package/assets/AccordionItem.css +1 -1
  4. package/assets/Checkbox.css +1 -1
  5. package/assets/ComboBox.css +1 -1
  6. package/assets/Dialog.css +1 -1
  7. package/assets/Layout.css +1 -1
  8. package/assets/ListBox.css +1 -1
  9. package/assets/Popover.css +1 -1
  10. package/assets/ProgressBar.css +1 -1
  11. package/assets/Radio.css +1 -1
  12. package/assets/Select.css +1 -1
  13. package/assets/Select2.css +1 -1
  14. package/assets/Table.css +1 -1
  15. package/assets/Toast.css +1 -1
  16. package/assets/Tooltip.css +1 -1
  17. package/checkbox/index.js +2 -2
  18. package/chunks/AccordionItem-BUUDZ7l6.js +128 -0
  19. package/chunks/{Checkbox-ClhO-AzB.js → Checkbox-CP6Nv9yx.js} +25 -25
  20. package/chunks/{CheckboxGroup-dofHjXkU.js → CheckboxGroup-C5kaqBcn.js} +2 -2
  21. package/chunks/ComboBox-N97lv5kN.js +108 -0
  22. package/chunks/{DateField-ltU-Jvra.js → DateField-DeuLPe1Y.js} +1 -1
  23. package/chunks/{DateRangePicker-CdoVIV-F.js → DateRangePicker-BqjLArNi.js} +1 -1
  24. package/chunks/Dialog-DC0cGNj5.js +66 -0
  25. package/chunks/{Label-DqmNWnmm.js → Label-Dup4lWaR.js} +1 -1
  26. package/chunks/{Layout-DtwVUZus.js → Layout-BFZSROTl.js} +95 -95
  27. package/chunks/{ListBox-D4tO_OrO.js → ListBox-D5BBeZWL.js} +12 -12
  28. package/chunks/{ListBoxLoadMoreItem-D9X8YnwD.js → ListBoxLoadMoreItem-CB67meAb.js} +1 -1
  29. package/chunks/{ListBoxSection-DKHba2X0.js → ListBoxSection-MZB_5DdD.js} +1 -1
  30. package/chunks/{Popover-D9tAN-g7.js → Popover-BcEtFiU1.js} +8 -8
  31. package/chunks/ProgressBar-CbwvcHvk.js +53 -0
  32. package/chunks/Radio-Dro99zCs.js +43 -0
  33. package/chunks/{Select-Bcu1yvbR.js → Select-D-LtFSZX.js} +42 -42
  34. package/chunks/{Select-DAlreRs2.js → Select-nL9iJMlf.js} +117 -117
  35. package/chunks/{Table-B1rlSIhS.js → Table-CgBjwlIi.js} +47 -47
  36. package/chunks/{TextArea-CEiOylOx.js → TextArea-CRvbqqVZ.js} +1 -1
  37. package/chunks/{Toast-DgQ6BTmK.js → Toast-DTwUGSJ8.js} +39 -39
  38. package/chunks/{Tooltip-uNMG_UU-.js → Tooltip-m032jGgF.js} +5 -5
  39. package/combobox/index.js +1 -1
  40. package/date-field/index.js +1 -1
  41. package/date-picker/index.js +1 -1
  42. package/index.js +21 -21
  43. package/label/index.js +1 -1
  44. package/layout/index.js +1 -1
  45. package/legacy-select/index.js +1 -1
  46. package/list-box/index.js +3 -3
  47. package/modal/index.js +1 -1
  48. package/package.json +1 -1
  49. package/popover/index.js +1 -1
  50. package/progress-bar/index.js +1 -1
  51. package/radio/index.js +1 -1
  52. package/select/index.js +1 -1
  53. package/table/index.js +1 -1
  54. package/textfield/index.js +1 -1
  55. package/toast/index.js +1 -1
  56. package/tooltip/index.js +1 -1
  57. package/chunks/AccordionItem-O3_wicV2.js +0 -128
  58. package/chunks/ComboBox-XQqP_jga.js +0 -108
  59. package/chunks/Dialog-x-HLOQFU.js +0 -66
  60. package/chunks/ProgressBar-DXBCKRe_.js +0 -53
  61. package/chunks/Radio-C1AFopLt.js +0 -43
@@ -0,0 +1,108 @@
1
+ import { jsxs as l, jsx as o } from "react/jsx-runtime";
2
+ import g from "react";
3
+ import { ComboBox as y, Input as B, Button as F, Collection as w } from "react-aria-components";
4
+ import { c as s } from "./clsx-AexbMWKp.js";
5
+ import { a as C, L as S } from "./Label-Dup4lWaR.js";
6
+ import { T as u } from "./Text-TWzJxnto.js";
7
+ import { F as h } from "./FieldError-C0HRIcAx.js";
8
+ import { L as v } from "./ListBox-D5BBeZWL.js";
9
+ import { a as R, L as N, b as E } from "./ListBoxSection-MZB_5DdD.js";
10
+ import { C as I } from "./chevron-down-DgT-uSF9.js";
11
+ import { u as T } from "./useLocalizedStringFormatter-ZgRJmvHC.js";
12
+ import '../assets/ComboBox.css';const j = "_combobox_47hgd_1", O = "_inputField_47hgd_6", U = "_medium_47hgd_28", z = "_wrap_47hgd_74", D = "_button_47hgd_80", M = "_icon_47hgd_116", V = "_emptyState_47hgd_122", t = {
13
+ combobox: j,
14
+ inputField: O,
15
+ medium: U,
16
+ wrap: z,
17
+ button: D,
18
+ icon: M,
19
+ emptyState: V
20
+ }, W = { showList: "Show list", noResultsFound: "No results found" }, $ = { showList: "Visa lista", noResultsFound: "Inga träffar" }, k = {
21
+ en: W,
22
+ sv: $
23
+ };
24
+ function to({
25
+ label: e,
26
+ description: i,
27
+ errorMessage: r,
28
+ children: p,
29
+ items: f,
30
+ className: _,
31
+ errorPosition: a = "top",
32
+ size: m = "large",
33
+ popover: b,
34
+ ...n
35
+ }) {
36
+ const d = g.useRef(null), c = T(k), x = (L) => {
37
+ L.currentTarget.value && d.current?.select();
38
+ };
39
+ return /* @__PURE__ */ l(
40
+ y,
41
+ {
42
+ className: s(t.combobox, _),
43
+ ...n,
44
+ "data-readonly": n.isReadOnly || void 0,
45
+ children: [
46
+ /* @__PURE__ */ o(C, { popover: b, children: e && /* @__PURE__ */ o(S, { children: e }) }),
47
+ i && /* @__PURE__ */ o(u, { slot: "description", children: i }),
48
+ a === "top" && /* @__PURE__ */ o(h, { "data-testid": "fieldError", children: r }),
49
+ /* @__PURE__ */ l("div", { className: t.wrap, children: [
50
+ /* @__PURE__ */ o(
51
+ B,
52
+ {
53
+ className: s(t.inputField, {
54
+ [t.medium]: m === "medium"
55
+ }),
56
+ "data-readonly": n.isReadOnly || void 0,
57
+ onMouseUp: x,
58
+ ref: d
59
+ }
60
+ ),
61
+ /* @__PURE__ */ o(
62
+ F,
63
+ {
64
+ className: s(t.button, {
65
+ [t.medium]: m === "medium"
66
+ }),
67
+ "aria-label": c.format("showList"),
68
+ children: /* @__PURE__ */ o(
69
+ "div",
70
+ {
71
+ className: t.icon,
72
+ "aria-hidden": "true",
73
+ children: /* @__PURE__ */ o(
74
+ I,
75
+ {
76
+ size: 20,
77
+ "aria-hidden": !0
78
+ }
79
+ )
80
+ }
81
+ )
82
+ }
83
+ )
84
+ ] }),
85
+ a === "bottom" && /* @__PURE__ */ o(h, { "data-testid": "fieldError", children: r }),
86
+ /* @__PURE__ */ o(R, { children: /* @__PURE__ */ o(
87
+ v,
88
+ {
89
+ items: f,
90
+ renderEmptyState: () => /* @__PURE__ */ o(u, { className: t.emptyState, children: c.format("noResultsFound") }),
91
+ children: p
92
+ }
93
+ ) })
94
+ ]
95
+ }
96
+ );
97
+ }
98
+ function q(e) {
99
+ return /* @__PURE__ */ o(N, { ...e });
100
+ }
101
+ function eo(e) {
102
+ return /* @__PURE__ */ o(E, { ...e, children: /* @__PURE__ */ o(w, { items: e.children, children: (i) => /* @__PURE__ */ o(q, { children: i.name }, i.id) }) });
103
+ }
104
+ export {
105
+ to as C,
106
+ q as a,
107
+ eo as b
108
+ };
@@ -3,7 +3,7 @@ import { DateField as u } from "react-aria-components";
3
3
  import { c as m } from "./clsx-AexbMWKp.js";
4
4
  import { a as _, D as f } from "./DateInputDivider-CkTB5q5k.js";
5
5
  import { F as s } from "./FieldError-C0HRIcAx.js";
6
- import { a as h, L as D } from "./Label-DqmNWnmm.js";
6
+ import { a as h, L as D } from "./Label-Dup4lWaR.js";
7
7
  import { T as b } from "./Text-TWzJxnto.js";
8
8
  import '../assets/DateField.css';const x = "_dateField_y3sba_1", y = "_inputField_y3sba_7", L = "_medium_y3sba_37", i = {
9
9
  dateField: x,
@@ -4,7 +4,7 @@ import { a as m } from "./clsx-AexbMWKp.js";
4
4
  import { C as M, R as N } from "./RangeCalendar-CGk2btOp.js";
5
5
  import { a as p, D as k, b as B } from "./DateInputDivider-CkTB5q5k.js";
6
6
  import { F as h } from "./FieldError-C0HRIcAx.js";
7
- import { a as u, L as y } from "./Label-DqmNWnmm.js";
7
+ import { a as u, L as y } from "./Label-Dup4lWaR.js";
8
8
  import { T as _ } from "./Text-TWzJxnto.js";
9
9
  import { c as C } from "./createLucideIcon-D4r5Phnh.js";
10
10
  import '../assets/DateRangePicker.css';const I = [
@@ -0,0 +1,66 @@
1
+ import { jsx as o, jsxs as e } from "react/jsx-runtime";
2
+ import { ModalOverlay as n, Modal as c, Dialog as i } from "react-aria-components";
3
+ import { B as _ } from "./Button-wBgWrXj3.js";
4
+ import { H as y } from "./Heading-D8tNNJkt.js";
5
+ import { c as v } from "./clsx-AexbMWKp.js";
6
+ import { X as x } from "./x-BXShoIAM.js";
7
+ import { u as f } from "./useLocalizedStringFormatter-ZgRJmvHC.js";
8
+ import '../assets/Dialog.css';const h = "_modal_nxs78_1", p = "_overlay_nxs78_24", g = "_modalHeader_nxs78_48", B = "_modalTitle_nxs78_59", H = "_modalBody_nxs78_65", a = {
9
+ modal: h,
10
+ overlay: p,
11
+ modalHeader: g,
12
+ modalTitle: B,
13
+ modalBody: H
14
+ }, M = { close: "Close" }, N = { close: "Stäng" }, T = {
15
+ en: M,
16
+ sv: N
17
+ }, F = ({
18
+ children: s,
19
+ title: l,
20
+ hideCloseButton: r = !1,
21
+ className: t,
22
+ ...d
23
+ }) => {
24
+ const m = f(T);
25
+ return /* @__PURE__ */ o(
26
+ n,
27
+ {
28
+ ...d,
29
+ className: v(a.overlay, t),
30
+ children: /* @__PURE__ */ o(c, { className: a.modal, children: /* @__PURE__ */ e(i, { children: [
31
+ /* @__PURE__ */ e("div", { className: a.modalHeader, children: [
32
+ /* @__PURE__ */ o("div", { className: a.modalTitle, children: l && /* @__PURE__ */ o(
33
+ y,
34
+ {
35
+ level: 3,
36
+ elementType: "h2",
37
+ slot: "title",
38
+ children: l
39
+ }
40
+ ) }),
41
+ !r && /* @__PURE__ */ o(
42
+ _,
43
+ {
44
+ slot: "close",
45
+ variant: "tertiary",
46
+ icon: x,
47
+ iconPlacement: "right",
48
+ children: m.format("close")
49
+ }
50
+ )
51
+ ] }),
52
+ /* @__PURE__ */ o(
53
+ "div",
54
+ {
55
+ className: a.modalBody,
56
+ tabIndex: -1,
57
+ children: s
58
+ }
59
+ )
60
+ ] }) })
61
+ }
62
+ );
63
+ };
64
+ export {
65
+ F as M
66
+ };
@@ -3,7 +3,7 @@ import * as b from "react";
3
3
  import s from "react";
4
4
  import { c as f } from "./clsx-AexbMWKp.js";
5
5
  import { DialogTrigger as v, Label as d } from "react-aria-components";
6
- import { P as g } from "./Popover-D9tAN-g7.js";
6
+ import { P as g } from "./Popover-BcEtFiU1.js";
7
7
  import { B as u } from "./Button-wBgWrXj3.js";
8
8
  import { I as P } from "./info-kdfED7Wh.js";
9
9
  import { u as _ } from "./useLocalizedStringFormatter-ZgRJmvHC.js";
@@ -1,21 +1,21 @@
1
- import { jsx as e, jsxs as r, Fragment as P } from "react/jsx-runtime";
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 j, RouterProvider as B } from "react-aria-components";
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-uNMG_UU-.js";
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 k } from "./useLocalizedStringFormatter-ZgRJmvHC.js";
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 D } from "./x-BXShoIAM.js";
14
- import '../assets/Layout.css';const q = [
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", q);
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 = "_baseLayout_1xj1b_1", K = "_mainContent_1xj1b_10", Q = "_header_1xj1b_15", U = "_headerExternal_1xj1b_26", V = "_headerContent_1xj1b_41", Y = "_logo_1xj1b_60", Z = "_headerItems_1xj1b_69", ee = "_toggleButton_1xj1b_75", ae = "_sidebar_1xj1b_83", te = "_main_1xj1b_10", ne = "_app_1xj1b_116", se = "_sidebarOpened_1xj1b_124", ie = "_sidebarHeader_1xj1b_128", re = "_appName_1xj1b_140", oe = "_collapseButton_1xj1b_147", le = "_sidebarCollapsed_1xj1b_156", de = "_userName_1xj1b_166", ce = "_userTitle_1xj1b_184", me = "_title_1xj1b_196", pe = "_sidebarNav_1xj1b_207", _e = "_list_1xj1b_213", be = "_listGroupTitle_1xj1b_219", ue = "_listItem_1xj1b_226", he = "_listItemCollapsed_1xj1b_231", xe = "_listLink_1xj1b_235", ve = "_listLinkCollapsed_1xj1b_298", Ne = "_active_1xj1b_303", fe = "_backdrop_1xj1b_330", ke = "_backdropOpened_1xj1b_340", Ce = "_skipToContent_1xj1b_358", ge = "_navbar_1xj1b_372", je = "_navbarList_1xj1b_384", Le = "_navbarItem_1xj1b_406", ye = "_headerContentExternal_1xj1b_457", Ie = "_logoExternalContainer_1xj1b_465", Me = "_logoExternal_1xj1b_465", Ee = "_logoExternalDesktop_1xj1b_477", Te = "_navbarWrapper_1xj1b_486", a = {
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: ie,
42
- appName: re,
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: _e,
50
- listGroupTitle: be,
49
+ list: he,
50
+ listGroupTitle: _e,
51
51
  listItem: ue,
52
- listItemCollapsed: he,
53
- listLink: xe,
52
+ listItemCollapsed: ke,
53
+ listLink: be,
54
54
  listLinkCollapsed: ve,
55
55
  active: Ne,
56
56
  backdrop: fe,
57
- backdropOpened: ke,
58
- skipToContent: Ce,
57
+ backdropOpened: Ce,
58
+ skipToContent: xe,
59
59
  navbar: ge,
60
- navbarList: je,
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: i,
72
+ user: r,
73
73
  app: t,
74
74
  children: o,
75
75
  clientSideRouter: c,
76
76
  clientSideHref: l,
77
- headerChildren: b,
78
- isCollapsed: _,
77
+ headerChildren: _,
78
+ isCollapsed: h,
79
79
  setIsCollapsed: m,
80
- isOpened: h,
80
+ isOpened: k,
81
81
  setIsOpened: p,
82
- variant: x,
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: i,
90
+ user: r,
91
91
  app: t,
92
- headerChildren: b,
93
- isCollapsed: _,
92
+ headerChildren: _,
93
+ isCollapsed: h,
94
94
  setIsCollapsed: m,
95
- isOpened: h,
95
+ isOpened: k,
96
96
  setIsOpened: p,
97
97
  clientSideRouter: c,
98
98
  clientSideHref: l,
99
- variant: x,
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: i,
112
+ icon: r,
113
113
  active: t,
114
114
  hasBadge: o
115
115
  }) => {
116
- const { isCollapsed: c, setIsOpened: l, clientSideHref: b } = f(), _ = b ? b(s) : s, [m, h] = v.useState(!1);
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" && h(t ?? window.location.pathname === _);
119
- }, [t, _]), c ? /* @__PURE__ */ r(H, { children: [
118
+ typeof window < "u" && k(t ?? window.location.pathname === h);
119
+ }, [t, h]), c ? /* @__PURE__ */ i(H, { children: [
120
120
  /* @__PURE__ */ e(
121
- j,
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__ */ r(L, { children: [
131
+ children: /* @__PURE__ */ i(L, { children: [
132
132
  /* @__PURE__ */ e(
133
- i,
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__ */ r(
145
- j,
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__ */ r(L, { children: [
153
- /* @__PURE__ */ e(i, { size: 20 }),
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" }, C = {
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: i,
167
+ isOpened: r,
168
168
  isCollapsed: t,
169
169
  setIsCollapsed: o,
170
170
  setIsOpened: c,
171
171
  clientSideRouter: l,
172
- clientSideHref: b,
173
- id: _
174
- } = f(), m = k(C), h = ({ group: p }) => /* @__PURE__ */ e("ul", { className: a.list, children: p.items.map((x, N) => /* @__PURE__ */ e(
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, { ...x })
181
+ children: /* @__PURE__ */ e(w, { ...b })
182
182
  },
183
183
  "link_" + N
184
184
  )) });
185
185
  return v.useEffect(() => {
186
- const p = (x) => {
187
- x.key === "Escape" && c !== void 0 && c(!1);
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__ */ r(
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
- i && a.sidebarOpened
199
+ r && a.sidebarOpened
200
200
  ),
201
201
  children: [
202
- /* @__PURE__ */ r("div", { className: a.sidebarHeader, children: [
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, x) => /* @__PURE__ */ r("li", { children: [
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: b,
227
- children: /* @__PURE__ */ e(h, { group: p })
226
+ useHref: _,
227
+ children: /* @__PURE__ */ e(k, { group: p })
228
228
  }
229
- ) : /* @__PURE__ */ e(h, { group: p })
230
- ] }, "list_" + x)) })
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: i,
240
+ app: r,
241
241
  isOpened: t,
242
242
  setIsOpened: o,
243
243
  setIsCollapsed: c,
244
244
  headerChildren: l,
245
- variant: b,
246
- id: _
247
- } = f(), m = k(C);
248
- return b === "external" ? /* @__PURE__ */ e("header", { className: u(a.header, a.headerExternal), children: /* @__PURE__ */ r("div", { className: a.headerContentExternal, children: [
249
- /* @__PURE__ */ r("div", { className: a.logoExternalContainer, children: [
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__ */ r("div", { children: [
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__ */ r(
272
+ ] }) }) : /* @__PURE__ */ i(
273
273
  "header",
274
274
  {
275
275
  className: a.header,
276
276
  style: {
277
- borderTop: `solid 4px ${i.color ? i.color : W.brandPrimary}`
277
+ borderTop: `solid 4px ${r.color ? r.color : W.brandPrimary}`
278
278
  },
279
279
  children: [
280
- /* @__PURE__ */ r("div", { className: a.headerContent, children: [
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
- D,
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__ */ r("div", { children: [
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
- }, i = k(C);
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: i.format("skipToContent")
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: i } = f(), t = k(C), o = n.at(0)?.items;
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: i,
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: i, icon: t, title: o, hasBadge: c }, l) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ r(
370
- j,
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": i,
375
- "aria-current": i && "page",
374
+ "data-active": r,
375
+ "aria-current": r && "page",
376
376
  children: [
377
- /* @__PURE__ */ r(L, { children: [
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: i,
387
+ user: r,
388
388
  app: t,
389
389
  children: o,
390
390
  headerChildren: c,
391
391
  clientSideRouter: l,
392
- clientSideHref: b,
393
- variant: _,
392
+ clientSideHref: _,
393
+ variant: h,
394
394
  className: m
395
395
  }) => {
396
- const [h, p] = v.useState(!1), [x, N] = v.useState(!1), E = v.useId();
397
- return _ === "external" ? /* @__PURE__ */ e(
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: i,
402
+ user: r,
403
403
  app: t,
404
404
  clientSideRouter: l,
405
- clientSideHref: b,
405
+ clientSideHref: _,
406
406
  headerChildren: c,
407
- isCollapsed: h,
407
+ isCollapsed: k,
408
408
  setIsCollapsed: p,
409
- variant: _,
409
+ variant: h,
410
410
  id: E,
411
- children: /* @__PURE__ */ r("div", { className: u(a.baseLayout, m), children: [
411
+ children: /* @__PURE__ */ i("div", { className: u(a.baseLayout, m), children: [
412
412
  /* @__PURE__ */ e(S, {}),
413
413
  /* @__PURE__ */ e(d.Header, {}),
414
- /* @__PURE__ */ r("div", { className: a.mainContent, children: [
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: i,
427
+ user: r,
428
428
  app: t,
429
429
  clientSideRouter: l,
430
- clientSideHref: b,
430
+ clientSideHref: _,
431
431
  headerChildren: c,
432
- isCollapsed: h,
432
+ isCollapsed: k,
433
433
  setIsCollapsed: p,
434
- isOpened: x,
434
+ isOpened: b,
435
435
  setIsOpened: N,
436
- variant: _,
436
+ variant: h,
437
437
  id: E,
438
- children: /* @__PURE__ */ r("div", { className: u(a.baseLayout, m), children: [
438
+ children: /* @__PURE__ */ i("div", { className: u(a.baseLayout, m), children: [
439
439
  /* @__PURE__ */ e(S, {}),
440
440
  /* @__PURE__ */ e(d.Header, {}),
441
- /* @__PURE__ */ r("div", { className: a.mainContent, children: [
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, {})