@midas-ds/components 17.38.2 → 17.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/accordion/index.js +1 -1
  3. package/aria/index.d.ts +3 -1
  4. package/aria/index.js +1 -2
  5. package/assets/table.css +1 -1
  6. package/button/index.js +1 -1
  7. package/calendar/index.js +1 -1
  8. package/checkbox/index.js +1 -1
  9. package/chunks/{FeedbackStatusIcon-DX5ndhm3.js → FeedbackStatusIcon-UfooOyeI.js} +1 -1
  10. package/chunks/{accordion-DjL3rngW.js → accordion-PJZYLZCe.js} +2 -2
  11. package/chunks/aria-BikUfLIG.js +6 -0
  12. package/chunks/{button-Q51P-Ssk.js → button-Bz66bIrr.js} +2 -2
  13. package/chunks/{calendar-DyILzX_V.js → calendar-D0aiCkAv.js} +3 -3
  14. package/chunks/{checkbox-MN5mhbFU.js → checkbox-SsXhAn-g.js} +2 -2
  15. package/chunks/{clear-button-BYiazZ-1.js → clear-button-DvMuUjDR.js} +1 -1
  16. package/chunks/{color-scheme-switch-BlGoqk4H.js → color-scheme-switch-2oSS52vq.js} +4 -3
  17. package/chunks/{combobox-D2wPjTS5.js → combobox-Ccqxupn2.js} +3 -3
  18. package/chunks/{date-field-Afo_uDbQ.js → date-field-DKmbbOGo.js} +3 -3
  19. package/chunks/{date-picker-jH3-jQoL.js → date-picker-CAtF7M_p.js} +6 -6
  20. package/chunks/{file-list-BvBSJyRQ.js → file-list-Bg8-wkyR.js} +4 -4
  21. package/chunks/{file-picker-C8JWsO9f.js → file-picker-C05TDsQS.js} +1 -1
  22. package/chunks/{info-banner-CkXe0Xd8.js → info-banner-BBpsG8F_.js} +3 -3
  23. package/chunks/{label-DCpy2Iwh.js → label-C-Iks5zm.js} +3 -3
  24. package/chunks/{layout-CYcW4Dsm.js → layout-DGIzTNAu.js} +3 -3
  25. package/chunks/link-CegkRPqz.js +43 -0
  26. package/chunks/link-button-BRV_Hy7v.js +43 -0
  27. package/chunks/{list-box-YaPiKCld.js → list-box-DfpVnLLk.js} +3 -3
  28. package/chunks/{logo-CBGOnROk.js → logo-DUlLYUV2.js} +1 -1
  29. package/chunks/menu-CHZ0d9-S.js +51 -0
  30. package/chunks/{modal-BfWHExGd.js → modal-E4kV_R5n.js} +38 -38
  31. package/chunks/{progress-bar-XMAH7KIq.js → progress-bar-yFa08Xfd.js} +1 -1
  32. package/chunks/{radio-BXjMFwia.js → radio-DbIUs2iU.js} +1 -1
  33. package/chunks/{search-field-mQvQC_fC.js → search-field-D--4cgzH.js} +3 -3
  34. package/chunks/{select-B_o3hWvM.js → select-DLoIzTsv.js} +5 -5
  35. package/chunks/{spinner-V6QnHHAH.js → spinner-D3-NXLkB.js} +1 -1
  36. package/chunks/table-DuzCUPCX.js +95 -0
  37. package/chunks/{tag-DO8N54-r.js → tag-BpnVl9_M.js} +1 -1
  38. package/chunks/{textfield-O1kNTcwC.js → textfield-BuJeJV1g.js} +3 -3
  39. package/chunks/{time-field-Dte4G0is.js → time-field-Cr5P1aNn.js} +4 -4
  40. package/chunks/{toast-DhXnpJRF.js → toast-BgrlaMnw.js} +2 -2
  41. package/chunks/{useLocalizedStringFormatter-DU97U9ZX.js → useLocalizedStringFormatter-BFwXcMGl.js} +1 -1
  42. package/clear-button/index.js +1 -1
  43. package/color-scheme-switch/index.js +1 -1
  44. package/combobox/index.js +1 -1
  45. package/date-field/index.js +1 -1
  46. package/date-picker/index.js +1 -1
  47. package/file-list/index.js +1 -1
  48. package/file-picker/index.js +1 -1
  49. package/index.d.ts +1 -1
  50. package/index.js +53 -53
  51. package/info-banner/index.js +1 -1
  52. package/label/index.js +1 -1
  53. package/layout/index.js +1 -1
  54. package/link/Link.d.ts +2 -2
  55. package/link/index.js +3 -1
  56. package/link-button/LinkButton.d.ts +2 -2
  57. package/link-button/index.js +3 -1
  58. package/list-box/index.js +1 -1
  59. package/logo/index.js +1 -1
  60. package/menu/Menu.d.ts +3 -2
  61. package/menu/index.js +3 -1
  62. package/modal/Modal.d.ts +1 -2
  63. package/modal/index.js +3 -1
  64. package/package.json +1 -1
  65. package/progress-bar/index.js +1 -1
  66. package/radio/index.js +1 -1
  67. package/search-field/index.js +1 -1
  68. package/select/index.js +1 -1
  69. package/spinner/index.js +1 -1
  70. package/table/index.js +1 -1
  71. package/tag/index.js +1 -1
  72. package/textfield/index.js +1 -1
  73. package/time-field/index.js +1 -1
  74. package/toast/index.js +1 -1
  75. package/utils/childrenSource.d.ts +19 -0
  76. package/utils/withDisplayName.d.ts +13 -0
  77. package/chunks/link-CyjmtEZP.js +0 -43
  78. package/chunks/link-button-D6t-8zQQ.js +0 -43
  79. package/chunks/menu-DVrvuxQk.js +0 -51
  80. package/chunks/table-B4-N2P6X.js +0 -84
@@ -1,12 +1,12 @@
1
- import { n as e, t } from "./label-DCpy2Iwh.js";
1
+ import { n as e, t } from "./label-C-Iks5zm.js";
2
2
  import { t as n } from "./clsx-BtGY0yFD.js";
3
3
  import { t as r } from "./text-CtvUKU-v.js";
4
4
  import { t as i } from "./field-error-DmG_1v1a.js";
5
- import { n as a } from "./checkbox-MN5mhbFU.js";
6
- import { t as o } from "./useLocalizedStringFormatter-DU97U9ZX.js";
7
- import { c as s } from "./list-box-YaPiKCld.js";
5
+ import { n as a } from "./checkbox-SsXhAn-g.js";
6
+ import { t as o } from "./useLocalizedStringFormatter-BFwXcMGl.js";
7
+ import { c as s } from "./list-box-DfpVnLLk.js";
8
8
  import { t as c } from "./popover-C7Ain5Qz.js";
9
- import { n as l, r as u, t as d } from "./tag-DO8N54-r.js";
9
+ import { n as l, r as u, t as d } from "./tag-BpnVl9_M.js";
10
10
  import f, { useContext as p } from "react";
11
11
  import m from "clsx";
12
12
  import { Button as h, Select as g, SelectStateContext as _, SelectValue as v } from "react-aria-components";
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./clsx-BtGY0yFD.js";
2
- import { t } from "./useLocalizedStringFormatter-DU97U9ZX.js";
2
+ import { t } from "./useLocalizedStringFormatter-BFwXcMGl.js";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  import { LoaderCircle as i } from "lucide-react";
5
5
  import { VisuallyHidden as a } from "react-aria";
@@ -0,0 +1,95 @@
1
+ 'use client';
2
+ import { n as e } from "./aria-BikUfLIG.js";
3
+ import { n as t } from "./checkbox-SsXhAn-g.js";
4
+ import { t as n } from "./clsx-BtGY0yFD.js";
5
+ import { Button as r, Cell as i, Column as a, Row as o, Table as s, TableBody as c, TableHeader as l, useTableOptions as u } from "react-aria-components";
6
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
7
+ import { ArrowDown as p, ArrowUp as m, ArrowUpDown as h, GripVertical as g } from "lucide-react";
8
+ import '../assets/table.css';var _ = {
9
+ table: "_table_eie5w_1",
10
+ tableHeader: "_tableHeader_eie5w_11",
11
+ column: "_column_eie5w_12",
12
+ columnContent: "_columnContent_eie5w_29",
13
+ columnLabel: "_columnLabel_eie5w_35",
14
+ sortIndicator: "_sortIndicator_eie5w_39",
15
+ sortIconNeutral: "_sortIconNeutral_eie5w_46",
16
+ selection: "_selection_eie5w_65",
17
+ row: "_row_eie5w_71",
18
+ cell: "_cell_eie5w_90",
19
+ narrow: "_narrow_eie5w_107",
20
+ medium: "_medium_eie5w_130",
21
+ striped: "_striped_eie5w_141"
22
+ }, v = ({ size: e = "large", striped: t = !1, className: r, ...i }) => /* @__PURE__ */ d(s, {
23
+ className: n(_.table, r, {
24
+ [_.medium]: e === "medium",
25
+ [_.striped]: t
26
+ }),
27
+ ...i
28
+ }), y = ({ columns: r, children: i, className: a }) => {
29
+ let { selectionBehavior: o, selectionMode: s, allowsDragging: c } = u();
30
+ return /* @__PURE__ */ f(l, {
31
+ className: n(a, _.tableHeader),
32
+ children: [
33
+ c && /* @__PURE__ */ d(x, {}),
34
+ o === "toggle" && /* @__PURE__ */ d(x, {
35
+ width: 50,
36
+ children: s === "multiple" && /* @__PURE__ */ d(t, {
37
+ className: _.selection,
38
+ slot: "selection"
39
+ })
40
+ }),
41
+ /* @__PURE__ */ d(e, {
42
+ items: r,
43
+ children: i
44
+ })
45
+ ]
46
+ });
47
+ }, b = ({ id: i, columns: a, children: s, className: c, ...l }) => {
48
+ let { selectionBehavior: p, allowsDragging: m } = u();
49
+ return /* @__PURE__ */ f(o, {
50
+ id: i,
51
+ className: n(c, _.row),
52
+ ...l,
53
+ children: [
54
+ m && /* @__PURE__ */ d(S, { children: /* @__PURE__ */ d(r, {
55
+ slot: "drag",
56
+ children: /* @__PURE__ */ d(g, { size: 20 })
57
+ }) }),
58
+ p === "toggle" && /* @__PURE__ */ d(S, { children: /* @__PURE__ */ d(t, {
59
+ className: _.selection,
60
+ slot: "selection"
61
+ }) }),
62
+ /* @__PURE__ */ d(e, {
63
+ items: a,
64
+ children: s
65
+ })
66
+ ]
67
+ });
68
+ }, x = ({ children: e, className: t, ...r }) => /* @__PURE__ */ d(a, {
69
+ className: n(t, _.column),
70
+ ...r,
71
+ children: (t) => {
72
+ let { allowsSorting: n, sortDirection: r } = t, i = typeof e == "function" ? e(t) : e;
73
+ return n ? /* @__PURE__ */ f("div", {
74
+ className: _.columnContent,
75
+ children: [/* @__PURE__ */ d("span", {
76
+ className: _.columnLabel,
77
+ children: i
78
+ }), /* @__PURE__ */ d("span", {
79
+ "aria-hidden": "true",
80
+ className: _.sortIndicator,
81
+ children: r === "ascending" ? /* @__PURE__ */ d(m, { size: 16 }) : r === "descending" ? /* @__PURE__ */ d(p, { size: 16 }) : /* @__PURE__ */ d(h, {
82
+ size: 16,
83
+ className: _.sortIconNeutral
84
+ })
85
+ })]
86
+ }) : i;
87
+ }
88
+ }), S = ({ className: e, ...t }) => /* @__PURE__ */ d(i, {
89
+ className: n(e, _.cell),
90
+ ...t
91
+ }), C = ({ className: e, ...t }) => /* @__PURE__ */ d(c, {
92
+ className: n(e, _.tableBody),
93
+ ...t
94
+ });
95
+ export { C as a, v as i, x as n, y as o, b as r, S as t };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./clsx-BtGY0yFD.js";
2
- import { n as t } from "./button-Q51P-Ssk.js";
2
+ import { n as t } from "./button-Bz66bIrr.js";
3
3
  import { Children as n, forwardRef as r, isValidElement as i } from "react";
4
4
  import { Tag as a, TagGroup as o, TagGroupContext as s, TagList as c, TagListContext as l, composeRenderProps as u, useContextProps as d } from "react-aria-components";
5
5
  import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
@@ -3,10 +3,10 @@ import { t as e } from "./TextField.module-DQfRPRIT.js";
3
3
  import { t } from "./text-CtvUKU-v.js";
4
4
  import { t as n } from "./field-error-DmG_1v1a.js";
5
5
  import { t as r } from "./character-counter-IbkPoEcq.js";
6
- import { n as i, t as a } from "./label-DCpy2Iwh.js";
6
+ import { n as i, t as a } from "./label-C-Iks5zm.js";
7
7
  import { t as o } from "./clsx-BtGY0yFD.js";
8
- import { t as s } from "./useLocalizedStringFormatter-DU97U9ZX.js";
9
- import { n as c } from "./button-Q51P-Ssk.js";
8
+ import { t as s } from "./useLocalizedStringFormatter-BFwXcMGl.js";
9
+ import { n as c } from "./button-Bz66bIrr.js";
10
10
  import { forwardRef as l, useState as u } from "react";
11
11
  import { clsx as d } from "clsx";
12
12
  import { Input as f, InputContext as p, TextArea as m, TextField as h, TextFieldContext as g, useContextProps as _ } from "react-aria-components";
@@ -1,10 +1,10 @@
1
1
  import { t as e } from "./clsx-BtGY0yFD.js";
2
- import { n as t, r as n } from "./date-field-Afo_uDbQ.js";
2
+ import { n as t, r as n } from "./date-field-DKmbbOGo.js";
3
3
  import { t as r } from "./field-error-DmG_1v1a.js";
4
- import { n as i, t as a } from "./label-DCpy2Iwh.js";
4
+ import { n as i, t as a } from "./label-C-Iks5zm.js";
5
5
  import { t as o } from "./text-CtvUKU-v.js";
6
- import { t as s } from "./clear-button-BYiazZ-1.js";
7
- import { t as c } from "./useLocalizedStringFormatter-DU97U9ZX.js";
6
+ import { t as s } from "./clear-button-DvMuUjDR.js";
7
+ import { t as c } from "./useLocalizedStringFormatter-BFwXcMGl.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,7 +1,7 @@
1
1
  'use client';
2
- import { n as e } from "./button-Q51P-Ssk.js";
2
+ import { n as e } from "./button-Bz66bIrr.js";
3
3
  import { t } from "./clsx-BtGY0yFD.js";
4
- import { t as n } from "./FeedbackStatusIcon-DX5ndhm3.js";
4
+ import { t as n } from "./FeedbackStatusIcon-UfooOyeI.js";
5
5
  import r from "react";
6
6
  import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
7
7
  import { X as s } from "lucide-react";
@@ -1,4 +1,4 @@
1
- import { useLocale as e } from "../aria/index.js";
1
+ import { m as e } from "./aria-BikUfLIG.js";
2
2
  import { useMemo as t } from "react";
3
3
  import { LocalizedStringDictionary as n, LocalizedStringFormatter as r } from "@internationalized/string";
4
4
  // src/utils/intl/useLocalizedStringFormatter.ts
@@ -1 +1 @@
1
- export { t as ClearButton } from "../chunks/clear-button-BYiazZ-1.js";
1
+ export { t as ClearButton } from "../chunks/clear-button-DvMuUjDR.js";
@@ -1 +1 @@
1
- export { n as ColorSchemeSwitch, t as ColorSchemeSwitchMenu } from "../chunks/color-scheme-switch-BlGoqk4H.js";
1
+ export { n as ColorSchemeSwitch, t as ColorSchemeSwitchMenu } from "../chunks/color-scheme-switch-2oSS52vq.js";
package/combobox/index.js CHANGED
@@ -1 +1 @@
1
- export { t as ComboBox } from "../chunks/combobox-D2wPjTS5.js";
1
+ export { t as ComboBox } from "../chunks/combobox-Ccqxupn2.js";
@@ -1 +1 @@
1
- export { i as DateField, n as DateInput, t as DateInputDivider, r as DateSegment } from "../chunks/date-field-Afo_uDbQ.js";
1
+ export { i as DateField, n as DateInput, t as DateInputDivider, r as DateSegment } from "../chunks/date-field-DKmbbOGo.js";
@@ -1 +1 @@
1
- export { n as DatePicker, t as DateRangePicker } from "../chunks/date-picker-jH3-jQoL.js";
1
+ export { n as DatePicker, t as DateRangePicker } from "../chunks/date-picker-CAtF7M_p.js";
@@ -1 +1 @@
1
- export { n as FileList, t as FileListItem } from "../chunks/file-list-BvBSJyRQ.js";
1
+ export { n as FileList, t as FileListItem } from "../chunks/file-list-Bg8-wkyR.js";
@@ -1 +1 @@
1
- export { t as FilePicker } from "../chunks/file-picker-C8JWsO9f.js";
1
+ export { t as FilePicker } from "../chunks/file-picker-C05TDsQS.js";
package/index.d.ts CHANGED
@@ -24,7 +24,7 @@ export * from './info-banner';
24
24
  export * from './label';
25
25
  export * from './layout';
26
26
  export * from './link';
27
- export { RouterProvider } from './link';
27
+ export { RouterProvider } from './aria';
28
28
  export * from './link-button';
29
29
  export * from './logo';
30
30
  export * from './modal';
package/index.js CHANGED
@@ -1,57 +1,57 @@
1
1
  'use client';
2
2
  "use client";
3
- import { n as e, t } from "./chunks/accordion-DjL3rngW.js";
4
- import { ButtonContext as n, Collection as r, Focusable as i, Form as a, I18nProvider as o, Pressable as s, TableLayout as c, Virtualizer as l, useLocale as u } from "./aria/index.js";
5
- import { n as d, t as f } from "./chunks/link-CyjmtEZP.js";
6
- import { t as p } from "./chunks/spinner-V6QnHHAH.js";
7
- import { t as m } from "./chunks/useLocalizedStringFormatter-DU97U9ZX.js";
8
- import { n as h, t as g } from "./chunks/button-Q51P-Ssk.js";
9
- import { t as _ } from "./chunks/heading-0P5rm7xK.js";
10
- import { n as v, t as y } from "./chunks/badge-C5Sdu_uw.js";
11
- import { n as b, t as x } from "./chunks/breadcrumbs-BwYDyKWo.js";
12
- import { n as S, t as C } from "./chunks/calendar-DyILzX_V.js";
13
- import { t as w } from "./chunks/label-DCpy2Iwh.js";
14
- import { t as T } from "./chunks/popover-C7Ain5Qz.js";
15
- import { n as E, r as D, t as O } from "./chunks/modal-BfWHExGd.js";
16
- import { t as k } from "./chunks/text-CtvUKU-v.js";
17
- import { t as A } from "./chunks/field-error-DmG_1v1a.js";
18
- import { i as j, n as M, r as N, t as P } from "./chunks/checkbox-MN5mhbFU.js";
19
- import { n as F, t as I } from "./chunks/select-B_o3hWvM.js";
20
- import { a as L, c as R, i as z, n as B, o as V, r as H, s as U, t as W } from "./chunks/list-box-YaPiKCld.js";
21
- import { n as G, r as K, t as q } from "./chunks/tag-DO8N54-r.js";
22
- import { a as J, c as Y, i as X, l as Z, n as Q, o as $, r as ee, s as te, t as ne } from "./chunks/card-CFy9gV47.js";
23
- import { t as re } from "./chunks/character-counter-IbkPoEcq.js";
24
- import { t as ie } from "./chunks/icons-a0WawN46.js";
25
- import { n as ae, t as oe } from "./chunks/toggle-button--nCm-94u.js";
26
- import { n as se, t as ce } from "./chunks/color-scheme-switch-BlGoqk4H.js";
27
- import { a as le, i as ue, n as de, o as fe, r as pe, s as me, t as he } from "./chunks/menu-DVrvuxQk.js";
28
- import { t as ge } from "./chunks/combobox-D2wPjTS5.js";
29
- import { i as _e, n as ve, r as ye, t as be } from "./chunks/date-field-Afo_uDbQ.js";
30
- import { n as xe, t as Se } from "./chunks/date-picker-jH3-jQoL.js";
31
- import { t as Ce } from "./chunks/drop-zone-CSN3p9Ci.js";
32
- import { a as we, i as Te, n as Ee, r as De, t as Oe } from "./chunks/empty-state-CnDZoO65.js";
33
- import { n as ke, t as Ae } from "./chunks/file-list-BvBSJyRQ.js";
34
- import { t as je } from "./chunks/progress-bar-XMAH7KIq.js";
35
- import { t as Me } from "./chunks/file-picker-C8JWsO9f.js";
36
- import { t as Ne } from "./chunks/file-trigger-MkxFBZEa.js";
37
- import { n as Pe, t as Fe } from "./chunks/grid-CFn_pqQX.js";
38
- import { t as Ie } from "./chunks/info-banner-CkXe0Xd8.js";
39
- import { a as Le, i as Re, n as ze, r as Be, t as Ve } from "./chunks/layout-CYcW4Dsm.js";
40
- import { n as He, t as Ue } from "./chunks/tooltip-CR1uxtPd.js";
41
- import { n as We, t as Ge } from "./chunks/logo-CBGOnROk.js";
42
- import { t as Ke } from "./chunks/clsx-BtGY0yFD.js";
43
- import { t as qe } from "./chunks/link-button-D6t-8zQQ.js";
44
- import { i as Je, n as Ye, r as Xe, t as Ze } from "./chunks/radio-BXjMFwia.js";
45
- import { t as Qe } from "./chunks/search-field-mQvQC_fC.js";
46
- import { t as $e } from "./chunks/skeleton-6y5HNJZp.js";
47
- import { t as et } from "./chunks/stack-DKjRicm1.js";
48
- import { a as tt, i as nt, n as rt, o as it, r as at, t as ot } from "./chunks/table-B4-N2P6X.js";
49
- import { i as st, n as ct, r as lt, t as ut } from "./chunks/tabs-ZCpVhr_r.js";
50
- import { i as dt, n as ft, r as pt, t as mt } from "./chunks/textfield-O1kNTcwC.js";
51
- import { t as ht } from "./chunks/time-field-Dte4G0is.js";
52
- import { a as gt, i as _t, n as vt, o as yt, r as bt, t as xt } from "./chunks/toast-DhXnpJRF.js";
3
+ import { n as e, t } from "./chunks/accordion-PJZYLZCe.js";
4
+ import { a as n, c as r, d as i, f as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h } from "./chunks/aria-BikUfLIG.js";
5
+ import { t as g } from "./chunks/useLocalizedStringFormatter-BFwXcMGl.js";
6
+ import { t as _ } from "./chunks/spinner-D3-NXLkB.js";
7
+ import { t as v } from "./chunks/clsx-BtGY0yFD.js";
8
+ import { n as y, t as b } from "./chunks/button-Bz66bIrr.js";
9
+ import { t as x } from "./chunks/heading-0P5rm7xK.js";
10
+ import { n as S, t as C } from "./chunks/badge-C5Sdu_uw.js";
11
+ import { n as w, t as T } from "./chunks/breadcrumbs-BwYDyKWo.js";
12
+ import { n as E, t as D } from "./chunks/calendar-D0aiCkAv.js";
13
+ import { t as O } from "./chunks/label-C-Iks5zm.js";
14
+ import { t as k } from "./chunks/popover-C7Ain5Qz.js";
15
+ import { n as A, t as j } from "./chunks/modal-E4kV_R5n.js";
16
+ import { t as M } from "./chunks/text-CtvUKU-v.js";
17
+ import { t as N } from "./chunks/field-error-DmG_1v1a.js";
18
+ import { i as P, n as F, r as I, t as L } from "./chunks/checkbox-SsXhAn-g.js";
19
+ import { n as R, t as z } from "./chunks/select-DLoIzTsv.js";
20
+ import { a as B, c as V, i as H, n as U, o as W, r as G, s as K, t as q } from "./chunks/list-box-DfpVnLLk.js";
21
+ import { n as J, r as Y, t as X } from "./chunks/tag-BpnVl9_M.js";
22
+ import { a as Z, c as Q, i as $, l as ee, n as te, o as ne, r as re, s as ie, t as ae } from "./chunks/card-CFy9gV47.js";
23
+ import { t as oe } from "./chunks/character-counter-IbkPoEcq.js";
24
+ import { t as se } from "./chunks/icons-a0WawN46.js";
25
+ import { n as ce, t as le } from "./chunks/toggle-button--nCm-94u.js";
26
+ import { n as ue, t as de } from "./chunks/color-scheme-switch-2oSS52vq.js";
27
+ import { a as fe, i as pe, n as me, o as he, r as ge, t as _e } from "./chunks/menu-CHZ0d9-S.js";
28
+ import { t as ve } from "./chunks/combobox-Ccqxupn2.js";
29
+ import { i as ye, n as be, r as xe, t as Se } from "./chunks/date-field-DKmbbOGo.js";
30
+ import { n as Ce, t as we } from "./chunks/date-picker-CAtF7M_p.js";
31
+ import { t as Te } from "./chunks/drop-zone-CSN3p9Ci.js";
32
+ import { a as Ee, i as De, n as Oe, r as ke, t as Ae } from "./chunks/empty-state-CnDZoO65.js";
33
+ import { n as je, t as Me } from "./chunks/file-list-Bg8-wkyR.js";
34
+ import { t as Ne } from "./chunks/progress-bar-yFa08Xfd.js";
35
+ import { t as Pe } from "./chunks/file-picker-C05TDsQS.js";
36
+ import { t as Fe } from "./chunks/file-trigger-MkxFBZEa.js";
37
+ import { n as Ie, t as Le } from "./chunks/grid-CFn_pqQX.js";
38
+ import { t as Re } from "./chunks/info-banner-BBpsG8F_.js";
39
+ import { a as ze, i as Be, n as Ve, r as He, t as Ue } from "./chunks/layout-DGIzTNAu.js";
40
+ import { n as We, t as Ge } from "./chunks/tooltip-CR1uxtPd.js";
41
+ import { n as Ke, t as qe } from "./chunks/logo-DUlLYUV2.js";
42
+ import { t as Je } from "./chunks/link-CegkRPqz.js";
43
+ import { t as Ye } from "./chunks/link-button-BRV_Hy7v.js";
44
+ import { i as Xe, n as Ze, r as Qe, t as $e } from "./chunks/radio-DbIUs2iU.js";
45
+ import { t as et } from "./chunks/search-field-D--4cgzH.js";
46
+ import { t as tt } from "./chunks/skeleton-6y5HNJZp.js";
47
+ import { t as nt } from "./chunks/stack-DKjRicm1.js";
48
+ import { a as rt, i as it, n as at, o as ot, r as st, t as ct } from "./chunks/table-DuzCUPCX.js";
49
+ import { i as lt, n as ut, r as dt, t as ft } from "./chunks/tabs-ZCpVhr_r.js";
50
+ import { i as pt, n as mt, r as ht, t as gt } from "./chunks/textfield-BuJeJV1g.js";
51
+ import { t as _t } from "./chunks/time-field-Cr5P1aNn.js";
52
+ import { a as vt, i as yt, n as bt, o as xt, r as St, t as Ct } from "./chunks/toast-BgrlaMnw.js";
53
53
  // src/version.ts
54
- var St = {
54
+ var wt = {
55
55
  name: "@midas-ds/components",
56
56
  author: { name: "Migrationsverket" },
57
57
  keywords: [
@@ -63,7 +63,7 @@ var St = {
63
63
  description: "Midas Components",
64
64
  homepage: "https://designsystem.migrationsverket.se/",
65
65
  license: "CC0-1.0",
66
- version: "17.38.2",
66
+ version: "17.39.0",
67
67
  module: "./index.js",
68
68
  type: "module",
69
69
  main: "./index.js",
@@ -96,4 +96,4 @@ var St = {
96
96
  "react-stately": "3.50.0"
97
97
  }
98
98
  }.version;
99
- export { e as Accordion, t as AccordionItem, v as Badge, y as BadgeContainer, x as Breadcrumb, b as Breadcrumbs, h as Button, n as ButtonContext, g as ButtonGroup, S as Calendar, ee as Card, X as CardActionArea, J as CardActions, Q as CardBody, $ as CardContent, ne as CardHeader, te as CardImage, Y as CardLink, Z as CardTitle, ot as Cell, re as CharacterCounter, M as Checkbox, N as CheckboxButton, j as CheckboxField, P as CheckboxGroup, r as Collection, se as ColorSchemeSwitch, ce as ColorSchemeSwitchMenu, rt as Column, ge as ComboBox, ie as ContrastFilled, _e as DateField, ve as DateInput, be as DateInputDivider, xe as DatePicker, Se as DateRangePicker, ye as DateSegment, O as DialogTrigger, Ce as DropZone, Oe as EmptyState, we as EmptyStateActions, Te as EmptyStateHeading, De as EmptyStateText, Ee as EmptyStateVisual, A as FieldError, ke as FileList, Ae as FileListItem, Me as FilePicker, Ne as FileTrigger, i as Focusable, a as Form, xt as GlobalToastRegion, Pe as Grid, Fe as GridItem, Be as Header, _ as Heading, o as I18nProvider, Ie as InfoBanner, pt as Input, w as Label, Ve as Layout, f as Link, qe as LinkButton, R as ListBox, U as ListBoxButton, W as ListBoxEmptyState, B as ListBoxHeader, V as ListBoxItem, H as ListBoxLoadMoreItem, L as ListBoxPopover, z as ListBoxSection, Ge as Logo, We as LogoContext, fe as Menu, le as MenuHeader, ue as MenuItem, pe as MenuPopover, de as MenuSection, me as MenuTrigger, E as Modal, D as ModalOverlay, ze as Navbar, T as Popover, s as Pressable, je as ProgressBar, Ye as Radio, Xe as RadioButton, Je as RadioField, Ze as RadioGroup, C as RangeCalendar, d as RouterProvider, at as Row, Qe as SearchField, I as Select, F as SelectTrigger, he as Separator, Re as Sidebar, Le as SidebarLink, $e as Skeleton, p as Spinner, et as Stack, lt as Tab, ut as TabList, ct as TabPanel, nt as Table, tt as TableBody, it as TableHeader, c as TableLayout, st as Tabs, K as Tag, q as TagGroup, G as TagList, k as Text, mt as TextArea, ft as TextField, dt as TextFieldBase, ht as TimeField, vt as Toast, bt as ToastProvider, _t as ToastRegion, ae as ToggleButton, oe as ToggleButtonGroup, Ue as Tooltip, He as TooltipTrigger, St as VERSION, l as Virtualizer, Ke as clsx, gt as toastQueue, u as useLocale, m as useLocalizedStringFormatter, yt as useToastState };
99
+ export { e as Accordion, t as AccordionItem, S as Badge, C as BadgeContainer, T as Breadcrumb, w as Breadcrumbs, y as Button, m as ButtonContext, b as ButtonGroup, E as Calendar, re as Card, $ as CardActionArea, Z as CardActions, te as CardBody, ne as CardContent, ae as CardHeader, ie as CardImage, Q as CardLink, ee as CardTitle, ct as Cell, oe as CharacterCounter, F as Checkbox, I as CheckboxButton, P as CheckboxField, L as CheckboxGroup, l as Collection, ue as ColorSchemeSwitch, de as ColorSchemeSwitchMenu, at as Column, ve as ComboBox, se as ContrastFilled, ye as DateField, be as DateInput, Se as DateInputDivider, Ce as DatePicker, we as DateRangePicker, xe as DateSegment, f as DialogTrigger, Te as DropZone, Ae as EmptyState, Ee as EmptyStateActions, De as EmptyStateHeading, ke as EmptyStateText, Oe as EmptyStateVisual, N as FieldError, je as FileList, Me as FileListItem, Pe as FilePicker, Fe as FileTrigger, o as Focusable, n as Form, Ct as GlobalToastRegion, Ie as Grid, Le as GridItem, He as Header, x as Heading, u as I18nProvider, Re as InfoBanner, ht as Input, p as Keyboard, O as Label, Ue as Layout, Je as Link, Ye as LinkButton, V as ListBox, K as ListBoxButton, q as ListBoxEmptyState, U as ListBoxHeader, W as ListBoxItem, G as ListBoxLoadMoreItem, B as ListBoxPopover, H as ListBoxSection, qe as Logo, Ke as LogoContext, he as Menu, fe as MenuHeader, pe as MenuItem, ge as MenuPopover, me as MenuSection, r as MenuTrigger, j as Modal, A as ModalOverlay, Ve as Navbar, k as Popover, s as Pressable, Ne as ProgressBar, Ze as Radio, Qe as RadioButton, Xe as RadioField, $e as RadioGroup, D as RangeCalendar, h as RouterProvider, st as Row, et as SearchField, z as Select, R as SelectTrigger, _e as Separator, Be as Sidebar, ze as SidebarLink, tt as Skeleton, _ as Spinner, nt as Stack, i as SubmenuTrigger, dt as Tab, ft as TabList, ut as TabPanel, it as Table, rt as TableBody, ot as TableHeader, a as TableLayout, lt as Tabs, Y as Tag, X as TagGroup, J as TagList, M as Text, gt as TextArea, mt as TextField, pt as TextFieldBase, _t as TimeField, bt as Toast, St as ToastProvider, yt as ToastRegion, ce as ToggleButton, le as ToggleButtonGroup, Ge as Tooltip, We as TooltipTrigger, wt as VERSION, d as Virtualizer, v as clsx, vt as toastQueue, c as useLocale, g as useLocalizedStringFormatter, xt as useToastState };
@@ -1 +1 @@
1
- export { t as InfoBanner } from "../chunks/info-banner-CkXe0Xd8.js";
1
+ export { t as InfoBanner } from "../chunks/info-banner-BBpsG8F_.js";
package/label/index.js CHANGED
@@ -1 +1 @@
1
- export { t as Label } from "../chunks/label-DCpy2Iwh.js";
1
+ export { t as Label } from "../chunks/label-C-Iks5zm.js";
package/layout/index.js CHANGED
@@ -1 +1 @@
1
- export { r as Header, t as Layout, n as Navbar, i as Sidebar, a as SidebarLink } from "../chunks/layout-CYcW4Dsm.js";
1
+ export { r as Header, t as Layout, n as Navbar, i as Sidebar, a as SidebarLink } from "../chunks/layout-DGIzTNAu.js";
package/link/Link.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Link as AriaLink, RouterProvider } from 'react-aria-components';
1
+ import { Link as AriaLink } from 'react-aria-components';
2
2
  import { LucideIcon } from 'lucide-react';
3
3
  export interface LinkComponentProps<C extends React.ElementType> {
4
4
  children: React.ReactNode;
@@ -16,4 +16,4 @@ export interface LinkComponentProps<C extends React.ElementType> {
16
16
  }
17
17
  export type LinkProps<C extends React.ElementType> = LinkComponentProps<C> & Omit<React.ComponentProps<C>, keyof LinkComponentProps<C>>;
18
18
  export declare const Link: <C extends React.ElementType = typeof AriaLink>({ children, standalone, target, stretched, download, icon: customIcon, className, as, ...rest }: LinkProps<C>) => import('react').JSX.Element;
19
- export { RouterProvider };
19
+ export { RouterProvider } from '../aria';
package/link/index.js CHANGED
@@ -1 +1,3 @@
1
- export { t as Link, n as RouterProvider } from "../chunks/link-CyjmtEZP.js";
1
+ import { u as e } from "../chunks/aria-BikUfLIG.js";
2
+ import { t } from "../chunks/link-CegkRPqz.js";
3
+ export { t as Link, e as RouterProvider };
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { Link as AriaLink, RouterProvider } from 'react-aria-components';
2
+ import { Link as AriaLink } from 'react-aria-components';
3
3
  import { LucideIcon } from 'lucide-react';
4
4
  import { Size } from '../common/types';
5
5
  export interface LinkButtonComponentProps<C extends React.ElementType> {
@@ -38,4 +38,4 @@ export type LinkButtonProps<C extends React.ElementType> = LinkButtonComponentPr
38
38
  * A link to be used when a user expects a button but web technologies force us to use a a-tag
39
39
  * */
40
40
  export declare const LinkButton: <C extends React.ElementType = typeof AriaLink>({ children, variant, fullwidth, icon: customIcon, iconPlacement, className, as, size, ...rest }: LinkButtonProps<C>) => React.JSX.Element;
41
- export { RouterProvider };
41
+ export { RouterProvider } from '../aria';
@@ -1 +1,3 @@
1
- export { t as LinkButton, n as RouterProvider } from "../chunks/link-button-D6t-8zQQ.js";
1
+ import { u as e } from "../chunks/aria-BikUfLIG.js";
2
+ import { t } from "../chunks/link-button-BRV_Hy7v.js";
3
+ export { t as LinkButton, e as RouterProvider };
package/list-box/index.js CHANGED
@@ -1 +1 @@
1
- export { c as ListBox, s as ListBoxButton, t as ListBoxEmptyState, n as ListBoxHeader, o as ListBoxItem, r as ListBoxLoadMoreItem, a as ListBoxPopover, i as ListBoxSection } from "../chunks/list-box-YaPiKCld.js";
1
+ export { c as ListBox, s as ListBoxButton, t as ListBoxEmptyState, n as ListBoxHeader, o as ListBoxItem, r as ListBoxLoadMoreItem, a as ListBoxPopover, i as ListBoxSection } from "../chunks/list-box-DfpVnLLk.js";
package/logo/index.js CHANGED
@@ -1 +1 @@
1
- export { t as Logo, n as LogoContext } from "../chunks/logo-CBGOnROk.js";
1
+ export { t as Logo, n as LogoContext } from "../chunks/logo-DUlLYUV2.js";
package/menu/Menu.d.ts CHANGED
@@ -1,6 +1,7 @@
1
- import { MenuTrigger, MenuTriggerProps, MenuProps as AriaMenuProps } from 'react-aria-components';
1
+ import { MenuTriggerProps, MenuProps as AriaMenuProps } from 'react-aria-components';
2
2
  import { Size } from '../common/types';
3
- export { MenuTrigger, type MenuTriggerProps };
3
+ export { MenuTrigger } from '../aria';
4
+ export type { MenuTriggerProps };
4
5
  export interface MenuProps<T> extends AriaMenuProps<T> {
5
6
  /** Component size (large: height 40px, medium: height 32px)
6
7
  * @default 'large'
package/menu/index.js CHANGED
@@ -1 +1,3 @@
1
- export { o as Menu, a as MenuHeader, i as MenuItem, r as MenuPopover, n as MenuSection, s as MenuTrigger, t as Separator } from "../chunks/menu-DVrvuxQk.js";
1
+ import { c as e } from "../chunks/aria-BikUfLIG.js";
2
+ import { a as t, i as n, n as r, o as i, r as a, t as o } from "../chunks/menu-CHZ0d9-S.js";
3
+ export { i as Menu, t as MenuHeader, n as MenuItem, a as MenuPopover, r as MenuSection, e as MenuTrigger, o as Separator };
package/modal/Modal.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { DialogTrigger } from 'react-aria-components';
2
1
  import { ModalOverlayProps } from './modal-overlay';
3
2
  export interface ModalProps extends ModalOverlayProps {
4
3
  /**
@@ -14,5 +13,5 @@ export interface ModalProps extends ModalOverlayProps {
14
13
  */
15
14
  footer?: React.ReactNode;
16
15
  }
17
- export { DialogTrigger };
16
+ export { DialogTrigger } from '../aria';
18
17
  export declare const Modal: import('react').ForwardRefExoticComponent<ModalProps & import('react').RefAttributes<HTMLDivElement>>;
package/modal/index.js CHANGED
@@ -1 +1,3 @@
1
- export { t as DialogTrigger, n as Modal, r as ModalOverlay } from "../chunks/modal-BfWHExGd.js";
1
+ import { r as e } from "../chunks/aria-BikUfLIG.js";
2
+ import { n as t, t as n } from "../chunks/modal-E4kV_R5n.js";
3
+ export { e as DialogTrigger, n as Modal, t as ModalOverlay };
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "description": "Midas Components",
15
15
  "homepage": "https://designsystem.migrationsverket.se/",
16
16
  "license": "CC0-1.0",
17
- "version": "17.38.2",
17
+ "version": "17.39.0",
18
18
  "module": "./index.js",
19
19
  "type": "module",
20
20
  "main": "./index.js",
@@ -1 +1 @@
1
- export { t as ProgressBar } from "../chunks/progress-bar-XMAH7KIq.js";
1
+ export { t as ProgressBar } from "../chunks/progress-bar-yFa08Xfd.js";
package/radio/index.js CHANGED
@@ -1 +1 @@
1
- export { n as Radio, r as RadioButton, i as RadioField, t as RadioGroup } from "../chunks/radio-BXjMFwia.js";
1
+ export { n as Radio, r as RadioButton, i as RadioField, t as RadioGroup } from "../chunks/radio-DbIUs2iU.js";
@@ -1 +1 @@
1
- export { t as SearchField } from "../chunks/search-field-mQvQC_fC.js";
1
+ export { t as SearchField } from "../chunks/search-field-D--4cgzH.js";
package/select/index.js CHANGED
@@ -1 +1 @@
1
- export { t as Select, n as SelectTrigger } from "../chunks/select-B_o3hWvM.js";
1
+ export { t as Select, n as SelectTrigger } from "../chunks/select-DLoIzTsv.js";
package/spinner/index.js CHANGED
@@ -1 +1 @@
1
- export { t as Spinner } from "../chunks/spinner-V6QnHHAH.js";
1
+ export { t as Spinner } from "../chunks/spinner-D3-NXLkB.js";
package/table/index.js CHANGED
@@ -1 +1 @@
1
- export { t as Cell, n as Column, r as Row, i as Table, a as TableBody, o as TableHeader } from "../chunks/table-B4-N2P6X.js";
1
+ export { t as Cell, n as Column, r as Row, i as Table, a as TableBody, o as TableHeader } from "../chunks/table-DuzCUPCX.js";
package/tag/index.js CHANGED
@@ -1 +1 @@
1
- export { r as Tag, t as TagGroup, n as TagList } from "../chunks/tag-DO8N54-r.js";
1
+ export { r as Tag, t as TagGroup, n as TagList } from "../chunks/tag-BpnVl9_M.js";
@@ -1 +1 @@
1
- export { r as Input, t as TextArea, n as TextField, i as TextFieldBase } from "../chunks/textfield-O1kNTcwC.js";
1
+ export { r as Input, t as TextArea, n as TextField, i as TextFieldBase } from "../chunks/textfield-BuJeJV1g.js";
@@ -1 +1 @@
1
- export { t as TimeField } from "../chunks/time-field-Dte4G0is.js";
1
+ export { t as TimeField } from "../chunks/time-field-Cr5P1aNn.js";
package/toast/index.js CHANGED
@@ -1 +1 @@
1
- export { t as GlobalToastRegion, n as Toast, r as ToastProvider, i as ToastRegion, a as toastQueue, o as useToastState } from "../chunks/toast-DhXnpJRF.js";
1
+ export { t as GlobalToastRegion, n as Toast, r as ToastProvider, i as ToastRegion, a as toastQueue, o as useToastState } from "../chunks/toast-BgrlaMnw.js";
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Puts children back into the code of a Storybook snippet. Storybook leaves
3
+ * out children that are a function, e.g. the `item => <ListBoxItem />` of a
4
+ * collection, so the snippet doesn't render anything when copied. The
5
+ * children go into the first `<tag />` of the snippet that has none.
6
+ */
7
+ export declare const insertChildren: (code: string, tag: string, children: string) => string;
8
+ /**
9
+ * Story parameters that put the code of a function as children back into
10
+ * the snippet of `<tag />`, e.g.
11
+ * `childrenSource('Menu', '{item => <MenuItem>{item.name}</MenuItem>}')`
12
+ */
13
+ export declare const childrenSource: (tag: string, children: string) => {
14
+ docs: {
15
+ source: {
16
+ transform: (code: string) => string;
17
+ };
18
+ };
19
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Names a React Aria component that Midas re-exports as is. Its own name is
3
+ * minified, so without one it shows up as e.g. `$4e85f108e88277b8$export$...`
4
+ * in Storybook's code and React DevTools. It names the component itself,
5
+ * since React Aria compares some of them by identity, and so the export
6
+ * stays React Aria's own, with its docs:
7
+ *
8
+ * ```ts
9
+ * withDisplayName(MenuTrigger, 'MenuTrigger')
10
+ * export { MenuTrigger }
11
+ * ```
12
+ */
13
+ export declare const withDisplayName: <T extends object>(component: T, displayName: string) => T;
@@ -1,43 +0,0 @@
1
- 'use client';
2
- import { t as e } from "./clsx-BtGY0yFD.js";
3
- import { t } from "./useLocalizedStringFormatter-DU97U9ZX.js";
4
- import { Link as n, RouterProvider as r } from "react-aria-components";
5
- import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
6
- import { ArrowDownToLine as s, ArrowRight as c, SquareArrowOutUpRight as l } from "lucide-react";
7
- import { VisuallyHidden as u } from "react-aria";
8
- import '../assets/link.css';var d = {
9
- link: "_link_duep2_1",
10
- icon: "_icon_duep2_53",
11
- standalone: "_standalone_duep2_57",
12
- stretched: "_stretched_duep2_76"
13
- }, f = {
14
- en: {
15
- opensInNewTab: "Opens in new tab",
16
- downloadsFile: "Downloads file"
17
- },
18
- sv: {
19
- opensInNewTab: "Öppnas i ny flik",
20
- downloadsFile: "Hämtar fil"
21
- }
22
- }, p = ({ children: r, standalone: p, target: h, stretched: g, download: _, icon: v, className: y, as: b, ...x }) => {
23
- let S = b || n, C = t(f), w = v ? { icon: v } : _ ? {
24
- icon: s,
25
- label: C.format("downloadsFile")
26
- } : h === "_blank" ? {
27
- icon: l,
28
- label: C.format("opensInNewTab")
29
- } : p ? { icon: c } : null;
30
- return /* @__PURE__ */ o(S, {
31
- className: e(d.link, p && d.standalone, g && d.stretched, y),
32
- ...x,
33
- target: h,
34
- download: _,
35
- children: [r, w ? /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a(m, {
36
- className: d.icon,
37
- icon: w.icon,
38
- size: 16,
39
- "aria-hidden": !0
40
- }), w.label && /* @__PURE__ */ a(u, { children: w.label })] }) : null]
41
- });
42
- }, m = ({ icon: e, ...t }) => /* @__PURE__ */ a(e, { ...t });
43
- export { r as n, p as t };