@telefonica/mistica 15.6.1 → 15.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/card.d.ts +2 -0
- package/dist/card.js +264 -248
- package/dist/list.js +22 -22
- package/dist/package-version.js +1 -1
- package/dist-es/card.js +335 -319
- package/dist-es/list.js +25 -25
- package/dist-es/package-version.js +1 -1
- package/dist-es/style.css +1 -1
- package/package.json +1 -1
package/dist-es/list.js
CHANGED
|
@@ -82,7 +82,7 @@ import { jsx as t, jsxs as L } from "react/jsx-runtime";
|
|
|
82
82
|
import * as I from "react";
|
|
83
83
|
import i from "classnames";
|
|
84
84
|
import { BaseTouchable as S } from "./touchable.js";
|
|
85
|
-
import { Text3 as
|
|
85
|
+
import { Text3 as me, Text1 as ue, Text2 as K } from "./text.js";
|
|
86
86
|
import c from "./box.js";
|
|
87
87
|
import X from "./stack.js";
|
|
88
88
|
import ne from "./badge.js";
|
|
@@ -111,7 +111,7 @@ const ce = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
111
111
|
},
|
|
112
112
|
children: e
|
|
113
113
|
}) : e, Ve = (param)=>{
|
|
114
|
-
let { withChevron: e, headline: n, headlineRef: r, extraRef: l, title: h, titleAs: P, titleLinesMax: b, subtitle: x, subtitleLinesMax: Y, description: E, descriptionLinesMax: q, detail:
|
|
114
|
+
let { withChevron: e, headline: n, headlineRef: r, extraRef: l, title: h, titleAs: P, titleLinesMax: b, subtitle: x, subtitleLinesMax: Y, description: E, descriptionLinesMax: q, detail: u, asset: H, danger: j, type: y = "basic", badge: D, right: s, extra: M, labelId: m, disabled: a } = param;
|
|
115
115
|
const O = le(), A = [
|
|
116
116
|
n,
|
|
117
117
|
h,
|
|
@@ -155,9 +155,9 @@ const ce = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
155
155
|
style: {
|
|
156
156
|
justifyContent: A ? "center" : "flex-start"
|
|
157
157
|
},
|
|
158
|
-
id:
|
|
158
|
+
id: m,
|
|
159
159
|
children: [
|
|
160
|
-
/* @__PURE__ */ t(
|
|
160
|
+
/* @__PURE__ */ t(me, {
|
|
161
161
|
regular: !0,
|
|
162
162
|
color: j ? d.colors.textError : d.colors.textPrimary,
|
|
163
163
|
truncate: b,
|
|
@@ -171,7 +171,7 @@ const ce = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
171
171
|
order: -1,
|
|
172
172
|
paddingBottom: 4
|
|
173
173
|
},
|
|
174
|
-
children: /* @__PURE__ */ t(
|
|
174
|
+
children: /* @__PURE__ */ t(ue, {
|
|
175
175
|
regular: !0,
|
|
176
176
|
color: d.colors.textPrimary,
|
|
177
177
|
hyphens: "auto",
|
|
@@ -182,7 +182,7 @@ const ce = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
182
182
|
paddingTop: 2,
|
|
183
183
|
children: /* @__PURE__ */ t(K, {
|
|
184
184
|
regular: !0,
|
|
185
|
-
color: d.colors.
|
|
185
|
+
color: d.colors.textPrimary,
|
|
186
186
|
truncate: Y,
|
|
187
187
|
hyphens: "auto",
|
|
188
188
|
children: x
|
|
@@ -208,11 +208,11 @@ const ce = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
208
208
|
z(),
|
|
209
209
|
/* @__PURE__ */ L("div", {
|
|
210
210
|
className: i({
|
|
211
|
-
[ke]: !!
|
|
212
|
-
[Ie]: !!
|
|
211
|
+
[ke]: !!u || y !== "basic",
|
|
212
|
+
[Ie]: !!u
|
|
213
213
|
}),
|
|
214
214
|
children: [
|
|
215
|
-
|
|
215
|
+
u && /* @__PURE__ */ t("div", {
|
|
216
216
|
className: i(F, Pe, {
|
|
217
217
|
[V]: a
|
|
218
218
|
}),
|
|
@@ -220,24 +220,24 @@ const ce = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
220
220
|
regular: !0,
|
|
221
221
|
color: d.colors.textSecondary,
|
|
222
222
|
hyphens: "auto",
|
|
223
|
-
children:
|
|
223
|
+
children: u
|
|
224
224
|
})
|
|
225
225
|
}),
|
|
226
226
|
y === "control" && /* @__PURE__ */ t("div", {
|
|
227
227
|
className: i({
|
|
228
|
-
[ae]: !!
|
|
228
|
+
[ae]: !!u
|
|
229
229
|
}),
|
|
230
230
|
children: ce(s, A)
|
|
231
231
|
}),
|
|
232
232
|
y === "custom" && /* @__PURE__ */ t("div", {
|
|
233
233
|
className: i({
|
|
234
|
-
[ae]: !!
|
|
234
|
+
[ae]: !!u,
|
|
235
235
|
[V]: a
|
|
236
236
|
}),
|
|
237
237
|
children: ce(s, A)
|
|
238
238
|
}),
|
|
239
239
|
(y === "chevron" || y === "custom" && e) && /* @__PURE__ */ t(c, {
|
|
240
|
-
paddingLeft:
|
|
240
|
+
paddingLeft: u || y === "custom" ? 4 : 0,
|
|
241
241
|
className: i(F, {
|
|
242
242
|
[V]: a
|
|
243
243
|
}),
|
|
@@ -263,11 +263,11 @@ const ce = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
263
263
|
b
|
|
264
264
|
];
|
|
265
265
|
}, je = (e)=>e.switch !== void 0, De = (e)=>e.checkbox !== void 0, Me = (e)=>e.radioValue !== void 0, Oe = (e)=>e.iconButton !== void 0, de = /*#__PURE__*/ I.forwardRef((e, n)=>{
|
|
266
|
-
const r = ge(), l = le(), { asset: h, headline: P, title: b, titleAs: x, titleLinesMax: Y, subtitle: E, subtitleLinesMax: q, description:
|
|
266
|
+
const r = ge(), l = le(), { asset: h, headline: P, title: b, titleAs: x, titleLinesMax: Y, subtitle: E, subtitleLinesMax: q, description: u, descriptionLinesMax: H, detail: j, danger: y, badge: D, role: s, extra: M, dataAttributes: m, "aria-label": a } = e, [O, _] = I.useState(""), [A, z] = I.useState(""), $ = [
|
|
267
267
|
b,
|
|
268
268
|
O,
|
|
269
269
|
E,
|
|
270
|
-
|
|
270
|
+
u,
|
|
271
271
|
A,
|
|
272
272
|
j
|
|
273
273
|
].filter(Boolean).join(" "), se = fe(), o = e.disabled || e.radioValue !== void 0 && se.disabled, N = !o && !l, w = !o && l, [p, ee] = Xe(e.switch || e.checkbox || {}), v = (param)=>{
|
|
@@ -281,7 +281,7 @@ const ce = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
281
281
|
title: b,
|
|
282
282
|
titleAs: x,
|
|
283
283
|
subtitle: E,
|
|
284
|
-
description:
|
|
284
|
+
description: u,
|
|
285
285
|
badge: D,
|
|
286
286
|
titleLinesMax: Y,
|
|
287
287
|
subtitleLinesMax: q,
|
|
@@ -320,7 +320,7 @@ const ce = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
320
320
|
trackingEvent: e.trackingEvent,
|
|
321
321
|
onPress: e.onPress,
|
|
322
322
|
role: s,
|
|
323
|
-
dataAttributes:
|
|
323
|
+
dataAttributes: m,
|
|
324
324
|
disabled: o,
|
|
325
325
|
"aria-label": a,
|
|
326
326
|
children: G({
|
|
@@ -339,7 +339,7 @@ const ce = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
339
339
|
fullPageOnWebView: e.fullPageOnWebView,
|
|
340
340
|
onNavigate: e.onNavigate,
|
|
341
341
|
role: s,
|
|
342
|
-
dataAttributes:
|
|
342
|
+
dataAttributes: m,
|
|
343
343
|
disabled: o,
|
|
344
344
|
"aria-label": a !== null && a !== void 0 ? a : $,
|
|
345
345
|
children: G({
|
|
@@ -360,7 +360,7 @@ const ce = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
360
360
|
onNavigate: e.onNavigate,
|
|
361
361
|
loadOnTop: e.loadOnTop,
|
|
362
362
|
role: s,
|
|
363
|
-
dataAttributes:
|
|
363
|
+
dataAttributes: m,
|
|
364
364
|
disabled: o,
|
|
365
365
|
"aria-label": a !== null && a !== void 0 ? a : $,
|
|
366
366
|
children: G({
|
|
@@ -376,7 +376,7 @@ const ce = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
376
376
|
className: Q,
|
|
377
377
|
children: [
|
|
378
378
|
/* @__PURE__ */ t(S, {
|
|
379
|
-
dataAttributes:
|
|
379
|
+
dataAttributes: m,
|
|
380
380
|
disabled: o,
|
|
381
381
|
onPress: e.onPress,
|
|
382
382
|
trackingEvent: e.trackingEvent,
|
|
@@ -418,7 +418,7 @@ const ce = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
418
418
|
}),
|
|
419
419
|
children: /* @__PURE__ */ t(g, {
|
|
420
420
|
disabled: o,
|
|
421
|
-
dataAttributes:
|
|
421
|
+
dataAttributes: m,
|
|
422
422
|
name: B,
|
|
423
423
|
checked: p,
|
|
424
424
|
onChange: ee,
|
|
@@ -445,7 +445,7 @@ const ce = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
445
445
|
className: Q,
|
|
446
446
|
children: [
|
|
447
447
|
/* @__PURE__ */ t(S, {
|
|
448
|
-
dataAttributes:
|
|
448
|
+
dataAttributes: m,
|
|
449
449
|
disabled: o,
|
|
450
450
|
onPress: e.onPress,
|
|
451
451
|
trackingEvent: e.trackingEvent,
|
|
@@ -517,7 +517,7 @@ const ce = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
517
517
|
className: Z
|
|
518
518
|
}),
|
|
519
519
|
/* @__PURE__ */ t(re, {
|
|
520
|
-
dataAttributes:
|
|
520
|
+
dataAttributes: m,
|
|
521
521
|
value: e.radioValue,
|
|
522
522
|
"aria-labelledby": r,
|
|
523
523
|
"aria-label": a,
|
|
@@ -542,7 +542,7 @@ const ce = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
542
542
|
role: s,
|
|
543
543
|
ref: n,
|
|
544
544
|
children: /* @__PURE__ */ t(re, {
|
|
545
|
-
dataAttributes:
|
|
545
|
+
dataAttributes: m,
|
|
546
546
|
value: e.radioValue,
|
|
547
547
|
"aria-labelledby": r,
|
|
548
548
|
"aria-label": a,
|
|
@@ -565,7 +565,7 @@ const ce = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
565
565
|
paddingX: 16,
|
|
566
566
|
className: T,
|
|
567
567
|
role: s,
|
|
568
|
-
dataAttributes:
|
|
568
|
+
dataAttributes: m,
|
|
569
569
|
children: e.right ? v({
|
|
570
570
|
type: "custom",
|
|
571
571
|
right: e.right
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const o = "15.
|
|
1
|
+
const o = "15.7.0";
|
|
2
2
|
export { o as PACKAGE_VERSION };
|