@midas-ds/components 17.29.0 → 17.30.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 +10 -0
- package/accordion/index.js +1 -1
- package/button/Button.stories.d.ts +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +1 -1
- package/card/index.js +1 -1
- package/checkbox/index.js +1 -1
- package/chunks/FeedbackStatusIcon-DvMDGBGL.js +36 -0
- package/chunks/{accordion-DIVTJU3O.js → accordion-BzmYSOS3.js} +23 -23
- package/chunks/{button-CenXTGXL.js → button-C-WkFek9.js} +1 -1
- package/chunks/calendar-Bt1FLxqr.js +107 -0
- package/chunks/card-CdH2UMUW.js +103 -0
- package/chunks/checkbox-DiFQy3MS.js +106 -0
- package/chunks/clear-button-Bv0YGBNG.js +17 -0
- package/chunks/color-scheme-switch-0axiBsna.js +160 -0
- package/chunks/{combobox-DIou4Z-d.js → combobox-DkZbA3o4.js} +24 -24
- package/chunks/{date-field-BF2f9bSf.js → date-field-CPpWZqws.js} +2 -2
- package/chunks/date-picker-DQ7vCG5-.js +142 -0
- package/chunks/file-list-D8Zc1aYS.js +139 -0
- package/chunks/{info-banner-osR4e6nB.js → info-banner-BVKtmVKN.js} +14 -14
- package/chunks/label-Dw5p84T2.js +50 -0
- package/chunks/layout-CUAjEEuH.js +378 -0
- package/chunks/link-DHu1cTmz.js +44 -0
- package/chunks/link-button-DYg_0p4Y.js +44 -0
- package/chunks/{list-box-BN_MSiOD.js → list-box-DmEoMvX1.js} +1 -1
- package/chunks/menu-CP0Xvmx0.js +48 -0
- package/chunks/modal-B_uSoXZM.js +66 -0
- package/chunks/{progress-bar-CknF4qAm.js → progress-bar-BfFxpqUv.js} +1 -1
- package/chunks/{radio-BD1EuxSa.js → radio-_z6ObjYx.js} +1 -1
- package/chunks/search-field-Cp_HHDl4.js +91 -0
- package/chunks/select-Wy6NakdH.js +176 -0
- package/chunks/spinner-COGZlDJB.js +29 -0
- package/chunks/table-O_Y45Sb7.js +84 -0
- package/chunks/tag-RjuYlFZI.js +78 -0
- package/chunks/{textfield-BSvCsAyC.js → textfield-Bu0Hg2pJ.js} +2 -2
- package/chunks/{time-field-CmjGBQph.js → time-field-Cnp-dYhm.js} +3 -3
- package/chunks/{toast-gJgjitZF.js → toast-Dg3fVjSS.js} +20 -20
- 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/index.js +49 -48
- 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/menu/index.js +1 -1
- package/modal/index.js +1 -1
- package/package.json +3 -2
- 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/chunks/FeedbackStatusIcon-DRI7WrSU.js +0 -54
- package/chunks/arrow-right-Db_H9KjE.js +0 -10
- package/chunks/calendar-Bl_obez5.js +0 -111
- package/chunks/card-zIYA-SQh.js +0 -103
- package/chunks/check-DV00NPU0.js +0 -7
- package/chunks/checkbox-Bqd8B58G.js +0 -110
- package/chunks/chevron-down-CP7nEDei.js +0 -7
- package/chunks/chevron-right-DwqboCdU.js +0 -7
- package/chunks/clear-button-D3I1X3yG.js +0 -17
- package/chunks/color-scheme-switch-DVZjdwc9.js +0 -203
- package/chunks/createLucideIcon-BgluSHFG.js +0 -39
- package/chunks/date-picker-DZivTUB_.js +0 -187
- package/chunks/file-list-B4vG_egr.js +0 -161
- package/chunks/info-jCyacVsy.js +0 -19
- package/chunks/label-LWlgvAwz.js +0 -50
- package/chunks/layout-Db5um0f7.js +0 -426
- package/chunks/link-BAgs4RwY.js +0 -59
- package/chunks/link-button-BuPMEGUj.js +0 -52
- package/chunks/menu-aT2IR0tO.js +0 -49
- package/chunks/modal-C-UsxdO0.js +0 -66
- package/chunks/search-field-GNTRFpzf.js +0 -100
- package/chunks/select-oLCNpryY.js +0 -177
- package/chunks/spinner-LdHPVms_.js +0 -32
- package/chunks/square-arrow-out-up-right-DkgXD7hj.js +0 -17
- package/chunks/table-CmNWoAYO.js +0 -150
- package/chunks/tag-BIcqtf7b.js +0 -78
- package/chunks/x-BJAOO5a5.js +0 -10
package/chunks/table-CmNWoAYO.js
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { t as e } from "./clsx-Di52oYUU.js";
|
|
3
|
-
import { t } from "./createLucideIcon-BgluSHFG.js";
|
|
4
|
-
import { n } from "./checkbox-Bqd8B58G.js";
|
|
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
|
-
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
7
|
-
import '../assets/table.css';var h = t("arrow-down", [["path", {
|
|
8
|
-
d: "M12 5v14",
|
|
9
|
-
key: "s699le"
|
|
10
|
-
}], ["path", {
|
|
11
|
-
d: "m19 12-7 7-7-7",
|
|
12
|
-
key: "1idqje"
|
|
13
|
-
}]]), g = t("arrow-up-down", [
|
|
14
|
-
["path", {
|
|
15
|
-
d: "m21 16-4 4-4-4",
|
|
16
|
-
key: "f6ql7i"
|
|
17
|
-
}],
|
|
18
|
-
["path", {
|
|
19
|
-
d: "M17 20V4",
|
|
20
|
-
key: "1ejh1v"
|
|
21
|
-
}],
|
|
22
|
-
["path", {
|
|
23
|
-
d: "m3 8 4-4 4 4",
|
|
24
|
-
key: "11wl7u"
|
|
25
|
-
}],
|
|
26
|
-
["path", {
|
|
27
|
-
d: "M7 4v16",
|
|
28
|
-
key: "1glfcx"
|
|
29
|
-
}]
|
|
30
|
-
]), _ = t("arrow-up", [["path", {
|
|
31
|
-
d: "m5 12 7-7 7 7",
|
|
32
|
-
key: "hav0vg"
|
|
33
|
-
}], ["path", {
|
|
34
|
-
d: "M12 19V5",
|
|
35
|
-
key: "x0mq9r"
|
|
36
|
-
}]]), v = t("grip-vertical", [
|
|
37
|
-
["circle", {
|
|
38
|
-
cx: "9",
|
|
39
|
-
cy: "12",
|
|
40
|
-
r: "1",
|
|
41
|
-
key: "1vctgf"
|
|
42
|
-
}],
|
|
43
|
-
["circle", {
|
|
44
|
-
cx: "9",
|
|
45
|
-
cy: "5",
|
|
46
|
-
r: "1",
|
|
47
|
-
key: "hp0tcf"
|
|
48
|
-
}],
|
|
49
|
-
["circle", {
|
|
50
|
-
cx: "9",
|
|
51
|
-
cy: "19",
|
|
52
|
-
r: "1",
|
|
53
|
-
key: "fkjjf6"
|
|
54
|
-
}],
|
|
55
|
-
["circle", {
|
|
56
|
-
cx: "15",
|
|
57
|
-
cy: "12",
|
|
58
|
-
r: "1",
|
|
59
|
-
key: "1tmaij"
|
|
60
|
-
}],
|
|
61
|
-
["circle", {
|
|
62
|
-
cx: "15",
|
|
63
|
-
cy: "5",
|
|
64
|
-
r: "1",
|
|
65
|
-
key: "19l28e"
|
|
66
|
-
}],
|
|
67
|
-
["circle", {
|
|
68
|
-
cx: "15",
|
|
69
|
-
cy: "19",
|
|
70
|
-
r: "1",
|
|
71
|
-
key: "f4zoj3"
|
|
72
|
-
}]
|
|
73
|
-
]), y = {
|
|
74
|
-
table: "_table_1lyes_1",
|
|
75
|
-
tableHeader: "_tableHeader_1lyes_11",
|
|
76
|
-
column: "_column_1lyes_12",
|
|
77
|
-
sortIndicator: "_sortIndicator_1lyes_29",
|
|
78
|
-
sortIconNeutral: "_sortIconNeutral_1lyes_37",
|
|
79
|
-
selection: "_selection_1lyes_56",
|
|
80
|
-
row: "_row_1lyes_62",
|
|
81
|
-
cell: "_cell_1lyes_81",
|
|
82
|
-
narrow: "_narrow_1lyes_98",
|
|
83
|
-
medium: "_medium_1lyes_121",
|
|
84
|
-
striped: "_striped_1lyes_132"
|
|
85
|
-
}, b = ({ size: t = "large", striped: n = !1, className: r, ...i }) => /* @__PURE__ */ p(c, {
|
|
86
|
-
className: e(y.table, r, {
|
|
87
|
-
[y.medium]: t === "medium",
|
|
88
|
-
[y.striped]: n
|
|
89
|
-
}),
|
|
90
|
-
...i
|
|
91
|
-
}), x = ({ columns: t, children: r, className: i }) => {
|
|
92
|
-
let { selectionBehavior: o, selectionMode: s, allowsDragging: c } = d();
|
|
93
|
-
return /* @__PURE__ */ m(u, {
|
|
94
|
-
className: e(i, y.tableHeader),
|
|
95
|
-
children: [
|
|
96
|
-
c && /* @__PURE__ */ p(C, {}),
|
|
97
|
-
o === "toggle" && /* @__PURE__ */ p(C, {
|
|
98
|
-
width: 50,
|
|
99
|
-
children: s === "multiple" && /* @__PURE__ */ p(n, {
|
|
100
|
-
className: y.selection,
|
|
101
|
-
slot: "selection"
|
|
102
|
-
})
|
|
103
|
-
}),
|
|
104
|
-
/* @__PURE__ */ p(a, {
|
|
105
|
-
items: t,
|
|
106
|
-
children: r
|
|
107
|
-
})
|
|
108
|
-
]
|
|
109
|
-
});
|
|
110
|
-
}, S = ({ id: t, columns: i, children: o, className: c, ...l }) => {
|
|
111
|
-
let { selectionBehavior: u, allowsDragging: f } = d();
|
|
112
|
-
return /* @__PURE__ */ m(s, {
|
|
113
|
-
id: t,
|
|
114
|
-
className: e(c, y.row),
|
|
115
|
-
...l,
|
|
116
|
-
children: [
|
|
117
|
-
f && /* @__PURE__ */ p(w, { children: /* @__PURE__ */ p(r, {
|
|
118
|
-
slot: "drag",
|
|
119
|
-
children: /* @__PURE__ */ p(v, { size: 20 })
|
|
120
|
-
}) }),
|
|
121
|
-
u === "toggle" && /* @__PURE__ */ p(w, { children: /* @__PURE__ */ p(n, {
|
|
122
|
-
className: y.selection,
|
|
123
|
-
slot: "selection"
|
|
124
|
-
}) }),
|
|
125
|
-
/* @__PURE__ */ p(a, {
|
|
126
|
-
items: i,
|
|
127
|
-
children: o
|
|
128
|
-
})
|
|
129
|
-
]
|
|
130
|
-
});
|
|
131
|
-
}, C = ({ children: t, className: n, ...r }) => /* @__PURE__ */ p(o, {
|
|
132
|
-
className: e(n, y.column),
|
|
133
|
-
...r,
|
|
134
|
-
children: ({ allowsSorting: e, sortDirection: n }) => /* @__PURE__ */ m(f, { children: [t, e && /* @__PURE__ */ p("span", {
|
|
135
|
-
"aria-hidden": "true",
|
|
136
|
-
className: y.sortIndicator,
|
|
137
|
-
children: n === "ascending" ? /* @__PURE__ */ p(_, { size: 16 }) : n === "descending" ? /* @__PURE__ */ p(h, { size: 16 }) : /* @__PURE__ */ p(g, {
|
|
138
|
-
size: 16,
|
|
139
|
-
className: y.sortIconNeutral
|
|
140
|
-
})
|
|
141
|
-
})] })
|
|
142
|
-
}), w = ({ className: t, ...n }) => /* @__PURE__ */ p(i, {
|
|
143
|
-
className: e(t, y.cell),
|
|
144
|
-
...n
|
|
145
|
-
}), T = ({ className: t, ...n }) => /* @__PURE__ */ p(l, {
|
|
146
|
-
className: e(t, y.tableBody),
|
|
147
|
-
...n
|
|
148
|
-
});
|
|
149
|
-
//#endregion
|
|
150
|
-
export { T as a, b as i, C as n, x as o, S as r, w as t };
|
package/chunks/tag-BIcqtf7b.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./clsx-Di52oYUU.js";
|
|
2
|
-
import { t } from "./x-BJAOO5a5.js";
|
|
3
|
-
import { n } from "./button-CenXTGXL.js";
|
|
4
|
-
import { Children as r, forwardRef as i, isValidElement as a } from "react";
|
|
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
|
-
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
7
|
-
import '../assets/tag.css';var g = {
|
|
8
|
-
button: "_button_14ocl_1",
|
|
9
|
-
tag: "_tag_14ocl_8",
|
|
10
|
-
sky: "_sky_14ocl_21",
|
|
11
|
-
blue: "_blue_14ocl_22",
|
|
12
|
-
mint: "_mint_14ocl_27",
|
|
13
|
-
green: "_green_14ocl_28",
|
|
14
|
-
cream: "_cream_14ocl_33",
|
|
15
|
-
yellow: "_yellow_14ocl_34",
|
|
16
|
-
teal: "_teal_14ocl_39",
|
|
17
|
-
lagoon: "_lagoon_14ocl_44",
|
|
18
|
-
lagoonblue: "_lagoonblue_14ocl_45",
|
|
19
|
-
lavender: "_lavender_14ocl_50",
|
|
20
|
-
purple: "_purple_14ocl_51",
|
|
21
|
-
peach: "_peach_14ocl_56",
|
|
22
|
-
orange: "_orange_14ocl_57",
|
|
23
|
-
pippin: "_pippin_14ocl_62",
|
|
24
|
-
red: "_red_14ocl_63",
|
|
25
|
-
tagText: "_tagText_14ocl_90",
|
|
26
|
-
dismissable: "_dismissable_14ocl_104"
|
|
27
|
-
}, _ = ({ className: r, color: i, dismissable: a = !1, isDismissable: s, type: c, ...l }) => {
|
|
28
|
-
let u = s || s === void 0 && a;
|
|
29
|
-
return /* @__PURE__ */ m(o, {
|
|
30
|
-
className: e(g.tag, u && g.dismissable, {
|
|
31
|
-
[g.sky]: i === "sky",
|
|
32
|
-
[g.blue]: i === "blue" || !i && c === "info",
|
|
33
|
-
[g.mint]: i === "mint",
|
|
34
|
-
[g.green]: i === "green" || !i && c === "success",
|
|
35
|
-
[g.cream]: i === "cream",
|
|
36
|
-
[g.yellow]: i === "yellow" || !i && c === "important",
|
|
37
|
-
[g.teal]: i === "teal",
|
|
38
|
-
[g.lagoon]: i === "lagoon",
|
|
39
|
-
[g.lagoonblue]: i === "lagoonblue",
|
|
40
|
-
[g.lavender]: i === "lavender",
|
|
41
|
-
[g.purple]: i === "purple",
|
|
42
|
-
[g.peach]: i === "peach",
|
|
43
|
-
[g.orange]: i === "orange",
|
|
44
|
-
[g.pippin]: i === "pippin",
|
|
45
|
-
[g.red]: i === "red" || !i && c === "warning"
|
|
46
|
-
}, r),
|
|
47
|
-
...l,
|
|
48
|
-
textValue: l.textValue || (typeof l.children == "string" ? l.children : void 0),
|
|
49
|
-
children: d(l.children, (e) => /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("div", {
|
|
50
|
-
className: g.tagText,
|
|
51
|
-
children: e
|
|
52
|
-
}), u && /* @__PURE__ */ m(n, {
|
|
53
|
-
variant: "icon",
|
|
54
|
-
size: "medium",
|
|
55
|
-
className: g.button,
|
|
56
|
-
slot: "remove",
|
|
57
|
-
children: /* @__PURE__ */ m(t, { size: 20 })
|
|
58
|
-
})] }))
|
|
59
|
-
});
|
|
60
|
-
}, v = { tagList: "_tagList_17pz2_1" }, y = i((t, n) => {
|
|
61
|
-
let [{ className: r, ...i }, a] = f(t, n, u);
|
|
62
|
-
return /* @__PURE__ */ m(l, {
|
|
63
|
-
className: e(r, v.tagList),
|
|
64
|
-
ref: a,
|
|
65
|
-
...i
|
|
66
|
-
});
|
|
67
|
-
}), b = i((t, n) => {
|
|
68
|
-
let [{ className: i, children: o, ...l }, u] = f(t, n, c), d = r.toArray(o).filter(a).find((e) => e.type === y);
|
|
69
|
-
return !d && process.env.NODE_ENV === "development" && console.warn("Using a TagGroup without providing a TagList component is deprecated since v17.0.0, see: https://designsystem.migrationsverket.se/components/tag/"), /* @__PURE__ */ m(s, {
|
|
70
|
-
className: e(i),
|
|
71
|
-
ref: u,
|
|
72
|
-
...l,
|
|
73
|
-
children: d ? o : /* @__PURE__ */ m(y, { children: o })
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
b.displayName = "TagGroup";
|
|
77
|
-
//#endregion
|
|
78
|
-
export { y as n, _ as r, b as t };
|