@telefonica/mistica 16.2.0 → 16.3.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 +33 -21
- package/dist/card.css.d.ts +4 -0
- package/dist/card.js +235 -263
- package/dist/chip.css-mistica.js +19 -7
- package/dist/chip.css.d.ts +2 -0
- package/dist/chip.js +33 -49
- package/dist/community/advanced-data-card.css-mistica.js +24 -24
- package/dist/community/advanced-data-card.css.d.ts +1 -1
- package/dist/community/advanced-data-card.js +45 -48
- package/dist/empty-state-card.js +12 -11
- package/dist/hero.js +25 -19
- package/dist/highlighted-card.js +15 -14
- package/dist/list.css-mistica.js +21 -15
- package/dist/list.css.d.ts +2 -0
- package/dist/list.js +97 -96
- package/dist/menu.css-mistica.js +9 -9
- package/dist/menu.js +9 -10
- package/dist/package-version.js +1 -1
- package/dist/sheet-common.js +3 -2
- package/dist/table.js +52 -51
- package/dist/tag.css-mistica.js +1 -1
- package/dist/tag.js +9 -10
- package/dist/text-props.d.ts +60 -0
- package/dist/text-props.js +93 -0
- package/dist/text.d.ts +0 -62
- package/dist/text.js +156 -219
- package/dist/title.js +10 -9
- package/dist-es/card.css-mistica.js +4 -4
- package/dist-es/card.js +343 -371
- package/dist-es/chip.css-mistica.js +10 -4
- package/dist-es/chip.js +44 -60
- package/dist-es/community/advanced-data-card.css-mistica.js +7 -7
- package/dist-es/community/advanced-data-card.js +74 -77
- package/dist-es/empty-state-card.js +17 -16
- package/dist-es/hero.js +53 -47
- package/dist-es/highlighted-card.js +19 -18
- package/dist-es/list.css-mistica.js +2 -2
- package/dist-es/list.js +141 -140
- package/dist-es/menu.css-mistica.js +3 -3
- package/dist-es/menu.js +21 -22
- package/dist-es/package-version.js +1 -1
- package/dist-es/sheet-common.js +12 -11
- package/dist-es/style.css +1 -1
- package/dist-es/table.js +89 -88
- package/dist-es/tag.css-mistica.js +1 -1
- package/dist-es/tag.js +14 -15
- package/dist-es/text-props.js +52 -0
- package/dist-es/text.js +171 -231
- package/dist-es/title.js +14 -13
- package/package.json +3 -3
package/dist/text.js
CHANGED
|
@@ -14,43 +14,40 @@ _export(exports, {
|
|
|
14
14
|
return o;
|
|
15
15
|
},
|
|
16
16
|
Text1: function() {
|
|
17
|
-
return
|
|
17
|
+
return Nt;
|
|
18
18
|
},
|
|
19
19
|
Text10: function() {
|
|
20
|
-
return
|
|
20
|
+
return Vt;
|
|
21
21
|
},
|
|
22
22
|
Text2: function() {
|
|
23
|
-
return
|
|
23
|
+
return Et;
|
|
24
24
|
},
|
|
25
25
|
Text3: function() {
|
|
26
|
-
return
|
|
26
|
+
return kt;
|
|
27
27
|
},
|
|
28
28
|
Text4: function() {
|
|
29
|
-
return
|
|
29
|
+
return Wt;
|
|
30
30
|
},
|
|
31
31
|
Text5: function() {
|
|
32
|
-
return
|
|
32
|
+
return St;
|
|
33
33
|
},
|
|
34
34
|
Text6: function() {
|
|
35
|
-
return
|
|
35
|
+
return Rt;
|
|
36
36
|
},
|
|
37
37
|
Text7: function() {
|
|
38
|
-
return
|
|
38
|
+
return Ct;
|
|
39
39
|
},
|
|
40
40
|
Text8: function() {
|
|
41
|
-
return
|
|
41
|
+
return Pt;
|
|
42
42
|
},
|
|
43
43
|
Text9: function() {
|
|
44
|
-
return
|
|
44
|
+
return It;
|
|
45
45
|
},
|
|
46
46
|
default: function() {
|
|
47
|
-
return
|
|
47
|
+
return Ot;
|
|
48
48
|
},
|
|
49
49
|
mapToWeight: function() {
|
|
50
|
-
return
|
|
51
|
-
},
|
|
52
|
-
textProps: function() {
|
|
53
|
-
return a;
|
|
50
|
+
return xt;
|
|
54
51
|
}
|
|
55
52
|
});
|
|
56
53
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -64,6 +61,7 @@ const _skincontractcssmistica = require("./skins/skin-contract.css-mistica.js");
|
|
|
64
61
|
const _textcssmistica = require("./text.css-mistica.js");
|
|
65
62
|
const _constants = require("./skins/constants.js");
|
|
66
63
|
const _screenreaderonly = /*#__PURE__*/ _interop_require_default(require("./screen-reader-only.js"));
|
|
64
|
+
const _textprops = require("./text-props.js");
|
|
67
65
|
function _interop_require_default(obj) {
|
|
68
66
|
return obj && obj.__esModule ? obj : {
|
|
69
67
|
default: obj
|
|
@@ -189,16 +187,16 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
189
187
|
}
|
|
190
188
|
return target;
|
|
191
189
|
}
|
|
192
|
-
const
|
|
190
|
+
const xt = {
|
|
193
191
|
light: 300,
|
|
194
192
|
regular: 400,
|
|
195
193
|
medium: 500,
|
|
196
194
|
bold: 700
|
|
197
|
-
},
|
|
195
|
+
}, ct = (t)=>t === !0 ? 1 : t || "initial", h = "Ħ", ut = /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
198
196
|
children: [
|
|
199
197
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("span", {
|
|
200
198
|
"aria-hidden": !0,
|
|
201
|
-
children:
|
|
199
|
+
children: h
|
|
202
200
|
}),
|
|
203
201
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_screenreaderonly.default, {
|
|
204
202
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("span", {
|
|
@@ -206,290 +204,229 @@ const ee = {
|
|
|
206
204
|
})
|
|
207
205
|
})
|
|
208
206
|
]
|
|
209
|
-
}),
|
|
210
|
-
let { children:
|
|
211
|
-
return typeof
|
|
207
|
+
}), lt = (param)=>{
|
|
208
|
+
let { children: t, ariaLabel: r, as: e } = param;
|
|
209
|
+
return typeof e == "string" && [
|
|
212
210
|
"h1",
|
|
213
211
|
"h2",
|
|
214
212
|
"h3",
|
|
215
213
|
"h4",
|
|
216
214
|
"h5",
|
|
217
215
|
"h6"
|
|
218
|
-
].includes(
|
|
219
|
-
ariaLabel:
|
|
216
|
+
].includes(e) && typeof t == "string" && t.includes(h) ? {
|
|
217
|
+
ariaLabel: t.replace(new RegExp(h, "g"), "Vivo"),
|
|
220
218
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("span", {
|
|
221
219
|
"aria-hidden": !0,
|
|
222
|
-
children:
|
|
220
|
+
children: t
|
|
223
221
|
})
|
|
224
222
|
} : {
|
|
225
|
-
children: _react.Children.map(
|
|
226
|
-
children:
|
|
223
|
+
children: _react.Children.map(t, (n)=>typeof n != "string" || !n.includes(h) ? n : /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
|
|
224
|
+
children: n.split(h).map((x, c)=>/* @__PURE__ */ (0, _jsxruntime.jsxs)(_react.Fragment, {
|
|
227
225
|
children: [
|
|
228
|
-
|
|
229
|
-
|
|
226
|
+
c > 0 && ut,
|
|
227
|
+
x
|
|
230
228
|
]
|
|
231
|
-
},
|
|
229
|
+
}, c))
|
|
232
230
|
})),
|
|
233
|
-
ariaLabel:
|
|
231
|
+
ariaLabel: r
|
|
234
232
|
};
|
|
235
233
|
}, o = (param)=>{
|
|
236
|
-
let { weight:
|
|
237
|
-
const { skinName:
|
|
234
|
+
let { weight: t, color: r = _skincontractcssmistica.vars.colors.textPrimary, decoration: e, truncate: n, transform: x, wordBreak: c = !0, hyphens: w = "auto", as: p = "span", children: u, size: v, mobileSize: b = v, desktopSize: y = v, lineHeight: A, mobileLineHeight: V = A, desktopLineHeight: I = A, letterSpacing: S, textAlign: W, textShadow: k, id: E, role: N, "aria-level": O, "aria-label": d, dataAttributes: F } = param;
|
|
235
|
+
const { skinName: _ } = (0, _hooks.useTheme)(), j = (0, _themevariantcontext.useIsInverseOrMediaVariant)(), D = ct(n), H = {
|
|
238
236
|
[_skincontractcssmistica.vars.colors.textPrimary]: _skincontractcssmistica.vars.colors.textPrimaryInverse,
|
|
239
237
|
[_skincontractcssmistica.vars.colors.textSecondary]: _skincontractcssmistica.vars.colors.textSecondaryInverse,
|
|
240
238
|
[_skincontractcssmistica.vars.colors.textLink]: _skincontractcssmistica.vars.colors.textLinkInverse,
|
|
241
239
|
[_skincontractcssmistica.vars.colors.textError]: _skincontractcssmistica.vars.colors.textErrorInverse
|
|
242
240
|
};
|
|
243
|
-
if (!
|
|
244
|
-
const
|
|
245
|
-
[_textcssmistica.truncate]:
|
|
246
|
-
[_textcssmistica.truncateToOneLine]:
|
|
247
|
-
}),
|
|
248
|
-
[_textcssmistica.vars.mobileSize]:
|
|
249
|
-
[_textcssmistica.vars.mobileLineHeight]:
|
|
250
|
-
[_textcssmistica.vars.desktopSize]:
|
|
251
|
-
[_textcssmistica.vars.desktopLineHeight]:
|
|
252
|
-
}), B =
|
|
253
|
-
[_textcssmistica.vars.lineClamp]: String(
|
|
241
|
+
if (!u && u !== 0) return null;
|
|
242
|
+
const M = (0, _classnames.default)(_textcssmistica.text, c ? _textcssmistica.withWordBreak : _textcssmistica.withoutWordBreak, {
|
|
243
|
+
[_textcssmistica.truncate]: n,
|
|
244
|
+
[_textcssmistica.truncateToOneLine]: n === 1 || n === !0
|
|
245
|
+
}), z = (0, _css.applyCssVars)({
|
|
246
|
+
[_textcssmistica.vars.mobileSize]: b ? (0, _css.pxToRem)(b) : "inherit",
|
|
247
|
+
[_textcssmistica.vars.mobileLineHeight]: V ? (0, _css.pxToRem)(V) : "inherit",
|
|
248
|
+
[_textcssmistica.vars.desktopSize]: y ? (0, _css.pxToRem)(y) : "inherit",
|
|
249
|
+
[_textcssmistica.vars.desktopLineHeight]: I ? (0, _css.pxToRem)(I) : "inherit"
|
|
250
|
+
}), B = n ? (0, _css.applyCssVars)({
|
|
251
|
+
[_textcssmistica.vars.lineClamp]: String(D)
|
|
254
252
|
}) : {};
|
|
255
|
-
var
|
|
256
|
-
return
|
|
257
|
-
children:
|
|
258
|
-
ariaLabel:
|
|
259
|
-
as:
|
|
260
|
-
})), /*#__PURE__*/ _react.createElement(
|
|
261
|
-
className:
|
|
262
|
-
id:
|
|
263
|
-
role:
|
|
264
|
-
"aria-level":
|
|
265
|
-
"aria-label":
|
|
266
|
-
}, (0, _dom.getPrefixedDataAttributes)(
|
|
267
|
-
style: _object_spread_props(_object_spread({},
|
|
268
|
-
hyphens:
|
|
269
|
-
WebkitHyphens:
|
|
270
|
-
letterSpacing:
|
|
271
|
-
fontWeight:
|
|
272
|
-
textTransform:
|
|
273
|
-
textDecoration:
|
|
274
|
-
overflowWrap:
|
|
275
|
-
color:
|
|
276
|
-
textAlign:
|
|
277
|
-
textShadow:
|
|
253
|
+
var _H_r;
|
|
254
|
+
return _ === _constants.VIVO_NEW_SKIN && ({ ariaLabel: d, children: u } = lt({
|
|
255
|
+
children: u,
|
|
256
|
+
ariaLabel: d,
|
|
257
|
+
as: p
|
|
258
|
+
})), /*#__PURE__*/ _react.createElement(p, _object_spread_props(_object_spread({
|
|
259
|
+
className: M,
|
|
260
|
+
id: E,
|
|
261
|
+
role: N,
|
|
262
|
+
"aria-level": O,
|
|
263
|
+
"aria-label": d
|
|
264
|
+
}, (0, _dom.getPrefixedDataAttributes)(F, "Text")), {
|
|
265
|
+
style: _object_spread_props(_object_spread({}, z, B), {
|
|
266
|
+
hyphens: w,
|
|
267
|
+
WebkitHyphens: w,
|
|
268
|
+
letterSpacing: S,
|
|
269
|
+
fontWeight: t ? xt[t] : "inherit",
|
|
270
|
+
textTransform: x || "inherit",
|
|
271
|
+
textDecoration: e !== null && e !== void 0 ? e : "inherit",
|
|
272
|
+
overflowWrap: c ? "anywhere" : "inherit",
|
|
273
|
+
color: j ? (_H_r = H[r]) !== null && _H_r !== void 0 ? _H_r : r : r,
|
|
274
|
+
textAlign: W,
|
|
275
|
+
textShadow: k,
|
|
278
276
|
// When rendering as <pre/>, spaces are preserved and we don't want to remove them
|
|
279
|
-
whiteSpace:
|
|
277
|
+
whiteSpace: p === "pre" ? void 0 : "pre-line"
|
|
280
278
|
})
|
|
281
|
-
}),
|
|
282
|
-
},
|
|
283
|
-
if (
|
|
284
|
-
if (
|
|
285
|
-
if (
|
|
286
|
-
if (
|
|
279
|
+
}), u);
|
|
280
|
+
}, f = (t)=>{
|
|
281
|
+
if (t.light) return "light";
|
|
282
|
+
if (t.regular) return "regular";
|
|
283
|
+
if (t.medium) return "medium";
|
|
284
|
+
if (t.weight) return t.weight;
|
|
287
285
|
}, s = (param)=>{
|
|
288
|
-
let { forceMobileSizes:
|
|
289
|
-
return
|
|
290
|
-
size:
|
|
291
|
-
lineHeight:
|
|
286
|
+
let { forceMobileSizes: t, mobileSize: r, mobileLineHeight: e, desktopSize: n, desktopLineHeight: x } = param;
|
|
287
|
+
return t ? {
|
|
288
|
+
size: r,
|
|
289
|
+
lineHeight: e
|
|
292
290
|
} : {
|
|
293
|
-
mobileSize:
|
|
294
|
-
mobileLineHeight:
|
|
295
|
-
desktopSize:
|
|
296
|
-
desktopLineHeight:
|
|
291
|
+
mobileSize: r,
|
|
292
|
+
mobileLineHeight: e,
|
|
293
|
+
desktopSize: n,
|
|
294
|
+
desktopLineHeight: x
|
|
297
295
|
};
|
|
298
|
-
},
|
|
299
|
-
|
|
300
|
-
mobileSize: 12,
|
|
301
|
-
mobileLineHeight: "16px",
|
|
302
|
-
desktopSize: 14,
|
|
303
|
-
desktopLineHeight: "20px"
|
|
304
|
-
},
|
|
305
|
-
text2: {
|
|
306
|
-
mobileSize: 14,
|
|
307
|
-
mobileLineHeight: "20px",
|
|
308
|
-
desktopSize: 16,
|
|
309
|
-
desktopLineHeight: "24px"
|
|
310
|
-
},
|
|
311
|
-
text3: {
|
|
312
|
-
mobileSize: 16,
|
|
313
|
-
mobileLineHeight: "24px",
|
|
314
|
-
desktopSize: 18,
|
|
315
|
-
desktopLineHeight: "24px"
|
|
316
|
-
},
|
|
317
|
-
text4: {
|
|
318
|
-
mobileSize: 18,
|
|
319
|
-
mobileLineHeight: "24px",
|
|
320
|
-
desktopSize: 20,
|
|
321
|
-
desktopLineHeight: "28px"
|
|
322
|
-
},
|
|
323
|
-
text5: {
|
|
324
|
-
mobileSize: 20,
|
|
325
|
-
mobileLineHeight: "24px",
|
|
326
|
-
desktopSize: 28,
|
|
327
|
-
desktopLineHeight: "32px"
|
|
328
|
-
},
|
|
329
|
-
text6: {
|
|
330
|
-
mobileSize: 24,
|
|
331
|
-
mobileLineHeight: "32px",
|
|
332
|
-
desktopSize: 32,
|
|
333
|
-
desktopLineHeight: "40px"
|
|
334
|
-
},
|
|
335
|
-
text7: {
|
|
336
|
-
mobileSize: 28,
|
|
337
|
-
mobileLineHeight: "32px",
|
|
338
|
-
desktopSize: 40,
|
|
339
|
-
desktopLineHeight: "48px"
|
|
340
|
-
},
|
|
341
|
-
text8: {
|
|
342
|
-
mobileSize: 32,
|
|
343
|
-
mobileLineHeight: "40px",
|
|
344
|
-
desktopSize: 48,
|
|
345
|
-
desktopLineHeight: "56px"
|
|
346
|
-
},
|
|
347
|
-
text9: {
|
|
348
|
-
mobileSize: 40,
|
|
349
|
-
mobileLineHeight: "48px",
|
|
350
|
-
desktopSize: 56,
|
|
351
|
-
desktopLineHeight: "64px"
|
|
352
|
-
},
|
|
353
|
-
text10: {
|
|
354
|
-
mobileSize: 48,
|
|
355
|
-
mobileLineHeight: "56px",
|
|
356
|
-
desktopSize: 64,
|
|
357
|
-
desktopLineHeight: "72px"
|
|
358
|
-
}
|
|
359
|
-
}, ge = (_param)=>{
|
|
360
|
-
var { dataAttributes: e, forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
|
|
296
|
+
}, Vt = (_param)=>{
|
|
297
|
+
var { dataAttributes: t, forceMobileSizes: r } = _param, e = _object_without_properties(_param, [
|
|
361
298
|
"dataAttributes",
|
|
362
299
|
"forceMobileSizes"
|
|
363
300
|
]);
|
|
364
|
-
const { textPresets:
|
|
301
|
+
const { textPresets: n } = (0, _hooks.useTheme)();
|
|
365
302
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s(_object_spread({
|
|
366
|
-
forceMobileSizes:
|
|
367
|
-
},
|
|
368
|
-
weight:
|
|
303
|
+
forceMobileSizes: r
|
|
304
|
+
}, _textprops.text10))), {
|
|
305
|
+
weight: n.text10.weight,
|
|
369
306
|
dataAttributes: _object_spread({
|
|
370
307
|
"component-name": "Text10"
|
|
371
|
-
},
|
|
372
|
-
}),
|
|
373
|
-
},
|
|
374
|
-
var { dataAttributes:
|
|
308
|
+
}, t)
|
|
309
|
+
}), e));
|
|
310
|
+
}, It = (_param)=>{
|
|
311
|
+
var { dataAttributes: t, forceMobileSizes: r } = _param, e = _object_without_properties(_param, [
|
|
375
312
|
"dataAttributes",
|
|
376
313
|
"forceMobileSizes"
|
|
377
314
|
]);
|
|
378
|
-
const { textPresets:
|
|
315
|
+
const { textPresets: n } = (0, _hooks.useTheme)();
|
|
379
316
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s(_object_spread({
|
|
380
|
-
forceMobileSizes:
|
|
381
|
-
},
|
|
382
|
-
weight:
|
|
317
|
+
forceMobileSizes: r
|
|
318
|
+
}, _textprops.text9))), {
|
|
319
|
+
weight: n.text9.weight,
|
|
383
320
|
dataAttributes: _object_spread({
|
|
384
321
|
"component-name": "Text9"
|
|
385
|
-
},
|
|
386
|
-
}),
|
|
387
|
-
},
|
|
388
|
-
var { dataAttributes:
|
|
322
|
+
}, t)
|
|
323
|
+
}), e));
|
|
324
|
+
}, Pt = (_param)=>{
|
|
325
|
+
var { dataAttributes: t, forceMobileSizes: r } = _param, e = _object_without_properties(_param, [
|
|
389
326
|
"dataAttributes",
|
|
390
327
|
"forceMobileSizes"
|
|
391
328
|
]);
|
|
392
|
-
const { textPresets:
|
|
329
|
+
const { textPresets: n } = (0, _hooks.useTheme)();
|
|
393
330
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s(_object_spread({
|
|
394
|
-
forceMobileSizes:
|
|
395
|
-
},
|
|
396
|
-
weight:
|
|
331
|
+
forceMobileSizes: r
|
|
332
|
+
}, _textprops.text8))), {
|
|
333
|
+
weight: n.text8.weight,
|
|
397
334
|
dataAttributes: _object_spread({
|
|
398
335
|
"component-name": "Text8"
|
|
399
|
-
},
|
|
400
|
-
}),
|
|
401
|
-
},
|
|
402
|
-
var { dataAttributes:
|
|
336
|
+
}, t)
|
|
337
|
+
}), e));
|
|
338
|
+
}, Ct = (_param)=>{
|
|
339
|
+
var { dataAttributes: t, forceMobileSizes: r } = _param, e = _object_without_properties(_param, [
|
|
403
340
|
"dataAttributes",
|
|
404
341
|
"forceMobileSizes"
|
|
405
342
|
]);
|
|
406
|
-
const { textPresets:
|
|
343
|
+
const { textPresets: n } = (0, _hooks.useTheme)();
|
|
407
344
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s(_object_spread({
|
|
408
|
-
forceMobileSizes:
|
|
409
|
-
},
|
|
410
|
-
weight:
|
|
345
|
+
forceMobileSizes: r
|
|
346
|
+
}, _textprops.text7))), {
|
|
347
|
+
weight: n.text7.weight,
|
|
411
348
|
dataAttributes: _object_spread({
|
|
412
349
|
"component-name": "Text7"
|
|
413
|
-
},
|
|
414
|
-
}),
|
|
415
|
-
},
|
|
416
|
-
var { dataAttributes:
|
|
350
|
+
}, t)
|
|
351
|
+
}), e));
|
|
352
|
+
}, Rt = (_param)=>{
|
|
353
|
+
var { dataAttributes: t, forceMobileSizes: r } = _param, e = _object_without_properties(_param, [
|
|
417
354
|
"dataAttributes",
|
|
418
355
|
"forceMobileSizes"
|
|
419
356
|
]);
|
|
420
|
-
const { textPresets:
|
|
357
|
+
const { textPresets: n } = (0, _hooks.useTheme)();
|
|
421
358
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s(_object_spread({
|
|
422
|
-
forceMobileSizes:
|
|
423
|
-
},
|
|
424
|
-
weight:
|
|
359
|
+
forceMobileSizes: r
|
|
360
|
+
}, _textprops.text6))), {
|
|
361
|
+
weight: n.text6.weight,
|
|
425
362
|
dataAttributes: _object_spread({
|
|
426
363
|
"component-name": "Text6"
|
|
427
|
-
},
|
|
428
|
-
}),
|
|
429
|
-
},
|
|
430
|
-
var { dataAttributes:
|
|
364
|
+
}, t)
|
|
365
|
+
}), e));
|
|
366
|
+
}, St = (_param)=>{
|
|
367
|
+
var { dataAttributes: t, forceMobileSizes: r } = _param, e = _object_without_properties(_param, [
|
|
431
368
|
"dataAttributes",
|
|
432
369
|
"forceMobileSizes"
|
|
433
370
|
]);
|
|
434
|
-
const { textPresets:
|
|
371
|
+
const { textPresets: n } = (0, _hooks.useTheme)();
|
|
435
372
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s(_object_spread({
|
|
436
|
-
forceMobileSizes:
|
|
437
|
-
},
|
|
438
|
-
weight:
|
|
373
|
+
forceMobileSizes: r
|
|
374
|
+
}, _textprops.text5))), {
|
|
375
|
+
weight: n.text5.weight,
|
|
439
376
|
dataAttributes: _object_spread({
|
|
440
377
|
"component-name": "Text5"
|
|
441
|
-
},
|
|
442
|
-
}),
|
|
443
|
-
},
|
|
444
|
-
var { dataAttributes:
|
|
378
|
+
}, t)
|
|
379
|
+
}), e));
|
|
380
|
+
}, Wt = (_param)=>{
|
|
381
|
+
var { dataAttributes: t, forceMobileSizes: r } = _param, e = _object_without_properties(_param, [
|
|
445
382
|
"dataAttributes",
|
|
446
383
|
"forceMobileSizes"
|
|
447
384
|
]);
|
|
448
385
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s(_object_spread({
|
|
449
|
-
forceMobileSizes:
|
|
450
|
-
},
|
|
451
|
-
weight:
|
|
386
|
+
forceMobileSizes: r
|
|
387
|
+
}, _textprops.text4))), {
|
|
388
|
+
weight: f(e),
|
|
452
389
|
dataAttributes: _object_spread({
|
|
453
390
|
"component-name": "Text4"
|
|
454
|
-
},
|
|
455
|
-
}),
|
|
456
|
-
},
|
|
457
|
-
var { dataAttributes:
|
|
391
|
+
}, t)
|
|
392
|
+
}), e));
|
|
393
|
+
}, kt = (_param)=>{
|
|
394
|
+
var { dataAttributes: t, forceMobileSizes: r } = _param, e = _object_without_properties(_param, [
|
|
458
395
|
"dataAttributes",
|
|
459
396
|
"forceMobileSizes"
|
|
460
397
|
]);
|
|
461
398
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s(_object_spread({
|
|
462
|
-
forceMobileSizes:
|
|
463
|
-
},
|
|
464
|
-
weight:
|
|
399
|
+
forceMobileSizes: r
|
|
400
|
+
}, _textprops.text3))), {
|
|
401
|
+
weight: f(e),
|
|
465
402
|
dataAttributes: _object_spread({
|
|
466
403
|
"component-name": "Text3"
|
|
467
|
-
},
|
|
468
|
-
}),
|
|
469
|
-
},
|
|
470
|
-
var { dataAttributes:
|
|
404
|
+
}, t)
|
|
405
|
+
}), e));
|
|
406
|
+
}, Et = (_param)=>{
|
|
407
|
+
var { dataAttributes: t, forceMobileSizes: r } = _param, e = _object_without_properties(_param, [
|
|
471
408
|
"dataAttributes",
|
|
472
409
|
"forceMobileSizes"
|
|
473
410
|
]);
|
|
474
411
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s(_object_spread({
|
|
475
|
-
forceMobileSizes:
|
|
476
|
-
},
|
|
477
|
-
weight:
|
|
412
|
+
forceMobileSizes: r
|
|
413
|
+
}, _textprops.text2))), {
|
|
414
|
+
weight: f(e),
|
|
478
415
|
dataAttributes: _object_spread({
|
|
479
416
|
"component-name": "Text2"
|
|
480
|
-
},
|
|
481
|
-
}),
|
|
482
|
-
},
|
|
483
|
-
var { dataAttributes:
|
|
417
|
+
}, t)
|
|
418
|
+
}), e));
|
|
419
|
+
}, Nt = (_param)=>{
|
|
420
|
+
var { dataAttributes: t, forceMobileSizes: r } = _param, e = _object_without_properties(_param, [
|
|
484
421
|
"dataAttributes",
|
|
485
422
|
"forceMobileSizes"
|
|
486
423
|
]);
|
|
487
424
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s(_object_spread({
|
|
488
|
-
forceMobileSizes:
|
|
489
|
-
},
|
|
490
|
-
weight:
|
|
425
|
+
forceMobileSizes: r
|
|
426
|
+
}, _textprops.text1))), {
|
|
427
|
+
weight: f(e),
|
|
491
428
|
dataAttributes: _object_spread({
|
|
492
429
|
"component-name": "Text1"
|
|
493
|
-
},
|
|
494
|
-
}),
|
|
495
|
-
},
|
|
430
|
+
}, t)
|
|
431
|
+
}), e));
|
|
432
|
+
}, Ot = o;
|
package/dist/title.js
CHANGED
|
@@ -11,20 +11,21 @@ function _export(target, all) {
|
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
13
|
Title1: function() {
|
|
14
|
-
return
|
|
14
|
+
return S;
|
|
15
15
|
},
|
|
16
16
|
Title2: function() {
|
|
17
|
-
return
|
|
17
|
+
return j;
|
|
18
18
|
},
|
|
19
19
|
Title3: function() {
|
|
20
|
-
return
|
|
20
|
+
return v;
|
|
21
21
|
},
|
|
22
22
|
Title4: function() {
|
|
23
|
-
return
|
|
23
|
+
return y;
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
const _jsxruntime = require("react/jsx-runtime");
|
|
27
27
|
const _text = /*#__PURE__*/ _interop_require_wildcard(require("./text.js"));
|
|
28
|
+
const _textprops = require("./text-props.js");
|
|
28
29
|
const _inline = /*#__PURE__*/ _interop_require_default(require("./inline.js"));
|
|
29
30
|
const _box = /*#__PURE__*/ _interop_require_default(require("./box.js"));
|
|
30
31
|
const _skincontractcssmistica = require("./skins/skin-contract.css-mistica.js");
|
|
@@ -148,7 +149,7 @@ const m = (param)=>{
|
|
|
148
149
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({}, (0, _dom.getPrefixedDataAttributes)(o)), {
|
|
149
150
|
children: e
|
|
150
151
|
}));
|
|
151
|
-
},
|
|
152
|
+
}, S = (param)=>{
|
|
152
153
|
let { children: e, as: i = "h3", id: o, right: r, dataAttributes: s } = param;
|
|
153
154
|
const { textPresets: n } = (0, _hooks.useTheme)();
|
|
154
155
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(m, {
|
|
@@ -166,14 +167,14 @@ const m = (param)=>{
|
|
|
166
167
|
"component-name": "Title1"
|
|
167
168
|
}, s)
|
|
168
169
|
});
|
|
169
|
-
},
|
|
170
|
+
}, j = (param)=>{
|
|
170
171
|
let { children: e, as: i = "h3", id: o, right: r, dataAttributes: s } = param;
|
|
171
172
|
const { textPresets: n } = (0, _hooks.useTheme)();
|
|
172
173
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(m, {
|
|
173
174
|
title: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.default, _object_spread_props(_object_spread({
|
|
174
175
|
as: i,
|
|
175
176
|
id: o
|
|
176
|
-
},
|
|
177
|
+
}, _textprops.text3), {
|
|
177
178
|
weight: n.title2.weight,
|
|
178
179
|
children: e
|
|
179
180
|
})),
|
|
@@ -182,7 +183,7 @@ const m = (param)=>{
|
|
|
182
183
|
"component-name": "Title2"
|
|
183
184
|
}, s)
|
|
184
185
|
});
|
|
185
|
-
},
|
|
186
|
+
}, v = (param)=>{
|
|
186
187
|
let { children: e, as: i = "h3", id: o, right: r, dataAttributes: s } = param;
|
|
187
188
|
const { textPresets: n } = (0, _hooks.useTheme)();
|
|
188
189
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(m, {
|
|
@@ -201,7 +202,7 @@ const m = (param)=>{
|
|
|
201
202
|
"component-name": "Title3"
|
|
202
203
|
}, s)
|
|
203
204
|
});
|
|
204
|
-
},
|
|
205
|
+
}, y = (param)=>{
|
|
205
206
|
let { children: e, as: i = "h3", id: o, right: r, dataAttributes: s } = param;
|
|
206
207
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(m, {
|
|
207
208
|
title: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text6, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./sprinkles.css.ts.vanilla.css-mistica.js";
|
|
2
2
|
import "./icon-button.css.ts.vanilla.css-mistica.js";
|
|
3
3
|
import "./card.css.ts.vanilla.css-mistica.js";
|
|
4
|
-
var _ = "_15e54s91 _1y2v1nfhk _1y2v1nfi6 _1y2v1nfi0",
|
|
5
|
-
aspectRatio: "var(--
|
|
6
|
-
topActionsCount: "var(--
|
|
4
|
+
var _ = "_15e54s91 _1y2v1nfhk _1y2v1nfi6 _1y2v1nfi0", y = "_15e54s93 _1y2v1nfhk _1y2v1nfhe", e = "_15e54s912", r = "_1y2v1nfhk _1y2v1nfi6 _1y2v1nfhw _1y2v1nfhq", f = "_15e54s99", s = "_15e54s9m _1y2v1nfaa _1y2v1nfbj _1y2v1nf7y _1y2v1nf97 _1y2v1nfhk _1y2v1nfi6 _1y2v1nfhe _1y2v1nfhq _1y2v1nfi7", t = "_15e54s913", i = "_15e54s9v", d = "_1y2v1nfi7 _1y2v1nfio _1y2v1nfhk _1y2v1nfhe", o = "_15e54s9s", h = "_1y2v1nf7s _1y2v1nf80", C = "_1y2v1nf7y", l = "_1y2v1nfag _1y2v1nfbp _1y2v1nf97", p = "_15e54s9y _1y2v1nf84", c = "_15e54s914", b = "_1y2v1nfhk _1y2v1nfhq _1y2v1nfio _1y2v1nfi7 _1y2v1nfi6", k = "_15e54s9i _1y2v1nfaa _1y2v1nfai _1y2v1nf7s _1y2v1nf80", u = "_15e54s9g _1y2v1nfaa _1y2v1nfbj _1y2v1nfhk _1y2v1nfi6 _1y2v1nfhe _1y2v1nf7s _1y2v1nf97 _1y2v1nfhq _1y2v1nfhw", m = "_15e54s9k _1y2v1nfhk _1y2v1nfi6 _1y2v1nfhe _1y2v1nfhq _1y2v1nfhw _1y2v1nf7s _1y2v1nfbj", q = "_1y2v1nfaa _1y2v1nfai _1y2v1nfbj _1y2v1nfbr _1y2v1nf97", O = "_15e54s9o _1y2v1nf7s _1y2v1nf91 _1y2v1nfaa _1y2v1nfbj _1y2v1nfhk _1y2v1nfhe _1y2v1nfio _1y2v1nfhq _1y2v1nfhw _1y2v1nfi7 _1y2v1nfi6", j = "_15e54s96", W = "_15e54s9b _15e54s97", w = "_15e54s9c _15e54s97", A = "_15e54s9d _15e54s97", M = "_15e54s95", g = "_15e54s98 _15e54s97", x = "_15e54s9a _15e54s97", I = {
|
|
5
|
+
aspectRatio: "var(--_15e54s910)",
|
|
6
|
+
topActionsCount: "var(--_15e54s911)"
|
|
7
7
|
};
|
|
8
|
-
export { _ as actions,
|
|
8
|
+
export { _ as actions, y as boxed, e as cardContainer, r as cardContentContainer, f as circularMediaOverlay, s as dataCard, t as dataCardTopActionsWithoutIcon, i as displayCardBackground, d as displayCardContainer, o as displayCardContent, h as displayCardContentWithAsset, C as displayCardContentWithTopContent, l as displayCardContentWrapper, p as displayCardGradient, c as flexColumn, b as mediaCard, k as mediaCardAsset, u as mediaCardContent, m as nakedCardContent, q as posterCardContentWrapper, O as snapCard, j as touchable, W as touchableCardOverlay, w as touchableCardOverlayInverse, A as touchableCardOverlayMedia, M as touchableContainer, g as touchableMediaCardOverlay, x as touchableNakedMediaOverlay, I as vars };
|