@telefonica/mistica 13.6.0 → 14.0.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.js +84 -80
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/package-version.js +1 -1
- package/dist/skins/blau.js +2 -2
- package/dist/skins/movistar-legacy.d.ts +45 -0
- package/dist/skins/movistar-legacy.js +260 -0
- package/dist/skins/movistar.d.ts +8 -2
- package/dist/skins/movistar.js +49 -43
- package/dist/skins/o2-classic.js +1 -1
- package/dist/skins/o2.js +1 -1
- package/dist/skins/telefonica.js +1 -1
- package/dist/skins/types.d.ts +1 -1
- package/dist/skins/utils.js +2 -2
- package/dist/skins/vivo.js +1 -1
- package/dist/text-field.js +33 -22
- package/dist/theme-context-provider.js +28 -24
- package/dist/video.d.ts +1 -2
- package/dist/video.js +0 -1
- package/dist-es/card.js +151 -147
- package/dist-es/index.js +1651 -1650
- package/dist-es/package-version.js +1 -1
- package/dist-es/skins/blau.js +2 -2
- package/dist-es/skins/movistar-legacy.js +247 -0
- package/dist-es/skins/movistar.js +51 -45
- package/dist-es/skins/o2-classic.js +1 -1
- package/dist-es/skins/o2.js +1 -1
- package/dist-es/skins/telefonica.js +1 -1
- package/dist-es/skins/utils.js +4 -4
- package/dist-es/skins/vivo.js +1 -1
- package/dist-es/style.css +1 -1
- package/dist-es/text-field.js +38 -27
- package/dist-es/theme-context-provider.js +61 -57
- package/dist-es/video.js +0 -1
- package/package.json +1 -1
package/dist/card.js
CHANGED
|
@@ -9,11 +9,11 @@ function _export(target, all) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
DataCard: ()=>
|
|
13
|
-
DisplayDataCard: ()=>
|
|
14
|
-
DisplayMediaCard: ()=>
|
|
15
|
-
MediaCard: ()=>
|
|
16
|
-
SnapCard: ()=>
|
|
12
|
+
DataCard: ()=>ze,
|
|
13
|
+
DisplayDataCard: ()=>Ie,
|
|
14
|
+
DisplayMediaCard: ()=>ke,
|
|
15
|
+
MediaCard: ()=>Re,
|
|
16
|
+
SnapCard: ()=>He
|
|
17
17
|
});
|
|
18
18
|
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
19
19
|
const _tagJs = /*#__PURE__*/ _interopRequireDefault(require("./tag.js"));
|
|
@@ -157,11 +157,11 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
157
157
|
return target;
|
|
158
158
|
}
|
|
159
159
|
const z = (param)=>{
|
|
160
|
-
let { headline:
|
|
161
|
-
const f = ()=>
|
|
160
|
+
let { headline: r , pretitle: a , pretitleLinesMax: i , title: t , titleLinesMax: n , subtitle: l , subtitleLinesMax: p , description: s , descriptionLinesMax: c , extra: o , button: u , buttonLink: m } = param;
|
|
161
|
+
const { textPresets: f } = (0, _hooksJs.useTheme)(), b = ()=>r ? typeof r == "string" ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_tagJs.default, {
|
|
162
162
|
type: "promo",
|
|
163
|
-
children:
|
|
164
|
-
}) :
|
|
163
|
+
children: r
|
|
164
|
+
}) : r : null;
|
|
165
165
|
return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("div", {
|
|
166
166
|
className: (0, _sprinklesCssMisticaJs.sprinkles)({
|
|
167
167
|
display: "flex",
|
|
@@ -175,11 +175,11 @@ const z = (param)=>{
|
|
|
175
175
|
/* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
|
|
176
176
|
space: 8,
|
|
177
177
|
children: [
|
|
178
|
-
(
|
|
178
|
+
(r || a || t || l) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("header", {
|
|
179
179
|
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
|
|
180
180
|
space: 8,
|
|
181
181
|
children: [
|
|
182
|
-
|
|
182
|
+
b(),
|
|
183
183
|
/* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
|
|
184
184
|
space: 4,
|
|
185
185
|
children: [
|
|
@@ -189,10 +189,14 @@ const z = (param)=>{
|
|
|
189
189
|
regular: !0,
|
|
190
190
|
children: a
|
|
191
191
|
}),
|
|
192
|
-
/* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.
|
|
192
|
+
/* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text, {
|
|
193
|
+
mobileSize: 18,
|
|
194
|
+
mobileLineHeight: "24px",
|
|
195
|
+
desktopSize: 20,
|
|
196
|
+
desktopLineHeight: "28px",
|
|
193
197
|
truncate: n,
|
|
198
|
+
weight: f.cardTitle.weight,
|
|
194
199
|
as: "h3",
|
|
195
|
-
regular: !0,
|
|
196
200
|
children: t
|
|
197
201
|
}),
|
|
198
202
|
/* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text2, {
|
|
@@ -206,12 +210,12 @@ const z = (param)=>{
|
|
|
206
210
|
]
|
|
207
211
|
})
|
|
208
212
|
}),
|
|
209
|
-
|
|
210
|
-
truncate:
|
|
213
|
+
s && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text2, {
|
|
214
|
+
truncate: c,
|
|
211
215
|
as: "p",
|
|
212
216
|
regular: !0,
|
|
213
217
|
color: _skinContractCssMisticaJs.vars.colors.textSecondary,
|
|
214
|
-
children:
|
|
218
|
+
children: s
|
|
215
219
|
})
|
|
216
220
|
]
|
|
217
221
|
}),
|
|
@@ -230,7 +234,7 @@ const z = (param)=>{
|
|
|
230
234
|
]
|
|
231
235
|
});
|
|
232
236
|
}, H = (param)=>{
|
|
233
|
-
let { "aria-label":
|
|
237
|
+
let { "aria-label": r , className: a , style: i , children: t } = param;
|
|
234
238
|
return (0, _maybeDismissableJs.useIsDismissable)() ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
|
|
235
239
|
className: a,
|
|
236
240
|
style: i,
|
|
@@ -238,11 +242,11 @@ const z = (param)=>{
|
|
|
238
242
|
}) : /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("section", {
|
|
239
243
|
className: a,
|
|
240
244
|
style: i,
|
|
241
|
-
"aria-label":
|
|
245
|
+
"aria-label": r,
|
|
242
246
|
children: t
|
|
243
247
|
});
|
|
244
|
-
},
|
|
245
|
-
let { media:
|
|
248
|
+
}, Re = /*#__PURE__*/ _react.forwardRef((param, S)=>/* @__PURE__ */ {
|
|
249
|
+
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;
|
|
246
250
|
return (0, _jsxRuntimeJs.jsx)(_maybeDismissableJs.default, {
|
|
247
251
|
onClose: C,
|
|
248
252
|
"aria-label": h,
|
|
@@ -250,7 +254,7 @@ const z = (param)=>{
|
|
|
250
254
|
className: _cardCssMisticaJs.boxed,
|
|
251
255
|
dataAttributes: _objectSpread({
|
|
252
256
|
"component-name": "MediaCard"
|
|
253
|
-
},
|
|
257
|
+
}, b),
|
|
254
258
|
ref: S,
|
|
255
259
|
width: "100%",
|
|
256
260
|
height: "100%",
|
|
@@ -260,7 +264,7 @@ const z = (param)=>{
|
|
|
260
264
|
children: [
|
|
261
265
|
/* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_imageJs.MediaBorderRadiusProvider, {
|
|
262
266
|
value: !1,
|
|
263
|
-
children:
|
|
267
|
+
children: r
|
|
264
268
|
}),
|
|
265
269
|
/* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
|
|
266
270
|
className: _cardCssMisticaJs.mediaCardContent,
|
|
@@ -269,10 +273,10 @@ const z = (param)=>{
|
|
|
269
273
|
pretitle: i,
|
|
270
274
|
pretitleLinesMax: t,
|
|
271
275
|
title: p,
|
|
272
|
-
titleLinesMax:
|
|
276
|
+
titleLinesMax: s,
|
|
273
277
|
subtitle: n,
|
|
274
278
|
subtitleLinesMax: l,
|
|
275
|
-
description:
|
|
279
|
+
description: c,
|
|
276
280
|
descriptionLinesMax: o,
|
|
277
281
|
extra: u,
|
|
278
282
|
button: m,
|
|
@@ -283,8 +287,8 @@ const z = (param)=>{
|
|
|
283
287
|
})
|
|
284
288
|
})
|
|
285
289
|
});
|
|
286
|
-
}),
|
|
287
|
-
let { icon:
|
|
290
|
+
}), ze = /*#__PURE__*/ _react.forwardRef((param, S)=>/* @__PURE__ */ {
|
|
291
|
+
let { icon: r , headline: a , pretitle: i , pretitleLinesMax: t , title: n , titleLinesMax: l , subtitle: p , subtitleLinesMax: s , description: c , descriptionLinesMax: o , extra: u , button: m , buttonLink: f , dataAttributes: b , "aria-label": h , onClose: C } = param;
|
|
288
292
|
return (0, _jsxRuntimeJs.jsx)(_maybeDismissableJs.default, {
|
|
289
293
|
"aria-label": h,
|
|
290
294
|
onClose: C,
|
|
@@ -292,7 +296,7 @@ const z = (param)=>{
|
|
|
292
296
|
className: _cardCssMisticaJs.boxed,
|
|
293
297
|
dataAttributes: _objectSpread({
|
|
294
298
|
"component-name": "DataCard"
|
|
295
|
-
},
|
|
299
|
+
}, b),
|
|
296
300
|
ref: S,
|
|
297
301
|
width: "100%",
|
|
298
302
|
height: "100%",
|
|
@@ -300,9 +304,9 @@ const z = (param)=>{
|
|
|
300
304
|
className: _cardCssMisticaJs.dataCard,
|
|
301
305
|
"aria-label": h,
|
|
302
306
|
children: [
|
|
303
|
-
|
|
307
|
+
r && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
|
|
304
308
|
paddingBottom: 16,
|
|
305
|
-
children:
|
|
309
|
+
children: r
|
|
306
310
|
}),
|
|
307
311
|
/* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(z, {
|
|
308
312
|
headline: a,
|
|
@@ -311,8 +315,8 @@ const z = (param)=>{
|
|
|
311
315
|
title: n,
|
|
312
316
|
titleLinesMax: l,
|
|
313
317
|
subtitle: p,
|
|
314
|
-
subtitleLinesMax:
|
|
315
|
-
description:
|
|
318
|
+
subtitleLinesMax: s,
|
|
319
|
+
description: c,
|
|
316
320
|
descriptionLinesMax: o,
|
|
317
321
|
extra: u,
|
|
318
322
|
button: m,
|
|
@@ -322,8 +326,8 @@ const z = (param)=>{
|
|
|
322
326
|
})
|
|
323
327
|
})
|
|
324
328
|
});
|
|
325
|
-
}),
|
|
326
|
-
var { icon:
|
|
329
|
+
}), He = /*#__PURE__*/ _react.forwardRef((_param, u)=>{
|
|
330
|
+
var { icon: r , title: a , titleLinesMax: i , subtitle: t , subtitleLinesMax: n , dataAttributes: l , "aria-label": p , extra: s , isInverse: c = !1 } = _param, o = _objectWithoutProperties(_param, [
|
|
327
331
|
"icon",
|
|
328
332
|
"title",
|
|
329
333
|
"titleLinesMax",
|
|
@@ -341,22 +345,22 @@ const z = (param)=>{
|
|
|
341
345
|
"component-name": "SnapCard"
|
|
342
346
|
}, l),
|
|
343
347
|
ref: u,
|
|
344
|
-
isInverse:
|
|
348
|
+
isInverse: c,
|
|
345
349
|
width: "100%",
|
|
346
350
|
height: "100%",
|
|
347
351
|
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_touchableJs.BaseTouchable, _objectSpreadProps(_objectSpread({
|
|
348
352
|
maybe: !0
|
|
349
353
|
}, o), {
|
|
350
|
-
className: f && !
|
|
354
|
+
className: f && !c && !m ? _cardCssMisticaJs.snapCardTouchableHover : _cardCssMisticaJs.snapCardTouchableHoverTransparent,
|
|
351
355
|
"aria-label": p,
|
|
352
356
|
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("section", {
|
|
353
357
|
className: _cardCssMisticaJs.snapCard,
|
|
354
358
|
children: [
|
|
355
359
|
/* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("div", {
|
|
356
360
|
children: [
|
|
357
|
-
|
|
361
|
+
r && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
|
|
358
362
|
paddingBottom: 16,
|
|
359
|
-
children:
|
|
363
|
+
children: r
|
|
360
364
|
}),
|
|
361
365
|
/* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
|
|
362
366
|
space: 4,
|
|
@@ -378,18 +382,18 @@ const z = (param)=>{
|
|
|
378
382
|
})
|
|
379
383
|
]
|
|
380
384
|
}),
|
|
381
|
-
|
|
382
|
-
children:
|
|
385
|
+
s && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
|
|
386
|
+
children: s
|
|
383
387
|
})
|
|
384
388
|
]
|
|
385
389
|
})
|
|
386
390
|
}))
|
|
387
391
|
});
|
|
388
|
-
}),
|
|
389
|
-
let { actions:
|
|
392
|
+
}), ce = (param)=>/* @__PURE__ */ {
|
|
393
|
+
let { actions: r , isInverse: a } = param;
|
|
390
394
|
return (0, _jsxRuntimeJs.jsx)(_inlineJs.default, {
|
|
391
395
|
space: 0,
|
|
392
|
-
children:
|
|
396
|
+
children: r.map((param, l)=>/* @__PURE__ */ {
|
|
393
397
|
let { onPress: i , label: t , Icon: n } = param;
|
|
394
398
|
return (0, _jsxRuntimeJs.jsx)(_iconButtonJs.default, {
|
|
395
399
|
size: 48,
|
|
@@ -409,25 +413,25 @@ const z = (param)=>{
|
|
|
409
413
|
}, l);
|
|
410
414
|
})
|
|
411
415
|
});
|
|
412
|
-
},
|
|
416
|
+
}, me = {
|
|
413
417
|
"1:1": "1",
|
|
414
418
|
"16:9": "16 / 9",
|
|
415
419
|
"7:10": "7 / 10",
|
|
416
420
|
"9:10": "9 / 10",
|
|
417
421
|
auto: "auto"
|
|
418
|
-
},
|
|
419
|
-
let { children:
|
|
420
|
-
const { texts:
|
|
422
|
+
}, he = (param)=>{
|
|
423
|
+
let { children: r , width: a = "100%" , height: i = "100%" , aspectRatio: t , actions: n , onClose: l , isInverse: p , "aria-label": s } = param;
|
|
424
|
+
const { texts: c } = (0, _hooksJs.useTheme)(), o = n ? [
|
|
421
425
|
...n
|
|
422
426
|
] : [];
|
|
423
427
|
l && o.push({
|
|
424
|
-
label:
|
|
428
|
+
label: c.closeButtonLabel,
|
|
425
429
|
onPress: l,
|
|
426
430
|
Icon: _iconCloseRegularJs.default
|
|
427
431
|
});
|
|
428
|
-
const u = o.length > 0, m = t ? typeof t == "number" ? String(t) :
|
|
432
|
+
const u = o.length > 0, m = t ? typeof t == "number" ? String(t) : me[t] : void 0;
|
|
429
433
|
return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("section", {
|
|
430
|
-
"aria-label":
|
|
434
|
+
"aria-label": s,
|
|
431
435
|
style: {
|
|
432
436
|
width: a,
|
|
433
437
|
height: i,
|
|
@@ -435,45 +439,45 @@ const z = (param)=>{
|
|
|
435
439
|
position: "relative"
|
|
436
440
|
},
|
|
437
441
|
children: [
|
|
438
|
-
|
|
442
|
+
r,
|
|
439
443
|
u && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
|
|
440
444
|
style: {
|
|
441
445
|
position: "absolute",
|
|
442
446
|
right: 8,
|
|
443
447
|
top: 8
|
|
444
448
|
},
|
|
445
|
-
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(
|
|
449
|
+
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(ce, {
|
|
446
450
|
actions: o,
|
|
447
451
|
isInverse: p
|
|
448
452
|
})
|
|
449
453
|
})
|
|
450
454
|
]
|
|
451
455
|
});
|
|
452
|
-
},
|
|
453
|
-
let { isInverse:
|
|
454
|
-
const v = !!a,
|
|
455
|
-
return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(
|
|
456
|
-
width:
|
|
457
|
-
height:
|
|
458
|
-
aspectRatio:
|
|
459
|
-
onClose:
|
|
456
|
+
}, k = /*#__PURE__*/ _react.forwardRef((param, X)=>{
|
|
457
|
+
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;
|
|
458
|
+
const v = !!a, w = v ? "0 0 16px rgba(0,0,0,0.4)" : void 0, _ = (h == null ? void 0 : h.length) || b;
|
|
459
|
+
return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(he, {
|
|
460
|
+
width: I,
|
|
461
|
+
height: G,
|
|
462
|
+
aspectRatio: j,
|
|
463
|
+
onClose: b,
|
|
460
464
|
actions: h,
|
|
461
|
-
"aria-label":
|
|
462
|
-
isInverse:
|
|
465
|
+
"aria-label": P,
|
|
466
|
+
isInverse: r,
|
|
463
467
|
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxedJs.InternalBoxed, {
|
|
464
468
|
borderRadius: 16,
|
|
465
469
|
className: _cardCssMisticaJs.boxed,
|
|
466
470
|
dataAttributes: S,
|
|
467
|
-
ref:
|
|
471
|
+
ref: X,
|
|
468
472
|
width: "100%",
|
|
469
473
|
minHeight: "100%",
|
|
470
|
-
isInverse:
|
|
471
|
-
background:
|
|
474
|
+
isInverse: r,
|
|
475
|
+
background: r && a ? _skinContractCssMisticaJs.vars.colors.backgroundContainer : void 0,
|
|
472
476
|
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("div", {
|
|
473
477
|
className: _cardCssMisticaJs.displayCard,
|
|
474
478
|
style: {
|
|
475
479
|
backgroundImage: a ? `url("${CSS.escape(a)}")` : void 0,
|
|
476
|
-
paddingTop: v && !i && !
|
|
480
|
+
paddingTop: v && !i && !_ ? 0 : 24
|
|
477
481
|
},
|
|
478
482
|
children: [
|
|
479
483
|
i ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
|
|
@@ -481,7 +485,7 @@ const z = (param)=>{
|
|
|
481
485
|
paddingX: 24,
|
|
482
486
|
children: i
|
|
483
487
|
}) : /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
|
|
484
|
-
paddingBottom: (h == null ? void 0 : h.length) ||
|
|
488
|
+
paddingBottom: (h == null ? void 0 : h.length) || b ? v ? 24 : 64 : 0
|
|
485
489
|
}),
|
|
486
490
|
/* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
|
|
487
491
|
paddingX: 24,
|
|
@@ -509,14 +513,14 @@ const z = (param)=>{
|
|
|
509
513
|
truncate: l,
|
|
510
514
|
as: "div",
|
|
511
515
|
regular: !0,
|
|
512
|
-
textShadow:
|
|
516
|
+
textShadow: w,
|
|
513
517
|
children: n
|
|
514
518
|
}),
|
|
515
519
|
/* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text6, {
|
|
516
520
|
forceMobileSizes: !0,
|
|
517
|
-
truncate:
|
|
521
|
+
truncate: s,
|
|
518
522
|
as: "h3",
|
|
519
|
-
textShadow:
|
|
523
|
+
textShadow: w,
|
|
520
524
|
children: p
|
|
521
525
|
})
|
|
522
526
|
]
|
|
@@ -524,14 +528,14 @@ const z = (param)=>{
|
|
|
524
528
|
]
|
|
525
529
|
})
|
|
526
530
|
}),
|
|
527
|
-
|
|
531
|
+
c && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text3, {
|
|
528
532
|
forceMobileSizes: !0,
|
|
529
533
|
truncate: o,
|
|
530
534
|
as: "p",
|
|
531
535
|
regular: !0,
|
|
532
536
|
color: _skinContractCssMisticaJs.vars.colors.textSecondary,
|
|
533
|
-
textShadow:
|
|
534
|
-
children:
|
|
537
|
+
textShadow: w,
|
|
538
|
+
children: c
|
|
535
539
|
})
|
|
536
540
|
]
|
|
537
541
|
}),
|
|
@@ -550,24 +554,24 @@ const z = (param)=>{
|
|
|
550
554
|
})
|
|
551
555
|
})
|
|
552
556
|
});
|
|
553
|
-
}),
|
|
554
|
-
var { dataAttributes:
|
|
557
|
+
}), ke = /*#__PURE__*/ _react.forwardRef((_param, i)=>/* @__PURE__ */ {
|
|
558
|
+
var { dataAttributes: r } = _param, a = _objectWithoutProperties(_param, [
|
|
555
559
|
"dataAttributes"
|
|
556
560
|
]);
|
|
557
|
-
return (0, _jsxRuntimeJs.jsx)(
|
|
561
|
+
return (0, _jsxRuntimeJs.jsx)(k, _objectSpreadProps(_objectSpread({}, a), {
|
|
558
562
|
ref: i,
|
|
559
563
|
isInverse: !0,
|
|
560
|
-
dataAttributes: _objectSpreadProps(_objectSpread({},
|
|
564
|
+
dataAttributes: _objectSpreadProps(_objectSpread({}, r), {
|
|
561
565
|
"component-name": "DisplayMediaCard"
|
|
562
566
|
})
|
|
563
567
|
}));
|
|
564
|
-
}),
|
|
565
|
-
var { dataAttributes:
|
|
568
|
+
}), Ie = /*#__PURE__*/ _react.forwardRef((_param, i)=>/* @__PURE__ */ {
|
|
569
|
+
var { dataAttributes: r } = _param, a = _objectWithoutProperties(_param, [
|
|
566
570
|
"dataAttributes"
|
|
567
571
|
]);
|
|
568
|
-
return (0, _jsxRuntimeJs.jsx)(
|
|
572
|
+
return (0, _jsxRuntimeJs.jsx)(k, _objectSpreadProps(_objectSpread({}, a), {
|
|
569
573
|
ref: i,
|
|
570
|
-
dataAttributes: _objectSpreadProps(_objectSpread({},
|
|
574
|
+
dataAttributes: _objectSpreadProps(_objectSpread({}, r), {
|
|
571
575
|
"component-name": "DisplayDataCard"
|
|
572
576
|
})
|
|
573
577
|
}));
|
package/dist/index.d.ts
CHANGED
|
@@ -103,6 +103,7 @@ export { VIVO_SKIN, O2_CLASSIC_SKIN, O2_SKIN, MOVISTAR_SKIN, TELEFONICA_SKIN, BL
|
|
|
103
103
|
export { getSkinByName } from './skins/utils';
|
|
104
104
|
export { getVivoSkin } from './skins/vivo';
|
|
105
105
|
export { getMovistarSkin } from './skins/movistar';
|
|
106
|
+
export { getMovistarLegacySkin } from './skins/movistar-legacy';
|
|
106
107
|
export { getO2Skin } from './skins/o2';
|
|
107
108
|
export { getO2ClassicSkin } from './skins/o2-classic';
|
|
108
109
|
export { getTelefonicaSkin } from './skins/telefonica';
|
package/dist/index.js
CHANGED
|
@@ -1796,6 +1796,7 @@ _export(exports, {
|
|
|
1796
1796
|
createNestableContext: ()=>_nestableContextJs.default,
|
|
1797
1797
|
dialog: ()=>_dialogJs.dialog,
|
|
1798
1798
|
getBlauSkin: ()=>_blauJs.getBlauSkin,
|
|
1799
|
+
getMovistarLegacySkin: ()=>_movistarLegacyJs.getMovistarLegacySkin,
|
|
1799
1800
|
getMovistarSkin: ()=>_movistarJs.getMovistarSkin,
|
|
1800
1801
|
getO2ClassicSkin: ()=>_o2ClassicJs.getO2ClassicSkin,
|
|
1801
1802
|
getO2Skin: ()=>_o2Js.getO2Skin,
|
|
@@ -1926,6 +1927,7 @@ const _constantsJs = require("./skins/constants.js");
|
|
|
1926
1927
|
const _utilsJs = require("./skins/utils.js");
|
|
1927
1928
|
const _vivoJs = require("./skins/vivo.js");
|
|
1928
1929
|
const _movistarJs = require("./skins/movistar.js");
|
|
1930
|
+
const _movistarLegacyJs = require("./skins/movistar-legacy.js");
|
|
1929
1931
|
const _o2Js = require("./skins/o2.js");
|
|
1930
1932
|
const _o2ClassicJs = require("./skins/o2-classic.js");
|
|
1931
1933
|
const _telefonicaJs = require("./skins/telefonica.js");
|
package/dist/package-version.js
CHANGED
package/dist/skins/blau.js
CHANGED
|
@@ -62,7 +62,7 @@ const e = {
|
|
|
62
62
|
backgroundBrandSecondary: e.blauBluePrimary,
|
|
63
63
|
backgroundOverlay: (0, _colorJs.applyAlpha)(e.blauBlueSecondary, 0.75),
|
|
64
64
|
backgroundSkeleton: e.grey2,
|
|
65
|
-
backgroundSkeletonInverse: (0, _colorJs.applyAlpha)(e.white, 0.
|
|
65
|
+
backgroundSkeletonInverse: (0, _colorJs.applyAlpha)(e.white, 0.3),
|
|
66
66
|
navigationBarBackground: e.blauBluePrimary,
|
|
67
67
|
backgroundAlternative: e.blauBluePrimary20,
|
|
68
68
|
backgroundFeedbackBottom: e.blauBluePrimary,
|
|
@@ -123,7 +123,7 @@ const e = {
|
|
|
123
123
|
textPrimary: e.grey6,
|
|
124
124
|
textPrimaryInverse: e.white,
|
|
125
125
|
textSecondary: e.grey5,
|
|
126
|
-
textSecondaryInverse: e.
|
|
126
|
+
textSecondaryInverse: e.blauBluePrimary20,
|
|
127
127
|
error: e.blauRed,
|
|
128
128
|
success: e.blauGreen,
|
|
129
129
|
warning: e.blauYellow,
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { GetKnownSkin } from './types';
|
|
2
|
+
export declare const palette: {
|
|
3
|
+
readonly movistarBlue: "#019DF4";
|
|
4
|
+
readonly movistarBlue10: "#E6F5FD";
|
|
5
|
+
readonly movistarBlue20: "#B3E1FB";
|
|
6
|
+
readonly movistarBlue30: "#80CEF9";
|
|
7
|
+
readonly movistarBlue40: "#4DBAF7";
|
|
8
|
+
readonly movistarBlue55: "#008EDD";
|
|
9
|
+
readonly movistarGreen: "#5CB615";
|
|
10
|
+
readonly movistarGreen10: "#EFF8E8";
|
|
11
|
+
readonly movistarGreen30: "#ADDA8A";
|
|
12
|
+
readonly movistarGreen40: "#8DCC5B";
|
|
13
|
+
readonly movistarGreen60: "#499110";
|
|
14
|
+
readonly movistarGreen70: "#407F0F";
|
|
15
|
+
readonly pepper: "#FF374A";
|
|
16
|
+
readonly pepper10: "#FFEBED";
|
|
17
|
+
readonly pepper20: "#FFC3C8";
|
|
18
|
+
readonly pepper40: "#FF7380";
|
|
19
|
+
readonly pepper55: "#D73241";
|
|
20
|
+
readonly pepper70: "#B22634";
|
|
21
|
+
readonly egg: "#F28D15";
|
|
22
|
+
readonly egg10: "#FEF4E8";
|
|
23
|
+
readonly egg40: "#F6AF5B";
|
|
24
|
+
readonly egg80: "#6D3F09";
|
|
25
|
+
readonly pink: "#E63780";
|
|
26
|
+
readonly purple: "#A13EA1";
|
|
27
|
+
readonly purple10: "#F6ECF6";
|
|
28
|
+
readonly purple40: "#BD78BD";
|
|
29
|
+
readonly purple70: "#712B71";
|
|
30
|
+
readonly grey1: "#F6F6F6";
|
|
31
|
+
readonly grey2: "#EEEEEE";
|
|
32
|
+
readonly grey3: "#DDDDDD";
|
|
33
|
+
readonly grey4: "#999999";
|
|
34
|
+
readonly grey5: "#86888C";
|
|
35
|
+
readonly grey6: "#313235";
|
|
36
|
+
readonly white: "#FFFFFF";
|
|
37
|
+
readonly movistarProminentBlue: "#0B2739";
|
|
38
|
+
readonly movistarProminentBlueDark: "#081F2D";
|
|
39
|
+
readonly movistarProminentBlueLight20: "#CED3D7";
|
|
40
|
+
readonly movistarProminentBlueLight50: "#85939C";
|
|
41
|
+
readonly movistarProminentBlueLight70: "#546874";
|
|
42
|
+
readonly darkModeBlack: "#191919";
|
|
43
|
+
readonly darkModeGrey: "#242424";
|
|
44
|
+
};
|
|
45
|
+
export declare const getMovistarLegacySkin: GetKnownSkin;
|