@telefonica/mistica 14.6.0 → 14.7.1

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 (188) 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/boxed.d.ts +2 -1
  5. package/dist/boxed.js +17 -18
  6. package/dist/button-fixed-footer-layout.d.ts +1 -2
  7. package/dist/button-group.css-mistica.js +3 -3
  8. package/dist/button-group.d.ts +1 -1
  9. package/dist/button-layout.css-mistica.js +12 -12
  10. package/dist/button-layout.d.ts +1 -2
  11. package/dist/button.css-mistica.js +22 -22
  12. package/dist/button.d.ts +1 -1
  13. package/dist/button.js +93 -90
  14. package/dist/callout.css-mistica.js +1 -1
  15. package/dist/callout.d.ts +1 -1
  16. package/dist/callout.js +13 -9
  17. package/dist/card.css-mistica.js +8 -8
  18. package/dist/card.d.ts +3 -3
  19. package/dist/card.js +71 -71
  20. package/dist/carousel.css-mistica.js +7 -7
  21. package/dist/checkbox.css-mistica.js +9 -9
  22. package/dist/chip.css-mistica.js +11 -10
  23. package/dist/chip.css.d.ts +1 -1
  24. package/dist/chip.js +21 -20
  25. package/dist/circle.css-mistica.js +1 -1
  26. package/dist/credit-card-number-field.css-mistica.js +3 -3
  27. package/dist/cvv-field.css-mistica.js +3 -3
  28. package/dist/date-time-picker.js +7 -6
  29. package/dist/dialog.css-mistica.js +7 -7
  30. package/dist/dialog.d.ts +1 -1
  31. package/dist/double-field.css-mistica.js +4 -4
  32. package/dist/double-field.d.ts +10 -10
  33. package/dist/empty-state-card.css-mistica.js +2 -2
  34. package/dist/empty-state-card.d.ts +1 -1
  35. package/dist/empty-state.css-mistica.js +2 -2
  36. package/dist/empty-state.d.ts +2 -1
  37. package/dist/feedback.css-mistica.js +5 -5
  38. package/dist/feedback.d.ts +1 -0
  39. package/dist/feedback.js +86 -87
  40. package/dist/fixed-footer-layout.css-mistica.js +5 -5
  41. package/dist/header.d.ts +2 -2
  42. package/dist/hero.css-mistica.js +5 -5
  43. package/dist/hero.d.ts +4 -4
  44. package/dist/highlighted-card.css-mistica.js +4 -4
  45. package/dist/highlighted-card.d.ts +1 -2
  46. package/dist/icon-button.css-mistica.js +1 -1
  47. package/dist/image.css-mistica.js +1 -1
  48. package/dist/image.js +16 -16
  49. package/dist/index.d.ts +7 -2
  50. package/dist/index.js +9 -1
  51. package/dist/list.css-mistica.js +9 -9
  52. package/dist/loading-bar.css-mistica.js +6 -6
  53. package/dist/logo.d.ts +34 -0
  54. package/dist/logo.js +629 -0
  55. package/dist/maybe-dismissable.css-mistica.js +4 -4
  56. package/dist/menu.css-mistica.js +1 -1
  57. package/dist/navigation-bar.css-mistica.js +16 -16
  58. package/dist/navigation-bar.d.ts +2 -6
  59. package/dist/navigation-bar.js +99 -266
  60. package/dist/navigation-breadcrumbs.css-mistica.js +1 -1
  61. package/dist/package-version.js +1 -1
  62. package/dist/password-field.css-mistica.js +2 -2
  63. package/dist/popover.css-mistica.js +10 -10
  64. package/dist/progress-bar.css-mistica.js +2 -2
  65. package/dist/radio-button.css-mistica.js +9 -9
  66. package/dist/responsive-layout.css-mistica.js +8 -5
  67. package/dist/responsive-layout.css.d.ts +4 -1
  68. package/dist/responsive-layout.d.ts +2 -0
  69. package/dist/responsive-layout.js +7 -9
  70. package/dist/screen-reader-only.css-mistica.js +1 -1
  71. package/dist/select.css-mistica.js +14 -14
  72. package/dist/skeleton-base.js +3 -3
  73. package/dist/skeletons.css-mistica.js +4 -4
  74. package/dist/skins/blau.js +7 -1
  75. package/dist/skins/defaults.d.ts +3 -0
  76. package/dist/skins/defaults.js +48 -0
  77. package/dist/skins/movistar-legacy.js +7 -1
  78. package/dist/skins/movistar.js +7 -1
  79. package/dist/skins/o2-classic.js +6 -0
  80. package/dist/skins/o2.js +9 -3
  81. package/dist/skins/skin-contract.css-mistica.js +203 -185
  82. package/dist/skins/skin-contract.css.d.ts +18 -0
  83. package/dist/skins/telefonica.js +19 -1
  84. package/dist/skins/types.d.ts +21 -0
  85. package/dist/skins/vivo.js +7 -1
  86. package/dist/snackbar.css-mistica.js +8 -8
  87. package/dist/spinner.css-mistica.js +1 -1
  88. package/dist/sprinkles.css-mistica.js +360 -312
  89. package/dist/sprinkles.css.d.ts +1 -1
  90. package/dist/stepper.css-mistica.js +9 -9
  91. package/dist/switch-component.css-mistica.js +23 -23
  92. package/dist/tabs.css-mistica.js +14 -14
  93. package/dist/tag.css-mistica.js +2 -2
  94. package/dist/tag.js +12 -12
  95. package/dist/text-field-base.css-mistica.js +10 -10
  96. package/dist/text-field-base.js +14 -14
  97. package/dist/text-field-components.css-mistica.js +10 -10
  98. package/dist/text-link.css-mistica.js +5 -5
  99. package/dist/theme-context-provider.js +38 -58
  100. package/dist/theme-variant-context.d.ts +4 -1
  101. package/dist/theme-variant-context.js +9 -8
  102. package/dist/tooltip.css-mistica.js +2 -2
  103. package/dist/touchable.css-mistica.js +1 -1
  104. package/dist/utils/aspect-ratio-support.css-mistica.js +4 -4
  105. package/dist/utils/renders-element.d.ts +1 -1
  106. package/dist/video.css-mistica.js +1 -1
  107. package/dist/video.js +16 -15
  108. package/dist-es/avatar.css-mistica.js +1 -1
  109. package/dist-es/badge.css-mistica.js +2 -2
  110. package/dist-es/boxed.js +25 -26
  111. package/dist-es/button-group.css-mistica.js +2 -2
  112. package/dist-es/button-layout.css-mistica.js +7 -7
  113. package/dist-es/button.css-mistica.js +9 -9
  114. package/dist-es/button.js +128 -125
  115. package/dist-es/callout.css-mistica.js +1 -1
  116. package/dist-es/callout.js +28 -24
  117. package/dist-es/card.css-mistica.js +2 -2
  118. package/dist-es/card.js +120 -120
  119. package/dist-es/carousel.css-mistica.js +2 -2
  120. package/dist-es/checkbox.css-mistica.js +6 -6
  121. package/dist-es/chip.css-mistica.js +9 -8
  122. package/dist-es/chip.js +37 -36
  123. package/dist-es/circle.css-mistica.js +1 -1
  124. package/dist-es/credit-card-number-field.css-mistica.js +3 -3
  125. package/dist-es/cvv-field.css-mistica.js +2 -2
  126. package/dist-es/date-time-picker.js +13 -12
  127. package/dist-es/dialog.css-mistica.js +5 -5
  128. package/dist-es/double-field.css-mistica.js +4 -4
  129. package/dist-es/empty-state-card.css-mistica.js +2 -2
  130. package/dist-es/empty-state.css-mistica.js +2 -2
  131. package/dist-es/feedback.css-mistica.js +2 -2
  132. package/dist-es/feedback.js +109 -110
  133. package/dist-es/fixed-footer-layout.css-mistica.js +3 -3
  134. package/dist-es/hero.css-mistica.js +2 -2
  135. package/dist-es/highlighted-card.css-mistica.js +4 -4
  136. package/dist-es/icon-button.css-mistica.js +1 -1
  137. package/dist-es/image.css-mistica.js +1 -1
  138. package/dist-es/image.js +18 -18
  139. package/dist-es/index.js +1698 -1697
  140. package/dist-es/list.css-mistica.js +2 -2
  141. package/dist-es/loading-bar.css-mistica.js +2 -2
  142. package/dist-es/logo.js +607 -0
  143. package/dist-es/maybe-dismissable.css-mistica.js +2 -2
  144. package/dist-es/menu.css-mistica.js +1 -1
  145. package/dist-es/navigation-bar.css-mistica.js +11 -11
  146. package/dist-es/navigation-bar.js +171 -337
  147. package/dist-es/navigation-breadcrumbs.css-mistica.js +1 -1
  148. package/dist-es/package-version.js +1 -1
  149. package/dist-es/password-field.css-mistica.js +2 -2
  150. package/dist-es/popover.css-mistica.js +2 -2
  151. package/dist-es/progress-bar.css-mistica.js +2 -2
  152. package/dist-es/radio-button.css-mistica.js +6 -6
  153. package/dist-es/responsive-layout.css-mistica.js +5 -2
  154. package/dist-es/responsive-layout.js +16 -18
  155. package/dist-es/screen-reader-only.css-mistica.js +1 -1
  156. package/dist-es/select.css-mistica.js +11 -11
  157. package/dist-es/skeleton-base.js +7 -7
  158. package/dist-es/skeletons.css-mistica.js +2 -2
  159. package/dist-es/skins/blau.js +7 -1
  160. package/dist-es/skins/defaults.js +35 -0
  161. package/dist-es/skins/movistar-legacy.js +7 -1
  162. package/dist-es/skins/movistar.js +7 -1
  163. package/dist-es/skins/o2-classic.js +6 -0
  164. package/dist-es/skins/o2.js +9 -3
  165. package/dist-es/skins/skin-contract.css-mistica.js +203 -185
  166. package/dist-es/skins/telefonica.js +19 -1
  167. package/dist-es/skins/vivo.js +7 -1
  168. package/dist-es/snackbar.css-mistica.js +2 -2
  169. package/dist-es/spinner.css-mistica.js +1 -1
  170. package/dist-es/sprinkles.css-mistica.js +360 -312
  171. package/dist-es/stepper.css-mistica.js +2 -2
  172. package/dist-es/style.css +1 -1
  173. package/dist-es/switch-component.css-mistica.js +19 -19
  174. package/dist-es/tabs.css-mistica.js +10 -10
  175. package/dist-es/tag.css-mistica.js +2 -2
  176. package/dist-es/tag.js +27 -27
  177. package/dist-es/text-field-base.css-mistica.js +2 -2
  178. package/dist-es/text-field-base.js +20 -20
  179. package/dist-es/text-field-components.css-mistica.js +2 -2
  180. package/dist-es/text-link.css-mistica.js +5 -5
  181. package/dist-es/theme-context-provider.js +72 -92
  182. package/dist-es/theme-variant-context.js +9 -9
  183. package/dist-es/tooltip.css-mistica.js +2 -2
  184. package/dist-es/touchable.css-mistica.js +1 -1
  185. package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
  186. package/dist-es/video.css-mistica.js +1 -1
  187. package/dist-es/video.js +17 -16
  188. package/package.json +4 -4
@@ -1,8 +1,8 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
2
  import "./text-link.css.ts.vanilla.js";
3
- var v = {
4
- default: "_1m1n0pr1 _1y2v1nf7q _1y2v1nf5l _1y2v1nf9n _1y2v1nf1z",
5
- inverseLight: "_1m1n0pr6 _1m1n0pr1 _1y2v1nf7q _1y2v1nf5l _1y2v1nf9n _1y2v1nf20",
6
- inverseDark: "_1m1n0pr7 _1m1n0pr1 _1y2v1nf7q _1y2v1nf5l _1y2v1nf9n _1y2v1nf1z"
3
+ var r = {
4
+ default: "_1m1n0pr1 _1y2v1nf7w _1y2v1nf5r _1y2v1nfa3 _1y2v1nf22",
5
+ inverseLight: "_1m1n0pr6 _1m1n0pr1 _1y2v1nf7w _1y2v1nf5r _1y2v1nfa3 _1y2v1nf23",
6
+ inverseDark: "_1m1n0pr7 _1m1n0pr1 _1y2v1nf7w _1y2v1nf5r _1y2v1nfa3 _1y2v1nf22"
7
7
  };
8
- export { v as variants };
8
+ export { r as variants };
@@ -26,127 +26,107 @@ function _objectSpread(target) {
26
26
  }
27
27
  return target;
28
28
  }
29
- import * as a from "react";
30
- import { assignInlineVars as A } from "@vanilla-extract/dynamic";
31
- import H from "./dialog.js";
32
- import S from "./screen-size-context-provider.js";
33
- import y from "./aria-id-getter-context.js";
34
- import { getTexts as N, dimensions as O, AnchorLink as L, NAVBAR_HEIGHT_MOBILE as R } from "./theme.js";
35
- import { getPlatform as T, isInsideNovumNativeApp as F } from "./utils/platform.js";
36
- import V from "./theme-context.js";
37
- import { useIsomorphicLayoutEffect as $ } from "./hooks.js";
38
- import j from "./tab-focus.js";
39
- import _ from "./modal-context-provider.js";
29
+ import * as n from "react";
30
+ import { assignInlineVars as S } from "@vanilla-extract/dynamic";
31
+ import h from "./dialog.js";
32
+ import y from "./screen-size-context-provider.js";
33
+ import N from "./aria-id-getter-context.js";
34
+ import { getTexts as O, dimensions as L, AnchorLink as w, NAVBAR_HEIGHT_MOBILE as F } from "./theme.js";
35
+ import { getPlatform as D, isInsideNovumNativeApp as V } from "./utils/platform.js";
36
+ import $ from "./theme-context.js";
37
+ import { useIsomorphicLayoutEffect as j } from "./hooks.js";
38
+ import _ from "./tab-focus.js";
39
+ import B from "./modal-context-provider.js";
40
40
  import { DocumentVisibilityProvider as z } from "./utils/document-visibility.js";
41
- import { AspectRatioSupportProvider as B } from "./utils/aspect-ratio-support.js";
42
- import { TrackingConfig as G } from "./utils/analytics.js";
43
- import { vars as q } from "./skins/skin-contract.css-mistica.js";
44
- import { fromHexToRgb as W } from "./utils/color.js";
45
- import { jsx as e, jsxs as J, Fragment as K } from "./_virtual/jsx-runtime.js";
46
- const Q = "(prefers-color-scheme: dark)", U = ()=>{
47
- const [t, c] = a.useState(!1);
48
- return $(()=>{
41
+ import { AspectRatioSupportProvider as G } from "./utils/aspect-ratio-support.js";
42
+ import { TrackingConfig as q } from "./utils/analytics.js";
43
+ import { vars as W } from "./skins/skin-contract.css-mistica.js";
44
+ import { fromHexToRgb as J } from "./utils/color.js";
45
+ import { defaultTextPresetsConfig as e, defaultBorderRadiiConfig as K } from "./skins/defaults.js";
46
+ import { jsx as r, jsxs as Q, Fragment as U } from "./_virtual/jsx-runtime.js";
47
+ const X = "(prefers-color-scheme: dark)", Y = ()=>{
48
+ const [t, c] = n.useState(!1);
49
+ return j(()=>{
49
50
  if (!window.matchMedia) return;
50
- const o = window.matchMedia(Q), i = ()=>{
51
+ const o = window.matchMedia(X), s = ()=>{
51
52
  c(o.matches);
52
53
  };
53
- return o.addListener(i), i(), ()=>o.removeListener(i);
54
+ return o.addListener(s), s(), ()=>o.removeListener(s);
54
55
  }, []), t;
55
- }, X = ()=>(t)=>t, r = {
56
- text5: {
57
- weight: "light"
58
- },
59
- text6: {
60
- weight: "light"
61
- },
62
- text7: {
63
- weight: "light"
64
- },
65
- text8: {
66
- weight: "light"
67
- },
68
- text9: {
69
- weight: "light"
70
- },
71
- text10: {
72
- weight: "light"
73
- },
74
- cardTitle: {
75
- weight: "regular"
76
- }
77
- }, Y = (t)=>({
78
- headerMobileHeight: (t == null ? void 0 : t.headerMobileHeight) === "mistica" ? R : t == null ? void 0 : t.headerMobileHeight
79
- }), pt = (param)=>{
56
+ }, Z = ()=>(t)=>t, tt = (t)=>({
57
+ headerMobileHeight: (t == null ? void 0 : t.headerMobileHeight) === "mistica" ? F : t == null ? void 0 : t.headerMobileHeight
58
+ }), bt = (param)=>{
80
59
  let { theme: t , children: c , as: o } = param;
81
- var v;
82
- const i = a.useRef(1), D = a.useCallback(()=>`aria-id-hook-${i.current++}`, []), w = U(), u = (v = t.colorScheme) != null ? v : "auto", C = t.skin.colors, I = _objectSpread({}, t.skin.colors, t.skin.darkModeColors), f = u === "auto" && w || u === "dark", p = f ? I : C, g = a.useMemo(()=>{
83
- var s, n, d, x, m, h, P, M, b;
60
+ var b, P;
61
+ const s = n.useRef(1), I = n.useCallback(()=>`aria-id-hook-${s.current++}`, []), E = Y(), u = (b = t.colorScheme) != null ? b : "auto", R = t.skin.colors, A = _objectSpread({}, t.skin.colors, t.skin.darkModeColors), x = u === "auto" && E || u === "dark", p = x ? A : R, k = n.useMemo(()=>{
62
+ var i, a, d, f, m, g, M, T, C;
84
63
  const l = _objectSpread({
85
- platform: T(),
86
- insideNovumNativeApp: F()
64
+ platform: D(),
65
+ insideNovumNativeApp: V()
87
66
  }, t.platformOverrides);
88
67
  return {
89
68
  skinName: t.skin.name,
90
69
  i18n: t.i18n,
91
70
  platformOverrides: l,
92
- texts: _objectSpread({}, N(t.i18n.locale), t.texts),
71
+ texts: _objectSpread({}, O(t.i18n.locale), t.texts),
93
72
  analytics: _objectSpread({
94
73
  logEvent: ()=>Promise.resolve(),
95
74
  eventFormat: "universal-analytics"
96
75
  }, t.analytics),
97
- dimensions: _objectSpread({}, O, Y(t.dimensions)),
76
+ dimensions: _objectSpread({}, L, tt(t.dimensions)),
98
77
  textPresets: {
99
- text5: _objectSpread({}, r.text5, (s = t.skin.textPresets) == null ? void 0 : s.text5),
100
- text6: _objectSpread({}, r.text6, (n = t.skin.textPresets) == null ? void 0 : n.text6),
101
- text7: _objectSpread({}, r.text7, (d = t.skin.textPresets) == null ? void 0 : d.text7),
102
- text8: _objectSpread({}, r.text8, (x = t.skin.textPresets) == null ? void 0 : x.text8),
103
- text9: _objectSpread({}, r.text9, (m = t.skin.textPresets) == null ? void 0 : m.text9),
104
- text10: _objectSpread({}, r.text10, (h = t.skin.textPresets) == null ? void 0 : h.text10),
105
- cardTitle: _objectSpread({}, r.cardTitle, (P = t.skin.textPresets) == null ? void 0 : P.cardTitle)
78
+ text5: _objectSpread({}, e.text5, (i = t.skin.textPresets) == null ? void 0 : i.text5),
79
+ text6: _objectSpread({}, e.text6, (a = t.skin.textPresets) == null ? void 0 : a.text6),
80
+ text7: _objectSpread({}, e.text7, (d = t.skin.textPresets) == null ? void 0 : d.text7),
81
+ text8: _objectSpread({}, e.text8, (f = t.skin.textPresets) == null ? void 0 : f.text8),
82
+ text9: _objectSpread({}, e.text9, (m = t.skin.textPresets) == null ? void 0 : m.text9),
83
+ text10: _objectSpread({}, e.text10, (g = t.skin.textPresets) == null ? void 0 : g.text10),
84
+ cardTitle: _objectSpread({}, e.cardTitle, (M = t.skin.textPresets) == null ? void 0 : M.cardTitle)
106
85
  },
107
- Link: (M = t.Link) != null ? M : L,
108
- isDarkMode: f,
109
- isIos: T(l) === "ios",
110
- useHrefDecorator: (b = t.useHrefDecorator) != null ? b : X,
86
+ Link: (T = t.Link) != null ? T : w,
87
+ isDarkMode: x,
88
+ isIos: D(l) === "ios",
89
+ useHrefDecorator: (C = t.useHrefDecorator) != null ? C : Z,
111
90
  useId: t.useId
112
91
  };
113
92
  }, [
114
93
  t,
115
- f
116
- ]), E = Object.fromEntries(Object.entries(p).map((param)=>{
117
- let [l, s] = param;
118
- let n = "";
119
- if (s.startsWith("#")) {
120
- const [d, x, m] = W(s);
121
- n = `${d}, ${x}, ${m}`;
94
+ x
95
+ ]), H = Object.fromEntries(Object.entries(p).map((param)=>{
96
+ let [l, i] = param;
97
+ let a = "";
98
+ if (i.startsWith("#")) {
99
+ const [d, f, m] = J(i);
100
+ a = `${d}, ${f}, ${m}`;
122
101
  }
123
102
  return [
124
103
  l,
125
- n
104
+ a
126
105
  ];
127
- })), k = A(q, {
106
+ })), v = S(W, {
128
107
  colors: p,
129
- rawColors: E
108
+ rawColors: H,
109
+ borderRadii: (P = t.skin.borderRadii) != null ? P : K
130
110
  });
131
- return /* @__PURE__ */ e(j, {
111
+ return /* @__PURE__ */ r(_, {
132
112
  disabled: !t.enableTabFocus,
133
- children: /* @__PURE__ */ e(_, {
134
- children: /* @__PURE__ */ e(V.Provider, {
135
- value: g,
136
- children: /* @__PURE__ */ e(G, {
137
- eventFormat: g.analytics.eventFormat,
138
- children: /* @__PURE__ */ e(B, {
139
- children: /* @__PURE__ */ e(z, {
140
- children: /* @__PURE__ */ e(y.Provider, {
141
- value: D,
142
- children: /* @__PURE__ */ e(S, {
143
- children: /* @__PURE__ */ e(H, {
144
- children: o ? /*#__PURE__*/ a.createElement(o, {
145
- style: k
146
- }, c) : /* @__PURE__ */ J(K, {
113
+ children: /* @__PURE__ */ r(B, {
114
+ children: /* @__PURE__ */ r($.Provider, {
115
+ value: k,
116
+ children: /* @__PURE__ */ r(q, {
117
+ eventFormat: k.analytics.eventFormat,
118
+ children: /* @__PURE__ */ r(G, {
119
+ children: /* @__PURE__ */ r(z, {
120
+ children: /* @__PURE__ */ r(N.Provider, {
121
+ value: I,
122
+ children: /* @__PURE__ */ r(y, {
123
+ children: /* @__PURE__ */ r(h, {
124
+ children: o ? /*#__PURE__*/ n.createElement(o, {
125
+ style: v
126
+ }, c) : /* @__PURE__ */ Q(U, {
147
127
  children: [
148
- (process.env.NODE_ENV !== "test" || process.env.SSR_TEST) && /* @__PURE__ */ e("style", {
149
- children: `:root {${k}}`
128
+ (process.env.NODE_ENV !== "test" || process.env.SSR_TEST) && /* @__PURE__ */ r("style", {
129
+ children: `:root {${v}}`
150
130
  }),
151
131
  c
152
132
  ]
@@ -161,4 +141,4 @@ const Q = "(prefers-color-scheme: dark)", U = ()=>{
161
141
  })
162
142
  });
163
143
  };
164
- export { pt as default, U as useIsOsDarkModeEnabled };
144
+ export { bt as default, Y as useIsOsDarkModeEnabled };
@@ -1,10 +1,10 @@
1
- import * as e from "react";
2
- import { jsx as a } from "./_virtual/jsx-runtime.js";
3
- const t = /*#__PURE__*/ e.createContext(!1), n = (param)=>/* @__PURE__ */ {
4
- let { isInverse: r , children: s } = param;
5
- return a(t.Provider, {
6
- value: !!r,
7
- children: s
1
+ import * as t from "react";
2
+ import { jsx as n } from "./_virtual/jsx-runtime.js";
3
+ const o = /*#__PURE__*/ t.createContext("default"), c = (param)=>/* @__PURE__ */ {
4
+ let { isInverse: s , variant: e , children: r } = param;
5
+ return n(o.Provider, {
6
+ value: e != null ? e : s ? "inverse" : "default",
7
+ children: r
8
8
  });
9
- }, i = ()=>e.useContext(t);
10
- export { n as ThemeVariant, i as useIsInverseVariant };
9
+ }, m = ()=>t.useContext(o), u = ()=>m() === "inverse";
10
+ export { c as ThemeVariant, u as useIsInverseVariant, m as useThemeVariant };
@@ -1,11 +1,11 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
2
  import "./tooltip.css.ts.vanilla.js";
3
- var v = "_1xhatbpb _1y2v1nf5e _1y2v1nf9q _1y2v1nf7v _1y2v1nf8a _1y2v1nf9i _1y2v1nf2q _1y2v1nf9f", t = "_1xhatbpe", _ = "_1xhatbpf", n = "_1xhatbpd", e = "_1xhatbpc", f = "_1y2v1nf5e _1y2v1nf7x _1y2v1nf8a _1y2v1nf9o _1y2v1nf2", p = "_1xhatbpj _1y2v1nf68 _1y2v1nf6m _1y2v1nf70 _1y2v1nf7e _1y2v1nf5e _1y2v1nfa9 _1y2v1nf7q _1y2v1nf9k _1y2v1nf9f", o = "_1xhatbpk", x = "_1xhatbpl", y = "_1xhatbpm", h = "_1xhatbpn", b = "_1xhatbpo", m = "_1xhatbp6", i = "_1xhatbp7", w = "_1xhatbp8", s = {
3
+ var v = "_1xhatbpb _1y2v1nf5k _1y2v1nfa6 _1y2v1nf81 _1y2v1nf8g _1y2v1nf9o _1y2v1nf2t _1y2v1nf9l", t = "_1xhatbpe", _ = "_1xhatbpf", n = "_1xhatbpd", e = "_1xhatbpc", f = "_1y2v1nf5k _1y2v1nf83 _1y2v1nf8g _1y2v1nfa4 _1y2v1nf2", p = "_1xhatbpj _1y2v1nf6e _1y2v1nf6s _1y2v1nf76 _1y2v1nf7k _1y2v1nf5k _1y2v1nfap _1y2v1nf7w _1y2v1nf9x _1y2v1nf9l", 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 = "_1y2v1nf5m";
10
+ }, d = "_1y2v1nf5s";
11
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, d as wrapper };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
2
  import "./touchable.css.ts.vanilla.js";
3
- var f = "mhti6u1 _1y2v1nf9n", y = "mhti6u4", _ = "mhti6u1 _1y2v1nf9n _1y2v1nf65 _1y2v1nf6j _1y2v1nf6x _1y2v1nf7b _1y2v1nf5k _1y2v1nf9g _1y2v1nf7p _1y2v1nf2n _1y2v1nf5c _1y2v1nf9p";
3
+ var f = "mhti6u1 _1y2v1nfa3", y = "mhti6u4", _ = "mhti6u1 _1y2v1nfa3 _1y2v1nf6b _1y2v1nf6p _1y2v1nf73 _1y2v1nf7h _1y2v1nf5q _1y2v1nf9m _1y2v1nf7v _1y2v1nf2q _1y2v1nf5i _1y2v1nfa5";
4
4
  export { f as base, y as notTouchable, _ as touchable };
@@ -1,6 +1,6 @@
1
1
  import "../sprinkles.css.ts.vanilla.js";
2
2
  import "./aspect-ratio-support.css.ts.vanilla.js";
3
- var a = "yqswj62", n = "_1y2v1nf7p _1y2v1nf85 _1y2v1nf9q _1y2v1nfa4", y = {
3
+ var v = "yqswj62", n = "_1y2v1nf7v _1y2v1nf8b _1y2v1nfa6 _1y2v1nfak", y = {
4
4
  aspectRatio: "var(--yqswj60)"
5
- }, p = "_1y2v1nf9o _1y2v1nf9d _1y2v1nf9e _1y2v1nf5d";
6
- export { a as container, n as containerWithWrapper, y as vars, p as wrapper };
5
+ }, f = "_1y2v1nfa4 _1y2v1nf9j _1y2v1nf9k _1y2v1nf5j";
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.js";
2
- var f = "_1y2v1nf5k _1y2v1nf7p _1y2v1nf85 _1y2v1nf5c _1y2v1nf9d _1y2v1nf9e _1y2v1nfba";
2
+ var f = "_1y2v1nf5q _1y2v1nf7v _1y2v1nf8b _1y2v1nf5i _1y2v1nf9j _1y2v1nf9k _1y2v1nfbq";
3
3
  export { f as video };
package/dist-es/video.js CHANGED
@@ -77,20 +77,21 @@ function _objectWithoutPropertiesLoose(source, excluded) {
77
77
  }
78
78
  return target;
79
79
  }
80
- import * as s from "react";
80
+ import * as n from "react";
81
81
  import { useMediaBorderRadius as v } from "./image.js";
82
82
  import { AspectRatioElement as E } from "./utils/aspect-ratio-support.js";
83
83
  import { combineRefs as y } from "./utils/common.js";
84
84
  import { getPrefixedDataAttributes as S } from "./utils/dom.js";
85
85
  import { isSafari as I, isRunningAcceptanceTest as k } from "./utils/platform.js";
86
86
  import { video as w } from "./video.css-mistica.js";
87
+ import { vars as C } from "./skins/skin-contract.css-mistica.js";
87
88
  import { jsx as r } from "./_virtual/jsx-runtime.js";
88
- const C = {
89
+ const F = {
89
90
  "1:1": 1,
90
91
  "16:9": 16 / 9,
91
92
  "4:3": 4 / 3
92
- }, F = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAAtJREFUGFdjYAACAAAFAAGq1chRAAAAAElFTkSuQmCC", j = /*#__PURE__*/ s.forwardRef((_param, l)=>{
93
- var { src: t , poster: i , autoPlay: o = !k() , muted: c = !0 , loop: m = !0 , preload: u = "none" , aspectRatio: A = "1:1" , dataAttributes: f } = _param, n = _objectWithoutProperties(_param, [
93
+ }, N = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAAtJREFUGFdjYAACAAAFAAGq1chRAAAAAElFTkSuQmCC", O = /*#__PURE__*/ n.forwardRef((_param, R)=>{
94
+ var { src: t , poster: i , autoPlay: o = !k() , muted: c = !0 , loop: m = !0 , preload: u = "none" , aspectRatio: A = "1:1" , dataAttributes: f } = _param, s = _objectWithoutProperties(_param, [
94
95
  "src",
95
96
  "poster",
96
97
  "autoPlay",
@@ -100,9 +101,9 @@ const C = {
100
101
  "aspectRatio",
101
102
  "dataAttributes"
102
103
  ]);
103
- const R = v(), p = typeof A == "number" ? A : C[A], d = s.useRef(null);
104
- s.useEffect(()=>{
105
- const e = d.current;
104
+ const l = v(), p = typeof A == "number" ? A : F[A], a = n.useRef(null);
105
+ n.useEffect(()=>{
106
+ const e = a.current;
106
107
  e && o && e.paused && e.play();
107
108
  }, [
108
109
  o
@@ -111,8 +112,8 @@ const C = {
111
112
  t
112
113
  ]).map((e)=>typeof e == "string" ? {
113
114
  src: e
114
- } : e), a = /* @__PURE__ */ r("video", _objectSpreadProps(_objectSpread({
115
- ref: y(l, d),
115
+ } : e), d = /* @__PURE__ */ r("video", _objectSpreadProps(_objectSpread({
116
+ ref: y(R, a),
116
117
  playsInline: !0,
117
118
  disablePictureInPicture: !0,
118
119
  disableRemotePlayback: !0,
@@ -121,10 +122,10 @@ const C = {
121
122
  loop: m,
122
123
  className: w,
123
124
  preload: u,
124
- poster: i || F
125
+ poster: i || N
125
126
  }, S(f)), {
126
127
  style: {
127
- borderRadius: R ? 8 : 0
128
+ borderRadius: l ? C.borderRadii.container : 0
128
129
  },
129
130
  children: g.map((param, b)=>/* @__PURE__ */ {
130
131
  let { src: e , type: h } = param;
@@ -136,8 +137,8 @@ const C = {
136
137
  }));
137
138
  return /* @__PURE__ */ r(E, {
138
139
  aspectRatio: p,
139
- width: n.width,
140
- height: n.height,
140
+ width: s.width,
141
+ height: s.height,
141
142
  children: I() ? /* @__PURE__ */ r("div", {
142
143
  style: {
143
144
  width: "100%",
@@ -146,8 +147,8 @@ const C = {
146
147
  backgroundSize: "cover",
147
148
  backgroundPosition: "50% 50%"
148
149
  },
149
- children: a
150
- }) : a
150
+ children: d
151
+ }) : d
151
152
  });
152
153
  });
153
- export { C as RATIO, j as default };
154
+ export { F as RATIO, O as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telefonica/mistica",
3
- "version": "14.6.0",
3
+ "version": "14.7.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -58,7 +58,7 @@
58
58
  }
59
59
  },
60
60
  "devDependencies": {
61
- "@actions/core": "^1.6.0",
61
+ "@actions/core": "^1.10.0",
62
62
  "@actions/github": "^5.0.0",
63
63
  "@axe-core/puppeteer": "^4.4.2",
64
64
  "@azure/storage-blob": "^12.9.0",
@@ -81,7 +81,7 @@
81
81
  "@swc/core": "^1.3.11",
82
82
  "@swc/jest": "^0.2.23",
83
83
  "@telefonica/acceptance-testing": "2.13.0",
84
- "@telefonica/eslint-config": "^1.0.7",
84
+ "@telefonica/eslint-config": "^1.3.0",
85
85
  "@telefonica/prettier-config": "^1.1.0",
86
86
  "@testing-library/jest-dom": "^5.16.5",
87
87
  "@testing-library/react": "^13.4.0",
@@ -132,7 +132,7 @@
132
132
  "react-router-dom": "^6.6.2",
133
133
  "rimraf": "3.0.2",
134
134
  "semantic-release": "^19.0.2",
135
- "static-server": "^2.2.1",
135
+ "serve-handler": "^6.1.5",
136
136
  "swc-loader": "^0.1.15",
137
137
  "typescript": "^4.6.3",
138
138
  "vite": "^3.1.8",