@telefonica/mistica 15.18.0 → 15.20.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/button.css-mistica.js +61 -52
- package/dist/button.css.d.ts +33 -17
- package/dist/button.d.ts +9 -46
- package/dist/button.js +188 -237
- package/dist/logo-blau.d.ts +4 -0
- package/dist/logo-blau.js +74 -0
- package/dist/logo-common.d.ts +9 -0
- package/dist/logo-common.js +21 -0
- package/dist/logo-movistar.d.ts +4 -0
- package/dist/logo-movistar.js +99 -0
- package/dist/logo-o2-new.d.ts +4 -0
- package/dist/logo-o2-new.js +29 -0
- package/dist/logo-o2.d.ts +4 -0
- package/dist/logo-o2.js +29 -0
- package/dist/logo-telefonica.d.ts +4 -0
- package/dist/logo-telefonica.js +197 -0
- package/dist/logo-tu.d.ts +4 -0
- package/dist/logo-tu.js +28 -0
- package/dist/logo-vivo.d.ts +4 -0
- package/dist/logo-vivo.js +81 -0
- package/dist/logo.d.ts +10 -10
- package/dist/logo.js +174 -534
- package/dist/navigation-bar.d.ts +7 -0
- package/dist/navigation-bar.js +99 -91
- package/dist/navigation-breadcrumbs.d.ts +1 -0
- package/dist/navigation-breadcrumbs.js +8 -7
- package/dist/package-version.js +1 -1
- package/dist/text.d.ts +1 -0
- package/dist/text.js +133 -109
- package/dist-es/button.css-mistica.js +36 -18
- package/dist-es/button.js +219 -268
- package/dist-es/logo-blau.js +65 -0
- package/dist-es/logo-common.js +12 -0
- package/dist-es/logo-movistar.js +90 -0
- package/dist-es/logo-o2-new.js +20 -0
- package/dist-es/logo-o2.js +20 -0
- package/dist-es/logo-telefonica.js +188 -0
- package/dist-es/logo-tu.js +19 -0
- package/dist-es/logo-vivo.js +72 -0
- package/dist-es/logo.js +132 -533
- package/dist-es/navigation-bar.js +163 -155
- package/dist-es/navigation-breadcrumbs.js +18 -17
- package/dist-es/package-version.js +1 -1
- package/dist-es/style.css +1 -1
- package/dist-es/text.js +143 -119
- package/package.json +1 -1
package/dist/navigation-bar.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import type { Variant } from './theme-variant-context';
|
|
2
3
|
import type { TouchableProps } from './touchable';
|
|
3
4
|
import type { HeadingType } from './utils/types';
|
|
4
5
|
type MainNavigationBarSection = {
|
|
@@ -22,6 +23,8 @@ type MainNavigationBarPropsBase = {
|
|
|
22
23
|
selectedIndex?: number;
|
|
23
24
|
right?: React.ReactElement;
|
|
24
25
|
logo?: React.ReactElement;
|
|
26
|
+
variant?: Variant;
|
|
27
|
+
/** @deprecated Use variant instead */
|
|
25
28
|
isInverse?: boolean;
|
|
26
29
|
children?: undefined;
|
|
27
30
|
topFixed?: boolean;
|
|
@@ -32,7 +35,9 @@ type MainNavigationBarPropsBase = {
|
|
|
32
35
|
type MainNavigationBarProps = MainNavigationBarPropsBase;
|
|
33
36
|
export declare const MainNavigationBar: React.FC<MainNavigationBarProps>;
|
|
34
37
|
interface NavigationBarCommonProps {
|
|
38
|
+
/** @deprecated Use variant instead */
|
|
35
39
|
isInverse?: boolean;
|
|
40
|
+
variant?: Variant;
|
|
36
41
|
onBack?: () => void;
|
|
37
42
|
title?: string;
|
|
38
43
|
titleAs?: HeadingType;
|
|
@@ -51,6 +56,8 @@ interface NavigationBarNotFixedProps extends NavigationBarCommonProps {
|
|
|
51
56
|
type NavigationBarProps = NavigationBarTopFixedProps | NavigationBarNotFixedProps;
|
|
52
57
|
export declare const NavigationBar: React.FC<NavigationBarProps>;
|
|
53
58
|
type FunnelNavigationBarProps = {
|
|
59
|
+
variant?: Variant;
|
|
60
|
+
/** @deprecated Use variant instead */
|
|
54
61
|
isInverse?: boolean;
|
|
55
62
|
logo?: React.ReactElement;
|
|
56
63
|
right?: React.ReactElement;
|
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 hn;
|
|
15
15
|
},
|
|
16
16
|
MainNavigationBar: function() {
|
|
17
|
-
return
|
|
17
|
+
return pn;
|
|
18
18
|
},
|
|
19
19
|
NavigationBar: function() {
|
|
20
|
-
return
|
|
20
|
+
return gn;
|
|
21
21
|
},
|
|
22
22
|
NavigationBarAction: function() {
|
|
23
|
-
return
|
|
23
|
+
return vn;
|
|
24
24
|
},
|
|
25
25
|
NavigationBarActionGroup: function() {
|
|
26
|
-
return
|
|
26
|
+
return fn;
|
|
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 De = (param)=>{
|
|
183
183
|
let { isOpen: n } = param;
|
|
184
184
|
return /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
185
185
|
className: _navigationbarcssmistica.burgerIconContainer,
|
|
@@ -196,20 +196,24 @@ const we = (param)=>{
|
|
|
196
196
|
})
|
|
197
197
|
]
|
|
198
198
|
});
|
|
199
|
-
},
|
|
200
|
-
let { children: n, topFixed: a, withBorder: t, isMenuOpen: r,
|
|
201
|
-
const { isDarkMode:
|
|
199
|
+
}, Fe = 300, O = (param)=>{
|
|
200
|
+
let { children: n, topFixed: a, withBorder: t, isMenuOpen: r, variant: o, isInverse: s, dataAttributes: c } = param;
|
|
201
|
+
const { isDarkMode: d } = (0, _hooks.useTheme)(), m = o !== null && o !== void 0 ? o : s ? "inverse" : "default", p = ()=>m === "inverse" && !d || !t ? _navigationbarcssmistica.navbarBorderColorVariants.noBorder : r ? _navigationbarcssmistica.navbarBorderColorVariants.menuOpen : _navigationbarcssmistica.navbarBorderColorVariants.default, l = {
|
|
202
|
+
default: _skincontractcssmistica.vars.colors.background,
|
|
203
|
+
inverse: _skincontractcssmistica.vars.colors.navigationBarBackground,
|
|
204
|
+
alternative: _skincontractcssmistica.vars.colors.backgroundAlternative
|
|
205
|
+
};
|
|
202
206
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("header", _object_spread_props(_object_spread({
|
|
203
|
-
className: (0, _classnames.default)((
|
|
207
|
+
className: (0, _classnames.default)(p(), {
|
|
204
208
|
[_navigationbarcssmistica.topFixed]: a
|
|
205
209
|
}),
|
|
206
210
|
style: {
|
|
207
|
-
background:
|
|
211
|
+
background: l[m]
|
|
208
212
|
}
|
|
209
|
-
}, (0, _dom.getPrefixedDataAttributes)(
|
|
213
|
+
}, (0, _dom.getPrefixedDataAttributes)(c)), {
|
|
210
214
|
children: n
|
|
211
215
|
}));
|
|
212
|
-
},
|
|
216
|
+
}, N = (param)=>{
|
|
213
217
|
let { right: n, children: a, desktopOnly: t } = param;
|
|
214
218
|
return /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
215
219
|
className: (0, _classnames.default)(_navigationbarcssmistica.navigationBarContent, {
|
|
@@ -223,102 +227,102 @@ const we = (param)=>{
|
|
|
223
227
|
})
|
|
224
228
|
]
|
|
225
229
|
});
|
|
226
|
-
},
|
|
227
|
-
let { sections: n = [], selectedIndex: a, right: t,
|
|
228
|
-
const { texts:
|
|
229
|
-
l = l !== null && l !== void 0 ? l : /* @__PURE__ */ (0, _jsxruntime.jsx)(_logo.Logo, {
|
|
230
|
+
}, pn = (param)=>{
|
|
231
|
+
let { sections: n = [], selectedIndex: a, right: t, variant: r, isInverse: o = !1, topFixed: s = !0, withBorder: c = !0, burgerMenuExtra: d, logo: m, large: p = !1 } = param;
|
|
232
|
+
const { texts: l, isDarkMode: R } = (0, _hooks.useTheme)(), [u, y] = _react.useState(!1), [E, h] = _react.useState("closed"), L = (0, _hooks.useAriaId)(), K = R ? 1 : 0.2, { isTabletOrSmaller: Q } = (0, _hooks.useScreenSize)(), w = (0, _modalcontextprovider.useSetModalState)(), X = m || /* @__PURE__ */ (0, _jsxruntime.jsx)(_logo.Logo, {
|
|
230
233
|
size: {
|
|
231
234
|
mobile: 40,
|
|
232
235
|
desktop: 48
|
|
233
236
|
}
|
|
234
|
-
})
|
|
235
|
-
const E = ()=>/* @__PURE__ */ (0, _jsxruntime.jsx)("nav", {
|
|
237
|
+
}), V = ()=>/* @__PURE__ */ (0, _jsxruntime.jsx)("nav", {
|
|
236
238
|
className: _navigationbarcssmistica.desktopOnly,
|
|
237
239
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_inline.default, {
|
|
238
240
|
space: 32,
|
|
239
|
-
children: n.map((_param,
|
|
240
|
-
var { title:
|
|
241
|
+
children: n.map((_param, f)=>{
|
|
242
|
+
var { title: M } = _param, k = _object_without_properties(_param, [
|
|
241
243
|
"title"
|
|
242
244
|
]);
|
|
243
|
-
return /* @__PURE__ */ /*#__PURE__*/ (0, _react.createElement)(_touchable.BaseTouchable, _object_spread_props(_object_spread({},
|
|
244
|
-
key:
|
|
245
|
+
return /* @__PURE__ */ /*#__PURE__*/ (0, _react.createElement)(_touchable.BaseTouchable, _object_spread_props(_object_spread({}, k), {
|
|
246
|
+
key: f,
|
|
245
247
|
className: (0, _classnames.default)(_navigationbarcssmistica.section, {
|
|
246
|
-
[_navigationbarcssmistica.selectedSectionVariantes[r ? "inverse" : "default"]]:
|
|
247
|
-
}, _navigationbarcssmistica.textWrapperVariants[r ? "inverse" : "default"])
|
|
248
|
+
[_navigationbarcssmistica.selectedSectionVariantes[r === "inverse" || o ? "inverse" : "default"]]: f === a
|
|
249
|
+
}, _navigationbarcssmistica.textWrapperVariants[r === "inverse" || o ? "inverse" : "default"])
|
|
248
250
|
}), /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text3, {
|
|
249
251
|
regular: !0,
|
|
250
252
|
color: "inherit",
|
|
251
|
-
children:
|
|
253
|
+
children: M
|
|
252
254
|
}));
|
|
253
255
|
})
|
|
254
256
|
})
|
|
255
|
-
}),
|
|
256
|
-
|
|
257
|
+
}), B = p && n.length > 0, Y = ()=>{
|
|
258
|
+
y(!0), w({
|
|
257
259
|
isModalOpen: !0
|
|
258
260
|
});
|
|
259
|
-
},
|
|
260
|
-
|
|
261
|
+
}, D = ()=>{
|
|
262
|
+
y(!1), w({
|
|
261
263
|
isModalOpen: !1
|
|
262
264
|
});
|
|
263
|
-
},
|
|
264
|
-
|
|
265
|
+
}, F = E !== "open", G = n.length > 1, H = /* @__PURE__ */ (0, _jsxruntime.jsxs)(_themevariantcontext.ThemeVariant, {
|
|
266
|
+
variant: r,
|
|
267
|
+
isInverse: o,
|
|
265
268
|
children: [
|
|
266
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
267
|
-
topFixed:
|
|
268
|
-
withBorder:
|
|
269
|
-
isMenuOpen:
|
|
270
|
-
|
|
269
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(O, {
|
|
270
|
+
topFixed: s,
|
|
271
|
+
withBorder: c,
|
|
272
|
+
isMenuOpen: u,
|
|
273
|
+
variant: r,
|
|
274
|
+
isInverse: o,
|
|
271
275
|
dataAttributes: {
|
|
272
276
|
"component-name": "MainNavigationBar"
|
|
273
277
|
},
|
|
274
278
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_responsivelayout.default, {
|
|
275
279
|
children: [
|
|
276
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
280
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(N, {
|
|
277
281
|
right: t,
|
|
278
282
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
279
283
|
className: _navigationbarcssmistica.mainNavbarContent,
|
|
280
284
|
children: [
|
|
281
|
-
|
|
285
|
+
G && /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.default, {
|
|
282
286
|
className: _navigationbarcssmistica.burgerMenuButton,
|
|
283
287
|
"aria-live": "polite",
|
|
284
|
-
"aria-label":
|
|
285
|
-
"aria-expanded":
|
|
286
|
-
"aria-controls":
|
|
287
|
-
onPress:
|
|
288
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
289
|
-
isOpen:
|
|
288
|
+
"aria-label": u ? l.closeNavigationMenu : l.openNavigationMenu,
|
|
289
|
+
"aria-expanded": u,
|
|
290
|
+
"aria-controls": L,
|
|
291
|
+
onPress: u ? D : Y,
|
|
292
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(De, {
|
|
293
|
+
isOpen: u
|
|
290
294
|
})
|
|
291
295
|
}),
|
|
292
296
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
293
297
|
className: _navigationbarcssmistica.logoContainer,
|
|
294
|
-
children:
|
|
298
|
+
children: X
|
|
295
299
|
}),
|
|
296
|
-
!
|
|
300
|
+
!B && V()
|
|
297
301
|
]
|
|
298
302
|
})
|
|
299
303
|
}),
|
|
300
|
-
|
|
304
|
+
B && /* @__PURE__ */ (0, _jsxruntime.jsx)(N, {
|
|
301
305
|
desktopOnly: !0,
|
|
302
|
-
children:
|
|
306
|
+
children: V()
|
|
303
307
|
})
|
|
304
308
|
]
|
|
305
309
|
})
|
|
306
310
|
}),
|
|
307
|
-
|
|
308
|
-
className:
|
|
311
|
+
s && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
312
|
+
className: B ? _navigationbarcssmistica.spacerLarge : _navigationbarcssmistica.spacer
|
|
309
313
|
})
|
|
310
314
|
]
|
|
311
315
|
});
|
|
312
|
-
return
|
|
316
|
+
return Q ? /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
313
317
|
children: [
|
|
314
318
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_focustrap.default, {
|
|
315
|
-
disabled:
|
|
319
|
+
disabled: F,
|
|
316
320
|
group: "burger-menu-lock",
|
|
317
|
-
children:
|
|
321
|
+
children: H
|
|
318
322
|
}),
|
|
319
|
-
|
|
323
|
+
G && /* @__PURE__ */ (0, _jsxruntime.jsx)(_portal.Portal, {
|
|
320
324
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_focustrap.default, {
|
|
321
|
-
disabled:
|
|
325
|
+
disabled: F,
|
|
322
326
|
group: "burger-menu-lock",
|
|
323
327
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_reacttransitiongroup.Transition, {
|
|
324
328
|
onEntering: ()=>{
|
|
@@ -333,18 +337,18 @@ const we = (param)=>{
|
|
|
333
337
|
onExited: ()=>{
|
|
334
338
|
h("closed");
|
|
335
339
|
},
|
|
336
|
-
in:
|
|
337
|
-
timeout: (0, _platform.isRunningAcceptanceTest)() ? 0 :
|
|
340
|
+
in: u,
|
|
341
|
+
timeout: (0, _platform.isRunningAcceptanceTest)() ? 0 : Fe,
|
|
338
342
|
unmountOnExit: !0,
|
|
339
|
-
children: (
|
|
343
|
+
children: (M)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
|
|
340
344
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("nav", {
|
|
341
|
-
className: (0, _classnames.default)(_navigationbarcssmistica.burgerMenu, _navigationbarcssmistica.burgerMenuTransition[
|
|
345
|
+
className: (0, _classnames.default)(_navigationbarcssmistica.burgerMenu, _navigationbarcssmistica.burgerMenuTransition[M]),
|
|
342
346
|
style: {
|
|
343
|
-
boxShadow:
|
|
347
|
+
boxShadow: E !== "closed" ? `6px 0 4px -4px rgba(0, 0, 0, ${K})` : "none"
|
|
344
348
|
},
|
|
345
|
-
id:
|
|
349
|
+
id: L,
|
|
346
350
|
onClick: ()=>{
|
|
347
|
-
|
|
351
|
+
D();
|
|
348
352
|
},
|
|
349
353
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_responsivelayout.default, {
|
|
350
354
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
@@ -352,12 +356,12 @@ const we = (param)=>{
|
|
|
352
356
|
children: [
|
|
353
357
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_negativebox.default, {
|
|
354
358
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_list.RowList, {
|
|
355
|
-
children: n.map((
|
|
359
|
+
children: n.map((k, f)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_list.Row, _object_spread({}, k), f))
|
|
356
360
|
})
|
|
357
361
|
}),
|
|
358
|
-
|
|
362
|
+
d && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
359
363
|
paddingBottom: 16,
|
|
360
|
-
children:
|
|
364
|
+
children: d
|
|
361
365
|
})
|
|
362
366
|
]
|
|
363
367
|
})
|
|
@@ -368,10 +372,10 @@ const we = (param)=>{
|
|
|
368
372
|
})
|
|
369
373
|
})
|
|
370
374
|
]
|
|
371
|
-
}) :
|
|
372
|
-
},
|
|
373
|
-
let { onBack: n, title: a, titleAs: t, right: r,
|
|
374
|
-
const { texts: p } = (0, _hooks.useTheme)(),
|
|
375
|
+
}) : H;
|
|
376
|
+
}, gn = (param)=>{
|
|
377
|
+
let { onBack: n, title: a, titleAs: t, right: r, variant: o, isInverse: s = !1, topFixed: c = !0, paddingX: d = 0, withBorder: m = !0 } = param;
|
|
378
|
+
const { texts: p } = (0, _hooks.useTheme)(), l = /* @__PURE__ */ (0, _jsxruntime.jsx)(N, {
|
|
375
379
|
right: r,
|
|
376
380
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
|
|
377
381
|
space: 24,
|
|
@@ -394,65 +398,69 @@ const we = (param)=>{
|
|
|
394
398
|
})
|
|
395
399
|
});
|
|
396
400
|
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_themevariantcontext.ThemeVariant, {
|
|
397
|
-
|
|
401
|
+
variant: o,
|
|
402
|
+
isInverse: s,
|
|
398
403
|
children: [
|
|
399
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
400
|
-
topFixed:
|
|
401
|
-
withBorder:
|
|
402
|
-
|
|
404
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(O, {
|
|
405
|
+
topFixed: c,
|
|
406
|
+
withBorder: m,
|
|
407
|
+
variant: o,
|
|
408
|
+
isInverse: s,
|
|
403
409
|
dataAttributes: {
|
|
404
410
|
"component-name": "NavigationBar"
|
|
405
411
|
},
|
|
406
|
-
children:
|
|
407
|
-
children:
|
|
412
|
+
children: c ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_responsivelayout.default, {
|
|
413
|
+
children: l
|
|
408
414
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
409
415
|
className: (0, _sprinklescssmistica.sprinkles)({
|
|
410
416
|
width: "100%"
|
|
411
417
|
}),
|
|
412
418
|
style: {
|
|
413
|
-
padding: `0 ${
|
|
419
|
+
padding: `0 ${d}px`
|
|
414
420
|
},
|
|
415
|
-
children:
|
|
421
|
+
children: l
|
|
416
422
|
})
|
|
417
423
|
}),
|
|
418
|
-
|
|
424
|
+
c && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
419
425
|
className: _navigationbarcssmistica.spacer
|
|
420
426
|
})
|
|
421
427
|
]
|
|
422
428
|
});
|
|
423
|
-
},
|
|
424
|
-
let { logo: n, right: a,
|
|
429
|
+
}, hn = (param)=>{
|
|
430
|
+
let { logo: n, right: a, variant: t, isInverse: r = !1, topFixed: o = !0, withBorder: s = !0 } = param;
|
|
425
431
|
return n = n !== null && n !== void 0 ? n : /* @__PURE__ */ (0, _jsxruntime.jsx)(_logo.Logo, {
|
|
426
432
|
size: {
|
|
427
433
|
mobile: 40,
|
|
428
434
|
desktop: 48
|
|
429
435
|
}
|
|
430
436
|
}), /* @__PURE__ */ (0, _jsxruntime.jsxs)(_themevariantcontext.ThemeVariant, {
|
|
431
|
-
|
|
437
|
+
variant: t,
|
|
438
|
+
isInverse: r,
|
|
432
439
|
children: [
|
|
433
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
434
|
-
topFixed:
|
|
435
|
-
withBorder:
|
|
436
|
-
|
|
440
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(O, {
|
|
441
|
+
topFixed: o,
|
|
442
|
+
withBorder: s,
|
|
443
|
+
variant: t,
|
|
444
|
+
isInverse: r,
|
|
437
445
|
dataAttributes: {
|
|
438
446
|
"component-name": "FunnelNavigationBar"
|
|
439
447
|
},
|
|
440
448
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_responsivelayout.default, {
|
|
441
449
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_gridlayout.default, {
|
|
442
450
|
template: "10",
|
|
443
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
451
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(N, {
|
|
444
452
|
right: a,
|
|
445
453
|
children: n
|
|
446
454
|
})
|
|
447
455
|
})
|
|
448
456
|
})
|
|
449
457
|
}),
|
|
450
|
-
|
|
458
|
+
o && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
451
459
|
className: _navigationbarcssmistica.spacer
|
|
452
460
|
})
|
|
453
461
|
]
|
|
454
462
|
});
|
|
455
|
-
},
|
|
463
|
+
}, fn = (param)=>{
|
|
456
464
|
let { children: n } = param;
|
|
457
465
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
458
466
|
className: _navigationbarcssmistica.lineHeightFix,
|
|
@@ -463,7 +471,7 @@ const we = (param)=>{
|
|
|
463
471
|
children: n
|
|
464
472
|
})
|
|
465
473
|
});
|
|
466
|
-
},
|
|
474
|
+
}, vn = (_param)=>{
|
|
467
475
|
var { children: n } = _param, a = _object_without_properties(_param, [
|
|
468
476
|
"children"
|
|
469
477
|
]);
|
|
@@ -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 S;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -73,7 +73,7 @@ function _object_spread_props(target, source) {
|
|
|
73
73
|
}
|
|
74
74
|
return target;
|
|
75
75
|
}
|
|
76
|
-
const
|
|
76
|
+
const b = " / ", B = (param)=>{
|
|
77
77
|
let { title: s, breadcrumbs: n, dataAttributes: c, "aria-label": m = "Breadcrumb" } = param;
|
|
78
78
|
const i = (0, _themevariantcontext.useIsInverseVariant)();
|
|
79
79
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("nav", _object_spread_props(_object_spread({
|
|
@@ -82,8 +82,8 @@ const N = " / ", b = (param)=>{
|
|
|
82
82
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("ol", {
|
|
83
83
|
className: _navigationbreadcrumbscssmistica.list,
|
|
84
84
|
children: [
|
|
85
|
-
n.map((param,
|
|
86
|
-
let { title: a, url: d } = param;
|
|
85
|
+
n.map((param, p)=>{
|
|
86
|
+
let { title: a, url: d, onNavigate: u } = param;
|
|
87
87
|
return /* @__PURE__ */ (0, _jsxruntime.jsxs)("li", {
|
|
88
88
|
className: _navigationbreadcrumbscssmistica.listItem,
|
|
89
89
|
children: [
|
|
@@ -95,6 +95,7 @@ const N = " / ", b = (param)=>{
|
|
|
95
95
|
color: i ? _skincontractcssmistica.vars.colors.textPrimaryInverse : _skincontractcssmistica.vars.colors.textPrimary
|
|
96
96
|
},
|
|
97
97
|
className: _navigationbreadcrumbscssmistica.link,
|
|
98
|
+
onNavigate: u,
|
|
98
99
|
children: a
|
|
99
100
|
})
|
|
100
101
|
}),
|
|
@@ -102,11 +103,11 @@ const N = " / ", b = (param)=>{
|
|
|
102
103
|
role: "presentation",
|
|
103
104
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text1, {
|
|
104
105
|
regular: !0,
|
|
105
|
-
children:
|
|
106
|
+
children: b
|
|
106
107
|
})
|
|
107
108
|
})
|
|
108
109
|
]
|
|
109
|
-
},
|
|
110
|
+
}, p);
|
|
110
111
|
}),
|
|
111
112
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("li", {
|
|
112
113
|
className: _navigationbreadcrumbscssmistica.listItem,
|
|
@@ -127,4 +128,4 @@ const N = " / ", b = (param)=>{
|
|
|
127
128
|
]
|
|
128
129
|
})
|
|
129
130
|
}));
|
|
130
|
-
},
|
|
131
|
+
}, S = B;
|
package/dist/package-version.js
CHANGED
package/dist/text.d.ts
CHANGED