@midas-ds/components 17.38.2 → 17.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/accordion/index.js +1 -1
- package/aria/index.d.ts +3 -1
- package/aria/index.js +1 -2
- package/assets/table.css +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +1 -1
- package/checkbox/index.js +1 -1
- package/chunks/{FeedbackStatusIcon-DX5ndhm3.js → FeedbackStatusIcon-UfooOyeI.js} +1 -1
- package/chunks/{accordion-DjL3rngW.js → accordion-PJZYLZCe.js} +2 -2
- package/chunks/aria-BikUfLIG.js +6 -0
- package/chunks/{button-Q51P-Ssk.js → button-Bz66bIrr.js} +2 -2
- package/chunks/{calendar-DyILzX_V.js → calendar-D0aiCkAv.js} +3 -3
- package/chunks/{checkbox-MN5mhbFU.js → checkbox-SsXhAn-g.js} +2 -2
- package/chunks/{clear-button-BYiazZ-1.js → clear-button-DvMuUjDR.js} +1 -1
- package/chunks/{color-scheme-switch-BlGoqk4H.js → color-scheme-switch-2oSS52vq.js} +4 -3
- package/chunks/{combobox-D2wPjTS5.js → combobox-Ccqxupn2.js} +3 -3
- package/chunks/{date-field-Afo_uDbQ.js → date-field-DKmbbOGo.js} +3 -3
- package/chunks/{date-picker-jH3-jQoL.js → date-picker-CAtF7M_p.js} +6 -6
- package/chunks/{file-list-BvBSJyRQ.js → file-list-Bg8-wkyR.js} +4 -4
- package/chunks/{file-picker-C8JWsO9f.js → file-picker-C05TDsQS.js} +1 -1
- package/chunks/{info-banner-CkXe0Xd8.js → info-banner-BBpsG8F_.js} +3 -3
- package/chunks/{label-DCpy2Iwh.js → label-C-Iks5zm.js} +3 -3
- package/chunks/{layout-CYcW4Dsm.js → layout-DGIzTNAu.js} +3 -3
- package/chunks/link-CegkRPqz.js +43 -0
- package/chunks/link-button-BRV_Hy7v.js +43 -0
- package/chunks/{list-box-YaPiKCld.js → list-box-DfpVnLLk.js} +3 -3
- package/chunks/{logo-CBGOnROk.js → logo-DUlLYUV2.js} +1 -1
- package/chunks/menu-CHZ0d9-S.js +51 -0
- package/chunks/{modal-BfWHExGd.js → modal-E4kV_R5n.js} +38 -38
- package/chunks/{progress-bar-XMAH7KIq.js → progress-bar-yFa08Xfd.js} +1 -1
- package/chunks/{radio-BXjMFwia.js → radio-DbIUs2iU.js} +1 -1
- package/chunks/{search-field-mQvQC_fC.js → search-field-D--4cgzH.js} +3 -3
- package/chunks/{select-B_o3hWvM.js → select-DLoIzTsv.js} +5 -5
- package/chunks/{spinner-V6QnHHAH.js → spinner-D3-NXLkB.js} +1 -1
- package/chunks/table-DuzCUPCX.js +95 -0
- package/chunks/{tag-DO8N54-r.js → tag-BpnVl9_M.js} +1 -1
- package/chunks/{textfield-O1kNTcwC.js → textfield-BuJeJV1g.js} +3 -3
- package/chunks/{time-field-Dte4G0is.js → time-field-Cr5P1aNn.js} +4 -4
- package/chunks/{toast-DhXnpJRF.js → toast-BgrlaMnw.js} +2 -2
- package/chunks/{useLocalizedStringFormatter-DU97U9ZX.js → useLocalizedStringFormatter-BFwXcMGl.js} +1 -1
- package/clear-button/index.js +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.js +1 -1
- package/date-field/index.js +1 -1
- package/date-picker/index.js +1 -1
- package/file-list/index.js +1 -1
- package/file-picker/index.js +1 -1
- package/index.d.ts +1 -1
- package/index.js +53 -53
- package/info-banner/index.js +1 -1
- package/label/index.js +1 -1
- package/layout/index.js +1 -1
- package/link/Link.d.ts +2 -2
- package/link/index.js +3 -1
- package/link-button/LinkButton.d.ts +2 -2
- package/link-button/index.js +3 -1
- package/list-box/index.js +1 -1
- package/logo/index.js +1 -1
- package/menu/Menu.d.ts +3 -2
- package/menu/index.js +3 -1
- package/modal/Modal.d.ts +1 -2
- package/modal/index.js +3 -1
- package/package.json +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.js +1 -1
- package/select/index.js +1 -1
- package/spinner/index.js +1 -1
- package/table/index.js +1 -1
- package/tag/index.js +1 -1
- package/textfield/index.js +1 -1
- package/time-field/index.js +1 -1
- package/toast/index.js +1 -1
- package/utils/childrenSource.d.ts +19 -0
- package/utils/withDisplayName.d.ts +13 -0
- package/chunks/link-CyjmtEZP.js +0 -43
- package/chunks/link-button-D6t-8zQQ.js +0 -43
- package/chunks/menu-DVrvuxQk.js +0 -51
- package/chunks/table-B4-N2P6X.js +0 -84
|
@@ -1,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 };
|
package/chunks/table-B4-N2P6X.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { Collection as e } from "../aria/index.js";
|
|
3
|
-
import { n as t } from "./checkbox-MN5mhbFU.js";
|
|
4
|
-
import { t as n } from "./clsx-BtGY0yFD.js";
|
|
5
|
-
import { Button as r, Cell as i, Column as a, Row as o, Table as s, TableBody as c, TableHeader as l, useTableOptions as u } from "react-aria-components";
|
|
6
|
-
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
7
|
-
import { ArrowDown as m, ArrowUp as h, ArrowUpDown as g, GripVertical as _ } from "lucide-react";
|
|
8
|
-
import '../assets/table.css';var v = {
|
|
9
|
-
table: "_table_1lyes_1",
|
|
10
|
-
tableHeader: "_tableHeader_1lyes_11",
|
|
11
|
-
column: "_column_1lyes_12",
|
|
12
|
-
sortIndicator: "_sortIndicator_1lyes_29",
|
|
13
|
-
sortIconNeutral: "_sortIconNeutral_1lyes_37",
|
|
14
|
-
selection: "_selection_1lyes_56",
|
|
15
|
-
row: "_row_1lyes_62",
|
|
16
|
-
cell: "_cell_1lyes_81",
|
|
17
|
-
narrow: "_narrow_1lyes_98",
|
|
18
|
-
medium: "_medium_1lyes_121",
|
|
19
|
-
striped: "_striped_1lyes_132"
|
|
20
|
-
}, y = ({ size: e = "large", striped: t = !1, className: r, ...i }) => /* @__PURE__ */ f(s, {
|
|
21
|
-
className: n(v.table, r, {
|
|
22
|
-
[v.medium]: e === "medium",
|
|
23
|
-
[v.striped]: t
|
|
24
|
-
}),
|
|
25
|
-
...i
|
|
26
|
-
}), b = ({ columns: r, children: i, className: a }) => {
|
|
27
|
-
let { selectionBehavior: o, selectionMode: s, allowsDragging: c } = u();
|
|
28
|
-
return /* @__PURE__ */ p(l, {
|
|
29
|
-
className: n(a, v.tableHeader),
|
|
30
|
-
children: [
|
|
31
|
-
c && /* @__PURE__ */ f(S, {}),
|
|
32
|
-
o === "toggle" && /* @__PURE__ */ f(S, {
|
|
33
|
-
width: 50,
|
|
34
|
-
children: s === "multiple" && /* @__PURE__ */ f(t, {
|
|
35
|
-
className: v.selection,
|
|
36
|
-
slot: "selection"
|
|
37
|
-
})
|
|
38
|
-
}),
|
|
39
|
-
/* @__PURE__ */ f(e, {
|
|
40
|
-
items: r,
|
|
41
|
-
children: i
|
|
42
|
-
})
|
|
43
|
-
]
|
|
44
|
-
});
|
|
45
|
-
}, x = ({ id: i, columns: a, children: s, className: c, ...l }) => {
|
|
46
|
-
let { selectionBehavior: d, allowsDragging: m } = u();
|
|
47
|
-
return /* @__PURE__ */ p(o, {
|
|
48
|
-
id: i,
|
|
49
|
-
className: n(c, v.row),
|
|
50
|
-
...l,
|
|
51
|
-
children: [
|
|
52
|
-
m && /* @__PURE__ */ f(C, { children: /* @__PURE__ */ f(r, {
|
|
53
|
-
slot: "drag",
|
|
54
|
-
children: /* @__PURE__ */ f(_, { size: 20 })
|
|
55
|
-
}) }),
|
|
56
|
-
d === "toggle" && /* @__PURE__ */ f(C, { children: /* @__PURE__ */ f(t, {
|
|
57
|
-
className: v.selection,
|
|
58
|
-
slot: "selection"
|
|
59
|
-
}) }),
|
|
60
|
-
/* @__PURE__ */ f(e, {
|
|
61
|
-
items: a,
|
|
62
|
-
children: s
|
|
63
|
-
})
|
|
64
|
-
]
|
|
65
|
-
});
|
|
66
|
-
}, S = ({ children: e, className: t, ...r }) => /* @__PURE__ */ f(a, {
|
|
67
|
-
className: n(t, v.column),
|
|
68
|
-
...r,
|
|
69
|
-
children: ({ allowsSorting: t, sortDirection: n }) => /* @__PURE__ */ p(d, { children: [e, t && /* @__PURE__ */ f("span", {
|
|
70
|
-
"aria-hidden": "true",
|
|
71
|
-
className: v.sortIndicator,
|
|
72
|
-
children: n === "ascending" ? /* @__PURE__ */ f(h, { size: 16 }) : n === "descending" ? /* @__PURE__ */ f(m, { size: 16 }) : /* @__PURE__ */ f(g, {
|
|
73
|
-
size: 16,
|
|
74
|
-
className: v.sortIconNeutral
|
|
75
|
-
})
|
|
76
|
-
})] })
|
|
77
|
-
}), C = ({ className: e, ...t }) => /* @__PURE__ */ f(i, {
|
|
78
|
-
className: n(e, v.cell),
|
|
79
|
-
...t
|
|
80
|
-
}), w = ({ className: e, ...t }) => /* @__PURE__ */ f(c, {
|
|
81
|
-
className: n(e, v.tableBody),
|
|
82
|
-
...t
|
|
83
|
-
});
|
|
84
|
-
export { w as a, y as i, S as n, b as o, x as r, C as t };
|