@telefonica/mistica 16.2.0 → 16.3.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/css/mistica.css +1 -1
- package/dist/card.css-mistica.js +33 -21
- package/dist/card.css.d.ts +4 -0
- package/dist/card.js +235 -263
- package/dist/chip.css-mistica.js +19 -7
- package/dist/chip.css.d.ts +2 -0
- package/dist/chip.js +33 -49
- package/dist/community/advanced-data-card.css-mistica.js +24 -24
- package/dist/community/advanced-data-card.css.d.ts +1 -1
- package/dist/community/advanced-data-card.js +45 -48
- package/dist/empty-state-card.js +12 -11
- package/dist/hero.js +25 -19
- package/dist/highlighted-card.js +15 -14
- package/dist/list.css-mistica.js +21 -15
- package/dist/list.css.d.ts +2 -0
- package/dist/list.js +97 -96
- package/dist/menu.css-mistica.js +9 -9
- package/dist/menu.js +9 -10
- package/dist/package-version.js +1 -1
- package/dist/sheet-common.js +3 -2
- package/dist/table.js +52 -51
- package/dist/tag.css-mistica.js +1 -1
- package/dist/tag.js +9 -10
- package/dist/text-props.d.ts +60 -0
- package/dist/text-props.js +93 -0
- package/dist/text.d.ts +0 -62
- package/dist/text.js +156 -219
- package/dist/title.js +10 -9
- package/dist-es/card.css-mistica.js +4 -4
- package/dist-es/card.js +343 -371
- package/dist-es/chip.css-mistica.js +10 -4
- package/dist-es/chip.js +44 -60
- package/dist-es/community/advanced-data-card.css-mistica.js +7 -7
- package/dist-es/community/advanced-data-card.js +74 -77
- package/dist-es/empty-state-card.js +17 -16
- package/dist-es/hero.js +53 -47
- package/dist-es/highlighted-card.js +19 -18
- package/dist-es/list.css-mistica.js +2 -2
- package/dist-es/list.js +141 -140
- package/dist-es/menu.css-mistica.js +3 -3
- package/dist-es/menu.js +21 -22
- package/dist-es/package-version.js +1 -1
- package/dist-es/sheet-common.js +12 -11
- package/dist-es/style.css +1 -1
- package/dist-es/table.js +89 -88
- package/dist-es/tag.css-mistica.js +1 -1
- package/dist-es/tag.js +14 -15
- package/dist-es/text-props.js +52 -0
- package/dist-es/text.js +171 -231
- package/dist-es/title.js +14 -13
- package/package.json +3 -3
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import "./sprinkles.css.ts.vanilla.css-mistica.js";
|
|
2
2
|
import "./chip.css.ts.vanilla.css-mistica.js";
|
|
3
|
-
var
|
|
3
|
+
var f = "_1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfk2 _1y2v1nf7c", t = {
|
|
4
4
|
light: "cc7htnd cc7htnb",
|
|
5
5
|
dark: "cc7htne cc7htnb"
|
|
6
|
-
},
|
|
6
|
+
}, c = {
|
|
7
7
|
default: "cc7htn3 _1y2v1nfk1 _1y2v1nf3q _1y2v1nf26",
|
|
8
8
|
overAlternative: "cc7htn3 _1y2v1nfk1 _1y2v1nf3y _1y2v1nf26",
|
|
9
9
|
active: "cc7htna cc7htn4 cc7htn3 _1y2v1nfk1 _1y2v1nf1i _1y2v1nf6l"
|
|
10
|
-
}, y = "_1y2v1nfhl _1y2v1nfht _1y2v1nfhz",
|
|
11
|
-
|
|
10
|
+
}, y = "_1y2v1nfhl _1y2v1nfht _1y2v1nfhz", a = "cc7htng _1y2v1nfba", _ = "cc7htni _1y2v1nfba", h = {
|
|
11
|
+
default: "_1y2v1nfad _1y2v1nfa9",
|
|
12
|
+
withIcon: "_1y2v1nfaa _1y2v1nfa6"
|
|
13
|
+
}, i = {
|
|
14
|
+
default: "_1y2v1nfbm _1y2v1nfbi",
|
|
15
|
+
withIcon: "_1y2v1nfbj _1y2v1nfbf"
|
|
16
|
+
}, r = "_1y2v1nfhk _1y2v1nfi6 _1y2v1nfht _1y2v1nfhz";
|
|
17
|
+
export { f as button, t as chipInteractiveVariants, c as chipVariants, y as chipWrapper, a as icon, _ as iconActive, h as leftPadding, i as rightPadding, r as wrappedContent };
|
package/dist-es/chip.js
CHANGED
|
@@ -51,63 +51,49 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
}
|
|
52
52
|
return target;
|
|
53
53
|
}
|
|
54
|
-
import { jsxs as d, Fragment as
|
|
54
|
+
import { jsxs as d, Fragment as b, jsx as t } from "react/jsx-runtime";
|
|
55
55
|
import m from "classnames";
|
|
56
|
-
import { useTheme as
|
|
56
|
+
import { useTheme as R } from "./hooks.js";
|
|
57
57
|
import x from "./badge.js";
|
|
58
|
-
import
|
|
59
|
-
import { Text2 as
|
|
60
|
-
import
|
|
58
|
+
import V from "./box.js";
|
|
59
|
+
import { Text2 as k } from "./text.js";
|
|
60
|
+
import z from "./generated/mistica-icons/icon-close-regular.js";
|
|
61
61
|
import { pxToRem as i } from "./utils/css.js";
|
|
62
|
-
import { iconActive as M, icon as $, chipVariants as
|
|
62
|
+
import { iconActive as M, icon as $, chipVariants as u, chipWrapper as h, leftPadding as n, rightPadding as f, button as F, wrappedContent as W, chipInteractiveVariants as q } from "./chip.css-mistica.js";
|
|
63
63
|
import { vars as E } from "./skins/skin-contract.css-mistica.js";
|
|
64
64
|
import { useThemeVariant as G } from "./theme-variant-context.js";
|
|
65
65
|
import H, { BaseTouchable as J } from "./touchable.js";
|
|
66
66
|
import { closeButtonLabel as K } from "./text-tokens.js";
|
|
67
|
+
import { getPrefixedDataAttributes as C } from "./utils/dom.js";
|
|
67
68
|
const O = (e)=>{
|
|
68
|
-
const { Icon:
|
|
69
|
-
mobile: 16,
|
|
70
|
-
desktop: 8
|
|
71
|
-
} : {
|
|
72
|
-
mobile: 20,
|
|
73
|
-
desktop: 12
|
|
74
|
-
}, y = {
|
|
75
|
-
mobile: 20,
|
|
76
|
-
desktop: 12
|
|
77
|
-
}, g = {
|
|
78
|
-
mobile: 16,
|
|
79
|
-
desktop: 8
|
|
80
|
-
}, b = /* @__PURE__ */ d(C, {
|
|
69
|
+
const { Icon: o, children: I, id: w, dataAttributes: A, active: a, badge: r, onClose: c, closeButtonLabel: B } = e, { texts: T, isDarkMode: P, textPresets: y, t: L } = R(), p = G() === "alternative", v = /* @__PURE__ */ d(b, {
|
|
81
70
|
children: [
|
|
82
|
-
|
|
83
|
-
paddingRight: 4,
|
|
71
|
+
o && /* @__PURE__ */ t("div", {
|
|
84
72
|
className: a ? M : $,
|
|
85
|
-
children: /* @__PURE__ */ t(
|
|
73
|
+
children: /* @__PURE__ */ t(o, {
|
|
86
74
|
color: "currentColor",
|
|
87
75
|
size: i(16)
|
|
88
76
|
})
|
|
89
77
|
}),
|
|
90
|
-
/* @__PURE__ */ t(
|
|
91
|
-
paddingRight:
|
|
92
|
-
children: /* @__PURE__ */ t(
|
|
93
|
-
id:
|
|
94
|
-
weight:
|
|
78
|
+
/* @__PURE__ */ t(V, {
|
|
79
|
+
paddingRight: r ? 8 : c ? 4 : 0,
|
|
80
|
+
children: /* @__PURE__ */ t(k, {
|
|
81
|
+
id: w,
|
|
82
|
+
weight: y.indicator.weight,
|
|
95
83
|
truncate: 1,
|
|
96
84
|
color: "currentColor",
|
|
97
|
-
children:
|
|
85
|
+
children: I
|
|
98
86
|
})
|
|
99
87
|
})
|
|
100
88
|
]
|
|
101
|
-
}),
|
|
89
|
+
}), l = _object_spread({
|
|
102
90
|
"component-name": "Chip"
|
|
103
|
-
},
|
|
104
|
-
if (
|
|
105
|
-
className: m(p ?
|
|
106
|
-
|
|
107
|
-
paddingRight: g,
|
|
108
|
-
dataAttributes: c,
|
|
91
|
+
}, A);
|
|
92
|
+
if (c) return /* @__PURE__ */ d("div", _object_spread_props(_object_spread({
|
|
93
|
+
className: m(p ? u.overAlternative : u.default, h, o ? n.withIcon : n.default, f.withIcon)
|
|
94
|
+
}, C(l)), {
|
|
109
95
|
children: [
|
|
110
|
-
|
|
96
|
+
v,
|
|
111
97
|
/* @__PURE__ */ t(H, {
|
|
112
98
|
style: {
|
|
113
99
|
display: "flex",
|
|
@@ -116,36 +102,34 @@ const O = (e)=>{
|
|
|
116
102
|
width: i(24),
|
|
117
103
|
height: i(24)
|
|
118
104
|
},
|
|
119
|
-
"aria-label":
|
|
120
|
-
onPress: ()=>
|
|
121
|
-
children: /* @__PURE__ */ t(
|
|
105
|
+
"aria-label": B || T.closeButtonLabel || L(K),
|
|
106
|
+
onPress: ()=>c(),
|
|
107
|
+
children: /* @__PURE__ */ t(z, {
|
|
122
108
|
size: i(16),
|
|
123
109
|
color: E.colors.neutralMedium
|
|
124
110
|
})
|
|
125
111
|
})
|
|
126
112
|
]
|
|
127
|
-
});
|
|
128
|
-
const
|
|
129
|
-
children:
|
|
130
|
-
value:
|
|
113
|
+
}));
|
|
114
|
+
const s = e.href || e.onPress || e.to, N = a !== void 0 || s, j = ()=>r ? /* @__PURE__ */ t(b, {
|
|
115
|
+
children: r === !0 ? /* @__PURE__ */ t(x, {}) : /* @__PURE__ */ t(x, {
|
|
116
|
+
value: r
|
|
131
117
|
})
|
|
132
|
-
}) : null,
|
|
133
|
-
className: m(
|
|
134
|
-
|
|
135
|
-
[q[
|
|
136
|
-
})
|
|
137
|
-
|
|
138
|
-
paddingRight: o ? g : y,
|
|
139
|
-
dataAttributes: P,
|
|
118
|
+
}) : null, g = (D)=>/* @__PURE__ */ d("div", _object_spread_props(_object_spread({
|
|
119
|
+
className: m(u[a ? "active" : p ? "overAlternative" : "default"], // If the chip is wrapped inside a BaseTouchable, we set inline-flex to the Touchable instead
|
|
120
|
+
s ? W : h, {
|
|
121
|
+
[q[P ? "dark" : "light"]]: N
|
|
122
|
+
}, o ? n.withIcon : n.default, r ? f.withIcon : f.default)
|
|
123
|
+
}, C(D)), {
|
|
140
124
|
children: [
|
|
141
|
-
|
|
125
|
+
v,
|
|
142
126
|
j()
|
|
143
127
|
]
|
|
144
|
-
});
|
|
145
|
-
return
|
|
146
|
-
className: m(
|
|
147
|
-
dataAttributes:
|
|
148
|
-
children:
|
|
149
|
-
})) :
|
|
150
|
-
},
|
|
151
|
-
export {
|
|
128
|
+
}));
|
|
129
|
+
return s ? /* @__PURE__ */ t(J, _object_spread_props(_object_spread({}, e), {
|
|
130
|
+
className: m(h, F),
|
|
131
|
+
dataAttributes: l,
|
|
132
|
+
children: g()
|
|
133
|
+
})) : g(l);
|
|
134
|
+
}, ct = O;
|
|
135
|
+
export { ct as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../sprinkles.css.ts.vanilla.css-mistica.js";
|
|
2
2
|
import "../icon-button.css.ts.vanilla.css-mistica.js";
|
|
3
3
|
import "./advanced-data-card.css.ts.vanilla.css-mistica.js";
|
|
4
|
-
var
|
|
5
|
-
default: "
|
|
6
|
-
mobile: "
|
|
7
|
-
}, t = "
|
|
8
|
-
topActionsCount: "var(--
|
|
9
|
-
},
|
|
10
|
-
export {
|
|
4
|
+
var a = 216, _ = "_1x00fru4 _1x00fru2 _1y2v1nfaa _1y2v1nfbj _1y2v1nfhk _1y2v1nfhw _1y2v1nf97", n = {
|
|
5
|
+
default: "_1x00fruk",
|
|
6
|
+
mobile: "_1x00frul"
|
|
7
|
+
}, t = "_1x00frut", o = "_1x00fruo", u = "_1x00frup _1x00fruo", y = "_1x00fru8 _1x00fru2 _1y2v1nfaa _1y2v1nfbj _1y2v1nf7m _1y2v1nf97", i = "_1y2v1nfhe _1y2v1nfio", x = "_1x00frud _1y2v1nfhe _1y2v1nfhk _1y2v1nfi6 _1y2v1nfhq", e = "_1x00frui", h = "_1x00frua _1y2v1nf7s _1y2v1nf97", d = "_1x00frus _1y2v1nfhk _1y2v1nfhp", b = "_1y2v1nfhz _1y2v1nfhk _1y2v1nfbj", c = "_1y2v1nfhk _1y2v1nfi6 _1y2v1nfhz _1y2v1nfjt", m = "_1x00frum", p = "_1x00fruu", s = "_1x00frub", g = "_1x00fru2 _1y2v1nfaa _1y2v1nfbj", l = "_1x00fruw", k = "_1x00fru5", j = "_1x00fru6", C = {
|
|
8
|
+
topActionsCount: "var(--_1x00fruv)"
|
|
9
|
+
}, H = "_1y2v1nf7s";
|
|
10
|
+
export { a as MIN_HEIGHT, _ as actions, n as actionsVariants, t as adjustButtonLink, o as button, u as buttonMobile, y as cardContentStyle, i as container, x as dataCard, e as divider, h as extra, d as footerDirection, b as footerImage, c as footerText, m as marginRightAuto, p as marginRightButton, s as minHeight, g as paddingX, l as topActionsWithoutIcon, k as touchable, j as touchableCardHoverOverlay, C as vars, H as withPaddingTop };
|
|
@@ -78,31 +78,32 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
78
78
|
}
|
|
79
79
|
return target;
|
|
80
80
|
}
|
|
81
|
-
import { jsxs as
|
|
82
|
-
import * as
|
|
83
|
-
import { Boxed as
|
|
84
|
-
import
|
|
85
|
-
import { container as
|
|
81
|
+
import { jsxs as e, jsx as r, Fragment as _ } from "react/jsx-runtime";
|
|
82
|
+
import * as k from "react";
|
|
83
|
+
import { Boxed as q } from "../boxed.js";
|
|
84
|
+
import S from "../stack.js";
|
|
85
|
+
import { container as z, dataCard as J, MIN_HEIGHT as K, touchable as Q, touchableCardHoverOverlay as U, cardContentStyle as Z, minHeight as L, topActionsWithoutIcon as $, extra as rr, paddingX as er, divider as tr, actions as ar, actionsVariants as or, marginRightButton as ir, buttonMobile as F, footerDirection as sr, marginRightAuto as nr, withPaddingTop as cr, footerImage as dr, footerText as lr, adjustButtonLink as mr, button as hr, vars as pr } from "./advanced-data-card.css-mistica.js";
|
|
86
86
|
import { vars as ur } from "../image.css-mistica.js";
|
|
87
|
-
import
|
|
88
|
-
import { Text2 as
|
|
87
|
+
import P from "../divider.js";
|
|
88
|
+
import { Text2 as g, Text as vr } from "../text.js";
|
|
89
|
+
import { text4 as fr } from "../text-props.js";
|
|
89
90
|
import { vars as N } from "../skins/skin-contract.css-mistica.js";
|
|
90
|
-
import
|
|
91
|
-
import
|
|
91
|
+
import H from "../box.js";
|
|
92
|
+
import gr from "../touchable.js";
|
|
92
93
|
import u from "classnames";
|
|
93
94
|
import { CardActionsGroup as Nr } from "../card.js";
|
|
94
95
|
import { useTheme as yr } from "../hooks.js";
|
|
95
96
|
import { getPrefixedDataAttributes as xr } from "../utils/dom.js";
|
|
96
97
|
import Cr from "../inline.js";
|
|
97
98
|
import { applyCssVars as j } from "../utils/css.js";
|
|
98
|
-
const
|
|
99
|
-
let { headline: a, pretitle: o, pretitleAs: s = "p", pretitleLinesMax: m, title: n, titleAs:
|
|
100
|
-
const { textPresets:
|
|
101
|
-
return /* @__PURE__ */
|
|
99
|
+
const Ar = (param)=>{
|
|
100
|
+
let { headline: a, pretitle: o, pretitleAs: s = "p", pretitleLinesMax: m, title: n, titleAs: c = "h3", titleLinesMax: d, subtitle: l, subtitleLinesMax: i, description: t, descriptionLinesMax: h } = param;
|
|
101
|
+
const { textPresets: y } = yr();
|
|
102
|
+
return /* @__PURE__ */ e(S, {
|
|
102
103
|
space: 4,
|
|
103
104
|
children: [
|
|
104
105
|
a,
|
|
105
|
-
o && /* @__PURE__ */ r(
|
|
106
|
+
o && /* @__PURE__ */ r(g, {
|
|
106
107
|
color: N.colors.textPrimary,
|
|
107
108
|
truncate: m,
|
|
108
109
|
as: s,
|
|
@@ -110,14 +111,14 @@ const Tr = (param)=>{
|
|
|
110
111
|
hyphens: "auto",
|
|
111
112
|
children: o
|
|
112
113
|
}),
|
|
113
|
-
/* @__PURE__ */ r(
|
|
114
|
-
truncate:
|
|
115
|
-
weight:
|
|
116
|
-
as:
|
|
114
|
+
/* @__PURE__ */ r(vr, _object_spread_props(_object_spread({}, fr), {
|
|
115
|
+
truncate: d,
|
|
116
|
+
weight: y.cardTitle.weight,
|
|
117
|
+
as: c,
|
|
117
118
|
hyphens: "auto",
|
|
118
119
|
children: n
|
|
119
120
|
})),
|
|
120
|
-
/* @__PURE__ */ r(
|
|
121
|
+
/* @__PURE__ */ r(g, {
|
|
121
122
|
color: N.colors.textPrimary,
|
|
122
123
|
truncate: i,
|
|
123
124
|
as: "p",
|
|
@@ -125,38 +126,37 @@ const Tr = (param)=>{
|
|
|
125
126
|
hyphens: "auto",
|
|
126
127
|
children: l
|
|
127
128
|
}),
|
|
128
|
-
|
|
129
|
+
t && /* @__PURE__ */ r(g, {
|
|
129
130
|
truncate: h,
|
|
130
131
|
as: "p",
|
|
131
132
|
regular: !0,
|
|
132
133
|
color: N.colors.textSecondary,
|
|
133
134
|
hyphens: "auto",
|
|
134
|
-
children:
|
|
135
|
+
children: t
|
|
135
136
|
})
|
|
136
137
|
]
|
|
137
138
|
});
|
|
138
|
-
},
|
|
139
|
+
}, Tr = (param)=>{
|
|
139
140
|
let { button: a, footerImage: o, footerText: s, footerTextLinesMax: m, buttonLink: n } = param;
|
|
140
|
-
const
|
|
141
|
-
return /* @__PURE__ */
|
|
141
|
+
const c = !!a, d = !!o, l = !!s, i = !!n, t = c && (d || l) && i, h = i && !t ? "178px" : "";
|
|
142
|
+
return /* @__PURE__ */ e(_, {
|
|
142
143
|
children: [
|
|
143
144
|
/* @__PURE__ */ r("div", {
|
|
144
|
-
className:
|
|
145
|
-
children: /* @__PURE__ */ r(
|
|
145
|
+
className: tr,
|
|
146
|
+
children: /* @__PURE__ */ r(P, {})
|
|
146
147
|
}),
|
|
147
|
-
/* @__PURE__ */
|
|
148
|
-
className: u(ar, or[
|
|
148
|
+
/* @__PURE__ */ e("div", {
|
|
149
|
+
className: u(ar, or[t ? "mobile" : "default"]),
|
|
149
150
|
children: [
|
|
150
|
-
|
|
151
|
-
className: u(ir,
|
|
151
|
+
c && /* @__PURE__ */ r("div", {
|
|
152
|
+
className: u(ir, F),
|
|
152
153
|
children: a
|
|
153
154
|
}),
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
-
className: u(sr,
|
|
155
|
+
/* @__PURE__ */ e("div", {
|
|
156
|
+
className: u(sr, t ? nr : cr),
|
|
156
157
|
children: [
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
className: cr,
|
|
158
|
+
d && /* @__PURE__ */ r("div", {
|
|
159
|
+
className: dr,
|
|
160
160
|
children: /* @__PURE__ */ r("div", {
|
|
161
161
|
style: j({
|
|
162
162
|
[ur.mediaBorderRadius]: N.borderRadii.mediaSmall
|
|
@@ -169,7 +169,7 @@ const Tr = (param)=>{
|
|
|
169
169
|
maxWidth: h
|
|
170
170
|
},
|
|
171
171
|
className: lr,
|
|
172
|
-
children: /* @__PURE__ */ r(
|
|
172
|
+
children: /* @__PURE__ */ r(g, {
|
|
173
173
|
truncate: m,
|
|
174
174
|
regular: !0,
|
|
175
175
|
children: s
|
|
@@ -178,15 +178,15 @@ const Tr = (param)=>{
|
|
|
178
178
|
]
|
|
179
179
|
}),
|
|
180
180
|
i && /* @__PURE__ */ r("div", {
|
|
181
|
-
className: u(mr,
|
|
181
|
+
className: u(mr, t ? hr : F),
|
|
182
182
|
children: n
|
|
183
183
|
})
|
|
184
184
|
]
|
|
185
185
|
})
|
|
186
186
|
]
|
|
187
187
|
});
|
|
188
|
-
},
|
|
189
|
-
var { stackingGroup: a, headline: o, pretitle: s, pretitleAs: m, pretitleLinesMax: n, title:
|
|
188
|
+
}, br = /*#__PURE__*/ k.forwardRef((_param, W)=>{
|
|
189
|
+
var { stackingGroup: a, headline: o, pretitle: s, pretitleAs: m, pretitleLinesMax: n, title: c, titleAs: d, titleLinesMax: l, subtitle: i, subtitleLinesMax: t, description: h, descriptionLinesMax: y, extra: p, extraDividerPadding: E = 24, noExtraDivider: G = !1, button: C, footerImage: A, footerText: T, footerTextLinesMax: M, buttonLink: b, dataAttributes: V, actions: v, "aria-label": B, onClose: w } = _param, f = _object_without_properties(_param, [
|
|
190
190
|
"stackingGroup",
|
|
191
191
|
"headline",
|
|
192
192
|
"pretitle",
|
|
@@ -212,65 +212,65 @@ const Tr = (param)=>{
|
|
|
212
212
|
"aria-label",
|
|
213
213
|
"onClose"
|
|
214
214
|
]);
|
|
215
|
-
const
|
|
216
|
-
button:
|
|
215
|
+
const x = !!f.href || !!f.onPress || !!f.to, O = {
|
|
216
|
+
button: C,
|
|
217
217
|
footerImage: A,
|
|
218
|
-
footerText:
|
|
218
|
+
footerText: T,
|
|
219
219
|
footerTextLinesMax: M,
|
|
220
220
|
buttonLink: b
|
|
221
|
-
}, D = !!
|
|
222
|
-
return /* @__PURE__ */
|
|
223
|
-
className:
|
|
221
|
+
}, D = !!C || !!A || !!T || !!b, I = !!(p != null && p.length), X = ((v == null ? void 0 : v.length) || 0) + (w ? 1 : 0);
|
|
222
|
+
return /* @__PURE__ */ e("section", _object_spread_props(_object_spread({
|
|
223
|
+
className: z
|
|
224
224
|
}, xr(V, "AdvancedDataCard")), {
|
|
225
225
|
ref: W,
|
|
226
|
-
"aria-label":
|
|
226
|
+
"aria-label": x ? void 0 : B,
|
|
227
227
|
children: [
|
|
228
|
-
/* @__PURE__ */
|
|
228
|
+
/* @__PURE__ */ e(q, {
|
|
229
229
|
className: J,
|
|
230
230
|
width: "100%",
|
|
231
231
|
height: "100%",
|
|
232
232
|
minHeight: K,
|
|
233
233
|
children: [
|
|
234
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ e(gr, _object_spread_props(_object_spread({
|
|
235
235
|
maybe: !0
|
|
236
|
-
},
|
|
237
|
-
"aria-label":
|
|
236
|
+
}, f), {
|
|
237
|
+
"aria-label": x ? B : void 0,
|
|
238
238
|
className: Q,
|
|
239
239
|
children: [
|
|
240
|
-
|
|
240
|
+
x && /* @__PURE__ */ r("div", {
|
|
241
241
|
className: U
|
|
242
242
|
}),
|
|
243
243
|
/* @__PURE__ */ r("div", {
|
|
244
|
-
className: u(Z, !D && !I ?
|
|
245
|
-
children: /* @__PURE__ */ r(
|
|
244
|
+
className: u(Z, !D && !I ? L : ""),
|
|
245
|
+
children: /* @__PURE__ */ r(H, {
|
|
246
246
|
paddingTop: 8,
|
|
247
|
-
children: /* @__PURE__ */
|
|
247
|
+
children: /* @__PURE__ */ e(Cr, {
|
|
248
248
|
space: 0,
|
|
249
249
|
children: [
|
|
250
|
-
/* @__PURE__ */
|
|
250
|
+
/* @__PURE__ */ e(S, {
|
|
251
251
|
space: 8,
|
|
252
252
|
children: [
|
|
253
253
|
a,
|
|
254
|
-
/* @__PURE__ */ r(
|
|
254
|
+
/* @__PURE__ */ r(Ar, {
|
|
255
255
|
headline: o,
|
|
256
256
|
pretitle: s,
|
|
257
257
|
pretitleAs: m,
|
|
258
258
|
pretitleLinesMax: n,
|
|
259
|
-
title:
|
|
260
|
-
titleAs:
|
|
259
|
+
title: c,
|
|
260
|
+
titleAs: d,
|
|
261
261
|
titleLinesMax: l,
|
|
262
262
|
subtitle: i,
|
|
263
|
-
subtitleLinesMax:
|
|
263
|
+
subtitleLinesMax: t,
|
|
264
264
|
description: h,
|
|
265
|
-
descriptionLinesMax:
|
|
265
|
+
descriptionLinesMax: y
|
|
266
266
|
})
|
|
267
267
|
]
|
|
268
268
|
}),
|
|
269
269
|
!a && /* @__PURE__ */ r("div", {
|
|
270
270
|
style: j({
|
|
271
|
-
[pr.topActionsCount]: String(
|
|
271
|
+
[pr.topActionsCount]: String(X)
|
|
272
272
|
}),
|
|
273
|
-
className:
|
|
273
|
+
className: $
|
|
274
274
|
})
|
|
275
275
|
]
|
|
276
276
|
})
|
|
@@ -281,34 +281,31 @@ const Tr = (param)=>{
|
|
|
281
281
|
flexGrow: 1
|
|
282
282
|
}
|
|
283
283
|
}),
|
|
284
|
-
I && /* @__PURE__ */ r(
|
|
285
|
-
paddingTop: 16,
|
|
286
|
-
paddingBottom: 24,
|
|
287
|
-
width: "100%",
|
|
284
|
+
I && /* @__PURE__ */ r("div", {
|
|
288
285
|
className: rr,
|
|
289
|
-
children: p.map((
|
|
286
|
+
children: p.map((Y, R)=>/* @__PURE__ */ e("div", {
|
|
290
287
|
children: [
|
|
291
288
|
/* @__PURE__ */ r("div", {
|
|
292
|
-
className:
|
|
293
|
-
children:
|
|
289
|
+
className: er,
|
|
290
|
+
children: Y
|
|
294
291
|
}),
|
|
295
|
-
|
|
292
|
+
R + 1 !== p.length && /* @__PURE__ */ r(H, {
|
|
296
293
|
paddingY: E,
|
|
297
|
-
children: !G && /* @__PURE__ */ r(
|
|
294
|
+
children: !G && /* @__PURE__ */ r(P, {})
|
|
298
295
|
})
|
|
299
296
|
]
|
|
300
|
-
},
|
|
297
|
+
}, R))
|
|
301
298
|
})
|
|
302
299
|
]
|
|
303
300
|
})),
|
|
304
|
-
D && /* @__PURE__ */ r(
|
|
301
|
+
D && /* @__PURE__ */ r(Tr, _object_spread({}, O))
|
|
305
302
|
]
|
|
306
303
|
}),
|
|
307
304
|
/* @__PURE__ */ r(Nr, {
|
|
308
|
-
actions:
|
|
309
|
-
onClose:
|
|
305
|
+
actions: v,
|
|
306
|
+
onClose: w
|
|
310
307
|
})
|
|
311
308
|
]
|
|
312
309
|
}));
|
|
313
|
-
}),
|
|
314
|
-
export {
|
|
310
|
+
}), Yr = br;
|
|
311
|
+
export { br as AdvancedDataCard, Yr as default };
|
|
@@ -51,25 +51,26 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
}
|
|
52
52
|
return target;
|
|
53
53
|
}
|
|
54
|
-
import { jsx as r, jsxs as
|
|
54
|
+
import { jsx as r, jsxs as s } from "react/jsx-runtime";
|
|
55
55
|
import p from "./box.js";
|
|
56
56
|
import { Boxed as S } from "./boxed.js";
|
|
57
57
|
import { useTheme as y } from "./hooks.js";
|
|
58
58
|
import c from "./stack.js";
|
|
59
|
-
import { Text as E,
|
|
59
|
+
import { Text as E, Text2 as N } from "./text.js";
|
|
60
|
+
import { text4 as u } from "./text-props.js";
|
|
60
61
|
import B from "./button-group.js";
|
|
61
62
|
import { container as C, assetContainer as T, image as k } from "./empty-state-card.css-mistica.js";
|
|
62
63
|
import { vars as v } from "./skins/skin-contract.css-mistica.js";
|
|
63
64
|
const j = (param)=>{
|
|
64
|
-
let { title: d, titleAs: n = "h3", description:
|
|
65
|
-
var
|
|
65
|
+
let { title: d, titleAs: n = "h3", description: f, button: e, secondaryButton: o, buttonLink: t, asset: a, imageUrl: i, "aria-label": h, dataAttributes: x } = param;
|
|
66
|
+
var l;
|
|
66
67
|
const { textPresets: g } = y();
|
|
67
68
|
let m;
|
|
68
69
|
return i && (m = /* @__PURE__ */ r("img", {
|
|
69
70
|
className: k,
|
|
70
71
|
alt: "",
|
|
71
72
|
src: i
|
|
72
|
-
})), process.env.NODE_ENV !== "production" && e && !((
|
|
73
|
+
})), process.env.NODE_ENV !== "production" && e && !((l = e == null ? void 0 : e.props) != null && l.small) && console.error("button property in EmptyStateCard must be a a small Button. Set small prop to true"), /* @__PURE__ */ r(S, {
|
|
73
74
|
dataAttributes: x,
|
|
74
75
|
children: /* @__PURE__ */ r(p, {
|
|
75
76
|
paddingY: {
|
|
@@ -82,8 +83,8 @@ const j = (param)=>{
|
|
|
82
83
|
},
|
|
83
84
|
children: /* @__PURE__ */ r("section", {
|
|
84
85
|
className: C,
|
|
85
|
-
"aria-label":
|
|
86
|
-
children: /* @__PURE__ */
|
|
86
|
+
"aria-label": h,
|
|
87
|
+
children: /* @__PURE__ */ s(c, {
|
|
87
88
|
space: 16,
|
|
88
89
|
children: [
|
|
89
90
|
m !== null && m !== void 0 ? m : a && /* @__PURE__ */ r("div", {
|
|
@@ -91,31 +92,31 @@ const j = (param)=>{
|
|
|
91
92
|
children: a
|
|
92
93
|
}),
|
|
93
94
|
/* @__PURE__ */ r(p, {
|
|
94
|
-
children: /* @__PURE__ */
|
|
95
|
+
children: /* @__PURE__ */ s(c, {
|
|
95
96
|
space: 8,
|
|
96
97
|
children: [
|
|
97
|
-
/* @__PURE__ */ r(E, _object_spread_props(_object_spread({},
|
|
98
|
+
/* @__PURE__ */ r(E, _object_spread_props(_object_spread({}, u), {
|
|
98
99
|
weight: g.cardTitle.weight,
|
|
99
100
|
as: n,
|
|
100
101
|
children: d
|
|
101
102
|
})),
|
|
102
|
-
/* @__PURE__ */ r(
|
|
103
|
+
/* @__PURE__ */ r(N, {
|
|
103
104
|
regular: !0,
|
|
104
105
|
color: v.colors.textSecondary,
|
|
105
|
-
children:
|
|
106
|
+
children: f
|
|
106
107
|
})
|
|
107
108
|
]
|
|
108
109
|
})
|
|
109
110
|
}),
|
|
110
|
-
(e ||
|
|
111
|
+
(e || o || t) && /* @__PURE__ */ r(B, {
|
|
111
112
|
primaryButton: e,
|
|
112
|
-
secondaryButton:
|
|
113
|
-
link:
|
|
113
|
+
secondaryButton: o,
|
|
114
|
+
link: t
|
|
114
115
|
})
|
|
115
116
|
]
|
|
116
117
|
})
|
|
117
118
|
})
|
|
118
119
|
})
|
|
119
120
|
});
|
|
120
|
-
},
|
|
121
|
-
export {
|
|
121
|
+
}, q = j;
|
|
122
|
+
export { q as default };
|