@midas-ds/components 17.27.0 → 17.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/accordion/AccordionItem.d.ts +1 -1
- package/accordion/AccordionItem.stories.d.ts +1 -1
- package/accordion/index.js +1 -1
- package/badge/Badge.stories.d.ts +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/Breadcrumb.d.ts +1 -1
- package/breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/breadcrumbs/Breadcrumbs.stories.d.ts +4 -4
- package/breadcrumbs/index.js +1 -1
- package/button/index.js +1 -1
- package/calendar/Calendar.d.ts +2 -1
- package/calendar/Calendar.stories.d.ts +2 -2
- package/calendar/CalendarGrid.d.ts +2 -1
- package/calendar/CalendarHeader.d.ts +2 -1
- package/calendar/CalendarPicker.d.ts +1 -1
- package/calendar/RangeCalendar.d.ts +2 -1
- package/calendar/RangeCalendar.stories.d.ts +1 -1
- package/calendar/index.js +1 -1
- package/card/Card.d.ts +1 -1
- package/card/card-body/CardBody.d.ts +1 -1
- package/card/card-header/CardHeader.d.ts +1 -1
- package/card/index.js +1 -1
- package/checkbox/CheckboxField.d.ts +1 -1
- package/checkbox/CheckboxGroup.d.ts +1 -1
- package/checkbox/CheckboxGroup.stories.d.ts +2 -2
- package/checkbox/SelectAllCheckbox.d.ts +1 -1
- package/checkbox/index.js +1 -1
- package/chunks/{FeedbackStatusIcon-BS5VX-s6.js → FeedbackStatusIcon-DRI7WrSU.js} +7 -7
- package/chunks/{accordion-BxxPnJau.js → accordion-DIVTJU3O.js} +7 -7
- package/chunks/{badge-BplGU5BS.js → badge-BfK6XrlL.js} +1 -1
- package/chunks/{breadcrumbs-C-Z6UlQn.js → breadcrumbs-DV0ZJc62.js} +1 -1
- package/chunks/{button-Ch860h28.js → button-CenXTGXL.js} +2 -2
- package/chunks/{calendar-DWdU1T7E.js → calendar-BZPktkdE.js} +6 -6
- package/chunks/{card-Bzc8kToe.js → card-zIYA-SQh.js} +3 -3
- package/chunks/{checkbox-BgCp0edW.js → checkbox-DcXA9GSd.js} +4 -4
- package/chunks/{clear-button-la4Fb9_w.js → clear-button-D3I1X3yG.js} +1 -1
- package/chunks/{clsx-B1NYyfch.js → clsx-Di52oYUU.js} +6 -4
- package/chunks/{color-scheme-switch-jgoxUu3x.js → color-scheme-switch-DVZjdwc9.js} +4 -4
- package/chunks/{combobox-B3AGDNru.js → combobox-DIou4Z-d.js} +5 -5
- package/chunks/{date-field-Q3bQ5P_t.js → date-field-BF2f9bSf.js} +5 -5
- package/chunks/{date-picker-BPAJK8Gr.js → date-picker-BomOO1LI.js} +8 -8
- package/chunks/{drop-zone-DvQLpgq6.js → drop-zone-DH3ZyHsr.js} +1 -1
- package/chunks/{field-error-pJiSw4PN.js → field-error-LtNtEKDp.js} +2 -2
- package/chunks/{file-list-DM1Vtkun.js → file-list-TmEuO1fJ.js} +2 -2
- package/chunks/{grid-DZB3GGDg.js → grid-Cn_8RSvj.js} +1 -1
- package/chunks/heading-BEl_z-5T.js +31 -0
- package/chunks/{info-banner-DnFNZ1_o.js → info-banner-osR4e6nB.js} +3 -3
- package/chunks/{label-CEYHiWSa.js → label-LWlgvAwz.js} +4 -4
- package/chunks/{layout-DVj8wSj3.js → layout-Db5um0f7.js} +23 -23
- package/chunks/{link-CQoSw1Pv.js → link-BAgs4RwY.js} +5 -5
- package/chunks/{link-button-BMFzCHH8.js → link-button-BuPMEGUj.js} +5 -5
- package/chunks/{list-box-BT33Wiwt.js → list-box-BN_MSiOD.js} +3 -3
- package/chunks/{logo-CDxNjDeI.js → logo-DyZ2pXt7.js} +1 -1
- package/chunks/{menu-CPCGm0MC.js → menu-aT2IR0tO.js} +1 -1
- package/chunks/{modal-C-xHt7Ds.js → modal-C-UsxdO0.js} +3 -3
- package/chunks/{popover-wAwxm_cM.js → popover-DGcogqbS.js} +1 -1
- package/chunks/{progress-bar-Cft_RPHz.js → progress-bar-7w_kWo2f.js} +2 -2
- package/chunks/{radio-BXC6pb3z.js → radio-C-MUMGu7.js} +4 -4
- package/chunks/{search-field-dAZu3T_V.js → search-field-BvfOHvUI.js} +6 -6
- package/chunks/{select-DOLE5CtI.js → select-KQzDIamx.js} +8 -8
- package/chunks/{skeleton-DWmvym7R.js → skeleton-B_BPRPJy.js} +1 -1
- package/chunks/{spinner-DMR5G-6u.js → spinner-LdHPVms_.js} +1 -1
- package/chunks/{table-RARvkGKL.js → table-zT6eQ3ZZ.js} +2 -2
- package/chunks/{tabs-BFFTnO4i.js → tabs-Co09VWvC.js} +1 -1
- package/chunks/{tag-mzNjP8EX.js → tag-BIcqtf7b.js} +2 -2
- package/chunks/text-DwmZ-ew8.js +28 -0
- package/chunks/{textfield-BNdiOwXq.js → textfield-CXqzzOtw.js} +5 -5
- package/chunks/{time-field-CZxI9Bs6.js → time-field-CmjGBQph.js} +6 -6
- package/chunks/{toast-Cz0JDIr1.js → toast-gJgjitZF.js} +3 -3
- package/chunks/{toggle-button-BgUQKcK-.js → toggle-button-CIvsOXQf.js} +1 -1
- package/chunks/{tooltip-D7LYQwj0.js → tooltip-BkesIUIF.js} +1 -1
- package/clear-button/index.js +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/ComboBox.d.ts +1 -1
- package/combobox/ComboBox.stories.d.ts +3 -2
- package/combobox/index.js +1 -1
- package/common/FeedbackStatusIcon.d.ts +1 -1
- package/date-field/index.js +1 -1
- package/date-picker/DatePickerInputField.d.ts +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/FileList.d.ts +1 -1
- package/file-list/FileList.stories.d.ts +3 -3
- package/file-list/FileListItem.d.ts +1 -1
- package/file-list/index.js +1 -1
- package/file-trigger/FileTrigger.d.ts +1 -1
- package/grid/index.js +1 -1
- package/heading/index.js +1 -1
- package/index.js +49 -49
- package/info-banner/index.js +1 -1
- package/label/InfoPopover.d.ts +1 -1
- package/label/index.js +1 -1
- package/layout/components/SidebarLink.d.ts +1 -1
- package/layout/index.js +1 -1
- package/link/Link.d.ts +1 -1
- package/link/index.js +1 -1
- package/link-button/LinkButton.d.ts +1 -1
- package/link-button/index.js +1 -1
- package/list-box/ListBox.d.ts +1 -1
- package/list-box/ListBox.stories.d.ts +4 -4
- package/list-box/ListBoxHeader.d.ts +1 -1
- package/list-box/ListBoxItem.d.ts +1 -1
- package/list-box/ListBoxSection.d.ts +1 -1
- package/list-box/index.js +1 -1
- package/list-box/list-box-empty-state/ListBoxEmptyState.d.ts +1 -1
- package/logo/Logo.d.ts +1 -1
- package/logo/index.js +1 -1
- package/menu/Menu.d.ts +1 -1
- package/menu/Menu.stories.d.ts +5 -4
- package/menu/MenuItem.d.ts +1 -1
- package/menu/MenuPopover.d.ts +1 -1
- package/menu/MenuSection.d.ts +1 -1
- package/menu/Separator.d.ts +1 -1
- package/menu/index.js +1 -1
- package/modal/index.js +1 -1
- package/package.json +6 -6
- package/popover/index.js +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/Radio.d.ts +1 -1
- package/radio/Radio.stories.d.ts +6 -6
- package/radio/RadioButton.d.ts +1 -1
- package/radio/RadioField.d.ts +1 -1
- package/radio/RadioGroup.stories.d.ts +1 -1
- package/radio/index.js +1 -1
- package/search-field/SearchField.d.ts +1 -1
- package/search-field/SearchField.stories.d.ts +1 -1
- package/search-field/index.js +1 -1
- package/select/MultiSelectValue.d.ts +2 -1
- package/select/Select.d.ts +1 -1
- package/select/Select.stories.d.ts +2 -2
- package/select/SelectAll.d.ts +2 -1
- package/select/SelectTags.d.ts +1 -1
- package/select/SelectTrigger.d.ts +1 -1
- package/select/index.js +1 -1
- package/skeleton/Skeleton.Form.stories.d.ts +1 -1
- package/skeleton/index.js +1 -1
- package/spinner/index.js +1 -1
- package/table/Table.d.ts +6 -6
- package/table/Table.stories.d.ts +7 -7
- package/table/index.js +1 -1
- package/tabs/TabList.d.ts +2 -1
- package/tabs/Tabs.stories.d.ts +1 -1
- package/tabs/index.js +1 -1
- package/tag/Tag.d.ts +1 -1
- package/tag/index.js +1 -1
- package/tag/tag-list/TagList.d.ts +1 -1
- package/text/index.js +1 -1
- package/textfield/PasswordToggle.d.ts +1 -1
- package/textfield/TextArea.stories.d.ts +4 -4
- package/textfield/index.js +1 -1
- package/time-field/index.js +1 -1
- package/toast/Toast.d.ts +3 -3
- package/toast/index.js +1 -1
- package/toggle-button/index.js +1 -1
- package/tooltip/Tooltip.d.ts +3 -2
- package/tooltip/Tooltip.stories.d.ts +1 -1
- package/tooltip/index.js +1 -1
- package/chunks/heading-bnDePIbv.js +0 -28
- package/chunks/text-EUdAWwZz.js +0 -23
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as e } from "./clsx-
|
|
1
|
+
import { t as e } from "./clsx-Di52oYUU.js";
|
|
2
2
|
import { t } from "./info-jCyacVsy.js";
|
|
3
3
|
import { t as n } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
4
|
-
import { n as r } from "./button-
|
|
5
|
-
import { t as i } from "./popover-
|
|
6
|
-
import { t as a } from "./modal-C-
|
|
4
|
+
import { n as r } from "./button-CenXTGXL.js";
|
|
5
|
+
import { t as i } from "./popover-DGcogqbS.js";
|
|
6
|
+
import { t as a } from "./modal-C-UsxdO0.js";
|
|
7
7
|
import * as o from "react";
|
|
8
8
|
import s, { useContext as c } from "react";
|
|
9
9
|
import { Label as l } from "react-aria-components";
|
|
@@ -1,19 +1,32 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { t as e } from "./clsx-
|
|
2
|
+
import { t as e } from "./clsx-Di52oYUU.js";
|
|
3
3
|
import { t } from "./createLucideIcon-BgluSHFG.js";
|
|
4
4
|
import { t as n } from "./x-BJAOO5a5.js";
|
|
5
5
|
import { t as r } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
6
|
-
import { n as i } from "./button-
|
|
7
|
-
import { n as a, t as o } from "./badge-
|
|
8
|
-
import { t as s } from "./grid-
|
|
9
|
-
import { n as c, t as l } from "./tooltip-
|
|
10
|
-
import { t as u } from "./logo-
|
|
6
|
+
import { n as i } from "./button-CenXTGXL.js";
|
|
7
|
+
import { n as a, t as o } from "./badge-BfK6XrlL.js";
|
|
8
|
+
import { t as s } from "./grid-Cn_8RSvj.js";
|
|
9
|
+
import { n as c, t as l } from "./tooltip-BkesIUIF.js";
|
|
10
|
+
import { t as u } from "./logo-DyZ2pXt7.js";
|
|
11
11
|
import * as d from "react";
|
|
12
12
|
import { useEffect as f, useState as p } from "react";
|
|
13
13
|
import { Link as m, RouterProvider as h } from "react-aria-components";
|
|
14
14
|
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
15
15
|
import { variables as y } from "@midas-ds/theme";
|
|
16
|
-
import '../assets/layout.css';var b = t("
|
|
16
|
+
import '../assets/layout.css';var b = t("menu", [
|
|
17
|
+
["path", {
|
|
18
|
+
d: "M4 5h16",
|
|
19
|
+
key: "1tepv9"
|
|
20
|
+
}],
|
|
21
|
+
["path", {
|
|
22
|
+
d: "M4 12h16",
|
|
23
|
+
key: "1lakjw"
|
|
24
|
+
}],
|
|
25
|
+
["path", {
|
|
26
|
+
d: "M4 19h16",
|
|
27
|
+
key: "1djgab"
|
|
28
|
+
}]
|
|
29
|
+
]), x = t("panel-left-close", [
|
|
17
30
|
["rect", {
|
|
18
31
|
width: "18",
|
|
19
32
|
height: "18",
|
|
@@ -30,7 +43,7 @@ import '../assets/layout.css';var b = t("panel-left-close", [
|
|
|
30
43
|
d: "m16 15-3-3 3-3",
|
|
31
44
|
key: "14y99z"
|
|
32
45
|
}]
|
|
33
|
-
]),
|
|
46
|
+
]), S = t("panel-left-open", [
|
|
34
47
|
["rect", {
|
|
35
48
|
width: "18",
|
|
36
49
|
height: "18",
|
|
@@ -47,19 +60,6 @@ import '../assets/layout.css';var b = t("panel-left-close", [
|
|
|
47
60
|
d: "m14 9 3 3-3 3",
|
|
48
61
|
key: "8010ee"
|
|
49
62
|
}]
|
|
50
|
-
]), S = t("menu", [
|
|
51
|
-
["path", {
|
|
52
|
-
d: "M4 5h16",
|
|
53
|
-
key: "1tepv9"
|
|
54
|
-
}],
|
|
55
|
-
["path", {
|
|
56
|
-
d: "M4 12h16",
|
|
57
|
-
key: "1lakjw"
|
|
58
|
-
}],
|
|
59
|
-
["path", {
|
|
60
|
-
d: "M4 19h16",
|
|
61
|
-
key: "1djgab"
|
|
62
|
-
}]
|
|
63
63
|
]), C = {
|
|
64
64
|
baseLayout: "_baseLayout_1ylxx_1",
|
|
65
65
|
mainContent: "_mainContent_1ylxx_10",
|
|
@@ -214,7 +214,7 @@ import '../assets/layout.css';var b = t("panel-left-close", [
|
|
|
214
214
|
"aria-label": s ? m.format("maximizeMenu") : m.format("minimizeMenu"),
|
|
215
215
|
onPress: () => c(!s),
|
|
216
216
|
className: C.collapseButton,
|
|
217
|
-
children: _(s ?
|
|
217
|
+
children: _(s ? S : x, { size: 20 })
|
|
218
218
|
})]
|
|
219
219
|
}), /* @__PURE__ */ _("nav", {
|
|
220
220
|
className: C.sidebarNav,
|
|
@@ -281,7 +281,7 @@ import '../assets/layout.css';var b = t("panel-left-close", [
|
|
|
281
281
|
onPressStart: () => {
|
|
282
282
|
l(!1), c?.(!0);
|
|
283
283
|
},
|
|
284
|
-
children: _(s ? n :
|
|
284
|
+
children: _(s ? n : b, {
|
|
285
285
|
size: 20,
|
|
286
286
|
"aria-hidden": "true"
|
|
287
287
|
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { t as e } from "./clsx-
|
|
2
|
+
import { t as e } from "./clsx-Di52oYUU.js";
|
|
3
3
|
import { t } from "./createLucideIcon-BgluSHFG.js";
|
|
4
|
-
import { t as n } from "./
|
|
5
|
-
import { t as r } from "./arrow-right-
|
|
4
|
+
import { t as n } from "./arrow-right-Db_H9KjE.js";
|
|
5
|
+
import { t as r } from "./square-arrow-out-up-right-DkgXD7hj.js";
|
|
6
6
|
import { t as i } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
7
7
|
import { Link as a, RouterProvider as o } from "react-aria-components";
|
|
8
8
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
@@ -39,9 +39,9 @@ import '../assets/link.css';var d = t("arrow-down-to-line", [
|
|
|
39
39
|
icon: d,
|
|
40
40
|
label: C.format("downloadsFile")
|
|
41
41
|
} : m === "_blank" ? {
|
|
42
|
-
icon:
|
|
42
|
+
icon: r,
|
|
43
43
|
label: C.format("opensInNewTab")
|
|
44
|
-
} : o ? { icon:
|
|
44
|
+
} : o ? { icon: n } : null;
|
|
45
45
|
return /* @__PURE__ */ l(S, {
|
|
46
46
|
className: e(f.link, o && f.standalone, g && f.stretched, y),
|
|
47
47
|
...x,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { t as e } from "./clsx-
|
|
2
|
+
import { t as e } from "./clsx-Di52oYUU.js";
|
|
3
3
|
import { t } from "./createLucideIcon-BgluSHFG.js";
|
|
4
|
-
import { t as n } from "./
|
|
5
|
-
import { t as r } from "./arrow-right-
|
|
4
|
+
import { t as n } from "./arrow-right-Db_H9KjE.js";
|
|
5
|
+
import { t as r } from "./square-arrow-out-up-right-DkgXD7hj.js";
|
|
6
6
|
import { t as i } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import { Link as a, RouterProvider as o } from "react-aria-components";
|
|
@@ -30,9 +30,9 @@ import '../assets/link-button.css';var u = t("arrow-left", [["path", {
|
|
|
30
30
|
sv: { opensInNewTab: "Öppnas i ny flik" }
|
|
31
31
|
}, p = ({ children: t, variant: o, fullwidth: p, icon: h, iconPlacement: g, className: _, as: v, size: y = "large", ...b }) => {
|
|
32
32
|
let x = v || a, S = i(f), C = h ? { icon: h } : b.target === "_blank" ? {
|
|
33
|
-
icon:
|
|
33
|
+
icon: r,
|
|
34
34
|
label: S.format("opensInNewTab")
|
|
35
|
-
} : g === "left" ? { icon: u } : { icon:
|
|
35
|
+
} : g === "left" ? { icon: u } : { icon: n };
|
|
36
36
|
return /* @__PURE__ */ c(x, {
|
|
37
37
|
className: e(d.linkButton, o === "primary" && d.primary, o === "secondary" && d.secondary, o === "tertiary" && d.tertiary, o === "danger" && d.danger, o === "icon" && d.iconBtn, y === "medium" && d.medium, p && d.fullwidth, g === "left" && d.iconLeft, _),
|
|
38
38
|
...b,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as e } from "./clsx-
|
|
2
|
-
import { t } from "./spinner-
|
|
1
|
+
import { t as e } from "./clsx-Di52oYUU.js";
|
|
2
|
+
import { t } from "./spinner-LdHPVms_.js";
|
|
3
3
|
import { t as n } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
4
|
-
import { t as r } from "./text-
|
|
4
|
+
import { t as r } from "./text-DwmZ-ew8.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import { Header as i, ListBox as a, ListBoxItem as o, ListBoxLoadMoreItem as s, ListBoxSection as c, ListLayout as l, Popover as u, Virtualizer as d, composeRenderProps as f } from "react-aria-components";
|
|
7
7
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./clsx-
|
|
1
|
+
import { t as e } from "./clsx-Di52oYUU.js";
|
|
2
2
|
import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
3
3
|
import { createContext as n, useContext as r } from "react";
|
|
4
4
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./clsx-
|
|
1
|
+
import { t as e } from "./clsx-Di52oYUU.js";
|
|
2
2
|
import { t } from "./check-DV00NPU0.js";
|
|
3
3
|
import { t as n } from "./chevron-right-DwqboCdU.js";
|
|
4
4
|
import { Menu as r, MenuItem as i, MenuSection as a, MenuTrigger as o, Popover as s, Separator as c } from "react-aria-components";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as e } from "./clsx-
|
|
1
|
+
import { t as e } from "./clsx-Di52oYUU.js";
|
|
2
2
|
import { t } from "./x-BJAOO5a5.js";
|
|
3
3
|
import { t as n } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
4
|
-
import { n as r } from "./button-
|
|
5
|
-
import { t as i } from "./heading-
|
|
4
|
+
import { n as r } from "./button-CenXTGXL.js";
|
|
5
|
+
import { t as i } from "./heading-BEl_z-5T.js";
|
|
6
6
|
import { forwardRef as a } from "react";
|
|
7
7
|
import { Dialog as o, DialogTrigger as s, Modal as c, ModalOverlay as l, composeRenderProps as u } from "react-aria-components";
|
|
8
8
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./clsx-
|
|
1
|
+
import { t as e } from "./clsx-Di52oYUU.js";
|
|
2
2
|
import { forwardRef as t } from "react";
|
|
3
3
|
import { OverlayArrow as n, Popover as r, PopoverContext as i, composeRenderProps as a, useContextProps as o } from "react-aria-components";
|
|
4
4
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./clsx-
|
|
2
|
-
import { t } from "./label-
|
|
1
|
+
import { t as e } from "./clsx-Di52oYUU.js";
|
|
2
|
+
import { t } from "./label-LWlgvAwz.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { ProgressBar as n } from "react-aria-components";
|
|
5
5
|
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as e } from "./clsx-
|
|
2
|
-
import { n as t, t as n } from "./label-
|
|
3
|
-
import { t as r } from "./text-
|
|
4
|
-
import { t as i } from "./field-error-
|
|
1
|
+
import { t as e } from "./clsx-Di52oYUU.js";
|
|
2
|
+
import { n as t, t as n } from "./label-LWlgvAwz.js";
|
|
3
|
+
import { t as r } from "./text-DwmZ-ew8.js";
|
|
4
|
+
import { t as i } from "./field-error-LtNtEKDp.js";
|
|
5
5
|
import { Group as a, RadioButton as o, RadioField as s, RadioGroup as c, composeRenderProps as l } from "react-aria-components";
|
|
6
6
|
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
7
7
|
import '../assets/radio.css';//#region src/radio/RadioField.tsx
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { t as e } from "./clsx-
|
|
2
|
+
import { t as e } from "./clsx-Di52oYUU.js";
|
|
3
3
|
import { t } from "./createLucideIcon-BgluSHFG.js";
|
|
4
4
|
import { t as n } from "./x-BJAOO5a5.js";
|
|
5
5
|
import { t as r } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
6
|
-
import { n as i } from "./button-
|
|
7
|
-
import { n as a, t as o } from "./label-
|
|
8
|
-
import { t as s } from "./text-
|
|
9
|
-
import { t as c } from "./field-error-
|
|
6
|
+
import { n as i } from "./button-CenXTGXL.js";
|
|
7
|
+
import { n as a, t as o } from "./label-LWlgvAwz.js";
|
|
8
|
+
import { t as s } from "./text-DwmZ-ew8.js";
|
|
9
|
+
import { t as c } from "./field-error-LtNtEKDp.js";
|
|
10
10
|
import { t as l } from "./TextField.module-D_tUnemB.js";
|
|
11
11
|
import { FormContext as u, Input as d, SearchField as f, useSlottedContext as p } from "react-aria-components";
|
|
12
12
|
import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
@@ -37,7 +37,7 @@ function b(e) {
|
|
|
37
37
|
}
|
|
38
38
|
var x = ({ errorPosition: t = "top", size: x = "large", showButton: S, className: C, errorMessage: w, placeholder: T, label: E, description: D, popover: O, validationBehavior: k, inputMode: A = "search", ...j }) => {
|
|
39
39
|
let M = r(y), N = p(u), P = k ?? N?.validationBehavior ?? "aria", F = S !== !1, I = (e) => {
|
|
40
|
-
|
|
40
|
+
e && !j.isInvalid && (j.validate && b(j.validate(e)) || j.onSubmit?.(e));
|
|
41
41
|
};
|
|
42
42
|
return /* @__PURE__ */ h(f, {
|
|
43
43
|
...j,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as e, t } from "./clsx-
|
|
1
|
+
import { n as e, t } from "./clsx-Di52oYUU.js";
|
|
2
2
|
import { t as n } from "./chevron-down-CP7nEDei.js";
|
|
3
|
-
import { n as r } from "./checkbox-
|
|
3
|
+
import { n as r } from "./checkbox-DcXA9GSd.js";
|
|
4
4
|
import { t as i } from "./x-BJAOO5a5.js";
|
|
5
5
|
import { t as a } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
6
|
-
import { n as o, t as s } from "./label-
|
|
7
|
-
import { t as c } from "./popover-
|
|
8
|
-
import { t as l } from "./text-
|
|
9
|
-
import { t as u } from "./field-error-
|
|
10
|
-
import { c as d } from "./list-box-
|
|
11
|
-
import { n as f, r as p, t as m } from "./tag-
|
|
6
|
+
import { n as o, t as s } from "./label-LWlgvAwz.js";
|
|
7
|
+
import { t as c } from "./popover-DGcogqbS.js";
|
|
8
|
+
import { t as l } from "./text-DwmZ-ew8.js";
|
|
9
|
+
import { t as u } from "./field-error-LtNtEKDp.js";
|
|
10
|
+
import { c as d } from "./list-box-BN_MSiOD.js";
|
|
11
|
+
import { n as f, r as p, t as m } from "./tag-BIcqtf7b.js";
|
|
12
12
|
import h, { useContext as g } from "react";
|
|
13
13
|
import { Button as _, Select as v, SelectStateContext as y, SelectValue as b } from "react-aria-components";
|
|
14
14
|
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./clsx-
|
|
1
|
+
import { t as e } from "./clsx-Di52oYUU.js";
|
|
2
2
|
import { t } from "./createLucideIcon-BgluSHFG.js";
|
|
3
3
|
import { t as n } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { t as e } from "./clsx-
|
|
2
|
+
import { t as e } from "./clsx-Di52oYUU.js";
|
|
3
3
|
import { t } from "./createLucideIcon-BgluSHFG.js";
|
|
4
|
-
import { n } from "./checkbox-
|
|
4
|
+
import { n } from "./checkbox-DcXA9GSd.js";
|
|
5
5
|
import { Button as r, Cell as i, Collection as a, Column as o, Row as s, Table as c, TableBody as l, TableHeader as u, useTableOptions as d } from "react-aria-components";
|
|
6
6
|
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
7
7
|
import '../assets/table.css';var h = t("arrow-down", [["path", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { t as e } from "./clsx-
|
|
2
|
+
import { t as e } from "./clsx-Di52oYUU.js";
|
|
3
3
|
import * as t from "react";
|
|
4
4
|
import { createContext as n } from "react";
|
|
5
5
|
import { DialogContext as r, SelectionIndicator as i, Tab as a, TabList as o, TabPanel as s, Tabs as c, composeRenderProps as l } from "react-aria-components";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "./clsx-
|
|
1
|
+
import { t as e } from "./clsx-Di52oYUU.js";
|
|
2
2
|
import { t } from "./x-BJAOO5a5.js";
|
|
3
|
-
import { n } from "./button-
|
|
3
|
+
import { n } from "./button-CenXTGXL.js";
|
|
4
4
|
import { Children as r, forwardRef as i, isValidElement as a } from "react";
|
|
5
5
|
import { Tag as o, TagGroup as s, TagGroupContext as c, TagList as l, TagListContext as u, composeRenderProps as d, useContextProps as f } from "react-aria-components";
|
|
6
6
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { t as e } from "./clsx-Di52oYUU.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { Text as t } from "react-aria-components";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
+
import '../assets/text.css';var r = {
|
|
6
|
+
body: "_body_g096r_1",
|
|
7
|
+
"body-small": "_body-small_g096r_2",
|
|
8
|
+
description: "_description_g096r_3",
|
|
9
|
+
"description-small": "_description-small_g096r_4",
|
|
10
|
+
bold: "_bold_g096r_24",
|
|
11
|
+
italic: "_italic_g096r_28"
|
|
12
|
+
}, i = "span", a = ({ children: a, className: o, size: s, isExpressive: c = !1, elementType: l = i, ...u }) => {
|
|
13
|
+
let d = {
|
|
14
|
+
className: e(u.slot === "description" ? s === "small" ? r["description-small"] : r.description : s === "small" ? r["body-small"] : r.body, {
|
|
15
|
+
[r.bold]: ["b", "strong"].includes(l),
|
|
16
|
+
[r.italic]: ["i", "em"].includes(l)
|
|
17
|
+
}, o),
|
|
18
|
+
elementType: l || i,
|
|
19
|
+
...c && { "data-expressive": !0 },
|
|
20
|
+
...u
|
|
21
|
+
};
|
|
22
|
+
return /* @__PURE__ */ n(t, {
|
|
23
|
+
...d,
|
|
24
|
+
children: a
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { a as t };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { n as e, t } from "./clsx-
|
|
2
|
+
import { n as e, t } from "./clsx-Di52oYUU.js";
|
|
3
3
|
import { t as n } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
4
|
-
import { n as r } from "./button-
|
|
5
|
-
import { n as i, t as a } from "./label-
|
|
6
|
-
import { t as o } from "./text-
|
|
7
|
-
import { t as s } from "./field-error-
|
|
4
|
+
import { n as r } from "./button-CenXTGXL.js";
|
|
5
|
+
import { n as i, t as a } from "./label-LWlgvAwz.js";
|
|
6
|
+
import { t as o } from "./text-DwmZ-ew8.js";
|
|
7
|
+
import { t as s } from "./field-error-LtNtEKDp.js";
|
|
8
8
|
import { t as c } from "./character-counter-CSoVSrxZ.js";
|
|
9
9
|
import { t as l } from "./TextField.module-D_tUnemB.js";
|
|
10
10
|
import { forwardRef as u, useState as d } from "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as e } from "./clsx-
|
|
1
|
+
import { t as e } from "./clsx-Di52oYUU.js";
|
|
2
2
|
import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
3
|
-
import { n, t as r } from "./label-
|
|
4
|
-
import { t as i } from "./text-
|
|
5
|
-
import { t as a } from "./field-error-
|
|
6
|
-
import { t as o } from "./clear-button-
|
|
7
|
-
import { n as s, r as c } from "./date-field-
|
|
3
|
+
import { n, t as r } from "./label-LWlgvAwz.js";
|
|
4
|
+
import { t as i } from "./text-DwmZ-ew8.js";
|
|
5
|
+
import { t as a } from "./field-error-LtNtEKDp.js";
|
|
6
|
+
import { t as o } from "./clear-button-D3I1X3yG.js";
|
|
7
|
+
import { n as s, r as c } from "./date-field-BF2f9bSf.js";
|
|
8
8
|
import * as l from "react";
|
|
9
9
|
import { TimeField as u, TimeFieldStateContext as d } from "react-aria-components";
|
|
10
10
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { t as e } from "./clsx-
|
|
3
|
-
import { t } from "./FeedbackStatusIcon-
|
|
2
|
+
import { t as e } from "./clsx-Di52oYUU.js";
|
|
3
|
+
import { t } from "./FeedbackStatusIcon-DRI7WrSU.js";
|
|
4
4
|
import { t as n } from "./x-BJAOO5a5.js";
|
|
5
|
-
import { n as r } from "./button-
|
|
5
|
+
import { n as r } from "./button-CenXTGXL.js";
|
|
6
6
|
import i from "react";
|
|
7
7
|
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
8
|
import { useToast as c, useToastRegion as l } from "react-aria";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./clsx-
|
|
1
|
+
import { t as e } from "./clsx-Di52oYUU.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import { OverlayArrow as t, Tooltip as n, TooltipTrigger as r } from "react-aria-components";
|
|
4
4
|
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
package/clear-button/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/clear-button-
|
|
1
|
+
import { t as e } from "../chunks/clear-button-D3I1X3yG.js";
|
|
2
2
|
export { e as ClearButton };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../chunks/color-scheme-switch-
|
|
1
|
+
import { n as e, t } from "../chunks/color-scheme-switch-DVZjdwc9.js";
|
|
2
2
|
export { e as ColorSchemeSwitch, t as ColorSchemeSwitchMenu };
|
package/combobox/ComboBox.d.ts
CHANGED
|
@@ -18,4 +18,4 @@ export interface ComboBoxProps<T extends object> extends Omit<AriaComboBoxProps<
|
|
|
18
18
|
popover?: InfoPopoverProps;
|
|
19
19
|
listBoxProps?: ListBoxProps<T>;
|
|
20
20
|
}
|
|
21
|
-
export declare function ComboBox<T extends object>({ label, description, errorMessage, children, items, className, errorPosition, size, popover, listBoxProps, ...props }: ComboBoxProps<T>): import(
|
|
21
|
+
export declare function ComboBox<T extends object>({ label, description, errorMessage, children, items, className, errorPosition, size, popover, listBoxProps, ...props }: ComboBoxProps<T>): import('react').JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { options, optionsWithSections } from '
|
|
2
|
+
import { options, optionsWithSections } from '@midas-ds/test-utils';
|
|
3
|
+
import { default as React } from 'react';
|
|
3
4
|
import { ComboBox } from './ComboBox';
|
|
4
5
|
type Item = (typeof options)[0];
|
|
5
6
|
type Section = (typeof optionsWithSections)[0];
|
|
@@ -24,7 +25,7 @@ declare const _default: {
|
|
|
24
25
|
render: (args: import('./ComboBox').ComboBoxProps<{
|
|
25
26
|
id: import('react-aria-components').Key;
|
|
26
27
|
name: string;
|
|
27
|
-
}>) =>
|
|
28
|
+
}>) => React.JSX.Element;
|
|
28
29
|
};
|
|
29
30
|
export default _default;
|
|
30
31
|
export declare const Primary: Story;
|
package/combobox/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/combobox-
|
|
1
|
+
import { t as e } from "../chunks/combobox-DIou4Z-d.js";
|
|
2
2
|
export { e as ComboBox };
|
|
@@ -3,4 +3,4 @@ import { FeedbackStatus } from './types';
|
|
|
3
3
|
export interface FeedbackStatusIconProps extends LucideProps {
|
|
4
4
|
status: FeedbackStatus;
|
|
5
5
|
}
|
|
6
|
-
export declare const FeedbackStatusIcon: ({ status, "aria-label": ariaLabel, size, ...rest }: FeedbackStatusIconProps) => import(
|
|
6
|
+
export declare const FeedbackStatusIcon: ({ status, "aria-label": ariaLabel, size, ...rest }: FeedbackStatusIconProps) => import('react').JSX.Element;
|
package/date-field/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "../chunks/date-field-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../chunks/date-field-BF2f9bSf.js";
|
|
2
2
|
export { e as DateField, t as DateInput, r as DateInputDivider, n as DateSegment };
|
|
@@ -4,5 +4,5 @@ import * as React from 'react';
|
|
|
4
4
|
interface DatePickerInputFieldProps extends Pick<DatePickerProps<DateValue>, 'isDisabled' | 'isInvalid' | 'isReadOnly' | 'size' | 'isClearable'> {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
}
|
|
7
|
-
export declare const DatePickerInputField: ({ children, isDisabled, isInvalid, isReadOnly, size, isClearable, }: DatePickerInputFieldProps) =>
|
|
7
|
+
export declare const DatePickerInputField: ({ children, isDisabled, isInvalid, isReadOnly, size, isClearable, }: DatePickerInputFieldProps) => React.JSX.Element;
|
|
8
8
|
export {};
|
package/date-picker/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../chunks/date-picker-
|
|
1
|
+
import { n as e, t } from "../chunks/date-picker-BomOO1LI.js";
|
|
2
2
|
export { e as DatePicker, t as DateRangePicker };
|
package/drop-zone/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/drop-zone-
|
|
1
|
+
import { t as e } from "../chunks/drop-zone-DH3ZyHsr.js";
|
|
2
2
|
export { e as DropZone };
|
package/field-error/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/field-error-
|
|
1
|
+
import { t as e } from "../chunks/field-error-LtNtEKDp.js";
|
|
2
2
|
export { e as FieldError };
|
package/file-list/FileList.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
export type FileListProps = HTMLAttributes<HTMLUListElement>;
|
|
3
|
-
export declare const FileList: ({ className, children, ...props }: FileListProps) => import(
|
|
3
|
+
export declare const FileList: ({ className, children, ...props }: FileListProps) => import('react').JSX.Element;
|
|
@@ -2,16 +2,16 @@ import { StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import { FileList } from './FileList';
|
|
3
3
|
type Story = StoryObj<typeof FileList>;
|
|
4
4
|
declare const _default: {
|
|
5
|
-
component: ({ className, children, ...props }: import('./FileList').FileListProps) => import(
|
|
5
|
+
component: ({ className, children, ...props }: import('./FileList').FileListProps) => import('react').JSX.Element;
|
|
6
6
|
subcomponents: {
|
|
7
|
-
FileListItem: ({ fileName, fileSize, onDelete, className, }: import('./FileListItem').FileListItemProps) => import(
|
|
7
|
+
FileListItem: ({ fileName, fileSize, onDelete, className, }: import('./FileListItem').FileListItemProps) => import('react').JSX.Element;
|
|
8
8
|
};
|
|
9
9
|
title: string;
|
|
10
10
|
tags: string[];
|
|
11
11
|
args: {
|
|
12
12
|
'aria-label': string;
|
|
13
13
|
};
|
|
14
|
-
render: (args: import('./FileList').FileListProps) => import(
|
|
14
|
+
render: (args: import('./FileList').FileListProps) => import('react').JSX.Element;
|
|
15
15
|
};
|
|
16
16
|
export default _default;
|
|
17
17
|
export declare const Default: Story;
|
|
@@ -4,4 +4,4 @@ export interface FileListItemProps {
|
|
|
4
4
|
onDelete?: () => void;
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const FileListItem: ({ fileName, fileSize, onDelete, className, }: FileListItemProps) => import(
|
|
7
|
+
export declare const FileListItem: ({ fileName, fileSize, onDelete, className, }: FileListItemProps) => import('react').JSX.Element;
|
package/file-list/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../chunks/file-list-
|
|
1
|
+
import { n as e, t } from "../chunks/file-list-TmEuO1fJ.js";
|
|
2
2
|
export { e as FileList, t as FileListItem };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { FileTriggerProps } from 'react-aria-components';
|
|
2
|
-
export declare const FileTrigger: (props: FileTriggerProps) => import(
|
|
2
|
+
export declare const FileTrigger: (props: FileTriggerProps) => import('react').JSX.Element;
|
package/grid/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../chunks/grid-
|
|
1
|
+
import { n as e, t } from "../chunks/grid-Cn_8RSvj.js";
|
|
2
2
|
export { e as Grid, t as GridItem };
|
package/heading/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/heading-
|
|
1
|
+
import { t as e } from "../chunks/heading-BEl_z-5T.js";
|
|
2
2
|
export { e as Heading };
|