@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/hero.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 lr;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -26,6 +26,7 @@ const _dom = require("./utils/dom.js");
|
|
|
26
26
|
const _sprinklescssmistica = require("./sprinkles.css-mistica.js");
|
|
27
27
|
const _themevariantcontext = require("./theme-variant-context.js");
|
|
28
28
|
const _css = require("./utils/css.js");
|
|
29
|
+
const _responsivelayout = require("./responsive-layout.js");
|
|
29
30
|
function _interop_require_default(obj) {
|
|
30
31
|
return obj && obj.__esModule ? obj : {
|
|
31
32
|
default: obj
|
|
@@ -151,17 +152,18 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
151
152
|
}
|
|
152
153
|
return target;
|
|
153
154
|
}
|
|
154
|
-
const
|
|
155
|
-
let { children:
|
|
156
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
157
|
-
isInverse:
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
155
|
+
const H = (param)=>{
|
|
156
|
+
let { children: o, isInverse: e, isInsideSlideShow: a } = param;
|
|
157
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_responsivelayout.InternalResponsiveLayout, {
|
|
158
|
+
isInverse: e,
|
|
159
|
+
className: _herocssmistica.layout,
|
|
160
|
+
innerDivClassName: _herocssmistica.layout,
|
|
161
|
+
shouldExpandWhenNested: a ? "desktop" : !0,
|
|
162
|
+
backgroundColor: "transparent",
|
|
163
|
+
children: o
|
|
162
164
|
});
|
|
163
|
-
},
|
|
164
|
-
let { headline:
|
|
165
|
+
}, g = (param)=>{
|
|
166
|
+
let { headline: o, title: e, titleAs: a = "h1", pretitle: s, description: l, descriptionLinesMax: n, extra: t, button: c, secondaryButton: f, buttonLink: d } = param;
|
|
165
167
|
return /* @__PURE__ */ (0, _jsxruntime.jsxs)("section", {
|
|
166
168
|
className: (0, _sprinklescssmistica.sprinkles)({
|
|
167
169
|
height: "100%",
|
|
@@ -175,94 +177,103 @@ const C = (param)=>{
|
|
|
175
177
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
176
178
|
space: 16,
|
|
177
179
|
children: [
|
|
178
|
-
|
|
180
|
+
o && o,
|
|
179
181
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
180
182
|
space: 8,
|
|
181
183
|
children: [
|
|
182
|
-
|
|
184
|
+
s && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text3, {
|
|
183
185
|
as: "p",
|
|
184
186
|
regular: !0,
|
|
185
|
-
children:
|
|
187
|
+
children: s
|
|
186
188
|
}),
|
|
187
|
-
|
|
188
|
-
as:
|
|
189
|
-
children:
|
|
189
|
+
e && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text8, {
|
|
190
|
+
as: a,
|
|
191
|
+
children: e
|
|
190
192
|
})
|
|
191
193
|
]
|
|
192
194
|
}),
|
|
193
|
-
|
|
195
|
+
l && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text3, {
|
|
194
196
|
as: "p",
|
|
195
197
|
regular: !0,
|
|
196
198
|
color: _skincontractcssmistica.vars.colors.textSecondary,
|
|
197
|
-
truncate:
|
|
198
|
-
children:
|
|
199
|
+
truncate: n,
|
|
200
|
+
children: l
|
|
199
201
|
})
|
|
200
202
|
]
|
|
201
203
|
}),
|
|
202
|
-
|
|
203
|
-
children:
|
|
204
|
+
t && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
205
|
+
children: t
|
|
204
206
|
})
|
|
205
207
|
]
|
|
206
208
|
}),
|
|
207
|
-
(
|
|
209
|
+
(c || d) && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
208
210
|
className: _herocssmistica.actions,
|
|
209
211
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, {
|
|
210
|
-
primaryButton:
|
|
211
|
-
secondaryButton:
|
|
212
|
-
link:
|
|
212
|
+
primaryButton: c,
|
|
213
|
+
secondaryButton: f,
|
|
214
|
+
link: d
|
|
213
215
|
})
|
|
214
216
|
})
|
|
215
217
|
]
|
|
216
218
|
});
|
|
217
|
-
},
|
|
219
|
+
}, I = {
|
|
218
220
|
default: _skincontractcssmistica.vars.colors.background,
|
|
219
221
|
alternative: _skincontractcssmistica.vars.colors.backgroundAlternative,
|
|
220
222
|
brand: _skincontractcssmistica.vars.colors.backgroundBrand,
|
|
221
|
-
"brand-secondary": _skincontractcssmistica.vars.colors.backgroundBrandSecondary
|
|
222
|
-
|
|
223
|
-
|
|
223
|
+
"brand-secondary": _skincontractcssmistica.vars.colors.backgroundBrandSecondary,
|
|
224
|
+
none: "transparent"
|
|
225
|
+
}, W = /*#__PURE__*/ _react.forwardRef((_param, c)=>{
|
|
226
|
+
var { height: o, background: e = "default", media: a, desktopMediaPosition: s = "left", dataAttributes: l, noPaddingY: n } = _param, t = _object_without_properties(_param, [
|
|
224
227
|
"height",
|
|
225
228
|
"background",
|
|
226
229
|
"media",
|
|
227
230
|
"desktopMediaPosition",
|
|
228
|
-
"dataAttributes"
|
|
231
|
+
"dataAttributes",
|
|
232
|
+
"noPaddingY"
|
|
229
233
|
]);
|
|
230
|
-
const { isTabletOrSmaller:
|
|
231
|
-
if (
|
|
234
|
+
const { isTabletOrSmaller: f } = (0, _hooks.useScreenSize)(), d = (0, _carousel.useIsInsideSlideshowContext)(), D = (0, _themevariantcontext.useIsInverseVariant)(), x = e === "none" ? D : e === "brand" || e === "brand-secondary";
|
|
235
|
+
if (f) return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
232
236
|
style: (0, _css.applyCssVars)({
|
|
233
237
|
[_imagecssmistica.vars.mediaBorderRadius]: "0px"
|
|
234
238
|
}),
|
|
235
|
-
children: /* @__PURE__ */ (0, _jsxruntime.
|
|
239
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({}, (0, _dom.getPrefixedDataAttributes)(_object_spread({
|
|
236
240
|
"component-name": "Hero"
|
|
237
|
-
},
|
|
238
|
-
ref:
|
|
241
|
+
}, l))), {
|
|
242
|
+
ref: c,
|
|
239
243
|
style: _object_spread({
|
|
240
|
-
backgroundColor:
|
|
241
|
-
},
|
|
244
|
+
backgroundColor: I[e]
|
|
245
|
+
}, o === "100vh" ? {
|
|
242
246
|
maxHeight: "-webkit-fill-available"
|
|
243
247
|
} : {}, (0, _css.applyCssVars)({
|
|
244
|
-
[_herocssmistica.vars.height]:
|
|
248
|
+
[_herocssmistica.vars.height]: o !== null && o !== void 0 ? o : "100%"
|
|
245
249
|
})),
|
|
246
|
-
className: (0, _classnames.default)(_herocssmistica.container, _herocssmistica.containerMobile
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
className: (0, _classnames.default)(_herocssmistica.container, _herocssmistica.containerMobile, {
|
|
251
|
+
[_herocssmistica.containerMinHeight]: !n
|
|
252
|
+
}),
|
|
253
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(H, {
|
|
254
|
+
isInverse: x,
|
|
255
|
+
isInsideSlideShow: d,
|
|
256
|
+
children: [
|
|
257
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
258
|
+
className: _herocssmistica.mediaContainer,
|
|
259
|
+
children: a
|
|
260
|
+
}),
|
|
261
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
252
262
|
paddingTop: 24,
|
|
253
|
-
paddingBottom:
|
|
254
|
-
|
|
263
|
+
paddingBottom: d ? 48 : n ? 0 : 24,
|
|
264
|
+
className: _herocssmistica.layout,
|
|
265
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(g, _object_spread({}, t))
|
|
255
266
|
})
|
|
256
|
-
|
|
257
|
-
|
|
267
|
+
]
|
|
268
|
+
})
|
|
258
269
|
}))
|
|
259
270
|
});
|
|
260
|
-
const
|
|
271
|
+
const O = s === "left" ? a : /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
261
272
|
paddingRight: 24,
|
|
262
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
263
|
-
}),
|
|
273
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(g, _object_spread({}, t))
|
|
274
|
+
}), L = s === "right" ? a : /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
264
275
|
paddingLeft: 24,
|
|
265
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
276
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(g, _object_spread({}, t))
|
|
266
277
|
});
|
|
267
278
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
268
279
|
style: (0, _css.applyCssVars)({
|
|
@@ -270,36 +281,36 @@ const C = (param)=>{
|
|
|
270
281
|
}),
|
|
271
282
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({}, (0, _dom.getPrefixedDataAttributes)(_object_spread({
|
|
272
283
|
"component-name": "Hero"
|
|
273
|
-
},
|
|
274
|
-
ref:
|
|
284
|
+
}, l))), {
|
|
285
|
+
ref: c,
|
|
275
286
|
style: _object_spread({
|
|
276
|
-
backgroundColor:
|
|
277
|
-
},
|
|
287
|
+
backgroundColor: I[e]
|
|
288
|
+
}, o === "100vh" ? {
|
|
278
289
|
maxHeight: "-webkit-fill-available"
|
|
279
290
|
} : {}, (0, _css.applyCssVars)({
|
|
280
|
-
[_herocssmistica.vars.height]:
|
|
291
|
+
[_herocssmistica.vars.height]: o !== null && o !== void 0 ? o : "100%"
|
|
281
292
|
})),
|
|
282
293
|
className: (0, _sprinklescssmistica.sprinkles)({
|
|
283
|
-
height: "100%"
|
|
284
|
-
display: "flex",
|
|
285
|
-
alignItems: "center"
|
|
294
|
+
height: "100%"
|
|
286
295
|
}),
|
|
287
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
288
|
-
isInverse:
|
|
296
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(H, {
|
|
297
|
+
isInverse: x,
|
|
289
298
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_gridlayout.default, {
|
|
290
299
|
template: "6+6",
|
|
291
300
|
left: /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
292
|
-
paddingY: 56,
|
|
293
|
-
className: (0, _classnames.default)(_herocssmistica.container, _herocssmistica.containerDesktop
|
|
294
|
-
|
|
301
|
+
paddingY: n ? 0 : 56,
|
|
302
|
+
className: (0, _classnames.default)(_herocssmistica.container, _herocssmistica.containerDesktop, {
|
|
303
|
+
[_herocssmistica.containerMinHeight]: !n
|
|
304
|
+
}),
|
|
305
|
+
children: O
|
|
295
306
|
}),
|
|
296
307
|
right: /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
297
|
-
paddingY: 56,
|
|
308
|
+
paddingY: n ? 0 : 56,
|
|
298
309
|
className: (0, _classnames.default)(_herocssmistica.container, _herocssmistica.containerDesktop),
|
|
299
|
-
children:
|
|
310
|
+
children: L
|
|
300
311
|
})
|
|
301
312
|
})
|
|
302
313
|
})
|
|
303
314
|
}))
|
|
304
315
|
});
|
|
305
|
-
}),
|
|
316
|
+
}), lr = W;
|
|
@@ -58,7 +58,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
58
58
|
}
|
|
59
59
|
return newObj;
|
|
60
60
|
}
|
|
61
|
-
const
|
|
61
|
+
const n = /*#__PURE__*/ _react.forwardRef((param, l)=>{
|
|
62
62
|
let { children: o, noScrollbar: r } = param;
|
|
63
63
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
64
64
|
className: (0, _classnames.default)(_horizontalscrollcssmistica.scroll, {
|
|
@@ -67,4 +67,4 @@ const e = /*#__PURE__*/ _react.forwardRef((param, l)=>{
|
|
|
67
67
|
ref: l,
|
|
68
68
|
children: o
|
|
69
69
|
});
|
|
70
|
-
}), p =
|
|
70
|
+
}), p = n;
|
package/dist/image.js
CHANGED
|
@@ -232,7 +232,7 @@ const X = (param)=>{
|
|
|
232
232
|
"errorFallback"
|
|
233
233
|
]);
|
|
234
234
|
var v;
|
|
235
|
-
const h = (0, _hooks.useAriaId)(), l = _react.useRef(), u = i.circular ? _imagecssmistica.circularBorderRadius : m ? _imagecssmistica.noBorderRadius : _imagecssmistica.defaultBorderRadius, [I, f] = _react.useState(!o), [H, g] = _react.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),
|
|
235
|
+
const h = (0, _hooks.useAriaId)(), l = _react.useRef(), u = i.circular ? _imagecssmistica.circularBorderRadius : m ? _imagecssmistica.noBorderRadius : _imagecssmistica.defaultBorderRadius, [I, f] = _react.useState(!o), [H, g] = _react.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 = _react.useCallback(()=>{
|
|
236
236
|
f(!1), l.current && (l.current.style.opacity = "1"), setTimeout(()=>{
|
|
237
237
|
g(!0);
|
|
238
238
|
}, _imagecssmistica.FADE_IN_DURATION_MS), n == null || n();
|
|
@@ -249,13 +249,13 @@ const X = (param)=>{
|
|
|
249
249
|
}, [
|
|
250
250
|
w
|
|
251
251
|
]);
|
|
252
|
-
const
|
|
252
|
+
const _ = (0, _environment.isServerSide)() || !((v = document.getElementById(h)) != null && v.complete), z = /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
253
253
|
children: [
|
|
254
254
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("img", {
|
|
255
255
|
suppressHydrationWarning: !0,
|
|
256
256
|
id: h,
|
|
257
257
|
style: {
|
|
258
|
-
opacity:
|
|
258
|
+
opacity: _ && b ? 0 : 1
|
|
259
259
|
},
|
|
260
260
|
ref: (0, _common.combineRefs)(l, E),
|
|
261
261
|
src: o,
|
|
@@ -284,19 +284,21 @@ const X = (param)=>{
|
|
|
284
284
|
style: {
|
|
285
285
|
position: "absolute",
|
|
286
286
|
width: "100%",
|
|
287
|
-
height: "100%"
|
|
287
|
+
height: "100%",
|
|
288
|
+
overflow: "hidden"
|
|
288
289
|
},
|
|
290
|
+
className: u,
|
|
289
291
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_skeletons.SkeletonAnimation, {
|
|
290
292
|
height: (_i_height = i.height) !== null && _i_height !== void 0 ? _i_height : "100%",
|
|
291
293
|
width: (_i_width = i.width) !== null && _i_width !== void 0 ? _i_width : "100%",
|
|
292
294
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_skeletonbase.default, {
|
|
293
295
|
height: "100%",
|
|
294
296
|
width: "100%",
|
|
295
|
-
|
|
297
|
+
noBorderRadius: !0
|
|
296
298
|
})
|
|
297
299
|
})
|
|
298
300
|
}),
|
|
299
|
-
I &&
|
|
301
|
+
I && T && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
300
302
|
style: {
|
|
301
303
|
position: "absolute",
|
|
302
304
|
width: "100%",
|
|
@@ -308,7 +310,7 @@ const X = (param)=>{
|
|
|
308
310
|
className: u
|
|
309
311
|
})
|
|
310
312
|
}),
|
|
311
|
-
!I &&
|
|
313
|
+
!I && z
|
|
312
314
|
]
|
|
313
315
|
});
|
|
314
316
|
}), e1 = /*#__PURE__*/ _react.forwardRef((e, d)=>{
|
package/dist/list.js
CHANGED
|
@@ -11,19 +11,19 @@ function _export(target, all) {
|
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
13
|
BoxedRow: function() {
|
|
14
|
-
return
|
|
14
|
+
return tt;
|
|
15
15
|
},
|
|
16
16
|
BoxedRowList: function() {
|
|
17
|
-
return
|
|
17
|
+
return nt;
|
|
18
18
|
},
|
|
19
19
|
Content: function() {
|
|
20
|
-
return
|
|
20
|
+
return ke;
|
|
21
21
|
},
|
|
22
22
|
Row: function() {
|
|
23
|
-
return
|
|
23
|
+
return pe;
|
|
24
24
|
},
|
|
25
25
|
RowList: function() {
|
|
26
|
-
return
|
|
26
|
+
return et;
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -48,6 +48,7 @@ const _imagecssmistica = require("./image.css-mistica.js");
|
|
|
48
48
|
const _skincontractcssmistica = require("./skins/skin-contract.css-mistica.js");
|
|
49
49
|
const _css = require("./utils/css.js");
|
|
50
50
|
const _iconbutton = require("./icon-button.js");
|
|
51
|
+
const _sprinklescssmistica = require("./sprinkles.css-mistica.js");
|
|
51
52
|
function _interop_require_default(obj) {
|
|
52
53
|
return obj && obj.__esModule ? obj : {
|
|
53
54
|
default: obj
|
|
@@ -182,7 +183,7 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
182
183
|
height: "100%"
|
|
183
184
|
},
|
|
184
185
|
children: e
|
|
185
|
-
}) : e,
|
|
186
|
+
}) : e, ke = (param)=>{
|
|
186
187
|
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;
|
|
187
188
|
const j = (0, _themevariantcontext.useIsInverseVariant)(), d = [
|
|
188
189
|
n,
|
|
@@ -312,7 +313,7 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
312
313
|
})
|
|
313
314
|
]
|
|
314
315
|
});
|
|
315
|
-
},
|
|
316
|
+
}, Ie = (param)=>{
|
|
316
317
|
let { value: e, defaultValue: n, onChange: r } = param;
|
|
317
318
|
const c = e !== void 0, [m, g] = _react.useState(!!n), v = ()=>{
|
|
318
319
|
c || g(!m), r && r(c ? !e : !m);
|
|
@@ -324,10 +325,10 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
324
325
|
m,
|
|
325
326
|
v
|
|
326
327
|
];
|
|
327
|
-
},
|
|
328
|
-
const r = (0, _hooks.useAriaId)(), c = (0, _themevariantcontext.useIsInverseVariant)(), { 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 = (0, _radiobutton.useRadioContext)(), i = e.disabled || e.radioValue !== void 0 && j.disabled, d = !i && !c, u = !i && c, [G, J] =
|
|
328
|
+
}, 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__*/ _react.forwardRef((e, n)=>{
|
|
329
|
+
const r = (0, _hooks.useAriaId)(), c = (0, _themevariantcontext.useIsInverseVariant)(), { 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 = (0, _radiobutton.useRadioContext)(), i = e.disabled || e.radioValue !== void 0 && j.disabled, d = !i && !c, u = !i && c, [G, J] = Ie(e.switch || e.checkbox || {}), b = (param)=>{
|
|
329
330
|
let { type: s, right: w, labelId: X } = param;
|
|
330
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
331
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(ke, {
|
|
331
332
|
asset: m,
|
|
332
333
|
headline: g,
|
|
333
334
|
title: v,
|
|
@@ -356,7 +357,7 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
356
357
|
})
|
|
357
358
|
});
|
|
358
359
|
};
|
|
359
|
-
if (e.onPress && !
|
|
360
|
+
if (e.onPress && !Pe(e) && !Le(e) && !Ae(e) && !Ee(e)) return /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, {
|
|
360
361
|
ref: n,
|
|
361
362
|
className: (0, _classnames.default)(_listcssmistica.rowContent, {
|
|
362
363
|
[_listcssmistica.touchableBackground]: d,
|
|
@@ -596,13 +597,16 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
596
597
|
type: "basic"
|
|
597
598
|
})
|
|
598
599
|
});
|
|
599
|
-
}),
|
|
600
|
+
}), pe = /*#__PURE__*/ _react.forwardRef((_param, c)=>{
|
|
600
601
|
var { dataAttributes: e, role: n = "listitem" } = _param, r = _object_without_properties(_param, [
|
|
601
602
|
"dataAttributes",
|
|
602
603
|
"role"
|
|
603
604
|
]);
|
|
604
605
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
605
606
|
role: n,
|
|
607
|
+
className: (0, _sprinklescssmistica.sprinkles)({
|
|
608
|
+
width: "100%"
|
|
609
|
+
}),
|
|
606
610
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(ne, _object_spread_props(_object_spread({}, r), {
|
|
607
611
|
ref: c,
|
|
608
612
|
dataAttributes: _object_spread({
|
|
@@ -610,7 +614,7 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
610
614
|
}, e)
|
|
611
615
|
}))
|
|
612
616
|
});
|
|
613
|
-
}),
|
|
617
|
+
}), et = (param)=>{
|
|
614
618
|
let { children: e, ariaLabelledby: n, role: r = "list", dataAttributes: c } = param;
|
|
615
619
|
const m = _react.Children.count(e) - 1;
|
|
616
620
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({
|
|
@@ -627,7 +631,7 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
627
631
|
]
|
|
628
632
|
}, v))
|
|
629
633
|
}));
|
|
630
|
-
},
|
|
634
|
+
}, tt = /*#__PURE__*/ _react.forwardRef((_param, r)=>{
|
|
631
635
|
var { dataAttributes: e } = _param, n = _object_without_properties(_param, [
|
|
632
636
|
"dataAttributes"
|
|
633
637
|
]);
|
|
@@ -639,7 +643,7 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
639
643
|
}, e),
|
|
640
644
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(ne, _object_spread({}, n))
|
|
641
645
|
});
|
|
642
|
-
}),
|
|
646
|
+
}), nt = (param)=>{
|
|
643
647
|
let { children: e, ariaLabelledby: n, role: r = "list", dataAttributes: c } = param;
|
|
644
648
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_stack.default, {
|
|
645
649
|
space: 16,
|
package/dist/loading-bar.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 u;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -85,4 +85,4 @@ const l = (param)=>{
|
|
|
85
85
|
})
|
|
86
86
|
}))
|
|
87
87
|
});
|
|
88
|
-
},
|
|
88
|
+
}, u = l;
|
package/dist/loading-screen.js
CHANGED
|
@@ -232,7 +232,7 @@ const L = (param)=>{
|
|
|
232
232
|
})
|
|
233
233
|
}, c)
|
|
234
234
|
});
|
|
235
|
-
},
|
|
235
|
+
}, x = /*#__PURE__*/ _react.forwardRef((param, d)=>{
|
|
236
236
|
let { isInverse: e, children: r, isLoading: t = !0, animateText: i, animateBackground: c, onClose: s, dataAttributes: a, title: l, description: u, texts: m = [
|
|
237
237
|
{
|
|
238
238
|
title: l,
|
|
@@ -322,7 +322,7 @@ const L = (param)=>{
|
|
|
322
322
|
})
|
|
323
323
|
]
|
|
324
324
|
});
|
|
325
|
-
}), pe = /*#__PURE__*/ _react.forwardRef((e, r)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
325
|
+
}), pe = /*#__PURE__*/ _react.forwardRef((e, r)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(x, _object_spread_props(_object_spread({
|
|
326
326
|
ref: r
|
|
327
327
|
}, e), {
|
|
328
328
|
dataAttributes: _object_spread({
|
|
@@ -376,7 +376,7 @@ const L = (param)=>{
|
|
|
376
376
|
}, d = ()=>{
|
|
377
377
|
l.current && u.current && (r == null || r());
|
|
378
378
|
};
|
|
379
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
379
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(x, _object_spread_props(_object_spread({
|
|
380
380
|
ref: c,
|
|
381
381
|
isInverse: !0
|
|
382
382
|
}, i), {
|
package/dist/package-version.js
CHANGED
package/dist/pin-field.js
CHANGED
|
@@ -171,7 +171,7 @@ const x = (param)=>{
|
|
|
171
171
|
l,
|
|
172
172
|
d
|
|
173
173
|
]);
|
|
174
|
-
const
|
|
174
|
+
const H = (s)=>(e)=>{
|
|
175
175
|
var k;
|
|
176
176
|
const r = e.target.value;
|
|
177
177
|
if (r === "") return;
|
|
@@ -226,7 +226,7 @@ const x = (param)=>{
|
|
|
226
226
|
readOnly: y,
|
|
227
227
|
autoComplete: d ? "one-time-code" : void 0,
|
|
228
228
|
value: (_t_e = t[e]) !== null && _t_e !== void 0 ? _t_e : "",
|
|
229
|
-
onChange:
|
|
229
|
+
onChange: H(e),
|
|
230
230
|
onKeyDown: (r)=>{
|
|
231
231
|
switch(r.key){
|
|
232
232
|
case "Backspace":
|
package/dist/progress-bar.js
CHANGED
|
@@ -144,16 +144,16 @@ const E = (param)=>{
|
|
|
144
144
|
}));
|
|
145
145
|
}, R = (param)=>{
|
|
146
146
|
let { steps: r, currentStep: o = 0, color: d, dataAttributes: l, "aria-label": i, "aria-labelledby": n } = param;
|
|
147
|
-
const { texts: c } = (0, _hooks.useTheme)(), [a, p] = _react.useState(Math.ceil(o)), [s,
|
|
147
|
+
const { texts: c } = (0, _hooks.useTheme)(), [a, p] = _react.useState(Math.ceil(o)), [s, y] = _react.useState(!1);
|
|
148
148
|
_react.useEffect(()=>{
|
|
149
149
|
const e = Math.ceil(o);
|
|
150
|
-
a !== e && (
|
|
150
|
+
a !== e && (y(e < a), p(e));
|
|
151
151
|
}, [
|
|
152
152
|
o,
|
|
153
153
|
r,
|
|
154
154
|
a
|
|
155
155
|
]);
|
|
156
|
-
const
|
|
156
|
+
const A = n ? void 0 : (()=>{
|
|
157
157
|
const e = c.progressBarStepLabel.replace("1$s", String(a)).replace("2$s", String(r));
|
|
158
158
|
return i ? `${i}, ${e.toLowerCase()}` : e;
|
|
159
159
|
})();
|
|
@@ -162,7 +162,7 @@ const E = (param)=>{
|
|
|
162
162
|
"aria-valuenow": a,
|
|
163
163
|
"aria-valuemin": 0,
|
|
164
164
|
"aria-valuemax": r,
|
|
165
|
-
"aria-label":
|
|
165
|
+
"aria-label": A,
|
|
166
166
|
"aria-labelledby": n,
|
|
167
167
|
className: _progressbarcssmistica.progressBarSteppedContainer,
|
|
168
168
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_inline.default, {
|
package/dist/radio-button.js
CHANGED
|
@@ -156,14 +156,14 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
156
156
|
}
|
|
157
157
|
return target;
|
|
158
158
|
}
|
|
159
|
-
const
|
|
159
|
+
const N = /*#__PURE__*/ _react.createContext({
|
|
160
160
|
disabled: !1,
|
|
161
161
|
selectedValue: null,
|
|
162
162
|
focusableValue: null,
|
|
163
163
|
select: ()=>{},
|
|
164
164
|
selectNext: ()=>{},
|
|
165
165
|
selectPrev: ()=>{}
|
|
166
|
-
}), z = ()=>_react.useContext(
|
|
166
|
+
}), z = ()=>_react.useContext(N), J = (_param)=>{
|
|
167
167
|
var { value: e, id: s, dataAttributes: C, "aria-labelledby": R } = _param, d = _object_without_properties(_param, [
|
|
168
168
|
"value",
|
|
169
169
|
"id",
|
|
@@ -286,7 +286,7 @@ const D = /*#__PURE__*/ _react.createContext({
|
|
|
286
286
|
role: "radiogroup",
|
|
287
287
|
"aria-labelledby": e["aria-labelledby"]
|
|
288
288
|
}, (0, _dom.getPrefixedDataAttributes)(e.dataAttributes, "RadioGroup")), {
|
|
289
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
289
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(N.Provider, {
|
|
290
290
|
value: {
|
|
291
291
|
disabled: l,
|
|
292
292
|
selectedValue: p !== null && p !== void 0 ? p : C,
|
|
@@ -9,31 +9,40 @@ function _export(target, all) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
|
|
12
|
+
MOBILE_SIDE_MARGIN: function() {
|
|
13
13
|
return e;
|
|
14
14
|
},
|
|
15
|
-
|
|
15
|
+
SMALL_DESKTOP_SIDE_MARGIN: function() {
|
|
16
|
+
return r;
|
|
17
|
+
},
|
|
18
|
+
TABLET_SIDE_MARGIN: function() {
|
|
16
19
|
return n;
|
|
17
20
|
},
|
|
21
|
+
backgroundVariant: function() {
|
|
22
|
+
return v;
|
|
23
|
+
},
|
|
24
|
+
expandedResponsiveLayoutContainerDesktop: function() {
|
|
25
|
+
return t;
|
|
26
|
+
},
|
|
18
27
|
expandedResponsiveLayoutContainerMobile: function() {
|
|
19
|
-
return
|
|
28
|
+
return _;
|
|
20
29
|
},
|
|
21
30
|
fullWidth: function() {
|
|
22
|
-
return
|
|
31
|
+
return i;
|
|
23
32
|
},
|
|
24
33
|
fullwidthContainer: function() {
|
|
25
|
-
return
|
|
34
|
+
return f;
|
|
26
35
|
},
|
|
27
36
|
responsiveLayout: function() {
|
|
28
|
-
return
|
|
37
|
+
return l;
|
|
29
38
|
},
|
|
30
39
|
responsiveLayoutContainer: function() {
|
|
31
|
-
return
|
|
40
|
+
return p;
|
|
32
41
|
}
|
|
33
42
|
});
|
|
34
43
|
require("./sprinkles.css.ts.vanilla.css-mistica.js");
|
|
35
44
|
require("./responsive-layout.css.ts.vanilla.css-mistica.js");
|
|
36
|
-
var e = {
|
|
45
|
+
var e = 16, r = 40, n = 32, v = {
|
|
37
46
|
inverse: "_1y2v1nf3t",
|
|
38
47
|
alternative: "_1y2v1nf3y"
|
|
39
|
-
},
|
|
48
|
+
}, t = "_17lofg74", _ = "_17lofg73", i = "_17lofg7a _1y2v1nfhx", f = "_17lofg75", l = "_17lofg78", p = "_17lofg72 _1y2v1nfhx";
|
|
@@ -12,6 +12,7 @@ type Props = {
|
|
|
12
12
|
};
|
|
13
13
|
export declare const InternalResponsiveLayout: React.FC<Props & {
|
|
14
14
|
shouldExpandWhenNested?: boolean | 'desktop';
|
|
15
|
+
innerDivClassName?: string;
|
|
15
16
|
}>;
|
|
16
17
|
declare const ResponsiveLayout: React.FC<Props>;
|
|
17
18
|
export default ResponsiveLayout;
|