@telefonica/mistica 15.2.0 → 15.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/box.js +3 -3
- package/dist/boxed.js +2 -2
- package/dist/button-group.js +2 -2
- package/dist/button.js +5 -5
- package/dist/carousel.js +29 -29
- package/dist/chip.js +2 -2
- package/dist/community/advanced-data-card.d.ts +6 -2
- package/dist/community/advanced-data-card.js +4 -4
- package/dist/counter.js +7 -7
- package/dist/feedback.js +2 -2
- package/dist/fixed-footer-layout.css-mistica.js +5 -5
- package/dist/fixed-footer-layout.js +19 -17
- package/dist/form.js +6 -6
- package/dist/hero.css-mistica.js +12 -6
- package/dist/hero.css.d.ts +2 -0
- package/dist/hero.d.ts +2 -1
- package/dist/hero.js +80 -69
- package/dist/horizontal-scroll.js +2 -2
- package/dist/image.js +9 -7
- package/dist/list.js +19 -15
- package/dist/loading-bar.js +2 -2
- package/dist/loading-screen.js +3 -3
- package/dist/package-version.js +1 -1
- package/dist/pin-field.js +2 -2
- package/dist/progress-bar.js +4 -4
- package/dist/radio-button.js +3 -3
- package/dist/responsive-layout.css-mistica.js +18 -9
- package/dist/responsive-layout.d.ts +1 -0
- package/dist/responsive-layout.js +15 -15
- package/dist/select.js +16 -16
- package/dist/sheet.js +82 -81
- package/dist/slider.js +8 -8
- package/dist/tag.js +2 -2
- package/dist/text-field-base.js +3 -3
- package/dist/text-field-components.js +2 -2
- package/dist/text.js +105 -84
- package/dist/utils/aspect-ratio-support.js +8 -8
- package/dist/utils/browser.js +1 -1
- package/dist/video.js +2 -2
- package/dist-es/box.js +7 -7
- package/dist-es/boxed.js +2 -2
- package/dist-es/button-group.js +4 -4
- package/dist-es/button-layout.js +5 -5
- package/dist-es/button.js +11 -11
- package/dist-es/callout.js +8 -8
- package/dist-es/carousel.js +29 -29
- package/dist-es/checkbox.js +7 -7
- package/dist-es/chip.js +4 -4
- package/dist-es/community/advanced-data-card.js +14 -14
- package/dist-es/counter.js +21 -21
- package/dist-es/empty-state.js +12 -12
- package/dist-es/feedback.js +5 -5
- package/dist-es/fixed-footer-layout.css-mistica.js +2 -2
- package/dist-es/fixed-footer-layout.js +33 -31
- package/dist-es/form.js +9 -9
- package/dist-es/grid.js +3 -3
- package/dist-es/hero.css-mistica.js +2 -2
- package/dist-es/hero.js +119 -108
- package/dist-es/horizontal-scroll.js +2 -2
- package/dist-es/image.js +15 -13
- package/dist-es/list.js +15 -11
- package/dist-es/loading-bar.js +6 -6
- package/dist-es/loading-screen.js +8 -8
- package/dist-es/package-version.js +1 -1
- package/dist-es/pin-field.js +10 -10
- package/dist-es/progress-bar.js +9 -9
- package/dist-es/radio-button.js +9 -9
- package/dist-es/responsive-layout.css-mistica.js +3 -3
- package/dist-es/responsive-layout.js +21 -21
- package/dist-es/select.js +22 -22
- package/dist-es/sheet.js +124 -123
- package/dist-es/slider.js +8 -8
- package/dist-es/style.css +1 -1
- package/dist-es/tag.js +4 -4
- package/dist-es/text-field-base.js +11 -11
- package/dist-es/text-field-components.js +9 -9
- package/dist-es/text-link.js +5 -5
- package/dist-es/text.js +103 -82
- package/dist-es/utils/aspect-ratio-support.js +14 -14
- package/dist-es/utils/browser.js +1 -1
- package/dist-es/video.js +5 -5
- package/package.json +1 -1
package/dist-es/image.js
CHANGED
|
@@ -80,9 +80,9 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
80
80
|
}
|
|
81
81
|
import { jsx as t, jsxs as R, Fragment as k } from "react/jsx-runtime";
|
|
82
82
|
import * as r from "react";
|
|
83
|
-
import
|
|
84
|
-
import { SkeletonAnimation as
|
|
85
|
-
import { AspectRatioContainer as
|
|
83
|
+
import F from "classnames";
|
|
84
|
+
import { SkeletonAnimation as L } from "./skeletons.js";
|
|
85
|
+
import { AspectRatioContainer as N } from "./utils/aspect-ratio-support.js";
|
|
86
86
|
import { getPrefixedDataAttributes as W } from "./utils/dom.js";
|
|
87
87
|
import { useIsInverseVariant as M } from "./theme-variant-context.js";
|
|
88
88
|
import { useTheme as V, useAriaId as D } from "./hooks.js";
|
|
@@ -163,7 +163,7 @@ const X = (param)=>{
|
|
|
163
163
|
"errorFallback"
|
|
164
164
|
]);
|
|
165
165
|
var v;
|
|
166
|
-
const h = D(), l = r.useRef(), u = i.circular ? $ : m ? P : U, [I, f] = r.useState(!o), [H, g] = r.useState(!1), C = i.width && i.height ? void 0 : i.circular ? 1 : typeof e == "number" ? e : S[e], b = A && !!(C !== 0 || i.width && i.height),
|
|
166
|
+
const h = D(), l = r.useRef(), u = i.circular ? $ : m ? P : U, [I, f] = r.useState(!o), [H, g] = r.useState(!1), C = i.width && i.height ? void 0 : i.circular ? 1 : typeof e == "number" ? e : S[e], b = A && !!(C !== 0 || i.width && i.height), T = B && !!(C !== 0 || i.width && i.height), w = r.useCallback(()=>{
|
|
167
167
|
f(!1), l.current && (l.current.style.opacity = "1"), setTimeout(()=>{
|
|
168
168
|
g(!0);
|
|
169
169
|
}, K), n == null || n();
|
|
@@ -180,17 +180,17 @@ const X = (param)=>{
|
|
|
180
180
|
}, [
|
|
181
181
|
w
|
|
182
182
|
]);
|
|
183
|
-
const
|
|
183
|
+
const _ = Q() || !((v = document.getElementById(h)) != null && v.complete), z = /* @__PURE__ */ R(k, {
|
|
184
184
|
children: [
|
|
185
185
|
/* @__PURE__ */ t("img", {
|
|
186
186
|
suppressHydrationWarning: !0,
|
|
187
187
|
id: h,
|
|
188
188
|
style: {
|
|
189
|
-
opacity:
|
|
189
|
+
opacity: _ && b ? 0 : 1
|
|
190
190
|
},
|
|
191
191
|
ref: G(l, E),
|
|
192
192
|
src: o,
|
|
193
|
-
className:
|
|
193
|
+
className: F(u, Z, {
|
|
194
194
|
[q]: i.border
|
|
195
195
|
}, j({
|
|
196
196
|
position: C !== 0 ? "absolute" : "static"
|
|
@@ -215,19 +215,21 @@ const X = (param)=>{
|
|
|
215
215
|
style: {
|
|
216
216
|
position: "absolute",
|
|
217
217
|
width: "100%",
|
|
218
|
-
height: "100%"
|
|
218
|
+
height: "100%",
|
|
219
|
+
overflow: "hidden"
|
|
219
220
|
},
|
|
220
|
-
|
|
221
|
+
className: u,
|
|
222
|
+
children: /* @__PURE__ */ t(L, {
|
|
221
223
|
height: (_i_height = i.height) !== null && _i_height !== void 0 ? _i_height : "100%",
|
|
222
224
|
width: (_i_width = i.width) !== null && _i_width !== void 0 ? _i_width : "100%",
|
|
223
225
|
children: /* @__PURE__ */ t(J, {
|
|
224
226
|
height: "100%",
|
|
225
227
|
width: "100%",
|
|
226
|
-
|
|
228
|
+
noBorderRadius: !0
|
|
227
229
|
})
|
|
228
230
|
})
|
|
229
231
|
}),
|
|
230
|
-
I &&
|
|
232
|
+
I && T && /* @__PURE__ */ t("div", {
|
|
231
233
|
style: {
|
|
232
234
|
position: "absolute",
|
|
233
235
|
width: "100%",
|
|
@@ -239,13 +241,13 @@ const X = (param)=>{
|
|
|
239
241
|
className: u
|
|
240
242
|
})
|
|
241
243
|
}),
|
|
242
|
-
!I &&
|
|
244
|
+
!I && z
|
|
243
245
|
]
|
|
244
246
|
});
|
|
245
247
|
}), e1 = /*#__PURE__*/ r.forwardRef((e, d)=>{
|
|
246
248
|
var _e_aspectRatio;
|
|
247
249
|
const c = e.width && e.height ? void 0 : e.circular ? 1 : typeof e.aspectRatio == "number" ? e.aspectRatio : S[(_e_aspectRatio = e.aspectRatio) !== null && _e_aspectRatio !== void 0 ? _e_aspectRatio : x];
|
|
248
|
-
return /* @__PURE__ */ t(
|
|
250
|
+
return /* @__PURE__ */ t(N, {
|
|
249
251
|
style: {
|
|
250
252
|
position: "relative"
|
|
251
253
|
},
|
package/dist-es/list.js
CHANGED
|
@@ -100,6 +100,7 @@ import { vars as Ne } from "./image.css-mistica.js";
|
|
|
100
100
|
import { vars as N } from "./skins/skin-contract.css-mistica.js";
|
|
101
101
|
import { applyCssVars as Re } from "./utils/css.js";
|
|
102
102
|
import { IconButton as $, ToggleIconButton as p } from "./icon-button.js";
|
|
103
|
+
import { sprinkles as Ce } from "./sprinkles.css-mistica.js";
|
|
103
104
|
const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
104
105
|
centerY: n
|
|
105
106
|
}) : n ? /* @__PURE__ */ t("div", {
|
|
@@ -109,7 +110,7 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
109
110
|
height: "100%"
|
|
110
111
|
},
|
|
111
112
|
children: e
|
|
112
|
-
}) : e,
|
|
113
|
+
}) : e, ke = (param)=>{
|
|
113
114
|
let { withChevron: e, headline: n, title: r, titleAs: c, titleLinesMax: m, subtitle: g, subtitleLinesMax: v, description: A, descriptionLinesMax: M, detail: f, asset: S, type: x = "basic", badge: E, right: V, extra: l, labelId: W, disabled: o } = param;
|
|
114
115
|
const j = te(), d = [
|
|
115
116
|
n,
|
|
@@ -239,7 +240,7 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
239
240
|
})
|
|
240
241
|
]
|
|
241
242
|
});
|
|
242
|
-
},
|
|
243
|
+
}, Ie = (param)=>{
|
|
243
244
|
let { value: e, defaultValue: n, onChange: r } = param;
|
|
244
245
|
const c = e !== void 0, [m, g] = I.useState(!!n), v = ()=>{
|
|
245
246
|
c || g(!m), r && r(c ? !e : !m);
|
|
@@ -251,10 +252,10 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
251
252
|
m,
|
|
252
253
|
v
|
|
253
254
|
];
|
|
254
|
-
},
|
|
255
|
-
const r = oe(), c = te(), { asset: m, headline: g, title: v, titleLinesMax: A, subtitle: M, subtitleLinesMax: f, description: S, descriptionLinesMax: x, detail: E, badge: V, role: l, extra: W, dataAttributes: o } = e, j = le(), i = e.disabled || e.radioValue !== void 0 && j.disabled, d = !i && !c, u = !i && c, [G, J] =
|
|
255
|
+
}, Pe = (e)=>e.switch !== void 0, Le = (e)=>e.checkbox !== void 0, Ae = (e)=>e.radioValue !== void 0, Ee = (e)=>e.iconButton !== void 0, ne = /*#__PURE__*/ I.forwardRef((e, n)=>{
|
|
256
|
+
const r = oe(), c = te(), { asset: m, headline: g, title: v, titleLinesMax: A, subtitle: M, subtitleLinesMax: f, description: S, descriptionLinesMax: x, detail: E, badge: V, role: l, extra: W, dataAttributes: o } = e, j = le(), i = e.disabled || e.radioValue !== void 0 && j.disabled, d = !i && !c, u = !i && c, [G, J] = Ie(e.switch || e.checkbox || {}), b = (param)=>{
|
|
256
257
|
let { type: s, right: w, labelId: X } = param;
|
|
257
|
-
return /* @__PURE__ */ t(
|
|
258
|
+
return /* @__PURE__ */ t(ke, {
|
|
258
259
|
asset: m,
|
|
259
260
|
headline: g,
|
|
260
261
|
title: v,
|
|
@@ -283,7 +284,7 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
283
284
|
})
|
|
284
285
|
});
|
|
285
286
|
};
|
|
286
|
-
if (e.onPress && !
|
|
287
|
+
if (e.onPress && !Pe(e) && !Le(e) && !Ae(e) && !Ee(e)) return /* @__PURE__ */ t(P, {
|
|
287
288
|
ref: n,
|
|
288
289
|
className: a(k, {
|
|
289
290
|
[y]: d,
|
|
@@ -523,13 +524,16 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
523
524
|
type: "basic"
|
|
524
525
|
})
|
|
525
526
|
});
|
|
526
|
-
}),
|
|
527
|
+
}), pe = /*#__PURE__*/ I.forwardRef((_param, c)=>{
|
|
527
528
|
var { dataAttributes: e, role: n = "listitem" } = _param, r = _object_without_properties(_param, [
|
|
528
529
|
"dataAttributes",
|
|
529
530
|
"role"
|
|
530
531
|
]);
|
|
531
532
|
return /* @__PURE__ */ t("div", {
|
|
532
533
|
role: n,
|
|
534
|
+
className: Ce({
|
|
535
|
+
width: "100%"
|
|
536
|
+
}),
|
|
533
537
|
children: /* @__PURE__ */ t(ne, _object_spread_props(_object_spread({}, r), {
|
|
534
538
|
ref: c,
|
|
535
539
|
dataAttributes: _object_spread({
|
|
@@ -537,7 +541,7 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
537
541
|
}, e)
|
|
538
542
|
}))
|
|
539
543
|
});
|
|
540
|
-
}),
|
|
544
|
+
}), et = (param)=>{
|
|
541
545
|
let { children: e, ariaLabelledby: n, role: r = "list", dataAttributes: c } = param;
|
|
542
546
|
const m = I.Children.count(e) - 1;
|
|
543
547
|
return /* @__PURE__ */ t("div", _object_spread_props(_object_spread({
|
|
@@ -554,7 +558,7 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
554
558
|
]
|
|
555
559
|
}, v))
|
|
556
560
|
}));
|
|
557
|
-
},
|
|
561
|
+
}, tt = /*#__PURE__*/ I.forwardRef((_param, r)=>{
|
|
558
562
|
var { dataAttributes: e } = _param, n = _object_without_properties(_param, [
|
|
559
563
|
"dataAttributes"
|
|
560
564
|
]);
|
|
@@ -566,7 +570,7 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
566
570
|
}, e),
|
|
567
571
|
children: /* @__PURE__ */ t(ne, _object_spread({}, n))
|
|
568
572
|
});
|
|
569
|
-
}),
|
|
573
|
+
}), nt = (param)=>{
|
|
570
574
|
let { children: e, ariaLabelledby: n, role: r = "list", dataAttributes: c } = param;
|
|
571
575
|
return /* @__PURE__ */ t(R, {
|
|
572
576
|
space: 16,
|
|
@@ -578,4 +582,4 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
578
582
|
children: e
|
|
579
583
|
});
|
|
580
584
|
};
|
|
581
|
-
export {
|
|
585
|
+
export { tt as BoxedRow, nt as BoxedRowList, ke as Content, pe as Row, et as RowList };
|
package/dist-es/loading-bar.js
CHANGED
|
@@ -54,21 +54,21 @@ function _object_spread_props(target, source) {
|
|
|
54
54
|
import { jsx as r } from "react/jsx-runtime";
|
|
55
55
|
import { Portal as s } from "./portal.js";
|
|
56
56
|
import { portal as t, hidden as e, progressContainer as i, progress as m } from "./loading-bar.css-mistica.js";
|
|
57
|
-
import { getPrefixedDataAttributes as
|
|
58
|
-
import
|
|
57
|
+
import { getPrefixedDataAttributes as n } from "./utils/dom.js";
|
|
58
|
+
import d from "classnames";
|
|
59
59
|
const l = (param)=>{
|
|
60
60
|
let { visible: a, dataAttributes: o } = param;
|
|
61
61
|
return /* @__PURE__ */ r(s, {
|
|
62
|
-
className:
|
|
62
|
+
className: d(t, {
|
|
63
63
|
[e]: !a
|
|
64
64
|
}),
|
|
65
65
|
children: /* @__PURE__ */ r("div", _object_spread_props(_object_spread({
|
|
66
66
|
className: i
|
|
67
|
-
},
|
|
67
|
+
}, n(o, "LoadingBar")), {
|
|
68
68
|
children: /* @__PURE__ */ r("div", {
|
|
69
69
|
className: m
|
|
70
70
|
})
|
|
71
71
|
}))
|
|
72
72
|
});
|
|
73
|
-
},
|
|
74
|
-
export {
|
|
73
|
+
}, u = l;
|
|
74
|
+
export { u as default };
|
|
@@ -80,7 +80,7 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
80
80
|
}
|
|
81
81
|
import { jsxs as S, jsx as n } from "react/jsx-runtime";
|
|
82
82
|
import * as o from "react";
|
|
83
|
-
import { useSetOverscrollColor as
|
|
83
|
+
import { useSetOverscrollColor as N } from "./overscroll-color-context.js";
|
|
84
84
|
import { ThemeVariant as B } from "./theme-variant-context.js";
|
|
85
85
|
import { vars as f } from "./skins/skin-contract.css-mistica.js";
|
|
86
86
|
import E from "./responsive-layout.js";
|
|
@@ -92,7 +92,7 @@ import T from "classnames";
|
|
|
92
92
|
import { sprinkles as $ } from "./sprinkles.css-mistica.js";
|
|
93
93
|
import { Logo as q } from "./logo.js";
|
|
94
94
|
import G from "./screen-reader-only.js";
|
|
95
|
-
import { useTheme as
|
|
95
|
+
import { useTheme as R } from "./hooks.js";
|
|
96
96
|
import { VIVO_NEW_SKIN as H } from "./skins/constants.js";
|
|
97
97
|
import { getPrefixedDataAttributes as J } from "./utils/dom.js";
|
|
98
98
|
const L = (param)=>{
|
|
@@ -168,7 +168,7 @@ const L = (param)=>{
|
|
|
168
168
|
})
|
|
169
169
|
}, c)
|
|
170
170
|
});
|
|
171
|
-
},
|
|
171
|
+
}, x = /*#__PURE__*/ o.forwardRef((param, d)=>{
|
|
172
172
|
let { isInverse: e, children: r, isLoading: t = !0, animateText: i, animateBackground: c, onClose: s, dataAttributes: a, title: l, description: u, texts: m = [
|
|
173
173
|
{
|
|
174
174
|
title: l,
|
|
@@ -213,7 +213,7 @@ const L = (param)=>{
|
|
|
213
213
|
s
|
|
214
214
|
]);
|
|
215
215
|
const b = !r;
|
|
216
|
-
return
|
|
216
|
+
return N(e ? {
|
|
217
217
|
topColor: f.colors.backgroundBrandTop
|
|
218
218
|
} : {}), /* @__PURE__ */ S(B, {
|
|
219
219
|
isInverse: e,
|
|
@@ -258,7 +258,7 @@ const L = (param)=>{
|
|
|
258
258
|
})
|
|
259
259
|
]
|
|
260
260
|
});
|
|
261
|
-
}), pe = /*#__PURE__*/ o.forwardRef((e, r)=>/* @__PURE__ */ n(
|
|
261
|
+
}), pe = /*#__PURE__*/ o.forwardRef((e, r)=>/* @__PURE__ */ n(x, _object_spread_props(_object_spread({
|
|
262
262
|
ref: r
|
|
263
263
|
}, e), {
|
|
264
264
|
dataAttributes: _object_spread({
|
|
@@ -267,7 +267,7 @@ const L = (param)=>{
|
|
|
267
267
|
animateBackground: !0
|
|
268
268
|
}))), U = (param)=>{
|
|
269
269
|
let { isLoading: e, onCloseStart: r, onCloseEnd: t } = param;
|
|
270
|
-
const { texts: i } =
|
|
270
|
+
const { texts: i } = R(), [c, s] = o.useState(!0), a = ()=>{
|
|
271
271
|
e || (r == null || r(), s(!1), t == null || t());
|
|
272
272
|
};
|
|
273
273
|
return /* @__PURE__ */ S("div", {
|
|
@@ -288,7 +288,7 @@ const L = (param)=>{
|
|
|
288
288
|
});
|
|
289
289
|
}, X = /*#__PURE__*/ o.lazy(()=>import("./vivinho-loading-animation/index.js")), Y = (param)=>{
|
|
290
290
|
let { isLoading: e, onCloseStart: r, onCloseEnd: t } = param;
|
|
291
|
-
const { skinName: i } =
|
|
291
|
+
const { skinName: i } = R();
|
|
292
292
|
return i === H ? /* @__PURE__ */ n(o.Suspense, {
|
|
293
293
|
fallback: null,
|
|
294
294
|
children: /* @__PURE__ */ n(X, {
|
|
@@ -312,7 +312,7 @@ const L = (param)=>{
|
|
|
312
312
|
}, d = ()=>{
|
|
313
313
|
l.current && u.current && (r == null || r());
|
|
314
314
|
};
|
|
315
|
-
return /* @__PURE__ */ n(
|
|
315
|
+
return /* @__PURE__ */ n(x, _object_spread_props(_object_spread({
|
|
316
316
|
ref: c,
|
|
317
317
|
isInverse: !0
|
|
318
318
|
}, i), {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const o = "15.
|
|
1
|
+
const o = "15.3.0";
|
|
2
2
|
export { o as PACKAGE_VERSION };
|
package/dist-es/pin-field.js
CHANGED
|
@@ -51,10 +51,10 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
}
|
|
52
52
|
return target;
|
|
53
53
|
}
|
|
54
|
-
import { jsxs as
|
|
55
|
-
import
|
|
54
|
+
import { jsxs as $, jsx as n } from "react/jsx-runtime";
|
|
55
|
+
import D from "classnames";
|
|
56
56
|
import * as m from "react";
|
|
57
|
-
import
|
|
57
|
+
import N from "./inline.js";
|
|
58
58
|
import { input as B } from "./text-field-base.css-mistica.js";
|
|
59
59
|
import { fieldContainer as E, disabled as L, readOnlyField as j, focusedField as O, field as W, input as q, passwordInput as z, pinInputLineHeight as h, passwordDot as K } from "./pin-field.css-mistica.js";
|
|
60
60
|
import { useAriaId as M, useTheme as _ } from "./hooks.js";
|
|
@@ -115,7 +115,7 @@ const x = (param)=>{
|
|
|
115
115
|
l,
|
|
116
116
|
d
|
|
117
117
|
]);
|
|
118
|
-
const
|
|
118
|
+
const H = (s)=>(e)=>{
|
|
119
119
|
var k;
|
|
120
120
|
const r = e.target.value;
|
|
121
121
|
if (r === "") return;
|
|
@@ -131,13 +131,13 @@ const x = (param)=>{
|
|
|
131
131
|
c(P);
|
|
132
132
|
}), v !== s && v <= l - 1 && ((k = a[v]) == null || k.focus()));
|
|
133
133
|
};
|
|
134
|
-
return /* @__PURE__ */ n(
|
|
134
|
+
return /* @__PURE__ */ n(N, {
|
|
135
135
|
space: 8,
|
|
136
136
|
children: Array.from({
|
|
137
137
|
length: l
|
|
138
138
|
}).map((s, e)=>/* @__PURE__ */ {
|
|
139
139
|
var _t_e;
|
|
140
|
-
return
|
|
140
|
+
return $("div", {
|
|
141
141
|
className: y ? j : e === w ? O : W,
|
|
142
142
|
children: [
|
|
143
143
|
/* @__PURE__ */ n(J, {
|
|
@@ -156,7 +156,7 @@ const x = (param)=>{
|
|
|
156
156
|
inputRef: (r)=>{
|
|
157
157
|
a[e] = r, e === 0 && A(r);
|
|
158
158
|
},
|
|
159
|
-
className:
|
|
159
|
+
className: D(B, q, {
|
|
160
160
|
[z]: f
|
|
161
161
|
}),
|
|
162
162
|
style: {
|
|
@@ -170,7 +170,7 @@ const x = (param)=>{
|
|
|
170
170
|
readOnly: y,
|
|
171
171
|
autoComplete: d ? "one-time-code" : void 0,
|
|
172
172
|
value: (_t_e = t[e]) !== null && _t_e !== void 0 ? _t_e : "",
|
|
173
|
-
onChange:
|
|
173
|
+
onChange: H(e),
|
|
174
174
|
onKeyDown: (r)=>{
|
|
175
175
|
switch(r.key){
|
|
176
176
|
case "Backspace":
|
|
@@ -219,10 +219,10 @@ const x = (param)=>{
|
|
|
219
219
|
onChangeValue: R,
|
|
220
220
|
onChange: S
|
|
221
221
|
}), t = M();
|
|
222
|
-
return /* @__PURE__ */
|
|
222
|
+
return /* @__PURE__ */ $("div", _object_spread_props(_object_spread({
|
|
223
223
|
role: "group",
|
|
224
224
|
"aria-labelledby": I !== null && I !== void 0 ? I : t,
|
|
225
|
-
className:
|
|
225
|
+
className: D(E, {
|
|
226
226
|
[L]: g
|
|
227
227
|
})
|
|
228
228
|
}, U(a, "PinField")), {
|
package/dist-es/progress-bar.js
CHANGED
|
@@ -55,9 +55,9 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
55
55
|
import * as b from "react";
|
|
56
56
|
import { useTheme as f } from "./hooks.js";
|
|
57
57
|
import { vars as h } from "./skins/skin-contract.css-mistica.js";
|
|
58
|
-
import { barBackground as B, bar as S, inverse as $, normal as x, progressBarSteppedContainer as
|
|
58
|
+
import { barBackground as B, bar as S, inverse as $, normal as x, progressBarSteppedContainer as N } from "./progress-bar.css-mistica.js";
|
|
59
59
|
import { getPrefixedDataAttributes as C } from "./utils/dom.js";
|
|
60
|
-
import
|
|
60
|
+
import k from "classnames";
|
|
61
61
|
import P from "./inline.js";
|
|
62
62
|
const E = (param)=>{
|
|
63
63
|
let { progressPercent: r, color: o, "aria-label": d, "aria-labelledby": l, dataAttributes: i, reverse: n = !1 } = param;
|
|
@@ -71,7 +71,7 @@ const E = (param)=>{
|
|
|
71
71
|
"aria-label": s,
|
|
72
72
|
"aria-labelledby": l,
|
|
73
73
|
children: /* @__PURE__ */ t("div", {
|
|
74
|
-
className:
|
|
74
|
+
className: k(S, n ? $ : x),
|
|
75
75
|
style: {
|
|
76
76
|
maxWidth: `${a}%`,
|
|
77
77
|
backgroundColor: o !== null && o !== void 0 ? o : h.colors.controlActivated
|
|
@@ -80,16 +80,16 @@ const E = (param)=>{
|
|
|
80
80
|
}));
|
|
81
81
|
}, R = (param)=>{
|
|
82
82
|
let { steps: r, currentStep: o = 0, color: d, dataAttributes: l, "aria-label": i, "aria-labelledby": n } = param;
|
|
83
|
-
const { texts: c } = f(), [a, p] = b.useState(Math.ceil(o)), [s,
|
|
83
|
+
const { texts: c } = f(), [a, p] = b.useState(Math.ceil(o)), [s, y] = b.useState(!1);
|
|
84
84
|
b.useEffect(()=>{
|
|
85
85
|
const e = Math.ceil(o);
|
|
86
|
-
a !== e && (
|
|
86
|
+
a !== e && (y(e < a), p(e));
|
|
87
87
|
}, [
|
|
88
88
|
o,
|
|
89
89
|
r,
|
|
90
90
|
a
|
|
91
91
|
]);
|
|
92
|
-
const
|
|
92
|
+
const A = n ? void 0 : (()=>{
|
|
93
93
|
const e = c.progressBarStepLabel.replace("1$s", String(a)).replace("2$s", String(r));
|
|
94
94
|
return i ? `${i}, ${e.toLowerCase()}` : e;
|
|
95
95
|
})();
|
|
@@ -98,9 +98,9 @@ const E = (param)=>{
|
|
|
98
98
|
"aria-valuenow": a,
|
|
99
99
|
"aria-valuemin": 0,
|
|
100
100
|
"aria-valuemax": r,
|
|
101
|
-
"aria-label":
|
|
101
|
+
"aria-label": A,
|
|
102
102
|
"aria-labelledby": n,
|
|
103
|
-
className:
|
|
103
|
+
className: N,
|
|
104
104
|
children: /* @__PURE__ */ t(P, {
|
|
105
105
|
space: 8,
|
|
106
106
|
fullWidth: !0,
|
|
@@ -112,7 +112,7 @@ const E = (param)=>{
|
|
|
112
112
|
className: B,
|
|
113
113
|
"aria-hidden": "true",
|
|
114
114
|
children: (u || g) && /* @__PURE__ */ t("div", {
|
|
115
|
-
className:
|
|
115
|
+
className: k(S, {
|
|
116
116
|
[x]: v && !s,
|
|
117
117
|
[$]: g && s
|
|
118
118
|
}),
|
package/dist-es/radio-button.js
CHANGED
|
@@ -87,16 +87,16 @@ import { Text3 as k } from "./text.js";
|
|
|
87
87
|
import j from "./inline.js";
|
|
88
88
|
import P from "classnames";
|
|
89
89
|
import { useAriaId as F, useTheme as K } from "./hooks.js";
|
|
90
|
-
import { getPrefixedDataAttributes as
|
|
91
|
-
import { outerCircleVariants as I, outerCircleCheckedVariants as $, disabled as
|
|
92
|
-
const
|
|
90
|
+
import { getPrefixedDataAttributes as D } from "./utils/dom.js";
|
|
91
|
+
import { outerCircleVariants as I, outerCircleCheckedVariants as $, disabled as A, innerCircle as H, innerCircleChecked as L, radioButtonContainerDisabled as U, radioButton as W } from "./radio-button.css-mistica.js";
|
|
92
|
+
const N = /*#__PURE__*/ i.createContext({
|
|
93
93
|
disabled: !1,
|
|
94
94
|
selectedValue: null,
|
|
95
95
|
focusableValue: null,
|
|
96
96
|
select: ()=>{},
|
|
97
97
|
selectNext: ()=>{},
|
|
98
98
|
selectPrev: ()=>{}
|
|
99
|
-
}), z = ()=>i.useContext(
|
|
99
|
+
}), z = ()=>i.useContext(N), J = (_param)=>{
|
|
100
100
|
var { value: e, id: s, dataAttributes: C, "aria-labelledby": R } = _param, d = _object_without_properties(_param, [
|
|
101
101
|
"value",
|
|
102
102
|
"id",
|
|
@@ -120,7 +120,7 @@ const D = /*#__PURE__*/ i.createContext({
|
|
|
120
120
|
}, a = /* @__PURE__ */ n("div", {
|
|
121
121
|
className: P(h ? I.ios : I.default, {
|
|
122
122
|
[$[h ? "ios" : "default"]]: c,
|
|
123
|
-
[
|
|
123
|
+
[A]: l
|
|
124
124
|
}),
|
|
125
125
|
children: !h && /* @__PURE__ */ n("div", {
|
|
126
126
|
className: P(H, {
|
|
@@ -143,7 +143,7 @@ const D = /*#__PURE__*/ i.createContext({
|
|
|
143
143
|
},
|
|
144
144
|
onKeyDown: l ? void 0 : t,
|
|
145
145
|
className: l ? U : W
|
|
146
|
-
},
|
|
146
|
+
}, D(C, "RadioButton")), {
|
|
147
147
|
children: d.render ? d.render({
|
|
148
148
|
controlElement: a,
|
|
149
149
|
disabled: !!l,
|
|
@@ -168,7 +168,7 @@ const D = /*#__PURE__*/ i.createContext({
|
|
|
168
168
|
as: "div",
|
|
169
169
|
id: m,
|
|
170
170
|
children: /* @__PURE__ */ n("span", {
|
|
171
|
-
className: l ?
|
|
171
|
+
className: l ? A : "",
|
|
172
172
|
children: d.children
|
|
173
173
|
})
|
|
174
174
|
})
|
|
@@ -219,8 +219,8 @@ const D = /*#__PURE__*/ i.createContext({
|
|
|
219
219
|
ref: O(r, d),
|
|
220
220
|
role: "radiogroup",
|
|
221
221
|
"aria-labelledby": e["aria-labelledby"]
|
|
222
|
-
},
|
|
223
|
-
children: /* @__PURE__ */ n(
|
|
222
|
+
}, D(e.dataAttributes, "RadioGroup")), {
|
|
223
|
+
children: /* @__PURE__ */ n(N.Provider, {
|
|
224
224
|
value: {
|
|
225
225
|
disabled: l,
|
|
226
226
|
selectedValue: p !== null && p !== void 0 ? p : C,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./sprinkles.css.ts.vanilla.css-mistica.js";
|
|
2
2
|
import "./responsive-layout.css.ts.vanilla.css-mistica.js";
|
|
3
|
-
var e = {
|
|
3
|
+
var e = 16, r = 40, n = 32, v = {
|
|
4
4
|
inverse: "_1y2v1nf3t",
|
|
5
5
|
alternative: "_1y2v1nf3y"
|
|
6
|
-
},
|
|
7
|
-
export { e as
|
|
6
|
+
}, t = "_17lofg74", _ = "_17lofg73", i = "_17lofg7a _1y2v1nfhx", f = "_17lofg75", l = "_17lofg78", p = "_17lofg72 _1y2v1nfhx";
|
|
7
|
+
export { e as MOBILE_SIDE_MARGIN, r as SMALL_DESKTOP_SIDE_MARGIN, n as TABLET_SIDE_MARGIN, v as backgroundVariant, t as expandedResponsiveLayoutContainerDesktop, _ as expandedResponsiveLayoutContainerMobile, i as fullWidth, f as fullwidthContainer, l as responsiveLayout, p as responsiveLayoutContainer };
|
|
@@ -79,37 +79,37 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
79
79
|
return target;
|
|
80
80
|
}
|
|
81
81
|
import { jsx as a } from "react/jsx-runtime";
|
|
82
|
-
import
|
|
83
|
-
import { getPrefixedDataAttributes as
|
|
84
|
-
import { fullwidthContainer as
|
|
85
|
-
import { useThemeVariant as
|
|
86
|
-
const
|
|
87
|
-
let { children:
|
|
88
|
-
const
|
|
89
|
-
return /* @__PURE__ */ a(
|
|
90
|
-
variant: t !== null && t !== void 0 ? t :
|
|
82
|
+
import r from "classnames";
|
|
83
|
+
import { getPrefixedDataAttributes as l } from "./utils/dom.js";
|
|
84
|
+
import { fullwidthContainer as c, responsiveLayoutContainer as f, backgroundVariant as y, expandedResponsiveLayoutContainerMobile as L, expandedResponsiveLayoutContainerDesktop as x, fullWidth as R, responsiveLayout as V } from "./responsive-layout.css-mistica.js";
|
|
85
|
+
import { useThemeVariant as h, ThemeVariant as b } from "./theme-variant-context.js";
|
|
86
|
+
const C = (param)=>{
|
|
87
|
+
let { children: n, isInverse: o = !1, variant: p, backgroundColor: s, className: u, fullWidth: e, dataAttributes: d, shouldExpandWhenNested: i = !1, innerDivClassName: m } = param;
|
|
88
|
+
const v = h(), t = p || o && "inverse" || void 0;
|
|
89
|
+
return /* @__PURE__ */ a(b, {
|
|
90
|
+
variant: t !== null && t !== void 0 ? t : v,
|
|
91
91
|
children: /* @__PURE__ */ a("div", _object_spread_props(_object_spread({
|
|
92
|
-
className:
|
|
93
|
-
[
|
|
94
|
-
[
|
|
92
|
+
className: r(e ? c : f, u, t && t !== "default" && y[t], {
|
|
93
|
+
[L]: i === !0 && !e,
|
|
94
|
+
[x]: i && !e
|
|
95
95
|
}),
|
|
96
96
|
style: s ? {
|
|
97
97
|
background: s
|
|
98
98
|
} : void 0
|
|
99
|
-
},
|
|
99
|
+
}, l(d)), {
|
|
100
100
|
children: /* @__PURE__ */ a("div", {
|
|
101
|
-
className: e ?
|
|
102
|
-
children:
|
|
101
|
+
className: r(e ? R : V, m),
|
|
102
|
+
children: n
|
|
103
103
|
})
|
|
104
104
|
}))
|
|
105
105
|
});
|
|
106
|
-
},
|
|
107
|
-
var { children:
|
|
106
|
+
}, g = (_param)=>{
|
|
107
|
+
var { children: n } = _param, o = _object_without_properties(_param, [
|
|
108
108
|
"children"
|
|
109
109
|
]);
|
|
110
|
-
return /* @__PURE__ */ a(
|
|
110
|
+
return /* @__PURE__ */ a(C, _object_spread_props(_object_spread({}, o), {
|
|
111
111
|
shouldExpandWhenNested: !0,
|
|
112
|
-
children:
|
|
112
|
+
children: n
|
|
113
113
|
}));
|
|
114
|
-
},
|
|
115
|
-
export {
|
|
114
|
+
}, w = g;
|
|
115
|
+
export { C as InternalResponsiveLayout, w as default };
|