@telefonica/mistica 14.37.0 → 14.39.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/carousel.js +46 -43
- package/dist/chip.js +51 -34
- package/dist/empty-state-card.js +24 -18
- package/dist/image.css-mistica.js +7 -4
- package/dist/image.css.d.ts +1 -0
- package/dist/image.js +69 -58
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -0
- package/dist/inline.css-mistica.js +14 -12
- package/dist/inline.css.d.ts +5 -1
- package/dist/inline.d.ts +4 -2
- package/dist/inline.js +31 -16
- package/dist/loading-bar.css-mistica.js +6 -18
- package/dist/loading-bar.css.d.ts +1 -4
- package/dist/loading-bar.js +22 -27
- package/dist/loading-screen.css-mistica.js +51 -0
- package/dist/loading-screen.css.d.ts +11 -0
- package/dist/loading-screen.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/loading-screen.d.ts +28 -0
- package/dist/loading-screen.js +398 -0
- package/dist/logo.css-mistica.js +21 -5
- package/dist/logo.css.d.ts +7 -0
- package/dist/logo.d.ts +2 -2
- package/dist/logo.js +86 -61
- package/dist/navigation-bar.css-mistica.js +43 -37
- package/dist/navigation-bar.css.d.ts +3 -1
- package/dist/navigation-bar.js +165 -209
- package/dist/package-version.js +1 -1
- package/dist/tabs.css.d.ts +1 -1
- package/dist/vivinho-loading-animation/in-lottie.json.js +1479 -0
- package/dist/vivinho-loading-animation/index.d.ts +8 -0
- package/dist/vivinho-loading-animation/index.js +119 -0
- package/dist/vivinho-loading-animation/out-lottie.json.js +2143 -0
- package/dist/vivinho-loading-animation/pulse-lottie.json.js +2017 -0
- package/dist/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +20 -0
- package/dist/vivinho-loading-animation/vivinho-loading-animation.css.d.ts +2 -0
- package/dist/vivinho-loading-animation/vivinho-loading-animation.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/vivinho-loading-animation/wave-lottie.json.js +10207 -0
- package/dist-es/carousel.js +46 -43
- package/dist-es/chip.js +78 -61
- package/dist-es/empty-state-card.js +41 -35
- package/dist-es/image.css-mistica.js +2 -2
- package/dist-es/image.js +86 -76
- package/dist-es/index.js +1782 -1781
- package/dist-es/inline.css-mistica.js +7 -8
- package/dist-es/inline.js +39 -24
- package/dist-es/loading-bar.css-mistica.js +2 -2
- package/dist-es/loading-bar.js +22 -32
- package/dist-es/loading-screen.css-mistica.js +7 -0
- package/dist-es/loading-screen.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/loading-screen.js +335 -0
- package/dist-es/logo.css-mistica.js +7 -2
- package/dist-es/logo.js +110 -85
- package/dist-es/navigation-bar.css-mistica.js +19 -19
- package/dist-es/navigation-bar.js +219 -263
- package/dist-es/package-version.js +1 -1
- package/dist-es/style.css +1 -1
- package/dist-es/vivinho-loading-animation/in-lottie.json.js +1426 -0
- package/dist-es/vivinho-loading-animation/index.js +64 -0
- package/dist-es/vivinho-loading-animation/out-lottie.json.js +2090 -0
- package/dist-es/vivinho-loading-animation/pulse-lottie.json.js +1964 -0
- package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +3 -0
- package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/vivinho-loading-animation/wave-lottie.json.js +10154 -0
- package/package.json +2 -1
package/dist/navigation-bar.js
CHANGED
|
@@ -11,19 +11,19 @@ function _export(target, all) {
|
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
13
|
FunnelNavigationBar: function() {
|
|
14
|
-
return
|
|
14
|
+
return pn;
|
|
15
15
|
},
|
|
16
16
|
MainNavigationBar: function() {
|
|
17
|
-
return
|
|
17
|
+
return mn;
|
|
18
18
|
},
|
|
19
19
|
NavigationBar: function() {
|
|
20
|
-
return
|
|
20
|
+
return un;
|
|
21
21
|
},
|
|
22
22
|
NavigationBarAction: function() {
|
|
23
|
-
return
|
|
23
|
+
return gn;
|
|
24
24
|
},
|
|
25
25
|
NavigationBarActionGroup: function() {
|
|
26
|
-
return
|
|
26
|
+
return hn;
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -179,7 +179,7 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
179
179
|
}
|
|
180
180
|
return target;
|
|
181
181
|
}
|
|
182
|
-
const
|
|
182
|
+
const Le = (param)=>/* @__PURE__ */ {
|
|
183
183
|
let { isOpen: n } = param;
|
|
184
184
|
return (0, _jsxruntime.jsxs)("div", {
|
|
185
185
|
className: _navigationbarcssmistica.burgerIconContainer,
|
|
@@ -196,235 +196,189 @@ const ke = (param)=>/* @__PURE__ */ {
|
|
|
196
196
|
})
|
|
197
197
|
]
|
|
198
198
|
});
|
|
199
|
-
},
|
|
200
|
-
let { children: n, topFixed:
|
|
199
|
+
}, Ve = 300, A = (param)=>{
|
|
200
|
+
let { children: n, topFixed: a, withBorder: t, isMenuOpen: r, isInverse: o, dataAttributes: d } = param;
|
|
201
201
|
const { isDarkMode: s } = (0, _hooks.useTheme)();
|
|
202
202
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("header", _object_spread_props(_object_spread({
|
|
203
|
-
className: (0, _classnames.default)((()=>{
|
|
204
|
-
|
|
205
|
-
return r || h || !t ? _navigationbarcssmistica.navbarBorderColorVariants.noBorder : r && !h ? _navigationbarcssmistica.navbarBorderColorVariants.menuOpen : _navigationbarcssmistica.navbarBorderColorVariants.default;
|
|
206
|
-
})(), {
|
|
207
|
-
[_navigationbarcssmistica.topFixed]: o && !d,
|
|
208
|
-
[_navigationbarcssmistica.topFixedBottomRow]: o && d
|
|
203
|
+
className: (0, _classnames.default)((()=>o && !s || !t ? _navigationbarcssmistica.navbarBorderColorVariants.noBorder : r ? _navigationbarcssmistica.navbarBorderColorVariants.menuOpen : _navigationbarcssmistica.navbarBorderColorVariants.default)(), {
|
|
204
|
+
[_navigationbarcssmistica.topFixed]: a
|
|
209
205
|
}),
|
|
210
206
|
style: {
|
|
211
|
-
|
|
212
|
-
background: a ? _skincontractcssmistica.vars.colors.navigationBarBackground : _skincontractcssmistica.vars.colors.background
|
|
207
|
+
background: o ? _skincontractcssmistica.vars.colors.navigationBarBackground : _skincontractcssmistica.vars.colors.background
|
|
213
208
|
}
|
|
214
|
-
}, (0, _dom.getPrefixedDataAttributes)(
|
|
209
|
+
}, (0, _dom.getPrefixedDataAttributes)(d)), {
|
|
215
210
|
children: n
|
|
216
211
|
}));
|
|
217
|
-
},
|
|
218
|
-
let { right: n, children:
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
212
|
+
}, f = (param)=>/* @__PURE__ */ {
|
|
213
|
+
let { right: n, children: a, desktopOnly: t } = param;
|
|
214
|
+
return (0, _jsxruntime.jsxs)("div", {
|
|
215
|
+
className: (0, _classnames.default)(_navigationbarcssmistica.navigationBarContent, {
|
|
216
|
+
[_navigationbarcssmistica.desktopOnly]: t
|
|
217
|
+
}),
|
|
222
218
|
children: [
|
|
223
|
-
|
|
219
|
+
a,
|
|
224
220
|
n && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
225
221
|
className: _navigationbarcssmistica.navigationBarContentRight,
|
|
226
|
-
style: {
|
|
227
|
-
marginLeft: t ? ye : Ge
|
|
228
|
-
},
|
|
229
222
|
children: n
|
|
230
223
|
})
|
|
231
224
|
]
|
|
232
225
|
});
|
|
233
|
-
},
|
|
234
|
-
let { sections: n, selectedIndex:
|
|
235
|
-
const { texts:
|
|
236
|
-
|
|
237
|
-
size:
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
x(!1), G({
|
|
245
|
-
isModalOpen: !1
|
|
246
|
-
});
|
|
247
|
-
}, g = _ !== "open", D = n.length > 1;
|
|
248
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
249
|
-
children: [
|
|
250
|
-
/* @__PURE__ */ (0, _jsxruntime.jsxs)(_focustrap.default, {
|
|
251
|
-
disabled: g,
|
|
252
|
-
group: "burger-menu-lock",
|
|
253
|
-
children: [
|
|
254
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
|
|
255
|
-
isInverse: r,
|
|
256
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(f, {
|
|
257
|
-
topFixed: a,
|
|
258
|
-
withBorder: c,
|
|
259
|
-
isMenuOpen: l,
|
|
260
|
-
isInverse: r,
|
|
261
|
-
dataAttributes: {
|
|
262
|
-
"component-name": "MainNavigationBar"
|
|
263
|
-
},
|
|
264
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_responsivelayout.default, {
|
|
265
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(N, {
|
|
266
|
-
right: t,
|
|
267
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
|
|
268
|
-
space: 24,
|
|
269
|
-
alignItems: "center",
|
|
270
|
-
children: [
|
|
271
|
-
D && /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.default, {
|
|
272
|
-
"aria-live": "polite",
|
|
273
|
-
"aria-label": l ? h.closeNavigationMenu : h.openNavigationMenu,
|
|
274
|
-
"aria-expanded": l,
|
|
275
|
-
"aria-controls": k,
|
|
276
|
-
onPress: l ? b : I,
|
|
277
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(ke, {
|
|
278
|
-
isOpen: l
|
|
279
|
-
})
|
|
280
|
-
}),
|
|
281
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
282
|
-
className: _navigationbarcssmistica.logoContainer,
|
|
283
|
-
children: s
|
|
284
|
-
})
|
|
285
|
-
]
|
|
286
|
-
})
|
|
287
|
-
})
|
|
288
|
-
})
|
|
289
|
-
})
|
|
290
|
-
}),
|
|
291
|
-
a && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
292
|
-
className: _navigationbarcssmistica.spacer
|
|
293
|
-
})
|
|
294
|
-
]
|
|
295
|
-
}),
|
|
296
|
-
D && /* @__PURE__ */ (0, _jsxruntime.jsx)(_portal.Portal, {
|
|
297
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_focustrap.default, {
|
|
298
|
-
disabled: g,
|
|
299
|
-
group: "burger-menu-lock",
|
|
300
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_reacttransitiongroup.Transition, {
|
|
301
|
-
onEntering: ()=>{
|
|
302
|
-
v("opening");
|
|
303
|
-
},
|
|
304
|
-
onEntered: ()=>{
|
|
305
|
-
v("open");
|
|
306
|
-
},
|
|
307
|
-
onExiting: ()=>{
|
|
308
|
-
v("closing");
|
|
309
|
-
},
|
|
310
|
-
onExited: ()=>{
|
|
311
|
-
v("closed");
|
|
312
|
-
},
|
|
313
|
-
in: l,
|
|
314
|
-
timeout: (0, _platform.isRunningAcceptanceTest)() ? 0 : Ee,
|
|
315
|
-
unmountOnExit: !0,
|
|
316
|
-
children: (K)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
|
|
317
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("nav", {
|
|
318
|
-
className: (0, _classnames.default)(_navigationbarcssmistica.burgerMenu, _navigationbarcssmistica.burgerMenuTransition[K]),
|
|
319
|
-
style: {
|
|
320
|
-
boxShadow: _ !== "closed" ? `6px 0 4px -4px rgba(0, 0, 0, ${J})` : "none"
|
|
321
|
-
},
|
|
322
|
-
id: k,
|
|
323
|
-
onClick: ()=>{
|
|
324
|
-
b();
|
|
325
|
-
},
|
|
326
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_responsivelayout.default, {
|
|
327
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
328
|
-
space: 16,
|
|
329
|
-
children: [
|
|
330
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(_negativebox.default, {
|
|
331
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_list.RowList, {
|
|
332
|
-
children: n.map((Q, X)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_list.Row, _object_spread({}, Q), X))
|
|
333
|
-
})
|
|
334
|
-
}),
|
|
335
|
-
d && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
336
|
-
paddingBottom: 16,
|
|
337
|
-
children: d
|
|
338
|
-
})
|
|
339
|
-
]
|
|
340
|
-
})
|
|
341
|
-
})
|
|
342
|
-
})
|
|
343
|
-
})
|
|
344
|
-
})
|
|
345
|
-
})
|
|
346
|
-
})
|
|
347
|
-
]
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
const y = ()=>/* @__PURE__ */ (0, _jsxruntime.jsx)("nav", {
|
|
226
|
+
}, mn = (param)=>{
|
|
227
|
+
let { sections: n, selectedIndex: a, right: t, isInverse: r = !1, topFixed: o = !0, withBorder: d = !0, burgerMenuExtra: s, logo: c, large: m = !1 } = param;
|
|
228
|
+
const { texts: T, isDarkMode: J } = (0, _hooks.useTheme)(), [l, O] = _react.useState(!1), [I, p] = _react.useState("closed"), R = (0, _hooks.useAriaId)(), K = J ? 1 : 0.2, { isTabletOrSmaller: Q } = (0, _hooks.useScreenSize)(), y = (0, _modalcontextprovider.useSetModalState)();
|
|
229
|
+
c = c !== null && c !== void 0 ? c : /* @__PURE__ */ (0, _jsxruntime.jsx)(_logo.Logo, {
|
|
230
|
+
size: {
|
|
231
|
+
mobile: 40,
|
|
232
|
+
desktop: 48
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
const E = ()=>/* @__PURE__ */ (0, _jsxruntime.jsx)("nav", {
|
|
236
|
+
className: _navigationbarcssmistica.desktopOnly,
|
|
351
237
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_inline.default, {
|
|
352
238
|
space: 32,
|
|
353
|
-
children: n.map((_param,
|
|
354
|
-
var { title:
|
|
239
|
+
children: n.map((_param, h)=>/* @__PURE__ */ /*#__PURE__*/ {
|
|
240
|
+
var { title: B } = _param, b = _object_without_properties(_param, [
|
|
355
241
|
"title"
|
|
356
242
|
]);
|
|
357
243
|
return /*#__PURE__*/ (0, _react.createElement)(_touchable.BaseTouchable, _object_spread_props(_object_spread({}, b), {
|
|
358
|
-
key:
|
|
244
|
+
key: h,
|
|
359
245
|
className: (0, _classnames.default)(_navigationbarcssmistica.section, {
|
|
360
|
-
[_navigationbarcssmistica.selectedSectionVariantes[r ? "inverse" : "default"]]:
|
|
246
|
+
[_navigationbarcssmistica.selectedSectionVariantes[r ? "inverse" : "default"]]: h === a
|
|
361
247
|
}, _navigationbarcssmistica.textWrapperVariants[r ? "inverse" : "default"])
|
|
362
248
|
}), /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text3, {
|
|
363
249
|
regular: !0,
|
|
364
250
|
color: "inherit",
|
|
365
|
-
children:
|
|
251
|
+
children: B
|
|
366
252
|
}));
|
|
367
253
|
})
|
|
368
254
|
})
|
|
369
|
-
}),
|
|
370
|
-
|
|
255
|
+
}), N = m && n.length > 0, X = ()=>{
|
|
256
|
+
O(!0), y({
|
|
257
|
+
isModalOpen: !0
|
|
258
|
+
});
|
|
259
|
+
}, w = ()=>{
|
|
260
|
+
O(!1), y({
|
|
261
|
+
isModalOpen: !1
|
|
262
|
+
});
|
|
263
|
+
}, L = I !== "open", V = n.length > 1, D = /* @__PURE__ */ (0, _jsxruntime.jsxs)(_themevariantcontext.ThemeVariant, {
|
|
371
264
|
isInverse: r,
|
|
372
265
|
children: [
|
|
373
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
374
|
-
topFixed:
|
|
375
|
-
withBorder:
|
|
266
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(A, {
|
|
267
|
+
topFixed: o,
|
|
268
|
+
withBorder: d,
|
|
376
269
|
isMenuOpen: l,
|
|
377
270
|
isInverse: r,
|
|
378
271
|
dataAttributes: {
|
|
379
272
|
"component-name": "MainNavigationBar"
|
|
380
273
|
},
|
|
381
|
-
children: /* @__PURE__ */ (0, _jsxruntime.
|
|
382
|
-
children:
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
274
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_responsivelayout.default, {
|
|
275
|
+
children: [
|
|
276
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(f, {
|
|
277
|
+
right: t,
|
|
278
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
279
|
+
className: _navigationbarcssmistica.mainNavbarContent,
|
|
280
|
+
children: [
|
|
281
|
+
V && /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.default, {
|
|
282
|
+
className: _navigationbarcssmistica.burgerMenuButton,
|
|
283
|
+
"aria-live": "polite",
|
|
284
|
+
"aria-label": l ? T.closeNavigationMenu : T.openNavigationMenu,
|
|
285
|
+
"aria-expanded": l,
|
|
286
|
+
"aria-controls": R,
|
|
287
|
+
onPress: l ? w : X,
|
|
288
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(Le, {
|
|
289
|
+
isOpen: l
|
|
290
|
+
})
|
|
291
|
+
}),
|
|
292
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
293
|
+
className: _navigationbarcssmistica.logoContainer,
|
|
294
|
+
children: c
|
|
295
|
+
}),
|
|
296
|
+
!N && E()
|
|
297
|
+
]
|
|
298
|
+
})
|
|
299
|
+
}),
|
|
300
|
+
N && /* @__PURE__ */ (0, _jsxruntime.jsx)(f, {
|
|
301
|
+
desktopOnly: !0,
|
|
302
|
+
children: E()
|
|
394
303
|
})
|
|
395
|
-
|
|
304
|
+
]
|
|
396
305
|
})
|
|
397
306
|
}),
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
307
|
+
o && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
308
|
+
className: N ? _navigationbarcssmistica.spacerLarge : _navigationbarcssmistica.spacer
|
|
309
|
+
})
|
|
310
|
+
]
|
|
311
|
+
});
|
|
312
|
+
return Q ? /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
313
|
+
children: [
|
|
314
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(_focustrap.default, {
|
|
315
|
+
disabled: L,
|
|
316
|
+
group: "burger-menu-lock",
|
|
317
|
+
children: D
|
|
318
|
+
}),
|
|
319
|
+
V && /* @__PURE__ */ (0, _jsxruntime.jsx)(_portal.Portal, {
|
|
320
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_focustrap.default, {
|
|
321
|
+
disabled: L,
|
|
322
|
+
group: "burger-menu-lock",
|
|
323
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_reacttransitiongroup.Transition, {
|
|
324
|
+
onEntering: ()=>{
|
|
325
|
+
p("opening");
|
|
326
|
+
},
|
|
327
|
+
onEntered: ()=>{
|
|
328
|
+
p("open");
|
|
329
|
+
},
|
|
330
|
+
onExiting: ()=>{
|
|
331
|
+
p("closing");
|
|
332
|
+
},
|
|
333
|
+
onExited: ()=>{
|
|
334
|
+
p("closed");
|
|
335
|
+
},
|
|
336
|
+
in: l,
|
|
337
|
+
timeout: (0, _platform.isRunningAcceptanceTest)() ? 0 : Ve,
|
|
338
|
+
unmountOnExit: !0,
|
|
339
|
+
children: (B)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
|
|
340
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("nav", {
|
|
341
|
+
className: (0, _classnames.default)(_navigationbarcssmistica.burgerMenu, _navigationbarcssmistica.burgerMenuTransition[B]),
|
|
342
|
+
style: {
|
|
343
|
+
boxShadow: I !== "closed" ? `6px 0 4px -4px rgba(0, 0, 0, ${K})` : "none"
|
|
344
|
+
},
|
|
345
|
+
id: R,
|
|
346
|
+
onClick: ()=>{
|
|
347
|
+
w();
|
|
348
|
+
},
|
|
349
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_responsivelayout.default, {
|
|
350
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
351
|
+
space: 16,
|
|
352
|
+
children: [
|
|
353
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(_negativebox.default, {
|
|
354
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_list.RowList, {
|
|
355
|
+
children: n.map((b, h)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_list.Row, _object_spread({}, b), h))
|
|
356
|
+
})
|
|
357
|
+
}),
|
|
358
|
+
s && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
359
|
+
paddingBottom: 16,
|
|
360
|
+
children: s
|
|
361
|
+
})
|
|
362
|
+
]
|
|
363
|
+
})
|
|
364
|
+
})
|
|
365
|
+
})
|
|
366
|
+
})
|
|
410
367
|
})
|
|
411
368
|
})
|
|
412
|
-
}),
|
|
413
|
-
a && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
414
|
-
className: B ? _navigationbarcssmistica.spacerLarge : _navigationbarcssmistica.spacer
|
|
415
369
|
})
|
|
416
370
|
]
|
|
417
|
-
});
|
|
418
|
-
},
|
|
419
|
-
let { onBack: n, title:
|
|
420
|
-
const { texts:
|
|
371
|
+
}) : D;
|
|
372
|
+
}, un = (param)=>{
|
|
373
|
+
let { onBack: n, title: a, right: t, isInverse: r = !1, topFixed: o = !0, paddingX: d = 0, withBorder: s = !0 } = param;
|
|
374
|
+
const { texts: c } = (0, _hooks.useTheme)(), m = /* @__PURE__ */ (0, _jsxruntime.jsx)(f, {
|
|
421
375
|
right: t,
|
|
422
376
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
|
|
423
377
|
space: 24,
|
|
424
378
|
alignItems: "center",
|
|
425
379
|
children: [
|
|
426
380
|
n && /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.default, {
|
|
427
|
-
"aria-label":
|
|
381
|
+
"aria-label": c.backNavigationBar,
|
|
428
382
|
onPress: n,
|
|
429
383
|
className: _navigationbarcssmistica.iconButtonVariants[r ? "inverse" : "default"],
|
|
430
384
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconchevronleftregular.default, {
|
|
@@ -434,7 +388,7 @@ const ke = (param)=>/* @__PURE__ */ {
|
|
|
434
388
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text3, {
|
|
435
389
|
regular: !0,
|
|
436
390
|
truncate: !0,
|
|
437
|
-
children:
|
|
391
|
+
children: a
|
|
438
392
|
})
|
|
439
393
|
]
|
|
440
394
|
})
|
|
@@ -442,41 +396,43 @@ const ke = (param)=>/* @__PURE__ */ {
|
|
|
442
396
|
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_themevariantcontext.ThemeVariant, {
|
|
443
397
|
isInverse: r,
|
|
444
398
|
children: [
|
|
445
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
446
|
-
topFixed:
|
|
447
|
-
withBorder:
|
|
399
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(A, {
|
|
400
|
+
topFixed: o,
|
|
401
|
+
withBorder: s,
|
|
448
402
|
isInverse: r,
|
|
449
403
|
dataAttributes: {
|
|
450
404
|
"component-name": "NavigationBar"
|
|
451
405
|
},
|
|
452
|
-
children:
|
|
453
|
-
children:
|
|
406
|
+
children: o ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_responsivelayout.default, {
|
|
407
|
+
children: m
|
|
454
408
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
455
409
|
className: (0, _sprinklescssmistica.sprinkles)({
|
|
456
410
|
width: "100%"
|
|
457
411
|
}),
|
|
458
412
|
style: {
|
|
459
|
-
padding: `0 ${
|
|
413
|
+
padding: `0 ${d}px`
|
|
460
414
|
},
|
|
461
|
-
children:
|
|
415
|
+
children: m
|
|
462
416
|
})
|
|
463
417
|
}),
|
|
464
|
-
|
|
418
|
+
o && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
465
419
|
className: _navigationbarcssmistica.spacer
|
|
466
420
|
})
|
|
467
421
|
]
|
|
468
422
|
});
|
|
469
|
-
},
|
|
470
|
-
let { logo: n, right:
|
|
471
|
-
const { isTabletOrSmaller: c } = (0, _hooks.useScreenSize)();
|
|
423
|
+
}, pn = (param)=>{
|
|
424
|
+
let { logo: n, right: a, isInverse: t = !1, topFixed: r = !0, withBorder: o = !0 } = param;
|
|
472
425
|
return n = n !== null && n !== void 0 ? n : /* @__PURE__ */ (0, _jsxruntime.jsx)(_logo.Logo, {
|
|
473
|
-
size:
|
|
426
|
+
size: {
|
|
427
|
+
mobile: 40,
|
|
428
|
+
desktop: 48
|
|
429
|
+
}
|
|
474
430
|
}), /* @__PURE__ */ (0, _jsxruntime.jsxs)(_themevariantcontext.ThemeVariant, {
|
|
475
431
|
isInverse: t,
|
|
476
432
|
children: [
|
|
477
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
433
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(A, {
|
|
478
434
|
topFixed: r,
|
|
479
|
-
withBorder:
|
|
435
|
+
withBorder: o,
|
|
480
436
|
isInverse: t,
|
|
481
437
|
dataAttributes: {
|
|
482
438
|
"component-name": "FunnelNavigationBar"
|
|
@@ -484,8 +440,8 @@ const ke = (param)=>/* @__PURE__ */ {
|
|
|
484
440
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_responsivelayout.default, {
|
|
485
441
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_gridlayout.default, {
|
|
486
442
|
template: "10",
|
|
487
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
488
|
-
right:
|
|
443
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(f, {
|
|
444
|
+
right: a,
|
|
489
445
|
children: n
|
|
490
446
|
})
|
|
491
447
|
})
|
|
@@ -496,7 +452,7 @@ const ke = (param)=>/* @__PURE__ */ {
|
|
|
496
452
|
})
|
|
497
453
|
]
|
|
498
454
|
});
|
|
499
|
-
},
|
|
455
|
+
}, hn = (param)=>/* @__PURE__ */ {
|
|
500
456
|
let { children: n } = param;
|
|
501
457
|
return (0, _jsxruntime.jsx)("div", {
|
|
502
458
|
className: _navigationbarcssmistica.lineHeightFix,
|
|
@@ -507,12 +463,12 @@ const ke = (param)=>/* @__PURE__ */ {
|
|
|
507
463
|
children: n
|
|
508
464
|
})
|
|
509
465
|
});
|
|
510
|
-
},
|
|
511
|
-
var { children: n } = _param,
|
|
466
|
+
}, gn = (_param)=>{
|
|
467
|
+
var { children: n } = _param, a = _object_without_properties(_param, [
|
|
512
468
|
"children"
|
|
513
469
|
]);
|
|
514
470
|
const t = (0, _themevariantcontext.useIsInverseVariant)();
|
|
515
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({},
|
|
471
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({}, a), {
|
|
516
472
|
className: (0, _classnames.default)((0, _sprinklescssmistica.sprinkles)({
|
|
517
473
|
border: "none",
|
|
518
474
|
background: "transparent",
|
package/dist/package-version.js
CHANGED
package/dist/tabs.css.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ export declare const inner: string;
|
|
|
5
5
|
export declare const tabsContainer: string;
|
|
6
6
|
export declare const tabVariants: Record<"default" | "fullWidth", string>;
|
|
7
7
|
export declare const tabHover: Record<"inverse" | "default", string>;
|
|
8
|
-
export declare const tabSelectionVariants: Record<"
|
|
8
|
+
export declare const tabSelectionVariants: Record<"selected" | "noSelected" | "noSelectedInverse" | "selectedInverse" | "selectedAnimating" | "selectedAnimatingInverse", string>;
|
|
9
9
|
export declare const icon: string;
|
|
10
10
|
export declare const animatedLine: string;
|