@midas-ds/components 16.2.4 → 16.2.5

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 (54) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/calendar/index.js +1 -1
  3. package/character-counter/CharacterCounter.d.ts +3 -2
  4. package/character-counter/index.js +1 -1
  5. package/checkbox/Checkbox.d.ts +2 -4
  6. package/checkbox/CheckboxGroupItem.d.ts +1 -2
  7. package/checkbox/CheckboxInner.d.ts +2 -2
  8. package/checkbox/SingleCheckbox.d.ts +1 -2
  9. package/checkbox/index.js +2 -2
  10. package/checkbox/types.d.ts +2 -1
  11. package/chunks/CharacterCounter-_m-SgTMV.js +20 -0
  12. package/chunks/Checkbox-gsEu5wcB.js +119 -0
  13. package/chunks/{CheckboxGroup-C5kaqBcn.js → CheckboxGroup-A7UJMi5J.js} +3 -3
  14. package/chunks/{ComboBox-N97lv5kN.js → ComboBox-yl5zHYPk.js} +1 -1
  15. package/chunks/{DateField-DeuLPe1Y.js → DateField-BsT1K-bB.js} +1 -1
  16. package/chunks/{DateRangePicker-BqjLArNi.js → DateRangePicker-BsK7pMRv.js} +2 -2
  17. package/chunks/FieldError-Bc0acYNs.js +21 -0
  18. package/chunks/{Layout-ClW2Lbvq.js → Layout-DX3HUm5b.js} +72 -71
  19. package/chunks/{Radio-Dro99zCs.js → Radio-CSFYbin8.js} +1 -1
  20. package/chunks/{RangeCalendar-CGk2btOp.js → RangeCalendar-BF-6p7u2.js} +1 -1
  21. package/chunks/{SearchField-BfpeANM6.js → SearchField-mBHZ9pFg.js} +1 -1
  22. package/chunks/{Select-nL9iJMlf.js → Select-BjD5iQvX.js} +2 -2
  23. package/chunks/{Select-D-LtFSZX.js → Select-Df4333VV.js} +2 -2
  24. package/chunks/{Table-CgBjwlIi.js → Table-t3rVzb31.js} +1 -1
  25. package/chunks/TextArea-B2BePnZz.js +136 -0
  26. package/combobox/index.js +1 -1
  27. package/date-field/index.js +1 -1
  28. package/date-picker/index.js +1 -1
  29. package/field-error/FieldError.d.ts +3 -2
  30. package/field-error/index.js +1 -1
  31. package/index.js +15 -15
  32. package/layout/components/SidebarLink.d.ts +1 -2
  33. package/layout/index.js +1 -1
  34. package/legacy-select/HiddenMultiSelect.d.ts +2 -2
  35. package/legacy-select/MultiSelectValueTag.d.ts +3 -3
  36. package/legacy-select/Select.d.ts +2 -4
  37. package/legacy-select/index.js +1 -1
  38. package/legacy-select/types.d.ts +2 -1
  39. package/legacy-select/useMultiSelect.d.ts +1 -1
  40. package/package.json +1 -1
  41. package/radio/index.js +1 -1
  42. package/search-field/index.js +1 -1
  43. package/select/index.js +1 -1
  44. package/table/index.js +1 -1
  45. package/textfield/Input.d.ts +3 -2
  46. package/textfield/PasswordField.d.ts +1 -2
  47. package/textfield/TextArea.d.ts +5 -3
  48. package/textfield/TextField.d.ts +5 -3
  49. package/textfield/TextFieldBase.d.ts +3 -3
  50. package/textfield/index.js +1 -1
  51. package/chunks/CharacterCounter-DeuE2det.js +0 -21
  52. package/chunks/Checkbox-CP6Nv9yx.js +0 -122
  53. package/chunks/FieldError-C0HRIcAx.js +0 -23
  54. package/chunks/TextArea-CRvbqqVZ.js +0 -124
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## 16.2.5 (2026-01-09)
2
+
3
+ ### 🏭 Refactoring
4
+
5
+ - **components:** remove React.FC wrapper ([4f156ecf45](https://github.com/migrationsverket/midas/commit/4f156ecf45))
6
+ - remove React.forwardRef ([977fc0260b](https://github.com/migrationsverket/midas/commit/977fc0260b))
7
+
8
+ ### 🔧 Maintenance
9
+
10
+ - accept all shapes of external refs ([340771208d](https://github.com/migrationsverket/midas/commit/340771208d))
11
+ - revert removal of react 18 peerDeps ([8c4b059f56](https://github.com/migrationsverket/midas/commit/8c4b059f56))
12
+ - **checkbox:** assert prop types ([406798b0a1](https://github.com/migrationsverket/midas/commit/406798b0a1))
13
+ - update to react 19 ([7389cceb06](https://github.com/migrationsverket/midas/commit/7389cceb06))
14
+
1
15
  ## 16.2.4 (2026-01-09)
2
16
 
3
17
  ### 🩹 Fixes
package/calendar/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as r, R as n } from "../chunks/RangeCalendar-CGk2btOp.js";
1
+ import { C as r, R as n } from "../chunks/RangeCalendar-BF-6p7u2.js";
2
2
  export {
3
3
  r as Calendar,
4
4
  n as RangeCalendar
@@ -1,6 +1,7 @@
1
+ import { Ref } from 'react';
1
2
  import { InputProps } from 'react-aria-components';
2
- import * as React from 'react';
3
3
  export interface CharacterCounterProps extends InputProps {
4
4
  isLonely?: boolean;
5
+ ref?: Ref<HTMLInputElement>;
5
6
  }
6
- export declare const CharacterCounter: React.ForwardRefExoticComponent<CharacterCounterProps & React.RefAttributes<HTMLInputElement>>;
7
+ export declare const CharacterCounter: ({ ref, ...props }: CharacterCounterProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { C as e } from "../chunks/CharacterCounter-DeuE2det.js";
1
+ import { C as e } from "../chunks/CharacterCounter-_m-SgTMV.js";
2
2
  export {
3
3
  e as CharacterCounter
4
4
  };
@@ -1,4 +1,2 @@
1
- import * as React from 'react';
2
- export declare const Checkbox: React.ForwardRefExoticComponent<import('react-aria').AriaCheckboxProps & import('react-aria-components').SlotProps & {
3
- className?: string;
4
- } & React.RefAttributes<HTMLLabelElement>>;
1
+ import { CheckboxProps } from './types';
2
+ export declare const Checkbox: ({ ref, ...props }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,2 @@
1
1
  import { CheckboxGroupItemProps } from './types';
2
- import * as React from 'react';
3
- export declare const CheckBoxGroupItem: React.ForwardRefExoticComponent<CheckboxGroupItemProps & React.RefAttributes<HTMLLabelElement>>;
2
+ export declare const CheckBoxGroupItem: ({ ref, ...props }: CheckboxGroupItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
2
- export declare const CheckboxInner: React.ForwardRefExoticComponent<import('./types').CheckboxComponentProps & import('react-aria').CheckboxAria & React.RefAttributes<HTMLLabelElement>>;
1
+ import { CheckboxInnerProps } from './types';
2
+ export declare const CheckboxInner: ({ ref, ...props }: CheckboxInnerProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,2 @@
1
1
  import { CheckboxComponentProps } from './types';
2
- import * as React from 'react';
3
- export declare const SingleCheckbox: React.ForwardRefExoticComponent<CheckboxComponentProps & React.RefAttributes<HTMLLabelElement>>;
2
+ export declare const SingleCheckbox: ({ ref, ...props }: CheckboxComponentProps) => import("react/jsx-runtime").JSX.Element;
package/checkbox/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { C as e } from "../chunks/Checkbox-CP6Nv9yx.js";
2
- import { C } from "../chunks/CheckboxGroup-C5kaqBcn.js";
1
+ import { C as e } from "../chunks/Checkbox-gsEu5wcB.js";
2
+ import { C } from "../chunks/CheckboxGroup-A7UJMi5J.js";
3
3
  export {
4
4
  e as Checkbox,
5
5
  C as CheckboxGroup
@@ -3,12 +3,13 @@ import { SlotProps } from 'react-aria-components';
3
3
  import { CheckboxGroupState } from 'react-stately';
4
4
  export type CheckboxProps = AriaCheckboxProps & SlotProps & {
5
5
  className?: string;
6
+ ref?: React.Ref<HTMLLabelElement>;
6
7
  };
7
8
  export interface CheckboxComponentProps extends CheckboxProps {
8
9
  focusRingAria: FocusRingAria;
9
10
  pressResult: PressResult;
10
11
  hoverResult: HoverResult;
11
- inputRef: React.RefObject<HTMLInputElement>;
12
+ inputRef: React.RefObject<HTMLInputElement | null>;
12
13
  }
13
14
  export interface CheckboxGroupItemProps extends CheckboxComponentProps {
14
15
  state: CheckboxGroupState;
@@ -0,0 +1,20 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { useContextProps as h, InputContext as i } from "react-aria-components";
3
+ import '../assets/CharacterCounter.css';const d = "_characterCounter_1f0mh_1", u = {
4
+ characterCounter: d
5
+ }, m = ({ ref: r, ...t }) => {
6
+ [t] = h(t, r, i);
7
+ const { maxLength: e, value: a, isLonely: c } = t, { length: n } = a?.toString() ?? "", o = e !== void 0;
8
+ return /* @__PURE__ */ s(
9
+ "span",
10
+ {
11
+ className: u.characterCounter,
12
+ "data-exceeded": o && n > e || void 0,
13
+ "data-lonely": c || void 0,
14
+ children: o ? `${n} / ${e}` : n
15
+ }
16
+ );
17
+ };
18
+ export {
19
+ m as C
20
+ };
@@ -0,0 +1,119 @@
1
+ import { jsxs as b, jsx as o } from "react/jsx-runtime";
2
+ import v, { useContext as k, useRef as f } from "react";
3
+ import { mergeProps as l, VisuallyHidden as C, useCheckboxGroupItem as _, useCheckbox as R, useHover as I, usePress as P, useFocusRing as g } from "react-aria";
4
+ import { useContextProps as G, CheckboxContext as y, useSlottedContext as z, FormContext as B } from "react-aria-components";
5
+ import { a as u } from "./clsx-AexbMWKp.js";
6
+ import { variables as h } from "@midas-ds/theme";
7
+ import { c as F } from "./createLucideIcon-D4r5Phnh.js";
8
+ import { C as L } from "./check-BxlvVsvD.js";
9
+ import { useToggleState as N } from "@react-stately/toggle";
10
+ import '../assets/Checkbox.css';const S = [["path", { d: "M5 12h14", key: "1ays0h" }]], D = F("minus", S), H = v.createContext(null), O = "_checkboxInner_tzrii_1", j = "_checkbox_tzrii_1", q = "_checkboxGroup_tzrii_143", A = "_checkboxList_tzrii_154", x = {
11
+ checkboxInner: O,
12
+ checkbox: j,
13
+ checkboxGroup: q,
14
+ checkboxList: A
15
+ }, m = ({ ref: t, ...e }) => {
16
+ const { hoverProps: i, isHovered: c } = e.hoverResult, { pressProps: s, isPressed: n } = e.pressResult, { isFocused: a, isFocusVisible: r, focusProps: d } = e.focusRingAria;
17
+ return /* @__PURE__ */ b(
18
+ "label",
19
+ {
20
+ ref: t,
21
+ ...l(i, s, e.labelProps),
22
+ slot: e.slot || void 0,
23
+ className: u(x.checkbox, e.className),
24
+ "data-hovered": c || void 0,
25
+ "data-selected": e.isSelected || void 0,
26
+ "data-indeterminate": e.isIndeterminate || void 0,
27
+ "data-pressed": n || void 0,
28
+ "data-disabled": e.isDisabled || void 0,
29
+ "data-readonly": e.isReadOnly || void 0,
30
+ "data-invalid": e.isInvalid || void 0,
31
+ "data-focused": a || void 0,
32
+ "data-focus-visible": r || void 0,
33
+ "data-required": e.isRequired || void 0,
34
+ children: [
35
+ /* @__PURE__ */ o("div", { className: u(x.checkboxInner), children: e.isIndeterminate ? /* @__PURE__ */ o(
36
+ D,
37
+ {
38
+ size: 14,
39
+ color: h.iconOnColor
40
+ }
41
+ ) : /* @__PURE__ */ o(
42
+ L,
43
+ {
44
+ size: 14,
45
+ color: h.iconOnColor
46
+ }
47
+ ) }),
48
+ /* @__PURE__ */ o(C, { children: /* @__PURE__ */ o(
49
+ "input",
50
+ {
51
+ ...l(e.inputProps, d),
52
+ ref: e.inputRef
53
+ }
54
+ ) }),
55
+ e.children
56
+ ]
57
+ }
58
+ );
59
+ }, M = ({ ref: t, ...e }) => {
60
+ const i = _(
61
+ {
62
+ ...e,
63
+ value: e.value || ""
64
+ },
65
+ e.state,
66
+ e.inputRef
67
+ );
68
+ return /* @__PURE__ */ o(
69
+ m,
70
+ {
71
+ ...e,
72
+ ...i,
73
+ ref: t
74
+ }
75
+ );
76
+ }, V = ({ ref: t, ...e }) => {
77
+ const i = R(e, N(e), e.inputRef);
78
+ return /* @__PURE__ */ o(
79
+ m,
80
+ {
81
+ ...e,
82
+ ...i,
83
+ ref: t
84
+ }
85
+ );
86
+ }, Y = ({ ref: t, ...e }) => {
87
+ [e, t] = G(e, t, y);
88
+ const i = z(B), c = e.validationBehavior ?? i?.validationBehavior ?? "native", s = k(H), n = f(null), a = I(e), r = P({
89
+ ref: t,
90
+ isDisabled: e.isDisabled
91
+ }), d = g();
92
+ return s ? /* @__PURE__ */ o(
93
+ M,
94
+ {
95
+ ...e,
96
+ state: s,
97
+ inputRef: n,
98
+ hoverResult: a,
99
+ pressResult: r,
100
+ focusRingAria: d,
101
+ validationBehavior: c
102
+ }
103
+ ) : /* @__PURE__ */ o(
104
+ V,
105
+ {
106
+ ...e,
107
+ inputRef: n,
108
+ hoverResult: a,
109
+ pressResult: r,
110
+ focusRingAria: d,
111
+ validationBehavior: c
112
+ }
113
+ );
114
+ };
115
+ export {
116
+ Y as C,
117
+ H as a,
118
+ x as s
119
+ };
@@ -4,14 +4,14 @@ import { useCheckboxGroupState as v } from "react-stately";
4
4
  import { a as k, L as S } from "./Label-Dup4lWaR.js";
5
5
  import { T as y } from "./Text-TWzJxnto.js";
6
6
  import * as r from "react";
7
- import { C as d, s as u, a as g } from "./Checkbox-CP6Nv9yx.js";
7
+ import { C as d, s as u, a as g } from "./Checkbox-gsEu5wcB.js";
8
8
  import { FieldErrorContext as A } from "react-aria-components";
9
- import { F as P } from "./FieldError-C0HRIcAx.js";
9
+ import { F as P } from "./FieldError-Bc0acYNs.js";
10
10
  import { u as V } from "./useLocalizedStringFormatter-ZgRJmvHC.js";
11
11
  const F = (e, { value: t }) => {
12
12
  const a = r.Children.toArray(e).filter(
13
13
  (l) => r.isValidElement(l) && l.type === d
14
- ), c = r.Children.count(a), n = r.Children.toArray(e).filter((l) => r.isValidElement(l)).filter((l) => !!l && l.type === d).map((l) => l.props.value), s = t.length === 0, i = t.length === c;
14
+ ), c = r.Children.count(a), n = r.Children.toArray(e).filter((l) => r.isValidElement(l)).filter((l) => !!l && l.type === d).map((l) => l.props.value || ""), s = t.length === 0, i = t.length === c;
15
15
  return {
16
16
  allSelected: i,
17
17
  someSelected: !s && !i,
@@ -4,7 +4,7 @@ import { ComboBox as y, Input as B, Button as F, Collection as w } from "react-a
4
4
  import { c as s } from "./clsx-AexbMWKp.js";
5
5
  import { a as C, L as S } from "./Label-Dup4lWaR.js";
6
6
  import { T as u } from "./Text-TWzJxnto.js";
7
- import { F as h } from "./FieldError-C0HRIcAx.js";
7
+ import { F as h } from "./FieldError-Bc0acYNs.js";
8
8
  import { L as v } from "./ListBox-D5BBeZWL.js";
9
9
  import { a as R, L as N, b as E } from "./ListBoxSection-MZB_5DdD.js";
10
10
  import { C as I } from "./chevron-down-DgT-uSF9.js";
@@ -2,7 +2,7 @@ import { jsxs as F, jsx as e } from "react/jsx-runtime";
2
2
  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
- import { F as s } from "./FieldError-C0HRIcAx.js";
5
+ import { F as s } from "./FieldError-Bc0acYNs.js";
6
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 = {
@@ -1,9 +1,9 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
2
  import { Group as P, Button as b, Popover as f, Dialog as v, DatePicker as x, DateRangePicker as F } from "react-aria-components";
3
3
  import { a as m } from "./clsx-AexbMWKp.js";
4
- import { C as M, R as N } from "./RangeCalendar-CGk2btOp.js";
4
+ import { C as M, R as N } from "./RangeCalendar-BF-6p7u2.js";
5
5
  import { a as p, D as k, b as B } from "./DateInputDivider-CkTB5q5k.js";
6
- import { F as h } from "./FieldError-C0HRIcAx.js";
6
+ import { F as h } from "./FieldError-Bc0acYNs.js";
7
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";
@@ -0,0 +1,21 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { useContext as l } from "react";
3
+ import { FieldErrorContext as c, FieldError as f } from "react-aria-components";
4
+ import { c as m } from "./clsx-AexbMWKp.js";
5
+ import { T as d } from "./Text-TWzJxnto.js";
6
+ import '../assets/FieldError.css';const a = "_fieldError_u3cks_1", E = {
7
+ fieldError: a
8
+ }, v = ({ ref: s, ...r }) => {
9
+ const { children: o, isInvalid: n } = r, t = m(E.fieldError, r.className), e = l(c);
10
+ return !e && n && typeof o != "function" ? /* @__PURE__ */ i(d, { className: t, children: o }) : e?.isInvalid ? /* @__PURE__ */ i(
11
+ f,
12
+ {
13
+ ...r,
14
+ ref: s,
15
+ className: t
16
+ }
17
+ ) : null;
18
+ };
19
+ export {
20
+ v as F
21
+ };
@@ -1,72 +1,73 @@
1
1
  import { jsx as e, jsxs as r, Fragment as H } from "react/jsx-runtime";
2
2
  import { G as S } from "./GridItem-5t1Z14sM.js";
3
3
  import * as N from "react";
4
+ import { useState as G, useEffect as W } from "react";
4
5
  import { c as u } from "./clsx-AexbMWKp.js";
5
6
  import { Link as L, RouterProvider as O } from "react-aria-components";
6
7
  import { B as M } from "./Button-wBgWrXj3.js";
7
- import { a as G, T as W } from "./Tooltip-m032jGgF.js";
8
+ import { a as j, T as D } from "./Tooltip-m032jGgF.js";
8
9
  import { a as y, B as I } from "./BadgeContainer-CKVsfTlF.js";
9
10
  import { c as E } from "./createLucideIcon-D4r5Phnh.js";
10
11
  import { u as C } from "./useLocalizedStringFormatter-ZgRJmvHC.js";
11
- import { variables as j } from "@midas-ds/theme";
12
+ import { variables as q } from "@midas-ds/theme";
12
13
  import { L as g } from "./Logo-InDSslpO.js";
13
- import { X as D } from "./x-BXShoIAM.js";
14
- import '../assets/Layout.css';const q = [
14
+ import { X as A } from "./x-BXShoIAM.js";
15
+ import '../assets/Layout.css';const R = [
15
16
  ["path", { d: "M4 12h16", key: "1lakjw" }],
16
17
  ["path", { d: "M4 18h16", key: "19g7jn" }],
17
18
  ["path", { d: "M4 6h16", key: "1o0s65" }]
18
- ], A = E("menu", q);
19
- const R = [
19
+ ], $ = E("menu", R);
20
+ const F = [
20
21
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
21
22
  ["path", { d: "M9 3v18", key: "fh3hqa" }],
22
23
  ["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
23
- ], $ = E("panel-left-close", R);
24
- const F = [
24
+ ], X = E("panel-left-close", F);
25
+ const J = [
25
26
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
26
27
  ["path", { d: "M9 3v18", key: "fh3hqa" }],
27
28
  ["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
28
- ], X = E("panel-left-open", F), J = "_baseLayout_1n71v_1", K = "_mainContent_1n71v_10", Q = "_header_1n71v_15", U = "_headerExternal_1n71v_26", V = "_headerContent_1n71v_41", Y = "_logo_1n71v_60", Z = "_headerItems_1n71v_69", ee = "_toggleButton_1n71v_75", ae = "_sidebar_1n71v_83", ne = "_main_1n71v_10", te = "_app_1n71v_116", se = "_sidebarOpened_1n71v_124", ie = "_sidebarHeader_1n71v_128", re = "_appName_1n71v_140", oe = "_collapseButton_1n71v_147", le = "_sidebarCollapsed_1n71v_156", de = "_userName_1n71v_166", ce = "_userTitle_1n71v_184", me = "_title_1n71v_196", pe = "_sidebarNav_1n71v_207", _e = "_list_1n71v_213", ve = "_listGroupTitle_1n71v_219", ue = "_listItem_1n71v_226", he = "_listItemCollapsed_1n71v_231", be = "_listLink_1n71v_235", Ne = "_listLinkCollapsed_1n71v_298", fe = "_active_1n71v_303", ke = "_backdrop_1n71v_321", Ce = "_backdropOpened_1n71v_331", xe = "_skipToContent_1n71v_349", ge = "_navbar_1n71v_363", Le = "_navbarList_1n71v_375", ye = "_navbarItem_1n71v_397", Ie = "_headerContentExternal_1n71v_448", Me = "_logoExternalContainer_1n71v_456", Ee = "_logoExternal_1n71v_456", Te = "_logoExternalDesktop_1n71v_468", Se = "_navbarWrapper_1n71v_477", a = {
29
- baseLayout: J,
30
- mainContent: K,
31
- header: Q,
32
- headerExternal: U,
33
- headerContent: V,
34
- logo: Y,
35
- headerItems: Z,
36
- toggleButton: ee,
37
- sidebar: ae,
38
- main: ne,
39
- app: te,
40
- sidebarOpened: se,
41
- sidebarHeader: ie,
42
- appName: re,
43
- collapseButton: oe,
44
- sidebarCollapsed: le,
45
- userName: de,
46
- userTitle: ce,
47
- title: me,
48
- sidebarNav: pe,
49
- list: _e,
50
- listGroupTitle: ve,
51
- listItem: ue,
52
- listItemCollapsed: he,
53
- listLink: be,
54
- listLinkCollapsed: Ne,
55
- active: fe,
56
- backdrop: ke,
57
- backdropOpened: Ce,
58
- skipToContent: xe,
59
- navbar: ge,
60
- navbarList: Le,
61
- navbarItem: ye,
62
- headerContentExternal: Ie,
63
- logoExternalContainer: Me,
64
- logoExternal: Ee,
65
- logoExternalDesktop: Te,
66
- navbarWrapper: Se
29
+ ], K = E("panel-left-open", J), Q = "_baseLayout_1n71v_1", U = "_mainContent_1n71v_10", V = "_header_1n71v_15", Y = "_headerExternal_1n71v_26", Z = "_headerContent_1n71v_41", ee = "_logo_1n71v_60", ae = "_headerItems_1n71v_69", ne = "_toggleButton_1n71v_75", te = "_sidebar_1n71v_83", se = "_main_1n71v_10", ie = "_app_1n71v_116", re = "_sidebarOpened_1n71v_124", oe = "_sidebarHeader_1n71v_128", le = "_appName_1n71v_140", de = "_collapseButton_1n71v_147", ce = "_sidebarCollapsed_1n71v_156", me = "_userName_1n71v_166", pe = "_userTitle_1n71v_184", _e = "_title_1n71v_196", ve = "_sidebarNav_1n71v_207", ue = "_list_1n71v_213", he = "_listGroupTitle_1n71v_219", be = "_listItem_1n71v_226", Ne = "_listItemCollapsed_1n71v_231", fe = "_listLink_1n71v_235", ke = "_listLinkCollapsed_1n71v_298", Ce = "_active_1n71v_303", xe = "_backdrop_1n71v_321", ge = "_backdropOpened_1n71v_331", Le = "_skipToContent_1n71v_349", ye = "_navbar_1n71v_363", Ie = "_navbarList_1n71v_375", Me = "_navbarItem_1n71v_397", Ee = "_headerContentExternal_1n71v_448", Te = "_logoExternalContainer_1n71v_456", Se = "_logoExternal_1n71v_456", ze = "_logoExternalDesktop_1n71v_468", Be = "_navbarWrapper_1n71v_477", a = {
30
+ baseLayout: Q,
31
+ mainContent: U,
32
+ header: V,
33
+ headerExternal: Y,
34
+ headerContent: Z,
35
+ logo: ee,
36
+ headerItems: ae,
37
+ toggleButton: ne,
38
+ sidebar: te,
39
+ main: se,
40
+ app: ie,
41
+ sidebarOpened: re,
42
+ sidebarHeader: oe,
43
+ appName: le,
44
+ collapseButton: de,
45
+ sidebarCollapsed: ce,
46
+ userName: me,
47
+ userTitle: pe,
48
+ title: _e,
49
+ sidebarNav: ve,
50
+ list: ue,
51
+ listGroupTitle: he,
52
+ listItem: be,
53
+ listItemCollapsed: Ne,
54
+ listLink: fe,
55
+ listLinkCollapsed: ke,
56
+ active: Ce,
57
+ backdrop: xe,
58
+ backdropOpened: ge,
59
+ skipToContent: Le,
60
+ navbar: ye,
61
+ navbarList: Ie,
62
+ navbarItem: Me,
63
+ headerContentExternal: Ee,
64
+ logoExternalContainer: Te,
65
+ logoExternal: Se,
66
+ logoExternalDesktop: ze,
67
+ navbarWrapper: Be
67
68
  }, w = N.createContext(
68
69
  void 0
69
- ), ze = ({
70
+ ), Oe = ({
70
71
  items: t,
71
72
  title: s,
72
73
  user: i,
@@ -113,13 +114,13 @@ const F = [
113
114
  active: n,
114
115
  hasBadge: o
115
116
  }) => {
116
- const { isCollapsed: m, setIsOpened: d, clientSideHref: v } = k(), _ = v ? v(s) : s, [p, h] = N.useState(!1);
117
- return N.useEffect(() => {
117
+ const { isCollapsed: m, setIsOpened: d, clientSideHref: v } = k(), _ = v ? v(s) : s, [p, h] = G(!1);
118
+ return W(() => {
118
119
  if (typeof window < "u") {
119
120
  const l = window.location.pathname === _ || window.location.pathname.startsWith(_ + "/");
120
121
  h(n ?? l);
121
122
  }
122
- }, [n, _]), m ? /* @__PURE__ */ r(G, { children: [
123
+ }, [n, _]), m ? /* @__PURE__ */ r(j, { children: [
123
124
  /* @__PURE__ */ e(
124
125
  L,
125
126
  {
@@ -143,7 +144,7 @@ const F = [
143
144
  ] })
144
145
  }
145
146
  ),
146
- /* @__PURE__ */ e(W, { placement: "right", children: t })
147
+ /* @__PURE__ */ e(D, { placement: "right", children: t })
147
148
  ] }) : /* @__PURE__ */ r(
148
149
  L,
149
150
  {
@@ -160,10 +161,10 @@ const F = [
160
161
  ]
161
162
  }
162
163
  );
163
- }, Be = { closeMenu: "Close menu", openMenu: "Open menu", maximizeMenu: "Maximize menu", minimizeMenu: "Minimize menu", sidebarMenu: "Sidebar menu", bottomMenu: "Bottom menu", skipToContent: "Skip to main content" }, Oe = { closeMenu: "Stäng meny", openMenu: "Öppna meny", maximizeMenu: "Maximera meny", minimizeMenu: "Minimera meny", sidebarMenu: "Sidomeny", bottomMenu: "Bottenmeny", skipToContent: "Hoppa till huvudinnehåll" }, x = {
164
- en: Be,
165
- sv: Oe
166
- }, we = () => {
164
+ }, we = { closeMenu: "Close menu", openMenu: "Open menu", maximizeMenu: "Maximize menu", minimizeMenu: "Minimize menu", sidebarMenu: "Sidebar menu", bottomMenu: "Bottom menu", skipToContent: "Skip to main content" }, Pe = { closeMenu: "Stäng meny", openMenu: "Öppna meny", maximizeMenu: "Maximera meny", minimizeMenu: "Minimera meny", sidebarMenu: "Sidomeny", bottomMenu: "Bottenmeny", skipToContent: "Hoppa till huvudinnehåll" }, x = {
165
+ en: we,
166
+ sv: Pe
167
+ }, He = () => {
167
168
  const {
168
169
  items: t,
169
170
  app: s,
@@ -211,7 +212,7 @@ const F = [
211
212
  "aria-label": n ? p.format("maximizeMenu") : p.format("minimizeMenu"),
212
213
  onPress: () => o(!n),
213
214
  className: a.collapseButton,
214
- children: n ? /* @__PURE__ */ e(X, { size: 20 }) : /* @__PURE__ */ e($, { size: 20 })
215
+ children: n ? /* @__PURE__ */ e(K, { size: 20 }) : /* @__PURE__ */ e(X, { size: 20 })
215
216
  }
216
217
  )
217
218
  ] }),
@@ -236,7 +237,7 @@ const F = [
236
237
  ]
237
238
  }
238
239
  );
239
- }, Pe = () => {
240
+ }, Ge = () => {
240
241
  const {
241
242
  title: t,
242
243
  user: s,
@@ -277,7 +278,7 @@ const F = [
277
278
  {
278
279
  className: a.header,
279
280
  style: {
280
- borderTop: `solid 4px ${i.color ? i.color : j.brandPrimary}`
281
+ borderTop: `solid 4px ${i.color ? i.color : q.brandPrimary}`
281
282
  },
282
283
  children: [
283
284
  /* @__PURE__ */ r("div", { className: a.headerContent, children: [
@@ -299,13 +300,13 @@ const F = [
299
300
  m(!1), o?.(!0);
300
301
  },
301
302
  children: n ? /* @__PURE__ */ e(
302
- D,
303
+ A,
303
304
  {
304
305
  size: 20,
305
306
  "aria-hidden": "true"
306
307
  }
307
308
  ) : /* @__PURE__ */ e(
308
- A,
309
+ $,
309
310
  {
310
311
  size: 20,
311
312
  "aria-hidden": "true"
@@ -338,7 +339,7 @@ const F = [
338
339
  children: i.format("skipToContent")
339
340
  }
340
341
  );
341
- }, He = () => {
342
+ }, We = () => {
342
343
  const { isOpened: t, setIsOpened: s } = k();
343
344
  return t ? /* @__PURE__ */ e(
344
345
  "div",
@@ -350,7 +351,7 @@ const F = [
350
351
  "aria-hidden": !0
351
352
  }
352
353
  ) : null;
353
- }, Ge = () => {
354
+ }, je = () => {
354
355
  const { items: t, clientSideRouter: s, clientSideHref: i } = k(), n = C(x), o = t.at(0)?.items;
355
356
  return /* @__PURE__ */ e(
356
357
  "nav",
@@ -450,16 +451,16 @@ const F = [
450
451
  }
451
452
  );
452
453
  };
453
- c.Provider = ze;
454
- c.Header = Pe;
455
- c.Sidebar = we;
454
+ c.Provider = Oe;
455
+ c.Header = Ge;
456
+ c.Sidebar = He;
456
457
  c.SidebarLink = P;
457
- c.Navbar = Ge;
458
- c.Backdrop = He;
458
+ c.Navbar = je;
459
+ c.Backdrop = We;
459
460
  export {
460
- Pe as H,
461
+ Ge as H,
461
462
  c as L,
462
- Ge as N,
463
- we as S,
463
+ je as N,
464
+ He as S,
464
465
  P as a
465
466
  };
@@ -3,7 +3,7 @@ import { Radio as u, RadioGroup as _, Group as f } from "react-aria-components";
3
3
  import { c as p } from "./clsx-AexbMWKp.js";
4
4
  import { a as G, L as R } from "./Label-Dup4lWaR.js";
5
5
  import { T as h } from "./Text-TWzJxnto.js";
6
- import { F as t } from "./FieldError-C0HRIcAx.js";
6
+ import { F as t } from "./FieldError-Bc0acYNs.js";
7
7
  import '../assets/Radio.css';const x = "_radioGroup_1ls9z_1", w = "_wrap_1ls9z_12", z = "_radio_1ls9z_1", s = {
8
8
  radioGroup: x,
9
9
  wrap: w,
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, jsxs as o } from "react/jsx-runtime";
2
2
  import { RangeCalendarContext as h, CalendarGrid as C, CalendarCell as g, Calendar as v, RangeCalendar as _ } from "react-aria-components";
3
3
  import { c as p, a as l } from "./clsx-AexbMWKp.js";
4
- import { F as c } from "./FieldError-C0HRIcAx.js";
4
+ import { F as c } from "./FieldError-Bc0acYNs.js";
5
5
  import * as y from "react";
6
6
  import { B as i } from "./Button-wBgWrXj3.js";
7
7
  import { H as f } from "./Heading-D8tNNJkt.js";
@@ -5,7 +5,7 @@ import { c as l } from "./clsx-AexbMWKp.js";
5
5
  import * as x from "react";
6
6
  import { useSearchFieldState as j } from "react-stately";
7
7
  import { useSearchField as C } from "react-aria";
8
- import { F as f } from "./FieldError-C0HRIcAx.js";
8
+ import { F as f } from "./FieldError-Bc0acYNs.js";
9
9
  import { c as p } from "./createLucideIcon-D4r5Phnh.js";
10
10
  import { X as B } from "./x-BXShoIAM.js";
11
11
  import { u as D } from "./useLocalizedStringFormatter-ZgRJmvHC.js";
@@ -19,11 +19,11 @@ import { useFormValidation as ce } from "@react-aria/form";
19
19
  import { useVisuallyHidden as de } from "@react-aria/visually-hidden";
20
20
  import { a as ue, L as me } from "./Label-Dup4lWaR.js";
21
21
  import { T as ge } from "./Text-TWzJxnto.js";
22
- import { C as fe } from "./Checkbox-CP6Nv9yx.js";
22
+ import { C as fe } from "./Checkbox-gsEu5wcB.js";
23
23
  import { X as pe } from "./x-BXShoIAM.js";
24
24
  import { u as B } from "./useLocalizedStringFormatter-ZgRJmvHC.js";
25
25
  import { C as ye } from "./chevron-down-DgT-uSF9.js";
26
- import { F as he } from "./FieldError-C0HRIcAx.js";
26
+ import { F as he } from "./FieldError-Bc0acYNs.js";
27
27
  import '../assets/Select2.css';const T = ({ item: e }) => /* @__PURE__ */ o(
28
28
  X,
29
29
  {
@@ -4,9 +4,9 @@ import { FocusScope as b } from "@react-aria/focus";
4
4
  import { a as T, L as N } from "./Label-Dup4lWaR.js";
5
5
  import { a as y, c as h } from "./clsx-AexbMWKp.js";
6
6
  import { T as B } from "./Text-TWzJxnto.js";
7
- import { F as _ } from "./FieldError-C0HRIcAx.js";
7
+ import { F as _ } from "./FieldError-Bc0acYNs.js";
8
8
  import f, { useContext as p } from "react";
9
- import { C as L } from "./Checkbox-CP6Nv9yx.js";
9
+ import { C as L } from "./Checkbox-gsEu5wcB.js";
10
10
  import { u } from "./useLocalizedStringFormatter-ZgRJmvHC.js";
11
11
  import { useFocusManager as M } from "react-aria";
12
12
  import { X as F } from "./x-BXShoIAM.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as e, jsxs as i, Fragment as b } from "react/jsx-runtime";
2
2
  import { Table as w, useTableOptions as u, TableHeader as g, Collection as p, Row as N, Button as k, Column as f, Cell as x, TableBody as T } from "react-aria-components";
3
- import { C as h } from "./Checkbox-CP6Nv9yx.js";
3
+ import { C as h } from "./Checkbox-gsEu5wcB.js";
4
4
  import { c as a } from "./clsx-AexbMWKp.js";
5
5
  import { c as d } from "./createLucideIcon-D4r5Phnh.js";
6
6
  import '../assets/Table.css';const C = [