@midas-ds/components 17.38.3 → 17.39.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.
- package/CHANGELOG.md +34 -0
- package/accordion/index.js +1 -1
- package/aria/index.d.ts +3 -1
- package/aria/index.js +1 -2
- package/assets/grid.css +1 -1
- package/badge/Badge.d.ts +5 -1
- package/badge/index.d.ts +1 -0
- package/button/index.js +1 -1
- package/calendar/index.js +1 -1
- package/checkbox/Checkbox.d.ts +4 -0
- package/checkbox/CheckboxGroup.d.ts +4 -0
- 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/grid-CEQVC8XG.js +224 -0
- 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-B8k_hYpe.js} +4 -4
- 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-BZsinvvB.js → table-DuzCUPCX.js} +2 -2
- 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/ComboBox.d.ts +4 -0
- package/combobox/index.js +1 -1
- package/date-field/DateField.d.ts +4 -0
- package/date-field/index.js +1 -1
- package/date-picker/DatePicker.d.ts +4 -0
- package/date-picker/DateRangePicker.d.ts +4 -0
- package/date-picker/index.js +1 -1
- package/file-list/index.js +1 -1
- package/file-picker/index.js +1 -1
- package/grid/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/Logo.d.ts +3 -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/RadioGroup.d.ts +4 -0
- package/radio/index.js +1 -1
- package/search-field/SearchField.d.ts +4 -0
- 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/TextFieldBase.d.ts +4 -0
- package/textfield/index.js +1 -1
- package/time-field/TimeField.d.ts +4 -0
- 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/grid-CFn_pqQX.js +0 -224
- package/chunks/link-CyjmtEZP.js +0 -43
- package/chunks/link-button-D6t-8zQQ.js +0 -43
- package/chunks/menu-DVrvuxQk.js +0 -51
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { t as e } from "./grid-
|
|
2
|
+
import { t as e } from "./grid-CEQVC8XG.js";
|
|
3
3
|
import { t } from "./clsx-BtGY0yFD.js";
|
|
4
|
-
import { n } from "./button-
|
|
4
|
+
import { n } from "./button-Bz66bIrr.js";
|
|
5
5
|
import { n as r, t as i } from "./tooltip-CR1uxtPd.js";
|
|
6
6
|
import { n as a, t as o } from "./badge-C5Sdu_uw.js";
|
|
7
|
-
import { t as s } from "./useLocalizedStringFormatter-
|
|
8
|
-
import { t as c } from "./logo-
|
|
7
|
+
import { t as s } from "./useLocalizedStringFormatter-BFwXcMGl.js";
|
|
8
|
+
import { t as c } from "./logo-DUlLYUV2.js";
|
|
9
9
|
import * as l from "react";
|
|
10
10
|
import { useEffect as u, useState as d } from "react";
|
|
11
11
|
import { Link as f, RouterProvider as p } from "react-aria-components";
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { t as e } from "./clsx-BtGY0yFD.js";
|
|
3
|
+
import { t } from "./useLocalizedStringFormatter-BFwXcMGl.js";
|
|
4
|
+
import { Link as n } from "react-aria-components";
|
|
5
|
+
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
import { ArrowDownToLine as o, ArrowRight as s, SquareArrowOutUpRight as c } from "lucide-react";
|
|
7
|
+
import { VisuallyHidden as l } from "react-aria";
|
|
8
|
+
import '../assets/link.css';var u = {
|
|
9
|
+
link: "_link_duep2_1",
|
|
10
|
+
icon: "_icon_duep2_53",
|
|
11
|
+
standalone: "_standalone_duep2_57",
|
|
12
|
+
stretched: "_stretched_duep2_76"
|
|
13
|
+
}, d = {
|
|
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
|
+
}, f = ({ children: f, standalone: m, target: h, stretched: g, download: _, icon: v, className: y, as: b, ...x }) => {
|
|
23
|
+
let S = b || n, C = t(d), w = v ? { icon: v } : _ ? {
|
|
24
|
+
icon: o,
|
|
25
|
+
label: C.format("downloadsFile")
|
|
26
|
+
} : h === "_blank" ? {
|
|
27
|
+
icon: c,
|
|
28
|
+
label: C.format("opensInNewTab")
|
|
29
|
+
} : m ? { icon: s } : null;
|
|
30
|
+
return /* @__PURE__ */ a(S, {
|
|
31
|
+
className: e(u.link, m && u.standalone, g && u.stretched, y),
|
|
32
|
+
...x,
|
|
33
|
+
target: h,
|
|
34
|
+
download: _,
|
|
35
|
+
children: [f, w ? /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i(p, {
|
|
36
|
+
className: u.icon,
|
|
37
|
+
icon: w.icon,
|
|
38
|
+
size: 16,
|
|
39
|
+
"aria-hidden": !0
|
|
40
|
+
}), w.label && /* @__PURE__ */ i(l, { children: w.label })] }) : null]
|
|
41
|
+
});
|
|
42
|
+
}, p = ({ icon: e, ...t }) => /* @__PURE__ */ i(e, { ...t });
|
|
43
|
+
export { f as t };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { t as e } from "./clsx-BtGY0yFD.js";
|
|
3
|
+
import { t } from "./useLocalizedStringFormatter-BFwXcMGl.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { Link as n } from "react-aria-components";
|
|
6
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
7
|
+
import { ArrowLeft as a, ArrowRight as o, SquareArrowOutUpRight as s } from "lucide-react";
|
|
8
|
+
import { VisuallyHidden as c } from "react-aria";
|
|
9
|
+
import '../assets/link-button.css';var l = {
|
|
10
|
+
linkButton: "_linkButton_1k5w6_1",
|
|
11
|
+
secondary: "_secondary_1k5w6_58",
|
|
12
|
+
icon: "_icon_1k5w6_63",
|
|
13
|
+
tertiary: "_tertiary_1k5w6_102",
|
|
14
|
+
danger: "_danger_1k5w6_130",
|
|
15
|
+
iconBtn: "_iconBtn_1k5w6_149",
|
|
16
|
+
medium: "_medium_1k5w6_173",
|
|
17
|
+
iconLeft: "_iconLeft_1k5w6_178",
|
|
18
|
+
fullwidth: "_fullwidth_1k5w6_182",
|
|
19
|
+
button: "_button_1k5w6_192"
|
|
20
|
+
}, u = {
|
|
21
|
+
en: { opensInNewTab: "Opens in new tab" },
|
|
22
|
+
sv: { opensInNewTab: "Öppnas i ny flik" }
|
|
23
|
+
}, d = ({ children: d, variant: p, fullwidth: m, icon: h, iconPlacement: g, className: _, as: v, size: y = "large", ...b }) => {
|
|
24
|
+
let x = v || n, S = t(u), C = h ? { icon: h } : b.target === "_blank" ? {
|
|
25
|
+
icon: s,
|
|
26
|
+
label: S.format("opensInNewTab")
|
|
27
|
+
} : g === "left" ? { icon: a } : { icon: o };
|
|
28
|
+
return /* @__PURE__ */ i(x, {
|
|
29
|
+
className: e(l.linkButton, p === "primary" && l.primary, p === "secondary" && l.secondary, p === "tertiary" && l.tertiary, p === "danger" && l.danger, p === "icon" && l.iconBtn, y === "medium" && l.medium, m && l.fullwidth, g === "left" && l.iconLeft, _),
|
|
30
|
+
...b,
|
|
31
|
+
children: [
|
|
32
|
+
d,
|
|
33
|
+
/* @__PURE__ */ r(f, {
|
|
34
|
+
className: l.icon,
|
|
35
|
+
icon: C.icon,
|
|
36
|
+
size: 20,
|
|
37
|
+
"aria-hidden": !0
|
|
38
|
+
}),
|
|
39
|
+
C.label && /* @__PURE__ */ r(c, { children: C.label })
|
|
40
|
+
]
|
|
41
|
+
});
|
|
42
|
+
}, f = ({ icon: e, ...t }) => /* @__PURE__ */ r(e, { ...t });
|
|
43
|
+
export { d as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./clsx-BtGY0yFD.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as n } from "./spinner-
|
|
4
|
-
import { t as r } from "./useLocalizedStringFormatter-
|
|
2
|
+
import { p as t } from "./aria-BikUfLIG.js";
|
|
3
|
+
import { t as n } from "./spinner-D3-NXLkB.js";
|
|
4
|
+
import { t as r } from "./useLocalizedStringFormatter-BFwXcMGl.js";
|
|
5
5
|
import { t as i } from "./text-CtvUKU-v.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { Header as a, ListBox as o, ListBoxItem as s, ListBoxLoadMoreItem as c, ListBoxSection as l, ListLayout as u, Popover as d, composeRenderProps as f } 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 { createContext as n, useContext as r } from "react";
|
|
4
4
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
5
|
import '../assets/logo.css';var o = {
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { t as e } from "./clsx-BtGY0yFD.js";
|
|
2
|
+
import { Header as t, Menu as n, MenuItem as r, MenuSection as i, Popover as a, Separator as o } from "react-aria-components";
|
|
3
|
+
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
4
|
+
import { Check as u, ChevronRight as d } from "lucide-react";
|
|
5
|
+
import '../assets/menu.css';var f = {
|
|
6
|
+
menu: "_menu_hfwrp_1",
|
|
7
|
+
menuSectionHeader: "_menuSectionHeader_hfwrp_18",
|
|
8
|
+
menuSection: "_menuSection_hfwrp_18",
|
|
9
|
+
medium: "_medium_hfwrp_29",
|
|
10
|
+
menuItem: "_menuItem_hfwrp_35",
|
|
11
|
+
mainContent: "_mainContent_hfwrp_104",
|
|
12
|
+
checkMark: "_checkMark_hfwrp_115",
|
|
13
|
+
separator: "_separator_hfwrp_125",
|
|
14
|
+
menuPopover: "_menuPopover_hfwrp_148 _dropdownAnimation_1ljkv_4"
|
|
15
|
+
}, p = ({ className: t, size: r = "large", ...i }) => /* @__PURE__ */ c(n, {
|
|
16
|
+
className: e(t, f.menu, r === "medium" && f.medium),
|
|
17
|
+
...i
|
|
18
|
+
}), m = ({ className: n, ...r }) => /* @__PURE__ */ c(t, {
|
|
19
|
+
className: e(n, f.menuSectionHeader),
|
|
20
|
+
...r
|
|
21
|
+
}), h = (t) => /* @__PURE__ */ c(r, {
|
|
22
|
+
...t,
|
|
23
|
+
textValue: t.textValue || (typeof t.children == "string" ? t.children : void 0),
|
|
24
|
+
className: e(f.menuItem, t.className),
|
|
25
|
+
children: (e) => {
|
|
26
|
+
let { children: n } = t, { selectionMode: r, isSelected: i, hasSubmenu: a } = e;
|
|
27
|
+
return /* @__PURE__ */ l(s, { children: [
|
|
28
|
+
r !== "none" && /* @__PURE__ */ c(u, {
|
|
29
|
+
size: 16,
|
|
30
|
+
className: f.checkMark,
|
|
31
|
+
"data-selected": i || void 0
|
|
32
|
+
}),
|
|
33
|
+
/* @__PURE__ */ c("div", {
|
|
34
|
+
className: f.mainContent,
|
|
35
|
+
children: typeof n == "function" ? n(e) : n
|
|
36
|
+
}),
|
|
37
|
+
a && /* @__PURE__ */ c(d, { size: 20 })
|
|
38
|
+
] });
|
|
39
|
+
}
|
|
40
|
+
}), g = ({ className: t, ...n }) => /* @__PURE__ */ c(a, {
|
|
41
|
+
className: e(t, f.menuPopover),
|
|
42
|
+
offset: 4,
|
|
43
|
+
...n
|
|
44
|
+
}), _ = ({ className: t, ...n }) => /* @__PURE__ */ c(i, {
|
|
45
|
+
className: e(t, f.menuSection),
|
|
46
|
+
...n
|
|
47
|
+
}), v = ({ className: t, ...n }) => /* @__PURE__ */ c(o, {
|
|
48
|
+
className: e(t, f.separator),
|
|
49
|
+
...n
|
|
50
|
+
});
|
|
51
|
+
export { m as a, h as i, _ as n, p as o, g as r, v as t };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as e } from "./button-
|
|
1
|
+
import { n as e } from "./button-Bz66bIrr.js";
|
|
2
2
|
import { t } from "./heading-0P5rm7xK.js";
|
|
3
|
-
import { t as n } from "./useLocalizedStringFormatter-
|
|
3
|
+
import { t as n } from "./useLocalizedStringFormatter-BFwXcMGl.js";
|
|
4
4
|
import { t as r } from "./clsx-BtGY0yFD.js";
|
|
5
5
|
import { forwardRef as i, useCallback as a, useRef as o } from "react";
|
|
6
|
-
import { Dialog as s,
|
|
7
|
-
import { jsx as
|
|
8
|
-
import { X as
|
|
9
|
-
import '../assets/modal.css';var
|
|
6
|
+
import { Dialog as s, Modal as c, ModalOverlay as l, composeRenderProps as u } from "react-aria-components";
|
|
7
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
8
|
+
import { X as p } from "lucide-react";
|
|
9
|
+
import '../assets/modal.css';var m = {
|
|
10
10
|
modal: "_modal_7r16o_1",
|
|
11
11
|
dialog: "_dialog_7r16o_10",
|
|
12
12
|
modalHeader: "_modalHeader_7r16o_45",
|
|
@@ -14,20 +14,20 @@ import '../assets/modal.css';var h = {
|
|
|
14
14
|
closeButton: "_closeButton_7r16o_63",
|
|
15
15
|
modalBody: "_modalBody_7r16o_70",
|
|
16
16
|
modalFooter: "_modalFooter_7r16o_79"
|
|
17
|
-
},
|
|
17
|
+
}, h = {
|
|
18
18
|
en: { close: "Close" },
|
|
19
19
|
sv: { close: "Stäng" }
|
|
20
|
-
},
|
|
20
|
+
}, g = {
|
|
21
21
|
modalOverlay: "_modalOverlay_gwg3f_1",
|
|
22
22
|
"modal-fade": "_modal-fade_gwg3f_1"
|
|
23
|
-
},
|
|
24
|
-
className: r(e,
|
|
23
|
+
}, _ = i(({ className: e, ...t }, n) => /* @__PURE__ */ d(l, {
|
|
24
|
+
className: r(e, g.modalOverlay),
|
|
25
25
|
ref: n,
|
|
26
26
|
...t
|
|
27
27
|
}));
|
|
28
|
-
|
|
28
|
+
_.displayName = "ModalOverlay";
|
|
29
29
|
// src/modal/useStickyHeight.ts
|
|
30
|
-
var
|
|
30
|
+
var v = (e) => {
|
|
31
31
|
let t = o(void 0);
|
|
32
32
|
return a((n) => {
|
|
33
33
|
t.current?.(), t.current = void 0;
|
|
@@ -40,54 +40,54 @@ var y = (e) => {
|
|
|
40
40
|
i.disconnect(), r.style.removeProperty(e);
|
|
41
41
|
};
|
|
42
42
|
}, [e]);
|
|
43
|
-
},
|
|
43
|
+
}, y = () => {
|
|
44
44
|
let e = o(void 0);
|
|
45
45
|
return a((t) => {
|
|
46
46
|
if (e.current?.(), e.current = void 0, !t) return;
|
|
47
47
|
let n = ({ target: e }) => {
|
|
48
|
-
if (!(e instanceof Element) || e === t || !e.matches(":focus-visible") || e.closest(`.${
|
|
48
|
+
if (!(e instanceof Element) || e === t || !e.matches(":focus-visible") || e.closest(`.${m.modalHeader}, .${m.modalFooter}`)) return;
|
|
49
49
|
let n = getComputedStyle(t), r = t.getBoundingClientRect(), i = r.top + (parseFloat(n.scrollPaddingTop) || 0), a = r.bottom - (parseFloat(n.scrollPaddingBottom) || 0), { top: o, bottom: s } = e.getBoundingClientRect();
|
|
50
50
|
o < i ? t.scrollTop -= i - o : s > a && (t.scrollTop += Math.min(s - a, o - i));
|
|
51
51
|
};
|
|
52
52
|
t.addEventListener("focusin", n), e.current = () => t.removeEventListener("focusin", n);
|
|
53
53
|
}, []);
|
|
54
|
-
},
|
|
55
|
-
let
|
|
56
|
-
return /* @__PURE__ */
|
|
57
|
-
...
|
|
58
|
-
children:
|
|
59
|
-
className:
|
|
60
|
-
ref:
|
|
61
|
-
children: /* @__PURE__ */
|
|
62
|
-
className:
|
|
54
|
+
}, b = i(({ children: r, title: i, hideCloseButton: a = !1, footer: o, ...l }, g) => {
|
|
55
|
+
let b = n(h), x = v("--modal-header-height"), S = v("--modal-footer-height"), C = y();
|
|
56
|
+
return /* @__PURE__ */ d(_, {
|
|
57
|
+
...l,
|
|
58
|
+
children: u(r, (n) => /* @__PURE__ */ d(c, {
|
|
59
|
+
className: m.modal,
|
|
60
|
+
ref: g,
|
|
61
|
+
children: /* @__PURE__ */ f(s, {
|
|
62
|
+
className: m.dialog,
|
|
63
63
|
ref: C,
|
|
64
64
|
children: [
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
className:
|
|
65
|
+
/* @__PURE__ */ f("div", {
|
|
66
|
+
className: m.modalHeader,
|
|
67
67
|
ref: x,
|
|
68
|
-
children: [/* @__PURE__ */
|
|
69
|
-
className:
|
|
70
|
-
children: i && /* @__PURE__ */
|
|
68
|
+
children: [/* @__PURE__ */ d("div", {
|
|
69
|
+
className: m.modalTitle,
|
|
70
|
+
children: i && /* @__PURE__ */ d(t, {
|
|
71
71
|
level: 3,
|
|
72
72
|
elementType: "h2",
|
|
73
73
|
slot: "title",
|
|
74
74
|
children: i
|
|
75
75
|
})
|
|
76
|
-
}), !a && /* @__PURE__ */
|
|
77
|
-
"aria-label":
|
|
78
|
-
className:
|
|
79
|
-
icon:
|
|
76
|
+
}), !a && /* @__PURE__ */ d(e, {
|
|
77
|
+
"aria-label": b.format("close"),
|
|
78
|
+
className: m.closeButton,
|
|
79
|
+
icon: p,
|
|
80
80
|
slot: "close",
|
|
81
81
|
variant: "icon"
|
|
82
82
|
})]
|
|
83
83
|
}),
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
className:
|
|
84
|
+
/* @__PURE__ */ d("div", {
|
|
85
|
+
className: m.modalBody,
|
|
86
86
|
tabIndex: -1,
|
|
87
87
|
children: n
|
|
88
88
|
}),
|
|
89
|
-
o && /* @__PURE__ */
|
|
90
|
-
className:
|
|
89
|
+
o && /* @__PURE__ */ d("div", {
|
|
90
|
+
className: m.modalFooter,
|
|
91
91
|
ref: S,
|
|
92
92
|
children: o
|
|
93
93
|
})
|
|
@@ -96,5 +96,5 @@ var y = (e) => {
|
|
|
96
96
|
}))
|
|
97
97
|
});
|
|
98
98
|
});
|
|
99
|
-
|
|
100
|
-
export {
|
|
99
|
+
b.displayName = "Modal";
|
|
100
|
+
export { _ as n, b as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./clsx-BtGY0yFD.js";
|
|
2
2
|
import { t } from "./splitDataAttributes-ChyO_Kvc.js";
|
|
3
|
-
import { n, t as r } from "./label-
|
|
3
|
+
import { n, t as r } from "./label-C-Iks5zm.js";
|
|
4
4
|
import { t as i } from "./text-CtvUKU-v.js";
|
|
5
5
|
import { t as a } from "./field-error-DmG_1v1a.js";
|
|
6
6
|
import { Group as o, RadioButton as s, RadioField as c, RadioGroup as l, composeRenderProps as u } from "react-aria-components";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { t as e } from "./TextField.module-DQfRPRIT.js";
|
|
3
|
-
import { n as t } from "./button-
|
|
3
|
+
import { n as t } from "./button-Bz66bIrr.js";
|
|
4
4
|
import { t as n } from "./clsx-BtGY0yFD.js";
|
|
5
5
|
import { t as r } from "./field-error-DmG_1v1a.js";
|
|
6
6
|
import { t as i } from "./text-CtvUKU-v.js";
|
|
7
|
-
import { n as a, t as o } from "./label-
|
|
8
|
-
import { t as s } from "./useLocalizedStringFormatter-
|
|
7
|
+
import { n as a, t as o } from "./label-C-Iks5zm.js";
|
|
8
|
+
import { t as s } from "./useLocalizedStringFormatter-BFwXcMGl.js";
|
|
9
9
|
import { FormContext as c, Input as l, SearchField as u, useSlottedContext as d } from "react-aria-components";
|
|
10
10
|
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
11
11
|
import { Search as h, X as g } from "lucide-react";
|
|
@@ -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";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
3
|
-
import { n as t } from "./checkbox-
|
|
2
|
+
import { n as e } from "./aria-BikUfLIG.js";
|
|
3
|
+
import { n as t } from "./checkbox-SsXhAn-g.js";
|
|
4
4
|
import { t as n } from "./clsx-BtGY0yFD.js";
|
|
5
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
6
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
@@ -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/ComboBox.d.ts
CHANGED
|
@@ -10,6 +10,10 @@ export interface ComboBoxProps<T extends object> extends Omit<AriaComboBoxProps<
|
|
|
10
10
|
items?: Iterable<T>;
|
|
11
11
|
children: ReactNode | ((item: T) => ReactNode);
|
|
12
12
|
placeholder?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The position of the error message
|
|
15
|
+
* @default 'top'
|
|
16
|
+
*/
|
|
13
17
|
errorPosition?: 'top' | 'bottom';
|
|
14
18
|
/** Component size (large: height 48px, medium: height 40px)
|
|
15
19
|
* @default 'large'
|
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";
|
|
@@ -5,6 +5,10 @@ import * as React from 'react';
|
|
|
5
5
|
export interface DateFieldProps<T extends DateValue> extends AriaDateFieldProps<T> {
|
|
6
6
|
description?: string;
|
|
7
7
|
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
8
|
+
/**
|
|
9
|
+
* The position of the error message
|
|
10
|
+
* @default 'top'
|
|
11
|
+
*/
|
|
8
12
|
errorPosition?: 'top' | 'bottom';
|
|
9
13
|
label?: string;
|
|
10
14
|
/** Component size (large: height 48px, medium: height 40px)
|
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";
|
|
@@ -5,6 +5,10 @@ import * as React from 'react';
|
|
|
5
5
|
export interface DatePickerProps<T extends DateValue> extends AriaDatePickerProps<T> {
|
|
6
6
|
description?: string;
|
|
7
7
|
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
8
|
+
/**
|
|
9
|
+
* The position of the error message
|
|
10
|
+
* @default 'top'
|
|
11
|
+
*/
|
|
8
12
|
errorPosition?: 'top' | 'bottom';
|
|
9
13
|
label?: string;
|
|
10
14
|
/** Component size (large: height 48px, medium: height 40px)
|
|
@@ -5,6 +5,10 @@ import * as React from 'react';
|
|
|
5
5
|
export interface DateRangePickerProps extends AriaDateRangePickerProps<DateValue> {
|
|
6
6
|
description?: string;
|
|
7
7
|
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
8
|
+
/**
|
|
9
|
+
* The position of the error message
|
|
10
|
+
* @default 'top'
|
|
11
|
+
*/
|
|
8
12
|
errorPosition?: 'top' | 'bottom';
|
|
9
13
|
label?: string;
|
|
10
14
|
/** Component size (large: height 48px, medium: height 40px)
|
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/grid/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as Grid, t as GridItem } from "../chunks/grid-
|
|
1
|
+
export { n as Grid, t as GridItem } from "../chunks/grid-CEQVC8XG.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';
|