@telefonica/mistica 14.5.0 → 14.7.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/avatar.css-mistica.js +1 -1
- package/dist/avatar.d.ts +1 -0
- package/dist/avatar.js +20 -18
- package/dist/badge.css-mistica.js +3 -3
- package/dist/boxed.d.ts +2 -1
- package/dist/boxed.js +17 -18
- package/dist/button-fixed-footer-layout.d.ts +1 -2
- package/dist/button-group.css-mistica.js +3 -3
- package/dist/button-group.d.ts +1 -1
- package/dist/button-layout.css-mistica.js +12 -12
- package/dist/button-layout.d.ts +1 -2
- package/dist/button.css-mistica.js +22 -22
- package/dist/button.d.ts +1 -1
- package/dist/button.js +93 -90
- package/dist/callout.css-mistica.js +1 -1
- package/dist/callout.d.ts +1 -1
- package/dist/callout.js +13 -9
- package/dist/card.css-mistica.js +8 -8
- package/dist/card.d.ts +3 -3
- package/dist/card.js +105 -93
- package/dist/carousel.css-mistica.js +7 -7
- package/dist/checkbox.css-mistica.js +9 -9
- package/dist/chip.css-mistica.js +11 -10
- package/dist/chip.css.d.ts +1 -1
- package/dist/chip.js +21 -20
- package/dist/circle.css-mistica.js +1 -1
- package/dist/credit-card-number-field.css-mistica.js +3 -3
- package/dist/cvv-field.css-mistica.js +3 -3
- package/dist/date-time-picker.js +7 -6
- package/dist/dialog.css-mistica.js +7 -7
- package/dist/dialog.d.ts +1 -1
- package/dist/double-field.css-mistica.js +4 -4
- package/dist/double-field.d.ts +10 -10
- package/dist/empty-state-card.css-mistica.js +2 -2
- package/dist/empty-state-card.d.ts +1 -1
- package/dist/empty-state.css-mistica.js +2 -2
- package/dist/empty-state.d.ts +2 -1
- package/dist/feedback.css-mistica.js +5 -5
- package/dist/feedback.d.ts +1 -0
- package/dist/feedback.js +86 -87
- package/dist/fixed-footer-layout.css-mistica.js +5 -5
- package/dist/header.d.ts +2 -2
- package/dist/hero.css-mistica.js +5 -5
- package/dist/hero.d.ts +4 -4
- package/dist/highlighted-card.css-mistica.js +4 -4
- package/dist/highlighted-card.d.ts +1 -2
- package/dist/highlighted-card.js +2 -0
- package/dist/icon-button.css-mistica.js +1 -1
- package/dist/image.css-mistica.js +1 -1
- package/dist/image.js +16 -16
- package/dist/index.d.ts +7 -2
- package/dist/index.js +9 -1
- package/dist/list.css-mistica.js +9 -9
- package/dist/loading-bar.css-mistica.js +6 -6
- package/dist/logo.d.ts +34 -0
- package/dist/logo.js +629 -0
- package/dist/maybe-dismissable.css-mistica.js +4 -4
- package/dist/menu.css-mistica.js +1 -1
- package/dist/navigation-bar.css-mistica.js +16 -16
- package/dist/navigation-bar.d.ts +2 -6
- package/dist/navigation-bar.js +99 -266
- package/dist/navigation-breadcrumbs.css-mistica.js +1 -1
- package/dist/package-version.js +1 -1
- package/dist/password-field.css-mistica.js +2 -2
- package/dist/popover.css-mistica.js +10 -10
- package/dist/progress-bar.css-mistica.js +2 -2
- package/dist/radio-button.css-mistica.js +9 -9
- package/dist/responsive-layout.css-mistica.js +8 -5
- package/dist/responsive-layout.css.d.ts +4 -1
- package/dist/responsive-layout.d.ts +2 -0
- package/dist/responsive-layout.js +7 -9
- package/dist/screen-reader-only.css-mistica.js +1 -1
- package/dist/select.css-mistica.js +14 -14
- package/dist/skeleton-base.js +3 -3
- package/dist/skeletons.css-mistica.js +4 -4
- package/dist/skins/blau.js +7 -1
- package/dist/skins/defaults.d.ts +3 -0
- package/dist/skins/defaults.js +48 -0
- package/dist/skins/movistar-legacy.js +7 -1
- package/dist/skins/movistar.js +7 -1
- package/dist/skins/o2-classic.js +6 -0
- package/dist/skins/o2.js +9 -3
- package/dist/skins/skin-contract.css-mistica.js +203 -185
- package/dist/skins/skin-contract.css.d.ts +18 -0
- package/dist/skins/telefonica.js +19 -1
- package/dist/skins/types.d.ts +21 -0
- package/dist/skins/vivo.js +7 -1
- package/dist/snackbar.css-mistica.js +8 -8
- package/dist/spinner.css-mistica.js +1 -1
- package/dist/sprinkles.css-mistica.js +360 -312
- package/dist/sprinkles.css.d.ts +1 -1
- package/dist/stepper.css-mistica.js +9 -9
- package/dist/switch-component.css-mistica.js +23 -23
- package/dist/tabs.css-mistica.js +14 -14
- package/dist/tag.css-mistica.js +2 -2
- package/dist/tag.js +12 -12
- package/dist/text-field-base.css-mistica.js +10 -10
- package/dist/text-field-components.css-mistica.js +10 -10
- package/dist/text-link.css-mistica.js +5 -5
- package/dist/theme-context-provider.js +38 -58
- package/dist/theme-variant-context.d.ts +4 -1
- package/dist/theme-variant-context.js +9 -8
- package/dist/tooltip.css-mistica.js +2 -2
- package/dist/touchable.css-mistica.js +1 -1
- package/dist/utils/aspect-ratio-support.css-mistica.js +4 -4
- package/dist/utils/renders-element.d.ts +1 -1
- package/dist/video.css-mistica.js +1 -1
- package/dist/video.js +16 -15
- package/dist-es/avatar.css-mistica.js +1 -1
- package/dist-es/avatar.js +28 -26
- package/dist-es/badge.css-mistica.js +2 -2
- package/dist-es/boxed.js +25 -26
- package/dist-es/button-group.css-mistica.js +2 -2
- package/dist-es/button-layout.css-mistica.js +7 -7
- package/dist-es/button.css-mistica.js +9 -9
- package/dist-es/button.js +128 -125
- package/dist-es/callout.css-mistica.js +1 -1
- package/dist-es/callout.js +28 -24
- package/dist-es/card.css-mistica.js +2 -2
- package/dist-es/card.js +141 -129
- package/dist-es/carousel.css-mistica.js +2 -2
- package/dist-es/checkbox.css-mistica.js +6 -6
- package/dist-es/chip.css-mistica.js +9 -8
- package/dist-es/chip.js +37 -36
- package/dist-es/circle.css-mistica.js +1 -1
- package/dist-es/credit-card-number-field.css-mistica.js +3 -3
- package/dist-es/cvv-field.css-mistica.js +2 -2
- package/dist-es/date-time-picker.js +13 -12
- package/dist-es/dialog.css-mistica.js +5 -5
- package/dist-es/double-field.css-mistica.js +4 -4
- package/dist-es/empty-state-card.css-mistica.js +2 -2
- package/dist-es/empty-state.css-mistica.js +2 -2
- package/dist-es/feedback.css-mistica.js +2 -2
- package/dist-es/feedback.js +109 -110
- package/dist-es/fixed-footer-layout.css-mistica.js +3 -3
- package/dist-es/hero.css-mistica.js +2 -2
- package/dist-es/highlighted-card.css-mistica.js +4 -4
- package/dist-es/highlighted-card.js +9 -7
- package/dist-es/icon-button.css-mistica.js +1 -1
- package/dist-es/image.css-mistica.js +1 -1
- package/dist-es/image.js +18 -18
- package/dist-es/index.js +1698 -1697
- package/dist-es/list.css-mistica.js +2 -2
- package/dist-es/loading-bar.css-mistica.js +2 -2
- package/dist-es/logo.js +607 -0
- package/dist-es/maybe-dismissable.css-mistica.js +2 -2
- package/dist-es/menu.css-mistica.js +1 -1
- package/dist-es/navigation-bar.css-mistica.js +11 -11
- package/dist-es/navigation-bar.js +171 -337
- package/dist-es/navigation-breadcrumbs.css-mistica.js +1 -1
- package/dist-es/package-version.js +1 -1
- package/dist-es/password-field.css-mistica.js +2 -2
- package/dist-es/popover.css-mistica.js +2 -2
- package/dist-es/progress-bar.css-mistica.js +2 -2
- package/dist-es/radio-button.css-mistica.js +6 -6
- package/dist-es/responsive-layout.css-mistica.js +5 -2
- package/dist-es/responsive-layout.js +16 -18
- package/dist-es/screen-reader-only.css-mistica.js +1 -1
- package/dist-es/select.css-mistica.js +11 -11
- package/dist-es/skeleton-base.js +7 -7
- package/dist-es/skeletons.css-mistica.js +2 -2
- package/dist-es/skins/blau.js +7 -1
- package/dist-es/skins/defaults.js +35 -0
- package/dist-es/skins/movistar-legacy.js +7 -1
- package/dist-es/skins/movistar.js +7 -1
- package/dist-es/skins/o2-classic.js +6 -0
- package/dist-es/skins/o2.js +9 -3
- package/dist-es/skins/skin-contract.css-mistica.js +203 -185
- package/dist-es/skins/telefonica.js +19 -1
- package/dist-es/skins/vivo.js +7 -1
- package/dist-es/snackbar.css-mistica.js +2 -2
- package/dist-es/spinner.css-mistica.js +1 -1
- package/dist-es/sprinkles.css-mistica.js +360 -312
- package/dist-es/stepper.css-mistica.js +2 -2
- package/dist-es/style.css +1 -1
- package/dist-es/switch-component.css-mistica.js +19 -19
- package/dist-es/tabs.css-mistica.js +10 -10
- package/dist-es/tag.css-mistica.js +2 -2
- package/dist-es/tag.js +27 -27
- package/dist-es/text-field-base.css-mistica.js +2 -2
- package/dist-es/text-field-components.css-mistica.js +2 -2
- package/dist-es/text-link.css-mistica.js +5 -5
- package/dist-es/theme-context-provider.js +72 -92
- package/dist-es/theme-variant-context.js +9 -9
- package/dist-es/tooltip.css-mistica.js +2 -2
- package/dist-es/touchable.css-mistica.js +1 -1
- package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
- package/dist-es/video.css-mistica.js +1 -1
- package/dist-es/video.js +17 -16
- package/package.json +3 -3
package/dist-es/card.js
CHANGED
|
@@ -77,21 +77,21 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
77
77
|
}
|
|
78
78
|
return target;
|
|
79
79
|
}
|
|
80
|
-
import * as
|
|
80
|
+
import * as w from "react";
|
|
81
81
|
import J from "./tag.js";
|
|
82
|
-
import
|
|
83
|
-
import
|
|
82
|
+
import f from "./stack.js";
|
|
83
|
+
import N from "./box.js";
|
|
84
84
|
import { Text2 as C, Text6 as K, Text3 as Q, Text as P } from "./text.js";
|
|
85
85
|
import { Boxed as _, InternalBoxed as W } from "./boxed.js";
|
|
86
86
|
import k from "./button-group.js";
|
|
87
87
|
import { MediaBorderRadiusProvider as U } from "./image.js";
|
|
88
88
|
import { BaseTouchable as V } from "./touchable.js";
|
|
89
|
-
import { vars as
|
|
89
|
+
import { vars as S } from "./skins/skin-contract.css-mistica.js";
|
|
90
90
|
import { boxed as D, mediaCard as Y, mediaCardContent as Z, dataCard as ee, actions as E, snapCardTouchableHover as re, snapCardTouchableHoverTransparent as ae, snapCard as ie, displayCard as X, displayCardGradient as j, cardActionIconButton as te, cardActionInverse as ne, cardAction as de } from "./card.css-mistica.js";
|
|
91
91
|
import { useTheme as H } from "./hooks.js";
|
|
92
92
|
import { sprinkles as z } from "./sprinkles.css-mistica.js";
|
|
93
93
|
import oe from "./inline.js";
|
|
94
|
-
import
|
|
94
|
+
import se from "./icon-button.js";
|
|
95
95
|
import le from "./generated/mistica-icons/icon-close-regular.js";
|
|
96
96
|
import { jsx as e, jsxs as t } from "./_virtual/jsx-runtime.js";
|
|
97
97
|
const O = (param)=>/* @__PURE__ */ {
|
|
@@ -99,8 +99,8 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
99
99
|
return e(oe, {
|
|
100
100
|
space: 0,
|
|
101
101
|
children: a.map((param, o)=>/* @__PURE__ */ {
|
|
102
|
-
let { onPress: i , label: n , Icon:
|
|
103
|
-
return e(
|
|
102
|
+
let { onPress: i , label: n , Icon: c } = param;
|
|
103
|
+
return e(se, {
|
|
104
104
|
size: 48,
|
|
105
105
|
onPress: i,
|
|
106
106
|
"aria-label": n,
|
|
@@ -110,8 +110,8 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
110
110
|
},
|
|
111
111
|
children: /* @__PURE__ */ e("div", {
|
|
112
112
|
className: r ? ne : de,
|
|
113
|
-
children: /* @__PURE__ */ e(
|
|
114
|
-
color:
|
|
113
|
+
children: /* @__PURE__ */ e(c, {
|
|
114
|
+
color: S.colors.neutralHigh,
|
|
115
115
|
size: 20
|
|
116
116
|
})
|
|
117
117
|
})
|
|
@@ -127,28 +127,28 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
127
127
|
onPress: r,
|
|
128
128
|
Icon: le
|
|
129
129
|
}), n;
|
|
130
|
-
},
|
|
130
|
+
}, ce = {
|
|
131
131
|
"1:1": "1",
|
|
132
132
|
"16:9": "16 / 9",
|
|
133
133
|
"7:10": "7 / 10",
|
|
134
134
|
"9:10": "9 / 10",
|
|
135
135
|
auto: "auto"
|
|
136
136
|
}, G = (param)=>{
|
|
137
|
-
let { children: a , width: r = "100%" , height: i = "100%" , minWidth: n , minHeight:
|
|
138
|
-
const l = L(d, h),
|
|
137
|
+
let { children: a , width: r = "100%" , height: i = "100%" , minWidth: n , minHeight: c , aspectRatio: o , actions: d , onClose: h , isInverse: p , "aria-label": s } = param;
|
|
138
|
+
const l = L(d, h), m = l.length > 0, u = o ? typeof o == "number" ? String(o) : ce[o] : void 0;
|
|
139
139
|
return /* @__PURE__ */ t("section", {
|
|
140
|
-
"aria-label":
|
|
140
|
+
"aria-label": s,
|
|
141
141
|
style: {
|
|
142
142
|
width: r,
|
|
143
143
|
height: i,
|
|
144
144
|
minWidth: n,
|
|
145
|
-
minHeight:
|
|
146
|
-
aspectRatio:
|
|
145
|
+
minHeight: c,
|
|
146
|
+
aspectRatio: u,
|
|
147
147
|
position: "relative"
|
|
148
148
|
},
|
|
149
149
|
children: [
|
|
150
150
|
a,
|
|
151
|
-
|
|
151
|
+
m && /* @__PURE__ */ e("div", {
|
|
152
152
|
style: {
|
|
153
153
|
position: "absolute",
|
|
154
154
|
right: 8,
|
|
@@ -163,8 +163,8 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
163
163
|
]
|
|
164
164
|
});
|
|
165
165
|
}, $ = (param)=>{
|
|
166
|
-
let { headline: a , pretitle: r , pretitleLinesMax: i , title: n , titleLinesMax:
|
|
167
|
-
const { textPresets:
|
|
166
|
+
let { headline: a , pretitle: r , pretitleLinesMax: i , title: n , titleLinesMax: c , subtitle: o , subtitleLinesMax: d , description: h , descriptionLinesMax: p , extra: s , button: l , buttonLink: m } = param;
|
|
167
|
+
const { textPresets: u } = H(), y = ()=>a ? typeof a == "string" ? /* @__PURE__ */ e(J, {
|
|
168
168
|
type: "promo",
|
|
169
169
|
children: a
|
|
170
170
|
}) : a : null;
|
|
@@ -178,21 +178,22 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
178
178
|
children: [
|
|
179
179
|
/* @__PURE__ */ t("div", {
|
|
180
180
|
children: [
|
|
181
|
-
/* @__PURE__ */ t(
|
|
181
|
+
/* @__PURE__ */ t(f, {
|
|
182
182
|
space: 8,
|
|
183
183
|
children: [
|
|
184
184
|
(a || r || n || o) && /* @__PURE__ */ e("header", {
|
|
185
|
-
children: /* @__PURE__ */ t(
|
|
185
|
+
children: /* @__PURE__ */ t(f, {
|
|
186
186
|
space: 8,
|
|
187
187
|
children: [
|
|
188
|
-
|
|
189
|
-
/* @__PURE__ */ t(
|
|
188
|
+
y(),
|
|
189
|
+
/* @__PURE__ */ t(f, {
|
|
190
190
|
space: 4,
|
|
191
191
|
children: [
|
|
192
192
|
r && /* @__PURE__ */ e(C, {
|
|
193
193
|
truncate: i,
|
|
194
194
|
as: "div",
|
|
195
195
|
regular: !0,
|
|
196
|
+
hyphens: "auto",
|
|
196
197
|
children: r
|
|
197
198
|
}),
|
|
198
199
|
/* @__PURE__ */ e(P, {
|
|
@@ -200,15 +201,17 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
200
201
|
mobileLineHeight: "24px",
|
|
201
202
|
desktopSize: 20,
|
|
202
203
|
desktopLineHeight: "28px",
|
|
203
|
-
truncate:
|
|
204
|
-
weight:
|
|
204
|
+
truncate: c,
|
|
205
|
+
weight: u.cardTitle.weight,
|
|
205
206
|
as: "h3",
|
|
207
|
+
hyphens: "auto",
|
|
206
208
|
children: n
|
|
207
209
|
}),
|
|
208
210
|
/* @__PURE__ */ e(C, {
|
|
209
211
|
truncate: d,
|
|
210
212
|
as: "div",
|
|
211
213
|
regular: !0,
|
|
214
|
+
hyphens: "auto",
|
|
212
215
|
children: o
|
|
213
216
|
})
|
|
214
217
|
]
|
|
@@ -220,38 +223,39 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
220
223
|
truncate: p,
|
|
221
224
|
as: "p",
|
|
222
225
|
regular: !0,
|
|
223
|
-
color:
|
|
226
|
+
color: S.colors.textSecondary,
|
|
227
|
+
hyphens: "auto",
|
|
224
228
|
children: h
|
|
225
229
|
})
|
|
226
230
|
]
|
|
227
231
|
}),
|
|
228
|
-
|
|
229
|
-
children:
|
|
232
|
+
s && /* @__PURE__ */ e("div", {
|
|
233
|
+
children: s
|
|
230
234
|
})
|
|
231
235
|
]
|
|
232
236
|
}),
|
|
233
|
-
(l ||
|
|
237
|
+
(l || m) && /* @__PURE__ */ e("div", {
|
|
234
238
|
className: E,
|
|
235
239
|
children: /* @__PURE__ */ e(k, {
|
|
236
240
|
primaryButton: l,
|
|
237
|
-
link:
|
|
241
|
+
link: m
|
|
238
242
|
})
|
|
239
243
|
})
|
|
240
244
|
]
|
|
241
245
|
});
|
|
242
|
-
}, De = /*#__PURE__*/
|
|
243
|
-
let { media: a , headline: r , pretitle: i , pretitleLinesMax: n , subtitle:
|
|
246
|
+
}, De = /*#__PURE__*/ w.forwardRef((param, v)=>/* @__PURE__ */ {
|
|
247
|
+
let { media: a , headline: r , pretitle: i , pretitleLinesMax: n , subtitle: c , subtitleLinesMax: o , title: d , titleLinesMax: h , description: p , descriptionLinesMax: s , extra: l , actions: m , button: u , buttonLink: y , dataAttributes: g , "aria-label": b , onClose: T } = param;
|
|
244
248
|
return e(G, {
|
|
245
|
-
onClose:
|
|
246
|
-
actions:
|
|
247
|
-
"aria-label":
|
|
249
|
+
onClose: T,
|
|
250
|
+
actions: m,
|
|
251
|
+
"aria-label": b,
|
|
248
252
|
isInverse: !0,
|
|
249
253
|
children: /* @__PURE__ */ e(_, {
|
|
250
254
|
className: D,
|
|
251
255
|
dataAttributes: _objectSpread({
|
|
252
256
|
"component-name": "MediaCard"
|
|
253
|
-
},
|
|
254
|
-
ref:
|
|
257
|
+
}, g),
|
|
258
|
+
ref: v,
|
|
255
259
|
width: "100%",
|
|
256
260
|
height: "100%",
|
|
257
261
|
children: /* @__PURE__ */ t("div", {
|
|
@@ -269,32 +273,32 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
269
273
|
pretitleLinesMax: n,
|
|
270
274
|
title: d,
|
|
271
275
|
titleLinesMax: h,
|
|
272
|
-
subtitle:
|
|
276
|
+
subtitle: c,
|
|
273
277
|
subtitleLinesMax: o,
|
|
274
278
|
description: p,
|
|
275
|
-
descriptionLinesMax:
|
|
279
|
+
descriptionLinesMax: s,
|
|
276
280
|
extra: l,
|
|
277
|
-
button:
|
|
278
|
-
buttonLink:
|
|
281
|
+
button: u,
|
|
282
|
+
buttonLink: y
|
|
279
283
|
})
|
|
280
284
|
})
|
|
281
285
|
]
|
|
282
286
|
})
|
|
283
287
|
})
|
|
284
288
|
});
|
|
285
|
-
}), He = /*#__PURE__*/
|
|
286
|
-
let { icon: a , headline: r , pretitle: i , pretitleLinesMax: n , title:
|
|
287
|
-
const
|
|
289
|
+
}), He = /*#__PURE__*/ w.forwardRef((param, v)=>{
|
|
290
|
+
let { icon: a , headline: r , pretitle: i , pretitleLinesMax: n , title: c , titleLinesMax: o , subtitle: d , subtitleLinesMax: h , description: p , descriptionLinesMax: s , extra: l , actions: m , button: u , buttonLink: y , dataAttributes: g , "aria-label": b , onClose: T } = param;
|
|
291
|
+
const A = L(m, T), R = A.length > 0, B = !!a, I = {
|
|
288
292
|
position: "absolute",
|
|
289
293
|
top: 8,
|
|
290
294
|
right: 8,
|
|
291
295
|
zIndex: 2
|
|
292
|
-
},
|
|
296
|
+
}, x = {
|
|
293
297
|
marginRight: -8,
|
|
294
298
|
marginTop: -16
|
|
295
299
|
};
|
|
296
300
|
return /* @__PURE__ */ e("section", {
|
|
297
|
-
"aria-label":
|
|
301
|
+
"aria-label": b,
|
|
298
302
|
style: {
|
|
299
303
|
height: "100%",
|
|
300
304
|
position: "relative"
|
|
@@ -303,8 +307,8 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
303
307
|
className: D,
|
|
304
308
|
dataAttributes: _objectSpread({
|
|
305
309
|
"component-name": "DataCard"
|
|
306
|
-
},
|
|
307
|
-
ref:
|
|
310
|
+
}, g),
|
|
311
|
+
ref: v,
|
|
308
312
|
width: "100%",
|
|
309
313
|
height: "100%",
|
|
310
314
|
children: /* @__PURE__ */ t("div", {
|
|
@@ -315,30 +319,30 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
315
319
|
display: "flex"
|
|
316
320
|
}),
|
|
317
321
|
children: [
|
|
318
|
-
/* @__PURE__ */ t(
|
|
322
|
+
/* @__PURE__ */ t(f, {
|
|
319
323
|
space: 16,
|
|
320
324
|
className: z({
|
|
321
325
|
flex: 1
|
|
322
326
|
}),
|
|
323
327
|
children: [
|
|
324
|
-
|
|
328
|
+
B ? a : null,
|
|
325
329
|
/* @__PURE__ */ e($, {
|
|
326
330
|
headline: r,
|
|
327
331
|
pretitle: i,
|
|
328
332
|
pretitleLinesMax: n,
|
|
329
|
-
title:
|
|
333
|
+
title: c,
|
|
330
334
|
titleLinesMax: o,
|
|
331
335
|
subtitle: d,
|
|
332
336
|
subtitleLinesMax: h,
|
|
333
337
|
description: p,
|
|
334
|
-
descriptionLinesMax:
|
|
338
|
+
descriptionLinesMax: s
|
|
335
339
|
})
|
|
336
340
|
]
|
|
337
341
|
}),
|
|
338
342
|
R && /* @__PURE__ */ e("div", {
|
|
339
|
-
style:
|
|
343
|
+
style: B ? I : x,
|
|
340
344
|
children: /* @__PURE__ */ e(O, {
|
|
341
|
-
actions:
|
|
345
|
+
actions: A
|
|
342
346
|
})
|
|
343
347
|
})
|
|
344
348
|
]
|
|
@@ -346,19 +350,19 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
346
350
|
l && /* @__PURE__ */ e("div", {
|
|
347
351
|
children: l
|
|
348
352
|
}),
|
|
349
|
-
(
|
|
353
|
+
(u || y) && /* @__PURE__ */ e("div", {
|
|
350
354
|
className: E,
|
|
351
355
|
children: /* @__PURE__ */ e(k, {
|
|
352
|
-
primaryButton:
|
|
353
|
-
link:
|
|
356
|
+
primaryButton: u,
|
|
357
|
+
link: y
|
|
354
358
|
})
|
|
355
359
|
})
|
|
356
360
|
]
|
|
357
361
|
})
|
|
358
362
|
})
|
|
359
363
|
});
|
|
360
|
-
}), Ie = /*#__PURE__*/
|
|
361
|
-
var { icon: a , title: r , titleLinesMax: i , subtitle: n , subtitleLinesMax:
|
|
364
|
+
}), Ie = /*#__PURE__*/ w.forwardRef((_param, l)=>{
|
|
365
|
+
var { icon: a , title: r , titleLinesMax: i , subtitle: n , subtitleLinesMax: c , dataAttributes: o , "aria-label": d , extra: h , isInverse: p = !1 } = _param, s = _objectWithoutProperties(_param, [
|
|
362
366
|
"icon",
|
|
363
367
|
"title",
|
|
364
368
|
"titleLinesMax",
|
|
@@ -369,7 +373,7 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
369
373
|
"extra",
|
|
370
374
|
"isInverse"
|
|
371
375
|
]);
|
|
372
|
-
const { isDarkMode:
|
|
376
|
+
const { isDarkMode: m } = H(), u = Boolean(s.to || s.href || s.onPress);
|
|
373
377
|
return /* @__PURE__ */ e(_, {
|
|
374
378
|
className: D,
|
|
375
379
|
dataAttributes: _objectSpread({
|
|
@@ -381,32 +385,34 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
381
385
|
height: "100%",
|
|
382
386
|
children: /* @__PURE__ */ e(V, _objectSpreadProps(_objectSpread({
|
|
383
387
|
maybe: !0
|
|
384
|
-
},
|
|
385
|
-
className:
|
|
388
|
+
}, s), {
|
|
389
|
+
className: u && !p && !m ? re : ae,
|
|
386
390
|
"aria-label": d,
|
|
387
391
|
children: /* @__PURE__ */ t("section", {
|
|
388
392
|
className: ie,
|
|
389
393
|
children: [
|
|
390
394
|
/* @__PURE__ */ t("div", {
|
|
391
395
|
children: [
|
|
392
|
-
a && /* @__PURE__ */ e(
|
|
396
|
+
a && /* @__PURE__ */ e(N, {
|
|
393
397
|
paddingBottom: 16,
|
|
394
398
|
children: a
|
|
395
399
|
}),
|
|
396
|
-
/* @__PURE__ */ t(
|
|
400
|
+
/* @__PURE__ */ t(f, {
|
|
397
401
|
space: 4,
|
|
398
402
|
children: [
|
|
399
403
|
r && /* @__PURE__ */ e(C, {
|
|
400
404
|
truncate: i,
|
|
401
405
|
as: "h3",
|
|
402
406
|
regular: !0,
|
|
407
|
+
hyphens: "auto",
|
|
403
408
|
children: r
|
|
404
409
|
}),
|
|
405
410
|
n && /* @__PURE__ */ e(C, {
|
|
406
|
-
truncate:
|
|
411
|
+
truncate: c,
|
|
407
412
|
regular: !0,
|
|
408
|
-
color:
|
|
413
|
+
color: S.colors.textSecondary,
|
|
409
414
|
as: "p",
|
|
415
|
+
hyphens: "auto",
|
|
410
416
|
children: n
|
|
411
417
|
})
|
|
412
418
|
]
|
|
@@ -420,74 +426,76 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
420
426
|
})
|
|
421
427
|
}))
|
|
422
428
|
});
|
|
423
|
-
}), q = /*#__PURE__*/
|
|
424
|
-
let { isInverse: a , backgroundImage: r , icon: i , headline: n , pretitle:
|
|
425
|
-
const
|
|
429
|
+
}), q = /*#__PURE__*/ w.forwardRef((param, I)=>{
|
|
430
|
+
let { isInverse: a , backgroundImage: r , icon: i , headline: n , pretitle: c , pretitleLinesMax: o , title: d , titleLinesMax: h , description: p , descriptionLinesMax: s , extra: l , button: m , secondaryButton: u , onClose: y , actions: g , buttonLink: b , dataAttributes: T , width: v , height: A , aspectRatio: R , "aria-label": B } = param;
|
|
431
|
+
const x = !!r, M = x ? "0 0 16px rgba(0,0,0,0.4)" : void 0, F = (g == null ? void 0 : g.length) || y;
|
|
426
432
|
return /* @__PURE__ */ e(G, {
|
|
427
|
-
width:
|
|
428
|
-
height:
|
|
433
|
+
width: v,
|
|
434
|
+
height: A,
|
|
429
435
|
aspectRatio: R,
|
|
430
|
-
onClose:
|
|
431
|
-
actions:
|
|
432
|
-
"aria-label":
|
|
436
|
+
onClose: y,
|
|
437
|
+
actions: g,
|
|
438
|
+
"aria-label": B,
|
|
433
439
|
isInverse: a,
|
|
434
440
|
children: /* @__PURE__ */ e(W, {
|
|
435
|
-
borderRadius:
|
|
441
|
+
borderRadius: S.borderRadii.legacyDisplay,
|
|
436
442
|
className: D,
|
|
437
|
-
dataAttributes:
|
|
443
|
+
dataAttributes: T,
|
|
438
444
|
ref: I,
|
|
439
445
|
width: "100%",
|
|
440
446
|
minHeight: "100%",
|
|
441
447
|
isInverse: a,
|
|
442
|
-
background: a && r ?
|
|
448
|
+
background: a && r ? S.colors.backgroundContainer : void 0,
|
|
443
449
|
children: /* @__PURE__ */ t("div", {
|
|
444
450
|
className: X,
|
|
445
451
|
style: {
|
|
446
452
|
backgroundImage: r ? `url("${CSS.escape(r)}")` : void 0,
|
|
447
|
-
paddingTop:
|
|
453
|
+
paddingTop: x && !i && !F ? 0 : 24
|
|
448
454
|
},
|
|
449
455
|
children: [
|
|
450
|
-
i ? /* @__PURE__ */ e(
|
|
451
|
-
paddingBottom:
|
|
456
|
+
i ? /* @__PURE__ */ e(N, {
|
|
457
|
+
paddingBottom: x ? 0 : 40,
|
|
452
458
|
paddingX: 24,
|
|
453
459
|
children: i
|
|
454
|
-
}) : /* @__PURE__ */ e(
|
|
455
|
-
paddingBottom: (
|
|
460
|
+
}) : /* @__PURE__ */ e(N, {
|
|
461
|
+
paddingBottom: (g == null ? void 0 : g.length) || y ? x ? 24 : 64 : 0
|
|
456
462
|
}),
|
|
457
|
-
/* @__PURE__ */ e(
|
|
463
|
+
/* @__PURE__ */ e(N, {
|
|
458
464
|
paddingX: 24,
|
|
459
|
-
paddingTop:
|
|
465
|
+
paddingTop: x ? 40 : 0,
|
|
460
466
|
paddingBottom: 24,
|
|
461
|
-
className:
|
|
462
|
-
children: /* @__PURE__ */ t(
|
|
467
|
+
className: x ? j : void 0,
|
|
468
|
+
children: /* @__PURE__ */ t(f, {
|
|
463
469
|
space: 24,
|
|
464
470
|
children: [
|
|
465
471
|
/* @__PURE__ */ t("div", {
|
|
466
472
|
children: [
|
|
467
|
-
/* @__PURE__ */ t(
|
|
473
|
+
/* @__PURE__ */ t(f, {
|
|
468
474
|
space: 8,
|
|
469
475
|
children: [
|
|
470
|
-
(n ||
|
|
471
|
-
children: /* @__PURE__ */ t(
|
|
476
|
+
(n || c || d) && /* @__PURE__ */ e("header", {
|
|
477
|
+
children: /* @__PURE__ */ t(f, {
|
|
472
478
|
space: 16,
|
|
473
479
|
children: [
|
|
474
480
|
n,
|
|
475
|
-
/* @__PURE__ */ t(
|
|
481
|
+
/* @__PURE__ */ t(f, {
|
|
476
482
|
space: 4,
|
|
477
483
|
children: [
|
|
478
|
-
|
|
484
|
+
c && /* @__PURE__ */ e(C, {
|
|
479
485
|
forceMobileSizes: !0,
|
|
480
486
|
truncate: o,
|
|
481
487
|
as: "div",
|
|
482
488
|
regular: !0,
|
|
483
489
|
textShadow: M,
|
|
484
|
-
|
|
490
|
+
hyphens: "auto",
|
|
491
|
+
children: c
|
|
485
492
|
}),
|
|
486
493
|
/* @__PURE__ */ e(K, {
|
|
487
494
|
forceMobileSizes: !0,
|
|
488
495
|
truncate: h,
|
|
489
496
|
as: "h3",
|
|
490
497
|
textShadow: M,
|
|
498
|
+
hyphens: "auto",
|
|
491
499
|
children: d
|
|
492
500
|
})
|
|
493
501
|
]
|
|
@@ -497,11 +505,12 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
497
505
|
}),
|
|
498
506
|
p && /* @__PURE__ */ e(Q, {
|
|
499
507
|
forceMobileSizes: !0,
|
|
500
|
-
truncate:
|
|
508
|
+
truncate: s,
|
|
501
509
|
as: "p",
|
|
502
510
|
regular: !0,
|
|
503
|
-
color:
|
|
511
|
+
color: S.colors.textSecondary,
|
|
504
512
|
textShadow: M,
|
|
513
|
+
hyphens: "auto",
|
|
505
514
|
children: p
|
|
506
515
|
})
|
|
507
516
|
]
|
|
@@ -509,10 +518,10 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
509
518
|
l
|
|
510
519
|
]
|
|
511
520
|
}),
|
|
512
|
-
(
|
|
513
|
-
primaryButton:
|
|
514
|
-
secondaryButton:
|
|
515
|
-
link:
|
|
521
|
+
(m || u || b) && /* @__PURE__ */ e(k, {
|
|
522
|
+
primaryButton: m,
|
|
523
|
+
secondaryButton: u,
|
|
524
|
+
link: b
|
|
516
525
|
})
|
|
517
526
|
]
|
|
518
527
|
})
|
|
@@ -521,7 +530,7 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
521
530
|
})
|
|
522
531
|
})
|
|
523
532
|
});
|
|
524
|
-
}), Me = /*#__PURE__*/
|
|
533
|
+
}), Me = /*#__PURE__*/ w.forwardRef((_param, i)=>/* @__PURE__ */ {
|
|
525
534
|
var { dataAttributes: a } = _param, r = _objectWithoutProperties(_param, [
|
|
526
535
|
"dataAttributes"
|
|
527
536
|
]);
|
|
@@ -532,7 +541,7 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
532
541
|
"component-name": "DisplayMediaCard"
|
|
533
542
|
})
|
|
534
543
|
}));
|
|
535
|
-
}), ze = /*#__PURE__*/
|
|
544
|
+
}), ze = /*#__PURE__*/ w.forwardRef((_param, i)=>/* @__PURE__ */ {
|
|
536
545
|
var { dataAttributes: a } = _param, r = _objectWithoutProperties(_param, [
|
|
537
546
|
"dataAttributes"
|
|
538
547
|
]);
|
|
@@ -542,67 +551,68 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
542
551
|
"component-name": "DisplayDataCard"
|
|
543
552
|
})
|
|
544
553
|
}));
|
|
545
|
-
}), he = 140, pe = 112, _e = /*#__PURE__*/
|
|
546
|
-
let { dataAttributes: a , backgroundImage: r , width: i , height: n , aspectRatio:
|
|
547
|
-
const
|
|
554
|
+
}), he = 140, pe = 112, _e = /*#__PURE__*/ w.forwardRef((param, T)=>{
|
|
555
|
+
let { dataAttributes: a , backgroundImage: r , width: i , height: n , aspectRatio: c = "7:10" , ariaLabel: o , actions: d , onClose: h , icon: p , headline: s , pretitle: l , pretitleLinesMax: m , title: u , titleLinesMax: y , description: g , descriptionLinesMax: b } = param;
|
|
556
|
+
const v = !!r, A = v ? "0 0 16px rgba(0,0,0,0.4)" : void 0, R = (d == null ? void 0 : d.length) || h, { textPresets: B } = H();
|
|
548
557
|
return /* @__PURE__ */ e(G, {
|
|
549
558
|
width: i,
|
|
550
559
|
height: n,
|
|
551
560
|
minWidth: he,
|
|
552
561
|
minHeight: pe,
|
|
553
|
-
aspectRatio:
|
|
562
|
+
aspectRatio: c,
|
|
554
563
|
onClose: h,
|
|
555
564
|
actions: d,
|
|
556
565
|
"aria-label": o,
|
|
557
566
|
isInverse: !0,
|
|
558
567
|
children: /* @__PURE__ */ e(W, {
|
|
559
|
-
borderRadius:
|
|
568
|
+
borderRadius: S.borderRadii.legacyDisplay,
|
|
560
569
|
className: D,
|
|
561
570
|
dataAttributes: a,
|
|
562
|
-
ref:
|
|
571
|
+
ref: T,
|
|
563
572
|
width: "100%",
|
|
564
573
|
minHeight: "100%",
|
|
565
574
|
isInverse: !0,
|
|
566
|
-
background: r ?
|
|
575
|
+
background: r ? S.colors.backgroundContainer : void 0,
|
|
567
576
|
children: /* @__PURE__ */ t("div", {
|
|
568
577
|
className: X,
|
|
569
578
|
style: {
|
|
570
579
|
backgroundImage: r ? `url("${CSS.escape(r)}")` : void 0,
|
|
571
|
-
paddingTop:
|
|
580
|
+
paddingTop: v && !p && !R ? 0 : 24
|
|
572
581
|
},
|
|
573
582
|
children: [
|
|
574
|
-
p ? /* @__PURE__ */ e(
|
|
575
|
-
paddingBottom:
|
|
583
|
+
p ? /* @__PURE__ */ e(N, {
|
|
584
|
+
paddingBottom: v ? 0 : 40,
|
|
576
585
|
paddingX: 24,
|
|
577
586
|
children: p
|
|
578
|
-
}) : /* @__PURE__ */ e(
|
|
579
|
-
paddingBottom: (d == null ? void 0 : d.length) || h ?
|
|
587
|
+
}) : /* @__PURE__ */ e(N, {
|
|
588
|
+
paddingBottom: (d == null ? void 0 : d.length) || h ? v ? 24 : 64 : 0
|
|
580
589
|
}),
|
|
581
|
-
/* @__PURE__ */ e(
|
|
590
|
+
/* @__PURE__ */ e(N, {
|
|
582
591
|
paddingX: 16,
|
|
583
|
-
paddingTop:
|
|
592
|
+
paddingTop: v ? 40 : 0,
|
|
584
593
|
paddingBottom: 24,
|
|
585
|
-
className:
|
|
586
|
-
children: /* @__PURE__ */ e(
|
|
594
|
+
className: v ? j : void 0,
|
|
595
|
+
children: /* @__PURE__ */ e(f, {
|
|
587
596
|
space: 24,
|
|
588
597
|
children: /* @__PURE__ */ e("div", {
|
|
589
|
-
children: /* @__PURE__ */ t(
|
|
598
|
+
children: /* @__PURE__ */ t(f, {
|
|
590
599
|
space: 8,
|
|
591
600
|
children: [
|
|
592
|
-
(
|
|
593
|
-
children: /* @__PURE__ */ t(
|
|
601
|
+
(s || l || u) && /* @__PURE__ */ e("header", {
|
|
602
|
+
children: /* @__PURE__ */ t(f, {
|
|
594
603
|
space: 16,
|
|
595
604
|
children: [
|
|
596
|
-
|
|
597
|
-
/* @__PURE__ */ t(
|
|
605
|
+
s,
|
|
606
|
+
/* @__PURE__ */ t(f, {
|
|
598
607
|
space: 4,
|
|
599
608
|
children: [
|
|
600
609
|
l && /* @__PURE__ */ e(C, {
|
|
601
610
|
forceMobileSizes: !0,
|
|
602
|
-
truncate:
|
|
611
|
+
truncate: m,
|
|
603
612
|
as: "div",
|
|
604
613
|
regular: !0,
|
|
605
|
-
textShadow:
|
|
614
|
+
textShadow: A,
|
|
615
|
+
hyphens: "auto",
|
|
606
616
|
children: l
|
|
607
617
|
}),
|
|
608
618
|
/* @__PURE__ */ e(P, {
|
|
@@ -610,23 +620,25 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
610
620
|
mobileSize: 18,
|
|
611
621
|
mobileLineHeight: "24px",
|
|
612
622
|
desktopLineHeight: "28px",
|
|
613
|
-
truncate:
|
|
614
|
-
weight:
|
|
623
|
+
truncate: y,
|
|
624
|
+
weight: B.cardTitle.weight,
|
|
615
625
|
as: "h3",
|
|
616
|
-
|
|
626
|
+
hyphens: "auto",
|
|
627
|
+
children: u
|
|
617
628
|
})
|
|
618
629
|
]
|
|
619
630
|
})
|
|
620
631
|
]
|
|
621
632
|
})
|
|
622
633
|
}),
|
|
623
|
-
|
|
634
|
+
g && /* @__PURE__ */ e(C, {
|
|
624
635
|
forceMobileSizes: !0,
|
|
625
|
-
truncate:
|
|
636
|
+
truncate: b,
|
|
626
637
|
as: "p",
|
|
627
638
|
regular: !0,
|
|
628
|
-
textShadow:
|
|
629
|
-
|
|
639
|
+
textShadow: A,
|
|
640
|
+
hyphens: "auto",
|
|
641
|
+
children: g
|
|
630
642
|
})
|
|
631
643
|
]
|
|
632
644
|
})
|