@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.
Files changed (47) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/button.css-mistica.js +61 -52
  3. package/dist/button.css.d.ts +33 -17
  4. package/dist/button.d.ts +9 -46
  5. package/dist/button.js +188 -237
  6. package/dist/logo-blau.d.ts +4 -0
  7. package/dist/logo-blau.js +74 -0
  8. package/dist/logo-common.d.ts +9 -0
  9. package/dist/logo-common.js +21 -0
  10. package/dist/logo-movistar.d.ts +4 -0
  11. package/dist/logo-movistar.js +99 -0
  12. package/dist/logo-o2-new.d.ts +4 -0
  13. package/dist/logo-o2-new.js +29 -0
  14. package/dist/logo-o2.d.ts +4 -0
  15. package/dist/logo-o2.js +29 -0
  16. package/dist/logo-telefonica.d.ts +4 -0
  17. package/dist/logo-telefonica.js +197 -0
  18. package/dist/logo-tu.d.ts +4 -0
  19. package/dist/logo-tu.js +28 -0
  20. package/dist/logo-vivo.d.ts +4 -0
  21. package/dist/logo-vivo.js +81 -0
  22. package/dist/logo.d.ts +10 -10
  23. package/dist/logo.js +174 -534
  24. package/dist/navigation-bar.d.ts +7 -0
  25. package/dist/navigation-bar.js +99 -91
  26. package/dist/navigation-breadcrumbs.d.ts +1 -0
  27. package/dist/navigation-breadcrumbs.js +8 -7
  28. package/dist/package-version.js +1 -1
  29. package/dist/text.d.ts +1 -0
  30. package/dist/text.js +133 -109
  31. package/dist-es/button.css-mistica.js +36 -18
  32. package/dist-es/button.js +219 -268
  33. package/dist-es/logo-blau.js +65 -0
  34. package/dist-es/logo-common.js +12 -0
  35. package/dist-es/logo-movistar.js +90 -0
  36. package/dist-es/logo-o2-new.js +20 -0
  37. package/dist-es/logo-o2.js +20 -0
  38. package/dist-es/logo-telefonica.js +188 -0
  39. package/dist-es/logo-tu.js +19 -0
  40. package/dist-es/logo-vivo.js +72 -0
  41. package/dist-es/logo.js +132 -533
  42. package/dist-es/navigation-bar.js +163 -155
  43. package/dist-es/navigation-breadcrumbs.js +18 -17
  44. package/dist-es/package-version.js +1 -1
  45. package/dist-es/style.css +1 -1
  46. package/dist-es/text.js +143 -119
  47. package/package.json +1 -1
@@ -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;
@@ -11,19 +11,19 @@ function _export(target, all) {
11
11
  }
12
12
  _export(exports, {
13
13
  FunnelNavigationBar: function() {
14
- return pn;
14
+ return hn;
15
15
  },
16
16
  MainNavigationBar: function() {
17
- return mn;
17
+ return pn;
18
18
  },
19
19
  NavigationBar: function() {
20
- return un;
20
+ return gn;
21
21
  },
22
22
  NavigationBarAction: function() {
23
- return gn;
23
+ return vn;
24
24
  },
25
25
  NavigationBarActionGroup: function() {
26
- return hn;
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 we = (param)=>{
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
- }, De = 300, A = (param)=>{
200
- let { children: n, topFixed: a, withBorder: t, isMenuOpen: r, isInverse: o, dataAttributes: s } = param;
201
- const { isDarkMode: c } = (0, _hooks.useTheme)();
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)((()=>o && !c || !t ? _navigationbarcssmistica.navbarBorderColorVariants.noBorder : r ? _navigationbarcssmistica.navbarBorderColorVariants.menuOpen : _navigationbarcssmistica.navbarBorderColorVariants.default)(), {
207
+ className: (0, _classnames.default)(p(), {
204
208
  [_navigationbarcssmistica.topFixed]: a
205
209
  }),
206
210
  style: {
207
- background: o ? _skincontractcssmistica.vars.colors.navigationBarBackground : _skincontractcssmistica.vars.colors.background
211
+ background: l[m]
208
212
  }
209
- }, (0, _dom.getPrefixedDataAttributes)(s)), {
213
+ }, (0, _dom.getPrefixedDataAttributes)(c)), {
210
214
  children: n
211
215
  }));
212
- }, v = (param)=>{
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
- }, mn = (param)=>{
227
- let { sections: n = [], selectedIndex: a, right: t, isInverse: r = !1, topFixed: o = !0, withBorder: s = !0, burgerMenuExtra: c, logo: l, large: p = !1 } = param;
228
- const { texts: m, isDarkMode: q } = (0, _hooks.useTheme)(), [d, I] = _react.useState(!1), [O, h] = _react.useState("closed"), R = (0, _hooks.useAriaId)(), J = q ? 1 : 0.2, { isTabletOrSmaller: K } = (0, _hooks.useScreenSize)(), y = (0, _modalcontextprovider.useSetModalState)();
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, g)=>{
240
- var { title: B } = _param, M = _object_without_properties(_param, [
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({}, M), {
244
- key: g,
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"]]: g === a
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: B
253
+ children: M
252
254
  }));
253
255
  })
254
256
  })
255
- }), b = p && n.length > 0, Q = ()=>{
256
- I(!0), y({
257
+ }), B = p && n.length > 0, Y = ()=>{
258
+ y(!0), w({
257
259
  isModalOpen: !0
258
260
  });
259
- }, L = ()=>{
260
- I(!1), y({
261
+ }, D = ()=>{
262
+ y(!1), w({
261
263
  isModalOpen: !1
262
264
  });
263
- }, w = O !== "open", D = n.length > 1, V = /* @__PURE__ */ (0, _jsxruntime.jsxs)(_themevariantcontext.ThemeVariant, {
264
- isInverse: r,
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)(A, {
267
- topFixed: o,
268
- withBorder: s,
269
- isMenuOpen: d,
270
- isInverse: r,
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)(v, {
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
- D && /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.default, {
285
+ G && /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.default, {
282
286
  className: _navigationbarcssmistica.burgerMenuButton,
283
287
  "aria-live": "polite",
284
- "aria-label": d ? m.closeNavigationMenu : m.openNavigationMenu,
285
- "aria-expanded": d,
286
- "aria-controls": R,
287
- onPress: d ? L : Q,
288
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(we, {
289
- isOpen: d
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: l
298
+ children: X
295
299
  }),
296
- !b && E()
300
+ !B && V()
297
301
  ]
298
302
  })
299
303
  }),
300
- b && /* @__PURE__ */ (0, _jsxruntime.jsx)(v, {
304
+ B && /* @__PURE__ */ (0, _jsxruntime.jsx)(N, {
301
305
  desktopOnly: !0,
302
- children: E()
306
+ children: V()
303
307
  })
304
308
  ]
305
309
  })
306
310
  }),
307
- o && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
308
- className: b ? _navigationbarcssmistica.spacerLarge : _navigationbarcssmistica.spacer
311
+ s && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
312
+ className: B ? _navigationbarcssmistica.spacerLarge : _navigationbarcssmistica.spacer
309
313
  })
310
314
  ]
311
315
  });
312
- return K ? /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
316
+ return Q ? /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
313
317
  children: [
314
318
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_focustrap.default, {
315
- disabled: w,
319
+ disabled: F,
316
320
  group: "burger-menu-lock",
317
- children: V
321
+ children: H
318
322
  }),
319
- D && /* @__PURE__ */ (0, _jsxruntime.jsx)(_portal.Portal, {
323
+ G && /* @__PURE__ */ (0, _jsxruntime.jsx)(_portal.Portal, {
320
324
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_focustrap.default, {
321
- disabled: w,
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: d,
337
- timeout: (0, _platform.isRunningAcceptanceTest)() ? 0 : De,
340
+ in: u,
341
+ timeout: (0, _platform.isRunningAcceptanceTest)() ? 0 : Fe,
338
342
  unmountOnExit: !0,
339
- children: (B)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
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[B]),
345
+ className: (0, _classnames.default)(_navigationbarcssmistica.burgerMenu, _navigationbarcssmistica.burgerMenuTransition[M]),
342
346
  style: {
343
- boxShadow: O !== "closed" ? `6px 0 4px -4px rgba(0, 0, 0, ${J})` : "none"
347
+ boxShadow: E !== "closed" ? `6px 0 4px -4px rgba(0, 0, 0, ${K})` : "none"
344
348
  },
345
- id: R,
349
+ id: L,
346
350
  onClick: ()=>{
347
- L();
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((M, g)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_list.Row, _object_spread({}, M), g))
359
+ children: n.map((k, f)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_list.Row, _object_spread({}, k), f))
356
360
  })
357
361
  }),
358
- c && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
362
+ d && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
359
363
  paddingBottom: 16,
360
- children: c
364
+ children: d
361
365
  })
362
366
  ]
363
367
  })
@@ -368,10 +372,10 @@ const we = (param)=>{
368
372
  })
369
373
  })
370
374
  ]
371
- }) : V;
372
- }, un = (param)=>{
373
- let { onBack: n, title: a, titleAs: t, right: r, isInverse: o = !1, topFixed: s = !0, paddingX: c = 0, withBorder: l = !0 } = param;
374
- const { texts: p } = (0, _hooks.useTheme)(), m = /* @__PURE__ */ (0, _jsxruntime.jsx)(v, {
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
- isInverse: o,
401
+ variant: o,
402
+ isInverse: s,
398
403
  children: [
399
- /* @__PURE__ */ (0, _jsxruntime.jsx)(A, {
400
- topFixed: s,
401
- withBorder: l,
402
- isInverse: o,
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: s ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_responsivelayout.default, {
407
- children: m
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 ${c}px`
419
+ padding: `0 ${d}px`
414
420
  },
415
- children: m
421
+ children: l
416
422
  })
417
423
  }),
418
- s && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
424
+ c && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
419
425
  className: _navigationbarcssmistica.spacer
420
426
  })
421
427
  ]
422
428
  });
423
- }, pn = (param)=>{
424
- let { logo: n, right: a, isInverse: t = !1, topFixed: r = !0, withBorder: o = !0 } = param;
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
- isInverse: t,
437
+ variant: t,
438
+ isInverse: r,
432
439
  children: [
433
- /* @__PURE__ */ (0, _jsxruntime.jsx)(A, {
434
- topFixed: r,
435
- withBorder: o,
436
- isInverse: t,
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)(v, {
451
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(N, {
444
452
  right: a,
445
453
  children: n
446
454
  })
447
455
  })
448
456
  })
449
457
  }),
450
- r && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
458
+ o && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
451
459
  className: _navigationbarcssmistica.spacer
452
460
  })
453
461
  ]
454
462
  });
455
- }, hn = (param)=>{
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
- }, gn = (_param)=>{
474
+ }, vn = (_param)=>{
467
475
  var { children: n } = _param, a = _object_without_properties(_param, [
468
476
  "children"
469
477
  ]);
@@ -9,6 +9,7 @@ export type NavigationBreadcrumbsProps = {
9
9
  breadcrumbs: ReadonlyArray<{
10
10
  readonly title: string;
11
11
  readonly url: string;
12
+ onNavigate?: () => void;
12
13
  }>;
13
14
  children?: void;
14
15
  dataAttributes?: DataAttributes;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "default", {
7
7
  enumerable: true,
8
8
  get: function() {
9
- return D;
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 N = " / ", b = (param)=>{
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, u)=>{
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: N
106
+ children: b
106
107
  })
107
108
  })
108
109
  ]
109
- }, u);
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
- }, D = b;
131
+ }, S = B;
@@ -8,4 +8,4 @@ Object.defineProperty(exports, "PACKAGE_VERSION", {
8
8
  return o;
9
9
  }
10
10
  });
11
- const o = "15.18.0";
11
+ const o = "15.20.0";
package/dist/text.d.ts CHANGED
@@ -21,6 +21,7 @@ export interface TextPresetProps {
21
21
  as?: React.ComponentType<any> | string;
22
22
  role?: string;
23
23
  'aria-level'?: number;
24
+ 'aria-label'?: string;
24
25
  dataAttributes?: DataAttributes;
25
26
  forceMobileSizes?: boolean;
26
27
  textShadow?: string;