@midas-ds/components 17.27.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 (161) hide show
  1. package/CHANGELOG.md +23 -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/badge/Badge.stories.d.ts +1 -1
  6. package/badge/index.js +1 -1
  7. package/breadcrumbs/Breadcrumb.d.ts +1 -1
  8. package/breadcrumbs/Breadcrumbs.d.ts +1 -1
  9. package/breadcrumbs/Breadcrumbs.stories.d.ts +4 -4
  10. package/breadcrumbs/index.js +1 -1
  11. package/button/index.js +1 -1
  12. package/calendar/Calendar.d.ts +2 -1
  13. package/calendar/Calendar.stories.d.ts +2 -2
  14. package/calendar/CalendarGrid.d.ts +2 -1
  15. package/calendar/CalendarHeader.d.ts +2 -1
  16. package/calendar/CalendarPicker.d.ts +1 -1
  17. package/calendar/RangeCalendar.d.ts +2 -1
  18. package/calendar/RangeCalendar.stories.d.ts +1 -1
  19. package/calendar/index.js +1 -1
  20. package/card/Card.d.ts +1 -1
  21. package/card/card-body/CardBody.d.ts +1 -1
  22. package/card/card-header/CardHeader.d.ts +1 -1
  23. package/card/index.js +1 -1
  24. package/checkbox/CheckboxField.d.ts +1 -1
  25. package/checkbox/CheckboxGroup.d.ts +1 -1
  26. package/checkbox/CheckboxGroup.stories.d.ts +2 -2
  27. package/checkbox/SelectAllCheckbox.d.ts +1 -1
  28. package/checkbox/index.js +1 -1
  29. package/chunks/{FeedbackStatusIcon-BS5VX-s6.js → FeedbackStatusIcon-DRI7WrSU.js} +7 -7
  30. package/chunks/{accordion-BxxPnJau.js → accordion-DIVTJU3O.js} +7 -7
  31. package/chunks/{badge-BplGU5BS.js → badge-BfK6XrlL.js} +1 -1
  32. package/chunks/{breadcrumbs-C-Z6UlQn.js → breadcrumbs-DV0ZJc62.js} +1 -1
  33. package/chunks/{button-Ch860h28.js → button-CenXTGXL.js} +2 -2
  34. package/chunks/{calendar-DWdU1T7E.js → calendar-BZPktkdE.js} +6 -6
  35. package/chunks/{card-Bzc8kToe.js → card-zIYA-SQh.js} +3 -3
  36. package/chunks/{checkbox-BgCp0edW.js → checkbox-DcXA9GSd.js} +4 -4
  37. package/chunks/{clear-button-la4Fb9_w.js → clear-button-D3I1X3yG.js} +1 -1
  38. package/chunks/{clsx-B1NYyfch.js → clsx-Di52oYUU.js} +6 -4
  39. package/chunks/{color-scheme-switch-jgoxUu3x.js → color-scheme-switch-DVZjdwc9.js} +4 -4
  40. package/chunks/{combobox-B3AGDNru.js → combobox-DIou4Z-d.js} +5 -5
  41. package/chunks/{date-field-Q3bQ5P_t.js → date-field-BF2f9bSf.js} +5 -5
  42. package/chunks/{date-picker-BPAJK8Gr.js → date-picker-BomOO1LI.js} +8 -8
  43. package/chunks/{drop-zone-DvQLpgq6.js → drop-zone-DH3ZyHsr.js} +1 -1
  44. package/chunks/{field-error-pJiSw4PN.js → field-error-LtNtEKDp.js} +2 -2
  45. package/chunks/{file-list-DM1Vtkun.js → file-list-TmEuO1fJ.js} +2 -2
  46. package/chunks/{grid-DZB3GGDg.js → grid-Cn_8RSvj.js} +1 -1
  47. package/chunks/heading-BEl_z-5T.js +31 -0
  48. package/chunks/{info-banner-DnFNZ1_o.js → info-banner-osR4e6nB.js} +3 -3
  49. package/chunks/{label-CEYHiWSa.js → label-LWlgvAwz.js} +4 -4
  50. package/chunks/{layout-DVj8wSj3.js → layout-Db5um0f7.js} +23 -23
  51. package/chunks/{link-CQoSw1Pv.js → link-BAgs4RwY.js} +5 -5
  52. package/chunks/{link-button-BMFzCHH8.js → link-button-BuPMEGUj.js} +5 -5
  53. package/chunks/{list-box-BT33Wiwt.js → list-box-BN_MSiOD.js} +3 -3
  54. package/chunks/{logo-CDxNjDeI.js → logo-DyZ2pXt7.js} +1 -1
  55. package/chunks/{menu-CPCGm0MC.js → menu-aT2IR0tO.js} +1 -1
  56. package/chunks/{modal-C-xHt7Ds.js → modal-C-UsxdO0.js} +3 -3
  57. package/chunks/{popover-wAwxm_cM.js → popover-DGcogqbS.js} +1 -1
  58. package/chunks/{progress-bar-Cft_RPHz.js → progress-bar-7w_kWo2f.js} +2 -2
  59. package/chunks/{radio-BXC6pb3z.js → radio-C-MUMGu7.js} +4 -4
  60. package/chunks/{search-field-dAZu3T_V.js → search-field-BvfOHvUI.js} +6 -6
  61. package/chunks/{select-DOLE5CtI.js → select-KQzDIamx.js} +8 -8
  62. package/chunks/{skeleton-DWmvym7R.js → skeleton-B_BPRPJy.js} +1 -1
  63. package/chunks/{spinner-DMR5G-6u.js → spinner-LdHPVms_.js} +1 -1
  64. package/chunks/{table-RARvkGKL.js → table-zT6eQ3ZZ.js} +2 -2
  65. package/chunks/{tabs-BFFTnO4i.js → tabs-Co09VWvC.js} +1 -1
  66. package/chunks/{tag-mzNjP8EX.js → tag-BIcqtf7b.js} +2 -2
  67. package/chunks/text-DwmZ-ew8.js +28 -0
  68. package/chunks/{textfield-BNdiOwXq.js → textfield-CXqzzOtw.js} +5 -5
  69. package/chunks/{time-field-CZxI9Bs6.js → time-field-CmjGBQph.js} +6 -6
  70. package/chunks/{toast-Cz0JDIr1.js → toast-gJgjitZF.js} +3 -3
  71. package/chunks/{toggle-button-BgUQKcK-.js → toggle-button-CIvsOXQf.js} +1 -1
  72. package/chunks/{tooltip-D7LYQwj0.js → tooltip-BkesIUIF.js} +1 -1
  73. package/clear-button/index.js +1 -1
  74. package/color-scheme-switch/index.js +1 -1
  75. package/combobox/ComboBox.d.ts +1 -1
  76. package/combobox/ComboBox.stories.d.ts +3 -2
  77. package/combobox/index.js +1 -1
  78. package/common/FeedbackStatusIcon.d.ts +1 -1
  79. package/date-field/index.js +1 -1
  80. package/date-picker/DatePickerInputField.d.ts +1 -1
  81. package/date-picker/index.js +1 -1
  82. package/drop-zone/index.js +1 -1
  83. package/field-error/index.js +1 -1
  84. package/file-list/FileList.d.ts +1 -1
  85. package/file-list/FileList.stories.d.ts +3 -3
  86. package/file-list/FileListItem.d.ts +1 -1
  87. package/file-list/index.js +1 -1
  88. package/file-trigger/FileTrigger.d.ts +1 -1
  89. package/grid/index.js +1 -1
  90. package/heading/index.js +1 -1
  91. package/index.js +49 -49
  92. package/info-banner/index.js +1 -1
  93. package/label/InfoPopover.d.ts +1 -1
  94. package/label/index.js +1 -1
  95. package/layout/components/SidebarLink.d.ts +1 -1
  96. package/layout/index.js +1 -1
  97. package/link/Link.d.ts +1 -1
  98. package/link/index.js +1 -1
  99. package/link-button/LinkButton.d.ts +1 -1
  100. package/link-button/index.js +1 -1
  101. package/list-box/ListBox.d.ts +1 -1
  102. package/list-box/ListBox.stories.d.ts +4 -4
  103. package/list-box/ListBoxHeader.d.ts +1 -1
  104. package/list-box/ListBoxItem.d.ts +1 -1
  105. package/list-box/ListBoxSection.d.ts +1 -1
  106. package/list-box/index.js +1 -1
  107. package/list-box/list-box-empty-state/ListBoxEmptyState.d.ts +1 -1
  108. package/logo/Logo.d.ts +1 -1
  109. package/logo/index.js +1 -1
  110. package/menu/Menu.d.ts +1 -1
  111. package/menu/Menu.stories.d.ts +5 -4
  112. package/menu/MenuItem.d.ts +1 -1
  113. package/menu/MenuPopover.d.ts +1 -1
  114. package/menu/MenuSection.d.ts +1 -1
  115. package/menu/Separator.d.ts +1 -1
  116. package/menu/index.js +1 -1
  117. package/modal/index.js +1 -1
  118. package/package.json +6 -6
  119. package/popover/index.js +1 -1
  120. package/progress-bar/index.js +1 -1
  121. package/radio/Radio.d.ts +1 -1
  122. package/radio/Radio.stories.d.ts +6 -6
  123. package/radio/RadioButton.d.ts +1 -1
  124. package/radio/RadioField.d.ts +1 -1
  125. package/radio/RadioGroup.stories.d.ts +1 -1
  126. package/radio/index.js +1 -1
  127. package/search-field/SearchField.d.ts +1 -1
  128. package/search-field/SearchField.stories.d.ts +1 -1
  129. package/search-field/index.js +1 -1
  130. package/select/MultiSelectValue.d.ts +2 -1
  131. package/select/Select.d.ts +1 -1
  132. package/select/Select.stories.d.ts +2 -2
  133. package/select/SelectAll.d.ts +2 -1
  134. package/select/SelectTags.d.ts +1 -1
  135. package/select/SelectTrigger.d.ts +1 -1
  136. package/select/index.js +1 -1
  137. package/skeleton/Skeleton.Form.stories.d.ts +1 -1
  138. package/skeleton/index.js +1 -1
  139. package/spinner/index.js +1 -1
  140. package/table/Table.d.ts +6 -6
  141. package/table/Table.stories.d.ts +7 -7
  142. package/table/index.js +1 -1
  143. package/tabs/TabList.d.ts +2 -1
  144. package/tabs/Tabs.stories.d.ts +1 -1
  145. package/tabs/index.js +1 -1
  146. package/tag/Tag.d.ts +1 -1
  147. package/tag/index.js +1 -1
  148. package/tag/tag-list/TagList.d.ts +1 -1
  149. package/text/index.js +1 -1
  150. package/textfield/PasswordToggle.d.ts +1 -1
  151. package/textfield/TextArea.stories.d.ts +4 -4
  152. package/textfield/index.js +1 -1
  153. package/time-field/index.js +1 -1
  154. package/toast/Toast.d.ts +3 -3
  155. package/toast/index.js +1 -1
  156. package/toggle-button/index.js +1 -1
  157. package/tooltip/Tooltip.d.ts +3 -2
  158. package/tooltip/Tooltip.stories.d.ts +1 -1
  159. package/tooltip/index.js +1 -1
  160. package/chunks/heading-bnDePIbv.js +0 -28
  161. package/chunks/text-EUdAWwZz.js +0 -23
@@ -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,
@@ -1,7 +1,7 @@
1
- import { t as e } from "./clsx-B1NYyfch.js";
2
- import { t } from "./spinner-DMR5G-6u.js";
1
+ import { t as e } from "./clsx-Di52oYUU.js";
2
+ import { t } from "./spinner-LdHPVms_.js";
3
3
  import { t as n } from "./useLocalizedStringFormatter-CeyBc0x0.js";
4
- import { t as r } from "./text-EUdAWwZz.js";
4
+ import { t as r } from "./text-DwmZ-ew8.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-B1NYyfch.js";
1
+ import { t as e } from "./clsx-Di52oYUU.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-B1NYyfch.js";
1
+ import { t as e } from "./clsx-Di52oYUU.js";
2
2
  import { t } from "./check-DV00NPU0.js";
3
3
  import { t as n } from "./chevron-right-DwqboCdU.js";
4
4
  import { Menu as r, MenuItem as i, MenuSection as a, MenuTrigger as o, Popover as s, Separator as c } from "react-aria-components";
@@ -1,8 +1,8 @@
1
- import { t as e } from "./clsx-B1NYyfch.js";
1
+ import { t as e } from "./clsx-Di52oYUU.js";
2
2
  import { t } from "./x-BJAOO5a5.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 "./heading-bnDePIbv.js";
4
+ import { n as r } from "./button-CenXTGXL.js";
5
+ import { t as i } from "./heading-BEl_z-5T.js";
6
6
  import { forwardRef as a } from "react";
7
7
  import { Dialog as o, DialogTrigger as s, Modal as c, ModalOverlay as l, composeRenderProps as u } from "react-aria-components";
8
8
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
@@ -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 { 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";
@@ -1,5 +1,5 @@
1
- import { t as e } from "./clsx-B1NYyfch.js";
2
- import { t } from "./label-CEYHiWSa.js";
1
+ import { t as e } from "./clsx-Di52oYUU.js";
2
+ import { t } from "./label-LWlgvAwz.js";
3
3
  import "react";
4
4
  import { ProgressBar as n } from "react-aria-components";
5
5
  import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
- import { t as e } from "./clsx-B1NYyfch.js";
2
- import { n as t, t as n } from "./label-CEYHiWSa.js";
3
- import { t as r } from "./text-EUdAWwZz.js";
4
- import { t as i } from "./field-error-pJiSw4PN.js";
1
+ import { t as e } from "./clsx-Di52oYUU.js";
2
+ import { n as t, t as n } from "./label-LWlgvAwz.js";
3
+ import { t as r } from "./text-DwmZ-ew8.js";
4
+ import { t as i } from "./field-error-LtNtEKDp.js";
5
5
  import { Group as a, RadioButton as o, RadioField as s, RadioGroup as c, composeRenderProps as l } from "react-aria-components";
6
6
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
7
7
  import '../assets/radio.css';//#region src/radio/RadioField.tsx
@@ -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 "./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 "./label-CEYHiWSa.js";
8
- import { t as s } from "./text-EUdAWwZz.js";
9
- import { t as c } from "./field-error-pJiSw4PN.js";
6
+ import { n as i } from "./button-CenXTGXL.js";
7
+ import { n as a, t as o } from "./label-LWlgvAwz.js";
8
+ import { t as s } from "./text-DwmZ-ew8.js";
9
+ import { t as c } from "./field-error-LtNtEKDp.js";
10
10
  import { t as l } from "./TextField.module-D_tUnemB.js";
11
11
  import { FormContext as u, Input as d, SearchField as f, useSlottedContext as p } from "react-aria-components";
12
12
  import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
@@ -37,7 +37,7 @@ function b(e) {
37
37
  }
38
38
  var x = ({ errorPosition: t = "top", size: x = "large", showButton: S, className: C, errorMessage: w, placeholder: T, label: E, description: D, popover: O, validationBehavior: k, inputMode: A = "search", ...j }) => {
39
39
  let M = r(y), N = p(u), P = k ?? N?.validationBehavior ?? "aria", F = S !== !1, I = (e) => {
40
- !e || j.isInvalid || j.validate && b(j.validate(e)) || j.onSubmit?.(e);
40
+ e && !j.isInvalid && (j.validate && b(j.validate(e)) || j.onSubmit?.(e));
41
41
  };
42
42
  return /* @__PURE__ */ h(f, {
43
43
  ...j,
@@ -1,14 +1,14 @@
1
- import { n as e, t } from "./clsx-B1NYyfch.js";
1
+ import { n as e, t } from "./clsx-Di52oYUU.js";
2
2
  import { t as n } from "./chevron-down-CP7nEDei.js";
3
- import { n as r } from "./checkbox-BgCp0edW.js";
3
+ import { n as r } from "./checkbox-DcXA9GSd.js";
4
4
  import { t as i } from "./x-BJAOO5a5.js";
5
5
  import { t as a } from "./useLocalizedStringFormatter-CeyBc0x0.js";
6
- import { n as o, t as s } from "./label-CEYHiWSa.js";
7
- import { t as c } from "./popover-wAwxm_cM.js";
8
- import { t as l } from "./text-EUdAWwZz.js";
9
- import { t as u } from "./field-error-pJiSw4PN.js";
10
- import { c as d } from "./list-box-BT33Wiwt.js";
11
- import { n as f, r as p, t as m } from "./tag-mzNjP8EX.js";
6
+ import { n as o, t as s } from "./label-LWlgvAwz.js";
7
+ import { t as c } from "./popover-DGcogqbS.js";
8
+ import { t as l } from "./text-DwmZ-ew8.js";
9
+ import { t as u } from "./field-error-LtNtEKDp.js";
10
+ import { c as d } from "./list-box-BN_MSiOD.js";
11
+ import { n as f, r as p, t as m } from "./tag-BIcqtf7b.js";
12
12
  import h, { useContext as g } from "react";
13
13
  import { Button as _, Select as v, SelectStateContext as y, SelectValue as b } from "react-aria-components";
14
14
  import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
@@ -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, jsxs as n } from "react/jsx-runtime";
4
4
  import '../assets/skeleton.css';var r = {
@@ -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 { t } from "./createLucideIcon-BgluSHFG.js";
3
3
  import { t as n } from "./useLocalizedStringFormatter-CeyBc0x0.js";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
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 { n } from "./checkbox-BgCp0edW.js";
4
+ import { n } from "./checkbox-DcXA9GSd.js";
5
5
  import { Button as r, Cell as i, Collection as a, Column as o, Row as s, Table as c, TableBody as l, TableHeader as u, useTableOptions as d } from "react-aria-components";
6
6
  import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
7
7
  import '../assets/table.css';var h = t("arrow-down", [["path", {
@@ -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 * as t from "react";
4
4
  import { createContext as n } from "react";
5
5
  import { DialogContext as r, SelectionIndicator as i, Tab as a, TabList as o, TabPanel as s, Tabs as c, composeRenderProps as l } from "react-aria-components";
@@ -1,6 +1,6 @@
1
- import { t as e } from "./clsx-B1NYyfch.js";
1
+ import { t as e } from "./clsx-Di52oYUU.js";
2
2
  import { t } from "./x-BJAOO5a5.js";
3
- import { n } from "./button-Ch860h28.js";
3
+ import { n } from "./button-CenXTGXL.js";
4
4
  import { Children as r, forwardRef as i, isValidElement as a } from "react";
5
5
  import { Tag as o, TagGroup as s, TagGroupContext as c, TagList as l, TagListContext as u, composeRenderProps as d, useContextProps as f } from "react-aria-components";
6
6
  import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
@@ -0,0 +1,28 @@
1
+ import { t as e } from "./clsx-Di52oYUU.js";
2
+ import "react";
3
+ import { Text as t } from "react-aria-components";
4
+ import { jsx as n } from "react/jsx-runtime";
5
+ import '../assets/text.css';var r = {
6
+ body: "_body_g096r_1",
7
+ "body-small": "_body-small_g096r_2",
8
+ description: "_description_g096r_3",
9
+ "description-small": "_description-small_g096r_4",
10
+ bold: "_bold_g096r_24",
11
+ italic: "_italic_g096r_28"
12
+ }, i = "span", a = ({ children: a, className: o, size: s, isExpressive: c = !1, elementType: l = i, ...u }) => {
13
+ let d = {
14
+ className: e(u.slot === "description" ? s === "small" ? r["description-small"] : r.description : s === "small" ? r["body-small"] : r.body, {
15
+ [r.bold]: ["b", "strong"].includes(l),
16
+ [r.italic]: ["i", "em"].includes(l)
17
+ }, o),
18
+ elementType: l || i,
19
+ ...c && { "data-expressive": !0 },
20
+ ...u
21
+ };
22
+ return /* @__PURE__ */ n(t, {
23
+ ...d,
24
+ children: a
25
+ });
26
+ };
27
+ //#endregion
28
+ export { a as t };
@@ -1,10 +1,10 @@
1
1
  'use client';
2
- import { n as e, t } from "./clsx-B1NYyfch.js";
2
+ import { n as e, t } from "./clsx-Di52oYUU.js";
3
3
  import { t as n } from "./useLocalizedStringFormatter-CeyBc0x0.js";
4
- import { n as r } from "./button-Ch860h28.js";
5
- import { n as i, t as a } from "./label-CEYHiWSa.js";
6
- import { t as o } from "./text-EUdAWwZz.js";
7
- import { t as s } from "./field-error-pJiSw4PN.js";
4
+ import { n as r } from "./button-CenXTGXL.js";
5
+ import { n as i, t as a } from "./label-LWlgvAwz.js";
6
+ import { t as o } from "./text-DwmZ-ew8.js";
7
+ import { t as s } from "./field-error-LtNtEKDp.js";
8
8
  import { t as c } from "./character-counter-CSoVSrxZ.js";
9
9
  import { t as l } from "./TextField.module-D_tUnemB.js";
10
10
  import { forwardRef as u, useState as d } from "react";
@@ -1,10 +1,10 @@
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 { n, t as r } from "./label-CEYHiWSa.js";
4
- import { t as i } from "./text-EUdAWwZz.js";
5
- import { t as a } from "./field-error-pJiSw4PN.js";
6
- import { t as o } from "./clear-button-la4Fb9_w.js";
7
- import { n as s, r as c } from "./date-field-Q3bQ5P_t.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
+ import { n as s, r as c } from "./date-field-BF2f9bSf.js";
8
8
  import * as l from "react";
9
9
  import { TimeField as u, TimeFieldStateContext as d } from "react-aria-components";
10
10
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
@@ -1,8 +1,8 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-B1NYyfch.js";
3
- import { t } from "./FeedbackStatusIcon-BS5VX-s6.js";
2
+ import { t as e } from "./clsx-Di52oYUU.js";
3
+ import { t } from "./FeedbackStatusIcon-DRI7WrSU.js";
4
4
  import { t as n } from "./x-BJAOO5a5.js";
5
- import { n as r } from "./button-Ch860h28.js";
5
+ import { n as r } from "./button-CenXTGXL.js";
6
6
  import i from "react";
7
7
  import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
8
8
  import { useToast as c, useToastRegion as l } from "react-aria";
@@ -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 { t } from "./Button.module-0C2ArlRs.js";
3
3
  import "react";
4
4
  import { ToggleButton as n, ToggleButtonGroup as r } from "react-aria-components";
@@ -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 { OverlayArrow as t, Tooltip as n, TooltipTrigger as r } from "react-aria-components";
4
4
  import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/clear-button-la4Fb9_w.js";
1
+ import { t as e } from "../chunks/clear-button-D3I1X3yG.js";
2
2
  export { e as ClearButton };
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../chunks/color-scheme-switch-jgoxUu3x.js";
1
+ import { n as e, t } from "../chunks/color-scheme-switch-DVZjdwc9.js";
2
2
  export { e as ColorSchemeSwitch, t as ColorSchemeSwitchMenu };
@@ -18,4 +18,4 @@ export interface ComboBoxProps<T extends object> extends Omit<AriaComboBoxProps<
18
18
  popover?: InfoPopoverProps;
19
19
  listBoxProps?: ListBoxProps<T>;
20
20
  }
21
- export declare function ComboBox<T extends object>({ label, description, errorMessage, children, items, className, errorPosition, size, popover, listBoxProps, ...props }: ComboBoxProps<T>): import("react/jsx-runtime").JSX.Element;
21
+ export declare function ComboBox<T extends object>({ label, description, errorMessage, children, items, className, errorPosition, size, popover, listBoxProps, ...props }: ComboBoxProps<T>): import('react').JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
- import { options, optionsWithSections } from '../../../../tools/test-utils/src/index.ts';
2
+ import { options, optionsWithSections } from '@midas-ds/test-utils';
3
+ import { default as React } from 'react';
3
4
  import { ComboBox } from './ComboBox';
4
5
  type Item = (typeof options)[0];
5
6
  type Section = (typeof optionsWithSections)[0];
@@ -24,7 +25,7 @@ declare const _default: {
24
25
  render: (args: import('./ComboBox').ComboBoxProps<{
25
26
  id: import('react-aria-components').Key;
26
27
  name: string;
27
- }>) => import("react/jsx-runtime").JSX.Element;
28
+ }>) => React.JSX.Element;
28
29
  };
29
30
  export default _default;
30
31
  export declare const Primary: Story;
package/combobox/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/combobox-B3AGDNru.js";
1
+ import { t as e } from "../chunks/combobox-DIou4Z-d.js";
2
2
  export { e as ComboBox };
@@ -3,4 +3,4 @@ import { FeedbackStatus } from './types';
3
3
  export interface FeedbackStatusIconProps extends LucideProps {
4
4
  status: FeedbackStatus;
5
5
  }
6
- export declare const FeedbackStatusIcon: ({ status, "aria-label": ariaLabel, size, ...rest }: FeedbackStatusIconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const FeedbackStatusIcon: ({ status, "aria-label": ariaLabel, size, ...rest }: FeedbackStatusIconProps) => import('react').JSX.Element;
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "../chunks/date-field-Q3bQ5P_t.js";
1
+ import { i as e, n as t, r as n, t as r } from "../chunks/date-field-BF2f9bSf.js";
2
2
  export { e as DateField, t as DateInput, r as DateInputDivider, n as DateSegment };
@@ -4,5 +4,5 @@ import * as React from 'react';
4
4
  interface DatePickerInputFieldProps extends Pick<DatePickerProps<DateValue>, 'isDisabled' | 'isInvalid' | 'isReadOnly' | 'size' | 'isClearable'> {
5
5
  children?: React.ReactNode;
6
6
  }
7
- export declare const DatePickerInputField: ({ children, isDisabled, isInvalid, isReadOnly, size, isClearable, }: DatePickerInputFieldProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const DatePickerInputField: ({ children, isDisabled, isInvalid, isReadOnly, size, isClearable, }: DatePickerInputFieldProps) => React.JSX.Element;
8
8
  export {};
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../chunks/date-picker-BPAJK8Gr.js";
1
+ import { n as e, t } from "../chunks/date-picker-BomOO1LI.js";
2
2
  export { e as DatePicker, t as DateRangePicker };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/drop-zone-DvQLpgq6.js";
1
+ import { t as e } from "../chunks/drop-zone-DH3ZyHsr.js";
2
2
  export { e as DropZone };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/field-error-pJiSw4PN.js";
1
+ import { t as e } from "../chunks/field-error-LtNtEKDp.js";
2
2
  export { e as FieldError };
@@ -1,3 +1,3 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  export type FileListProps = HTMLAttributes<HTMLUListElement>;
3
- export declare const FileList: ({ className, children, ...props }: FileListProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const FileList: ({ className, children, ...props }: FileListProps) => import('react').JSX.Element;
@@ -2,16 +2,16 @@ import { StoryObj } from '@storybook/react-vite';
2
2
  import { FileList } from './FileList';
3
3
  type Story = StoryObj<typeof FileList>;
4
4
  declare const _default: {
5
- component: ({ className, children, ...props }: import('./FileList').FileListProps) => import("react/jsx-runtime").JSX.Element;
5
+ component: ({ className, children, ...props }: import('./FileList').FileListProps) => import('react').JSX.Element;
6
6
  subcomponents: {
7
- FileListItem: ({ fileName, fileSize, onDelete, className, }: import('./FileListItem').FileListItemProps) => import("react/jsx-runtime").JSX.Element;
7
+ FileListItem: ({ fileName, fileSize, onDelete, className, }: import('./FileListItem').FileListItemProps) => import('react').JSX.Element;
8
8
  };
9
9
  title: string;
10
10
  tags: string[];
11
11
  args: {
12
12
  'aria-label': string;
13
13
  };
14
- render: (args: import('./FileList').FileListProps) => import("react/jsx-runtime").JSX.Element;
14
+ render: (args: import('./FileList').FileListProps) => import('react').JSX.Element;
15
15
  };
16
16
  export default _default;
17
17
  export declare const Default: Story;
@@ -4,4 +4,4 @@ export interface FileListItemProps {
4
4
  onDelete?: () => void;
5
5
  className?: string;
6
6
  }
7
- export declare const FileListItem: ({ fileName, fileSize, onDelete, className, }: FileListItemProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const FileListItem: ({ fileName, fileSize, onDelete, className, }: FileListItemProps) => import('react').JSX.Element;
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../chunks/file-list-DM1Vtkun.js";
1
+ import { n as e, t } from "../chunks/file-list-TmEuO1fJ.js";
2
2
  export { e as FileList, t as FileListItem };
@@ -1,2 +1,2 @@
1
1
  import { FileTriggerProps } from 'react-aria-components';
2
- export declare const FileTrigger: (props: FileTriggerProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const FileTrigger: (props: FileTriggerProps) => import('react').JSX.Element;
package/grid/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../chunks/grid-DZB3GGDg.js";
1
+ import { n as e, t } from "../chunks/grid-Cn_8RSvj.js";
2
2
  export { e as Grid, t as GridItem };
package/heading/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/heading-bnDePIbv.js";
1
+ import { t as e } from "../chunks/heading-BEl_z-5T.js";
2
2
  export { e as Heading };