@telefonica/mistica 15.15.0 → 15.16.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/callout.css-mistica.js +10 -3
- package/dist/callout.css.d.ts +2 -0
- package/dist/callout.d.ts +1 -0
- package/dist/callout.js +60 -55
- package/dist/community/advanced-data-card.d.ts +2 -1
- package/dist/community/advanced-data-card.js +28 -27
- package/dist/community/blocks.d.ts +11 -1
- package/dist/community/blocks.js +69 -51
- package/dist/fixed-footer-layout.js +29 -29
- package/dist/grid.css.d.ts +6 -6
- package/dist/hooks.d.ts +3 -1
- package/dist/hooks.js +85 -79
- package/dist/package-version.js +1 -1
- package/dist/table.css-mistica.js +15 -12
- package/dist/table.css.d.ts +1 -0
- package/dist/table.d.ts +1 -0
- package/dist/table.js +81 -75
- package/dist-es/callout.css-mistica.js +3 -2
- package/dist-es/callout.js +84 -79
- package/dist-es/community/advanced-data-card.js +62 -61
- package/dist-es/community/blocks.js +99 -81
- package/dist-es/fixed-footer-layout.js +53 -53
- package/dist-es/hooks.js +91 -85
- package/dist-es/package-version.js +1 -1
- package/dist-es/style.css +1 -1
- package/dist-es/table.css-mistica.js +2 -2
- package/dist-es/table.js +116 -110
- package/package.json +1 -1
|
@@ -78,32 +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
|
|
81
|
+
import { jsxs as e, jsx as r, Fragment as Y } from "react/jsx-runtime";
|
|
82
|
+
import * as _ from "react";
|
|
83
|
+
import { Boxed as $ } from "../boxed.js";
|
|
84
84
|
import { sprinkles as T } from "../sprinkles.css-mistica.js";
|
|
85
85
|
import P from "../stack.js";
|
|
86
|
-
import { dataCard as
|
|
87
|
-
import { vars as
|
|
86
|
+
import { dataCard as q, MIN_HEIGHT as J, touchable as K, touchableCardHoverOverlay as Q, cardContentStyle as U, minHeight as Z, topActionsWithoutIcon as L, zindex as rr, paddingX as er, divider as tr, actions as ar, actionsVariants as ir, marginRightButton as or, buttonMobile as S, footerDirection as sr, marginRightAuto as nr, footerText as dr, adjustButtonLink as cr, button as lr, vars as mr } from "./advanced-data-card.css-mistica.js";
|
|
87
|
+
import { vars as hr } from "../image.css-mistica.js";
|
|
88
88
|
import j from "../divider.js";
|
|
89
|
-
import { Text2 as
|
|
89
|
+
import { Text2 as g, Text as pr, textProps as ur } from "../text.js";
|
|
90
90
|
import { vars as y } from "../skins/skin-contract.css-mistica.js";
|
|
91
91
|
import N from "../box.js";
|
|
92
|
-
import
|
|
92
|
+
import vr from "../touchable.js";
|
|
93
93
|
import u from "classnames";
|
|
94
|
-
import { CardActionsGroup as
|
|
94
|
+
import { CardActionsGroup as fr } from "../card.js";
|
|
95
95
|
import { useTheme as gr } from "../hooks.js";
|
|
96
|
-
import { getPrefixedDataAttributes as
|
|
97
|
-
import
|
|
96
|
+
import { getPrefixedDataAttributes as yr } from "../utils/dom.js";
|
|
97
|
+
import Nr from "../inline.js";
|
|
98
98
|
import { applyCssVars as E } from "../utils/css.js";
|
|
99
|
-
const
|
|
100
|
-
let { headline: a, pretitle: i, pretitleAs: s = "p", pretitleLinesMax: m, title: n, titleAs: d = "h3", titleLinesMax: c, subtitle: l, subtitleLinesMax: o, description:
|
|
99
|
+
const xr = (param)=>{
|
|
100
|
+
let { headline: a, pretitle: i, pretitleAs: s = "p", pretitleLinesMax: m, title: n, titleAs: d = "h3", titleLinesMax: c, subtitle: l, subtitleLinesMax: o, description: t, descriptionLinesMax: h } = param;
|
|
101
101
|
const { textPresets: x } = gr();
|
|
102
|
-
return /* @__PURE__ */
|
|
102
|
+
return /* @__PURE__ */ e(P, {
|
|
103
103
|
space: 4,
|
|
104
104
|
children: [
|
|
105
105
|
a,
|
|
106
|
-
i && /* @__PURE__ */ r(
|
|
106
|
+
i && /* @__PURE__ */ r(g, {
|
|
107
107
|
color: y.colors.textPrimary,
|
|
108
108
|
truncate: m,
|
|
109
109
|
as: s,
|
|
@@ -111,14 +111,14 @@ const Nr = (param)=>{
|
|
|
111
111
|
hyphens: "auto",
|
|
112
112
|
children: i
|
|
113
113
|
}),
|
|
114
|
-
/* @__PURE__ */ r(
|
|
114
|
+
/* @__PURE__ */ r(pr, _object_spread_props(_object_spread({}, ur.text4), {
|
|
115
115
|
truncate: c,
|
|
116
116
|
weight: x.cardTitle.weight,
|
|
117
117
|
as: d,
|
|
118
118
|
hyphens: "auto",
|
|
119
119
|
children: n
|
|
120
120
|
})),
|
|
121
|
-
/* @__PURE__ */ r(
|
|
121
|
+
/* @__PURE__ */ r(g, {
|
|
122
122
|
color: y.colors.textPrimary,
|
|
123
123
|
truncate: o,
|
|
124
124
|
as: "p",
|
|
@@ -126,34 +126,34 @@ const Nr = (param)=>{
|
|
|
126
126
|
hyphens: "auto",
|
|
127
127
|
children: l
|
|
128
128
|
}),
|
|
129
|
-
|
|
129
|
+
t && /* @__PURE__ */ r(g, {
|
|
130
130
|
truncate: h,
|
|
131
131
|
as: "p",
|
|
132
132
|
regular: !0,
|
|
133
133
|
color: y.colors.textSecondary,
|
|
134
134
|
hyphens: "auto",
|
|
135
|
-
children:
|
|
135
|
+
children: t
|
|
136
136
|
})
|
|
137
137
|
]
|
|
138
138
|
});
|
|
139
|
-
},
|
|
139
|
+
}, Cr = (param)=>{
|
|
140
140
|
let { button: a, footerImage: i, footerText: s, footerTextLinesMax: m, buttonLink: n } = param;
|
|
141
|
-
const d = !!a, c = !!i, l = !!s, o = !!n,
|
|
142
|
-
return /* @__PURE__ */
|
|
141
|
+
const d = !!a, c = !!i, l = !!s, o = !!n, t = d && (c || l) && o, h = o && !t ? "178px" : "";
|
|
142
|
+
return /* @__PURE__ */ e(Y, {
|
|
143
143
|
children: [
|
|
144
144
|
/* @__PURE__ */ r("div", {
|
|
145
145
|
className: tr,
|
|
146
146
|
children: /* @__PURE__ */ r(j, {})
|
|
147
147
|
}),
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
-
className: u(
|
|
148
|
+
/* @__PURE__ */ e("div", {
|
|
149
|
+
className: u(ar, ir[t ? "mobile" : "default"]),
|
|
150
150
|
children: [
|
|
151
151
|
d && /* @__PURE__ */ r("div", {
|
|
152
|
-
className: u(
|
|
152
|
+
className: u(or, S),
|
|
153
153
|
children: a
|
|
154
154
|
}),
|
|
155
|
-
/* @__PURE__ */
|
|
156
|
-
className: u(
|
|
155
|
+
/* @__PURE__ */ e("div", {
|
|
156
|
+
className: u(sr, t ? nr : T({
|
|
157
157
|
paddingTop: 16
|
|
158
158
|
})),
|
|
159
159
|
children: [
|
|
@@ -165,7 +165,7 @@ const Nr = (param)=>{
|
|
|
165
165
|
}),
|
|
166
166
|
children: /* @__PURE__ */ r("div", {
|
|
167
167
|
style: E({
|
|
168
|
-
[
|
|
168
|
+
[hr.mediaBorderRadius]: y.borderRadii.mediaSmall
|
|
169
169
|
}),
|
|
170
170
|
children: i
|
|
171
171
|
})
|
|
@@ -174,8 +174,8 @@ const Nr = (param)=>{
|
|
|
174
174
|
style: {
|
|
175
175
|
maxWidth: h
|
|
176
176
|
},
|
|
177
|
-
className:
|
|
178
|
-
children: /* @__PURE__ */ r(
|
|
177
|
+
className: dr,
|
|
178
|
+
children: /* @__PURE__ */ r(g, {
|
|
179
179
|
truncate: m,
|
|
180
180
|
regular: !0,
|
|
181
181
|
children: s
|
|
@@ -184,15 +184,15 @@ const Nr = (param)=>{
|
|
|
184
184
|
]
|
|
185
185
|
}),
|
|
186
186
|
o && /* @__PURE__ */ r("div", {
|
|
187
|
-
className: u(
|
|
187
|
+
className: u(cr, t ? lr : S),
|
|
188
188
|
children: n
|
|
189
189
|
})
|
|
190
190
|
]
|
|
191
191
|
})
|
|
192
192
|
]
|
|
193
193
|
});
|
|
194
|
-
},
|
|
195
|
-
var { stackingGroup: a, headline: i, pretitle: s, pretitleAs: m, pretitleLinesMax: n, title: d, titleAs: c, titleLinesMax: l, subtitle: o, subtitleLinesMax:
|
|
194
|
+
}, Tr = /*#__PURE__*/ _.forwardRef((_param, k)=>{
|
|
195
|
+
var { stackingGroup: a, headline: i, pretitle: s, pretitleAs: m, pretitleLinesMax: n, title: d, titleAs: c, titleLinesMax: l, subtitle: o, subtitleLinesMax: t, description: h, descriptionLinesMax: x, extra: p, extraDividerPadding: G = 24, noExtraDivider: M = !1, button: A, footerImage: B, footerText: b, footerTextLinesMax: V, buttonLink: R, dataAttributes: W, actions: v, "aria-label": w, onClose: D } = _param, f = _object_without_properties(_param, [
|
|
196
196
|
"stackingGroup",
|
|
197
197
|
"headline",
|
|
198
198
|
"pretitle",
|
|
@@ -207,6 +207,7 @@ const Nr = (param)=>{
|
|
|
207
207
|
"descriptionLinesMax",
|
|
208
208
|
"extra",
|
|
209
209
|
"extraDividerPadding",
|
|
210
|
+
"noExtraDivider",
|
|
210
211
|
"button",
|
|
211
212
|
"footerImage",
|
|
212
213
|
"footerText",
|
|
@@ -217,49 +218,49 @@ const Nr = (param)=>{
|
|
|
217
218
|
"aria-label",
|
|
218
219
|
"onClose"
|
|
219
220
|
]);
|
|
220
|
-
const C = !!
|
|
221
|
+
const C = !!f.href || !!f.onPress || !!f.to, z = {
|
|
221
222
|
button: A,
|
|
222
223
|
footerImage: B,
|
|
223
224
|
footerText: b,
|
|
224
|
-
footerTextLinesMax:
|
|
225
|
+
footerTextLinesMax: V,
|
|
225
226
|
buttonLink: R
|
|
226
|
-
}, F = !!A || !!B || !!b || !!R, H = !!(p != null && p.length),
|
|
227
|
-
return /* @__PURE__ */
|
|
227
|
+
}, F = !!A || !!B || !!b || !!R, H = !!(p != null && p.length), O = ((v == null ? void 0 : v.length) || 0) + (D ? 1 : 0);
|
|
228
|
+
return /* @__PURE__ */ e("section", _object_spread_props(_object_spread({
|
|
228
229
|
className: T({
|
|
229
230
|
position: "relative",
|
|
230
231
|
height: "100%"
|
|
231
232
|
})
|
|
232
|
-
},
|
|
233
|
-
ref:
|
|
233
|
+
}, yr(W, "AdvancedDataCard")), {
|
|
234
|
+
ref: k,
|
|
234
235
|
"aria-label": C ? void 0 : w,
|
|
235
236
|
children: [
|
|
236
|
-
/* @__PURE__ */
|
|
237
|
-
className:
|
|
237
|
+
/* @__PURE__ */ e($, {
|
|
238
|
+
className: q,
|
|
238
239
|
width: "100%",
|
|
239
240
|
height: "100%",
|
|
240
|
-
minHeight:
|
|
241
|
+
minHeight: J,
|
|
241
242
|
children: [
|
|
242
|
-
/* @__PURE__ */
|
|
243
|
+
/* @__PURE__ */ e(vr, _object_spread_props(_object_spread({
|
|
243
244
|
maybe: !0
|
|
244
|
-
},
|
|
245
|
+
}, f), {
|
|
245
246
|
"aria-label": C ? w : void 0,
|
|
246
|
-
className:
|
|
247
|
+
className: K,
|
|
247
248
|
children: [
|
|
248
249
|
C && /* @__PURE__ */ r("div", {
|
|
249
|
-
className:
|
|
250
|
+
className: Q
|
|
250
251
|
}),
|
|
251
252
|
/* @__PURE__ */ r("div", {
|
|
252
|
-
className: u(
|
|
253
|
+
className: u(U, !F && !H ? Z : ""),
|
|
253
254
|
children: /* @__PURE__ */ r(N, {
|
|
254
255
|
paddingTop: 8,
|
|
255
|
-
children: /* @__PURE__ */
|
|
256
|
+
children: /* @__PURE__ */ e(Nr, {
|
|
256
257
|
space: 0,
|
|
257
258
|
children: [
|
|
258
|
-
/* @__PURE__ */
|
|
259
|
+
/* @__PURE__ */ e(P, {
|
|
259
260
|
space: 8,
|
|
260
261
|
children: [
|
|
261
262
|
a,
|
|
262
|
-
/* @__PURE__ */ r(
|
|
263
|
+
/* @__PURE__ */ r(xr, {
|
|
263
264
|
headline: i,
|
|
264
265
|
pretitle: s,
|
|
265
266
|
pretitleAs: m,
|
|
@@ -268,7 +269,7 @@ const Nr = (param)=>{
|
|
|
268
269
|
titleAs: c,
|
|
269
270
|
titleLinesMax: l,
|
|
270
271
|
subtitle: o,
|
|
271
|
-
subtitleLinesMax:
|
|
272
|
+
subtitleLinesMax: t,
|
|
272
273
|
description: h,
|
|
273
274
|
descriptionLinesMax: x
|
|
274
275
|
})
|
|
@@ -276,9 +277,9 @@ const Nr = (param)=>{
|
|
|
276
277
|
}),
|
|
277
278
|
!a && /* @__PURE__ */ r("div", {
|
|
278
279
|
style: E({
|
|
279
|
-
[
|
|
280
|
+
[mr.topActionsCount]: String(O)
|
|
280
281
|
}),
|
|
281
|
-
className:
|
|
282
|
+
className: L
|
|
282
283
|
})
|
|
283
284
|
]
|
|
284
285
|
})
|
|
@@ -293,30 +294,30 @@ const Nr = (param)=>{
|
|
|
293
294
|
paddingTop: 16,
|
|
294
295
|
paddingBottom: 24,
|
|
295
296
|
width: "100%",
|
|
296
|
-
className:
|
|
297
|
-
children: p.map((
|
|
297
|
+
className: rr,
|
|
298
|
+
children: p.map((X, I)=>/* @__PURE__ */ e("div", {
|
|
298
299
|
children: [
|
|
299
300
|
/* @__PURE__ */ r("div", {
|
|
300
|
-
className:
|
|
301
|
-
children:
|
|
301
|
+
className: er,
|
|
302
|
+
children: X
|
|
302
303
|
}),
|
|
303
304
|
I + 1 !== p.length && /* @__PURE__ */ r(N, {
|
|
304
305
|
paddingY: G,
|
|
305
|
-
children: /* @__PURE__ */ r(j, {})
|
|
306
|
+
children: !M && /* @__PURE__ */ r(j, {})
|
|
306
307
|
})
|
|
307
308
|
]
|
|
308
309
|
}, I))
|
|
309
310
|
})
|
|
310
311
|
]
|
|
311
312
|
})),
|
|
312
|
-
F && /* @__PURE__ */ r(
|
|
313
|
+
F && /* @__PURE__ */ r(Cr, _object_spread({}, z))
|
|
313
314
|
]
|
|
314
315
|
}),
|
|
315
|
-
/* @__PURE__ */ r(
|
|
316
|
+
/* @__PURE__ */ r(fr, {
|
|
316
317
|
actions: v,
|
|
317
318
|
onClose: D
|
|
318
319
|
})
|
|
319
320
|
]
|
|
320
321
|
}));
|
|
321
|
-
}),
|
|
322
|
-
export {
|
|
322
|
+
}), kr = Tr;
|
|
323
|
+
export { Tr as AdvancedDataCard, kr as default };
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { column as
|
|
4
|
-
import { vars as
|
|
5
|
-
import { Text2 as n, Text5 as
|
|
6
|
-
import { vars as
|
|
7
|
-
import
|
|
2
|
+
import y from "../stack.js";
|
|
3
|
+
import { column as p, rightContent as S } from "./blocks.css-mistica.js";
|
|
4
|
+
import { vars as B } from "../image.css-mistica.js";
|
|
5
|
+
import { Text2 as n, Text5 as I, Text8 as m, Text3 as P } from "../text.js";
|
|
6
|
+
import { vars as e } from "../skins/skin-contract.css-mistica.js";
|
|
7
|
+
import d from "../inline.js";
|
|
8
8
|
import u from "../box.js";
|
|
9
|
-
import { ProgressBar as
|
|
10
|
-
import
|
|
11
|
-
import { applyCssVars as
|
|
9
|
+
import { ProgressBar as k } from "../progress-bar.js";
|
|
10
|
+
import R from "classnames";
|
|
11
|
+
import { applyCssVars as T } from "../utils/css.js";
|
|
12
12
|
const g = (param)=>{
|
|
13
|
-
let { title: a, description:
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
] :
|
|
13
|
+
let { title: a, description: l } = param;
|
|
14
|
+
const o = typeof l == "string" ? [
|
|
15
|
+
l
|
|
16
|
+
] : l;
|
|
17
17
|
return /* @__PURE__ */ c("div", {
|
|
18
|
-
className:
|
|
18
|
+
className: p,
|
|
19
19
|
children: [
|
|
20
|
-
/* @__PURE__ */ r(
|
|
20
|
+
/* @__PURE__ */ r(P, {
|
|
21
21
|
regular: !0,
|
|
22
|
-
color:
|
|
22
|
+
color: e.colors.textPrimary,
|
|
23
23
|
children: a
|
|
24
24
|
}),
|
|
25
|
-
|
|
25
|
+
o && o.map((t, i)=>/* @__PURE__ */ r(n, {
|
|
26
26
|
regular: !0,
|
|
27
|
-
color:
|
|
27
|
+
color: e.colors.textSecondary,
|
|
28
28
|
as: "p",
|
|
29
29
|
children: t
|
|
30
30
|
}, i))
|
|
31
31
|
]
|
|
32
32
|
});
|
|
33
|
-
},
|
|
34
|
-
let { title: a, stackingGroup:
|
|
33
|
+
}, E = (param)=>{
|
|
34
|
+
let { title: a, stackingGroup: l, description: o, "aria-label": t } = param;
|
|
35
35
|
return /* @__PURE__ */ r("div", {
|
|
36
36
|
"aria-label": t,
|
|
37
|
-
children: /* @__PURE__ */ c(
|
|
37
|
+
children: /* @__PURE__ */ c(d, {
|
|
38
38
|
space: "between",
|
|
39
39
|
alignItems: "center",
|
|
40
40
|
children: [
|
|
@@ -45,59 +45,59 @@ const g = (param)=>{
|
|
|
45
45
|
children: a
|
|
46
46
|
})
|
|
47
47
|
}),
|
|
48
|
-
|
|
48
|
+
l || /* @__PURE__ */ r(n, {
|
|
49
49
|
regular: !0,
|
|
50
|
-
color:
|
|
50
|
+
color: e.colors.textSecondary,
|
|
51
51
|
textAlign: "right",
|
|
52
52
|
as: "div",
|
|
53
|
-
children:
|
|
53
|
+
children: o
|
|
54
54
|
})
|
|
55
55
|
]
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
|
-
},
|
|
59
|
-
let { image: a, description:
|
|
58
|
+
}, F = (param)=>{
|
|
59
|
+
let { image: a, description: l, "aria-label": o } = param;
|
|
60
60
|
return /* @__PURE__ */ r("div", {
|
|
61
|
-
"aria-label":
|
|
62
|
-
children: /* @__PURE__ */ c(
|
|
61
|
+
"aria-label": o,
|
|
62
|
+
children: /* @__PURE__ */ c(d, {
|
|
63
63
|
space: 16,
|
|
64
64
|
alignItems: "center",
|
|
65
65
|
children: [
|
|
66
66
|
/* @__PURE__ */ r("div", {
|
|
67
|
-
style:
|
|
68
|
-
[
|
|
67
|
+
style: T({
|
|
68
|
+
[B.mediaBorderRadius]: e.borderRadii.mediaSmall
|
|
69
69
|
}),
|
|
70
70
|
children: a
|
|
71
71
|
}),
|
|
72
72
|
/* @__PURE__ */ r(n, {
|
|
73
73
|
regular: !0,
|
|
74
|
-
color:
|
|
75
|
-
children:
|
|
74
|
+
color: e.colors.textSecondary,
|
|
75
|
+
children: l
|
|
76
76
|
})
|
|
77
77
|
]
|
|
78
78
|
})
|
|
79
79
|
});
|
|
80
|
-
},
|
|
81
|
-
let { title: a, description:
|
|
82
|
-
return /* @__PURE__ */ c(
|
|
80
|
+
}, J = (param)=>{
|
|
81
|
+
let { title: a, description: l, secondaryValue: o, value: t, valueColor: i = e.colors.textPrimary, "aria-label": s } = param;
|
|
82
|
+
return /* @__PURE__ */ c(d, {
|
|
83
83
|
space: "between",
|
|
84
84
|
alignItems: "flex-end",
|
|
85
|
-
"aria-label":
|
|
85
|
+
"aria-label": s,
|
|
86
86
|
children: [
|
|
87
87
|
/* @__PURE__ */ r(g, {
|
|
88
88
|
title: a,
|
|
89
|
-
description:
|
|
89
|
+
description: l
|
|
90
90
|
}),
|
|
91
91
|
/* @__PURE__ */ c("div", {
|
|
92
|
-
className:
|
|
92
|
+
className: R(p, S),
|
|
93
93
|
children: [
|
|
94
94
|
/* @__PURE__ */ r(n, {
|
|
95
95
|
regular: !0,
|
|
96
|
-
color:
|
|
96
|
+
color: e.colors.textSecondary,
|
|
97
97
|
decoration: "line-through",
|
|
98
|
-
children:
|
|
98
|
+
children: o
|
|
99
99
|
}),
|
|
100
|
-
/* @__PURE__ */ r(
|
|
100
|
+
/* @__PURE__ */ r(I, {
|
|
101
101
|
color: i,
|
|
102
102
|
children: t
|
|
103
103
|
})
|
|
@@ -105,91 +105,109 @@ const g = (param)=>{
|
|
|
105
105
|
})
|
|
106
106
|
]
|
|
107
107
|
});
|
|
108
|
-
},
|
|
109
|
-
let { headline: a, mainHeading:
|
|
108
|
+
}, K = (param)=>{
|
|
109
|
+
let { headline: a, headings: l, mainHeading: o, secondHeading: t, secondaryValue: i, title: s, description: h, valueColor: b = e.colors.textPrimary, "aria-label": v } = param;
|
|
110
110
|
return /* @__PURE__ */ c("div", {
|
|
111
|
-
"aria-label":
|
|
111
|
+
"aria-label": v,
|
|
112
112
|
children: [
|
|
113
113
|
a && /* @__PURE__ */ r(u, {
|
|
114
114
|
paddingBottom: 24,
|
|
115
115
|
children: a
|
|
116
116
|
}),
|
|
117
|
-
/* @__PURE__ */ c(
|
|
117
|
+
/* @__PURE__ */ c(y, {
|
|
118
118
|
space: 2,
|
|
119
119
|
children: [
|
|
120
|
-
|
|
120
|
+
l && l.map((x, f)=>/* @__PURE__ */ {
|
|
121
|
+
var _x_valueColor;
|
|
122
|
+
return c(d, {
|
|
123
|
+
space: 8,
|
|
124
|
+
alignItems: "baseline",
|
|
125
|
+
children: [
|
|
126
|
+
/* @__PURE__ */ r(m, {
|
|
127
|
+
color: (_x_valueColor = x.valueColor) !== null && _x_valueColor !== void 0 ? _x_valueColor : e.colors.textPrimary,
|
|
128
|
+
children: x.value
|
|
129
|
+
}),
|
|
130
|
+
/* @__PURE__ */ r(n, {
|
|
131
|
+
regular: !0,
|
|
132
|
+
color: e.colors.textSecondary,
|
|
133
|
+
children: x.text
|
|
134
|
+
})
|
|
135
|
+
]
|
|
136
|
+
}, f);
|
|
137
|
+
}),
|
|
138
|
+
o && /* @__PURE__ */ c(d, {
|
|
121
139
|
space: 8,
|
|
122
140
|
alignItems: "baseline",
|
|
123
141
|
children: [
|
|
124
142
|
/* @__PURE__ */ r(m, {
|
|
125
|
-
color:
|
|
126
|
-
children:
|
|
143
|
+
color: b,
|
|
144
|
+
children: o.value
|
|
127
145
|
}),
|
|
128
146
|
/* @__PURE__ */ r(n, {
|
|
129
147
|
regular: !0,
|
|
130
|
-
color:
|
|
131
|
-
children:
|
|
148
|
+
color: e.colors.textSecondary,
|
|
149
|
+
children: o.text
|
|
132
150
|
})
|
|
133
151
|
]
|
|
134
152
|
}),
|
|
135
|
-
|
|
153
|
+
t && /* @__PURE__ */ c(d, {
|
|
136
154
|
space: 8,
|
|
137
155
|
alignItems: "baseline",
|
|
138
156
|
children: [
|
|
139
157
|
/* @__PURE__ */ r(m, {
|
|
140
|
-
color:
|
|
141
|
-
children:
|
|
158
|
+
color: b,
|
|
159
|
+
children: t.value
|
|
142
160
|
}),
|
|
143
161
|
/* @__PURE__ */ r(n, {
|
|
144
162
|
regular: !0,
|
|
145
|
-
color:
|
|
146
|
-
children:
|
|
163
|
+
color: e.colors.textSecondary,
|
|
164
|
+
children: t.text
|
|
147
165
|
})
|
|
148
166
|
]
|
|
149
167
|
}),
|
|
150
|
-
|
|
151
|
-
color:
|
|
152
|
-
children:
|
|
168
|
+
i && /* @__PURE__ */ r(m, {
|
|
169
|
+
color: e.colors.textSecondary,
|
|
170
|
+
children: i
|
|
153
171
|
})
|
|
154
172
|
]
|
|
155
173
|
}),
|
|
156
|
-
|
|
174
|
+
s || h ? /* @__PURE__ */ r(u, {
|
|
157
175
|
paddingTop: 8,
|
|
158
176
|
children: /* @__PURE__ */ r(g, {
|
|
159
|
-
title:
|
|
160
|
-
description:
|
|
177
|
+
title: s,
|
|
178
|
+
description: h
|
|
161
179
|
})
|
|
162
180
|
}) : null
|
|
163
181
|
]
|
|
164
182
|
});
|
|
165
|
-
},
|
|
166
|
-
let { title: a, value:
|
|
183
|
+
}, M = (param)=>{
|
|
184
|
+
let { title: a, value: l, description: o, valueColor: t = e.colors.textPrimary, "aria-label": i } = param;
|
|
167
185
|
return /* @__PURE__ */ c("div", {
|
|
168
186
|
"aria-label": i,
|
|
169
|
-
className:
|
|
187
|
+
className: p,
|
|
170
188
|
children: [
|
|
171
189
|
/* @__PURE__ */ r(n, {
|
|
172
190
|
regular: !0,
|
|
173
|
-
color:
|
|
191
|
+
color: e.colors.textPrimary,
|
|
174
192
|
children: a
|
|
175
193
|
}),
|
|
176
194
|
/* @__PURE__ */ r(m, {
|
|
177
195
|
color: t,
|
|
178
|
-
children:
|
|
196
|
+
children: l
|
|
179
197
|
}),
|
|
180
198
|
/* @__PURE__ */ r(g, {
|
|
181
|
-
description:
|
|
199
|
+
description: o
|
|
182
200
|
})
|
|
183
201
|
]
|
|
184
202
|
});
|
|
185
|
-
},
|
|
186
|
-
let { title: a, stackingGroup:
|
|
203
|
+
}, O = (param)=>{
|
|
204
|
+
let { title: a, stackingGroup: l, progressPercent: o, reverse: t, heading: i, description: s, "aria-label": h } = param;
|
|
187
205
|
return /* @__PURE__ */ r("div", {
|
|
188
206
|
"aria-label": h,
|
|
189
|
-
children: /* @__PURE__ */ c(
|
|
207
|
+
children: /* @__PURE__ */ c(y, {
|
|
190
208
|
space: 8,
|
|
191
209
|
children: [
|
|
192
|
-
/* @__PURE__ */ c(
|
|
210
|
+
/* @__PURE__ */ c(d, {
|
|
193
211
|
space: "between",
|
|
194
212
|
alignItems: "flex-end",
|
|
195
213
|
children: [
|
|
@@ -200,36 +218,36 @@ const g = (param)=>{
|
|
|
200
218
|
children: a
|
|
201
219
|
})
|
|
202
220
|
}),
|
|
203
|
-
|
|
221
|
+
l
|
|
204
222
|
]
|
|
205
223
|
}),
|
|
206
|
-
|
|
224
|
+
o !== void 0 && /* @__PURE__ */ r(k, {
|
|
207
225
|
"aria-hidden": !0,
|
|
208
|
-
progressPercent:
|
|
226
|
+
progressPercent: o,
|
|
209
227
|
reverse: t
|
|
210
228
|
}),
|
|
211
|
-
/* @__PURE__ */ c(
|
|
229
|
+
/* @__PURE__ */ c(d, {
|
|
212
230
|
space: 8,
|
|
213
231
|
alignItems: "baseline",
|
|
214
232
|
children: [
|
|
215
233
|
/* @__PURE__ */ r(m, {
|
|
216
|
-
color: i.valueColor ||
|
|
234
|
+
color: i.valueColor || e.colors.textPrimary,
|
|
217
235
|
children: i.value
|
|
218
236
|
}),
|
|
219
237
|
/* @__PURE__ */ r(n, {
|
|
220
238
|
regular: !0,
|
|
221
|
-
color:
|
|
239
|
+
color: e.colors.textSecondary,
|
|
222
240
|
children: i.text
|
|
223
241
|
})
|
|
224
242
|
]
|
|
225
243
|
}),
|
|
226
|
-
|
|
244
|
+
s && /* @__PURE__ */ r(n, {
|
|
227
245
|
regular: !0,
|
|
228
|
-
color:
|
|
229
|
-
children:
|
|
246
|
+
color: e.colors.textSecondary,
|
|
247
|
+
children: s
|
|
230
248
|
})
|
|
231
249
|
]
|
|
232
250
|
})
|
|
233
251
|
});
|
|
234
252
|
};
|
|
235
|
-
export {
|
|
253
|
+
export { K as HighlightedValueBlock, J as InformationBlock, O as ProgressBlock, E as RowBlock, F as SimpleBlock, M as ValueBlock };
|