@midas-ds/components 17.26.0 → 17.27.1

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 (166) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/accordion/AccordionItem.d.ts +1 -1
  3. package/accordion/AccordionItem.stories.d.ts +1 -1
  4. package/accordion/index.js +1 -1
  5. package/assets/calendar.css +1 -1
  6. package/assets/list-box.css +1 -1
  7. package/assets/select.css +1 -1
  8. package/badge/Badge.stories.d.ts +1 -1
  9. package/badge/index.js +1 -1
  10. package/breadcrumbs/Breadcrumb.d.ts +1 -1
  11. package/breadcrumbs/Breadcrumbs.d.ts +1 -1
  12. package/breadcrumbs/Breadcrumbs.stories.d.ts +4 -4
  13. package/breadcrumbs/index.js +1 -1
  14. package/button/index.js +1 -1
  15. package/calendar/Calendar.d.ts +9 -1
  16. package/calendar/Calendar.stories.d.ts +3 -2
  17. package/calendar/CalendarGrid.d.ts +1 -1
  18. package/calendar/CalendarHeader.d.ts +2 -2
  19. package/calendar/CalendarPicker.d.ts +18 -0
  20. package/calendar/RangeCalendar.d.ts +8 -1
  21. package/calendar/RangeCalendar.stories.d.ts +2 -1
  22. package/calendar/index.js +1 -1
  23. package/card/Card.d.ts +1 -1
  24. package/card/card-body/CardBody.d.ts +1 -1
  25. package/card/card-header/CardHeader.d.ts +1 -1
  26. package/card/index.js +1 -1
  27. package/checkbox/CheckboxField.d.ts +1 -1
  28. package/checkbox/CheckboxGroup.d.ts +1 -1
  29. package/checkbox/CheckboxGroup.stories.d.ts +2 -2
  30. package/checkbox/SelectAllCheckbox.d.ts +1 -1
  31. package/checkbox/index.js +1 -1
  32. package/chunks/{FeedbackStatusIcon-BS5VX-s6.js → FeedbackStatusIcon-DRI7WrSU.js} +7 -7
  33. package/chunks/{accordion-BxxPnJau.js → accordion-DIVTJU3O.js} +7 -7
  34. package/chunks/{badge-BplGU5BS.js → badge-BfK6XrlL.js} +1 -1
  35. package/chunks/{breadcrumbs-C-Z6UlQn.js → breadcrumbs-DV0ZJc62.js} +1 -1
  36. package/chunks/{button-Ch860h28.js → button-CenXTGXL.js} +2 -2
  37. package/chunks/calendar-BZPktkdE.js +111 -0
  38. package/chunks/{card-Bzc8kToe.js → card-zIYA-SQh.js} +3 -3
  39. package/chunks/{checkbox-ivInWvEp.js → checkbox-DcXA9GSd.js} +14 -14
  40. package/chunks/{clear-button-la4Fb9_w.js → clear-button-D3I1X3yG.js} +1 -1
  41. package/chunks/{clsx-B1NYyfch.js → clsx-Di52oYUU.js} +6 -4
  42. package/chunks/{color-scheme-switch-jgoxUu3x.js → color-scheme-switch-DVZjdwc9.js} +4 -4
  43. package/chunks/{combobox-DDO4fEtI.js → combobox-DIou4Z-d.js} +10 -10
  44. package/chunks/{date-field-DG5TYsTF.js → date-field-BF2f9bSf.js} +10 -10
  45. package/chunks/{date-picker-1W7OmCT0.js → date-picker-BomOO1LI.js} +18 -18
  46. package/chunks/{drop-zone-DvQLpgq6.js → drop-zone-DH3ZyHsr.js} +1 -1
  47. package/chunks/{field-error-pJiSw4PN.js → field-error-LtNtEKDp.js} +2 -2
  48. package/chunks/{file-list-DM1Vtkun.js → file-list-TmEuO1fJ.js} +2 -2
  49. package/chunks/{grid-DZB3GGDg.js → grid-Cn_8RSvj.js} +1 -1
  50. package/chunks/heading-BEl_z-5T.js +31 -0
  51. package/chunks/{info-banner-DnFNZ1_o.js → info-banner-osR4e6nB.js} +3 -3
  52. package/chunks/{label-CEYHiWSa.js → label-LWlgvAwz.js} +4 -4
  53. package/chunks/{layout-DVj8wSj3.js → layout-Db5um0f7.js} +23 -23
  54. package/chunks/{link-CQoSw1Pv.js → link-BAgs4RwY.js} +5 -5
  55. package/chunks/{link-button-BMFzCHH8.js → link-button-BuPMEGUj.js} +5 -5
  56. package/chunks/{list-box-VdBVTwZK.js → list-box-BN_MSiOD.js} +19 -18
  57. package/chunks/{logo-CDxNjDeI.js → logo-DyZ2pXt7.js} +1 -1
  58. package/chunks/{menu-CPCGm0MC.js → menu-aT2IR0tO.js} +1 -1
  59. package/chunks/{modal-C-xHt7Ds.js → modal-C-UsxdO0.js} +3 -3
  60. package/chunks/{popover-wAwxm_cM.js → popover-DGcogqbS.js} +1 -1
  61. package/chunks/{progress-bar-Cft_RPHz.js → progress-bar-7w_kWo2f.js} +2 -2
  62. package/chunks/{radio-W0YqY7lo.js → radio-C-MUMGu7.js} +9 -9
  63. package/chunks/{search-field-d7FV4Kuv.js → search-field-BvfOHvUI.js} +11 -11
  64. package/chunks/{select-LjjT_7hr.js → select-KQzDIamx.js} +34 -30
  65. package/chunks/{skeleton-DWmvym7R.js → skeleton-B_BPRPJy.js} +1 -1
  66. package/chunks/{spinner-DMR5G-6u.js → spinner-LdHPVms_.js} +1 -1
  67. package/chunks/{table-O7Ht2ilY.js → table-zT6eQ3ZZ.js} +2 -2
  68. package/chunks/{tabs-BFFTnO4i.js → tabs-Co09VWvC.js} +1 -1
  69. package/chunks/{tag-mzNjP8EX.js → tag-BIcqtf7b.js} +2 -2
  70. package/chunks/text-DwmZ-ew8.js +28 -0
  71. package/chunks/{textfield-BsijPPRD.js → textfield-CXqzzOtw.js} +12 -12
  72. package/chunks/{time-field-BlNUOjUJ.js → time-field-CmjGBQph.js} +11 -11
  73. package/chunks/{toast-Cz0JDIr1.js → toast-gJgjitZF.js} +3 -3
  74. package/chunks/{toggle-button-BgUQKcK-.js → toggle-button-CIvsOXQf.js} +1 -1
  75. package/chunks/{tooltip-D7LYQwj0.js → tooltip-BkesIUIF.js} +1 -1
  76. package/clear-button/index.js +1 -1
  77. package/color-scheme-switch/index.js +1 -1
  78. package/combobox/ComboBox.d.ts +1 -1
  79. package/combobox/ComboBox.stories.d.ts +3 -2
  80. package/combobox/index.js +1 -1
  81. package/common/FeedbackStatusIcon.d.ts +1 -1
  82. package/date-field/index.js +1 -1
  83. package/date-picker/DatePickerInputField.d.ts +1 -1
  84. package/date-picker/index.js +1 -1
  85. package/drop-zone/index.js +1 -1
  86. package/field-error/index.js +1 -1
  87. package/file-list/FileList.d.ts +1 -1
  88. package/file-list/FileList.stories.d.ts +3 -3
  89. package/file-list/FileListItem.d.ts +1 -1
  90. package/file-list/index.js +1 -1
  91. package/file-trigger/FileTrigger.d.ts +1 -1
  92. package/grid/index.js +1 -1
  93. package/heading/index.js +1 -1
  94. package/index.js +53 -53
  95. package/info-banner/index.js +1 -1
  96. package/label/InfoPopover.d.ts +1 -1
  97. package/label/index.js +1 -1
  98. package/layout/components/SidebarLink.d.ts +1 -1
  99. package/layout/index.js +1 -1
  100. package/link/Link.d.ts +1 -1
  101. package/link/index.js +1 -1
  102. package/link-button/LinkButton.d.ts +1 -1
  103. package/link-button/index.js +1 -1
  104. package/list-box/ListBox.d.ts +6 -1
  105. package/list-box/ListBox.stories.d.ts +4 -4
  106. package/list-box/ListBoxHeader.d.ts +1 -1
  107. package/list-box/ListBoxItem.d.ts +1 -1
  108. package/list-box/ListBoxSection.d.ts +1 -1
  109. package/list-box/index.js +1 -1
  110. package/list-box/list-box-empty-state/ListBoxEmptyState.d.ts +1 -1
  111. package/logo/Logo.d.ts +1 -1
  112. package/logo/index.js +1 -1
  113. package/menu/Menu.d.ts +1 -1
  114. package/menu/Menu.stories.d.ts +5 -4
  115. package/menu/MenuItem.d.ts +1 -1
  116. package/menu/MenuPopover.d.ts +1 -1
  117. package/menu/MenuSection.d.ts +1 -1
  118. package/menu/Separator.d.ts +1 -1
  119. package/menu/index.js +1 -1
  120. package/modal/index.js +1 -1
  121. package/package.json +6 -6
  122. package/popover/index.js +1 -1
  123. package/progress-bar/index.js +1 -1
  124. package/radio/Radio.d.ts +1 -1
  125. package/radio/Radio.stories.d.ts +6 -6
  126. package/radio/RadioButton.d.ts +1 -1
  127. package/radio/RadioField.d.ts +1 -1
  128. package/radio/RadioGroup.stories.d.ts +1 -1
  129. package/radio/index.js +1 -1
  130. package/search-field/SearchField.d.ts +1 -1
  131. package/search-field/SearchField.stories.d.ts +1 -1
  132. package/search-field/index.js +1 -1
  133. package/select/MultiSelectValue.d.ts +2 -1
  134. package/select/Select.d.ts +1 -1
  135. package/select/Select.stories.d.ts +2 -2
  136. package/select/SelectAll.d.ts +2 -1
  137. package/select/SelectTags.d.ts +1 -1
  138. package/select/SelectTrigger.d.ts +8 -2
  139. package/select/index.d.ts +1 -0
  140. package/select/index.js +2 -2
  141. package/skeleton/Skeleton.Form.stories.d.ts +1 -1
  142. package/skeleton/index.js +1 -1
  143. package/spinner/index.js +1 -1
  144. package/table/Table.d.ts +6 -6
  145. package/table/Table.stories.d.ts +7 -7
  146. package/table/index.js +1 -1
  147. package/tabs/TabList.d.ts +2 -1
  148. package/tabs/Tabs.stories.d.ts +1 -1
  149. package/tabs/index.js +1 -1
  150. package/tag/Tag.d.ts +1 -1
  151. package/tag/index.js +1 -1
  152. package/tag/tag-list/TagList.d.ts +1 -1
  153. package/text/index.js +1 -1
  154. package/textfield/PasswordToggle.d.ts +1 -1
  155. package/textfield/TextArea.stories.d.ts +9 -9
  156. package/textfield/index.js +1 -1
  157. package/time-field/index.js +1 -1
  158. package/toast/Toast.d.ts +3 -3
  159. package/toast/index.js +1 -1
  160. package/toggle-button/index.js +1 -1
  161. package/tooltip/Tooltip.d.ts +3 -2
  162. package/tooltip/Tooltip.stories.d.ts +1 -1
  163. package/tooltip/index.js +1 -1
  164. package/chunks/calendar-R7x0m8ch.js +0 -74
  165. package/chunks/heading-bnDePIbv.js +0 -28
  166. package/chunks/text-EUdAWwZz.js +0 -23
@@ -0,0 +1,111 @@
1
+ import { n as e, t } from "./clsx-Di52oYUU.js";
2
+ import { t as n } from "./createLucideIcon-BgluSHFG.js";
3
+ import { t as r } from "./chevron-right-DwqboCdU.js";
4
+ import { n as i } from "./button-CenXTGXL.js";
5
+ import { t as a } from "./heading-BEl_z-5T.js";
6
+ import { t as o } from "./field-error-LtNtEKDp.js";
7
+ import { n as s } from "./select-KQzDIamx.js";
8
+ import { a as c, c as l, o as u } from "./list-box-BN_MSiOD.js";
9
+ import * as d from "react";
10
+ import { Calendar as f, CalendarCell as p, CalendarGrid as m, CalendarMonthPicker as h, CalendarYearPicker as g, RangeCalendar as _, RangeCalendarContext as v, Select as y } from "react-aria-components";
11
+ import { jsx as b, jsxs as x } from "react/jsx-runtime";
12
+ import '../assets/calendar.css';var S = n("chevron-left", [["path", {
13
+ d: "m15 18-6-6 6-6",
14
+ key: "1wnfg3"
15
+ }]]), C = {
16
+ container: "_container_mn6zv_1",
17
+ calendar: "_calendar_mn6zv_6",
18
+ day: "_day_mn6zv_28",
19
+ header: "_header_mn6zv_90",
20
+ pickers: "_pickers_mn6zv_130",
21
+ range: "_range_mn6zv_180"
22
+ }, w = ({ weekdayStyle: e = "short", isReadOnly: n }) => {
23
+ let r = !!d.useContext(v);
24
+ return /* @__PURE__ */ b(m, {
25
+ weekdayStyle: e,
26
+ children: (e) => /* @__PURE__ */ b(p, {
27
+ date: e,
28
+ className: t(C.day, r && C.range),
29
+ "data-readonly": n || void 0
30
+ })
31
+ });
32
+ }, T = ({ isDisabled: e, isReadOnly: t, items: n, ...r }) => /* @__PURE__ */ x(y, {
33
+ isDisabled: e,
34
+ "data-readonly": t || void 0,
35
+ ...r,
36
+ children: [/* @__PURE__ */ b(s, {
37
+ size: "small",
38
+ isDisabled: e
39
+ }), /* @__PURE__ */ b(c, { children: /* @__PURE__ */ b(l, {
40
+ items: n,
41
+ virtualized: !1,
42
+ size: "small",
43
+ children: (e) => /* @__PURE__ */ b(u, {
44
+ id: e.id,
45
+ textValue: e.formatted,
46
+ children: e.formatted
47
+ })
48
+ }) })]
49
+ }), E = ({ isDisabled: e, isReadOnly: t, showMonthYearPicker: n }) => {
50
+ let o = (n) => /* @__PURE__ */ b(T, {
51
+ ...n,
52
+ isDisabled: e,
53
+ isReadOnly: t
54
+ });
55
+ return /* @__PURE__ */ x("header", {
56
+ className: C.header,
57
+ children: [
58
+ /* @__PURE__ */ b(i, {
59
+ slot: "previous",
60
+ size: "medium",
61
+ "data-readonly": t || void 0,
62
+ children: /* @__PURE__ */ b(S, { size: 20 })
63
+ }),
64
+ n ? /* @__PURE__ */ x("div", {
65
+ className: C.pickers,
66
+ children: [/* @__PURE__ */ b(h, { children: o }), /* @__PURE__ */ b(g, { children: o })]
67
+ }) : /* @__PURE__ */ b(a, {
68
+ level: 3,
69
+ elementType: "h2",
70
+ "data-disabled": e || void 0
71
+ }),
72
+ /* @__PURE__ */ b(i, {
73
+ slot: "next",
74
+ size: "medium",
75
+ "data-readonly": t || void 0,
76
+ children: /* @__PURE__ */ b(r, { size: 20 })
77
+ })
78
+ ]
79
+ });
80
+ }, D = ({ className: t, errorMessage: n, showMonthYearPicker: r, ...i }) => /* @__PURE__ */ x("div", {
81
+ className: C.container,
82
+ children: [/* @__PURE__ */ x(f, {
83
+ className: e(C.calendar, t),
84
+ "data-readonly": i.isReadOnly || void 0,
85
+ ...i,
86
+ children: [/* @__PURE__ */ b(E, {
87
+ ...i,
88
+ showMonthYearPicker: r
89
+ }), /* @__PURE__ */ b(w, { ...i })]
90
+ }), /* @__PURE__ */ b(o, {
91
+ isInvalid: i.isInvalid,
92
+ children: n
93
+ })]
94
+ }), O = ({ className: t, errorMessage: n, showMonthYearPicker: r, commitBehavior: i, ...a }) => /* @__PURE__ */ x("div", {
95
+ className: C.container,
96
+ children: [/* @__PURE__ */ x(_, {
97
+ className: e(C.calendar, t),
98
+ "data-readonly": a.isReadOnly || void 0,
99
+ commitBehavior: i ?? (r ? "reset" : void 0),
100
+ ...a,
101
+ children: [/* @__PURE__ */ b(E, {
102
+ ...a,
103
+ showMonthYearPicker: r
104
+ }), /* @__PURE__ */ b(w, { ...a })]
105
+ }), /* @__PURE__ */ b(o, {
106
+ isInvalid: a.isInvalid,
107
+ children: n
108
+ })]
109
+ });
110
+ //#endregion
111
+ export { D as n, O as t };
@@ -1,7 +1,7 @@
1
- import { t as e } from "./clsx-B1NYyfch.js";
1
+ import { t as e } from "./clsx-Di52oYUU.js";
2
2
  import { t } from "./arrow-right-Db_H9KjE.js";
3
- import { t as n } from "./heading-bnDePIbv.js";
4
- import { t as r } from "./text-EUdAWwZz.js";
3
+ import { t as n } from "./heading-BEl_z-5T.js";
4
+ import { t as r } from "./text-DwmZ-ew8.js";
5
5
  import * as i from "react";
6
6
  import { Button as a, Link as o } from "react-aria-components";
7
7
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
@@ -1,11 +1,11 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-B1NYyfch.js";
2
+ import { t as e } from "./clsx-Di52oYUU.js";
3
3
  import { t } from "./createLucideIcon-BgluSHFG.js";
4
4
  import { t as n } from "./check-DV00NPU0.js";
5
5
  import { t as r } from "./useLocalizedStringFormatter-CeyBc0x0.js";
6
- import { t as i } from "./text-EUdAWwZz.js";
7
- import { t as a } from "./field-error-pJiSw4PN.js";
8
- import { n as o, t as s } from "./label-CEYHiWSa.js";
6
+ import { n as i, t as a } from "./label-LWlgvAwz.js";
7
+ import { t as o } from "./text-DwmZ-ew8.js";
8
+ import { t as s } from "./field-error-LtNtEKDp.js";
9
9
  import * as c from "react";
10
10
  import { forwardRef as l, useContext as u } from "react";
11
11
  import { CheckboxButton as d, CheckboxField as f, CheckboxGroup as p, CheckboxGroupStateContext as m, composeRenderProps as h } from "react-aria-components";
@@ -27,14 +27,14 @@ import '../assets/checkbox.css';var b = t("minus", [["path", {
27
27
  className: e(x.checkboxButton, t),
28
28
  ref: r,
29
29
  ...n
30
- })), w = l(({ className: e, description: t, errorMessage: r, errorPosition: o = "top", children: s, ...c }, l) => /* @__PURE__ */ v(S, {
30
+ })), w = l(({ className: e, description: t, errorMessage: r, errorPosition: i = "top", children: a, ...c }, l) => /* @__PURE__ */ v(S, {
31
31
  ...c,
32
32
  children: [
33
- t && /* @__PURE__ */ _(i, {
33
+ t && /* @__PURE__ */ _(o, {
34
34
  slot: "description",
35
35
  children: t
36
36
  }),
37
- o === "top" && /* @__PURE__ */ _(a, { children: r }),
37
+ i === "top" && /* @__PURE__ */ _(s, { children: r }),
38
38
  /* @__PURE__ */ _(C, {
39
39
  ref: l,
40
40
  className: e,
@@ -44,9 +44,9 @@ import '../assets/checkbox.css';var b = t("minus", [["path", {
44
44
  size: 14,
45
45
  color: y.iconOnColor
46
46
  })
47
- }), s] })
47
+ }), a] })
48
48
  }),
49
- o === "bottom" && /* @__PURE__ */ _(a, { children: r })
49
+ i === "bottom" && /* @__PURE__ */ _(s, { children: r })
50
50
  ]
51
51
  }));
52
52
  w.displayName = "Checkbox";
@@ -82,15 +82,15 @@ var T = (e, t) => {
82
82
  ...y,
83
83
  className: e(x.checkboxGroup, f),
84
84
  children: h(m, (e) => /* @__PURE__ */ v(g, { children: [
85
- /* @__PURE__ */ _(o, {
85
+ /* @__PURE__ */ _(i, {
86
86
  popover: l,
87
- children: t && /* @__PURE__ */ _(s, { children: t })
87
+ children: t && /* @__PURE__ */ _(a, { children: t })
88
88
  }),
89
- n && /* @__PURE__ */ _(i, {
89
+ n && /* @__PURE__ */ _(o, {
90
90
  slot: "description",
91
91
  children: n
92
92
  }),
93
- c === "top" && r && /* @__PURE__ */ _(a, { children: r }),
93
+ c === "top" && r && /* @__PURE__ */ _(s, { children: r }),
94
94
  /* @__PURE__ */ v("div", {
95
95
  className: x.checkboxList,
96
96
  children: [u && /* @__PURE__ */ _(D, {
@@ -98,7 +98,7 @@ var T = (e, t) => {
98
98
  checkboxes: e
99
99
  }), e]
100
100
  }),
101
- c === "bottom" && r && /* @__PURE__ */ _(a, { children: r })
101
+ c === "bottom" && r && /* @__PURE__ */ _(s, { children: r })
102
102
  ] }))
103
103
  });
104
104
  //#endregion
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { t as e } from "./x-BJAOO5a5.js";
3
- import { n as t } from "./button-Ch860h28.js";
3
+ import { n as t } from "./button-CenXTGXL.js";
4
4
  import "react";
5
5
  import { jsx as n } from "react/jsx-runtime";
6
6
  //#region src/clear-button/ClearButton.tsx
@@ -2,10 +2,12 @@
2
2
  function e(t) {
3
3
  var n, r, i = "";
4
4
  if (typeof t == "string" || typeof t == "number") i += t;
5
- else if (typeof t == "object") if (Array.isArray(t)) {
6
- var a = t.length;
7
- for (n = 0; n < a; n++) t[n] && (r = e(t[n])) && (i && (i += " "), i += r);
8
- } else for (r in t) t[r] && (i && (i += " "), i += r);
5
+ else if (typeof t == "object") {
6
+ if (Array.isArray(t)) {
7
+ var a = t.length;
8
+ for (n = 0; n < a; n++) t[n] && (r = e(t[n])) && (i && (i += " "), i += r);
9
+ } else for (r in t) t[r] && (i && (i += " "), i += r);
10
+ }
9
11
  return i;
10
12
  }
11
13
  function t() {
@@ -1,12 +1,12 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-B1NYyfch.js";
2
+ import { t as e } from "./clsx-Di52oYUU.js";
3
3
  import { t } from "./createLucideIcon-BgluSHFG.js";
4
4
  import { t as n } from "./chevron-down-CP7nEDei.js";
5
5
  import { t as r } from "./useLocalizedStringFormatter-CeyBc0x0.js";
6
- import { n as i } from "./button-Ch860h28.js";
6
+ import { n as i } from "./button-CenXTGXL.js";
7
7
  import { t as a } from "./icons-UBHIX2oV.js";
8
- import { n as o, t as s } from "./toggle-button-BgUQKcK-.js";
9
- import { a as c, o as l, r as u } from "./menu-CPCGm0MC.js";
8
+ import { n as o, t as s } from "./toggle-button-CIvsOXQf.js";
9
+ import { a as c, o as l, r as u } from "./menu-aT2IR0tO.js";
10
10
  import * as d from "react";
11
11
  import { useEffect as f, useState as p } from "react";
12
12
  import { MenuItem as m, SelectionIndicator as h } from "react-aria-components";
@@ -1,11 +1,11 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-B1NYyfch.js";
2
+ import { t as e } from "./clsx-Di52oYUU.js";
3
3
  import { t } from "./chevron-down-CP7nEDei.js";
4
4
  import { t as n } from "./useLocalizedStringFormatter-CeyBc0x0.js";
5
- import { t as r } from "./text-EUdAWwZz.js";
6
- import { t as i } from "./field-error-pJiSw4PN.js";
7
- import { n as a, t as o } from "./label-CEYHiWSa.js";
8
- import { a as s, c, t as l } from "./list-box-VdBVTwZK.js";
5
+ import { n as r, t as i } from "./label-LWlgvAwz.js";
6
+ import { t as a } from "./text-DwmZ-ew8.js";
7
+ import { t as o } from "./field-error-LtNtEKDp.js";
8
+ import { a as s, c, t as l } from "./list-box-BN_MSiOD.js";
9
9
  import { useRef as u } from "react";
10
10
  import { Button as d, ComboBox as f, Input as p } from "react-aria-components";
11
11
  import { jsx as m, jsxs as h } from "react/jsx-runtime";
@@ -38,15 +38,15 @@ function v({ label: v, description: y, errorMessage: b, children: x, items: S, c
38
38
  ...O,
39
39
  "data-readonly": O.isReadOnly || void 0,
40
40
  children: [
41
- /* @__PURE__ */ m(a, {
41
+ /* @__PURE__ */ m(r, {
42
42
  popover: E,
43
- children: v && /* @__PURE__ */ m(o, { children: v })
43
+ children: v && /* @__PURE__ */ m(i, { children: v })
44
44
  }),
45
- y && /* @__PURE__ */ m(r, {
45
+ y && /* @__PURE__ */ m(a, {
46
46
  slot: "description",
47
47
  children: y
48
48
  }),
49
- w === "top" && /* @__PURE__ */ m(i, {
49
+ w === "top" && /* @__PURE__ */ m(o, {
50
50
  "data-testid": "fieldError",
51
51
  children: b
52
52
  }),
@@ -70,7 +70,7 @@ function v({ label: v, description: y, errorMessage: b, children: x, items: S, c
70
70
  })
71
71
  })]
72
72
  }),
73
- w === "bottom" && /* @__PURE__ */ m(i, {
73
+ w === "bottom" && /* @__PURE__ */ m(o, {
74
74
  "data-testid": "fieldError",
75
75
  children: b
76
76
  }),
@@ -1,9 +1,9 @@
1
- import { t as e } from "./clsx-B1NYyfch.js";
1
+ import { t as e } from "./clsx-Di52oYUU.js";
2
2
  import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
3
- import { t as n } from "./text-EUdAWwZz.js";
4
- import { t as r } from "./field-error-pJiSw4PN.js";
5
- import { n as i, t as a } from "./label-CEYHiWSa.js";
6
- import { t as o } from "./clear-button-la4Fb9_w.js";
3
+ import { n, t as r } from "./label-LWlgvAwz.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-D3I1X3yG.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";
@@ -34,15 +34,15 @@ import '../assets/date-field.css';var g = {
34
34
  isDisabled: b,
35
35
  className: e(_.dateField, t),
36
36
  children: [
37
- /* @__PURE__ */ f(i, {
37
+ /* @__PURE__ */ f(n, {
38
38
  popover: h,
39
- children: u && /* @__PURE__ */ f(a, { children: u })
39
+ children: u && /* @__PURE__ */ f(r, { children: u })
40
40
  }),
41
- o && /* @__PURE__ */ f(n, {
41
+ o && /* @__PURE__ */ f(i, {
42
42
  slot: "description",
43
43
  children: o
44
44
  }),
45
- l === "top" && /* @__PURE__ */ f(r, { children: s }),
45
+ l === "top" && /* @__PURE__ */ f(a, { children: s }),
46
46
  /* @__PURE__ */ f("div", {
47
47
  className: e(_.inputField, { [_.medium]: d === "medium" }),
48
48
  "data-testid": "date-field_input-field",
@@ -53,7 +53,7 @@ import '../assets/date-field.css';var g = {
53
53
  isReadOnly: y
54
54
  })] })
55
55
  }),
56
- l === "bottom" && /* @__PURE__ */ f(r, { children: s })
56
+ l === "bottom" && /* @__PURE__ */ f(a, { children: s })
57
57
  ]
58
58
  })), b = { dateSegment: "_dateSegment_15g5c_1" }, x = ({ className: t, ...n }) => /* @__PURE__ */ f(d, {
59
59
  className: e(b.dateSegment, t),
@@ -1,14 +1,14 @@
1
1
  'use client';
2
- import { n as e } from "./clsx-B1NYyfch.js";
2
+ import { n as e } from "./clsx-Di52oYUU.js";
3
3
  import { t } from "./createLucideIcon-BgluSHFG.js";
4
- import { n, t as r } from "./calendar-R7x0m8ch.js";
4
+ import { n, t as r } from "./calendar-BZPktkdE.js";
5
5
  import { t as i } from "./useLocalizedStringFormatter-CeyBc0x0.js";
6
- import { n as a } from "./button-Ch860h28.js";
7
- import { t as o } from "./text-EUdAWwZz.js";
8
- import { t as s } from "./field-error-pJiSw4PN.js";
9
- import { n as c, t as l } from "./label-CEYHiWSa.js";
10
- import { t as u } from "./clear-button-la4Fb9_w.js";
11
- import { n as d, r as f, t as p } from "./date-field-DG5TYsTF.js";
6
+ import { n as a } from "./button-CenXTGXL.js";
7
+ import { n as o, t as s } from "./label-LWlgvAwz.js";
8
+ import { t as c } from "./text-DwmZ-ew8.js";
9
+ import { t as l } from "./field-error-LtNtEKDp.js";
10
+ import { t as u } from "./clear-button-D3I1X3yG.js";
11
+ import { n as d, r as f, t as p } from "./date-field-BF2f9bSf.js";
12
12
  import * as m from "react";
13
13
  import { DatePicker as h, DatePickerStateContext as g, DateRangePicker as _, DateRangePickerStateContext as v, Group as y, Popover as b } from "react-aria-components";
14
14
  import { jsx as x, jsxs as S } from "react/jsx-runtime";
@@ -126,15 +126,15 @@ import '../assets/date-picker.css';var T = t("calendar-days", [
126
126
  ref: b,
127
127
  ...y,
128
128
  children: [
129
- /* @__PURE__ */ x(c, {
129
+ /* @__PURE__ */ x(o, {
130
130
  popover: p,
131
- children: u && /* @__PURE__ */ x(l, { children: u })
131
+ children: u && /* @__PURE__ */ x(s, { children: u })
132
132
  }),
133
- r && /* @__PURE__ */ x(o, {
133
+ r && /* @__PURE__ */ x(c, {
134
134
  slot: "description",
135
135
  children: r
136
136
  }),
137
- a === "top" && /* @__PURE__ */ x(s, { children: i }),
137
+ a === "top" && /* @__PURE__ */ x(l, { children: i }),
138
138
  /* @__PURE__ */ x(A, {
139
139
  isClearable: m,
140
140
  isReadOnly: g,
@@ -143,7 +143,7 @@ import '../assets/date-picker.css';var T = t("calendar-days", [
143
143
  ...y,
144
144
  children: /* @__PURE__ */ x(d, { children: (e) => /* @__PURE__ */ x(f, { segment: e }) })
145
145
  }),
146
- a === "bottom" && /* @__PURE__ */ x(s, { children: i }),
146
+ a === "bottom" && /* @__PURE__ */ x(l, { children: i }),
147
147
  /* @__PURE__ */ x(j, { children: /* @__PURE__ */ x(n, {}) })
148
148
  ]
149
149
  })), N = ({ className: t, description: n, errorMessage: i, errorPosition: a = "top", label: u, popover: m, isClearable: h = !1, isReadOnly: g, isDisabled: v, size: y, ...b }) => /* @__PURE__ */ S(_, {
@@ -152,15 +152,15 @@ import '../assets/date-picker.css';var T = t("calendar-days", [
152
152
  isDisabled: v,
153
153
  ...b,
154
154
  children: [
155
- /* @__PURE__ */ x(c, {
155
+ /* @__PURE__ */ x(o, {
156
156
  popover: m,
157
- children: u && /* @__PURE__ */ x(l, { children: u })
157
+ children: u && /* @__PURE__ */ x(s, { children: u })
158
158
  }),
159
- n && /* @__PURE__ */ x(o, {
159
+ n && /* @__PURE__ */ x(c, {
160
160
  slot: "description",
161
161
  children: n
162
162
  }),
163
- a === "top" && /* @__PURE__ */ x(s, { children: i }),
163
+ a === "top" && /* @__PURE__ */ x(l, { children: i }),
164
164
  /* @__PURE__ */ S(A, {
165
165
  isClearable: h,
166
166
  isReadOnly: g,
@@ -179,7 +179,7 @@ import '../assets/date-picker.css';var T = t("calendar-days", [
179
179
  })
180
180
  ]
181
181
  }),
182
- a === "bottom" && /* @__PURE__ */ x(s, { children: i }),
182
+ a === "bottom" && /* @__PURE__ */ x(l, { children: i }),
183
183
  /* @__PURE__ */ x(j, { children: /* @__PURE__ */ x(r, {}) })
184
184
  ]
185
185
  });
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-B1NYyfch.js";
2
+ import { t as e } from "./clsx-Di52oYUU.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-B1NYyfch.js";
2
- import { t } from "./text-EUdAWwZz.js";
1
+ import { t as e } from "./clsx-Di52oYUU.js";
2
+ import { t } from "./text-DwmZ-ew8.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,8 +1,8 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-B1NYyfch.js";
2
+ import { t as e } from "./clsx-Di52oYUU.js";
3
3
  import { t } from "./createLucideIcon-BgluSHFG.js";
4
4
  import { t as n } from "./useLocalizedStringFormatter-CeyBc0x0.js";
5
- import { n as r } from "./button-Ch860h28.js";
5
+ import { n as r } from "./button-CenXTGXL.js";
6
6
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
7
  import '../assets/file-list.css';var o = t("trash-2", [
8
8
  ["path", {
@@ -1,4 +1,4 @@
1
- import { t as e } from "./clsx-B1NYyfch.js";
1
+ import { t as e } from "./clsx-Di52oYUU.js";
2
2
  import "react";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  import '../assets/grid.css';var n = {
@@ -0,0 +1,31 @@
1
+ import { t as e } from "./clsx-Di52oYUU.js";
2
+ import "react";
3
+ import { Heading as t } from "react-aria-components";
4
+ import { jsx as n } from "react/jsx-runtime";
5
+ import '../assets/heading.css';var r = {
6
+ h1: "_h1_13alg_1",
7
+ h2: "_h2_13alg_2",
8
+ h3: "_h3_13alg_3",
9
+ h4: "_h4_13alg_4",
10
+ h5: "_h5_13alg_5",
11
+ h6: "_h6_13alg_6"
12
+ }, i = ({ children: i, className: a, enableMargins: o = !1, isExpressive: s = !1, level: c = 3, elementType: l, ...u }) => {
13
+ let d = l && parseInt(l.split("h")[1]);
14
+ return /* @__PURE__ */ n(t, {
15
+ level: d || c,
16
+ className: e([
17
+ r.h1,
18
+ r.h2,
19
+ r.h3,
20
+ r.h4,
21
+ r.h5,
22
+ r.h6
23
+ ][c - 1], a),
24
+ ...s && { "data-expressive": !0 },
25
+ ...o && { "data-margin": !0 },
26
+ ...u,
27
+ children: i
28
+ });
29
+ };
30
+ //#endregion
31
+ export { i as t };
@@ -1,8 +1,8 @@
1
- import { t as e } from "./clsx-B1NYyfch.js";
2
- import { t } from "./FeedbackStatusIcon-BS5VX-s6.js";
1
+ import { t as e } from "./clsx-Di52oYUU.js";
2
+ import { t } from "./FeedbackStatusIcon-DRI7WrSU.js";
3
3
  import { t as n } from "./x-BJAOO5a5.js";
4
4
  import { t as r } from "./useLocalizedStringFormatter-CeyBc0x0.js";
5
- import { n as i } from "./button-Ch860h28.js";
5
+ import { n as i } from "./button-CenXTGXL.js";
6
6
  import "react";
7
7
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
8
8
  import { useControlledState as s } from "@react-stately/utils";
@@ -1,9 +1,9 @@
1
- import { t as e } from "./clsx-B1NYyfch.js";
1
+ import { t as e } from "./clsx-Di52oYUU.js";
2
2
  import { t } from "./info-jCyacVsy.js";
3
3
  import { t as n } from "./useLocalizedStringFormatter-CeyBc0x0.js";
4
- import { n as r } from "./button-Ch860h28.js";
5
- import { t as i } from "./popover-wAwxm_cM.js";
6
- import { t as a } from "./modal-C-xHt7Ds.js";
4
+ import { n as r } from "./button-CenXTGXL.js";
5
+ import { t as i } from "./popover-DGcogqbS.js";
6
+ import { t as a } from "./modal-C-UsxdO0.js";
7
7
  import * as o from "react";
8
8
  import s, { useContext as c } from "react";
9
9
  import { Label as l } from "react-aria-components";
@@ -1,19 +1,32 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-B1NYyfch.js";
2
+ import { t as e } from "./clsx-Di52oYUU.js";
3
3
  import { t } from "./createLucideIcon-BgluSHFG.js";
4
4
  import { t as n } from "./x-BJAOO5a5.js";
5
5
  import { t as r } from "./useLocalizedStringFormatter-CeyBc0x0.js";
6
- import { n as i } from "./button-Ch860h28.js";
7
- import { n as a, t as o } from "./badge-BplGU5BS.js";
8
- import { t as s } from "./grid-DZB3GGDg.js";
9
- import { n as c, t as l } from "./tooltip-D7LYQwj0.js";
10
- import { t as u } from "./logo-CDxNjDeI.js";
6
+ import { n as i } from "./button-CenXTGXL.js";
7
+ import { n as a, t as o } from "./badge-BfK6XrlL.js";
8
+ import { t as s } from "./grid-Cn_8RSvj.js";
9
+ import { n as c, t as l } from "./tooltip-BkesIUIF.js";
10
+ import { t as u } from "./logo-DyZ2pXt7.js";
11
11
  import * as d from "react";
12
12
  import { useEffect as f, useState as p } from "react";
13
13
  import { Link as m, RouterProvider as h } from "react-aria-components";
14
14
  import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
15
15
  import { variables as y } from "@midas-ds/theme";
16
- import '../assets/layout.css';var b = t("panel-left-close", [
16
+ import '../assets/layout.css';var b = t("menu", [
17
+ ["path", {
18
+ d: "M4 5h16",
19
+ key: "1tepv9"
20
+ }],
21
+ ["path", {
22
+ d: "M4 12h16",
23
+ key: "1lakjw"
24
+ }],
25
+ ["path", {
26
+ d: "M4 19h16",
27
+ key: "1djgab"
28
+ }]
29
+ ]), x = t("panel-left-close", [
17
30
  ["rect", {
18
31
  width: "18",
19
32
  height: "18",
@@ -30,7 +43,7 @@ import '../assets/layout.css';var b = t("panel-left-close", [
30
43
  d: "m16 15-3-3 3-3",
31
44
  key: "14y99z"
32
45
  }]
33
- ]), x = t("panel-left-open", [
46
+ ]), S = t("panel-left-open", [
34
47
  ["rect", {
35
48
  width: "18",
36
49
  height: "18",
@@ -47,19 +60,6 @@ import '../assets/layout.css';var b = t("panel-left-close", [
47
60
  d: "m14 9 3 3-3 3",
48
61
  key: "8010ee"
49
62
  }]
50
- ]), S = t("menu", [
51
- ["path", {
52
- d: "M4 5h16",
53
- key: "1tepv9"
54
- }],
55
- ["path", {
56
- d: "M4 12h16",
57
- key: "1lakjw"
58
- }],
59
- ["path", {
60
- d: "M4 19h16",
61
- key: "1djgab"
62
- }]
63
63
  ]), C = {
64
64
  baseLayout: "_baseLayout_1ylxx_1",
65
65
  mainContent: "_mainContent_1ylxx_10",
@@ -214,7 +214,7 @@ import '../assets/layout.css';var b = t("panel-left-close", [
214
214
  "aria-label": s ? m.format("maximizeMenu") : m.format("minimizeMenu"),
215
215
  onPress: () => c(!s),
216
216
  className: C.collapseButton,
217
- children: _(s ? x : b, { size: 20 })
217
+ children: _(s ? S : x, { size: 20 })
218
218
  })]
219
219
  }), /* @__PURE__ */ _("nav", {
220
220
  className: C.sidebarNav,
@@ -281,7 +281,7 @@ import '../assets/layout.css';var b = t("panel-left-close", [
281
281
  onPressStart: () => {
282
282
  l(!1), c?.(!0);
283
283
  },
284
- children: _(s ? n : S, {
284
+ children: _(s ? n : b, {
285
285
  size: 20,
286
286
  "aria-hidden": "true"
287
287
  })
@@ -1,8 +1,8 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-B1NYyfch.js";
2
+ import { t as e } from "./clsx-Di52oYUU.js";
3
3
  import { t } from "./createLucideIcon-BgluSHFG.js";
4
- import { t as n } from "./square-arrow-out-up-right-DkgXD7hj.js";
5
- import { t as r } from "./arrow-right-Db_H9KjE.js";
4
+ import { t as n } from "./arrow-right-Db_H9KjE.js";
5
+ import { t as r } from "./square-arrow-out-up-right-DkgXD7hj.js";
6
6
  import { t as i } from "./useLocalizedStringFormatter-CeyBc0x0.js";
7
7
  import { Link as a, RouterProvider as o } from "react-aria-components";
8
8
  import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
@@ -39,9 +39,9 @@ import '../assets/link.css';var d = t("arrow-down-to-line", [
39
39
  icon: d,
40
40
  label: C.format("downloadsFile")
41
41
  } : m === "_blank" ? {
42
- icon: n,
42
+ icon: r,
43
43
  label: C.format("opensInNewTab")
44
- } : o ? { icon: r } : null;
44
+ } : o ? { icon: n } : null;
45
45
  return /* @__PURE__ */ l(S, {
46
46
  className: e(f.link, o && f.standalone, g && f.stretched, y),
47
47
  ...x,
@@ -1,8 +1,8 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-B1NYyfch.js";
2
+ import { t as e } from "./clsx-Di52oYUU.js";
3
3
  import { t } from "./createLucideIcon-BgluSHFG.js";
4
- import { t as n } from "./square-arrow-out-up-right-DkgXD7hj.js";
5
- import { t as r } from "./arrow-right-Db_H9KjE.js";
4
+ import { t as n } from "./arrow-right-Db_H9KjE.js";
5
+ import { t as r } from "./square-arrow-out-up-right-DkgXD7hj.js";
6
6
  import { t as i } from "./useLocalizedStringFormatter-CeyBc0x0.js";
7
7
  import "react";
8
8
  import { Link as a, RouterProvider as o } from "react-aria-components";
@@ -30,9 +30,9 @@ import '../assets/link-button.css';var u = t("arrow-left", [["path", {
30
30
  sv: { opensInNewTab: "Öppnas i ny flik" }
31
31
  }, p = ({ children: t, variant: o, fullwidth: p, icon: h, iconPlacement: g, className: _, as: v, size: y = "large", ...b }) => {
32
32
  let x = v || a, S = i(f), C = h ? { icon: h } : b.target === "_blank" ? {
33
- icon: n,
33
+ icon: r,
34
34
  label: S.format("opensInNewTab")
35
- } : g === "left" ? { icon: u } : { icon: r };
35
+ } : g === "left" ? { icon: u } : { icon: n };
36
36
  return /* @__PURE__ */ c(x, {
37
37
  className: e(d.linkButton, o === "primary" && d.primary, o === "secondary" && d.secondary, o === "tertiary" && d.tertiary, o === "danger" && d.danger, o === "icon" && d.iconBtn, y === "medium" && d.medium, p && d.fullwidth, g === "left" && d.iconLeft, _),
38
38
  ...b,