@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.
- package/CHANGELOG.md +29 -0
- package/accordion/index.js +1 -1
- package/aria/index.d.ts +3 -1
- package/aria/index.js +1 -2
- package/assets/table.css +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +1 -1
- package/checkbox/index.js +1 -1
- package/chunks/{FeedbackStatusIcon-DX5ndhm3.js → FeedbackStatusIcon-UfooOyeI.js} +1 -1
- package/chunks/{accordion-DjL3rngW.js → accordion-PJZYLZCe.js} +2 -2
- package/chunks/aria-BikUfLIG.js +6 -0
- package/chunks/{button-Q51P-Ssk.js → button-Bz66bIrr.js} +2 -2
- package/chunks/{calendar-DyILzX_V.js → calendar-D0aiCkAv.js} +3 -3
- package/chunks/{checkbox-MN5mhbFU.js → checkbox-SsXhAn-g.js} +2 -2
- package/chunks/{clear-button-BYiazZ-1.js → clear-button-DvMuUjDR.js} +1 -1
- package/chunks/{color-scheme-switch-BlGoqk4H.js → color-scheme-switch-2oSS52vq.js} +4 -3
- package/chunks/{combobox-D2wPjTS5.js → combobox-Ccqxupn2.js} +3 -3
- package/chunks/{date-field-Afo_uDbQ.js → date-field-DKmbbOGo.js} +3 -3
- package/chunks/{date-picker-jH3-jQoL.js → date-picker-CAtF7M_p.js} +6 -6
- package/chunks/{file-list-BvBSJyRQ.js → file-list-Bg8-wkyR.js} +4 -4
- package/chunks/{file-picker-C8JWsO9f.js → file-picker-C05TDsQS.js} +1 -1
- package/chunks/{info-banner-CkXe0Xd8.js → info-banner-BBpsG8F_.js} +3 -3
- package/chunks/{label-DCpy2Iwh.js → label-C-Iks5zm.js} +3 -3
- package/chunks/{layout-CYcW4Dsm.js → layout-DGIzTNAu.js} +3 -3
- package/chunks/link-CegkRPqz.js +43 -0
- package/chunks/link-button-BRV_Hy7v.js +43 -0
- package/chunks/{list-box-YaPiKCld.js → list-box-DfpVnLLk.js} +3 -3
- package/chunks/{logo-CBGOnROk.js → logo-DUlLYUV2.js} +1 -1
- package/chunks/menu-CHZ0d9-S.js +51 -0
- package/chunks/{modal-BfWHExGd.js → modal-E4kV_R5n.js} +38 -38
- package/chunks/{progress-bar-XMAH7KIq.js → progress-bar-yFa08Xfd.js} +1 -1
- package/chunks/{radio-BXjMFwia.js → radio-DbIUs2iU.js} +1 -1
- package/chunks/{search-field-mQvQC_fC.js → search-field-D--4cgzH.js} +3 -3
- package/chunks/{select-B_o3hWvM.js → select-DLoIzTsv.js} +5 -5
- package/chunks/{spinner-V6QnHHAH.js → spinner-D3-NXLkB.js} +1 -1
- package/chunks/table-DuzCUPCX.js +95 -0
- package/chunks/{tag-DO8N54-r.js → tag-BpnVl9_M.js} +1 -1
- package/chunks/{textfield-O1kNTcwC.js → textfield-BuJeJV1g.js} +3 -3
- package/chunks/{time-field-Dte4G0is.js → time-field-Cr5P1aNn.js} +4 -4
- package/chunks/{toast-DhXnpJRF.js → toast-BgrlaMnw.js} +2 -2
- package/chunks/{useLocalizedStringFormatter-DU97U9ZX.js → useLocalizedStringFormatter-BFwXcMGl.js} +1 -1
- package/clear-button/index.js +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.js +1 -1
- package/date-field/index.js +1 -1
- package/date-picker/index.js +1 -1
- package/file-list/index.js +1 -1
- package/file-picker/index.js +1 -1
- package/index.d.ts +1 -1
- package/index.js +53 -53
- package/info-banner/index.js +1 -1
- package/label/index.js +1 -1
- package/layout/index.js +1 -1
- package/link/Link.d.ts +2 -2
- package/link/index.js +3 -1
- package/link-button/LinkButton.d.ts +2 -2
- package/link-button/index.js +3 -1
- package/list-box/index.js +1 -1
- package/logo/index.js +1 -1
- package/menu/Menu.d.ts +3 -2
- package/menu/index.js +3 -1
- package/modal/Modal.d.ts +1 -2
- package/modal/index.js +3 -1
- package/package.json +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.js +1 -1
- package/select/index.js +1 -1
- package/spinner/index.js +1 -1
- package/table/index.js +1 -1
- package/tag/index.js +1 -1
- package/textfield/index.js +1 -1
- package/time-field/index.js +1 -1
- package/toast/index.js +1 -1
- package/utils/childrenSource.d.ts +19 -0
- package/utils/withDisplayName.d.ts +13 -0
- package/chunks/link-CyjmtEZP.js +0 -43
- package/chunks/link-button-D6t-8zQQ.js +0 -43
- package/chunks/menu-DVrvuxQk.js +0 -51
- package/chunks/table-B4-N2P6X.js +0 -84
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as e, t } from "./label-
|
|
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-
|
|
6
|
-
import { t as o } from "./useLocalizedStringFormatter-
|
|
7
|
-
import { c as s } from "./list-box-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
9
|
-
import { n as c } from "./button-
|
|
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-
|
|
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-
|
|
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-
|
|
7
|
-
import { t as c } from "./useLocalizedStringFormatter-
|
|
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-
|
|
2
|
+
import { n as e } from "./button-Bz66bIrr.js";
|
|
3
3
|
import { t } from "./clsx-BtGY0yFD.js";
|
|
4
|
-
import { t as n } from "./FeedbackStatusIcon-
|
|
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";
|
package/chunks/{useLocalizedStringFormatter-DU97U9ZX.js → useLocalizedStringFormatter-BFwXcMGl.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
package/clear-button/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as ClearButton } from "../chunks/clear-button-
|
|
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-
|
|
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-
|
|
1
|
+
export { t as ComboBox } from "../chunks/combobox-Ccqxupn2.js";
|
package/date-field/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { i as DateField, n as DateInput, t as DateInputDivider, r as DateSegment } from "../chunks/date-field-
|
|
1
|
+
export { i as DateField, n as DateInput, t as DateInputDivider, r as DateSegment } from "../chunks/date-field-DKmbbOGo.js";
|
package/date-picker/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as DatePicker, t as DateRangePicker } from "../chunks/date-picker-
|
|
1
|
+
export { n as DatePicker, t as DateRangePicker } from "../chunks/date-picker-CAtF7M_p.js";
|
package/file-list/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as FileList, t as FileListItem } from "../chunks/file-list-
|
|
1
|
+
export { n as FileList, t as FileListItem } from "../chunks/file-list-Bg8-wkyR.js";
|
package/file-picker/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as FilePicker } from "../chunks/file-picker-
|
|
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 './
|
|
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-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { n as
|
|
9
|
-
import { t as
|
|
10
|
-
import { n as
|
|
11
|
-
import { n as
|
|
12
|
-
import { n as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { n as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { i as
|
|
19
|
-
import { n as
|
|
20
|
-
import { a as
|
|
21
|
-
import { n as
|
|
22
|
-
import { a as
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import { n as
|
|
26
|
-
import { n as
|
|
27
|
-
import { a as
|
|
28
|
-
import { t as
|
|
29
|
-
import { i as
|
|
30
|
-
import { n as
|
|
31
|
-
import { t as
|
|
32
|
-
import { a as
|
|
33
|
-
import { n as
|
|
34
|
-
import { t as
|
|
35
|
-
import { t as
|
|
36
|
-
import { t as
|
|
37
|
-
import { n as
|
|
38
|
-
import { t as
|
|
39
|
-
import { a as
|
|
40
|
-
import { n as
|
|
41
|
-
import { n as
|
|
42
|
-
import { t as
|
|
43
|
-
import { t as
|
|
44
|
-
import { i as
|
|
45
|
-
import { t as
|
|
46
|
-
import { t as
|
|
47
|
-
import { t as
|
|
48
|
-
import { a as
|
|
49
|
-
import { i as
|
|
50
|
-
import { i as
|
|
51
|
-
import { t as
|
|
52
|
-
import { a as
|
|
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
|
|
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.
|
|
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,
|
|
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 };
|
package/info-banner/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as InfoBanner } from "../chunks/info-banner-
|
|
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-
|
|
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-
|
|
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
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { Link as AriaLink
|
|
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';
|
package/link-button/index.js
CHANGED
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-
|
|
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-
|
|
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 {
|
|
1
|
+
import { MenuTriggerProps, MenuProps as AriaMenuProps } from 'react-aria-components';
|
|
2
2
|
import { Size } from '../common/types';
|
|
3
|
-
export { MenuTrigger
|
|
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
|
-
|
|
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
|
-
|
|
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
package/progress-bar/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as ProgressBar } from "../chunks/progress-bar-
|
|
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-
|
|
1
|
+
export { n as Radio, r as RadioButton, i as RadioField, t as RadioGroup } from "../chunks/radio-DbIUs2iU.js";
|
package/search-field/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as SearchField } from "../chunks/search-field-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
1
|
+
export { r as Tag, t as TagGroup, n as TagList } from "../chunks/tag-BpnVl9_M.js";
|
package/textfield/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as Input, t as TextArea, n as TextField, i as TextFieldBase } from "../chunks/textfield-
|
|
1
|
+
export { r as Input, t as TextArea, n as TextField, i as TextFieldBase } from "../chunks/textfield-BuJeJV1g.js";
|
package/time-field/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as TimeField } from "../chunks/time-field-
|
|
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-
|
|
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;
|
package/chunks/link-CyjmtEZP.js
DELETED
|
@@ -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 };
|