@telefonica/mistica 15.9.0 → 15.11.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/boxed.css-mistica.js +35 -2
- package/dist/boxed.css.d.ts +29 -0
- package/dist/boxed.d.ts +6 -4
- package/dist/boxed.js +30 -24
- package/dist/button-group.css-mistica.js +14 -5
- package/dist/button-group.css.d.ts +3 -0
- package/dist/button-group.d.ts +2 -1
- package/dist/button-group.js +29 -16
- package/dist/button-layout.css-mistica.js +7 -7
- package/dist/button-layout.css.d.ts +1 -1
- package/dist/button-layout.js +9 -9
- package/dist/button.d.ts +4 -24
- package/dist/button.js +6 -4
- package/dist/card.d.ts +8 -1
- package/dist/card.js +567 -501
- package/dist/carousel.css-mistica.js +19 -16
- package/dist/carousel.css.d.ts +1 -0
- package/dist/carousel.js +41 -39
- package/dist/chip.js +37 -44
- package/dist/circle.d.ts +11 -4
- package/dist/circle.js +10 -11
- package/dist/community/advanced-data-card.css-mistica.js +24 -21
- package/dist/community/advanced-data-card.css.d.ts +1 -0
- package/dist/community/advanced-data-card.d.ts +1 -0
- package/dist/community/advanced-data-card.js +20 -17
- package/dist/counter.js +26 -22
- package/dist/cover-hero-media.d.ts +12 -0
- package/dist/cover-hero-media.js +44 -0
- package/dist/cover-hero.css-mistica.js +56 -0
- package/dist/cover-hero.css.d.ts +14 -0
- package/dist/cover-hero.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/cover-hero.d.ts +38 -0
- package/dist/cover-hero.js +296 -0
- package/dist/empty-state.js +6 -6
- package/dist/grid-layout.css-mistica.js +11 -8
- package/dist/grid-layout.css.d.ts +1 -0
- package/dist/grid-layout.d.ts +12 -22
- package/dist/grid-layout.js +63 -49
- package/dist/header.js +18 -18
- package/dist/highlighted-card.d.ts +1 -0
- package/dist/highlighted-card.js +22 -18
- package/dist/icon-button.d.ts +7 -6
- package/dist/image.js +69 -48
- package/dist/index.d.ts +4 -1
- package/dist/index.js +15 -0
- package/dist/list.d.ts +1 -0
- package/dist/navigation-bar.d.ts +1 -1
- package/dist/navigation-bar.js +1 -1
- package/dist/package-version.js +1 -1
- package/dist/select.js +16 -12
- package/dist/skins/movistar.d.ts +13 -0
- package/dist/skins/movistar.js +112 -99
- package/dist/spinner.js +19 -18
- package/dist/table.css-mistica.js +58 -0
- package/dist/table.css.d.ts +13 -0
- package/dist/table.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/table.d.ts +39 -0
- package/dist/table.js +269 -0
- package/dist/text.d.ts +1 -1
- package/dist/theme.d.ts +20 -0
- package/dist/theme.js +80 -20
- package/dist/timer.css-mistica.js +39 -0
- package/dist/timer.css.d.ts +8 -0
- package/dist/timer.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/timer.d.ts +27 -0
- package/dist/timer.js +370 -0
- package/dist/tooltip.js +13 -13
- package/dist/touchable.d.ts +2 -0
- package/dist/touchable.js +35 -31
- package/dist/utils/helpers.js +32 -32
- package/dist-es/boxed.css-mistica.js +29 -2
- package/dist-es/boxed.js +37 -31
- package/dist-es/button-group.css-mistica.js +2 -2
- package/dist-es/button-group.js +37 -24
- package/dist-es/button-layout.css-mistica.js +2 -2
- package/dist-es/button-layout.js +16 -16
- package/dist-es/button.js +24 -22
- package/dist-es/card.js +681 -618
- package/dist-es/carousel.css-mistica.js +7 -7
- package/dist-es/carousel.js +75 -73
- package/dist-es/chip.js +57 -64
- package/dist-es/circle.js +15 -16
- package/dist-es/community/advanced-data-card.css-mistica.js +4 -4
- package/dist-es/community/advanced-data-card.js +59 -56
- package/dist-es/counter.js +62 -58
- package/dist-es/cover-hero-media.js +30 -0
- package/dist-es/cover-hero.css-mistica.js +9 -0
- package/dist-es/cover-hero.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/cover-hero.js +241 -0
- package/dist-es/empty-state.js +13 -13
- package/dist-es/grid-layout.css-mistica.js +3 -3
- package/dist-es/grid-layout.js +80 -66
- package/dist-es/header.js +37 -37
- package/dist-es/highlighted-card.js +35 -31
- package/dist-es/image.js +88 -67
- package/dist-es/index.js +1817 -1814
- package/dist-es/navigation-bar.js +1 -1
- package/dist-es/package-version.js +1 -1
- package/dist-es/select.js +23 -18
- package/dist-es/skins/movistar.js +112 -99
- package/dist-es/spinner.js +38 -37
- package/dist-es/style.css +1 -1
- package/dist-es/table.css-mistica.js +14 -0
- package/dist-es/table.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/table.js +214 -0
- package/dist-es/theme.js +77 -17
- package/dist-es/timer.css-mistica.js +4 -0
- package/dist-es/timer.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/timer.js +307 -0
- package/dist-es/tooltip.js +16 -16
- package/dist-es/touchable.js +47 -43
- package/dist-es/utils/helpers.js +31 -31
- package/package.json +1 -1
|
@@ -11,10 +11,10 @@ function _export(target, all) {
|
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
13
|
AdvancedDataCard: function() {
|
|
14
|
-
return
|
|
14
|
+
return Ce;
|
|
15
15
|
},
|
|
16
16
|
default: function() {
|
|
17
|
-
return
|
|
17
|
+
return Me;
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -225,7 +225,7 @@ const ye = (_param)=>{
|
|
|
225
225
|
})
|
|
226
226
|
]
|
|
227
227
|
});
|
|
228
|
-
},
|
|
228
|
+
}, xe = (param)=>{
|
|
229
229
|
let { button: a, footerImage: i, footerText: n, footerTextLinesMax: p, buttonLink: d } = param;
|
|
230
230
|
const c = !!a, l = !!i, m = !!n, o = !!d, r = c && (l || m) && o, u = o && !r ? "178px" : "";
|
|
231
231
|
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
@@ -280,8 +280,8 @@ const ye = (_param)=>{
|
|
|
280
280
|
})
|
|
281
281
|
]
|
|
282
282
|
});
|
|
283
|
-
},
|
|
284
|
-
var { stackingGroup: a, headline: i, pretitle: n, pretitleAs: p, pretitleLinesMax: d, title: c, titleAs: l, titleLinesMax: m, subtitle: o, subtitleLinesMax: r, description: u, descriptionLinesMax: x, extra: s, extraDividerPadding: C = 24, button: A, footerImage: T, footerText: B, footerTextLinesMax:
|
|
283
|
+
}, Ce = /*#__PURE__*/ _react.forwardRef((_param, M)=>{
|
|
284
|
+
var { stackingGroup: a, headline: i, pretitle: n, pretitleAs: p, pretitleLinesMax: d, title: c, titleAs: l, titleLinesMax: m, subtitle: o, subtitleLinesMax: r, description: u, descriptionLinesMax: x, extra: s, extraDividerPadding: C = 24, button: A, footerImage: T, footerText: B, footerTextLinesMax: E, buttonLink: R, dataAttributes: G, actions: g, "aria-label": S, onClose: w } = _param, f = _object_without_properties(_param, [
|
|
285
285
|
"stackingGroup",
|
|
286
286
|
"headline",
|
|
287
287
|
"pretitle",
|
|
@@ -306,32 +306,35 @@ const ye = (_param)=>{
|
|
|
306
306
|
"aria-label",
|
|
307
307
|
"onClose"
|
|
308
308
|
]);
|
|
309
|
-
const
|
|
309
|
+
const V = !!f.href || !!f.onPress || !!f.to, W = {
|
|
310
310
|
button: A,
|
|
311
311
|
footerImage: T,
|
|
312
312
|
footerText: B,
|
|
313
|
-
footerTextLinesMax:
|
|
313
|
+
footerTextLinesMax: E,
|
|
314
314
|
buttonLink: R
|
|
315
|
-
},
|
|
315
|
+
}, D = !!A || !!T || !!B || !!R, H = !!(s != null && s.length), L = ((g == null ? void 0 : g.length) || 0) + (w ? 1 : 0);
|
|
316
316
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("section", _object_spread_props(_object_spread({
|
|
317
317
|
className: (0, _sprinklescssmistica.sprinkles)({
|
|
318
318
|
position: "relative",
|
|
319
319
|
height: "100%"
|
|
320
320
|
})
|
|
321
|
-
}, (0, _dom.getPrefixedDataAttributes)(
|
|
322
|
-
ref:
|
|
321
|
+
}, (0, _dom.getPrefixedDataAttributes)(G, "AdvancedDataCard")), {
|
|
322
|
+
ref: M,
|
|
323
323
|
"aria-label": S,
|
|
324
324
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_boxed.Boxed, {
|
|
325
325
|
className: _advanceddatacardcssmistica.dataCard,
|
|
326
|
+
width: "100%",
|
|
327
|
+
height: "100%",
|
|
328
|
+
minHeight: _advanceddatacardcssmistica.MIN_HEIGHT,
|
|
326
329
|
children: [
|
|
327
330
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
328
331
|
className: _advanceddatacardcssmistica.touchableContainer,
|
|
329
332
|
children: [
|
|
330
|
-
|
|
333
|
+
V && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
331
334
|
className: _advanceddatacardcssmistica.touchableCardOverlay
|
|
332
335
|
}),
|
|
333
336
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
334
|
-
className: (0, _classnames.default)(_advanceddatacardcssmistica.cardContentStyle, !
|
|
337
|
+
className: (0, _classnames.default)(_advanceddatacardcssmistica.cardContentStyle, !D && !H ? _advanceddatacardcssmistica.minHeight : ""),
|
|
335
338
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
336
339
|
paddingTop: 8,
|
|
337
340
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
|
|
@@ -359,7 +362,7 @@ const ye = (_param)=>{
|
|
|
359
362
|
}),
|
|
360
363
|
!a && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
361
364
|
style: (0, _css.applyCssVars)({
|
|
362
|
-
[_advanceddatacardcssmistica.vars.topActionsCount]: String(
|
|
365
|
+
[_advanceddatacardcssmistica.vars.topActionsCount]: String(L)
|
|
363
366
|
}),
|
|
364
367
|
className: _advanceddatacardcssmistica.topActionsWithoutIcon
|
|
365
368
|
})
|
|
@@ -372,7 +375,7 @@ const ye = (_param)=>{
|
|
|
372
375
|
flexGrow: 1
|
|
373
376
|
}
|
|
374
377
|
}),
|
|
375
|
-
|
|
378
|
+
H && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
376
379
|
paddingTop: 16,
|
|
377
380
|
paddingBottom: 24,
|
|
378
381
|
width: "100%",
|
|
@@ -392,13 +395,13 @@ const ye = (_param)=>{
|
|
|
392
395
|
}),
|
|
393
396
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_card.CardActionsGroup, {
|
|
394
397
|
actions: g,
|
|
395
|
-
onClose:
|
|
398
|
+
onClose: w,
|
|
396
399
|
padding: 15
|
|
397
400
|
})
|
|
398
401
|
]
|
|
399
402
|
}),
|
|
400
|
-
|
|
403
|
+
D && /* @__PURE__ */ (0, _jsxruntime.jsx)(xe, _object_spread({}, W))
|
|
401
404
|
]
|
|
402
405
|
})
|
|
403
406
|
}));
|
|
404
|
-
}),
|
|
407
|
+
}), Me = Ce;
|
package/dist/counter.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "default", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function() {
|
|
9
|
-
return
|
|
9
|
+
return vr;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -122,34 +122,34 @@ function _object_spread_props(target, source) {
|
|
|
122
122
|
}
|
|
123
123
|
return target;
|
|
124
124
|
}
|
|
125
|
-
const
|
|
125
|
+
const C = 20, Y = (param)=>{
|
|
126
126
|
let { value: h, defaultValue: b, min: m, max: s, onChangeValue: a } = param;
|
|
127
|
-
const i = h !== void 0,
|
|
127
|
+
const i = h !== void 0, p = _react.useCallback((n)=>n === void 0 ? m : Math.max(m, Math.min(s, n)), [
|
|
128
128
|
m,
|
|
129
129
|
s
|
|
130
|
-
]), [e,
|
|
131
|
-
i ||
|
|
130
|
+
]), [e, v] = _react.useState(p(b)), f = (n)=>{
|
|
131
|
+
i || v(n), a == null || a(n);
|
|
132
132
|
};
|
|
133
133
|
return [
|
|
134
|
-
i ?
|
|
135
|
-
|
|
134
|
+
i ? p(h) : e,
|
|
135
|
+
f
|
|
136
136
|
];
|
|
137
|
-
},
|
|
138
|
-
let { value: h, defaultValue: b, onChangeValue: m, onRemove: s, min: a, max: i, dataAttributes:
|
|
139
|
-
const
|
|
137
|
+
}, rr = (param)=>{
|
|
138
|
+
let { value: h, defaultValue: b, onChangeValue: m, onRemove: s, min: a, max: i, dataAttributes: p, disabled: e, removeLabel: v, increaseLabel: f, decreaseLabel: n, valueLabel: T } = param;
|
|
139
|
+
const D = (0, _themevariantcontext.useThemeVariant)(), g = (0, _hooks.useAriaId)(), { texts: u } = (0, _hooks.useTheme)(), l = a === void 0 ? 0 : a, d = Math.max(l, i === void 0 ? 999 : i), [t, V] = Y({
|
|
140
140
|
value: h,
|
|
141
141
|
defaultValue: b,
|
|
142
142
|
min: l,
|
|
143
143
|
max: d,
|
|
144
144
|
onChangeValue: m
|
|
145
|
-
}), o = !!s && t === l,
|
|
145
|
+
}), o = !!s && t === l, $ = ()=>v === void 0 ? u.counterRemoveLabel : v, k = ()=>f === void 0 ? u.counterIncreaseLabel : f, z = ()=>n === void 0 ? u.counterDecreaseLabel : n, L = ()=>`${t}, ${T === void 0 ? u.counterQuantity : T}${a !== void 0 ? `, ${u.counterMinValue} ${a}` : ""}${i !== void 0 ? `, ${u.counterMaxValue} ${i}` : ""}`;
|
|
146
146
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({
|
|
147
147
|
className: (0, _classnames.default)(_countercssmistica.counter, {
|
|
148
148
|
[_countercssmistica.disabled]: e
|
|
149
149
|
})
|
|
150
|
-
}, (0, _dom.getPrefixedDataAttributes)(
|
|
150
|
+
}, (0, _dom.getPrefixedDataAttributes)(p, "Counter")), {
|
|
151
151
|
style: {
|
|
152
|
-
border: `1px solid ${
|
|
152
|
+
border: `1px solid ${D === "inverse" ? _skincontractcssmistica.vars.colors.backgroundContainer : _skincontractcssmistica.vars.colors.border}`
|
|
153
153
|
},
|
|
154
154
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
|
|
155
155
|
space: 8,
|
|
@@ -164,8 +164,9 @@ const x = 20, W = (param)=>{
|
|
|
164
164
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, {
|
|
165
165
|
className: _countercssmistica.button,
|
|
166
166
|
disabled: !o && t === l || e,
|
|
167
|
-
onPress: ()=>o ? s == null ? void 0 : s() :
|
|
168
|
-
"aria-label": o ?
|
|
167
|
+
onPress: ()=>o ? s == null ? void 0 : s() : V(t - 1),
|
|
168
|
+
"aria-label": o ? $() : z(),
|
|
169
|
+
"aria-controls": g,
|
|
169
170
|
children: [
|
|
170
171
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
171
172
|
className: _countercssmistica.buttonBackground
|
|
@@ -174,7 +175,7 @@ const x = 20, W = (param)=>{
|
|
|
174
175
|
className: _countercssmistica.decreaseButtonIcon,
|
|
175
176
|
"aria-hidden": o,
|
|
176
177
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconsubtractregular.default, {
|
|
177
|
-
size:
|
|
178
|
+
size: C,
|
|
178
179
|
color: t === l && !o || e ? _skincontractcssmistica.vars.colors.control : _skincontractcssmistica.vars.colors.controlActivated
|
|
179
180
|
})
|
|
180
181
|
}),
|
|
@@ -182,7 +183,7 @@ const x = 20, W = (param)=>{
|
|
|
182
183
|
className: _countercssmistica.trashButtonIcon,
|
|
183
184
|
"aria-hidden": !o,
|
|
184
185
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_icontrashcanregular.default, {
|
|
185
|
-
size:
|
|
186
|
+
size: C,
|
|
186
187
|
color: _skincontractcssmistica.vars.colors.controlError
|
|
187
188
|
})
|
|
188
189
|
})
|
|
@@ -194,6 +195,8 @@ const x = 20, W = (param)=>{
|
|
|
194
195
|
style: {
|
|
195
196
|
width: `${Math.max(3, String(d).length) * 1.25}ch`
|
|
196
197
|
},
|
|
198
|
+
id: g,
|
|
199
|
+
"aria-live": "polite",
|
|
197
200
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_themevariantcontext.ThemeVariant, {
|
|
198
201
|
variant: "default",
|
|
199
202
|
children: [
|
|
@@ -207,7 +210,7 @@ const x = 20, W = (param)=>{
|
|
|
207
210
|
}),
|
|
208
211
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_screenreaderonly.default, {
|
|
209
212
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("span", {
|
|
210
|
-
children:
|
|
213
|
+
children: L()
|
|
211
214
|
})
|
|
212
215
|
})
|
|
213
216
|
]
|
|
@@ -221,8 +224,9 @@ const x = 20, W = (param)=>{
|
|
|
221
224
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, {
|
|
222
225
|
className: _countercssmistica.button,
|
|
223
226
|
disabled: t === d || e,
|
|
224
|
-
onPress: ()=>
|
|
225
|
-
"aria-label":
|
|
227
|
+
onPress: ()=>V(t + 1),
|
|
228
|
+
"aria-label": k(),
|
|
229
|
+
"aria-controls": g,
|
|
226
230
|
children: [
|
|
227
231
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
228
232
|
className: _countercssmistica.buttonBackground
|
|
@@ -230,7 +234,7 @@ const x = 20, W = (param)=>{
|
|
|
230
234
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
231
235
|
className: _countercssmistica.defaultButtonIcon,
|
|
232
236
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconaddmoreregular.default, {
|
|
233
|
-
size:
|
|
237
|
+
size: C,
|
|
234
238
|
color: t === d || e ? _skincontractcssmistica.vars.colors.control : _skincontractcssmistica.vars.colors.controlActivated
|
|
235
239
|
})
|
|
236
240
|
})
|
|
@@ -240,4 +244,4 @@ const x = 20, W = (param)=>{
|
|
|
240
244
|
]
|
|
241
245
|
})
|
|
242
246
|
}));
|
|
243
|
-
},
|
|
247
|
+
}, vr = rr;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ExclusifyUnion } from './utils/utility-types';
|
|
3
|
+
import type { VideoElement, VideoSource } from './video';
|
|
4
|
+
export type ImageProps = {
|
|
5
|
+
backgroundImage: string;
|
|
6
|
+
};
|
|
7
|
+
export type VideoProps = {
|
|
8
|
+
backgroundVideo: VideoSource;
|
|
9
|
+
poster?: string;
|
|
10
|
+
backgroundVideoRef?: React.RefObject<VideoElement>;
|
|
11
|
+
};
|
|
12
|
+
export declare const CoverHeroMedia: ({ backgroundVideo, backgroundImage, poster, backgroundVideoRef, }: ExclusifyUnion<ImageProps | VideoProps>) => React.ReactElement;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "CoverHeroMedia", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function() {
|
|
9
|
+
return y;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
13
|
+
const _card = require("./card.js");
|
|
14
|
+
const _coverherocssmistica = require("./cover-hero.css-mistica.js");
|
|
15
|
+
const _image = /*#__PURE__*/ _interop_require_default(require("./image.js"));
|
|
16
|
+
function _interop_require_default(obj) {
|
|
17
|
+
return obj && obj.__esModule ? obj : {
|
|
18
|
+
default: obj
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
const y = (param)=>{
|
|
22
|
+
let { backgroundVideo: o, backgroundImage: e, poster: t, backgroundVideoRef: s } = param;
|
|
23
|
+
const { video: m, videoAction: r } = (0, _card.useVideoWithControls)(o, t, s);
|
|
24
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
25
|
+
className: _coverherocssmistica.mediaLayer,
|
|
26
|
+
children: [
|
|
27
|
+
e && /* @__PURE__ */ (0, _jsxruntime.jsx)(_image.default, {
|
|
28
|
+
width: "100%",
|
|
29
|
+
height: "100%",
|
|
30
|
+
src: e
|
|
31
|
+
}),
|
|
32
|
+
o && m,
|
|
33
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
34
|
+
className: _coverherocssmistica.mediaOverlay
|
|
35
|
+
}),
|
|
36
|
+
r && /* @__PURE__ */ (0, _jsxruntime.jsx)(_card.CardActionsGroup, {
|
|
37
|
+
actions: [
|
|
38
|
+
r
|
|
39
|
+
],
|
|
40
|
+
type: "media"
|
|
41
|
+
})
|
|
42
|
+
]
|
|
43
|
+
});
|
|
44
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
centered: function() {
|
|
13
|
+
return n;
|
|
14
|
+
},
|
|
15
|
+
coverHero: function() {
|
|
16
|
+
return o;
|
|
17
|
+
},
|
|
18
|
+
coverHeroContainer: function() {
|
|
19
|
+
return f;
|
|
20
|
+
},
|
|
21
|
+
hasSideExtra: function() {
|
|
22
|
+
return y;
|
|
23
|
+
},
|
|
24
|
+
mainContent: function() {
|
|
25
|
+
return _;
|
|
26
|
+
},
|
|
27
|
+
mediaLayer: function() {
|
|
28
|
+
return m;
|
|
29
|
+
},
|
|
30
|
+
mediaOverlay: function() {
|
|
31
|
+
return t;
|
|
32
|
+
},
|
|
33
|
+
minHeight: function() {
|
|
34
|
+
return h;
|
|
35
|
+
},
|
|
36
|
+
sideExtra: function() {
|
|
37
|
+
return z;
|
|
38
|
+
},
|
|
39
|
+
sixColumns: function() {
|
|
40
|
+
return p;
|
|
41
|
+
},
|
|
42
|
+
vars: function() {
|
|
43
|
+
return s;
|
|
44
|
+
},
|
|
45
|
+
withAspectRatio: function() {
|
|
46
|
+
return c;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
require("./sprinkles.css.ts.vanilla.css-mistica.js");
|
|
50
|
+
require("./responsive-layout.css.ts.vanilla.css-mistica.js");
|
|
51
|
+
require("./grid-layout.css.ts.vanilla.css-mistica.js");
|
|
52
|
+
require("./carousel.css.ts.vanilla.css-mistica.js");
|
|
53
|
+
require("./cover-hero.css.ts.vanilla.css-mistica.js");
|
|
54
|
+
var n = "moeazi9 _1y2v1nfhz", o = "moeazi2 _1y2v1nfhe _1y2v1nfhk _1y2v1nfhq _1y2v1nfht _1y2v1nfi7 _1y2v1nfkr _1y2v1nfm0", f = "moeazi4 _1y2v1nfhe _1y2v1nfhk _1y2v1nfi7", y = "moeazi7", _ = "_1y2v1nfhe", m = "_1y2v1nfhf _1y2v1nfmf _1y2v1nfi7 _1y2v1nfio", t = "moeazic _1y2v1nfhf _1y2v1nfkr _1y2v1nfl6 _1y2v1nfi7 _1y2v1nfio", h = "moeazi6", z = "_1y2v1nfhe", p = "moeazie", s = {
|
|
55
|
+
aspectRatio: "var(--moeazi0)"
|
|
56
|
+
}, c = "moeazi5";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const vars: {
|
|
2
|
+
aspectRatio: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
3
|
+
};
|
|
4
|
+
export declare const coverHero: string;
|
|
5
|
+
export declare const coverHeroContainer: string;
|
|
6
|
+
export declare const withAspectRatio: string;
|
|
7
|
+
export declare const minHeight: string;
|
|
8
|
+
export declare const hasSideExtra: string;
|
|
9
|
+
export declare const centered: string;
|
|
10
|
+
export declare const mediaLayer: string;
|
|
11
|
+
export declare const mediaOverlay: string;
|
|
12
|
+
export declare const mainContent: string;
|
|
13
|
+
export declare const sixColumns: string;
|
|
14
|
+
export declare const sideExtra: string;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { DataAttributes } from './utils/types';
|
|
3
|
+
import type { ImageProps, VideoProps } from './cover-hero-media';
|
|
4
|
+
import type { AspectRatio } from './image';
|
|
5
|
+
import type { ExclusifyUnion } from './utils/utility-types';
|
|
6
|
+
import type { ButtonLink, ButtonPrimary, ButtonSecondary } from './button';
|
|
7
|
+
import type Tag from './tag';
|
|
8
|
+
import type { RendersNullableElement } from './utils/renders-element';
|
|
9
|
+
import type { Variant } from './theme-variant-context';
|
|
10
|
+
type BaseProps = {
|
|
11
|
+
headline?: RendersNullableElement<typeof Tag>;
|
|
12
|
+
pretitle?: string;
|
|
13
|
+
pretitleLinesMax?: number;
|
|
14
|
+
title: string;
|
|
15
|
+
titleLinesMax?: number;
|
|
16
|
+
titleAs?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
17
|
+
description?: string;
|
|
18
|
+
descriptionLinesMax?: number;
|
|
19
|
+
extra?: React.ReactNode;
|
|
20
|
+
sideExtra?: React.ReactNode;
|
|
21
|
+
button?: RendersNullableElement<typeof ButtonPrimary>;
|
|
22
|
+
secondaryButton?: RendersNullableElement<typeof ButtonSecondary>;
|
|
23
|
+
buttonLink?: RendersNullableElement<typeof ButtonLink>;
|
|
24
|
+
minHeight?: string | number;
|
|
25
|
+
aspectRatio?: AspectRatio | number | 'auto';
|
|
26
|
+
centered?: boolean;
|
|
27
|
+
noPaddingY?: boolean;
|
|
28
|
+
/** "data-" prefix is automatically added. For example, use "testid" instead of "data-testid" */
|
|
29
|
+
dataAttributes?: DataAttributes;
|
|
30
|
+
'aria-label'?: string;
|
|
31
|
+
};
|
|
32
|
+
type BackgroundProps = {
|
|
33
|
+
background?: string;
|
|
34
|
+
variant?: Variant;
|
|
35
|
+
};
|
|
36
|
+
type CoverHeroProps = BaseProps & ExclusifyUnion<ImageProps | VideoProps | BackgroundProps>;
|
|
37
|
+
declare const CoverHero: React.ForwardRefExoticComponent<CoverHeroProps & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
+
export default CoverHero;
|