@telefonica/mistica 15.0.0 → 15.1.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 (213) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/accordion.css-mistica.js +5 -5
  3. package/dist/accordion.d.ts +1 -0
  4. package/dist/avatar.css-mistica.js +3 -3
  5. package/dist/badge.css-mistica.js +6 -6
  6. package/dist/boxed.css-mistica.js +3 -3
  7. package/dist/button-group.css-mistica.js +1 -1
  8. package/dist/button-layout.css-mistica.js +9 -9
  9. package/dist/button.css-mistica.js +27 -27
  10. package/dist/button.d.ts +12 -0
  11. package/dist/button.js +67 -62
  12. package/dist/callout.css-mistica.js +2 -2
  13. package/dist/callout.d.ts +1 -0
  14. package/dist/callout.js +11 -11
  15. package/dist/card.css-mistica.js +13 -13
  16. package/dist/card.d.ts +6 -0
  17. package/dist/card.js +301 -293
  18. package/dist/carousel.css-mistica.js +19 -19
  19. package/dist/checkbox.css-mistica.js +9 -9
  20. package/dist/chip.css-mistica.js +10 -10
  21. package/dist/circle.css-mistica.js +2 -2
  22. package/dist/community/advanced-data-card.css-mistica.js +12 -12
  23. package/dist/community/blocks.css-mistica.js +1 -1
  24. package/dist/counter.css-mistica.js +4 -4
  25. package/dist/credit-card-number-field.css-mistica.js +5 -5
  26. package/dist/dialog.css-mistica.js +6 -6
  27. package/dist/double-field.css-mistica.js +2 -2
  28. package/dist/empty-state-card.css-mistica.js +3 -3
  29. package/dist/empty-state-card.d.ts +1 -0
  30. package/dist/empty-state-card.js +10 -9
  31. package/dist/empty-state.css-mistica.js +4 -4
  32. package/dist/empty-state.d.ts +1 -0
  33. package/dist/empty-state.js +14 -14
  34. package/dist/feedback.css-mistica.js +5 -5
  35. package/dist/fixed-footer-layout.css-mistica.js +2 -2
  36. package/dist/header.css-mistica.js +1 -1
  37. package/dist/header.d.ts +2 -0
  38. package/dist/header.js +46 -47
  39. package/dist/hero.css-mistica.js +2 -2
  40. package/dist/hero.d.ts +1 -0
  41. package/dist/hero.js +29 -29
  42. package/dist/highlighted-card.css-mistica.js +7 -7
  43. package/dist/highlighted-card.d.ts +1 -2
  44. package/dist/highlighted-card.js +9 -9
  45. package/dist/horizontal-scroll.css-mistica.js +1 -1
  46. package/dist/icon-button.css-mistica.js +14 -17
  47. package/dist/icon-button.css.d.ts +1 -1
  48. package/dist/icon-button.d.ts +0 -13
  49. package/dist/icon-button.js +84 -87
  50. package/dist/image.css-mistica.js +3 -3
  51. package/dist/index.d.ts +4 -2
  52. package/dist/index.js +13 -0
  53. package/dist/inline.js +8 -7
  54. package/dist/list.css-mistica.js +12 -12
  55. package/dist/list.d.ts +1 -0
  56. package/dist/list.js +143 -138
  57. package/dist/loading-bar.css-mistica.js +4 -4
  58. package/dist/loading-screen.css-mistica.js +3 -3
  59. package/dist/logo.d.ts +1 -0
  60. package/dist/logo.js +155 -136
  61. package/dist/maybe-dismissable.css-mistica.js +1 -1
  62. package/dist/maybe-dismissable.js +3 -4
  63. package/dist/menu.css-mistica.js +1 -1
  64. package/dist/navigation-bar.css-mistica.js +22 -22
  65. package/dist/navigation-bar.d.ts +2 -1
  66. package/dist/navigation-bar.js +53 -52
  67. package/dist/navigation-breadcrumbs.css-mistica.js +3 -3
  68. package/dist/package-version.js +1 -1
  69. package/dist/pin-field.css-mistica.js +4 -4
  70. package/dist/progress-bar.css-mistica.js +3 -3
  71. package/dist/radio-button.css-mistica.js +8 -8
  72. package/dist/responsive-layout.css-mistica.js +5 -5
  73. package/dist/screen-reader-only.css-mistica.js +1 -1
  74. package/dist/select.css-mistica.js +10 -10
  75. package/dist/sheet.css-mistica.js +8 -8
  76. package/dist/skeletons.css-mistica.js +5 -5
  77. package/dist/skins/blau.js +4 -2
  78. package/dist/skins/constants.d.ts +1 -0
  79. package/dist/skins/constants.js +6 -3
  80. package/dist/skins/movistar.d.ts +1 -0
  81. package/dist/skins/movistar.js +5 -2
  82. package/dist/skins/o2-new.d.ts +50 -0
  83. package/dist/skins/o2-new.js +397 -0
  84. package/dist/skins/o2.d.ts +1 -0
  85. package/dist/skins/o2.js +5 -2
  86. package/dist/skins/skin-contract.css-mistica.js +138 -136
  87. package/dist/skins/skin-contract.css.d.ts +2 -0
  88. package/dist/skins/telefonica.d.ts +1 -0
  89. package/dist/skins/telefonica.js +5 -2
  90. package/dist/skins/tu.d.ts +1 -0
  91. package/dist/skins/tu.js +5 -2
  92. package/dist/skins/types/colors.d.ts +1 -0
  93. package/dist/skins/types/index.d.ts +1 -1
  94. package/dist/skins/utils.js +7 -4
  95. package/dist/skins/vivo-new.js +4 -2
  96. package/dist/skins/vivo.js +4 -2
  97. package/dist/slider.css-mistica.js +7 -7
  98. package/dist/snackbar.css-mistica.js +12 -12
  99. package/dist/spinner.css-mistica.js +5 -5
  100. package/dist/sprinkles.css-mistica.js +792 -786
  101. package/dist/stacking-group.css-mistica.js +2 -2
  102. package/dist/stepper.css-mistica.js +9 -9
  103. package/dist/switch-component.css-mistica.js +26 -23
  104. package/dist/switch-component.css.d.ts +1 -0
  105. package/dist/switch-component.js +11 -10
  106. package/dist/tabs.css-mistica.js +9 -9
  107. package/dist/tag.css-mistica.js +1 -1
  108. package/dist/text-field-base.css-mistica.js +5 -5
  109. package/dist/text-field-components.css-mistica.js +11 -11
  110. package/dist/text-link.css-mistica.js +3 -3
  111. package/dist/text-link.d.ts +5 -0
  112. package/dist/tooltip.css-mistica.js +2 -2
  113. package/dist/tooltip.js +0 -1
  114. package/dist/touchable.css-mistica.js +5 -5
  115. package/dist/touchable.d.ts +33 -19
  116. package/dist/touchable.js +54 -51
  117. package/dist/utils/aspect-ratio-support.css-mistica.js +5 -5
  118. package/dist/utils/browser.d.ts +1 -0
  119. package/dist/utils/browser.js +14 -0
  120. package/dist/video.css-mistica.js +1 -1
  121. package/dist-es/accordion.css-mistica.js +3 -3
  122. package/dist-es/avatar.css-mistica.js +2 -2
  123. package/dist-es/badge.css-mistica.js +2 -2
  124. package/dist-es/boxed.css-mistica.js +2 -2
  125. package/dist-es/button-group.css-mistica.js +1 -1
  126. package/dist-es/button-layout.css-mistica.js +6 -6
  127. package/dist-es/button.css-mistica.js +16 -16
  128. package/dist-es/button.js +88 -83
  129. package/dist-es/callout.css-mistica.js +2 -2
  130. package/dist-es/callout.js +37 -37
  131. package/dist-es/card.css-mistica.js +2 -2
  132. package/dist-es/card.js +442 -434
  133. package/dist-es/carousel.css-mistica.js +2 -2
  134. package/dist-es/checkbox.css-mistica.js +6 -6
  135. package/dist-es/chip.css-mistica.js +7 -7
  136. package/dist-es/circle.css-mistica.js +2 -2
  137. package/dist-es/community/advanced-data-card.css-mistica.js +3 -3
  138. package/dist-es/community/blocks.css-mistica.js +1 -1
  139. package/dist-es/counter.css-mistica.js +2 -2
  140. package/dist-es/credit-card-number-field.css-mistica.js +4 -4
  141. package/dist-es/dialog.css-mistica.js +5 -5
  142. package/dist-es/double-field.css-mistica.js +2 -2
  143. package/dist-es/empty-state-card.css-mistica.js +2 -2
  144. package/dist-es/empty-state-card.js +30 -29
  145. package/dist-es/empty-state.css-mistica.js +3 -3
  146. package/dist-es/empty-state.js +34 -34
  147. package/dist-es/feedback.css-mistica.js +2 -2
  148. package/dist-es/fixed-footer-layout.css-mistica.js +2 -2
  149. package/dist-es/header.css-mistica.js +1 -1
  150. package/dist-es/header.js +69 -70
  151. package/dist-es/hero.css-mistica.js +2 -2
  152. package/dist-es/hero.js +56 -56
  153. package/dist-es/highlighted-card.css-mistica.js +5 -5
  154. package/dist-es/highlighted-card.js +26 -26
  155. package/dist-es/horizontal-scroll.css-mistica.js +1 -1
  156. package/dist-es/icon-button.css-mistica.js +9 -12
  157. package/dist-es/icon-button.js +94 -97
  158. package/dist-es/image.css-mistica.js +2 -2
  159. package/dist-es/index.js +1765 -1764
  160. package/dist-es/inline.js +13 -12
  161. package/dist-es/list.css-mistica.js +2 -2
  162. package/dist-es/list.js +184 -179
  163. package/dist-es/loading-bar.css-mistica.js +2 -2
  164. package/dist-es/loading-screen.css-mistica.js +2 -2
  165. package/dist-es/logo.js +172 -156
  166. package/dist-es/maybe-dismissable.css-mistica.js +1 -1
  167. package/dist-es/maybe-dismissable.js +7 -8
  168. package/dist-es/menu.css-mistica.js +1 -1
  169. package/dist-es/navigation-bar.css-mistica.js +9 -9
  170. package/dist-es/navigation-bar.js +72 -71
  171. package/dist-es/navigation-breadcrumbs.css-mistica.js +2 -2
  172. package/dist-es/package-version.js +1 -1
  173. package/dist-es/pin-field.css-mistica.js +2 -2
  174. package/dist-es/progress-bar.css-mistica.js +2 -2
  175. package/dist-es/radio-button.css-mistica.js +5 -5
  176. package/dist-es/responsive-layout.css-mistica.js +4 -4
  177. package/dist-es/screen-reader-only.css-mistica.js +1 -1
  178. package/dist-es/select.css-mistica.js +9 -9
  179. package/dist-es/sheet.css-mistica.js +2 -2
  180. package/dist-es/skeletons.css-mistica.js +2 -2
  181. package/dist-es/skins/blau.js +4 -2
  182. package/dist-es/skins/constants.js +2 -2
  183. package/dist-es/skins/movistar.js +7 -4
  184. package/dist-es/skins/o2-new.js +380 -0
  185. package/dist-es/skins/o2.js +5 -2
  186. package/dist-es/skins/skin-contract.css-mistica.js +138 -136
  187. package/dist-es/skins/telefonica.js +5 -2
  188. package/dist-es/skins/tu.js +5 -2
  189. package/dist-es/skins/utils.js +20 -17
  190. package/dist-es/skins/vivo-new.js +4 -2
  191. package/dist-es/skins/vivo.js +4 -2
  192. package/dist-es/slider.css-mistica.js +2 -2
  193. package/dist-es/snackbar.css-mistica.js +5 -5
  194. package/dist-es/spinner.css-mistica.js +2 -2
  195. package/dist-es/sprinkles.css-mistica.js +792 -786
  196. package/dist-es/stacking-group.css-mistica.js +2 -2
  197. package/dist-es/stepper.css-mistica.js +2 -2
  198. package/dist-es/style.css +1 -1
  199. package/dist-es/switch-component.css-mistica.js +19 -19
  200. package/dist-es/switch-component.js +24 -23
  201. package/dist-es/tabs.css-mistica.js +6 -6
  202. package/dist-es/tag.css-mistica.js +1 -1
  203. package/dist-es/text-field-base.css-mistica.js +2 -2
  204. package/dist-es/text-field-components.css-mistica.js +2 -2
  205. package/dist-es/text-link.css-mistica.js +3 -3
  206. package/dist-es/tooltip.css-mistica.js +2 -2
  207. package/dist-es/tooltip.js +0 -1
  208. package/dist-es/touchable.css-mistica.js +2 -2
  209. package/dist-es/touchable.js +68 -65
  210. package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
  211. package/dist-es/utils/browser.js +5 -0
  212. package/dist-es/video.css-mistica.js +1 -1
  213. package/package.json +2 -2
@@ -51,43 +51,43 @@ function _object_spread_props(target, source) {
51
51
  }
52
52
  return target;
53
53
  }
54
- import { jsx as s, Fragment as I, jsxs as h } from "react/jsx-runtime";
54
+ import { jsx as s, Fragment as x, jsxs as h } from "react/jsx-runtime";
55
55
  import * as f from "react";
56
- import { debounce as N } from "./utils/helpers.js";
56
+ import { debounce as I } from "./utils/helpers.js";
57
57
  import { SPACE as C } from "./utils/keys.js";
58
58
  import { useControlProps as D } from "./form-context.js";
59
59
  import { Text3 as S } from "./text.js";
60
60
  import V from "./inline.js";
61
61
  import { useTheme as y, useAriaId as g } from "./hooks.js";
62
- import { getPrefixedDataAttributes as E } from "./utils/dom.js";
63
- import { containerDisabled as P, container as A, disabled as p, checkboxVariants as j, switchCheckboxContainerVariants as K, switchCheckboxLabel as M, barVariants as R, ballVariants as T } from "./switch-component.css-mistica.js";
64
- const $ = (e)=>{
65
- const { isIos: l, isDarkMode: u } = y(), o = g(e["aria-labelledby"]), { defaultValue: b, value: d, onChange: a, focusableRef: k, disabled: t } = D({
62
+ import { getPrefixedDataAttributes as A } from "./utils/dom.js";
63
+ import { containerDisabled as E, container as P, interactiveArea as p, disabled as j, checkboxVariants as K, switchCheckboxContainerVariants as M, switchCheckboxLabel as R, barVariants as T, ballVariants as $ } from "./switch-component.css-mistica.js";
64
+ const F = (e)=>{
65
+ const { isIos: l, isDarkMode: u } = y(), o = g(e["aria-labelledby"]), { defaultValue: b, value: c, onChange: a, focusableRef: k, disabled: t } = D({
66
66
  name: e.name,
67
67
  value: e.checked,
68
68
  defaultValue: e.defaultChecked,
69
69
  onChange: e.onChange,
70
70
  disabled: e.disabled
71
- }), [c, v] = f.useState(!!b), r = d !== null && d !== void 0 ? d : c, w = f.useMemo(()=>process.env.NODE_ENV === "test" ? (i)=>a == null ? void 0 : a(i) : N((i)=>{
71
+ }), [d, v] = f.useState(!!b), r = c !== null && c !== void 0 ? c : d, N = f.useMemo(()=>process.env.NODE_ENV === "test" ? (i)=>a == null ? void 0 : a(i) : I((i)=>{
72
72
  a == null || a(i);
73
73
  }, 300), [
74
74
  a
75
75
  ]), n = ()=>{
76
- d !== void 0 ? a == null || a(!d) : (v(!c), w(!c));
77
- }, x = (i)=>{
76
+ c !== void 0 ? a == null || a(!c) : (v(!d), N(!d));
77
+ }, w = (i)=>{
78
78
  i.key === C && (i.preventDefault(), i.stopPropagation(), n());
79
79
  }, m = /* @__PURE__ */ s("div", {
80
- className: j[l ? t ? "disabledIos" : "ios" : t ? "disabled" : "default"],
80
+ className: K[l ? t ? "disabledIos" : "ios" : t ? "disabled" : "default"],
81
81
  children: /* @__PURE__ */ s("div", {
82
- className: K[l ? "ios" : "default"],
82
+ className: M[l ? "ios" : "default"],
83
83
  children: /* @__PURE__ */ h("div", {
84
- className: M,
84
+ className: R,
85
85
  children: [
86
86
  /* @__PURE__ */ s("span", {
87
- className: R[l ? r ? "checkedIos" : u ? "iosDark" : "ios" : r ? "checked" : "default"]
87
+ className: T[l ? r ? "checkedIos" : u ? "iosDark" : "ios" : r ? "checked" : "default"]
88
88
  }),
89
89
  /* @__PURE__ */ s("span", {
90
- className: T[l ? r ? "checkedIos" : "ios" : r ? "checked" : "default"]
90
+ className: $[l ? r ? "checkedIos" : "ios" : r ? "checked" : "default"]
91
91
  })
92
92
  ]
93
93
  })
@@ -97,27 +97,28 @@ const $ = (e)=>{
97
97
  // eslint-disable-next-line jsx-a11y/interactive-supports-focus
98
98
  /* @__PURE__ */ s("span", _object_spread_props(_object_spread({
99
99
  role: "switch",
100
- "aria-checked": d !== null && d !== void 0 ? d : c,
100
+ "aria-checked": c !== null && c !== void 0 ? c : d,
101
101
  onClick: (i)=>{
102
102
  i.stopPropagation(), t || n();
103
103
  },
104
- onKeyDown: t ? void 0 : x,
104
+ onKeyDown: t ? void 0 : w,
105
105
  tabIndex: t ? void 0 : 0,
106
106
  ref: k,
107
- className: t ? P : A,
107
+ className: t ? E : P,
108
108
  "aria-disabled": t,
109
109
  "aria-labelledby": o
110
- }, E(e.dataAttributes, "Switch")), {
111
- children: e.render ? /* @__PURE__ */ s(I, {
110
+ }, A(e.dataAttributes, "Switch")), {
111
+ children: e.render ? /* @__PURE__ */ s(x, {
112
112
  children: e.render({
113
113
  controlElement: m,
114
114
  labelId: o,
115
115
  disabled: !!t,
116
- checked: d !== null && d !== void 0 ? d : c
116
+ checked: c !== null && c !== void 0 ? c : d
117
117
  })
118
118
  }) : /* @__PURE__ */ h(V, {
119
119
  space: 16,
120
120
  alignItems: "center",
121
+ className: p,
121
122
  children: [
122
123
  m,
123
124
  e.children && /* @__PURE__ */ s(S, {
@@ -125,12 +126,12 @@ const $ = (e)=>{
125
126
  as: "div",
126
127
  id: o,
127
128
  children: /* @__PURE__ */ s("span", {
128
- className: t ? p : "",
129
+ className: t ? j : "",
129
130
  children: e.children
130
131
  })
131
132
  })
132
133
  ]
133
134
  })
134
135
  })));
135
- }, J = $;
136
- export { J as default };
136
+ }, Q = F;
137
+ export { Q as default };
@@ -1,9 +1,9 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./tabs.css.ts.vanilla.css-mistica.js";
3
- var f = "_1y2v1nfh7 _1y2v1nfh3 _1y2v1nfku _1y2v1nflo _1y2v1nfie", e = "lgofm1q", y = "lgofm14", _ = "lgofm13 _1y2v1nfjj _1y2v1nfhv _1y2v1nfh2", r = "lgofm10", o = "lgofm11", a = {
3
+ var v = "_1y2v1nfh9 _1y2v1nfh5 _1y2v1nfkw _1y2v1nflq _1y2v1nfig", e = "lgofm1q", y = "lgofm14", _ = "lgofm13 _1y2v1nfjl _1y2v1nfhx _1y2v1nfh4", l = "lgofm10", r = "lgofm11", a = {
4
4
  default: "lgofm1a",
5
5
  inverse: "lgofm1b"
6
- }, l = {
6
+ }, o = {
7
7
  noSelected: "_1y2v1nf25",
8
8
  noSelectedInverse: "_1y2v1nf26",
9
9
  selected: "lgofm1g",
@@ -11,7 +11,7 @@ var f = "_1y2v1nfh7 _1y2v1nfh3 _1y2v1nfku _1y2v1nflo _1y2v1nfie", e = "lgofm1q",
11
11
  selectedAnimating: "lgofm1i",
12
12
  selectedAnimatingInverse: "lgofm1j"
13
13
  }, t = {
14
- default: "lgofm17 _1y2v1nf9y _1y2v1nfb7 _1y2v1nfh9 _1y2v1nfhq _1y2v1nfhn _1y2v1nfhh _1y2v1nfj7 _1y2v1nfjj _1y2v1nf70",
15
- fullWidth: "lgofm19 lgofm17 _1y2v1nf9y _1y2v1nfb7 _1y2v1nfh9 _1y2v1nfhq _1y2v1nfhn _1y2v1nfhh _1y2v1nfj7 _1y2v1nfjj _1y2v1nf70"
16
- }, m = "_1y2v1nfjj _1y2v1nfhv _1y2v1nfh8";
17
- export { f as animatedLine, e as icon, y as inner, _ as outer, r as outerBorder, o as outerBorderInverse, a as tabHover, l as tabSelectionVariants, t as tabVariants, m as tabsContainer };
14
+ default: "lgofm17 _1y2v1nfa0 _1y2v1nfb9 _1y2v1nfhb _1y2v1nfhs _1y2v1nfhp _1y2v1nfhj _1y2v1nfj9 _1y2v1nfjl _1y2v1nf72",
15
+ fullWidth: "lgofm19 lgofm17 _1y2v1nfa0 _1y2v1nfb9 _1y2v1nfhb _1y2v1nfhs _1y2v1nfhp _1y2v1nfhj _1y2v1nfj9 _1y2v1nfjl _1y2v1nf72"
16
+ }, m = "_1y2v1nfjl _1y2v1nfhx _1y2v1nfha";
17
+ export { v as animatedLine, e as icon, y as inner, _ as outer, l as outerBorder, r as outerBorderInverse, a as tabHover, o as tabSelectionVariants, t as tabVariants, m as tabsContainer };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./tag.css.ts.vanilla.css-mistica.js";
3
- var y = "_1wy08671 _1y2v1nf77 _1y2v1nf8g _1y2v1nfh9 _1y2v1nfhd _1y2v1nfhn _1y2v1nfhh _1y2v1nfj4";
3
+ var y = "_1wy08671 _1y2v1nf79 _1y2v1nf8i _1y2v1nfhb _1y2v1nfhf _1y2v1nfhp _1y2v1nfhj _1y2v1nfj6";
4
4
  export { y as tag };
@@ -1,5 +1,5 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./icon-button.css.ts.vanilla.css-mistica.js";
3
3
  import "./text-field-base.css.ts.vanilla.css-mistica.js";
4
- var n = "rhey4t8", v = "rhey4th _1y2v1nf9p _1y2v1nfh8 _1y2v1nfhn", y = 12, a = "rhey4tr", h = 4, f = 11, i = 15, _ = "rhey4t4", l = "rhey4t7", d = "calc(1.5rem + 24px)", o = "rhey4ta _1y2v1nfh2 rhey4t1 _1y2v1nfjq _1y2v1nfit _1y2v1nf23 _1y2v1nfhv", p = "rhey4tb", u = "rhey4tc", c = "rhey4td", m = "rhey4tn _1y2v1nfh8 _1y2v1nfhn _1y2v1nfk8", x = "_1y2v1nf3x", b = "rhey4tl _1y2v1nfb4", s = "rhey4tj _1y2v1nfb4 _1y2v1nfh8 _1y2v1nfhn _1y2v1nfic _1y2v1nfh3", I = "rhey4tq _1y2v1nfh3", g = "rhey4t6 _1y2v1nf71 _1y2v1nf8a rhey4t1 _1y2v1nfjq _1y2v1nfit _1y2v1nf23 _1y2v1nfhv", L = "rhey4te", W = "rhey4tf";
5
- export { n as emptyDateValue, v as endIconContainer, y as fieldElementsGap, a as fieldEndIconContainer, h as fieldEndIconGap, f as fieldLeftPadding, i as fieldRightPadding, _ as fullWidth, l as hiddenDatePlaceholder, d as iconButtonSize, o as input, p as inputFirefoxStyles, u as inputWithLabel, c as inputWithoutLabel, m as menuItem, x as menuItemSelected, b as prefix, s as startIcon, I as suggestionsContainer, g as textArea, L as textAreaWithLabel, W as textAreaWithoutLabel };
4
+ var n = "rhey4t8", v = "rhey4th _1y2v1nf9r _1y2v1nfha _1y2v1nfhp", a = 12, y = "rhey4tr", h = 4, f = 11, i = 15, _ = "rhey4t4", l = "rhey4t7", d = "calc(1.5rem + 24px)", o = "rhey4ta _1y2v1nfh4 rhey4t1 _1y2v1nfjs _1y2v1nfiv _1y2v1nf23 _1y2v1nfhx", p = "rhey4tb", u = "rhey4tc", c = "rhey4td", m = "rhey4tn _1y2v1nfha _1y2v1nfhp _1y2v1nfka", x = "_1y2v1nf3y", s = "rhey4tl _1y2v1nfb6", b = "rhey4tj _1y2v1nfb6 _1y2v1nfha _1y2v1nfhp _1y2v1nfie _1y2v1nfh5", I = "rhey4tq _1y2v1nfh5", g = "rhey4t6 _1y2v1nf73 _1y2v1nf8c rhey4t1 _1y2v1nfjs _1y2v1nfiv _1y2v1nf23 _1y2v1nfhx", L = "rhey4te", W = "rhey4tf";
5
+ export { n as emptyDateValue, v as endIconContainer, a as fieldElementsGap, y as fieldEndIconContainer, h as fieldEndIconGap, f as fieldLeftPadding, i as fieldRightPadding, _ as fullWidth, l as hiddenDatePlaceholder, d as iconButtonSize, o as input, p as inputFirefoxStyles, u as inputWithLabel, c as inputWithoutLabel, m as menuItem, x as menuItemSelected, s as prefix, b as startIcon, I as suggestionsContainer, g as textArea, L as textAreaWithLabel, W as textAreaWithoutLabel };
@@ -2,5 +2,5 @@ import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./icon-button.css.ts.vanilla.css-mistica.js";
3
3
  import "./text-field-base.css.ts.vanilla.css-mistica.js";
4
4
  import "./text-field-components.css.ts.vanilla.css-mistica.js";
5
- var a = 328, f = 0.78, e = 0.75, y = "_15k6ur97", h = "_1y2v1nfk9 _1y2v1nfjp _1y2v1nfh8 _1y2v1nfjy _1y2v1nfh2", t = "_15k6ur96 _1y2v1nfh8 _1y2v1nfhe", i = "_1y2v1nfhv", l = "_1y2v1nf9v _1y2v1nfb7 _1y2v1nfh8", k = "_15k6ur9d", u = "_15k6ur91 _1y2v1nfh3 _1y2v1nfh8 _1y2v1nfhd", d = "_15k6ur93 _1y2v1nfk9 _1y2v1nfhr", o = "_15k6ur9e", p = "_15k6ur99 _1y2v1nfhv", L = "_15k6ur9f", E = "_15k6ur94";
6
- export { a as DEFAULT_WIDTH, f as LABEL_SCALE_DESKTOP, e as LABEL_SCALE_MOBILE, y as disabled, h as field, t as fieldContainer, i as fullWidth, l as helperContainer, k as helperText, u as labelContainer, d as labelText, o as leftText, p as normalWidth, L as rightText, E as shrinked };
5
+ var n = 328, f = 0.78, e = 0.75, h = "_15k6ur97", t = "_1y2v1nfkb _1y2v1nfjr _1y2v1nfha _1y2v1nfk0 _1y2v1nfh4", y = "_15k6ur96 _1y2v1nfha _1y2v1nfhg", i = "_1y2v1nfhx", k = "_1y2v1nf9x _1y2v1nfb9 _1y2v1nfha", l = "_15k6ur9d", u = "_15k6ur91 _1y2v1nfh5 _1y2v1nfha _1y2v1nfhf", o = "_15k6ur93 _1y2v1nfkb _1y2v1nfht", d = "_15k6ur9e", x = "_15k6ur99 _1y2v1nfhx", L = "_15k6ur9f", p = "_15k6ur94";
6
+ export { n as DEFAULT_WIDTH, f as LABEL_SCALE_DESKTOP, e as LABEL_SCALE_MOBILE, h as disabled, t as field, y as fieldContainer, i as fullWidth, k as helperContainer, l as helperText, u as labelContainer, o as labelText, d as leftText, x as normalWidth, L as rightText, p as shrinked };
@@ -1,8 +1,8 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./text-link.css.ts.vanilla.css-mistica.js";
3
3
  var v = {
4
- default: "_1m1n0pr1 _1y2v1nfhw _1y2v1nfhb _1y2v1nfk8 _1y2v1nf2e",
5
- inverseLight: "_1m1n0pr6 _1m1n0pr1 _1y2v1nfhw _1y2v1nfhb _1y2v1nfk8 _1y2v1nf2f",
6
- inverseDark: "_1m1n0pr7 _1m1n0pr1 _1y2v1nfhw _1y2v1nfhb _1y2v1nfk8 _1y2v1nf2e"
4
+ default: "_1m1n0pr1 _1y2v1nfhy _1y2v1nfhd _1y2v1nfka _1y2v1nf2e",
5
+ inverseLight: "_1m1n0pr6 _1m1n0pr1 _1y2v1nfhy _1y2v1nfhd _1y2v1nfka _1y2v1nf2f",
6
+ inverseDark: "_1m1n0pr7 _1m1n0pr1 _1y2v1nfhy _1y2v1nfhd _1y2v1nfka _1y2v1nf2e"
7
7
  };
8
8
  export { v as variants };
@@ -1,6 +1,6 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./tooltip.css.ts.vanilla.css-mistica.js";
3
- var a = 40, v = "_1xhatbpb _1y2v1nfi1 _1y2v1nfih _1y2v1nfh3 _1y2v1nfkf _1y2v1nf3k", _ = "_1xhatbp9 _1y2v1nfh3 _1y2v1nfi3 _1y2v1nfk9", o = "_1xhatbpd _1y2v1nfh3", r = "_1xhatbp1 _1y2v1nfh3", y = "_1xhatbp6", i = "_1xhatbp5 _1y2v1nfh2 _1y2v1nfk9", e = "_1xhatbp3 _1y2v1nfh2 _1y2v1nfk1 _1y2v1nf3k", f = "_1y2v1nfh8 _1y2v1nfhe _1y2v1nfhn", h = {
3
+ var a = 40, v = "_1xhatbpb _1y2v1nfi3 _1y2v1nfij _1y2v1nfh5 _1y2v1nfkh _1y2v1nf3l", _ = "_1xhatbp9 _1y2v1nfh5 _1y2v1nfi5 _1y2v1nfkb", o = "_1xhatbpd _1y2v1nfh5", r = "_1xhatbp1 _1y2v1nfh5", y = "_1xhatbp6", i = "_1xhatbp5 _1y2v1nfh4 _1y2v1nfkb", e = "_1xhatbp3 _1y2v1nfh4 _1y2v1nfk3 _1y2v1nf3l", f = "_1y2v1nfha _1y2v1nfhg _1y2v1nfhp", p = {
4
4
  entering: {
5
5
  opacity: 1
6
6
  },
@@ -15,4 +15,4 @@ var a = 40, v = "_1xhatbpb _1y2v1nfi1 _1y2v1nfih _1y2v1nfh3 _1y2v1nfkf _1y2v1nf3
15
15
  },
16
16
  unmounted: {}
17
17
  };
18
- export { a as CONTENT_MIN_WIDTH, v as arrow, _ as arrowContainer, o as closeButtonIcon, r as container, y as content, i as contentContainer, e as tooltip, f as tooltipCenter, h as tooltipTransitionClasses };
18
+ export { a as CONTENT_MIN_WIDTH, v as arrow, _ as arrowContainer, o as closeButtonIcon, r as container, y as content, i as contentContainer, e as tooltip, f as tooltipCenter, p as tooltipTransitionClasses };
@@ -346,7 +346,6 @@ const lt = (t)=>({
346
346
  trackingEvent: O,
347
347
  "aria-label": R.modalClose,
348
348
  Icon: zt,
349
- hasInteractiveAreaBleed: !0,
350
349
  small: !0
351
350
  })
352
351
  })
@@ -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 a = "mhti6u2 _1y2v1nfk8", f = "mhti6u0", y = "mhti6u5", _ = "mhti6u2 _1y2v1nfk8 _1y2v1nf71 _1y2v1nf8a _1y2v1nf9j _1y2v1nfas _1y2v1nfha _1y2v1nfjq _1y2v1nfhv _1y2v1nf3h _1y2v1nf70 _1y2v1nfka";
4
- export { a as base, f as marginReset, y as notTouchable, _ as touchable };
3
+ var f = "mhti6u2 _1y2v1nfka", y = "mhti6u0", _ = "mhti6u5", a = "mhti6u2 _1y2v1nfka _1y2v1nf73 _1y2v1nf8c _1y2v1nf9l _1y2v1nfau _1y2v1nfhc _1y2v1nfjs _1y2v1nfhx _1y2v1nf3i _1y2v1nf72 _1y2v1nfkc";
4
+ export { f as base, y as marginReset, _ as notTouchable, a as touchable };
@@ -78,25 +78,23 @@ function _object_without_properties_loose(source, excluded) {
78
78
  }
79
79
  return target;
80
80
  }
81
- import { jsxs as I, jsx as i } from "react/jsx-runtime";
82
- import * as o from "react";
83
- import b from "classnames";
84
- import A from "./screen-reader-only.js";
85
- import { notTouchable as _, touchable as H, base as K, marginReset as j } from "./touchable.css-mistica.js";
86
- import { useTheme as B } from "./hooks.js";
87
- import { isInsideNovumNativeApp as S } from "./utils/platform.js";
88
- import { ENTER as V, SPACE as W } from "./utils/keys.js";
89
- import { getPrefixedDataAttributes as L } from "./utils/dom.js";
90
- const $ = function(e) {
91
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
92
- t ? window.open(e, "_blank") : l ? window.open(e, "_top") : document.location.href = e;
93
- }, T = /*#__PURE__*/ o.forwardRef((e, t)=>{
94
- const { texts: l, analytics: v, platformOverrides: N, Link: P, useHrefDecorator: E } = B(), R = E(), f = o.useRef(!1);
95
- let r = [];
96
- e.trackingEvent && (Array.isArray(e.trackingEvent) ? r = e.trackingEvent : r = [
81
+ import { jsxs as A, jsx as i } from "react/jsx-runtime";
82
+ import * as c from "react";
83
+ import m from "classnames";
84
+ import H from "./screen-reader-only.js";
85
+ import { notTouchable as K, touchable as j, base as B, marginReset as S } from "./touchable.css-mistica.js";
86
+ import { useTheme as V } from "./hooks.js";
87
+ import { isInsideNovumNativeApp as W } from "./utils/platform.js";
88
+ import { ENTER as _, SPACE as L } from "./utils/keys.js";
89
+ import { getPrefixedDataAttributes as $ } from "./utils/dom.js";
90
+ import { redirect as q } from "./utils/browser.js";
91
+ const P = /*#__PURE__*/ c.forwardRef((e, t)=>{
92
+ const { texts: f, analytics: w, platformOverrides: E, Link: R, useHrefDecorator: x } = V(), O = x(), u = c.useRef(!1);
93
+ let l = [];
94
+ e.trackingEvent && (Array.isArray(e.trackingEvent) ? l = e.trackingEvent : l = [
97
95
  e.trackingEvent
98
96
  ]);
99
- const d = e.children, n = _object_spread({
97
+ const o = e.children, n = _object_spread({
100
98
  className: e.className,
101
99
  disabled: e.disabled,
102
100
  style: e.style,
@@ -110,96 +108,101 @@ const $ = function(e) {
110
108
  "aria-selected": e["aria-selected"],
111
109
  "aria-live": e["aria-live"],
112
110
  tabIndex: e.tabIndex
113
- }, L(e.dataAttributes, "Touchable")), u = e.type ? e.type : "button", c = !!e.href && !!e.newTab, m = !c && !!e.href && !!e.loadOnTop, s = (a)=>{
111
+ }, $(e.dataAttributes, "Touchable")), s = e.type ? e.type : "button", r = !!e.href && !!e.newTab, h = !r && !!e.href && !!e.loadOnTop, b = (a)=>{
114
112
  e.stopPropagation && a.stopPropagation();
115
- }, h = (a)=>{
113
+ }, g = (a)=>{
116
114
  e.onPress && e.onPress(a);
117
- }, k = ()=>{
115
+ }, y = ()=>{
118
116
  var _e_to_pathname;
119
- return e.href ? R(e.href) : e.to && e.fullPageOnWebView ? typeof e.to == "string" ? e.to : (_e_to_pathname = e.to.pathname) !== null && _e_to_pathname !== void 0 ? _e_to_pathname : "" : "";
120
- }, y = ()=>Promise.all(r.map((a)=>v.logEvent(a))), g = (a)=>{
121
- f.current || (f.current = !0, y().finally(()=>{
122
- f.current = !1, a();
117
+ return e.href ? O(e.href) : e.to && e.fullPageOnWebView ? typeof e.to == "string" ? e.to : (_e_to_pathname = e.to.pathname) !== null && _e_to_pathname !== void 0 ? _e_to_pathname : "" : "";
118
+ }, k = ()=>Promise.all(l.map((a)=>w.logEvent(a))), v = (a)=>{
119
+ u.current || (u.current = !0, k().finally(()=>{
120
+ u.current = !1, a();
123
121
  }));
124
- }, x = (a)=>{
125
- if (s(a), !r.length) {
126
- h(a);
122
+ }, C = (a)=>{
123
+ if (b(a), !l.length) {
124
+ g(a);
127
125
  return;
128
126
  }
129
- g(()=>h(a));
130
- }, C = (a)=>{
131
- s(a), r.length && (a.preventDefault(), g(()=>$(k(), c, m)));
127
+ v(()=>g(a));
132
128
  }, D = (a)=>{
133
- s(a), y();
134
- }, w = (a)=>{
135
- (a.key === V || a.key === W) && (a.preventDefault(), a.currentTarget.click());
129
+ var T;
130
+ b(a);
131
+ const d = !!(e.href && e.onNavigate);
132
+ !l.length && !d || (a.preventDefault(), Promise.resolve(d ? (T = e.onNavigate) == null ? void 0 : T.call(e) : void 0).finally(()=>{
133
+ v(()=>q(y(), r, h));
134
+ }));
135
+ }, I = (a)=>{
136
+ b(a), e.to && e.onNavigate && e.onNavigate(), k();
137
+ }, N = (a)=>{
138
+ (a.key === _ || a.key === L) && (a.preventDefault(), a.currentTarget.click());
136
139
  };
137
- if (e.href || e.to && e.fullPageOnWebView && S(N)) return /* @__PURE__ */ I("a", _object_spread_props(_object_spread({}, n), {
140
+ if (e.href || e.to && e.fullPageOnWebView && W(E)) return /* @__PURE__ */ A("a", _object_spread_props(_object_spread({}, n), {
138
141
  "aria-label": e["aria-label"],
139
142
  "aria-labelledby": e["aria-labelledby"],
140
- onClick: C,
141
- onKeyDown: w,
142
- href: e.disabled ? void 0 : k(),
143
+ onClick: D,
144
+ onKeyDown: N,
145
+ href: e.disabled ? void 0 : y(),
143
146
  target: (()=>{
144
- if (c) return "_blank";
145
- if (m) return "_top";
147
+ if (r) return "_blank";
148
+ if (h) return "_top";
146
149
  })(),
147
- rel: c ? "noopener noreferrer" : void 0,
150
+ rel: r ? "noopener noreferrer" : void 0,
148
151
  ref: t,
149
152
  children: [
150
- d,
151
- c && /* @__PURE__ */ i(A, {
153
+ o,
154
+ r && /* @__PURE__ */ i(H, {
152
155
  children: /* @__PURE__ */ i("span", {
153
- children: l.linkOpensInNewTab
156
+ children: f.linkOpensInNewTab
154
157
  })
155
158
  })
156
159
  ]
157
160
  }));
158
- if (e.to) return /* @__PURE__ */ i(P, _object_spread_props(_object_spread({}, n), {
161
+ if (e.to) return /* @__PURE__ */ i(R, _object_spread_props(_object_spread({}, n), {
159
162
  "aria-label": e["aria-label"],
160
163
  "aria-labelledby": e["aria-labelledby"],
161
164
  innerRef: t,
162
165
  to: e.disabled ? "" : e.to,
163
166
  replace: e.replace,
164
- onClick: D,
165
- onKeyDown: w,
166
- children: d
167
+ onClick: I,
168
+ onKeyDown: N,
169
+ children: o
167
170
  }));
168
171
  if (e.onPress) {
169
172
  var _e_as, _n_role;
170
- const a = (_e_as = e.as) !== null && _e_as !== void 0 ? _e_as : "button", O = (_n_role = n.role) !== null && _n_role !== void 0 ? _n_role : e.as === "a" ? "button" : void 0;
171
- return /*#__PURE__*/ o.createElement(a, _object_spread_props(_object_spread({}, n), {
172
- role: O,
173
+ const a = (_e_as = e.as) !== null && _e_as !== void 0 ? _e_as : "button", d = (_n_role = n.role) !== null && _n_role !== void 0 ? _n_role : e.as === "a" ? "button" : void 0;
174
+ return /*#__PURE__*/ c.createElement(a, _object_spread_props(_object_spread({}, n), {
175
+ role: d,
173
176
  // this "form" attribute is useful when the form's submit button
174
177
  // is located outside the <form> element, for example if you use
175
178
  // a ButtonFixedFooter layout inside a form with the submit
176
179
  // button located at the footer, which is redered using a Portal
177
- form: u === "submit" && e.formId ? e.formId : void 0,
180
+ form: s === "submit" && e.formId ? e.formId : void 0,
178
181
  "aria-label": e["aria-label"],
179
182
  "aria-labelledby": e["aria-labelledby"],
180
- type: u,
183
+ type: s,
181
184
  ref: t,
182
- onClick: x,
183
- children: d
185
+ onClick: C,
186
+ children: o
184
187
  }));
185
188
  }
186
189
  return /* @__PURE__ */ i("div", _object_spread_props(_object_spread({}, n), {
187
190
  ref: t,
188
- className: b(n.className, _),
189
- children: d
191
+ className: m(n.className, K),
192
+ children: o
190
193
  }));
191
- }), q = /*#__PURE__*/ o.forwardRef((e, t)=>/* @__PURE__ */ i(T, _object_spread_props(_object_spread({}, e), {
192
- className: b(H, e.className),
194
+ }), z = /*#__PURE__*/ c.forwardRef((e, t)=>/* @__PURE__ */ i(P, _object_spread_props(_object_spread({}, e), {
195
+ className: m(j, e.className),
193
196
  ref: t
194
- }))), Y = /*#__PURE__*/ o.forwardRef((_param, l)=>{
197
+ }))), p = /*#__PURE__*/ c.forwardRef((_param, f)=>{
195
198
  var { resetMargin: e = !0 } = _param, t = _object_without_properties(_param, [
196
199
  "resetMargin"
197
200
  ]);
198
- return /* @__PURE__ */ i(T, _object_spread_props(_object_spread({}, t), {
199
- className: b(K, t.className, {
200
- [j]: e
201
+ return /* @__PURE__ */ i(P, _object_spread_props(_object_spread({}, t), {
202
+ className: m(B, t.className, {
203
+ [S]: e
201
204
  }),
202
- ref: l
205
+ ref: f
203
206
  }));
204
- }), Z = q;
205
- export { Y as BaseTouchable, Z as default };
207
+ }), ee = z;
208
+ export { p as BaseTouchable, ee as default };
@@ -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 n = "yqswj62", a = "_1y2v1nfhv _1y2v1nfic _1y2v1nfkf _1y2v1nfku", y = {
3
+ var a = "yqswj62", n = "_1y2v1nfhx _1y2v1nfie _1y2v1nfkh _1y2v1nfkw", y = {
4
4
  aspectRatio: "var(--yqswj60)"
5
- }, f = "_1y2v1nfk9 _1y2v1nfjn _1y2v1nfjo _1y2v1nfh2";
6
- export { n as container, a as containerWithWrapper, y as vars, f as wrapper };
5
+ }, p = "_1y2v1nfkb _1y2v1nfjp _1y2v1nfjq _1y2v1nfh4";
6
+ export { a as container, n as containerWithWrapper, y as vars, p as wrapper };
@@ -0,0 +1,5 @@
1
+ const i = function(e) {
2
+ let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
3
+ o ? window.open(e, "_blank") : n ? window.open(e, "_top") : document.location.href = e;
4
+ };
5
+ export { i as redirect };
@@ -1,3 +1,3 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
- var f = "_1y2v1nfkf _1y2v1nfku _1y2v1nfha _1y2v1nf70 _1y2v1nfjn _1y2v1nfjo _1y2v1nfm3";
2
+ var f = "_1y2v1nfkh _1y2v1nfkw _1y2v1nfhc _1y2v1nf72 _1y2v1nfjp _1y2v1nfjq _1y2v1nfm5";
3
3
  export { f as video };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telefonica/mistica",
3
- "version": "15.0.0",
3
+ "version": "15.1.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -123,7 +123,7 @@
123
123
  "lodash": "^4.17.21",
124
124
  "mini-css-extract-plugin": "^1.6.2",
125
125
  "node-fetch": "^2.6.7",
126
- "playroom": "^0.34.2",
126
+ "playroom": "^0.37.0",
127
127
  "postcss": "^8.4.18",
128
128
  "postcss-loader": "^4.2.0",
129
129
  "prettier": "^2.6.1",