@telefonica/mistica 14.14.0 → 14.16.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 (192) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/avatar.css-mistica.js +1 -1
  3. package/dist/badge.css-mistica.js +3 -3
  4. package/dist/badge.js +19 -10
  5. package/dist/box.d.ts +1 -1
  6. package/dist/boxed.css-mistica.js +1 -1
  7. package/dist/button-layout.css-mistica.js +4 -4
  8. package/dist/button.css-mistica.js +19 -19
  9. package/dist/button.js +112 -112
  10. package/dist/callout.css-mistica.js +1 -1
  11. package/dist/card.css-mistica.js +23 -15
  12. package/dist/card.css.d.ts +4 -0
  13. package/dist/card.d.ts +3 -3
  14. package/dist/card.js +104 -95
  15. package/dist/carousel.css-mistica.js +13 -13
  16. package/dist/checkbox.css-mistica.js +5 -5
  17. package/dist/checkbox.js +10 -9
  18. package/dist/chip.css-mistica.js +4 -4
  19. package/dist/chip.d.ts +1 -0
  20. package/dist/chip.js +57 -41
  21. package/dist/circle.css-mistica.js +1 -1
  22. package/dist/credit-card-number-field.js +22 -19
  23. package/dist/cvv-field.js +60 -47
  24. package/dist/date-time-picker.d.ts +10 -0
  25. package/dist/date-time-picker.js +54 -35
  26. package/dist/dialog.css-mistica.js +3 -3
  27. package/dist/double-field.css-mistica.js +2 -2
  28. package/dist/empty-state-card.css-mistica.js +1 -1
  29. package/dist/empty-state.css-mistica.js +3 -3
  30. package/dist/feedback.css-mistica.js +3 -3
  31. package/dist/fixed-footer-layout.css-mistica.js +1 -1
  32. package/dist/fixed-footer-layout.js +79 -27
  33. package/dist/grid.css.d.ts +6 -6
  34. package/dist/hero.css-mistica.js +1 -1
  35. package/dist/highlighted-card.css-mistica.js +3 -3
  36. package/dist/hooks.d.ts +1 -1
  37. package/dist/icons/icon-cvv-amex.d.ts +1 -0
  38. package/dist/icons/icon-cvv-amex.js +5 -4
  39. package/dist/icons/icon-cvv-visa-mc.d.ts +1 -0
  40. package/dist/icons/icon-cvv-visa-mc.js +7 -6
  41. package/dist/image.css-mistica.js +1 -1
  42. package/dist/index.d.ts +1 -0
  43. package/dist/list.css-mistica.js +7 -7
  44. package/dist/list.js +90 -91
  45. package/dist/loading-bar.css-mistica.js +4 -4
  46. package/dist/maybe-dismissable.css-mistica.js +3 -3
  47. package/dist/menu.css-mistica.js +1 -1
  48. package/dist/navigation-bar.css-mistica.js +11 -11
  49. package/dist/navigation-breadcrumbs.css-mistica.js +1 -1
  50. package/dist/package-version.js +1 -1
  51. package/dist/password-field.css-mistica.js +1 -1
  52. package/dist/popover.css-mistica.js +3 -3
  53. package/dist/progress-bar.css-mistica.js +1 -1
  54. package/dist/radio-button.css-mistica.js +14 -14
  55. package/dist/radio-button.js +34 -33
  56. package/dist/responsive-layout.css-mistica.js +2 -2
  57. package/dist/screen-reader-only.css-mistica.js +1 -1
  58. package/dist/search-field.js +8 -8
  59. package/dist/select.css-mistica.js +11 -11
  60. package/dist/select.js +145 -142
  61. package/dist/skins/blau.js +10 -0
  62. package/dist/skins/defaults.js +10 -0
  63. package/dist/skins/movistar-legacy.js +10 -0
  64. package/dist/skins/movistar.js +10 -0
  65. package/dist/skins/o2.js +10 -0
  66. package/dist/skins/telefonica.js +12 -2
  67. package/dist/skins/types/index.d.ts +24 -8
  68. package/dist/skins/vivo-new.js +10 -0
  69. package/dist/skins/vivo.js +10 -0
  70. package/dist/snackbar.css-mistica.js +3 -3
  71. package/dist/sprinkles.css-mistica.js +226 -190
  72. package/dist/sprinkles.css.d.ts +16 -16
  73. package/dist/stepper.css-mistica.js +3 -3
  74. package/dist/stepper.js +26 -26
  75. package/dist/switch-component.css-mistica.js +15 -15
  76. package/dist/switch-component.js +16 -15
  77. package/dist/tabs.css-mistica.js +7 -7
  78. package/dist/tabs.js +32 -28
  79. package/dist/tag.css-mistica.js +1 -1
  80. package/dist/tag.js +15 -14
  81. package/dist/text-field-base.css-mistica.js +6 -6
  82. package/dist/text-field-base.js +44 -44
  83. package/dist/text-field-components.css-mistica.js +6 -6
  84. package/dist/text-link.css-mistica.js +5 -5
  85. package/dist/text.d.ts +6 -8
  86. package/dist/text.js +8 -7
  87. package/dist/theme-context-provider.js +25 -24
  88. package/dist/theme.d.ts +5 -2
  89. package/dist/theme.js +73 -24
  90. package/dist/title.js +27 -24
  91. package/dist/tooltip.css-mistica.js +6 -6
  92. package/dist/touchable.css-mistica.js +3 -3
  93. package/dist/utils/aspect-ratio-support.css-mistica.js +2 -2
  94. package/dist/video.css-mistica.js +1 -1
  95. package/dist/video.d.ts +7 -1
  96. package/dist/video.js +116 -76
  97. package/dist-es/avatar.css-mistica.js +1 -1
  98. package/dist-es/badge.css-mistica.js +2 -2
  99. package/dist-es/badge.js +29 -20
  100. package/dist-es/boxed.css-mistica.js +1 -1
  101. package/dist-es/button-layout.css-mistica.js +3 -3
  102. package/dist-es/button.css-mistica.js +9 -9
  103. package/dist-es/button.js +154 -154
  104. package/dist-es/callout.css-mistica.js +1 -1
  105. package/dist-es/card.css-mistica.js +4 -2
  106. package/dist-es/card.js +151 -142
  107. package/dist-es/carousel.css-mistica.js +2 -2
  108. package/dist-es/checkbox.css-mistica.js +5 -5
  109. package/dist-es/checkbox.js +21 -20
  110. package/dist-es/chip.css-mistica.js +4 -4
  111. package/dist-es/chip.js +77 -61
  112. package/dist-es/circle.css-mistica.js +1 -1
  113. package/dist-es/credit-card-number-field.js +23 -20
  114. package/dist-es/cvv-field.js +74 -61
  115. package/dist-es/date-time-picker.js +66 -47
  116. package/dist-es/dialog.css-mistica.js +3 -3
  117. package/dist-es/double-field.css-mistica.js +2 -2
  118. package/dist-es/empty-state-card.css-mistica.js +1 -1
  119. package/dist-es/empty-state.css-mistica.js +2 -2
  120. package/dist-es/feedback.css-mistica.js +2 -2
  121. package/dist-es/fixed-footer-layout.css-mistica.js +1 -1
  122. package/dist-es/fixed-footer-layout.js +94 -42
  123. package/dist-es/hero.css-mistica.js +1 -1
  124. package/dist-es/highlighted-card.css-mistica.js +3 -3
  125. package/dist-es/icons/icon-cvv-amex.js +5 -4
  126. package/dist-es/icons/icon-cvv-visa-mc.js +9 -8
  127. package/dist-es/image.css-mistica.js +1 -1
  128. package/dist-es/list.css-mistica.js +2 -2
  129. package/dist-es/list.js +114 -115
  130. package/dist-es/loading-bar.css-mistica.js +2 -2
  131. package/dist-es/maybe-dismissable.css-mistica.js +2 -2
  132. package/dist-es/menu.css-mistica.js +1 -1
  133. package/dist-es/navigation-bar.css-mistica.js +8 -8
  134. package/dist-es/navigation-breadcrumbs.css-mistica.js +1 -1
  135. package/dist-es/package-version.js +1 -1
  136. package/dist-es/password-field.css-mistica.js +1 -1
  137. package/dist-es/popover.css-mistica.js +2 -2
  138. package/dist-es/progress-bar.css-mistica.js +1 -1
  139. package/dist-es/radio-button.css-mistica.js +8 -8
  140. package/dist-es/radio-button.js +38 -37
  141. package/dist-es/responsive-layout.css-mistica.js +2 -2
  142. package/dist-es/screen-reader-only.css-mistica.js +1 -1
  143. package/dist-es/search-field.js +7 -7
  144. package/dist-es/select.css-mistica.js +10 -10
  145. package/dist-es/select.js +173 -170
  146. package/dist-es/skins/blau.js +10 -0
  147. package/dist-es/skins/defaults.js +10 -0
  148. package/dist-es/skins/movistar-legacy.js +10 -0
  149. package/dist-es/skins/movistar.js +10 -0
  150. package/dist-es/skins/o2.js +10 -0
  151. package/dist-es/skins/telefonica.js +12 -2
  152. package/dist-es/skins/vivo-new.js +10 -0
  153. package/dist-es/skins/vivo.js +10 -0
  154. package/dist-es/snackbar.css-mistica.js +2 -2
  155. package/dist-es/sprinkles.css-mistica.js +226 -190
  156. package/dist-es/stepper.css-mistica.js +2 -2
  157. package/dist-es/stepper.js +50 -50
  158. package/dist-es/style.css +1 -1
  159. package/dist-es/switch-component.css-mistica.js +12 -12
  160. package/dist-es/switch-component.js +37 -36
  161. package/dist-es/tabs.css-mistica.js +6 -6
  162. package/dist-es/tabs.js +49 -45
  163. package/dist-es/tag.css-mistica.js +1 -1
  164. package/dist-es/tag.js +28 -27
  165. package/dist-es/text-field-base.css-mistica.js +2 -2
  166. package/dist-es/text-field-base.js +64 -64
  167. package/dist-es/text-field-components.css-mistica.js +2 -2
  168. package/dist-es/text-link.css-mistica.js +5 -5
  169. package/dist-es/text.js +11 -10
  170. package/dist-es/theme-context-provider.js +56 -55
  171. package/dist-es/theme.js +69 -20
  172. package/dist-es/title.js +36 -33
  173. package/dist-es/tooltip.css-mistica.js +3 -3
  174. package/dist-es/touchable.css-mistica.js +2 -2
  175. package/dist-es/utils/aspect-ratio-support.css-mistica.js +2 -2
  176. package/dist-es/video.css-mistica.js +1 -1
  177. package/dist-es/video.js +121 -81
  178. package/package.json +3 -2
  179. package/dist/cvv-field.css-mistica.js +0 -21
  180. package/dist/cvv-field.css.d.ts +0 -2
  181. package/dist/cvv-field.css.ts.vanilla.css-mistica.js +0 -11
  182. package/dist/icons/icon-creditcard.d.ts +0 -7
  183. package/dist/icons/icon-creditcard.js +0 -33
  184. package/dist/icons/icon-info-cvv.d.ts +0 -7
  185. package/dist/icons/icon-info-cvv.js +0 -26
  186. package/dist/icons/icon-search.d.ts +0 -7
  187. package/dist/icons/icon-search.js +0 -32
  188. package/dist-es/cvv-field.css-mistica.js +0 -4
  189. package/dist-es/cvv-field.css.ts.vanilla.css-mistica.js +0 -2
  190. package/dist-es/icons/icon-creditcard.js +0 -24
  191. package/dist-es/icons/icon-info-cvv.js +0 -17
  192. package/dist-es/icons/icon-search.js +0 -23
@@ -26,112 +26,113 @@ function _object_spread(target) {
26
26
  }
27
27
  return target;
28
28
  }
29
- import { jsx as r, jsxs as S, Fragment as y } from "react/jsx-runtime";
29
+ import { jsx as r, jsxs as y, Fragment as A } from "react/jsx-runtime";
30
30
  import * as a from "react";
31
31
  import { assignInlineVars as N } from "@vanilla-extract/dynamic";
32
32
  import O from "./dialog.js";
33
- import L from "./screen-size-context-provider.js";
34
- import w from "./aria-id-getter-context.js";
35
- import { getTexts as F, dimensions as $, AnchorLink as h, NAVBAR_HEIGHT_MOBILE as V } from "./theme.js";
36
- import { getPlatform as D, isInsideNovumNativeApp as j } from "./utils/platform.js";
37
- import _ from "./theme-context.js";
38
- import { useIsomorphicLayoutEffect as B } from "./hooks.js";
39
- import z from "./tab-focus.js";
40
- import G from "./modal-context-provider.js";
41
- import { DocumentVisibilityProvider as q } from "./utils/document-visibility.js";
42
- import { AspectRatioSupportProvider as W } from "./utils/aspect-ratio-support.js";
43
- import { TrackingConfig as J } from "./utils/analytics.js";
44
- import { vars as K } from "./skins/skin-contract.css-mistica.js";
45
- import { fromHexToRgb as Q } from "./utils/color.js";
46
- import { defaultTextPresetsConfig as e, defaultBorderRadiiConfig as U } from "./skins/defaults.js";
47
- const X = "(prefers-color-scheme: dark)", Y = ()=>{
33
+ import w from "./screen-size-context-provider.js";
34
+ import F from "./aria-id-getter-context.js";
35
+ import { getTexts as $, dimensions as V, getMisticaLinkComponent as j, NAVBAR_HEIGHT_MOBILE as _ } from "./theme.js";
36
+ import { getPlatform as I, isInsideNovumNativeApp as h } from "./utils/platform.js";
37
+ import B from "./theme-context.js";
38
+ import { useIsomorphicLayoutEffect as z } from "./hooks.js";
39
+ import G from "./tab-focus.js";
40
+ import q from "./modal-context-provider.js";
41
+ import { DocumentVisibilityProvider as W } from "./utils/document-visibility.js";
42
+ import { AspectRatioSupportProvider as J } from "./utils/aspect-ratio-support.js";
43
+ import { TrackingConfig as K } from "./utils/analytics.js";
44
+ import { vars as Q } from "./skins/skin-contract.css-mistica.js";
45
+ import { fromHexToRgb as U } from "./utils/color.js";
46
+ import { defaultTextPresetsConfig as e, defaultBorderRadiiConfig as X } from "./skins/defaults.js";
47
+ const Y = "(prefers-color-scheme: dark)", Z = ()=>{
48
48
  const [t, c] = a.useState(!1);
49
- return B(()=>{
49
+ return z(()=>{
50
50
  if (!window.matchMedia) return;
51
- const o = window.matchMedia(X), s = ()=>{
51
+ const o = window.matchMedia(Y), s = ()=>{
52
52
  c(o.matches);
53
53
  };
54
54
  return o.addListener(s), s(), ()=>o.removeListener(s);
55
55
  }, []), t;
56
- }, Z = ()=>(t)=>t, tt = (t)=>({
57
- headerMobileHeight: (t == null ? void 0 : t.headerMobileHeight) === "mistica" ? V : t == null ? void 0 : t.headerMobileHeight
58
- }), et = (param)=>{
56
+ }, tt = ()=>(t)=>t, et = (t)=>({
57
+ headerMobileHeight: (t == null ? void 0 : t.headerMobileHeight) === "mistica" ? _ : t == null ? void 0 : t.headerMobileHeight
58
+ }), rt = (param)=>{
59
59
  let { theme: t , children: c , as: o } = param;
60
60
  var _t_colorScheme, _t_skin_borderRadii;
61
- const s = a.useRef(1), I = a.useCallback(()=>`aria-id-hook-${s.current++}`, []), E = Y(), m = (_t_colorScheme = t.colorScheme) !== null && _t_colorScheme !== void 0 ? _t_colorScheme : "auto", R = t.skin.colors, A = _object_spread({}, t.skin.colors, t.skin.darkModeColors), u = m === "auto" && E || m === "dark", k = u ? A : R, p = a.useMemo(()=>{
62
- var i, n, d, x, f, P, b, g, M, T, C;
61
+ const s = a.useRef(1), E = a.useCallback(()=>`aria-id-hook-${s.current++}`, []), L = Z(), k = (_t_colorScheme = t.colorScheme) !== null && _t_colorScheme !== void 0 ? _t_colorScheme : "auto", R = t.skin.colors, H = _object_spread({}, t.skin.colors, t.skin.darkModeColors), u = k === "auto" && L || k === "dark", m = u ? H : R, p = a.useMemo(()=>{
62
+ var i, n, d, x, f, v, P, g, M, C, T, D;
63
63
  const l = _object_spread({
64
- platform: D(),
65
- insideNovumNativeApp: j()
64
+ platform: I(),
65
+ insideNovumNativeApp: h()
66
66
  }, t.platformOverrides);
67
- var _t_Link, _t_useHrefDecorator;
67
+ var _t_useHrefDecorator;
68
68
  return {
69
69
  skinName: t.skin.name,
70
70
  i18n: t.i18n,
71
71
  platformOverrides: l,
72
- texts: _object_spread({}, F(t.i18n.locale), t.texts),
72
+ texts: _object_spread({}, $(t.i18n.locale), t.texts),
73
73
  analytics: _object_spread({
74
74
  logEvent: ()=>Promise.resolve(),
75
75
  eventFormat: "universal-analytics"
76
76
  }, t.analytics),
77
- dimensions: _object_spread({}, $, tt(t.dimensions)),
77
+ dimensions: _object_spread({}, V, et(t.dimensions)),
78
78
  textPresets: {
79
79
  text5: _object_spread({}, e.text5, (i = t.skin.textPresets) == null ? void 0 : i.text5),
80
80
  text6: _object_spread({}, e.text6, (n = t.skin.textPresets) == null ? void 0 : n.text6),
81
81
  text7: _object_spread({}, e.text7, (d = t.skin.textPresets) == null ? void 0 : d.text7),
82
82
  text8: _object_spread({}, e.text8, (x = t.skin.textPresets) == null ? void 0 : x.text8),
83
83
  text9: _object_spread({}, e.text9, (f = t.skin.textPresets) == null ? void 0 : f.text9),
84
- text10: _object_spread({}, e.text10, (P = t.skin.textPresets) == null ? void 0 : P.text10),
85
- cardTitle: _object_spread({}, e.cardTitle, (b = t.skin.textPresets) == null ? void 0 : b.cardTitle),
84
+ text10: _object_spread({}, e.text10, (v = t.skin.textPresets) == null ? void 0 : v.text10),
85
+ cardTitle: _object_spread({}, e.cardTitle, (P = t.skin.textPresets) == null ? void 0 : P.cardTitle),
86
86
  button: _object_spread({}, e.button, (g = t.skin.textPresets) == null ? void 0 : g.button),
87
87
  link: _object_spread({}, e.link, (M = t.skin.textPresets) == null ? void 0 : M.link),
88
- title1: _object_spread({}, e.title1, (T = t.skin.textPresets) == null ? void 0 : T.title1),
89
- indicator: _object_spread({}, e.indicator, (C = t.skin.textPresets) == null ? void 0 : C.indicator)
88
+ title1: _object_spread({}, e.title1, (C = t.skin.textPresets) == null ? void 0 : C.title1),
89
+ indicator: _object_spread({}, e.indicator, (T = t.skin.textPresets) == null ? void 0 : T.indicator),
90
+ tabsLabel: _object_spread({}, e.tabsLabel, (D = t.skin.textPresets) == null ? void 0 : D.tabsLabel)
90
91
  },
91
- Link: (_t_Link = t.Link) !== null && _t_Link !== void 0 ? _t_Link : h,
92
+ Link: j(t.Link),
92
93
  isDarkMode: u,
93
- isIos: D(l) === "ios",
94
- useHrefDecorator: (_t_useHrefDecorator = t.useHrefDecorator) !== null && _t_useHrefDecorator !== void 0 ? _t_useHrefDecorator : Z,
94
+ isIos: I(l) === "ios",
95
+ useHrefDecorator: (_t_useHrefDecorator = t.useHrefDecorator) !== null && _t_useHrefDecorator !== void 0 ? _t_useHrefDecorator : tt,
95
96
  useId: t.useId
96
97
  };
97
98
  }, [
98
99
  t,
99
100
  u
100
- ]), H = Object.fromEntries(Object.entries(k).map((param)=>{
101
+ ]), S = Object.fromEntries(Object.entries(m).map((param)=>{
101
102
  let [l, i] = param;
102
103
  let n = "";
103
104
  if (i.startsWith("#")) {
104
- const [d, x, f] = Q(i);
105
+ const [d, x, f] = U(i);
105
106
  n = `${d}, ${x}, ${f}`;
106
107
  }
107
108
  return [
108
109
  l,
109
110
  n
110
111
  ];
111
- })), v = N(K, {
112
- colors: k,
113
- rawColors: H,
114
- borderRadii: (_t_skin_borderRadii = t.skin.borderRadii) !== null && _t_skin_borderRadii !== void 0 ? _t_skin_borderRadii : U
112
+ })), b = N(Q, {
113
+ colors: m,
114
+ rawColors: S,
115
+ borderRadii: (_t_skin_borderRadii = t.skin.borderRadii) !== null && _t_skin_borderRadii !== void 0 ? _t_skin_borderRadii : X
115
116
  });
116
- return /* @__PURE__ */ r(z, {
117
+ return /* @__PURE__ */ r(G, {
117
118
  disabled: !t.enableTabFocus,
118
- children: /* @__PURE__ */ r(G, {
119
- children: /* @__PURE__ */ r(_.Provider, {
119
+ children: /* @__PURE__ */ r(q, {
120
+ children: /* @__PURE__ */ r(B.Provider, {
120
121
  value: p,
121
- children: /* @__PURE__ */ r(J, {
122
+ children: /* @__PURE__ */ r(K, {
122
123
  eventFormat: p.analytics.eventFormat,
123
- children: /* @__PURE__ */ r(W, {
124
- children: /* @__PURE__ */ r(q, {
125
- children: /* @__PURE__ */ r(w.Provider, {
126
- value: I,
127
- children: /* @__PURE__ */ r(L, {
124
+ children: /* @__PURE__ */ r(J, {
125
+ children: /* @__PURE__ */ r(W, {
126
+ children: /* @__PURE__ */ r(F.Provider, {
127
+ value: E,
128
+ children: /* @__PURE__ */ r(w, {
128
129
  children: /* @__PURE__ */ r(O, {
129
130
  children: o ? /*#__PURE__*/ a.createElement(o, {
130
- style: v
131
- }, c) : /* @__PURE__ */ S(y, {
131
+ style: b
132
+ }, c) : /* @__PURE__ */ y(A, {
132
133
  children: [
133
134
  (process.env.NODE_ENV !== "test" || process.env.SSR_TEST) && /* @__PURE__ */ r("style", {
134
- children: `:root {${v}}`
135
+ children: `:root {${b}}`
135
136
  }),
136
137
  c
137
138
  ]
@@ -145,5 +146,5 @@ const X = "(prefers-color-scheme: dark)", Y = ()=>{
145
146
  })
146
147
  })
147
148
  });
148
- }, bt = et;
149
- export { bt as default, Y as useIsOsDarkModeEnabled };
149
+ }, gt = rt;
150
+ export { gt as default, Z as useIsOsDarkModeEnabled };
package/dist-es/theme.js CHANGED
@@ -77,8 +77,8 @@ function _object_without_properties_loose(source, excluded) {
77
77
  }
78
78
  return target;
79
79
  }
80
- import { jsx as i } from "react/jsx-runtime";
81
- const t = {
80
+ import { jsx as a } from "react/jsx-runtime";
81
+ const l = {
82
82
  expirationDatePlaceholder: "MM/AA",
83
83
  togglePasswordVisibilityLabel: "Mostrar u ocultar contrase\xf1a",
84
84
  loading: "Cargando",
@@ -109,7 +109,7 @@ const t = {
109
109
  clearButton: "Borrar",
110
110
  carouselNextButton: "siguiente",
111
111
  carouselPrevButton: "anterior"
112
- }, o = {
112
+ }, n = {
113
113
  expirationDatePlaceholder: "MM/YY",
114
114
  togglePasswordVisibilityLabel: "Toggle password visibility",
115
115
  loading: "Loading",
@@ -140,7 +140,7 @@ const t = {
140
140
  clearButton: "Clear",
141
141
  carouselNextButton: "next",
142
142
  carouselPrevButton: "previous"
143
- }, n = {
143
+ }, d = {
144
144
  expirationDatePlaceholder: "MM/JJ",
145
145
  togglePasswordVisibilityLabel: "Passwort un-/sichtbar machen",
146
146
  loading: "Wird gespeichert",
@@ -171,7 +171,7 @@ const t = {
171
171
  clearButton: "L\xf6schen",
172
172
  carouselNextButton: "n\xe4chste",
173
173
  carouselPrevButton: "vorherige"
174
- }, l = {
174
+ }, s = {
175
175
  expirationDatePlaceholder: "MM/AA",
176
176
  togglePasswordVisibilityLabel: "Mostrar ou ocultar senha",
177
177
  loading: "Carregando",
@@ -202,32 +202,81 @@ const t = {
202
202
  clearButton: "Apagar",
203
203
  carouselNextButton: "pr\xf3ximo",
204
204
  carouselPrevButton: "anterior"
205
- }, C = (r)=>{
205
+ }, b = (r)=>{
206
206
  switch(r.toLocaleLowerCase().split(/[-_]/)[0]){
207
207
  case "es":
208
- return t;
209
- case "pt":
210
208
  return l;
209
+ case "pt":
210
+ return s;
211
211
  case "de":
212
- return n;
212
+ return d;
213
213
  case "en":
214
- return o;
214
+ return n;
215
215
  default:
216
- return process.env.NODE_ENV !== "production" && console.error(`Invalid locale: ${r}`), o;
216
+ return process.env.NODE_ENV !== "production" && console.error(`Invalid locale: ${r}`), n;
217
217
  }
218
- }, d = 56, s = 80, m = {
219
- headerMobileHeight: d,
220
- headerDesktopHeight: s
221
- }, u = (_param)=>/* @__PURE__ */ {
222
- var { to: r , innerRef: e } = _param, a = _object_without_properties(_param, [
218
+ }, c = 56, C = 80, E = {
219
+ headerMobileHeight: c,
220
+ headerDesktopHeight: C
221
+ }, m = (_param)=>/* @__PURE__ */ {
222
+ var { to: r , innerRef: e } = _param, o = _object_without_properties(_param, [
223
223
  "to",
224
224
  "innerRef"
225
225
  ]);
226
- return i("a", _object_spread_props(_object_spread({
226
+ return a("a", _object_spread_props(_object_spread({
227
227
  ref: e,
228
228
  href: typeof r == "string" ? r : r == null ? void 0 : r.pathname
229
- }, a), {
230
- children: a.children
229
+ }, o), {
230
+ children: o.children
231
231
  }));
232
+ }, u = (r)=>r, f = (r)=>(_param)=>/* @__PURE__ */ {
233
+ var { innerRef: e } = _param, o = _object_without_properties(_param, [
234
+ "innerRef"
235
+ ]);
236
+ return a(r, _object_spread({
237
+ ref: e
238
+ }, o));
239
+ }, v = (r)=>(_param)=>/* @__PURE__ */ {
240
+ var { to: e , innerRef: o , children: t } = _param, i = _object_without_properties(_param, [
241
+ "to",
242
+ "innerRef",
243
+ "children"
244
+ ]);
245
+ return a(r, {
246
+ href: e,
247
+ children: /* @__PURE__ */ a("a", _object_spread_props(_object_spread({
248
+ ref: o
249
+ }, i), {
250
+ children: t
251
+ }))
252
+ });
253
+ }, p = (r)=>(_param)=>/* @__PURE__ */ {
254
+ var { to: e , innerRef: o , children: t } = _param, i = _object_without_properties(_param, [
255
+ "to",
256
+ "innerRef",
257
+ "children"
258
+ ]);
259
+ return a(r, _object_spread_props(_object_spread({
260
+ href: e,
261
+ ref: o
262
+ }, i), {
263
+ children: t
264
+ }));
265
+ }, h = (r)=>{
266
+ if (!r) return m;
267
+ if (typeof r == "function" || r.$$typeof) return r;
268
+ switch(r.type){
269
+ case "ReactRouter5":
270
+ return u(r.Component);
271
+ case "ReactRouter6":
272
+ return f(r.Component);
273
+ case "Next12":
274
+ return v(r.Component);
275
+ case "Next13":
276
+ return p(r.Component);
277
+ default:
278
+ const e = r.type;
279
+ throw new Error(`Invalid Link type: ${e}`);
280
+ }
232
281
  };
233
- export { u as AnchorLink, s as NAVBAR_HEIGHT_DESKTOP, d as NAVBAR_HEIGHT_MOBILE, m as dimensions, C as getTexts };
282
+ export { C as NAVBAR_HEIGHT_DESKTOP, c as NAVBAR_HEIGHT_MOBILE, E as dimensions, h as getMisticaLinkComponent, b as getTexts };
package/dist-es/title.js CHANGED
@@ -26,56 +26,59 @@ function _object_spread(target) {
26
26
  }
27
27
  return target;
28
28
  }
29
- import { jsx as r, jsxs as m } from "react/jsx-runtime";
30
- import { Text1 as l, Text5 as s, Text2 as c } from "./text.js";
31
- import p from "./inline.js";
32
- import u from "./box.js";
33
- import { vars as d } from "./skins/skin-contract.css-mistica.js";
34
- const a = (param)=>{
35
- let { title: e , right: t } = param;
36
- return t ? /* @__PURE__ */ m(p, {
29
+ import { jsx as r, jsxs as l } from "react/jsx-runtime";
30
+ import { Text1 as c, Text5 as p, Text2 as f } from "./text.js";
31
+ import x from "./inline.js";
32
+ import d from "./box.js";
33
+ import { vars as h } from "./skins/skin-contract.css-mistica.js";
34
+ import { useTheme as s } from "./hooks.js";
35
+ const m = (param)=>{
36
+ let { title: t , right: e } = param;
37
+ const { textPresets: o } = s();
38
+ return e ? /* @__PURE__ */ l(x, {
37
39
  space: "between",
38
40
  alignItems: "baseline",
39
41
  children: [
40
- e,
41
- /* @__PURE__ */ r(u, {
42
+ t,
43
+ /* @__PURE__ */ r(d, {
42
44
  paddingLeft: 16,
43
- children: /* @__PURE__ */ r(c, {
44
- regular: !0,
45
- children: t
45
+ children: /* @__PURE__ */ r(f, {
46
+ weight: o.link.weight,
47
+ children: e
46
48
  })
47
49
  })
48
50
  ]
49
- }) : e;
50
- }, g = (param)=>/* @__PURE__ */ {
51
- let { children: e , as: t = "h3" , id: o , right: n , dataAttributes: i } = param;
52
- return r(a, {
53
- title: /* @__PURE__ */ r(l, {
54
- color: d.colors.textSecondary,
51
+ }) : t;
52
+ }, k = (param)=>{
53
+ let { children: t , as: e = "h3" , id: o , right: i , dataAttributes: n } = param;
54
+ const { textPresets: a } = s();
55
+ return /* @__PURE__ */ r(m, {
56
+ title: /* @__PURE__ */ r(c, {
57
+ color: h.colors.textSecondary,
55
58
  transform: "uppercase",
56
- medium: !0,
57
- as: t,
59
+ weight: a.title1.weight,
60
+ as: e,
58
61
  id: o,
59
62
  dataAttributes: _object_spread({
60
63
  "component-name": "Title1"
61
- }, i),
64
+ }, n),
62
65
  wordBreak: !1,
63
- children: e
66
+ children: t
64
67
  }),
65
- right: n
68
+ right: i
66
69
  });
67
- }, j = (param)=>/* @__PURE__ */ {
68
- let { children: e , as: t = "h3" , id: o , right: n , dataAttributes: i } = param;
69
- return r(a, {
70
- title: /* @__PURE__ */ r(s, {
71
- as: t,
70
+ }, y = (param)=>/* @__PURE__ */ {
71
+ let { children: t , as: e = "h3" , id: o , right: i , dataAttributes: n } = param;
72
+ return r(m, {
73
+ title: /* @__PURE__ */ r(p, {
74
+ as: e,
72
75
  id: o,
73
76
  dataAttributes: _object_spread({
74
77
  "component-name": "Title2"
75
- }, i),
76
- children: e
78
+ }, n),
79
+ children: t
77
80
  }),
78
- right: n
81
+ right: i
79
82
  });
80
83
  };
81
- export { g as Title1, j as Title2 };
84
+ export { k as Title1, y as Title2 };
@@ -1,11 +1,11 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./tooltip.css.ts.vanilla.css-mistica.js";
3
- var v = "_1xhatbpb _1y2v1nf60 _1y2v1nfam _1y2v1nf8h _1y2v1nf8w _1y2v1nfa4 _1y2v1nf31 _1y2v1nfa1", t = "_1xhatbpe", _ = "_1xhatbpf", n = "_1xhatbpd", e = "_1xhatbpc", f = "_1y2v1nf60 _1y2v1nf8j _1y2v1nf8w _1y2v1nfak _1y2v1nf2", p = "_1xhatbpj _1y2v1nf6u _1y2v1nf78 _1y2v1nf7m _1y2v1nf80 _1y2v1nf60 _1y2v1nfb5 _1y2v1nf8c _1y2v1nfad _1y2v1nfa1", o = "_1xhatbpk", h = "_1xhatbpl", x = "_1xhatbpm", y = "_1xhatbpn", b = "_1xhatbpo", m = "_1xhatbp6", i = "_1xhatbp7", w = "_1xhatbp8", s = {
3
+ var v = "_1xhatbpb _1y2v1nf60 _1y2v1nfau _1y2v1nf8l _1y2v1nf91 _1y2v1nfac _1y2v1nf31 _1y2v1nfa9", t = "_1xhatbpe", _ = "_1xhatbpf", n = "_1xhatbpd", e = "_1xhatbpc", f = "_1y2v1nf60 _1y2v1nf8o _1y2v1nf91 _1y2v1nfas _1y2v1nf2", p = "_1xhatbpj _1y2v1nf6u _1y2v1nf79 _1y2v1nf7o _1y2v1nf83 _1y2v1nf60 _1y2v1nfbe _1y2v1nf8g _1y2v1nfal _1y2v1nfa9", o = "_1xhatbpk", x = "_1xhatbpl", y = "_1xhatbpm", h = "_1xhatbpn", b = "_1xhatbpo", m = "_1xhatbp6", i = "_1xhatbp7", w = "_1xhatbp8", s = {
4
4
  shadowAlpha: "var(--_1xhatbp0)",
5
5
  enterTransform: "var(--_1xhatbp1)",
6
6
  enterDoneTransform: "var(--_1xhatbp2)",
7
7
  exitTransform: "var(--_1xhatbp3)",
8
8
  enterActiveAnimationName: "var(--_1xhatbp4)",
9
9
  arrowBoxShadow: "var(--_1xhatbp5)"
10
- }, d = "_1y2v1nf68";
11
- export { v as arrow, t as arrowBottom, _ as arrowLeft, n as arrowRight, e as arrowTop, f as arrowWrapper, p as container, o as enter, h as enterActive, x as enterDone, y as exit, b as exitActive, m as fadeInBottomKeyframes, i as fadeInTopKeyframes, w as fadeInXKeyframes, s as vars, d as wrapper };
10
+ }, c = "_1y2v1nf68";
11
+ export { v as arrow, t as arrowBottom, _ as arrowLeft, n as arrowRight, e as arrowTop, f as arrowWrapper, p as container, o as enter, x as enterActive, y as enterDone, h as exit, b as exitActive, m as fadeInBottomKeyframes, i as fadeInTopKeyframes, w as fadeInXKeyframes, s as vars, c as wrapper };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./touchable.css.ts.vanilla.css-mistica.js";
3
- var n = "mhti6u1 _1y2v1nfaj", f = "mhti6u4", _ = "mhti6u1 _1y2v1nfaj _1y2v1nf6r _1y2v1nf75 _1y2v1nf7j _1y2v1nf7x _1y2v1nf66 _1y2v1nfa2 _1y2v1nf8b _1y2v1nf2y _1y2v1nf5y _1y2v1nfal";
4
- export { n as base, f as notTouchable, _ as touchable };
3
+ var f = "mhti6u1 _1y2v1nfar", n = "mhti6u4", _ = "mhti6u1 _1y2v1nfar _1y2v1nf6r _1y2v1nf76 _1y2v1nf7l _1y2v1nf80 _1y2v1nf66 _1y2v1nfaa _1y2v1nf8f _1y2v1nf2y _1y2v1nf5y _1y2v1nfat";
4
+ export { f as base, n as notTouchable, _ as touchable };
@@ -1,6 +1,6 @@
1
1
  import "../sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./aspect-ratio-support.css.ts.vanilla.css-mistica.js";
3
- var v = "yqswj62", n = "_1y2v1nf8b _1y2v1nf8r _1y2v1nfam _1y2v1nfb0", y = {
3
+ var v = "yqswj62", n = "_1y2v1nf8f _1y2v1nf8w _1y2v1nfau _1y2v1nfb9", y = {
4
4
  aspectRatio: "var(--yqswj60)"
5
- }, f = "_1y2v1nfak _1y2v1nf9z _1y2v1nfa0 _1y2v1nf5z";
5
+ }, f = "_1y2v1nfas _1y2v1nfa7 _1y2v1nfa8 _1y2v1nf5z";
6
6
  export { v as container, n as containerWithWrapper, y as vars, f as wrapper };
@@ -1,3 +1,3 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
- var y = "_1y2v1nfam _1y2v1nfb0 _1y2v1nf66 _1y2v1nf5y _1y2v1nf9z _1y2v1nfa0 _1y2v1nfc6";
2
+ var y = "_1y2v1nfau _1y2v1nfb9 _1y2v1nf66 _1y2v1nf5y _1y2v1nfa7 _1y2v1nfa8 _1y2v1nfci";
3
3
  export { y as video };