@midas-ds/components 17.33.4 → 17.33.6
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 +12 -0
- package/accordion/index.js +1 -1
- package/assets/default.css +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.js +1 -1
- package/checkbox/index.js +1 -1
- package/chunks/{Button.module-0C2ArlRs.js → Button.module-CXkKBjuB.js} +0 -1
- package/chunks/{FeedbackStatusIcon-DvMDGBGL.js → FeedbackStatusIcon-Ba31xgcy.js} +1 -2
- package/chunks/{TextField.module-Bg4LNalb.js → TextField.module-B-5HJOZt.js} +0 -1
- package/chunks/{accordion-DRXQI8XG.js → accordion-BKnABSyU.js} +4 -5
- package/chunks/{badge-C4bXJmhn.js → badge-C5Sdu_uw.js} +1 -2
- package/chunks/{breadcrumbs-BGnyY3bO.js → breadcrumbs-BwYDyKWo.js} +1 -2
- package/chunks/{button-dpe6hXmI.js → button-S2AY4EEn.js} +4 -5
- package/chunks/{calendar-Bq2qqFIW.js → calendar-BOTC3DKx.js} +26 -27
- package/chunks/{card-C0S9Kyi2.js → card-mIB1NewO.js} +3 -4
- package/chunks/{character-counter-CSoVSrxZ.js → character-counter-IbkPoEcq.js} +0 -1
- package/chunks/{checkbox-BGxv1TyT.js → checkbox-CzH8BdsB.js} +38 -40
- package/chunks/{clear-button-DWtOkhCH.js → clear-button-CeQy0RdK.js} +2 -3
- package/chunks/{clsx-DAqHMl_k.js → clsx-BtGY0yFD.js} +1 -2
- package/chunks/{color-scheme-switch-D7EpvqTW.js → color-scheme-switch-BpmV-r9p.js} +28 -29
- package/chunks/{combobox-f4uuMJcb.js → combobox-DQ3d6pLc.js} +16 -18
- package/chunks/{date-field-BCfp9ZpN.js → date-field-DSBHnHdN.js} +16 -17
- package/chunks/{date-picker-DH8j2eU9.js → date-picker-CLizY8Vq.js} +39 -40
- package/chunks/{drop-zone-DNhEbH4w.js → drop-zone-BL3Z-Sbj.js} +1 -2
- package/chunks/{field-error-BHoPnRe4.js → field-error-C5ynuTRu.js} +2 -3
- package/chunks/{file-list-DT3zkJbO.js → file-list-etDe20pj.js} +9 -10
- package/chunks/{file-trigger-Dp5nH8oS.js → file-trigger-gOeeZzDP.js} +1 -2
- package/chunks/{grid-SIgkSK_-.js → grid-CFn_pqQX.js} +1 -2
- package/chunks/{heading-DcOjYrUM.js → heading-CIlMdywy.js} +1 -2
- package/chunks/{icons-UBHIX2oV.js → icons-a0WawN46.js} +1 -2
- package/chunks/{info-banner-DXjPEG69.js → info-banner-BKB7_CPh.js} +6 -7
- package/chunks/{label-2ac-zqbe.js → label-B5-Kmj4t.js} +8 -9
- package/chunks/{layout-BT-UgQne.js → layout-Cs8Oc8sf.js} +82 -83
- package/chunks/{link-B76JDA2N.js → link-CG_mHnLv.js} +2 -3
- package/chunks/{link-button-BeXxC22w.js → link-button-4xRbQqH2.js} +2 -3
- package/chunks/{list-box-BzBJX0nP.js → list-box-frfQGO1x.js} +5 -6
- package/chunks/{logo-DSJ1bUJZ.js → logo-Xe8PO0US.js} +2 -3
- package/chunks/{menu-DbQ98noD.js → menu-7gP2Sovj.js} +1 -2
- package/chunks/{modal-CzApHmjO.js → modal-BQrpnHT5.js} +15 -17
- package/chunks/{popover-B82BcP5n.js → popover-C7Ain5Qz.js} +1 -2
- package/chunks/{progress-bar-CJOm7oiN.js → progress-bar-DE7UoEWR.js} +9 -10
- package/chunks/{radio-DgFKSBa5.js → radio-DAB7WeIP.js} +17 -18
- package/chunks/{search-field-CpQnnJKa.js → search-field-BI1h0UBl.js} +23 -25
- package/chunks/{select-CdVW8cwA.js → select-BHpUGcW7.js} +38 -40
- package/chunks/{skeleton-R_3dS7Ro.js → skeleton-6y5HNJZp.js} +1 -2
- package/chunks/{spinner-CIjfJeGm.js → spinner-YKC-Vk3v.js} +2 -3
- package/chunks/{splitDataAttributes-_JTFOOIb.js → splitDataAttributes-ChyO_Kvc.js} +1 -2
- package/chunks/{stack-BAHKom_Q.js → stack-DKjRicm1.js} +1 -2
- package/chunks/{table-D02AQ0Xr.js → table-Fsf-jJip.js} +16 -17
- package/chunks/{tabs-CbcNTa7J.js → tabs-ZCpVhr_r.js} +2 -3
- package/chunks/{tag-BEawJnJm.js → tag-B1suqFhD.js} +2 -3
- package/chunks/{text-DnvD4Cjc.js → text-D7tnzTru.js} +1 -2
- package/chunks/textfield-C-lRIIil.js +110 -0
- package/chunks/time-field-1I6BMlaj.js +59 -0
- package/chunks/{toast-B8J42Yss.js → toast-DTqQhHFN.js} +13 -14
- package/chunks/{toggle-button-DD_bXanH.js → toggle-button-BVyG8F2K.js} +6 -7
- package/chunks/{tooltip-1GBTeMrm.js → tooltip-CR1uxtPd.js} +2 -4
- package/chunks/{useLocalizedStringFormatter-CeyBc0x0.js → useLocalizedStringFormatter-DhIAL1D7.js} +1 -2
- 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/drop-zone/index.js +1 -1
- package/field-error/index.js +1 -1
- package/file-list/index.js +1 -1
- package/file-trigger/index.js +1 -1
- package/grid/index.js +1 -1
- package/heading/index.js +1 -1
- package/icons/index.js +1 -1
- package/index.js +51 -53
- package/info-banner/index.js +1 -1
- package/label/index.js +1 -1
- package/layout/index.js +1 -1
- package/link/index.js +1 -1
- package/link-button/index.js +1 -1
- package/list-box/index.js +1 -1
- package/logo/index.js +1 -1
- package/menu/index.js +1 -1
- package/modal/index.js +1 -1
- package/package.json +2 -2
- package/popover/index.js +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/skeleton/index.js +1 -1
- package/spinner/index.js +1 -1
- package/stack/index.js +1 -1
- package/table/index.js +1 -1
- package/tabs/index.js +1 -1
- package/tag/index.js +1 -1
- package/text/index.js +1 -1
- package/textfield/index.js +1 -1
- package/time-field/index.js +1 -1
- package/toast/index.js +1 -1
- package/toggle-button/index.js +1 -1
- package/tooltip/index.js +1 -1
- package/chunks/textfield-CeFppAMx.js +0 -113
- package/chunks/time-field-H-mXlxua.js +0 -60
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as n } from "./FeedbackStatusIcon-
|
|
2
|
+
import { n as e } from "./button-S2AY4EEn.js";
|
|
3
|
+
import { t } from "./clsx-BtGY0yFD.js";
|
|
4
|
+
import { t as n } from "./FeedbackStatusIcon-Ba31xgcy.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";
|
|
@@ -43,16 +43,16 @@ import '../assets/toast.css';var h = {
|
|
|
43
43
|
state: n
|
|
44
44
|
})] });
|
|
45
45
|
};
|
|
46
|
-
function b({ state:
|
|
47
|
-
let o = r.useRef(null), { regionProps: s } = l(i,
|
|
46
|
+
function b({ state: e, className: n, ...i }) {
|
|
47
|
+
let o = r.useRef(null), { regionProps: s } = l(i, e, o);
|
|
48
48
|
return /* @__PURE__ */ a("div", {
|
|
49
49
|
...s,
|
|
50
50
|
ref: o,
|
|
51
|
-
className:
|
|
52
|
-
children:
|
|
53
|
-
toast:
|
|
54
|
-
state:
|
|
55
|
-
},
|
|
51
|
+
className: t(h.toastRegion, n),
|
|
52
|
+
children: e.visibleToasts.map((t) => /* @__PURE__ */ a(x, {
|
|
53
|
+
toast: t,
|
|
54
|
+
state: e
|
|
55
|
+
}, t.key))
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
function x({ state: i, className: l, ...u }) {
|
|
@@ -60,14 +60,14 @@ function x({ state: i, className: l, ...u }) {
|
|
|
60
60
|
return /* @__PURE__ */ o("div", {
|
|
61
61
|
...f,
|
|
62
62
|
ref: d,
|
|
63
|
-
className:
|
|
63
|
+
className: t(h.toast, h[u.toast.content.type], l),
|
|
64
64
|
style: {
|
|
65
65
|
viewTransitionName: u.toast.key,
|
|
66
66
|
viewTransitionClass: h.viewTransition
|
|
67
67
|
},
|
|
68
68
|
children: [/* @__PURE__ */ o("div", {
|
|
69
69
|
...p,
|
|
70
|
-
className:
|
|
70
|
+
className: t(h.toastContent, p.className),
|
|
71
71
|
children: [/* @__PURE__ */ a(n, {
|
|
72
72
|
"aria-hidden": !0,
|
|
73
73
|
className: h.icon,
|
|
@@ -77,7 +77,7 @@ function x({ state: i, className: l, ...u }) {
|
|
|
77
77
|
...m,
|
|
78
78
|
children: u.toast.content.message
|
|
79
79
|
}), u.toast.content.children] })]
|
|
80
|
-
}), /* @__PURE__ */ a(
|
|
80
|
+
}), /* @__PURE__ */ a(e, {
|
|
81
81
|
variant: "icon",
|
|
82
82
|
...g,
|
|
83
83
|
children: /* @__PURE__ */ a(s, {
|
|
@@ -87,5 +87,4 @@ function x({ state: i, className: l, ...u }) {
|
|
|
87
87
|
})]
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
|
-
//#endregion
|
|
91
90
|
export { _ as a, b as i, x as n, f as o, y as r, v as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
2
|
-
import { t } from "./
|
|
1
|
+
import { t as e } from "./Button.module-CXkKBjuB.js";
|
|
2
|
+
import { t } from "./clsx-BtGY0yFD.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { ToggleButton as n, ToggleButtonGroup as r } from "react-aria-components";
|
|
5
5
|
import { jsx as i } from "react/jsx-runtime";
|
|
@@ -8,10 +8,9 @@ import '../assets/toggle-button.css';var a = {
|
|
|
8
8
|
toggleButton: "_toggleButton_q04hh_10"
|
|
9
9
|
}, o = ({ ...r }) => /* @__PURE__ */ i(n, {
|
|
10
10
|
...r,
|
|
11
|
-
className: e
|
|
12
|
-
}), s = ({ ...
|
|
13
|
-
...
|
|
14
|
-
className:
|
|
11
|
+
className: t(e.button, e.iconBtn, a.toggleButton, r.className)
|
|
12
|
+
}), s = ({ ...e }) => /* @__PURE__ */ i(r, {
|
|
13
|
+
...e,
|
|
14
|
+
className: t(a.group, e.className)
|
|
15
15
|
});
|
|
16
|
-
//#endregion
|
|
17
16
|
export { o as n, s as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./clsx-
|
|
1
|
+
import { t as e } from "./clsx-BtGY0yFD.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import { OverlayArrow as t, Tooltip as n, TooltipTrigger as r } from "react-aria-components";
|
|
4
4
|
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
@@ -6,8 +6,7 @@ import '../assets/tooltip.css';var s = {
|
|
|
6
6
|
tooltip: "_tooltip_exq12_1",
|
|
7
7
|
arrow: "_arrow_exq12_18"
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
//#region src/tooltip/Tooltip.tsx
|
|
9
|
+
// src/tooltip/Tooltip.tsx
|
|
11
10
|
function c({ children: r, className: c, ...l }) {
|
|
12
11
|
return /* @__PURE__ */ a(n, {
|
|
13
12
|
className: e(s.tooltip, c),
|
|
@@ -29,5 +28,4 @@ function l({ delay: e = 0, ...t }) {
|
|
|
29
28
|
...t
|
|
30
29
|
});
|
|
31
30
|
}
|
|
32
|
-
//#endregion
|
|
33
31
|
export { l as n, c as t };
|
package/chunks/{useLocalizedStringFormatter-CeyBc0x0.js → useLocalizedStringFormatter-DhIAL1D7.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMemo as e } from "react";
|
|
2
2
|
import { useLocale as t } from "react-aria-components";
|
|
3
3
|
import { LocalizedStringDictionary as n, LocalizedStringFormatter as r } from "@internationalized/string";
|
|
4
|
-
|
|
4
|
+
// src/utils/intl/useLocalizedStringFormatter.ts
|
|
5
5
|
var i = "sv", a = /* @__PURE__ */ new WeakMap();
|
|
6
6
|
function o(e) {
|
|
7
7
|
let t = a.get(e);
|
|
@@ -15,5 +15,4 @@ function c(n, a) {
|
|
|
15
15
|
let { locale: o } = t(), c = s(n, a);
|
|
16
16
|
return e(() => new r(o, c), [c, o]);
|
|
17
17
|
}
|
|
18
|
-
//#endregion
|
|
19
18
|
export { c as t };
|
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-CeQy0RdK.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-BpmV-r9p.js";
|
package/combobox/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as ComboBox } from "../chunks/combobox-
|
|
1
|
+
export { t as ComboBox } from "../chunks/combobox-DQ3d6pLc.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-DSBHnHdN.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-CLizY8Vq.js";
|
package/drop-zone/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as DropZone } from "../chunks/drop-zone-
|
|
1
|
+
export { t as DropZone } from "../chunks/drop-zone-BL3Z-Sbj.js";
|
package/field-error/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as FieldError } from "../chunks/field-error-
|
|
1
|
+
export { t as FieldError } from "../chunks/field-error-C5ynuTRu.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-etDe20pj.js";
|
package/file-trigger/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as FileTrigger } from "../chunks/file-trigger-
|
|
1
|
+
export { t as FileTrigger } from "../chunks/file-trigger-gOeeZzDP.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-CFn_pqQX.js";
|
package/heading/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Heading } from "../chunks/heading-
|
|
1
|
+
export { t as Heading } from "../chunks/heading-CIlMdywy.js";
|
package/icons/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as ContrastFilled } from "../chunks/icons-
|
|
1
|
+
export { t as ContrastFilled } from "../chunks/icons-a0WawN46.js";
|
package/index.js
CHANGED
|
@@ -1,54 +1,53 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use client";
|
|
3
|
-
import { n as e, t } from "./chunks/accordion-
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { n as
|
|
8
|
-
import { t as
|
|
9
|
-
import { n as
|
|
10
|
-
import { n as
|
|
11
|
-
import { n as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { n as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { i as
|
|
18
|
-
import { n as
|
|
19
|
-
import { a as
|
|
20
|
-
import { n as
|
|
21
|
-
import { a as
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import { n as
|
|
25
|
-
import { n as
|
|
26
|
-
import { a as
|
|
27
|
-
import { t as
|
|
28
|
-
import { i as
|
|
29
|
-
import { n as
|
|
30
|
-
import { t as
|
|
31
|
-
import { n as
|
|
32
|
-
import { t as
|
|
33
|
-
import { t as
|
|
34
|
-
import { n as
|
|
35
|
-
import { t as
|
|
36
|
-
import { a as
|
|
37
|
-
import { n as
|
|
38
|
-
import { n as
|
|
39
|
-
import {
|
|
40
|
-
import { t as je } from "./chunks/link-button-
|
|
41
|
-
import { i as Me, n as Ne, r as Pe, t as Fe } from "./chunks/radio-
|
|
42
|
-
import { t as Ie } from "./chunks/search-field-
|
|
43
|
-
import { t as Le } from "./chunks/skeleton-
|
|
44
|
-
import { t as Re } from "./chunks/stack-
|
|
45
|
-
import { a as ze, i as Be, n as Ve, o as He, r as Ue, t as We } from "./chunks/table-
|
|
46
|
-
import { i as Ge, n as Ke, r as qe, t as Je } from "./chunks/tabs-
|
|
47
|
-
import { i as Ye, n as Xe, r as Ze, t as Qe } from "./chunks/textfield-
|
|
48
|
-
import { t as $e } from "./chunks/time-field-
|
|
49
|
-
import { a as et, i as tt, n as nt, o as rt, r as it, t as at } from "./chunks/toast-
|
|
50
|
-
|
|
51
|
-
//#region src/version.ts
|
|
3
|
+
import { n as e, t } from "./chunks/accordion-BKnABSyU.js";
|
|
4
|
+
import { n, t as r } from "./chunks/link-CG_mHnLv.js";
|
|
5
|
+
import { t as i } from "./chunks/spinner-YKC-Vk3v.js";
|
|
6
|
+
import { t as a } from "./chunks/useLocalizedStringFormatter-DhIAL1D7.js";
|
|
7
|
+
import { n as o, t as s } from "./chunks/button-S2AY4EEn.js";
|
|
8
|
+
import { t as c } from "./chunks/heading-CIlMdywy.js";
|
|
9
|
+
import { n as l, t as u } from "./chunks/badge-C5Sdu_uw.js";
|
|
10
|
+
import { n as d, t as f } from "./chunks/breadcrumbs-BwYDyKWo.js";
|
|
11
|
+
import { n as p, t as m } from "./chunks/calendar-BOTC3DKx.js";
|
|
12
|
+
import { t as h } from "./chunks/label-B5-Kmj4t.js";
|
|
13
|
+
import { t as g } from "./chunks/popover-C7Ain5Qz.js";
|
|
14
|
+
import { n as _, r as v, t as y } from "./chunks/modal-BQrpnHT5.js";
|
|
15
|
+
import { t as b } from "./chunks/text-D7tnzTru.js";
|
|
16
|
+
import { t as x } from "./chunks/field-error-C5ynuTRu.js";
|
|
17
|
+
import { i as S, n as C, r as w, t as T } from "./chunks/checkbox-CzH8BdsB.js";
|
|
18
|
+
import { n as E, t as D } from "./chunks/select-BHpUGcW7.js";
|
|
19
|
+
import { a as O, c as k, i as A, n as j, o as M, r as N, s as P, t as F } from "./chunks/list-box-frfQGO1x.js";
|
|
20
|
+
import { n as I, r as L, t as R } from "./chunks/tag-B1suqFhD.js";
|
|
21
|
+
import { a as z, c as B, i as V, l as H, n as U, o as W, r as G, s as K, t as q } from "./chunks/card-mIB1NewO.js";
|
|
22
|
+
import { t as J } from "./chunks/character-counter-IbkPoEcq.js";
|
|
23
|
+
import { t as Y } from "./chunks/icons-a0WawN46.js";
|
|
24
|
+
import { n as X, t as Z } from "./chunks/toggle-button-BVyG8F2K.js";
|
|
25
|
+
import { n as Q, t as $ } from "./chunks/color-scheme-switch-BpmV-r9p.js";
|
|
26
|
+
import { a as ee, i as te, n as ne, o as re, r as ie, t as ae } from "./chunks/menu-7gP2Sovj.js";
|
|
27
|
+
import { t as oe } from "./chunks/combobox-DQ3d6pLc.js";
|
|
28
|
+
import { i as se, n as ce, r as le, t as ue } from "./chunks/date-field-DSBHnHdN.js";
|
|
29
|
+
import { n as de, t as fe } from "./chunks/date-picker-CLizY8Vq.js";
|
|
30
|
+
import { t as pe } from "./chunks/drop-zone-BL3Z-Sbj.js";
|
|
31
|
+
import { n as me, t as he } from "./chunks/file-list-etDe20pj.js";
|
|
32
|
+
import { t as ge } from "./chunks/progress-bar-DE7UoEWR.js";
|
|
33
|
+
import { t as _e } from "./chunks/file-trigger-gOeeZzDP.js";
|
|
34
|
+
import { n as ve, t as ye } from "./chunks/grid-CFn_pqQX.js";
|
|
35
|
+
import { t as be } from "./chunks/info-banner-BKB7_CPh.js";
|
|
36
|
+
import { a as xe, i as Se, n as Ce, r as we, t as Te } from "./chunks/layout-Cs8Oc8sf.js";
|
|
37
|
+
import { n as Ee, t as De } from "./chunks/tooltip-CR1uxtPd.js";
|
|
38
|
+
import { n as Oe, t as ke } from "./chunks/logo-Xe8PO0US.js";
|
|
39
|
+
import { t as Ae } from "./chunks/clsx-BtGY0yFD.js";
|
|
40
|
+
import { t as je } from "./chunks/link-button-4xRbQqH2.js";
|
|
41
|
+
import { i as Me, n as Ne, r as Pe, t as Fe } from "./chunks/radio-DAB7WeIP.js";
|
|
42
|
+
import { t as Ie } from "./chunks/search-field-BI1h0UBl.js";
|
|
43
|
+
import { t as Le } from "./chunks/skeleton-6y5HNJZp.js";
|
|
44
|
+
import { t as Re } from "./chunks/stack-DKjRicm1.js";
|
|
45
|
+
import { a as ze, i as Be, n as Ve, o as He, r as Ue, t as We } from "./chunks/table-Fsf-jJip.js";
|
|
46
|
+
import { i as Ge, n as Ke, r as qe, t as Je } from "./chunks/tabs-ZCpVhr_r.js";
|
|
47
|
+
import { i as Ye, n as Xe, r as Ze, t as Qe } from "./chunks/textfield-C-lRIIil.js";
|
|
48
|
+
import { t as $e } from "./chunks/time-field-1I6BMlaj.js";
|
|
49
|
+
import { a as et, i as tt, n as nt, o as rt, r as it, t as at } from "./chunks/toast-DTqQhHFN.js";
|
|
50
|
+
// src/version.ts
|
|
52
51
|
var ot = {
|
|
53
52
|
name: "@midas-ds/components",
|
|
54
53
|
author: { name: "Migrationsverket" },
|
|
@@ -61,7 +60,7 @@ var ot = {
|
|
|
61
60
|
description: "Midas Components",
|
|
62
61
|
homepage: "https://designsystem.migrationsverket.se/",
|
|
63
62
|
license: "CC0-1.0",
|
|
64
|
-
version: "17.33.
|
|
63
|
+
version: "17.33.6",
|
|
65
64
|
module: "./index.js",
|
|
66
65
|
type: "module",
|
|
67
66
|
main: "./index.js",
|
|
@@ -85,7 +84,7 @@ var ot = {
|
|
|
85
84
|
},
|
|
86
85
|
dependencies: {
|
|
87
86
|
"@internationalized/string": "^3.2.10",
|
|
88
|
-
"@midas-ds/theme": "3.17.
|
|
87
|
+
"@midas-ds/theme": "3.17.9",
|
|
89
88
|
"@react-stately/utils": "3.12.1",
|
|
90
89
|
"lucide-react": ">=0.563.0 <2.0.0",
|
|
91
90
|
clsx: "^2.1.1",
|
|
@@ -94,5 +93,4 @@ var ot = {
|
|
|
94
93
|
"react-stately": "3.50.0"
|
|
95
94
|
}
|
|
96
95
|
}.version;
|
|
97
|
-
|
|
98
|
-
export { e as Accordion, t as AccordionItem, c as Badge, l as BadgeContainer, d as Breadcrumb, u as Breadcrumbs, a as Button, o as ButtonGroup, f as Calendar, W as Card, B as CardActionArea, R as CardActions, H as CardBody, U as CardContent, K as CardHeader, G as CardImage, z as CardLink, V as CardTitle, We as Cell, q as CharacterCounter, S as Checkbox, C as CheckboxButton, x as CheckboxField, w as CheckboxGroup, Z as ColorSchemeSwitch, Q as ColorSchemeSwitchMenu, Ve as Column, ae as ComboBox, J as ContrastFilled, oe as DateField, se as DateInput, le as DateInputDivider, ue as DatePicker, de as DateRangePicker, ce as DateSegment, v as DialogTrigger, fe as DropZone, b as FieldError, pe as FileList, me as FileListItem, ge as FileTrigger, at as GlobalToastRegion, _e as Grid, ve as GridItem, Ce as Header, s as Heading, ye as InfoBanner, Ze as Input, m as Label, we as Layout, Ae as Link, je as LinkButton, O as ListBox, N as ListBoxButton, P as ListBoxEmptyState, A as ListBoxHeader, j as ListBoxItem, M as ListBoxLoadMoreItem, D as ListBoxPopover, k as ListBoxSection, Oe as Logo, De as LogoContext, $ as Menu, ee as MenuItem, re as MenuPopover, te as MenuSection, ne as MenuTrigger, g as Modal, _ as ModalOverlay, Se as Navbar, h as Popover, he as ProgressBar, Ne as Radio, Pe as RadioButton, Me as RadioField, Fe as RadioGroup, p as RangeCalendar, ke as RouterProvider, Ue as Row, Ie as SearchField, E as Select, T as SelectTrigger, ie as Separator, xe as Sidebar, be as SidebarLink, Le as Skeleton, r as Spinner, Re as Stack, qe as Tab, Je as TabList, Ke as TabPanel, Be as Table, ze as TableBody, He as TableHeader, Ge as Tabs, I as Tag, L as TagGroup, F as TagList, y as Text, Qe as TextArea, Xe as TextField, Ye as TextFieldBase, $e as TimeField, nt as Toast, it as ToastProvider, tt as ToastRegion, Y as ToggleButton, X as ToggleButtonGroup, Ee as Tooltip, Te as TooltipTrigger, ot as VERSION, n as clsx, et as toastQueue, i as useLocalizedStringFormatter, rt as useToastState };
|
|
96
|
+
export { e as Accordion, t as AccordionItem, l as Badge, u as BadgeContainer, f as Breadcrumb, d as Breadcrumbs, o as Button, s as ButtonGroup, p as Calendar, G as Card, V as CardActionArea, z as CardActions, U as CardBody, W as CardContent, q as CardHeader, K as CardImage, B as CardLink, H as CardTitle, We as Cell, J as CharacterCounter, C as Checkbox, w as CheckboxButton, S as CheckboxField, T as CheckboxGroup, Q as ColorSchemeSwitch, $ as ColorSchemeSwitchMenu, Ve as Column, oe as ComboBox, Y as ContrastFilled, se as DateField, ce as DateInput, ue as DateInputDivider, de as DatePicker, fe as DateRangePicker, le as DateSegment, y as DialogTrigger, pe as DropZone, x as FieldError, me as FileList, he as FileListItem, _e as FileTrigger, at as GlobalToastRegion, ve as Grid, ye as GridItem, we as Header, c as Heading, be as InfoBanner, Ze as Input, h as Label, Te as Layout, r as Link, je as LinkButton, k as ListBox, P as ListBoxButton, F as ListBoxEmptyState, j as ListBoxHeader, M as ListBoxItem, N as ListBoxLoadMoreItem, O as ListBoxPopover, A as ListBoxSection, ke as Logo, Oe as LogoContext, ee as Menu, te as MenuItem, ie as MenuPopover, ne as MenuSection, re as MenuTrigger, _ as Modal, v as ModalOverlay, Ce as Navbar, g as Popover, ge as ProgressBar, Ne as Radio, Pe as RadioButton, Me as RadioField, Fe as RadioGroup, m as RangeCalendar, n as RouterProvider, Ue as Row, Ie as SearchField, D as Select, E as SelectTrigger, ae as Separator, Se as Sidebar, xe as SidebarLink, Le as Skeleton, i as Spinner, Re as Stack, qe as Tab, Je as TabList, Ke as TabPanel, Be as Table, ze as TableBody, He as TableHeader, Ge as Tabs, L as Tag, R as TagGroup, I as TagList, b as Text, Qe as TextArea, Xe as TextField, Ye as TextFieldBase, $e as TimeField, nt as Toast, it as ToastProvider, tt as ToastRegion, X as ToggleButton, Z as ToggleButtonGroup, De as Tooltip, Ee as TooltipTrigger, ot as VERSION, Ae as clsx, et as toastQueue, a as useLocalizedStringFormatter, rt 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-BKB7_CPh.js";
|
package/label/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Label } from "../chunks/label-
|
|
1
|
+
export { t as Label } from "../chunks/label-B5-Kmj4t.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-Cs8Oc8sf.js";
|
package/link/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Link, n as RouterProvider } from "../chunks/link-
|
|
1
|
+
export { t as Link, n as RouterProvider } from "../chunks/link-CG_mHnLv.js";
|
package/link-button/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as LinkButton, n as RouterProvider } from "../chunks/link-button-
|
|
1
|
+
export { t as LinkButton, n as RouterProvider } from "../chunks/link-button-4xRbQqH2.js";
|
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-frfQGO1x.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-Xe8PO0US.js";
|
package/menu/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as Menu, i as MenuItem, r as MenuPopover, n as MenuSection, o as MenuTrigger, t as Separator } from "../chunks/menu-
|
|
1
|
+
export { a as Menu, i as MenuItem, r as MenuPopover, n as MenuSection, o as MenuTrigger, t as Separator } from "../chunks/menu-7gP2Sovj.js";
|
package/modal/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as DialogTrigger, n as Modal, r as ModalOverlay } from "../chunks/modal-
|
|
1
|
+
export { t as DialogTrigger, n as Modal, r as ModalOverlay } from "../chunks/modal-BQrpnHT5.js";
|
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.33.
|
|
17
|
+
"version": "17.33.6",
|
|
18
18
|
"module": "./index.js",
|
|
19
19
|
"type": "module",
|
|
20
20
|
"main": "./index.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@internationalized/string": "^3.2.10",
|
|
45
|
-
"@midas-ds/theme": "3.17.
|
|
45
|
+
"@midas-ds/theme": "3.17.9",
|
|
46
46
|
"@react-stately/utils": "3.12.1",
|
|
47
47
|
"lucide-react": ">=0.563.0 <2.0.0",
|
|
48
48
|
"clsx": "^2.1.1",
|
package/popover/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Popover } from "../chunks/popover-
|
|
1
|
+
export { t as Popover } from "../chunks/popover-C7Ain5Qz.js";
|
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-DE7UoEWR.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-DAB7WeIP.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-BI1h0UBl.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-BHpUGcW7.js";
|
package/skeleton/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Skeleton } from "../chunks/skeleton-
|
|
1
|
+
export { t as Skeleton } from "../chunks/skeleton-6y5HNJZp.js";
|
package/spinner/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Spinner } from "../chunks/spinner-
|
|
1
|
+
export { t as Spinner } from "../chunks/spinner-YKC-Vk3v.js";
|
package/stack/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Stack } from "../chunks/stack-
|
|
1
|
+
export { t as Stack } from "../chunks/stack-DKjRicm1.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-Fsf-jJip.js";
|
package/tabs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as Tab, t as TabList, n as TabPanel, i as Tabs } from "../chunks/tabs-
|
|
1
|
+
export { r as Tab, t as TabList, n as TabPanel, i as Tabs } from "../chunks/tabs-ZCpVhr_r.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-B1suqFhD.js";
|
package/text/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Text } from "../chunks/text-
|
|
1
|
+
export { t as Text } from "../chunks/text-D7tnzTru.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-C-lRIIil.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-1I6BMlaj.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-DTqQhHFN.js";
|
package/toggle-button/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as ToggleButton, t as ToggleButtonGroup } from "../chunks/toggle-button-
|
|
1
|
+
export { n as ToggleButton, t as ToggleButtonGroup } from "../chunks/toggle-button-BVyG8F2K.js";
|
package/tooltip/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Tooltip, n as TooltipTrigger } from "../chunks/tooltip-
|
|
1
|
+
export { t as Tooltip, n as TooltipTrigger } from "../chunks/tooltip-CR1uxtPd.js";
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { t as e } from "./clsx-DAqHMl_k.js";
|
|
3
|
-
import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
4
|
-
import { n } from "./button-dpe6hXmI.js";
|
|
5
|
-
import { n as r, t as i } from "./label-2ac-zqbe.js";
|
|
6
|
-
import { t as a } from "./text-DnvD4Cjc.js";
|
|
7
|
-
import { t as o } from "./field-error-BHoPnRe4.js";
|
|
8
|
-
import { t as s } from "./character-counter-CSoVSrxZ.js";
|
|
9
|
-
import { t as c } from "./TextField.module-Bg4LNalb.js";
|
|
10
|
-
import { forwardRef as l, useState as u } from "react";
|
|
11
|
-
import { clsx as d } from "clsx";
|
|
12
|
-
import { Input as f, InputContext as p, TextArea as m, TextField as h, TextFieldContext as g, useContextProps as _ } from "react-aria-components";
|
|
13
|
-
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
14
|
-
//#region src/textfield/TextFieldBase.tsx
|
|
15
|
-
var b = l((e, t) => {
|
|
16
|
-
[e] = _(e, t, g);
|
|
17
|
-
let { label: n, description: l, errorMessage: u, showCounter: f, errorPosition: p = "top", size: m = "large", popover: b, children: x } = e;
|
|
18
|
-
return /* @__PURE__ */ y(h, {
|
|
19
|
-
...e,
|
|
20
|
-
className: d(c.textField, { [c.medium]: m === "medium" }),
|
|
21
|
-
children: [
|
|
22
|
-
/* @__PURE__ */ v(r, {
|
|
23
|
-
popover: b,
|
|
24
|
-
children: n && /* @__PURE__ */ v(i, { children: n })
|
|
25
|
-
}),
|
|
26
|
-
l && /* @__PURE__ */ v(a, {
|
|
27
|
-
slot: "description",
|
|
28
|
-
children: l
|
|
29
|
-
}),
|
|
30
|
-
f && /* @__PURE__ */ v(s, { isLonely: !l }),
|
|
31
|
-
p === "top" && /* @__PURE__ */ v(o, {
|
|
32
|
-
"data-testid": "fieldError",
|
|
33
|
-
children: u
|
|
34
|
-
}),
|
|
35
|
-
x,
|
|
36
|
-
p === "bottom" && /* @__PURE__ */ v(o, {
|
|
37
|
-
"data-testid": "fieldError",
|
|
38
|
-
className: c.bottomError,
|
|
39
|
-
children: u
|
|
40
|
-
})
|
|
41
|
-
]
|
|
42
|
-
});
|
|
43
|
-
});
|
|
44
|
-
b.displayName = "TextFieldBase";
|
|
45
|
-
var x = {
|
|
46
|
-
en: {
|
|
47
|
-
hide: "Hide",
|
|
48
|
-
show: "Show",
|
|
49
|
-
showPassword: "Show password"
|
|
50
|
-
},
|
|
51
|
-
sv: {
|
|
52
|
-
hide: "Dölj",
|
|
53
|
-
show: "Visa",
|
|
54
|
-
showPassword: "Visa lösenord"
|
|
55
|
-
}
|
|
56
|
-
}, S = ({ showPassword: e, onToggle: r }) => {
|
|
57
|
-
let i = t(x);
|
|
58
|
-
return /* @__PURE__ */ v(n, {
|
|
59
|
-
"aria-label": i.format("showPassword"),
|
|
60
|
-
"aria-pressed": e,
|
|
61
|
-
variant: "tertiary",
|
|
62
|
-
onPress: r,
|
|
63
|
-
className: c.passwordButton,
|
|
64
|
-
children: e ? i.format("hide") : i.format("show")
|
|
65
|
-
});
|
|
66
|
-
}, C = l(({ skipContext: t = !1, ...n }, r) => {
|
|
67
|
-
let [i, a] = _(n, r, p), o = t ? r : a, s = t ? n : i, l = s.type === "password", [d, m] = u(!1);
|
|
68
|
-
return /* @__PURE__ */ y("div", {
|
|
69
|
-
className: c.wrap,
|
|
70
|
-
children: [/* @__PURE__ */ v(f, {
|
|
71
|
-
...s,
|
|
72
|
-
ref: o,
|
|
73
|
-
type: l && d ? "text" : s.type,
|
|
74
|
-
className: e(c.input, s.className)
|
|
75
|
-
}), l && /* @__PURE__ */ v(S, {
|
|
76
|
-
showPassword: d,
|
|
77
|
-
onToggle: () => m((e) => !e)
|
|
78
|
-
})]
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
C.displayName = "Input";
|
|
82
|
-
//#endregion
|
|
83
|
-
//#region src/textfield/TextField.tsx
|
|
84
|
-
var w = l(({ className: t, list: n, type: r, min: i, max: a, form: o, ...s }, c) => /* @__PURE__ */ v(b, {
|
|
85
|
-
...s,
|
|
86
|
-
children: /* @__PURE__ */ v(C, {
|
|
87
|
-
className: e(t),
|
|
88
|
-
form: o,
|
|
89
|
-
list: n,
|
|
90
|
-
min: i,
|
|
91
|
-
max: a,
|
|
92
|
-
ref: c,
|
|
93
|
-
type: r,
|
|
94
|
-
skipContext: !0
|
|
95
|
-
})
|
|
96
|
-
}));
|
|
97
|
-
w.displayName = "TextField";
|
|
98
|
-
//#endregion
|
|
99
|
-
//#region src/textfield/TextArea.tsx
|
|
100
|
-
var T = l(({ className: t, cols: n, form: r, rows: i, wrap: a, ...o }, s) => /* @__PURE__ */ v(b, {
|
|
101
|
-
...o,
|
|
102
|
-
children: /* @__PURE__ */ v(m, {
|
|
103
|
-
className: e(c.textArea, t),
|
|
104
|
-
cols: n,
|
|
105
|
-
form: r,
|
|
106
|
-
ref: s,
|
|
107
|
-
rows: i,
|
|
108
|
-
wrap: a
|
|
109
|
-
})
|
|
110
|
-
}));
|
|
111
|
-
T.displayName = "TextArea";
|
|
112
|
-
//#endregion
|
|
113
|
-
export { b as i, w as n, C as r, T as t };
|