@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
package/chunks/link-CyjmtEZP.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { t as e } from "./clsx-BtGY0yFD.js";
|
|
3
|
-
import { t } from "./useLocalizedStringFormatter-DU97U9ZX.js";
|
|
4
|
-
import { Link as n, RouterProvider as r } from "react-aria-components";
|
|
5
|
-
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
-
import { ArrowDownToLine as s, ArrowRight as c, SquareArrowOutUpRight as l } from "lucide-react";
|
|
7
|
-
import { VisuallyHidden as u } from "react-aria";
|
|
8
|
-
import '../assets/link.css';var d = {
|
|
9
|
-
link: "_link_duep2_1",
|
|
10
|
-
icon: "_icon_duep2_53",
|
|
11
|
-
standalone: "_standalone_duep2_57",
|
|
12
|
-
stretched: "_stretched_duep2_76"
|
|
13
|
-
}, f = {
|
|
14
|
-
en: {
|
|
15
|
-
opensInNewTab: "Opens in new tab",
|
|
16
|
-
downloadsFile: "Downloads file"
|
|
17
|
-
},
|
|
18
|
-
sv: {
|
|
19
|
-
opensInNewTab: "Öppnas i ny flik",
|
|
20
|
-
downloadsFile: "Hämtar fil"
|
|
21
|
-
}
|
|
22
|
-
}, p = ({ children: r, standalone: p, target: h, stretched: g, download: _, icon: v, className: y, as: b, ...x }) => {
|
|
23
|
-
let S = b || n, C = t(f), w = v ? { icon: v } : _ ? {
|
|
24
|
-
icon: s,
|
|
25
|
-
label: C.format("downloadsFile")
|
|
26
|
-
} : h === "_blank" ? {
|
|
27
|
-
icon: l,
|
|
28
|
-
label: C.format("opensInNewTab")
|
|
29
|
-
} : p ? { icon: c } : null;
|
|
30
|
-
return /* @__PURE__ */ o(S, {
|
|
31
|
-
className: e(d.link, p && d.standalone, g && d.stretched, y),
|
|
32
|
-
...x,
|
|
33
|
-
target: h,
|
|
34
|
-
download: _,
|
|
35
|
-
children: [r, w ? /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a(m, {
|
|
36
|
-
className: d.icon,
|
|
37
|
-
icon: w.icon,
|
|
38
|
-
size: 16,
|
|
39
|
-
"aria-hidden": !0
|
|
40
|
-
}), w.label && /* @__PURE__ */ a(u, { children: w.label })] }) : null]
|
|
41
|
-
});
|
|
42
|
-
}, m = ({ icon: e, ...t }) => /* @__PURE__ */ a(e, { ...t });
|
|
43
|
-
export { r as n, p as t };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { t as e } from "./clsx-BtGY0yFD.js";
|
|
3
|
-
import { t } from "./useLocalizedStringFormatter-DU97U9ZX.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import { Link as n, RouterProvider as r } from "react-aria-components";
|
|
6
|
-
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
|
-
import { ArrowLeft as o, ArrowRight as s, SquareArrowOutUpRight as c } from "lucide-react";
|
|
8
|
-
import { VisuallyHidden as l } from "react-aria";
|
|
9
|
-
import '../assets/link-button.css';var u = {
|
|
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
|
-
}, d = {
|
|
21
|
-
en: { opensInNewTab: "Opens in new tab" },
|
|
22
|
-
sv: { opensInNewTab: "Öppnas i ny flik" }
|
|
23
|
-
}, f = ({ children: r, variant: f, fullwidth: m, icon: h, iconPlacement: g, className: _, as: v, size: y = "large", ...b }) => {
|
|
24
|
-
let x = v || n, S = t(d), C = h ? { icon: h } : b.target === "_blank" ? {
|
|
25
|
-
icon: c,
|
|
26
|
-
label: S.format("opensInNewTab")
|
|
27
|
-
} : g === "left" ? { icon: o } : { icon: s };
|
|
28
|
-
return /* @__PURE__ */ a(x, {
|
|
29
|
-
className: e(u.linkButton, f === "primary" && u.primary, f === "secondary" && u.secondary, f === "tertiary" && u.tertiary, f === "danger" && u.danger, f === "icon" && u.iconBtn, y === "medium" && u.medium, m && u.fullwidth, g === "left" && u.iconLeft, _),
|
|
30
|
-
...b,
|
|
31
|
-
children: [
|
|
32
|
-
r,
|
|
33
|
-
/* @__PURE__ */ i(p, {
|
|
34
|
-
className: u.icon,
|
|
35
|
-
icon: C.icon,
|
|
36
|
-
size: 20,
|
|
37
|
-
"aria-hidden": !0
|
|
38
|
-
}),
|
|
39
|
-
C.label && /* @__PURE__ */ i(l, { children: C.label })
|
|
40
|
-
]
|
|
41
|
-
});
|
|
42
|
-
}, p = ({ icon: e, ...t }) => /* @__PURE__ */ i(e, { ...t });
|
|
43
|
-
export { r as n, f as t };
|
package/chunks/menu-DVrvuxQk.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./clsx-BtGY0yFD.js";
|
|
2
|
-
import { Header as t, Menu as n, MenuItem as r, MenuSection as i, MenuTrigger as a, Popover as o, Separator as s } from "react-aria-components";
|
|
3
|
-
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
4
|
-
import { Check as d, ChevronRight as f } from "lucide-react";
|
|
5
|
-
import '../assets/menu.css';var p = {
|
|
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
|
-
}, m = ({ className: t, size: r = "large", ...i }) => /* @__PURE__ */ l(n, {
|
|
16
|
-
className: e(t, p.menu, r === "medium" && p.medium),
|
|
17
|
-
...i
|
|
18
|
-
}), h = ({ className: n, ...r }) => /* @__PURE__ */ l(t, {
|
|
19
|
-
className: e(n, p.menuSectionHeader),
|
|
20
|
-
...r
|
|
21
|
-
}), g = (t) => /* @__PURE__ */ l(r, {
|
|
22
|
-
...t,
|
|
23
|
-
textValue: t.textValue || (typeof t.children == "string" ? t.children : void 0),
|
|
24
|
-
className: e(p.menuItem, t.className),
|
|
25
|
-
children: (e) => {
|
|
26
|
-
let { children: n } = t, { selectionMode: r, isSelected: i, hasSubmenu: a } = e;
|
|
27
|
-
return /* @__PURE__ */ u(c, { children: [
|
|
28
|
-
r !== "none" && /* @__PURE__ */ l(d, {
|
|
29
|
-
size: 16,
|
|
30
|
-
className: p.checkMark,
|
|
31
|
-
"data-selected": i || void 0
|
|
32
|
-
}),
|
|
33
|
-
/* @__PURE__ */ l("div", {
|
|
34
|
-
className: p.mainContent,
|
|
35
|
-
children: typeof n == "function" ? n(e) : n
|
|
36
|
-
}),
|
|
37
|
-
a && /* @__PURE__ */ l(f, { size: 20 })
|
|
38
|
-
] });
|
|
39
|
-
}
|
|
40
|
-
}), _ = ({ className: t, ...n }) => /* @__PURE__ */ l(o, {
|
|
41
|
-
className: e(t, p.menuPopover),
|
|
42
|
-
offset: 4,
|
|
43
|
-
...n
|
|
44
|
-
}), v = ({ className: t, ...n }) => /* @__PURE__ */ l(i, {
|
|
45
|
-
className: e(t, p.menuSection),
|
|
46
|
-
...n
|
|
47
|
-
}), y = ({ className: t, ...n }) => /* @__PURE__ */ l(s, {
|
|
48
|
-
className: e(t, p.separator),
|
|
49
|
-
...n
|
|
50
|
-
});
|
|
51
|
-
export { h as a, g as i, v as n, m as o, _ as r, a as s, y as t };
|