@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
|
@@ -78,23 +78,23 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
78
78
|
}
|
|
79
79
|
return target;
|
|
80
80
|
}
|
|
81
|
-
import { jsx as e, jsxs as t, Fragment as
|
|
81
|
+
import { jsx as e, jsxs as t, Fragment as j } from "react/jsx-runtime";
|
|
82
82
|
import * as X from "react";
|
|
83
83
|
import { Boxed as Y } from "../boxed.js";
|
|
84
84
|
import { sprinkles as b } from "../sprinkles.css-mistica.js";
|
|
85
|
-
import
|
|
86
|
-
import { dataCard as $, touchableContainer as q, touchableCardOverlay as J, cardContentStyle as K, minHeight as Q, topActionsWithoutIcon as U, zindex as Z, paddingX as
|
|
87
|
-
import { vars as
|
|
88
|
-
import
|
|
89
|
-
import { Text2 as v, Text as
|
|
90
|
-
import { vars as
|
|
91
|
-
import
|
|
92
|
-
import
|
|
85
|
+
import k from "../stack.js";
|
|
86
|
+
import { dataCard as _, MIN_HEIGHT as $, touchableContainer as q, touchableCardOverlay as J, cardContentStyle as K, minHeight as Q, topActionsWithoutIcon as U, zindex as Z, paddingX as ee, touchableArea as re, divider as te, actions as ae, actionsVariants as ie, marginRightButton as oe, buttonMobile as F, footerDirection as se, marginRightAuto as ne, footerText as de, adjustButtonLink as ce, button as le, vars as me } from "./advanced-data-card.css-mistica.js";
|
|
87
|
+
import { vars as he } from "../image.css-mistica.js";
|
|
88
|
+
import z from "../divider.js";
|
|
89
|
+
import { Text2 as v, Text as pe } from "../text.js";
|
|
90
|
+
import { vars as N } from "../skins/skin-contract.css-mistica.js";
|
|
91
|
+
import y from "../box.js";
|
|
92
|
+
import ue from "../touchable.js";
|
|
93
93
|
import h from "classnames";
|
|
94
|
-
import { CardActionsGroup as
|
|
95
|
-
import { useTheme as
|
|
96
|
-
import { getPrefixedDataAttributes as
|
|
97
|
-
import
|
|
94
|
+
import { CardActionsGroup as ge } from "../card.js";
|
|
95
|
+
import { useTheme as fe } from "../hooks.js";
|
|
96
|
+
import { getPrefixedDataAttributes as ve } from "../utils/dom.js";
|
|
97
|
+
import Ne from "../inline.js";
|
|
98
98
|
import { applyCssVars as P } from "../utils/css.js";
|
|
99
99
|
const ye = (_param)=>{
|
|
100
100
|
var { headline: a, pretitle: i, pretitleAs: n = "p", pretitleLinesMax: p, title: d, titleAs: c = "h3", titleLinesMax: l, subtitle: m, subtitleLinesMax: o, description: r, descriptionLinesMax: u, ariaLabel: x } = _param, s = _object_without_properties(_param, [
|
|
@@ -111,28 +111,28 @@ const ye = (_param)=>{
|
|
|
111
111
|
"descriptionLinesMax",
|
|
112
112
|
"ariaLabel"
|
|
113
113
|
]);
|
|
114
|
-
const { textPresets: C } =
|
|
115
|
-
return /* @__PURE__ */ t(
|
|
114
|
+
const { textPresets: C } = fe();
|
|
115
|
+
return /* @__PURE__ */ t(k, {
|
|
116
116
|
space: 4,
|
|
117
117
|
children: [
|
|
118
118
|
a,
|
|
119
|
-
/* @__PURE__ */ e(
|
|
119
|
+
/* @__PURE__ */ e(ue, _object_spread_props(_object_spread({
|
|
120
120
|
tabIndex: 0,
|
|
121
121
|
maybe: !0,
|
|
122
|
-
className: h(
|
|
122
|
+
className: h(re)
|
|
123
123
|
}, s), {
|
|
124
124
|
"aria-label": x,
|
|
125
|
-
children: /* @__PURE__ */ e(
|
|
125
|
+
children: /* @__PURE__ */ e(j, {})
|
|
126
126
|
})),
|
|
127
127
|
i && /* @__PURE__ */ e(v, {
|
|
128
|
-
color:
|
|
128
|
+
color: N.colors.textPrimary,
|
|
129
129
|
truncate: p,
|
|
130
130
|
as: n,
|
|
131
131
|
regular: !0,
|
|
132
132
|
hyphens: "auto",
|
|
133
133
|
children: i
|
|
134
134
|
}),
|
|
135
|
-
/* @__PURE__ */ e(
|
|
135
|
+
/* @__PURE__ */ e(pe, {
|
|
136
136
|
mobileSize: 18,
|
|
137
137
|
mobileLineHeight: "24px",
|
|
138
138
|
desktopSize: 20,
|
|
@@ -144,7 +144,7 @@ const ye = (_param)=>{
|
|
|
144
144
|
children: d
|
|
145
145
|
}),
|
|
146
146
|
/* @__PURE__ */ e(v, {
|
|
147
|
-
color:
|
|
147
|
+
color: N.colors.textPrimary,
|
|
148
148
|
truncate: o,
|
|
149
149
|
as: "p",
|
|
150
150
|
regular: !0,
|
|
@@ -155,34 +155,34 @@ const ye = (_param)=>{
|
|
|
155
155
|
truncate: u,
|
|
156
156
|
as: "p",
|
|
157
157
|
regular: !0,
|
|
158
|
-
color:
|
|
158
|
+
color: N.colors.textSecondary,
|
|
159
159
|
hyphens: "auto",
|
|
160
160
|
children: r
|
|
161
161
|
})
|
|
162
162
|
]
|
|
163
163
|
});
|
|
164
|
-
},
|
|
164
|
+
}, xe = (param)=>{
|
|
165
165
|
let { button: a, footerImage: i, footerText: n, footerTextLinesMax: p, buttonLink: d } = param;
|
|
166
166
|
const c = !!a, l = !!i, m = !!n, o = !!d, r = c && (l || m) && o, u = o && !r ? "178px" : "";
|
|
167
|
-
return /* @__PURE__ */ t(
|
|
167
|
+
return /* @__PURE__ */ t(j, {
|
|
168
168
|
children: [
|
|
169
169
|
/* @__PURE__ */ e("div", {
|
|
170
|
-
className:
|
|
171
|
-
children: /* @__PURE__ */ e(
|
|
170
|
+
className: te,
|
|
171
|
+
children: /* @__PURE__ */ e(z, {})
|
|
172
172
|
}),
|
|
173
173
|
/* @__PURE__ */ t("div", {
|
|
174
|
-
className: h(
|
|
174
|
+
className: h(ae, ie[r ? "mobile" : "default"]),
|
|
175
175
|
children: [
|
|
176
176
|
c && /* @__PURE__ */ e("div", {
|
|
177
|
-
className: h(
|
|
177
|
+
className: h(oe, F),
|
|
178
178
|
children: a
|
|
179
179
|
}),
|
|
180
180
|
/* @__PURE__ */ t("div", {
|
|
181
|
-
className: h(
|
|
181
|
+
className: h(se, r ? ne : b({
|
|
182
182
|
paddingTop: 16
|
|
183
183
|
})),
|
|
184
184
|
children: [
|
|
185
|
-
l && /* @__PURE__ */ e(
|
|
185
|
+
l && /* @__PURE__ */ e(y, {
|
|
186
186
|
paddingRight: 16,
|
|
187
187
|
className: b({
|
|
188
188
|
alignItems: "center",
|
|
@@ -190,7 +190,7 @@ const ye = (_param)=>{
|
|
|
190
190
|
}),
|
|
191
191
|
children: /* @__PURE__ */ e("div", {
|
|
192
192
|
style: P({
|
|
193
|
-
[
|
|
193
|
+
[he.mediaBorderRadius]: N.borderRadii.mediaSmall
|
|
194
194
|
}),
|
|
195
195
|
children: i
|
|
196
196
|
})
|
|
@@ -199,7 +199,7 @@ const ye = (_param)=>{
|
|
|
199
199
|
style: {
|
|
200
200
|
maxWidth: u
|
|
201
201
|
},
|
|
202
|
-
className:
|
|
202
|
+
className: de,
|
|
203
203
|
children: /* @__PURE__ */ e(v, {
|
|
204
204
|
truncate: p,
|
|
205
205
|
regular: !0,
|
|
@@ -209,15 +209,15 @@ const ye = (_param)=>{
|
|
|
209
209
|
]
|
|
210
210
|
}),
|
|
211
211
|
o && /* @__PURE__ */ e("div", {
|
|
212
|
-
className: h(
|
|
212
|
+
className: h(ce, r ? le : F),
|
|
213
213
|
children: d
|
|
214
214
|
})
|
|
215
215
|
]
|
|
216
216
|
})
|
|
217
217
|
]
|
|
218
218
|
});
|
|
219
|
-
},
|
|
220
|
-
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:
|
|
219
|
+
}, Ce = /*#__PURE__*/ X.forwardRef((_param, M)=>{
|
|
220
|
+
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, [
|
|
221
221
|
"stackingGroup",
|
|
222
222
|
"headline",
|
|
223
223
|
"pretitle",
|
|
@@ -242,38 +242,41 @@ const ye = (_param)=>{
|
|
|
242
242
|
"aria-label",
|
|
243
243
|
"onClose"
|
|
244
244
|
]);
|
|
245
|
-
const
|
|
245
|
+
const V = !!f.href || !!f.onPress || !!f.to, W = {
|
|
246
246
|
button: A,
|
|
247
247
|
footerImage: T,
|
|
248
248
|
footerText: B,
|
|
249
|
-
footerTextLinesMax:
|
|
249
|
+
footerTextLinesMax: E,
|
|
250
250
|
buttonLink: R
|
|
251
|
-
},
|
|
251
|
+
}, D = !!A || !!T || !!B || !!R, H = !!(s != null && s.length), L = ((g == null ? void 0 : g.length) || 0) + (w ? 1 : 0);
|
|
252
252
|
return /* @__PURE__ */ e("section", _object_spread_props(_object_spread({
|
|
253
253
|
className: b({
|
|
254
254
|
position: "relative",
|
|
255
255
|
height: "100%"
|
|
256
256
|
})
|
|
257
|
-
},
|
|
258
|
-
ref:
|
|
257
|
+
}, ve(G, "AdvancedDataCard")), {
|
|
258
|
+
ref: M,
|
|
259
259
|
"aria-label": S,
|
|
260
260
|
children: /* @__PURE__ */ t(Y, {
|
|
261
|
-
className:
|
|
261
|
+
className: _,
|
|
262
|
+
width: "100%",
|
|
263
|
+
height: "100%",
|
|
264
|
+
minHeight: $,
|
|
262
265
|
children: [
|
|
263
266
|
/* @__PURE__ */ t("div", {
|
|
264
267
|
className: q,
|
|
265
268
|
children: [
|
|
266
|
-
|
|
269
|
+
V && /* @__PURE__ */ e("div", {
|
|
267
270
|
className: J
|
|
268
271
|
}),
|
|
269
272
|
/* @__PURE__ */ e("div", {
|
|
270
|
-
className: h(K, !
|
|
271
|
-
children: /* @__PURE__ */ e(
|
|
273
|
+
className: h(K, !D && !H ? Q : ""),
|
|
274
|
+
children: /* @__PURE__ */ e(y, {
|
|
272
275
|
paddingTop: 8,
|
|
273
|
-
children: /* @__PURE__ */ t(
|
|
276
|
+
children: /* @__PURE__ */ t(Ne, {
|
|
274
277
|
space: 0,
|
|
275
278
|
children: [
|
|
276
|
-
/* @__PURE__ */ t(
|
|
279
|
+
/* @__PURE__ */ t(k, {
|
|
277
280
|
space: 8,
|
|
278
281
|
children: [
|
|
279
282
|
a,
|
|
@@ -295,7 +298,7 @@ const ye = (_param)=>{
|
|
|
295
298
|
}),
|
|
296
299
|
!a && /* @__PURE__ */ e("div", {
|
|
297
300
|
style: P({
|
|
298
|
-
[
|
|
301
|
+
[me.topActionsCount]: String(L)
|
|
299
302
|
}),
|
|
300
303
|
className: U
|
|
301
304
|
})
|
|
@@ -308,7 +311,7 @@ const ye = (_param)=>{
|
|
|
308
311
|
flexGrow: 1
|
|
309
312
|
}
|
|
310
313
|
}),
|
|
311
|
-
|
|
314
|
+
H && /* @__PURE__ */ e(y, {
|
|
312
315
|
paddingTop: 16,
|
|
313
316
|
paddingBottom: 24,
|
|
314
317
|
width: "100%",
|
|
@@ -316,26 +319,26 @@ const ye = (_param)=>{
|
|
|
316
319
|
children: s.map((O, I)=>/* @__PURE__ */ t("div", {
|
|
317
320
|
children: [
|
|
318
321
|
/* @__PURE__ */ e("div", {
|
|
319
|
-
className:
|
|
322
|
+
className: ee,
|
|
320
323
|
children: O
|
|
321
324
|
}),
|
|
322
|
-
I + 1 !== s.length && /* @__PURE__ */ e(
|
|
325
|
+
I + 1 !== s.length && /* @__PURE__ */ e(y, {
|
|
323
326
|
paddingY: C,
|
|
324
|
-
children: /* @__PURE__ */ e(
|
|
327
|
+
children: /* @__PURE__ */ e(z, {})
|
|
325
328
|
})
|
|
326
329
|
]
|
|
327
330
|
}, I))
|
|
328
331
|
}),
|
|
329
|
-
/* @__PURE__ */ e(
|
|
332
|
+
/* @__PURE__ */ e(ge, {
|
|
330
333
|
actions: g,
|
|
331
|
-
onClose:
|
|
334
|
+
onClose: w,
|
|
332
335
|
padding: 15
|
|
333
336
|
})
|
|
334
337
|
]
|
|
335
338
|
}),
|
|
336
|
-
|
|
339
|
+
D && /* @__PURE__ */ e(xe, _object_spread({}, W))
|
|
337
340
|
]
|
|
338
341
|
})
|
|
339
342
|
}));
|
|
340
|
-
}),
|
|
341
|
-
export {
|
|
343
|
+
}), Me = Ce;
|
|
344
|
+
export { Ce as AdvancedDataCard, Me as default };
|
package/dist-es/counter.js
CHANGED
|
@@ -52,81 +52,82 @@ function _object_spread_props(target, source) {
|
|
|
52
52
|
return target;
|
|
53
53
|
}
|
|
54
54
|
import { jsx as r, jsxs as I } from "react/jsx-runtime";
|
|
55
|
-
import * as
|
|
56
|
-
import { getPrefixedDataAttributes as
|
|
57
|
-
import { counter as
|
|
58
|
-
import { useThemeVariant as
|
|
55
|
+
import * as B from "react";
|
|
56
|
+
import { getPrefixedDataAttributes as R } from "./utils/dom.js";
|
|
57
|
+
import { counter as j, disabled as N, buttonContainer as M, hasTrashIcon as E, isButtonDisabled as y, button as S, buttonBackground as A, decreaseButtonIcon as O, trashButtonIcon as Q, valueContainer as Z, defaultButtonIcon as _ } from "./counter.css-mistica.js";
|
|
58
|
+
import { useThemeVariant as q, ThemeVariant as w } from "./theme-variant-context.js";
|
|
59
59
|
import { vars as c } from "./skins/skin-contract.css-mistica.js";
|
|
60
|
-
import
|
|
61
|
-
import { Text3 as
|
|
60
|
+
import F from "./inline.js";
|
|
61
|
+
import { Text3 as G } from "./text.js";
|
|
62
62
|
import { BaseTouchable as P } from "./touchable.js";
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import { useTheme as
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
const
|
|
63
|
+
import H from "./generated/mistica-icons/icon-subtract-regular.js";
|
|
64
|
+
import J from "./generated/mistica-icons/icon-add-more-regular.js";
|
|
65
|
+
import K from "./generated/mistica-icons/icon-trash-can-regular.js";
|
|
66
|
+
import { useAriaId as U, useTheme as W } from "./hooks.js";
|
|
67
|
+
import x from "classnames";
|
|
68
|
+
import X from "./screen-reader-only.js";
|
|
69
|
+
const C = 20, Y = (param)=>{
|
|
70
70
|
let { value: h, defaultValue: b, min: m, max: s, onChangeValue: a } = param;
|
|
71
|
-
const i = h !== void 0,
|
|
71
|
+
const i = h !== void 0, p = B.useCallback((n)=>n === void 0 ? m : Math.max(m, Math.min(s, n)), [
|
|
72
72
|
m,
|
|
73
73
|
s
|
|
74
|
-
]), [e,
|
|
75
|
-
i ||
|
|
74
|
+
]), [e, v] = B.useState(p(b)), f = (n)=>{
|
|
75
|
+
i || v(n), a == null || a(n);
|
|
76
76
|
};
|
|
77
77
|
return [
|
|
78
|
-
i ?
|
|
79
|
-
|
|
78
|
+
i ? p(h) : e,
|
|
79
|
+
f
|
|
80
80
|
];
|
|
81
|
-
},
|
|
82
|
-
let { value: h, defaultValue: b, onChangeValue: m, onRemove: s, min: a, max: i, dataAttributes:
|
|
83
|
-
const
|
|
81
|
+
}, rr = (param)=>{
|
|
82
|
+
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;
|
|
83
|
+
const D = q(), g = U(), { texts: u } = W(), l = a === void 0 ? 0 : a, d = Math.max(l, i === void 0 ? 999 : i), [t, V] = Y({
|
|
84
84
|
value: h,
|
|
85
85
|
defaultValue: b,
|
|
86
86
|
min: l,
|
|
87
87
|
max: d,
|
|
88
88
|
onChangeValue: m
|
|
89
|
-
}), o = !!s && t === l,
|
|
89
|
+
}), 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}` : ""}`;
|
|
90
90
|
return /* @__PURE__ */ r("div", _object_spread_props(_object_spread({
|
|
91
|
-
className:
|
|
92
|
-
[
|
|
91
|
+
className: x(j, {
|
|
92
|
+
[N]: e
|
|
93
93
|
})
|
|
94
|
-
},
|
|
94
|
+
}, R(p, "Counter")), {
|
|
95
95
|
style: {
|
|
96
|
-
border: `1px solid ${
|
|
96
|
+
border: `1px solid ${D === "inverse" ? c.colors.backgroundContainer : c.colors.border}`
|
|
97
97
|
},
|
|
98
|
-
children: /* @__PURE__ */ I(
|
|
98
|
+
children: /* @__PURE__ */ I(F, {
|
|
99
99
|
space: 8,
|
|
100
100
|
alignItems: "center",
|
|
101
101
|
children: [
|
|
102
102
|
/* @__PURE__ */ r("div", {
|
|
103
|
-
className:
|
|
104
|
-
[
|
|
105
|
-
[
|
|
106
|
-
[
|
|
103
|
+
className: x(M, {
|
|
104
|
+
[E]: o,
|
|
105
|
+
[y]: e || !o && t === l,
|
|
106
|
+
[N]: !e && !o && t === l
|
|
107
107
|
}),
|
|
108
108
|
children: /* @__PURE__ */ I(P, {
|
|
109
|
-
className:
|
|
109
|
+
className: S,
|
|
110
110
|
disabled: !o && t === l || e,
|
|
111
|
-
onPress: ()=>o ? s == null ? void 0 : s() :
|
|
112
|
-
"aria-label": o ?
|
|
111
|
+
onPress: ()=>o ? s == null ? void 0 : s() : V(t - 1),
|
|
112
|
+
"aria-label": o ? $() : z(),
|
|
113
|
+
"aria-controls": g,
|
|
113
114
|
children: [
|
|
114
115
|
/* @__PURE__ */ r("div", {
|
|
115
|
-
className:
|
|
116
|
+
className: A
|
|
116
117
|
}),
|
|
117
118
|
/* @__PURE__ */ r("div", {
|
|
118
|
-
className:
|
|
119
|
+
className: O,
|
|
119
120
|
"aria-hidden": o,
|
|
120
|
-
children: /* @__PURE__ */ r(
|
|
121
|
-
size:
|
|
121
|
+
children: /* @__PURE__ */ r(H, {
|
|
122
|
+
size: C,
|
|
122
123
|
color: t === l && !o || e ? c.colors.control : c.colors.controlActivated
|
|
123
124
|
})
|
|
124
125
|
}),
|
|
125
126
|
/* @__PURE__ */ r("div", {
|
|
126
|
-
className:
|
|
127
|
+
className: Q,
|
|
127
128
|
"aria-hidden": !o,
|
|
128
|
-
children: /* @__PURE__ */ r(
|
|
129
|
-
size:
|
|
129
|
+
children: /* @__PURE__ */ r(K, {
|
|
130
|
+
size: C,
|
|
130
131
|
color: c.colors.controlError
|
|
131
132
|
})
|
|
132
133
|
})
|
|
@@ -134,47 +135,50 @@ const x = 20, W = (param)=>{
|
|
|
134
135
|
})
|
|
135
136
|
}),
|
|
136
137
|
/* @__PURE__ */ r("div", {
|
|
137
|
-
className:
|
|
138
|
+
className: Z,
|
|
138
139
|
style: {
|
|
139
140
|
width: `${Math.max(3, String(d).length) * 1.25}ch`
|
|
140
141
|
},
|
|
141
|
-
|
|
142
|
+
id: g,
|
|
143
|
+
"aria-live": "polite",
|
|
144
|
+
children: /* @__PURE__ */ I(w, {
|
|
142
145
|
variant: "default",
|
|
143
146
|
children: [
|
|
144
147
|
/* @__PURE__ */ r("div", {
|
|
145
148
|
"aria-hidden": !0,
|
|
146
|
-
children: /* @__PURE__ */ r(
|
|
149
|
+
children: /* @__PURE__ */ r(G, {
|
|
147
150
|
regular: !0,
|
|
148
151
|
color: c.colors.textPrimary,
|
|
149
152
|
children: t
|
|
150
153
|
})
|
|
151
154
|
}),
|
|
152
|
-
/* @__PURE__ */ r(
|
|
155
|
+
/* @__PURE__ */ r(X, {
|
|
153
156
|
children: /* @__PURE__ */ r("span", {
|
|
154
|
-
children:
|
|
157
|
+
children: L()
|
|
155
158
|
})
|
|
156
159
|
})
|
|
157
160
|
]
|
|
158
161
|
})
|
|
159
162
|
}),
|
|
160
163
|
/* @__PURE__ */ r("div", {
|
|
161
|
-
className:
|
|
162
|
-
[
|
|
163
|
-
[
|
|
164
|
+
className: x(M, {
|
|
165
|
+
[y]: e || t === d,
|
|
166
|
+
[N]: !e && t === d
|
|
164
167
|
}),
|
|
165
168
|
children: /* @__PURE__ */ I(P, {
|
|
166
|
-
className:
|
|
169
|
+
className: S,
|
|
167
170
|
disabled: t === d || e,
|
|
168
|
-
onPress: ()=>
|
|
169
|
-
"aria-label":
|
|
171
|
+
onPress: ()=>V(t + 1),
|
|
172
|
+
"aria-label": k(),
|
|
173
|
+
"aria-controls": g,
|
|
170
174
|
children: [
|
|
171
175
|
/* @__PURE__ */ r("div", {
|
|
172
|
-
className:
|
|
176
|
+
className: A
|
|
173
177
|
}),
|
|
174
178
|
/* @__PURE__ */ r("div", {
|
|
175
|
-
className:
|
|
176
|
-
children: /* @__PURE__ */ r(
|
|
177
|
-
size:
|
|
179
|
+
className: _,
|
|
180
|
+
children: /* @__PURE__ */ r(J, {
|
|
181
|
+
size: C,
|
|
178
182
|
color: t === d || e ? c.colors.control : c.colors.controlActivated
|
|
179
183
|
})
|
|
180
184
|
})
|
|
@@ -184,5 +188,5 @@ const x = 20, W = (param)=>{
|
|
|
184
188
|
]
|
|
185
189
|
})
|
|
186
190
|
}));
|
|
187
|
-
},
|
|
188
|
-
export {
|
|
191
|
+
}, vr = rr;
|
|
192
|
+
export { vr as default };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as a, jsx as i } from "react/jsx-runtime";
|
|
3
|
+
import { useVideoWithControls as d, CardActionsGroup as c } from "./card.js";
|
|
4
|
+
import { mediaLayer as p, mediaOverlay as n } from "./cover-hero.css-mistica.js";
|
|
5
|
+
import v from "./image.js";
|
|
6
|
+
const y = (param)=>{
|
|
7
|
+
let { backgroundVideo: o, backgroundImage: e, poster: t, backgroundVideoRef: s } = param;
|
|
8
|
+
const { video: m, videoAction: r } = d(o, t, s);
|
|
9
|
+
return /* @__PURE__ */ a("div", {
|
|
10
|
+
className: p,
|
|
11
|
+
children: [
|
|
12
|
+
e && /* @__PURE__ */ i(v, {
|
|
13
|
+
width: "100%",
|
|
14
|
+
height: "100%",
|
|
15
|
+
src: e
|
|
16
|
+
}),
|
|
17
|
+
o && m,
|
|
18
|
+
/* @__PURE__ */ i("div", {
|
|
19
|
+
className: n
|
|
20
|
+
}),
|
|
21
|
+
r && /* @__PURE__ */ i(c, {
|
|
22
|
+
actions: [
|
|
23
|
+
r
|
|
24
|
+
],
|
|
25
|
+
type: "media"
|
|
26
|
+
})
|
|
27
|
+
]
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
export { y as CoverHeroMedia };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./sprinkles.css.ts.vanilla.css-mistica.js";
|
|
2
|
+
import "./responsive-layout.css.ts.vanilla.css-mistica.js";
|
|
3
|
+
import "./grid-layout.css.ts.vanilla.css-mistica.js";
|
|
4
|
+
import "./carousel.css.ts.vanilla.css-mistica.js";
|
|
5
|
+
import "./cover-hero.css.ts.vanilla.css-mistica.js";
|
|
6
|
+
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 = {
|
|
7
|
+
aspectRatio: "var(--moeazi0)"
|
|
8
|
+
}, c = "moeazi5";
|
|
9
|
+
export { n as centered, o as coverHero, f as coverHeroContainer, y as hasSideExtra, _ as mainContent, m as mediaLayer, t as mediaOverlay, h as minHeight, z as sideExtra, p as sixColumns, s as vars, c as withAspectRatio };
|