@telefonica/mistica 14.2.0 → 14.4.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 +3 -3
- package/dist/card.d.ts +8 -6
- package/dist/card.js +208 -179
- package/dist/date-time-picker.js +14 -14
- package/dist/empty-state-card.js +24 -20
- package/dist/header.d.ts +1 -0
- package/dist/header.js +94 -86
- package/dist/highlighted-card.js +18 -12
- package/dist/icon-button.js +8 -6
- package/dist/inline.css-mistica.js +7 -6
- package/dist/inline.css.d.ts +1 -0
- package/dist/inline.d.ts +2 -1
- package/dist/inline.js +8 -8
- package/dist/package-version.js +1 -1
- package/dist/popover.js +11 -11
- package/dist/text-link.js +5 -4
- package/dist/touchable.d.ts +1 -0
- package/dist/touchable.js +31 -27
- package/dist-es/card.css-mistica.js +2 -2
- package/dist-es/card.js +268 -239
- package/dist-es/date-time-picker.js +17 -17
- package/dist-es/empty-state-card.js +42 -38
- package/dist-es/header.js +115 -107
- package/dist-es/highlighted-card.js +35 -29
- package/dist-es/icon-button.js +24 -22
- package/dist-es/inline.css-mistica.js +6 -6
- package/dist-es/inline.js +16 -16
- package/dist-es/package-version.js +1 -1
- package/dist-es/popover.js +34 -34
- package/dist-es/style.css +1 -1
- package/dist-es/text-link.js +15 -14
- package/dist-es/touchable.js +44 -40
- package/package.json +1 -1
package/dist-es/card.js
CHANGED
|
@@ -77,196 +77,289 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
77
77
|
}
|
|
78
78
|
return target;
|
|
79
79
|
}
|
|
80
|
-
import * as
|
|
81
|
-
import
|
|
82
|
-
import
|
|
83
|
-
import
|
|
84
|
-
import { Text2 as
|
|
85
|
-
import { Boxed as
|
|
86
|
-
import
|
|
87
|
-
import { MediaBorderRadiusProvider as
|
|
88
|
-
import
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import
|
|
94
|
-
import de from "./
|
|
95
|
-
import le from "./icon-
|
|
96
|
-
import
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
80
|
+
import * as b from "react";
|
|
81
|
+
import $ from "./tag.js";
|
|
82
|
+
import v from "./stack.js";
|
|
83
|
+
import B from "./box.js";
|
|
84
|
+
import { Text2 as C, Text6 as q, Text3 as F, Text as J } from "./text.js";
|
|
85
|
+
import { Boxed as H, InternalBoxed as K } from "./boxed.js";
|
|
86
|
+
import k from "./button-group.js";
|
|
87
|
+
import { MediaBorderRadiusProvider as L } from "./image.js";
|
|
88
|
+
import { BaseTouchable as Q } from "./touchable.js";
|
|
89
|
+
import { vars as T } from "./skins/skin-contract.css-mistica.js";
|
|
90
|
+
import { boxed as D, mediaCard as U, mediaCardContent as V, dataCard as Y, actions as G, snapCardTouchableHover as Z, snapCardTouchableHoverTransparent as ee, snapCard as re, displayCard as ae, displayCardGradient as te, cardActionIconButton as ie, cardActionInverse as ne, cardAction as oe } from "./card.css-mistica.js";
|
|
91
|
+
import { useTheme as j } from "./hooks.js";
|
|
92
|
+
import { sprinkles as z } from "./sprinkles.css-mistica.js";
|
|
93
|
+
import ce from "./inline.js";
|
|
94
|
+
import de from "./icon-button.js";
|
|
95
|
+
import le from "./generated/mistica-icons/icon-close-regular.js";
|
|
96
|
+
import { jsx as e, jsxs as n } from "./_virtual/jsx-runtime.js";
|
|
97
|
+
const W = (param)=>/* @__PURE__ */ {
|
|
98
|
+
let { actions: r , isInverse: a } = param;
|
|
99
|
+
return e(ce, {
|
|
100
|
+
space: 0,
|
|
101
|
+
children: r.map((param, d)=>/* @__PURE__ */ {
|
|
102
|
+
let { onPress: i , label: t , Icon: o } = param;
|
|
103
|
+
return e(de, {
|
|
104
|
+
size: 48,
|
|
105
|
+
onPress: i,
|
|
106
|
+
"aria-label": t,
|
|
107
|
+
className: ie,
|
|
108
|
+
style: {
|
|
109
|
+
display: "flex"
|
|
110
|
+
},
|
|
111
|
+
children: /* @__PURE__ */ e("div", {
|
|
112
|
+
className: a ? ne : oe,
|
|
113
|
+
children: /* @__PURE__ */ e(o, {
|
|
114
|
+
color: T.colors.neutralHigh,
|
|
115
|
+
size: 20
|
|
116
|
+
})
|
|
117
|
+
})
|
|
118
|
+
}, d);
|
|
119
|
+
})
|
|
120
|
+
});
|
|
121
|
+
}, P = (r, a)=>{
|
|
122
|
+
const { texts: i } = j(), t = r ? [
|
|
123
|
+
...r
|
|
124
|
+
] : [];
|
|
125
|
+
return a && t.push({
|
|
126
|
+
label: i.closeButtonLabel,
|
|
127
|
+
onPress: a,
|
|
128
|
+
Icon: le
|
|
129
|
+
}), t;
|
|
130
|
+
}, se = {
|
|
131
|
+
"1:1": "1",
|
|
132
|
+
"16:9": "16 / 9",
|
|
133
|
+
"7:10": "7 / 10",
|
|
134
|
+
"9:10": "9 / 10",
|
|
135
|
+
auto: "auto"
|
|
136
|
+
}, X = (param)=>{
|
|
137
|
+
let { children: r , width: a = "100%" , height: i = "100%" , aspectRatio: t , actions: o , onClose: d , isInverse: p , "aria-label": s } = param;
|
|
138
|
+
const l = P(o, d), c = l.length > 0, h = t ? typeof t == "number" ? String(t) : se[t] : void 0;
|
|
139
|
+
return /* @__PURE__ */ n("section", {
|
|
140
|
+
"aria-label": s,
|
|
141
|
+
style: {
|
|
142
|
+
width: a,
|
|
143
|
+
height: i,
|
|
144
|
+
aspectRatio: h,
|
|
145
|
+
position: "relative"
|
|
146
|
+
},
|
|
147
|
+
children: [
|
|
148
|
+
r,
|
|
149
|
+
c && /* @__PURE__ */ e("div", {
|
|
150
|
+
style: {
|
|
151
|
+
position: "absolute",
|
|
152
|
+
right: 8,
|
|
153
|
+
top: 8,
|
|
154
|
+
zIndex: 2
|
|
155
|
+
},
|
|
156
|
+
children: /* @__PURE__ */ e(W, {
|
|
157
|
+
actions: l,
|
|
158
|
+
isInverse: p
|
|
159
|
+
})
|
|
160
|
+
})
|
|
161
|
+
]
|
|
162
|
+
});
|
|
163
|
+
}, _ = (param)=>{
|
|
164
|
+
let { headline: r , pretitle: a , pretitleLinesMax: i , title: t , titleLinesMax: o , subtitle: d , subtitleLinesMax: p , description: s , descriptionLinesMax: l , extra: c , button: h , buttonLink: m } = param;
|
|
165
|
+
const { textPresets: u } = j(), g = ()=>r ? typeof r == "string" ? /* @__PURE__ */ e($, {
|
|
101
166
|
type: "promo",
|
|
102
167
|
children: r
|
|
103
168
|
}) : r : null;
|
|
104
|
-
return /* @__PURE__ */
|
|
105
|
-
className:
|
|
169
|
+
return /* @__PURE__ */ n("div", {
|
|
170
|
+
className: z({
|
|
106
171
|
display: "flex",
|
|
107
172
|
flex: 1,
|
|
108
173
|
justifyContent: "space-between",
|
|
109
174
|
flexDirection: "column"
|
|
110
175
|
}),
|
|
111
176
|
children: [
|
|
112
|
-
/* @__PURE__ */
|
|
177
|
+
/* @__PURE__ */ n("div", {
|
|
113
178
|
children: [
|
|
114
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ n(v, {
|
|
115
180
|
space: 8,
|
|
116
181
|
children: [
|
|
117
|
-
(r || a || t ||
|
|
118
|
-
children: /* @__PURE__ */
|
|
182
|
+
(r || a || t || d) && /* @__PURE__ */ e("header", {
|
|
183
|
+
children: /* @__PURE__ */ n(v, {
|
|
119
184
|
space: 8,
|
|
120
185
|
children: [
|
|
121
|
-
|
|
122
|
-
/* @__PURE__ */
|
|
186
|
+
g(),
|
|
187
|
+
/* @__PURE__ */ n(v, {
|
|
123
188
|
space: 4,
|
|
124
189
|
children: [
|
|
125
|
-
a && /* @__PURE__ */ e(
|
|
190
|
+
a && /* @__PURE__ */ e(C, {
|
|
126
191
|
truncate: i,
|
|
127
192
|
as: "div",
|
|
128
193
|
regular: !0,
|
|
129
194
|
children: a
|
|
130
195
|
}),
|
|
131
|
-
/* @__PURE__ */ e(
|
|
196
|
+
/* @__PURE__ */ e(J, {
|
|
132
197
|
mobileSize: 18,
|
|
133
198
|
mobileLineHeight: "24px",
|
|
134
199
|
desktopSize: 20,
|
|
135
200
|
desktopLineHeight: "28px",
|
|
136
|
-
truncate:
|
|
137
|
-
weight:
|
|
201
|
+
truncate: o,
|
|
202
|
+
weight: u.cardTitle.weight,
|
|
138
203
|
as: "h3",
|
|
139
204
|
children: t
|
|
140
205
|
}),
|
|
141
|
-
/* @__PURE__ */ e(
|
|
206
|
+
/* @__PURE__ */ e(C, {
|
|
142
207
|
truncate: p,
|
|
143
208
|
as: "div",
|
|
144
209
|
regular: !0,
|
|
145
|
-
children:
|
|
210
|
+
children: d
|
|
146
211
|
})
|
|
147
212
|
]
|
|
148
213
|
})
|
|
149
214
|
]
|
|
150
215
|
})
|
|
151
216
|
}),
|
|
152
|
-
s && /* @__PURE__ */ e(
|
|
153
|
-
truncate:
|
|
217
|
+
s && /* @__PURE__ */ e(C, {
|
|
218
|
+
truncate: l,
|
|
154
219
|
as: "p",
|
|
155
220
|
regular: !0,
|
|
156
|
-
color:
|
|
221
|
+
color: T.colors.textSecondary,
|
|
157
222
|
children: s
|
|
158
223
|
})
|
|
159
224
|
]
|
|
160
225
|
}),
|
|
161
|
-
|
|
162
|
-
children:
|
|
226
|
+
c && /* @__PURE__ */ e("div", {
|
|
227
|
+
children: c
|
|
163
228
|
})
|
|
164
229
|
]
|
|
165
230
|
}),
|
|
166
|
-
(
|
|
167
|
-
className:
|
|
168
|
-
children: /* @__PURE__ */ e(
|
|
169
|
-
primaryButton:
|
|
231
|
+
(h || m) && /* @__PURE__ */ e("div", {
|
|
232
|
+
className: G,
|
|
233
|
+
children: /* @__PURE__ */ e(k, {
|
|
234
|
+
primaryButton: h,
|
|
170
235
|
link: m
|
|
171
236
|
})
|
|
172
237
|
})
|
|
173
238
|
]
|
|
174
239
|
});
|
|
175
|
-
},
|
|
176
|
-
let {
|
|
177
|
-
return
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
"aria-label": r,
|
|
185
|
-
children: t
|
|
186
|
-
});
|
|
187
|
-
}, Re = /*#__PURE__*/ x.forwardRef((param, S)=>/* @__PURE__ */ {
|
|
188
|
-
let { media: r , headline: a , pretitle: i , pretitleLinesMax: t , subtitle: n , subtitleLinesMax: l , title: p , titleLinesMax: s , description: c , descriptionLinesMax: o , extra: u , button: m , buttonLink: f , dataAttributes: b , "aria-label": h , onClose: C } = param;
|
|
189
|
-
return e(R, {
|
|
190
|
-
onClose: C,
|
|
191
|
-
"aria-label": h,
|
|
192
|
-
children: /* @__PURE__ */ e(D, {
|
|
193
|
-
className: B,
|
|
240
|
+
}, Be = /*#__PURE__*/ b.forwardRef((param, S)=>/* @__PURE__ */ {
|
|
241
|
+
let { media: r , headline: a , pretitle: i , pretitleLinesMax: t , subtitle: o , subtitleLinesMax: d , title: p , titleLinesMax: s , description: l , descriptionLinesMax: c , extra: h , actions: m , button: u , buttonLink: g , dataAttributes: f , "aria-label": x , onClose: A } = param;
|
|
242
|
+
return e(X, {
|
|
243
|
+
onClose: A,
|
|
244
|
+
actions: m,
|
|
245
|
+
"aria-label": x,
|
|
246
|
+
isInverse: !0,
|
|
247
|
+
children: /* @__PURE__ */ e(H, {
|
|
248
|
+
className: D,
|
|
194
249
|
dataAttributes: _objectSpread({
|
|
195
250
|
"component-name": "MediaCard"
|
|
196
|
-
},
|
|
251
|
+
}, f),
|
|
197
252
|
ref: S,
|
|
198
253
|
width: "100%",
|
|
199
254
|
height: "100%",
|
|
200
|
-
children: /* @__PURE__ */
|
|
201
|
-
className:
|
|
202
|
-
"aria-label": h,
|
|
255
|
+
children: /* @__PURE__ */ n("div", {
|
|
256
|
+
className: U,
|
|
203
257
|
children: [
|
|
204
|
-
/* @__PURE__ */ e(
|
|
258
|
+
/* @__PURE__ */ e(L, {
|
|
205
259
|
value: !1,
|
|
206
260
|
children: r
|
|
207
261
|
}),
|
|
208
262
|
/* @__PURE__ */ e("div", {
|
|
209
|
-
className:
|
|
210
|
-
children: /* @__PURE__ */ e(
|
|
263
|
+
className: V,
|
|
264
|
+
children: /* @__PURE__ */ e(_, {
|
|
211
265
|
headline: a,
|
|
212
266
|
pretitle: i,
|
|
213
267
|
pretitleLinesMax: t,
|
|
214
268
|
title: p,
|
|
215
269
|
titleLinesMax: s,
|
|
216
|
-
subtitle:
|
|
217
|
-
subtitleLinesMax:
|
|
218
|
-
description:
|
|
219
|
-
descriptionLinesMax:
|
|
220
|
-
extra:
|
|
221
|
-
button:
|
|
222
|
-
buttonLink:
|
|
270
|
+
subtitle: o,
|
|
271
|
+
subtitleLinesMax: d,
|
|
272
|
+
description: l,
|
|
273
|
+
descriptionLinesMax: c,
|
|
274
|
+
extra: h,
|
|
275
|
+
button: u,
|
|
276
|
+
buttonLink: g
|
|
223
277
|
})
|
|
224
278
|
})
|
|
225
279
|
]
|
|
226
280
|
})
|
|
227
281
|
})
|
|
228
282
|
});
|
|
229
|
-
}),
|
|
230
|
-
let { icon: r , headline: a , pretitle: i , pretitleLinesMax: t , title:
|
|
231
|
-
|
|
232
|
-
"
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
283
|
+
}), De = /*#__PURE__*/ b.forwardRef((param, S)=>{
|
|
284
|
+
let { icon: r , headline: a , pretitle: i , pretitleLinesMax: t , title: o , titleLinesMax: d , subtitle: p , subtitleLinesMax: s , description: l , descriptionLinesMax: c , extra: h , actions: m , button: u , buttonLink: g , dataAttributes: f , "aria-label": x , onClose: A } = param;
|
|
285
|
+
const N = P(m, A), R = N.length > 0, w = !!r, I = {
|
|
286
|
+
position: "absolute",
|
|
287
|
+
top: 8,
|
|
288
|
+
right: 8,
|
|
289
|
+
zIndex: 2
|
|
290
|
+
}, y = {
|
|
291
|
+
marginRight: -8,
|
|
292
|
+
marginTop: -16
|
|
293
|
+
};
|
|
294
|
+
return /* @__PURE__ */ e("section", {
|
|
295
|
+
"aria-label": x,
|
|
296
|
+
style: {
|
|
297
|
+
height: "100%",
|
|
298
|
+
position: "relative"
|
|
299
|
+
},
|
|
300
|
+
children: /* @__PURE__ */ e(H, {
|
|
301
|
+
className: D,
|
|
236
302
|
dataAttributes: _objectSpread({
|
|
237
303
|
"component-name": "DataCard"
|
|
238
|
-
},
|
|
304
|
+
}, f),
|
|
239
305
|
ref: S,
|
|
240
306
|
width: "100%",
|
|
241
307
|
height: "100%",
|
|
242
|
-
children: /* @__PURE__ */
|
|
243
|
-
className:
|
|
244
|
-
"aria-label": h,
|
|
308
|
+
children: /* @__PURE__ */ n("div", {
|
|
309
|
+
className: Y,
|
|
245
310
|
children: [
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
311
|
+
/* @__PURE__ */ n("div", {
|
|
312
|
+
className: z({
|
|
313
|
+
display: "flex",
|
|
314
|
+
flex: 1,
|
|
315
|
+
justifyContent: "space-between",
|
|
316
|
+
flexDirection: "row"
|
|
317
|
+
}),
|
|
318
|
+
children: [
|
|
319
|
+
/* @__PURE__ */ n(v, {
|
|
320
|
+
space: 16,
|
|
321
|
+
className: z({
|
|
322
|
+
flex: 1
|
|
323
|
+
}),
|
|
324
|
+
children: [
|
|
325
|
+
w ? r : null,
|
|
326
|
+
/* @__PURE__ */ e(_, {
|
|
327
|
+
headline: a,
|
|
328
|
+
pretitle: i,
|
|
329
|
+
pretitleLinesMax: t,
|
|
330
|
+
title: o,
|
|
331
|
+
titleLinesMax: d,
|
|
332
|
+
subtitle: p,
|
|
333
|
+
subtitleLinesMax: s,
|
|
334
|
+
description: l,
|
|
335
|
+
descriptionLinesMax: c
|
|
336
|
+
})
|
|
337
|
+
]
|
|
338
|
+
}),
|
|
339
|
+
R && /* @__PURE__ */ e("div", {
|
|
340
|
+
style: w ? I : y,
|
|
341
|
+
children: /* @__PURE__ */ e(W, {
|
|
342
|
+
actions: N
|
|
343
|
+
})
|
|
344
|
+
})
|
|
345
|
+
]
|
|
346
|
+
}),
|
|
347
|
+
h && /* @__PURE__ */ e("div", {
|
|
348
|
+
children: h
|
|
249
349
|
}),
|
|
250
|
-
/* @__PURE__ */ e(
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
subtitle: p,
|
|
257
|
-
subtitleLinesMax: s,
|
|
258
|
-
description: c,
|
|
259
|
-
descriptionLinesMax: o,
|
|
260
|
-
extra: u,
|
|
261
|
-
button: m,
|
|
262
|
-
buttonLink: f
|
|
350
|
+
(u || g) && /* @__PURE__ */ e("div", {
|
|
351
|
+
className: G,
|
|
352
|
+
children: /* @__PURE__ */ e(k, {
|
|
353
|
+
primaryButton: u,
|
|
354
|
+
link: g
|
|
355
|
+
})
|
|
263
356
|
})
|
|
264
357
|
]
|
|
265
358
|
})
|
|
266
359
|
})
|
|
267
360
|
});
|
|
268
|
-
}),
|
|
269
|
-
var { icon: r , title: a , titleLinesMax: i , subtitle: t , subtitleLinesMax:
|
|
361
|
+
}), Re = /*#__PURE__*/ b.forwardRef((_param, h)=>{
|
|
362
|
+
var { icon: r , title: a , titleLinesMax: i , subtitle: t , subtitleLinesMax: o , dataAttributes: d , "aria-label": p , extra: s , isInverse: l = !1 } = _param, c = _objectWithoutProperties(_param, [
|
|
270
363
|
"icon",
|
|
271
364
|
"title",
|
|
272
365
|
"titleLinesMax",
|
|
@@ -277,43 +370,43 @@ const z = (param)=>{
|
|
|
277
370
|
"extra",
|
|
278
371
|
"isInverse"
|
|
279
372
|
]);
|
|
280
|
-
const { isDarkMode: m } =
|
|
281
|
-
return /* @__PURE__ */ e(
|
|
282
|
-
className:
|
|
373
|
+
const { isDarkMode: m } = j(), u = Boolean(c.to || c.href || c.onPress);
|
|
374
|
+
return /* @__PURE__ */ e(H, {
|
|
375
|
+
className: D,
|
|
283
376
|
dataAttributes: _objectSpread({
|
|
284
377
|
"component-name": "SnapCard"
|
|
285
|
-
},
|
|
286
|
-
ref:
|
|
287
|
-
isInverse:
|
|
378
|
+
}, d),
|
|
379
|
+
ref: h,
|
|
380
|
+
isInverse: l,
|
|
288
381
|
width: "100%",
|
|
289
382
|
height: "100%",
|
|
290
|
-
children: /* @__PURE__ */ e(
|
|
383
|
+
children: /* @__PURE__ */ e(Q, _objectSpreadProps(_objectSpread({
|
|
291
384
|
maybe: !0
|
|
292
|
-
},
|
|
293
|
-
className:
|
|
385
|
+
}, c), {
|
|
386
|
+
className: u && !l && !m ? Z : ee,
|
|
294
387
|
"aria-label": p,
|
|
295
|
-
children: /* @__PURE__ */
|
|
296
|
-
className:
|
|
388
|
+
children: /* @__PURE__ */ n("section", {
|
|
389
|
+
className: re,
|
|
297
390
|
children: [
|
|
298
|
-
/* @__PURE__ */
|
|
391
|
+
/* @__PURE__ */ n("div", {
|
|
299
392
|
children: [
|
|
300
|
-
r && /* @__PURE__ */ e(
|
|
393
|
+
r && /* @__PURE__ */ e(B, {
|
|
301
394
|
paddingBottom: 16,
|
|
302
395
|
children: r
|
|
303
396
|
}),
|
|
304
|
-
/* @__PURE__ */
|
|
397
|
+
/* @__PURE__ */ n(v, {
|
|
305
398
|
space: 4,
|
|
306
399
|
children: [
|
|
307
|
-
a && /* @__PURE__ */ e(
|
|
400
|
+
a && /* @__PURE__ */ e(C, {
|
|
308
401
|
truncate: i,
|
|
309
402
|
as: "h3",
|
|
310
403
|
regular: !0,
|
|
311
404
|
children: a
|
|
312
405
|
}),
|
|
313
|
-
t && /* @__PURE__ */ e(
|
|
314
|
-
truncate:
|
|
406
|
+
t && /* @__PURE__ */ e(C, {
|
|
407
|
+
truncate: o,
|
|
315
408
|
regular: !0,
|
|
316
|
-
color:
|
|
409
|
+
color: T.colors.textSecondary,
|
|
317
410
|
as: "p",
|
|
318
411
|
children: t
|
|
319
412
|
})
|
|
@@ -328,138 +421,74 @@ const z = (param)=>{
|
|
|
328
421
|
})
|
|
329
422
|
}))
|
|
330
423
|
});
|
|
331
|
-
}),
|
|
332
|
-
let {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
className: ie,
|
|
342
|
-
style: {
|
|
343
|
-
display: "flex"
|
|
344
|
-
},
|
|
345
|
-
children: /* @__PURE__ */ e("div", {
|
|
346
|
-
className: a ? te : ne,
|
|
347
|
-
children: /* @__PURE__ */ e(n, {
|
|
348
|
-
color: A.colors.neutralHigh,
|
|
349
|
-
size: 20
|
|
350
|
-
})
|
|
351
|
-
})
|
|
352
|
-
}, l);
|
|
353
|
-
})
|
|
354
|
-
});
|
|
355
|
-
}, me = {
|
|
356
|
-
"1:1": "1",
|
|
357
|
-
"16:9": "16 / 9",
|
|
358
|
-
"7:10": "7 / 10",
|
|
359
|
-
"9:10": "9 / 10",
|
|
360
|
-
auto: "auto"
|
|
361
|
-
}, he = (param)=>{
|
|
362
|
-
let { children: r , width: a = "100%" , height: i = "100%" , aspectRatio: t , actions: n , onClose: l , isInverse: p , "aria-label": s } = param;
|
|
363
|
-
const { texts: c } = N(), o = n ? [
|
|
364
|
-
...n
|
|
365
|
-
] : [];
|
|
366
|
-
l && o.push({
|
|
367
|
-
label: c.closeButtonLabel,
|
|
368
|
-
onPress: l,
|
|
369
|
-
Icon: se
|
|
370
|
-
});
|
|
371
|
-
const u = o.length > 0, m = t ? typeof t == "number" ? String(t) : me[t] : void 0;
|
|
372
|
-
return /* @__PURE__ */ d("section", {
|
|
373
|
-
"aria-label": s,
|
|
374
|
-
style: {
|
|
375
|
-
width: a,
|
|
376
|
-
height: i,
|
|
377
|
-
aspectRatio: m,
|
|
378
|
-
position: "relative"
|
|
379
|
-
},
|
|
380
|
-
children: [
|
|
381
|
-
r,
|
|
382
|
-
u && /* @__PURE__ */ e("div", {
|
|
383
|
-
style: {
|
|
384
|
-
position: "absolute",
|
|
385
|
-
right: 8,
|
|
386
|
-
top: 8
|
|
387
|
-
},
|
|
388
|
-
children: /* @__PURE__ */ e(ce, {
|
|
389
|
-
actions: o,
|
|
390
|
-
isInverse: p
|
|
391
|
-
})
|
|
392
|
-
})
|
|
393
|
-
]
|
|
394
|
-
});
|
|
395
|
-
}, k = /*#__PURE__*/ x.forwardRef((param, X)=>{
|
|
396
|
-
let { isInverse: r , backgroundImage: a , icon: i , headline: t , pretitle: n , pretitleLinesMax: l , title: p , titleLinesMax: s , description: c , descriptionLinesMax: o , extra: u , button: m , secondaryButton: f , onClose: b , actions: h , buttonLink: C , dataAttributes: S , width: I , height: G , aspectRatio: j , "aria-label": P } = param;
|
|
397
|
-
const v = !!a, w = v ? "0 0 16px rgba(0,0,0,0.4)" : void 0, _ = (h == null ? void 0 : h.length) || b;
|
|
398
|
-
return /* @__PURE__ */ e(he, {
|
|
399
|
-
width: I,
|
|
400
|
-
height: G,
|
|
401
|
-
aspectRatio: j,
|
|
402
|
-
onClose: b,
|
|
403
|
-
actions: h,
|
|
404
|
-
"aria-label": P,
|
|
424
|
+
}), E = /*#__PURE__*/ b.forwardRef((param, I)=>{
|
|
425
|
+
let { isInverse: r , backgroundImage: a , icon: i , headline: t , pretitle: o , pretitleLinesMax: d , title: p , titleLinesMax: s , description: l , descriptionLinesMax: c , extra: h , button: m , secondaryButton: u , onClose: g , actions: f , buttonLink: x , dataAttributes: A , width: S , height: N , aspectRatio: R , "aria-label": w } = param;
|
|
426
|
+
const y = !!a, M = y ? "0 0 16px rgba(0,0,0,0.4)" : void 0, O = (f == null ? void 0 : f.length) || g;
|
|
427
|
+
return /* @__PURE__ */ e(X, {
|
|
428
|
+
width: S,
|
|
429
|
+
height: N,
|
|
430
|
+
aspectRatio: R,
|
|
431
|
+
onClose: g,
|
|
432
|
+
actions: f,
|
|
433
|
+
"aria-label": w,
|
|
405
434
|
isInverse: r,
|
|
406
|
-
children: /* @__PURE__ */ e(
|
|
435
|
+
children: /* @__PURE__ */ e(K, {
|
|
407
436
|
borderRadius: 16,
|
|
408
|
-
className:
|
|
409
|
-
dataAttributes:
|
|
410
|
-
ref:
|
|
437
|
+
className: D,
|
|
438
|
+
dataAttributes: A,
|
|
439
|
+
ref: I,
|
|
411
440
|
width: "100%",
|
|
412
441
|
minHeight: "100%",
|
|
413
442
|
isInverse: r,
|
|
414
|
-
background: r && a ?
|
|
415
|
-
children: /* @__PURE__ */
|
|
416
|
-
className:
|
|
443
|
+
background: r && a ? T.colors.backgroundContainer : void 0,
|
|
444
|
+
children: /* @__PURE__ */ n("div", {
|
|
445
|
+
className: ae,
|
|
417
446
|
style: {
|
|
418
447
|
backgroundImage: a ? `url("${CSS.escape(a)}")` : void 0,
|
|
419
|
-
paddingTop:
|
|
448
|
+
paddingTop: y && !i && !O ? 0 : 24
|
|
420
449
|
},
|
|
421
450
|
children: [
|
|
422
|
-
i ? /* @__PURE__ */ e(
|
|
423
|
-
paddingBottom:
|
|
451
|
+
i ? /* @__PURE__ */ e(B, {
|
|
452
|
+
paddingBottom: y ? 0 : 40,
|
|
424
453
|
paddingX: 24,
|
|
425
454
|
children: i
|
|
426
|
-
}) : /* @__PURE__ */ e(
|
|
427
|
-
paddingBottom: (
|
|
455
|
+
}) : /* @__PURE__ */ e(B, {
|
|
456
|
+
paddingBottom: (f == null ? void 0 : f.length) || g ? y ? 24 : 64 : 0
|
|
428
457
|
}),
|
|
429
|
-
/* @__PURE__ */ e(
|
|
458
|
+
/* @__PURE__ */ e(B, {
|
|
430
459
|
paddingX: 24,
|
|
431
|
-
paddingTop:
|
|
460
|
+
paddingTop: y ? 40 : 0,
|
|
432
461
|
paddingBottom: 24,
|
|
433
|
-
className:
|
|
434
|
-
children: /* @__PURE__ */
|
|
462
|
+
className: y ? te : void 0,
|
|
463
|
+
children: /* @__PURE__ */ n(v, {
|
|
435
464
|
space: 24,
|
|
436
465
|
children: [
|
|
437
|
-
/* @__PURE__ */
|
|
466
|
+
/* @__PURE__ */ n("div", {
|
|
438
467
|
children: [
|
|
439
|
-
/* @__PURE__ */
|
|
468
|
+
/* @__PURE__ */ n(v, {
|
|
440
469
|
space: 8,
|
|
441
470
|
children: [
|
|
442
|
-
(t ||
|
|
443
|
-
children: /* @__PURE__ */
|
|
471
|
+
(t || o || p) && /* @__PURE__ */ e("header", {
|
|
472
|
+
children: /* @__PURE__ */ n(v, {
|
|
444
473
|
space: 16,
|
|
445
474
|
children: [
|
|
446
475
|
t,
|
|
447
|
-
/* @__PURE__ */
|
|
476
|
+
/* @__PURE__ */ n(v, {
|
|
448
477
|
space: 4,
|
|
449
478
|
children: [
|
|
450
|
-
|
|
479
|
+
o && /* @__PURE__ */ e(C, {
|
|
451
480
|
forceMobileSizes: !0,
|
|
452
|
-
truncate:
|
|
481
|
+
truncate: d,
|
|
453
482
|
as: "div",
|
|
454
483
|
regular: !0,
|
|
455
|
-
textShadow:
|
|
456
|
-
children:
|
|
484
|
+
textShadow: M,
|
|
485
|
+
children: o
|
|
457
486
|
}),
|
|
458
|
-
/* @__PURE__ */ e(
|
|
487
|
+
/* @__PURE__ */ e(q, {
|
|
459
488
|
forceMobileSizes: !0,
|
|
460
489
|
truncate: s,
|
|
461
490
|
as: "h3",
|
|
462
|
-
textShadow:
|
|
491
|
+
textShadow: M,
|
|
463
492
|
children: p
|
|
464
493
|
})
|
|
465
494
|
]
|
|
@@ -467,24 +496,24 @@ const z = (param)=>{
|
|
|
467
496
|
]
|
|
468
497
|
})
|
|
469
498
|
}),
|
|
470
|
-
|
|
499
|
+
l && /* @__PURE__ */ e(F, {
|
|
471
500
|
forceMobileSizes: !0,
|
|
472
|
-
truncate:
|
|
501
|
+
truncate: c,
|
|
473
502
|
as: "p",
|
|
474
503
|
regular: !0,
|
|
475
|
-
color:
|
|
476
|
-
textShadow:
|
|
477
|
-
children:
|
|
504
|
+
color: T.colors.textSecondary,
|
|
505
|
+
textShadow: M,
|
|
506
|
+
children: l
|
|
478
507
|
})
|
|
479
508
|
]
|
|
480
509
|
}),
|
|
481
|
-
|
|
510
|
+
h
|
|
482
511
|
]
|
|
483
512
|
}),
|
|
484
|
-
(m ||
|
|
513
|
+
(m || u || x) && /* @__PURE__ */ e(k, {
|
|
485
514
|
primaryButton: m,
|
|
486
|
-
secondaryButton:
|
|
487
|
-
link:
|
|
515
|
+
secondaryButton: u,
|
|
516
|
+
link: x
|
|
488
517
|
})
|
|
489
518
|
]
|
|
490
519
|
})
|
|
@@ -493,26 +522,26 @@ const z = (param)=>{
|
|
|
493
522
|
})
|
|
494
523
|
})
|
|
495
524
|
});
|
|
496
|
-
}),
|
|
525
|
+
}), Ie = /*#__PURE__*/ b.forwardRef((_param, i)=>/* @__PURE__ */ {
|
|
497
526
|
var { dataAttributes: r } = _param, a = _objectWithoutProperties(_param, [
|
|
498
527
|
"dataAttributes"
|
|
499
528
|
]);
|
|
500
|
-
return e(
|
|
529
|
+
return e(E, _objectSpreadProps(_objectSpread({}, a), {
|
|
501
530
|
ref: i,
|
|
502
531
|
isInverse: !0,
|
|
503
532
|
dataAttributes: _objectSpreadProps(_objectSpread({}, r), {
|
|
504
533
|
"component-name": "DisplayMediaCard"
|
|
505
534
|
})
|
|
506
535
|
}));
|
|
507
|
-
}),
|
|
536
|
+
}), Me = /*#__PURE__*/ b.forwardRef((_param, i)=>/* @__PURE__ */ {
|
|
508
537
|
var { dataAttributes: r } = _param, a = _objectWithoutProperties(_param, [
|
|
509
538
|
"dataAttributes"
|
|
510
539
|
]);
|
|
511
|
-
return e(
|
|
540
|
+
return e(E, _objectSpreadProps(_objectSpread({}, a), {
|
|
512
541
|
ref: i,
|
|
513
542
|
dataAttributes: _objectSpreadProps(_objectSpread({}, r), {
|
|
514
543
|
"component-name": "DisplayDataCard"
|
|
515
544
|
})
|
|
516
545
|
}));
|
|
517
546
|
});
|
|
518
|
-
export {
|
|
547
|
+
export { De as DataCard, Me as DisplayDataCard, Ie as DisplayMediaCard, Be as MediaCard, Re as SnapCard };
|