@midas-ds/components 17.30.0 → 17.30.2

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 (144) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/accordion/index.js +1 -1
  3. package/badge/index.js +1 -1
  4. package/breadcrumbs/index.js +1 -1
  5. package/button/index.js +1 -1
  6. package/calendar/index.js +1 -1
  7. package/card/index.js +1 -1
  8. package/checkbox/index.js +1 -1
  9. package/chunks/{accordion-BzmYSOS3.js → accordion-DlVM6IKH.js} +3 -3
  10. package/chunks/{badge-BfK6XrlL.js → badge-C4bXJmhn.js} +1 -1
  11. package/chunks/{breadcrumbs-DV0ZJc62.js → breadcrumbs-BGnyY3bO.js} +1 -1
  12. package/chunks/{button-C-WkFek9.js → button-dpe6hXmI.js} +2 -2
  13. package/chunks/{calendar-Bt1FLxqr.js → calendar-BnT8aqrk.js} +46 -45
  14. package/chunks/{card-CdH2UMUW.js → card-C0S9Kyi2.js} +3 -3
  15. package/chunks/{checkbox-DiFQy3MS.js → checkbox-B1RWLsu9.js} +4 -4
  16. package/chunks/{clear-button-Bv0YGBNG.js → clear-button-DWtOkhCH.js} +1 -1
  17. package/chunks/clsx-DAqHMl_k.js +7 -0
  18. package/chunks/{color-scheme-switch-0axiBsna.js → color-scheme-switch-DVyIszaD.js} +4 -4
  19. package/chunks/{combobox-DkZbA3o4.js → combobox-BLAVO2ax.js} +5 -5
  20. package/chunks/{date-field-CPpWZqws.js → date-field-D5QLfSD_.js} +5 -5
  21. package/chunks/date-picker-BWSHiwIN.js +142 -0
  22. package/chunks/{drop-zone-DH3ZyHsr.js → drop-zone-DNhEbH4w.js} +1 -1
  23. package/chunks/{field-error-LtNtEKDp.js → field-error-BHoPnRe4.js} +2 -2
  24. package/chunks/{file-list-D8Zc1aYS.js → file-list-Ntos8dkG.js} +4 -4
  25. package/chunks/{grid-Cn_8RSvj.js → grid-BR68fpvW.js} +1 -1
  26. package/chunks/{heading-BEl_z-5T.js → heading-DcOjYrUM.js} +1 -1
  27. package/chunks/{info-banner-BVKtmVKN.js → info-banner-DXjPEG69.js} +2 -2
  28. package/chunks/{label-Dw5p84T2.js → label-pGlER0ro.js} +4 -4
  29. package/chunks/{layout-CUAjEEuH.js → layout-Bue2Lkbc.js} +6 -6
  30. package/chunks/{link-DHu1cTmz.js → link-B76JDA2N.js} +1 -1
  31. package/chunks/{link-button-DYg_0p4Y.js → link-button-BeXxC22w.js} +1 -1
  32. package/chunks/{list-box-DmEoMvX1.js → list-box-BzBJX0nP.js} +3 -3
  33. package/chunks/{logo-DyZ2pXt7.js → logo-DSJ1bUJZ.js} +1 -1
  34. package/chunks/{menu-CP0Xvmx0.js → menu-DbQ98noD.js} +1 -1
  35. package/chunks/{modal-B_uSoXZM.js → modal-C8rs1jfL.js} +3 -3
  36. package/chunks/{popover-DGcogqbS.js → popover-B82BcP5n.js} +1 -1
  37. package/chunks/{progress-bar-BfFxpqUv.js → progress-bar-S6GNHQRZ.js} +2 -2
  38. package/chunks/{radio-_z6ObjYx.js → radio-uAtTm38S.js} +4 -4
  39. package/chunks/{search-field-Cp_HHDl4.js → search-field-Bx3JApAJ.js} +5 -5
  40. package/chunks/{select-Wy6NakdH.js → select-CuKVJ1x9.js} +44 -43
  41. package/chunks/{skeleton-B_BPRPJy.js → skeleton-R_3dS7Ro.js} +1 -1
  42. package/chunks/{spinner-COGZlDJB.js → spinner-CIjfJeGm.js} +1 -1
  43. package/chunks/{stack-LF3ExhH9.js → stack-BAHKom_Q.js} +1 -1
  44. package/chunks/{table-O_Y45Sb7.js → table-DDTeIVh8.js} +2 -2
  45. package/chunks/{tabs-Co09VWvC.js → tabs-owuRVJ3N.js} +1 -1
  46. package/chunks/{tag-RjuYlFZI.js → tag-BEawJnJm.js} +2 -2
  47. package/chunks/{text-DwmZ-ew8.js → text-DnvD4Cjc.js} +1 -1
  48. package/chunks/textfield-G6u6RJD5.js +113 -0
  49. package/chunks/{time-field-Cnp-dYhm.js → time-field-Mm1iDLzS.js} +6 -6
  50. package/chunks/{toast-Dg3fVjSS.js → toast-DZuvVRD_.js} +2 -2
  51. package/chunks/{toggle-button-CIvsOXQf.js → toggle-button-DD_bXanH.js} +1 -1
  52. package/chunks/{tooltip-BkesIUIF.js → tooltip-1GBTeMrm.js} +1 -1
  53. package/clear-button/index.js +1 -1
  54. package/color-scheme-switch/index.js +1 -1
  55. package/combobox/index.js +1 -1
  56. package/date-field/index.js +1 -1
  57. package/date-picker/index.js +1 -1
  58. package/drop-zone/index.js +1 -1
  59. package/field-error/index.js +1 -1
  60. package/file-list/index.js +1 -1
  61. package/grid/index.js +1 -1
  62. package/heading/index.js +1 -1
  63. package/index.js +46 -45
  64. package/info-banner/index.js +1 -1
  65. package/label/index.js +1 -1
  66. package/layout/Layout.d.ts +1 -2
  67. package/layout/context/LayoutContext.d.ts +7 -1
  68. package/layout/index.js +1 -1
  69. package/link/index.js +1 -1
  70. package/link-button/index.js +1 -1
  71. package/list-box/index.js +1 -1
  72. package/logo/index.js +1 -1
  73. package/menu/index.js +1 -1
  74. package/modal/index.js +1 -1
  75. package/package.json +3 -2
  76. package/popover/index.js +1 -1
  77. package/progress-bar/index.js +1 -1
  78. package/radio/index.js +1 -1
  79. package/search-field/index.js +1 -1
  80. package/select/index.js +1 -1
  81. package/skeleton/index.js +1 -1
  82. package/spinner/index.js +1 -1
  83. package/stack/index.js +1 -1
  84. package/table/index.js +1 -1
  85. package/tabs/index.js +1 -1
  86. package/tag/index.js +1 -1
  87. package/text/index.js +1 -1
  88. package/textfield/index.js +1 -1
  89. package/time-field/index.js +1 -1
  90. package/toast/index.js +1 -1
  91. package/toggle-button/index.js +1 -1
  92. package/tooltip/index.js +1 -1
  93. package/accordion/Accordion.stories.d.ts +0 -23
  94. package/accordion/AccordionItem.stories.d.ts +0 -25
  95. package/badge/Badge.stories.d.ts +0 -17
  96. package/breadcrumbs/Breadcrumbs.stories.d.ts +0 -25
  97. package/button/Button.stories.d.ts +0 -25
  98. package/button/ButtonGroup.stories.d.ts +0 -15
  99. package/calendar/Calendar.stories.d.ts +0 -17
  100. package/calendar/RangeCalendar.stories.d.ts +0 -15
  101. package/card/Card.stories.d.ts +0 -19
  102. package/checkbox/Checkbox.stories.d.ts +0 -30
  103. package/checkbox/CheckboxGroup.stories.d.ts +0 -31
  104. package/chunks/clsx-Di52oYUU.js +0 -23
  105. package/chunks/date-picker-DQ7vCG5-.js +0 -142
  106. package/chunks/textfield-Bu0Hg2pJ.js +0 -112
  107. package/color-scheme-switch/ColorSchemeSwitch.stories.d.ts +0 -7
  108. package/color-scheme-switch/ColorSchemeSwitchMenu.stories.d.ts +0 -8
  109. package/combobox/ComboBox.stories.d.ts +0 -43
  110. package/date-field/DateField.stories.d.ts +0 -15
  111. package/date-picker/DatePicker.stories.d.ts +0 -17
  112. package/date-picker/DateRangePicker.stories.d.ts +0 -39
  113. package/drop-zone/DropZone.stories.d.ts +0 -16
  114. package/file-list/FileList.stories.d.ts +0 -31
  115. package/grid/Grid.stories.d.ts +0 -28
  116. package/heading/Heading.stories.d.ts +0 -30
  117. package/info-banner/InfoBanner.stories.d.ts +0 -16
  118. package/label/Label.stories.d.ts +0 -10
  119. package/layout/Layout.stories.d.ts +0 -9
  120. package/link/Link.stories.d.ts +0 -14
  121. package/link-button/LinkButton.stories.d.ts +0 -13
  122. package/list-box/ListBox.stories.d.ts +0 -24
  123. package/logo/Logo.stories.d.ts +0 -7
  124. package/menu/Menu.stories.d.ts +0 -35
  125. package/modal/Modal.stories.d.ts +0 -15
  126. package/popover/Popover.stories.d.ts +0 -18
  127. package/progress-bar/ProgressBar.stories.d.ts +0 -18
  128. package/radio/Radio.stories.d.ts +0 -110
  129. package/radio/RadioGroup.stories.d.ts +0 -27
  130. package/search-field/SearchField.stories.d.ts +0 -34
  131. package/select/Select.stories.d.ts +0 -53
  132. package/skeleton/Skeleton.Form.stories.d.ts +0 -20
  133. package/skeleton/Skeleton.stories.d.ts +0 -10
  134. package/spinner/Spinner.stories.d.ts +0 -20
  135. package/stack/Stack.stories.d.ts +0 -24
  136. package/table/Table.stories.d.ts +0 -39
  137. package/tabs/Tabs.stories.d.ts +0 -31
  138. package/tag/Tag.stories.d.ts +0 -17
  139. package/text/Text.stories.d.ts +0 -10
  140. package/textfield/TextArea.stories.d.ts +0 -365
  141. package/textfield/TextField.stories.d.ts +0 -39
  142. package/time-field/TimeField.stories.d.ts +0 -37
  143. package/toast/Toast.stories.d.ts +0 -24
  144. package/tooltip/Tooltip.stories.d.ts +0 -26
package/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ## 17.30.2 (2026-10-13)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **visual-testing:** nx tool for visual test setup ([1775f05eaf7](https://github.com/migrationsverket/midas/commit/1775f05eaf7))
6
+
7
+ ### 🧱 Updated Dependencies
8
+
9
+ - Updated theme to 3.17.8
10
+
11
+ ## 17.30.1 (2026-10-09)
12
+
13
+ ### 🩹 Fixes
14
+
15
+ - **components,layout,table-styles:** declare public type packages ([#1406](https://github.com/migrationsverket/midas/pull/1406))
16
+
1
17
  ## 17.30.0 (2026-10-09)
2
18
 
3
19
  ### 🚀 Features
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../chunks/accordion-BzmYSOS3.js";
1
+ import { n as e, t } from "../chunks/accordion-DlVM6IKH.js";
2
2
  export { e as Accordion, t as AccordionItem };
package/badge/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../chunks/badge-BfK6XrlL.js";
1
+ import { n as e, t } from "../chunks/badge-C4bXJmhn.js";
2
2
  export { e as Badge, t as BadgeContainer };
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../chunks/breadcrumbs-DV0ZJc62.js";
1
+ import { n as e, t } from "../chunks/breadcrumbs-BGnyY3bO.js";
2
2
  export { t as Breadcrumb, e as Breadcrumbs };
package/button/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../chunks/button-C-WkFek9.js";
1
+ import { n as e, t } from "../chunks/button-dpe6hXmI.js";
2
2
  export { e as Button, t as ButtonGroup };
package/calendar/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../chunks/calendar-Bt1FLxqr.js";
1
+ import { n as e, t } from "../chunks/calendar-BnT8aqrk.js";
2
2
  export { e as Calendar, t as RangeCalendar };
package/card/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "../chunks/card-CdH2UMUW.js";
1
+ import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "../chunks/card-C0S9Kyi2.js";
2
2
  export { o as Card, n as CardActionArea, e as CardActions, i as CardBody, a as CardContent, c as CardHeader, s as CardImage, t as CardLink, r as CardTitle };
package/checkbox/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "../chunks/checkbox-DiFQy3MS.js";
1
+ import { i as e, n as t, r as n, t as r } from "../chunks/checkbox-B1RWLsu9.js";
2
2
  export { t as Checkbox, n as CheckboxButton, e as CheckboxField, r as CheckboxGroup };
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-Di52oYUU.js";
3
- import { n as t } from "./button-C-WkFek9.js";
4
- import { t as n } from "./heading-BEl_z-5T.js";
2
+ import { t as e } from "./clsx-DAqHMl_k.js";
3
+ import { n as t } from "./button-dpe6hXmI.js";
4
+ import { t as n } from "./heading-DcOjYrUM.js";
5
5
  import { t as r } from "./FeedbackStatusIcon-DvMDGBGL.js";
6
6
  import { createContext as i, useContext as a, useEffect as o } from "react";
7
7
  import { Disclosure as s, DisclosureGroup as c, DisclosurePanel as l, composeRenderProps as u } from "react-aria-components";
@@ -1,4 +1,4 @@
1
- import { t as e } from "./clsx-Di52oYUU.js";
1
+ import { t as e } from "./clsx-DAqHMl_k.js";
2
2
  import * as t from "react";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  import '../assets/badge.css';var r = {
@@ -1,4 +1,4 @@
1
- import { t as e } from "./clsx-Di52oYUU.js";
1
+ import { t as e } from "./clsx-DAqHMl_k.js";
2
2
  import { Breadcrumb as t, Breadcrumbs as n } from "react-aria-components";
3
3
  import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
4
4
  import '../assets/breadcrumbs.css';var o = {
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-Di52oYUU.js";
3
- import { t } from "./spinner-COGZlDJB.js";
2
+ import { t as e } from "./clsx-DAqHMl_k.js";
3
+ import { t } from "./spinner-CIjfJeGm.js";
4
4
  import { t as n } from "./Button.module-0C2ArlRs.js";
5
5
  import { forwardRef as r } from "react";
6
6
  import { Button as i, ButtonContext as a, composeRenderProps as o, useContextProps as s } from "react-aria-components";
@@ -1,10 +1,11 @@
1
- import { n as e, t } from "./clsx-Di52oYUU.js";
2
- import { n } from "./button-C-WkFek9.js";
3
- import { t as r } from "./heading-BEl_z-5T.js";
4
- import { t as i } from "./field-error-LtNtEKDp.js";
5
- import { n as a } from "./select-Wy6NakdH.js";
6
- import { a as o, c as s, o as c } from "./list-box-DmEoMvX1.js";
7
- import * as l from "react";
1
+ import { t as e } from "./clsx-DAqHMl_k.js";
2
+ import { n as t } from "./button-dpe6hXmI.js";
3
+ import { t as n } from "./heading-DcOjYrUM.js";
4
+ import { t as r } from "./field-error-BHoPnRe4.js";
5
+ import { n as i } from "./select-CuKVJ1x9.js";
6
+ import { a, c as o, o as s } from "./list-box-BzBJX0nP.js";
7
+ import * as c from "react";
8
+ import { clsx as l } from "clsx";
8
9
  import { Calendar as u, CalendarCell as d, CalendarGrid as f, CalendarMonthPicker as p, CalendarYearPicker as m, RangeCalendar as h, RangeCalendarContext as g, Select as _ } from "react-aria-components";
9
10
  import { jsx as v, jsxs as y } from "react/jsx-runtime";
10
11
  import { ChevronLeft as b, ChevronRight as x } from "lucide-react";
@@ -15,13 +16,13 @@ import '../assets/calendar.css';var S = {
15
16
  header: "_header_mn6zv_90",
16
17
  pickers: "_pickers_mn6zv_130",
17
18
  range: "_range_mn6zv_180"
18
- }, C = ({ weekdayStyle: e = "short", isReadOnly: n }) => {
19
- let r = !!l.useContext(g);
19
+ }, C = ({ weekdayStyle: t = "short", isReadOnly: n }) => {
20
+ let r = !!c.useContext(g);
20
21
  return /* @__PURE__ */ v(f, {
21
- weekdayStyle: e,
22
- children: (e) => /* @__PURE__ */ v(d, {
23
- date: e,
24
- className: t(S.day, r && S.range),
22
+ weekdayStyle: t,
23
+ children: (t) => /* @__PURE__ */ v(d, {
24
+ date: t,
25
+ className: e(S.day, r && S.range),
25
26
  "data-readonly": n || void 0
26
27
  })
27
28
  });
@@ -29,78 +30,78 @@ import '../assets/calendar.css';var S = {
29
30
  isDisabled: e,
30
31
  "data-readonly": t || void 0,
31
32
  ...r,
32
- children: [/* @__PURE__ */ v(a, {
33
+ children: [/* @__PURE__ */ v(i, {
33
34
  size: "small",
34
35
  isDisabled: e
35
- }), /* @__PURE__ */ v(o, { children: /* @__PURE__ */ v(s, {
36
+ }), /* @__PURE__ */ v(a, { children: /* @__PURE__ */ v(o, {
36
37
  items: n,
37
38
  virtualized: !1,
38
39
  size: "small",
39
- children: (e) => /* @__PURE__ */ v(c, {
40
+ children: (e) => /* @__PURE__ */ v(s, {
40
41
  id: e.id,
41
42
  textValue: e.formatted,
42
43
  children: e.formatted
43
44
  })
44
45
  }) })]
45
- }), T = ({ isDisabled: e, isReadOnly: t, showMonthYearPicker: i }) => {
46
- let a = (n) => /* @__PURE__ */ v(w, {
47
- ...n,
46
+ }), T = ({ isDisabled: e, isReadOnly: r, showMonthYearPicker: i }) => {
47
+ let a = (t) => /* @__PURE__ */ v(w, {
48
+ ...t,
48
49
  isDisabled: e,
49
- isReadOnly: t
50
+ isReadOnly: r
50
51
  });
51
52
  return /* @__PURE__ */ y("header", {
52
53
  className: S.header,
53
54
  children: [
54
- /* @__PURE__ */ v(n, {
55
+ /* @__PURE__ */ v(t, {
55
56
  slot: "previous",
56
57
  size: "medium",
57
- "data-readonly": t || void 0,
58
+ "data-readonly": r || void 0,
58
59
  children: /* @__PURE__ */ v(b, { size: 20 })
59
60
  }),
60
61
  i ? /* @__PURE__ */ y("div", {
61
62
  className: S.pickers,
62
63
  children: [/* @__PURE__ */ v(p, { children: a }), /* @__PURE__ */ v(m, { children: a })]
63
- }) : /* @__PURE__ */ v(r, {
64
+ }) : /* @__PURE__ */ v(n, {
64
65
  level: 3,
65
66
  elementType: "h2",
66
67
  "data-disabled": e || void 0
67
68
  }),
68
- /* @__PURE__ */ v(n, {
69
+ /* @__PURE__ */ v(t, {
69
70
  slot: "next",
70
71
  size: "medium",
71
- "data-readonly": t || void 0,
72
+ "data-readonly": r || void 0,
72
73
  children: /* @__PURE__ */ v(x, { size: 20 })
73
74
  })
74
75
  ]
75
76
  });
76
- }, E = ({ className: t, errorMessage: n, showMonthYearPicker: r, ...a }) => /* @__PURE__ */ y("div", {
77
+ }, E = ({ className: e, errorMessage: t, showMonthYearPicker: n, ...i }) => /* @__PURE__ */ y("div", {
77
78
  className: S.container,
78
79
  children: [/* @__PURE__ */ y(u, {
79
- className: e(S.calendar, t),
80
+ className: l(S.calendar, e),
81
+ "data-readonly": i.isReadOnly || void 0,
82
+ ...i,
83
+ children: [/* @__PURE__ */ v(T, {
84
+ ...i,
85
+ showMonthYearPicker: n
86
+ }), /* @__PURE__ */ v(C, { ...i })]
87
+ }), /* @__PURE__ */ v(r, {
88
+ isInvalid: i.isInvalid,
89
+ children: t
90
+ })]
91
+ }), D = ({ className: e, errorMessage: t, showMonthYearPicker: n, commitBehavior: i, ...a }) => /* @__PURE__ */ y("div", {
92
+ className: S.container,
93
+ children: [/* @__PURE__ */ y(h, {
94
+ className: l(S.calendar, e),
80
95
  "data-readonly": a.isReadOnly || void 0,
96
+ commitBehavior: i ?? (n ? "reset" : void 0),
81
97
  ...a,
82
98
  children: [/* @__PURE__ */ v(T, {
83
99
  ...a,
84
- showMonthYearPicker: r
100
+ showMonthYearPicker: n
85
101
  }), /* @__PURE__ */ v(C, { ...a })]
86
- }), /* @__PURE__ */ v(i, {
102
+ }), /* @__PURE__ */ v(r, {
87
103
  isInvalid: a.isInvalid,
88
- children: n
89
- })]
90
- }), D = ({ className: t, errorMessage: n, showMonthYearPicker: r, commitBehavior: a, ...o }) => /* @__PURE__ */ y("div", {
91
- className: S.container,
92
- children: [/* @__PURE__ */ y(h, {
93
- className: e(S.calendar, t),
94
- "data-readonly": o.isReadOnly || void 0,
95
- commitBehavior: a ?? (r ? "reset" : void 0),
96
- ...o,
97
- children: [/* @__PURE__ */ v(T, {
98
- ...o,
99
- showMonthYearPicker: r
100
- }), /* @__PURE__ */ v(C, { ...o })]
101
- }), /* @__PURE__ */ v(i, {
102
- isInvalid: o.isInvalid,
103
- children: n
104
+ children: t
104
105
  })]
105
106
  });
106
107
  //#endregion
@@ -1,6 +1,6 @@
1
- import { t as e } from "./clsx-Di52oYUU.js";
2
- import { t } from "./heading-BEl_z-5T.js";
3
- import { t as n } from "./text-DwmZ-ew8.js";
1
+ import { t as e } from "./clsx-DAqHMl_k.js";
2
+ import { t } from "./heading-DcOjYrUM.js";
3
+ import { t as n } from "./text-DnvD4Cjc.js";
4
4
  import * as r from "react";
5
5
  import { Button as i, Link as a } from "react-aria-components";
6
6
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
@@ -1,9 +1,9 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-Di52oYUU.js";
2
+ import { t as e } from "./clsx-DAqHMl_k.js";
3
3
  import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
4
- import { n, t as r } from "./label-Dw5p84T2.js";
5
- import { t as i } from "./text-DwmZ-ew8.js";
6
- import { t as a } from "./field-error-LtNtEKDp.js";
4
+ import { n, t as r } from "./label-pGlER0ro.js";
5
+ import { t as i } from "./text-DnvD4Cjc.js";
6
+ import { t as a } from "./field-error-BHoPnRe4.js";
7
7
  import { t as o } from "./splitDataAttributes-_JTFOOIb.js";
8
8
  import * as s from "react";
9
9
  import { forwardRef as c, useContext as l } from "react";
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { n as e } from "./button-C-WkFek9.js";
2
+ import { n as e } from "./button-dpe6hXmI.js";
3
3
  import "react";
4
4
  import { jsx as t } from "react/jsx-runtime";
5
5
  import { X as n } from "lucide-react";
@@ -0,0 +1,7 @@
1
+ import { clsx as e } from "clsx";
2
+ //#region src/utils/clsx.ts
3
+ function t(...t) {
4
+ return t.some((e) => typeof e == "function") ? (n) => e(t.map((e) => typeof e == "function" ? e(n) : e)) : e(t);
5
+ }
6
+ //#endregion
7
+ export { t };
@@ -1,10 +1,10 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-Di52oYUU.js";
2
+ import { t as e } from "./clsx-DAqHMl_k.js";
3
3
  import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
4
- import { n } from "./button-C-WkFek9.js";
4
+ import { n } from "./button-dpe6hXmI.js";
5
5
  import { t as r } from "./icons-UBHIX2oV.js";
6
- import { n as i, t as a } from "./toggle-button-CIvsOXQf.js";
7
- import { a as o, o as s, r as c } from "./menu-CP0Xvmx0.js";
6
+ import { n as i, t as a } from "./toggle-button-DD_bXanH.js";
7
+ import { a as o, o as s, r as c } from "./menu-DbQ98noD.js";
8
8
  import * as l from "react";
9
9
  import { useEffect as u, useState as d } from "react";
10
10
  import { MenuItem as f, SelectionIndicator as p } from "react-aria-components";
@@ -1,10 +1,10 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-Di52oYUU.js";
2
+ import { t as e } from "./clsx-DAqHMl_k.js";
3
3
  import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
4
- import { n, t as r } from "./label-Dw5p84T2.js";
5
- import { t as i } from "./text-DwmZ-ew8.js";
6
- import { t as a } from "./field-error-LtNtEKDp.js";
7
- import { a as o, c as s, t as c } from "./list-box-DmEoMvX1.js";
4
+ import { n, t as r } from "./label-pGlER0ro.js";
5
+ import { t as i } from "./text-DnvD4Cjc.js";
6
+ import { t as a } from "./field-error-BHoPnRe4.js";
7
+ import { a as o, c as s, t as c } from "./list-box-BzBJX0nP.js";
8
8
  import { useRef as l } from "react";
9
9
  import { Button as u, ComboBox as d, Input as f } from "react-aria-components";
10
10
  import { jsx as p, jsxs as m } from "react/jsx-runtime";
@@ -1,9 +1,9 @@
1
- import { t as e } from "./clsx-Di52oYUU.js";
1
+ import { t as e } from "./clsx-DAqHMl_k.js";
2
2
  import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
3
- import { n, t as r } from "./label-Dw5p84T2.js";
4
- import { t as i } from "./text-DwmZ-ew8.js";
5
- import { t as a } from "./field-error-LtNtEKDp.js";
6
- import { t as o } from "./clear-button-Bv0YGBNG.js";
3
+ import { n, t as r } from "./label-pGlER0ro.js";
4
+ import { t as i } from "./text-DnvD4Cjc.js";
5
+ import { t as a } from "./field-error-BHoPnRe4.js";
6
+ import { t as o } from "./clear-button-DWtOkhCH.js";
7
7
  import * as s from "react";
8
8
  import { DateField as c, DateFieldStateContext as l, DateInput as u, DateSegment as d } from "react-aria-components";
9
9
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
@@ -0,0 +1,142 @@
1
+ 'use client';
2
+ import { t as e } from "./useLocalizedStringFormatter-CeyBc0x0.js";
3
+ import { n as t } from "./button-dpe6hXmI.js";
4
+ import { n, t as r } from "./calendar-BnT8aqrk.js";
5
+ import { n as i, t as a } from "./label-pGlER0ro.js";
6
+ import { t as o } from "./text-DnvD4Cjc.js";
7
+ import { t as s } from "./field-error-BHoPnRe4.js";
8
+ import { t as c } from "./clear-button-DWtOkhCH.js";
9
+ import { n as l, r as u, t as d } from "./date-field-D5QLfSD_.js";
10
+ import * as f from "react";
11
+ import { clsx as p } from "clsx";
12
+ import { DatePicker as m, DatePickerStateContext as h, DateRangePicker as g, DateRangePickerStateContext as _, Group as v, Popover as y } from "react-aria-components";
13
+ import { jsx as b, jsxs as x } from "react/jsx-runtime";
14
+ import { CalendarDays as S } from "lucide-react";
15
+ import { FocusScope as C, useFocusManager as w } from "react-aria";
16
+ import '../assets/date-picker.css';var T = {
17
+ en: {
18
+ clear: "Clear date",
19
+ "open-calendar": "Open calendar"
20
+ },
21
+ sv: {
22
+ clear: "Rensa datum",
23
+ "open-calendar": "Öppna kalender"
24
+ }
25
+ }, E = {
26
+ datePicker: "_datePicker_14wog_1",
27
+ inputField: "_inputField_14wog_8",
28
+ medium: "_medium_14wog_24",
29
+ readOnly: "_readOnly_14wog_47",
30
+ buttonGroup: "_buttonGroup_14wog_52",
31
+ iconButton: "_iconButton_14wog_58",
32
+ popover: "_popover_14wog_81 _dropdownAnimation_1ljkv_4"
33
+ }, D = (e) => !!e && !!e.value && Object.prototype.hasOwnProperty.call(e.value, "start"), O = ({ isClearable: t, isDisabled: n, isReadOnly: r, size: i }) => {
34
+ let a = f.useContext(h), o = f.useContext(_), s = e(T), l = w(), u = o ?? a, d = D(u) ? !!u.value.start && u.value.end : !!u?.value;
35
+ return t && d && !r ? /* @__PURE__ */ b(c, {
36
+ onPress: () => {
37
+ u?.setValue(null), l?.focusFirst();
38
+ },
39
+ size: i,
40
+ isDisabled: n,
41
+ "aria-label": s.format("clear"),
42
+ className: p(E.iconButton, { [E.medium]: i === "medium" })
43
+ }) : null;
44
+ }, k = ({ children: n, isDisabled: r, isInvalid: i, isReadOnly: a, size: o = "large", isClearable: s = !1 }) => {
45
+ let c = e(T);
46
+ return /* @__PURE__ */ b(v, {
47
+ className: p(E.inputField, {
48
+ [E.medium]: o === "medium",
49
+ [E.readOnly]: a
50
+ }),
51
+ children: /* @__PURE__ */ x(C, { children: [n, /* @__PURE__ */ x("div", {
52
+ className: E.buttonGroup,
53
+ children: [/* @__PURE__ */ b(O, {
54
+ isClearable: s,
55
+ isDisabled: r,
56
+ isReadOnly: a,
57
+ size: o
58
+ }), /* @__PURE__ */ b(t, {
59
+ variant: "icon",
60
+ "aria-label": c.format("open-calendar"),
61
+ className: p(E.iconButton, {
62
+ [E.medium]: o === "medium",
63
+ [E.readOnly]: a
64
+ }),
65
+ "data-invalid": i || void 0,
66
+ size: o,
67
+ children: /* @__PURE__ */ b(S, {
68
+ "aria-hidden": !0,
69
+ size: 20
70
+ })
71
+ })]
72
+ })] })
73
+ });
74
+ }, A = ({ children: e }) => /* @__PURE__ */ b(y, {
75
+ className: E.popover,
76
+ children: e
77
+ }), j = f.forwardRef(({ className: e, description: t, errorMessage: r, errorPosition: c = "top", label: d, popover: f, isClearable: h = !1, isReadOnly: g, isDisabled: _, size: v, ...y }, S) => /* @__PURE__ */ x(m, {
78
+ className: p(E.datePicker, e),
79
+ isReadOnly: g,
80
+ isDisabled: _,
81
+ ref: S,
82
+ ...y,
83
+ children: [
84
+ /* @__PURE__ */ b(i, {
85
+ popover: f,
86
+ children: d && /* @__PURE__ */ b(a, { children: d })
87
+ }),
88
+ t && /* @__PURE__ */ b(o, {
89
+ slot: "description",
90
+ children: t
91
+ }),
92
+ c === "top" && /* @__PURE__ */ b(s, { children: r }),
93
+ /* @__PURE__ */ b(k, {
94
+ isClearable: h,
95
+ isReadOnly: g,
96
+ isDisabled: _,
97
+ size: v,
98
+ ...y,
99
+ children: /* @__PURE__ */ b(l, { children: (e) => /* @__PURE__ */ b(u, { segment: e }) })
100
+ }),
101
+ c === "bottom" && /* @__PURE__ */ b(s, { children: r }),
102
+ /* @__PURE__ */ b(A, { children: /* @__PURE__ */ b(n, {}) })
103
+ ]
104
+ })), M = ({ className: e, description: t, errorMessage: n, errorPosition: c = "top", label: f, popover: m, isClearable: h = !1, isReadOnly: _, isDisabled: v, size: y, ...S }) => /* @__PURE__ */ x(g, {
105
+ className: p(E.datePicker, e),
106
+ isReadOnly: _,
107
+ isDisabled: v,
108
+ ...S,
109
+ children: [
110
+ /* @__PURE__ */ b(i, {
111
+ popover: m,
112
+ children: f && /* @__PURE__ */ b(a, { children: f })
113
+ }),
114
+ t && /* @__PURE__ */ b(o, {
115
+ slot: "description",
116
+ children: t
117
+ }),
118
+ c === "top" && /* @__PURE__ */ b(s, { children: n }),
119
+ /* @__PURE__ */ x(k, {
120
+ isClearable: h,
121
+ isReadOnly: _,
122
+ isDisabled: v,
123
+ size: y,
124
+ ...S,
125
+ children: [
126
+ /* @__PURE__ */ b(l, {
127
+ slot: "start",
128
+ children: (e) => /* @__PURE__ */ b(u, { segment: e })
129
+ }),
130
+ /* @__PURE__ */ b(d, {}),
131
+ /* @__PURE__ */ b(l, {
132
+ slot: "end",
133
+ children: (e) => /* @__PURE__ */ b(u, { segment: e })
134
+ })
135
+ ]
136
+ }),
137
+ c === "bottom" && /* @__PURE__ */ b(s, { children: n }),
138
+ /* @__PURE__ */ b(A, { children: /* @__PURE__ */ b(r, {}) })
139
+ ]
140
+ });
141
+ //#endregion
142
+ export { j as n, M as t };
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-Di52oYUU.js";
2
+ import { t as e } from "./clsx-DAqHMl_k.js";
3
3
  import { forwardRef as t } from "react";
4
4
  import { DropZone as n, FieldErrorContext as r, composeRenderProps as i } from "react-aria-components";
5
5
  import { jsx as a } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
- import { t as e } from "./clsx-Di52oYUU.js";
2
- import { t } from "./text-DwmZ-ew8.js";
1
+ import { t as e } from "./clsx-DAqHMl_k.js";
2
+ import { t } from "./text-DnvD4Cjc.js";
3
3
  import { forwardRef as n, useContext as r } from "react";
4
4
  import { FieldError as i, FieldErrorContext as a } from "react-aria-components";
5
5
  import { jsx as o } from "react/jsx-runtime";
@@ -1,10 +1,10 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-Di52oYUU.js";
2
+ import { t as e } from "./clsx-DAqHMl_k.js";
3
3
  import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
4
- import { n } from "./button-C-WkFek9.js";
4
+ import { n } from "./button-dpe6hXmI.js";
5
5
  import { t as r } from "./FeedbackStatusIcon-DvMDGBGL.js";
6
- import { t as i } from "./field-error-LtNtEKDp.js";
7
- import { t as a } from "./progress-bar-BfFxpqUv.js";
6
+ import { t as i } from "./field-error-BHoPnRe4.js";
7
+ import { t as a } from "./progress-bar-S6GNHQRZ.js";
8
8
  import { useEffect as o, useId as s, useRef as c } from "react";
9
9
  import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
10
10
  import { Trash2 as f, X as p } from "lucide-react";
@@ -1,4 +1,4 @@
1
- import { t as e } from "./clsx-Di52oYUU.js";
1
+ import { t as e } from "./clsx-DAqHMl_k.js";
2
2
  import "react";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  import '../assets/grid.css';var n = {
@@ -1,4 +1,4 @@
1
- import { t as e } from "./clsx-Di52oYUU.js";
1
+ import { t as e } from "./clsx-DAqHMl_k.js";
2
2
  import "react";
3
3
  import { Heading as t } from "react-aria-components";
4
4
  import { jsx as n } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
- import { t as e } from "./clsx-Di52oYUU.js";
1
+ import { t as e } from "./clsx-DAqHMl_k.js";
2
2
  import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
3
- import { n } from "./button-C-WkFek9.js";
3
+ import { n } from "./button-dpe6hXmI.js";
4
4
  import { t as r } from "./FeedbackStatusIcon-DvMDGBGL.js";
5
5
  import "react";
6
6
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
@@ -1,8 +1,8 @@
1
- import { t as e } from "./clsx-Di52oYUU.js";
1
+ import { t as e } from "./clsx-DAqHMl_k.js";
2
2
  import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
3
- import { n } from "./button-C-WkFek9.js";
4
- import { t as r } from "./popover-DGcogqbS.js";
5
- import { t as i } from "./modal-B_uSoXZM.js";
3
+ import { n } from "./button-dpe6hXmI.js";
4
+ import { t as r } from "./popover-B82BcP5n.js";
5
+ import { t as i } from "./modal-C8rs1jfL.js";
6
6
  import * as a from "react";
7
7
  import o, { useContext as s } from "react";
8
8
  import { Label as c } from "react-aria-components";
@@ -1,11 +1,11 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-Di52oYUU.js";
2
+ import { t as e } from "./clsx-DAqHMl_k.js";
3
3
  import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
4
- import { n } from "./button-C-WkFek9.js";
5
- import { n as r, t as i } from "./badge-BfK6XrlL.js";
6
- import { t as a } from "./grid-Cn_8RSvj.js";
7
- import { n as o, t as s } from "./tooltip-BkesIUIF.js";
8
- import { t as c } from "./logo-DyZ2pXt7.js";
4
+ import { n } from "./button-dpe6hXmI.js";
5
+ import { n as r, t as i } from "./badge-C4bXJmhn.js";
6
+ import { t as a } from "./grid-BR68fpvW.js";
7
+ import { n as o, t as s } from "./tooltip-1GBTeMrm.js";
8
+ import { t as c } from "./logo-DSJ1bUJZ.js";
9
9
  import * as l from "react";
10
10
  import { useEffect as u, useState as d } from "react";
11
11
  import { Link as f, RouterProvider as p } from "react-aria-components";
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-Di52oYUU.js";
2
+ import { t as e } from "./clsx-DAqHMl_k.js";
3
3
  import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
4
4
  import { Link as n, RouterProvider as r } from "react-aria-components";
5
5
  import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-Di52oYUU.js";
2
+ import { t as e } from "./clsx-DAqHMl_k.js";
3
3
  import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
4
4
  import "react";
5
5
  import { Link as n, RouterProvider as r } from "react-aria-components";
@@ -1,7 +1,7 @@
1
- import { t as e } from "./clsx-Di52oYUU.js";
2
- import { t } from "./spinner-COGZlDJB.js";
1
+ import { t as e } from "./clsx-DAqHMl_k.js";
2
+ import { t } from "./spinner-CIjfJeGm.js";
3
3
  import { t as n } from "./useLocalizedStringFormatter-CeyBc0x0.js";
4
- import { t as r } from "./text-DwmZ-ew8.js";
4
+ import { t as r } from "./text-DnvD4Cjc.js";
5
5
  import "react";
6
6
  import { Header as i, ListBox as a, ListBoxItem as o, ListBoxLoadMoreItem as s, ListBoxSection as c, ListLayout as l, Popover as u, Virtualizer as d, composeRenderProps as f } from "react-aria-components";
7
7
  import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as e } from "./clsx-Di52oYUU.js";
1
+ import { t as e } from "./clsx-DAqHMl_k.js";
2
2
  import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
3
3
  import { createContext as n, useContext as r } from "react";
4
4
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as e } from "./clsx-Di52oYUU.js";
1
+ import { t as e } from "./clsx-DAqHMl_k.js";
2
2
  import { Menu as t, MenuItem as n, MenuSection as r, MenuTrigger as i, Popover as a, Separator as o } from "react-aria-components";
3
3
  import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
4
4
  import { Check as u, ChevronRight as d } from "lucide-react";
@@ -1,7 +1,7 @@
1
- import { t as e } from "./clsx-Di52oYUU.js";
1
+ import { t as e } from "./clsx-DAqHMl_k.js";
2
2
  import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
3
- import { n } from "./button-C-WkFek9.js";
4
- import { t as r } from "./heading-BEl_z-5T.js";
3
+ import { n } from "./button-dpe6hXmI.js";
4
+ import { t as r } from "./heading-DcOjYrUM.js";
5
5
  import { forwardRef as i } from "react";
6
6
  import { Dialog as a, DialogTrigger as o, Modal as s, ModalOverlay as c, composeRenderProps as l } from "react-aria-components";
7
7
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as e } from "./clsx-Di52oYUU.js";
1
+ import { t as e } from "./clsx-DAqHMl_k.js";
2
2
  import { forwardRef as t } from "react";
3
3
  import { OverlayArrow as n, Popover as r, PopoverContext as i, composeRenderProps as a, useContextProps as o } from "react-aria-components";
4
4
  import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";