@midas-ds/components 17.11.4 → 17.11.5
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 +6 -0
- package/card/index.js +1 -1
- package/chunks/{Card-Br5b9Esq.js → Card-DSUs7WRL.js} +38 -39
- package/index.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/card/index.js
CHANGED
|
@@ -4,111 +4,110 @@ import * as s from "react";
|
|
|
4
4
|
import { H as m } from "./Heading-nfcRc2QF.js";
|
|
5
5
|
import { Button as _, Link as u } from "react-aria-components";
|
|
6
6
|
import { A as C } from "./arrow-right-BVcFGZmy.js";
|
|
7
|
-
import '../assets/Card.css';const A = "_card_iue4c_1", h = "_horizontal_iue4c_11", I = "_cardLink_iue4c_16",
|
|
7
|
+
import '../assets/Card.css';const A = "_card_iue4c_1", h = "_horizontal_iue4c_11", I = "_cardLink_iue4c_16", z = "_cardContent_iue4c_27", k = "_cardActions_iue4c_46", x = "_cardActionArea_iue4c_56", L = "_cardImage_iue4c_89", p = "_cardLinkIcon_iue4c_121", o = {
|
|
8
8
|
card: A,
|
|
9
9
|
horizontal: h,
|
|
10
10
|
cardLink: I,
|
|
11
|
-
cardContent:
|
|
12
|
-
cardActions:
|
|
13
|
-
cardActionArea:
|
|
14
|
-
cardImage:
|
|
15
|
-
cardLinkIcon:
|
|
11
|
+
cardContent: z,
|
|
12
|
+
cardActions: k,
|
|
13
|
+
cardActionArea: x,
|
|
14
|
+
cardImage: L,
|
|
15
|
+
cardLinkIcon: p
|
|
16
16
|
}, i = s.createContext({
|
|
17
17
|
horizontal: void 0,
|
|
18
18
|
titleId: void 0
|
|
19
19
|
}), y = ({
|
|
20
|
-
horizontal:
|
|
20
|
+
horizontal: t,
|
|
21
21
|
className: c,
|
|
22
|
-
children:
|
|
22
|
+
children: a,
|
|
23
23
|
...e
|
|
24
24
|
}) => {
|
|
25
25
|
const d = `card-title-${s.useId()}`;
|
|
26
|
-
return /* @__PURE__ */ n(i.Provider, { value: { horizontal:
|
|
26
|
+
return /* @__PURE__ */ n(i.Provider, { value: { horizontal: t, titleId: d }, children: /* @__PURE__ */ n(
|
|
27
27
|
"div",
|
|
28
28
|
{
|
|
29
29
|
...e,
|
|
30
30
|
className: r(
|
|
31
31
|
o.card,
|
|
32
|
-
|
|
32
|
+
t && o.horizontal,
|
|
33
33
|
c
|
|
34
34
|
),
|
|
35
|
-
children:
|
|
35
|
+
children: a
|
|
36
36
|
}
|
|
37
37
|
) });
|
|
38
38
|
}, H = ({
|
|
39
|
-
children:
|
|
39
|
+
children: t,
|
|
40
40
|
...c
|
|
41
41
|
}) => {
|
|
42
|
-
const { horizontal:
|
|
42
|
+
const { horizontal: a } = s.useContext(i);
|
|
43
43
|
return /* @__PURE__ */ n(
|
|
44
44
|
"div",
|
|
45
45
|
{
|
|
46
46
|
...c,
|
|
47
|
-
className: r(o.cardContent,
|
|
48
|
-
children:
|
|
47
|
+
className: r(o.cardContent, a && o.horizontal),
|
|
48
|
+
children: t
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
51
|
}, R = ({
|
|
52
|
-
elementType:
|
|
52
|
+
elementType: t = "h2",
|
|
53
53
|
children: c
|
|
54
54
|
}) => {
|
|
55
|
-
const { horizontal:
|
|
55
|
+
const { horizontal: a, titleId: e } = s.useContext(i);
|
|
56
56
|
return /* @__PURE__ */ n(
|
|
57
57
|
m,
|
|
58
58
|
{
|
|
59
|
-
level:
|
|
60
|
-
elementType:
|
|
61
|
-
|
|
62
|
-
className: r(o.cardTitle, t && o.horizontal),
|
|
59
|
+
level: 3,
|
|
60
|
+
elementType: t,
|
|
61
|
+
className: r(o.cardTitle, a && o.horizontal),
|
|
63
62
|
id: e,
|
|
64
63
|
children: c
|
|
65
64
|
}
|
|
66
65
|
);
|
|
67
66
|
}, T = ({
|
|
68
|
-
children:
|
|
67
|
+
children: t,
|
|
69
68
|
...c
|
|
70
69
|
}) => {
|
|
71
|
-
const { horizontal:
|
|
70
|
+
const { horizontal: a } = s.useContext(i);
|
|
72
71
|
return /* @__PURE__ */ n(
|
|
73
72
|
"div",
|
|
74
73
|
{
|
|
75
74
|
...c,
|
|
76
|
-
className: r(o.cardActions,
|
|
77
|
-
children:
|
|
75
|
+
className: r(o.cardActions, a && o.horizontal),
|
|
76
|
+
children: t
|
|
78
77
|
}
|
|
79
78
|
);
|
|
80
|
-
}, w = ({ children:
|
|
79
|
+
}, w = ({ children: t, className: c, ...a }) => {
|
|
81
80
|
const { titleId: e } = s.useContext(i);
|
|
82
81
|
return /* @__PURE__ */ n(
|
|
83
82
|
_,
|
|
84
83
|
{
|
|
85
|
-
...
|
|
84
|
+
...a,
|
|
86
85
|
"aria-labelledby": e,
|
|
87
86
|
className: r(o.cardActionArea, c),
|
|
88
|
-
children:
|
|
87
|
+
children: t
|
|
89
88
|
}
|
|
90
89
|
);
|
|
91
90
|
}, B = ({
|
|
92
|
-
as:
|
|
91
|
+
as: t = "img",
|
|
93
92
|
className: c,
|
|
94
|
-
...
|
|
93
|
+
...a
|
|
95
94
|
}) => /* @__PURE__ */ n(
|
|
96
|
-
|
|
95
|
+
t,
|
|
97
96
|
{
|
|
98
|
-
...
|
|
97
|
+
...a,
|
|
99
98
|
className: r(o.cardImage, c)
|
|
100
99
|
}
|
|
101
|
-
),
|
|
102
|
-
children:
|
|
100
|
+
), P = ({
|
|
101
|
+
children: t,
|
|
103
102
|
as: c,
|
|
104
|
-
...
|
|
103
|
+
...a
|
|
105
104
|
}) => /* @__PURE__ */ l(
|
|
106
105
|
c || u,
|
|
107
106
|
{
|
|
108
|
-
...
|
|
109
|
-
className: r(o.cardLink,
|
|
107
|
+
...a,
|
|
108
|
+
className: r(o.cardLink, a.className),
|
|
110
109
|
children: [
|
|
111
|
-
|
|
110
|
+
t,
|
|
112
111
|
/* @__PURE__ */ n(
|
|
113
112
|
C,
|
|
114
113
|
{
|
|
@@ -125,6 +124,6 @@ export {
|
|
|
125
124
|
T as b,
|
|
126
125
|
H as c,
|
|
127
126
|
B as d,
|
|
128
|
-
|
|
127
|
+
P as e,
|
|
129
128
|
R as f
|
|
130
129
|
};
|
package/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { B as n, a as d } from "./chunks/Breadcrumb-Bs836gOn.js";
|
|
|
5
5
|
import { B as l } from "./chunks/Button-GCROAMSl.js";
|
|
6
6
|
import { B as g } from "./chunks/ButtonGroup-Dr6HOBo2.js";
|
|
7
7
|
import { C as L, R as C } from "./chunks/RangeCalendar-DxLInTav.js";
|
|
8
|
-
import { C as b, a as S, b as D, c as I, d as F, e as R, f as G } from "./chunks/Card-
|
|
8
|
+
import { C as b, a as S, b as D, c as I, d as F, e as R, f as G } from "./chunks/Card-DSUs7WRL.js";
|
|
9
9
|
import { C as k } from "./chunks/CharacterCounter-Dgnv-orm.js";
|
|
10
10
|
import { C as M } from "./chunks/Checkbox-CwzV5QbM.js";
|
|
11
11
|
import { C as h } from "./chunks/CheckboxGroup-CF_3F36J.js";
|
|
@@ -52,7 +52,7 @@ import { c as ja } from "./chunks/clsx-AexbMWKp.js";
|
|
|
52
52
|
import { DialogTrigger as Ja, MenuTrigger as Ka, RouterProvider as Ua } from "react-aria-components";
|
|
53
53
|
import { u as Xa } from "./chunks/useLocalizedStringFormatter-BHvsRxDk.js";
|
|
54
54
|
import { useToastState as _a } from "react-stately";
|
|
55
|
-
const o = "17.11.
|
|
55
|
+
const o = "17.11.5", a = {
|
|
56
56
|
version: o
|
|
57
57
|
}, r = a.version;
|
|
58
58
|
export {
|
package/package.json
CHANGED