@telefonica/mistica 13.1.2 → 13.2.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 (147) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/avatar.css-mistica.js +3 -3
  3. package/dist/badge.css-mistica.js +2 -2
  4. package/dist/button-group.css-mistica.js +1 -1
  5. package/dist/button-layout.css-mistica.js +8 -8
  6. package/dist/button.css-mistica.js +20 -20
  7. package/dist/callout.css-mistica.js +2 -2
  8. package/dist/card.css-mistica.js +7 -7
  9. package/dist/carousel.css-mistica.js +15 -15
  10. package/dist/checkbox.css-mistica.js +8 -8
  11. package/dist/chip.css-mistica.js +4 -4
  12. package/dist/circle.css-mistica.js +2 -2
  13. package/dist/credit-card-number-field.css-mistica.js +3 -3
  14. package/dist/cvv-field.css-mistica.js +3 -3
  15. package/dist/dialog.css-mistica.js +6 -6
  16. package/dist/double-field.css-mistica.js +4 -4
  17. package/dist/empty-state-card.css-mistica.js +4 -4
  18. package/dist/empty-state.css-mistica.js +7 -7
  19. package/dist/feedback.css-mistica.js +1 -1
  20. package/dist/fixed-footer-layout.css-mistica.js +4 -4
  21. package/dist/header.d.ts +20 -1
  22. package/dist/header.js +60 -59
  23. package/dist/highlighted-card.css-mistica.js +6 -6
  24. package/dist/hooks.js +47 -44
  25. package/dist/icon-button.css-mistica.js +1 -1
  26. package/dist/image.css-mistica.js +2 -2
  27. package/dist/image.d.ts +2 -2
  28. package/dist/image.js +63 -48
  29. package/dist/list.css-mistica.js +12 -12
  30. package/dist/loading-bar.css-mistica.js +6 -6
  31. package/dist/maybe-dismissable.css-mistica.js +3 -3
  32. package/dist/menu.css-mistica.js +2 -2
  33. package/dist/navigation-bar.css-mistica.js +12 -12
  34. package/dist/navigation-breadcrumbs.css-mistica.js +3 -3
  35. package/dist/package-version.js +1 -1
  36. package/dist/password-field.css-mistica.js +2 -2
  37. package/dist/popover.css-mistica.js +9 -9
  38. package/dist/progress-bar.css-mistica.js +3 -3
  39. package/dist/radio-button.css-mistica.js +5 -5
  40. package/dist/responsive-layout.css-mistica.js +3 -3
  41. package/dist/screen-reader-only.css-mistica.js +1 -1
  42. package/dist/select.css-mistica.js +13 -13
  43. package/dist/select.js +73 -73
  44. package/dist/skeleton-base.d.ts +2 -1
  45. package/dist/skeleton-base.js +6 -6
  46. package/dist/skeletons.css-mistica.js +3 -3
  47. package/dist/skeletons.d.ts +2 -1
  48. package/dist/skeletons.js +21 -20
  49. package/dist/skins/blau.js +19 -9
  50. package/dist/skins/movistar.js +17 -7
  51. package/dist/skins/o2-classic.js +17 -7
  52. package/dist/skins/o2.js +17 -7
  53. package/dist/skins/skin-contract.css-mistica.js +133 -123
  54. package/dist/skins/skin-contract.css.d.ts +10 -0
  55. package/dist/skins/telefonica.d.ts +1 -1
  56. package/dist/skins/telefonica.js +18 -8
  57. package/dist/skins/types.d.ts +5 -0
  58. package/dist/skins/vivo.js +17 -7
  59. package/dist/snackbar.css-mistica.js +5 -5
  60. package/dist/spinner.css-mistica.js +1 -1
  61. package/dist/sprinkles.css-mistica.js +336 -306
  62. package/dist/stepper.css-mistica.js +9 -9
  63. package/dist/switch-component.css-mistica.js +22 -22
  64. package/dist/tabs.css-mistica.js +14 -14
  65. package/dist/tag.css-mistica.js +2 -2
  66. package/dist/tag.js +21 -16
  67. package/dist/text-field-base.css-mistica.js +6 -6
  68. package/dist/text-field-components.css-mistica.js +8 -8
  69. package/dist/text-link.css-mistica.js +3 -3
  70. package/dist/text.js +5 -5
  71. package/dist/theme-context-provider.js +8 -7
  72. package/dist/theme.d.ts +2 -0
  73. package/dist/tooltip.css-mistica.js +4 -4
  74. package/dist/touchable.css-mistica.js +1 -1
  75. package/dist/utils/aspect-ratio-support.css-mistica.js +3 -3
  76. package/dist/utils/aspect-ratio-support.js +2 -3
  77. package/dist/video.css-mistica.js +2 -2
  78. package/dist-es/avatar.css-mistica.js +2 -2
  79. package/dist-es/badge.css-mistica.js +2 -2
  80. package/dist-es/button-group.css-mistica.js +1 -1
  81. package/dist-es/button-layout.css-mistica.js +7 -7
  82. package/dist-es/button.css-mistica.js +9 -9
  83. package/dist-es/callout.css-mistica.js +2 -2
  84. package/dist-es/card.css-mistica.js +2 -2
  85. package/dist-es/carousel.css-mistica.js +2 -2
  86. package/dist-es/checkbox.css-mistica.js +6 -6
  87. package/dist-es/chip.css-mistica.js +4 -4
  88. package/dist-es/circle.css-mistica.js +2 -2
  89. package/dist-es/credit-card-number-field.css-mistica.js +3 -3
  90. package/dist-es/cvv-field.css-mistica.js +2 -2
  91. package/dist-es/dialog.css-mistica.js +5 -5
  92. package/dist-es/double-field.css-mistica.js +4 -4
  93. package/dist-es/empty-state-card.css-mistica.js +2 -2
  94. package/dist-es/empty-state.css-mistica.js +3 -3
  95. package/dist-es/feedback.css-mistica.js +1 -1
  96. package/dist-es/fixed-footer-layout.css-mistica.js +3 -3
  97. package/dist-es/header.js +89 -88
  98. package/dist-es/highlighted-card.css-mistica.js +5 -5
  99. package/dist-es/hooks.js +43 -40
  100. package/dist-es/icon-button.css-mistica.js +1 -1
  101. package/dist-es/image.css-mistica.js +2 -2
  102. package/dist-es/image.js +74 -59
  103. package/dist-es/list.css-mistica.js +2 -2
  104. package/dist-es/loading-bar.css-mistica.js +2 -2
  105. package/dist-es/maybe-dismissable.css-mistica.js +2 -2
  106. package/dist-es/menu.css-mistica.js +2 -2
  107. package/dist-es/navigation-bar.css-mistica.js +9 -9
  108. package/dist-es/navigation-breadcrumbs.css-mistica.js +2 -2
  109. package/dist-es/package-version.js +1 -1
  110. package/dist-es/password-field.css-mistica.js +2 -2
  111. package/dist-es/popover.css-mistica.js +2 -2
  112. package/dist-es/progress-bar.css-mistica.js +2 -2
  113. package/dist-es/radio-button.css-mistica.js +4 -4
  114. package/dist-es/responsive-layout.css-mistica.js +2 -2
  115. package/dist-es/screen-reader-only.css-mistica.js +1 -1
  116. package/dist-es/select.css-mistica.js +10 -10
  117. package/dist-es/select.js +84 -84
  118. package/dist-es/skeleton-base.js +12 -12
  119. package/dist-es/skeletons.css-mistica.js +2 -2
  120. package/dist-es/skeletons.js +38 -37
  121. package/dist-es/skins/blau.js +19 -9
  122. package/dist-es/skins/movistar.js +19 -9
  123. package/dist-es/skins/o2-classic.js +17 -7
  124. package/dist-es/skins/o2.js +17 -7
  125. package/dist-es/skins/skin-contract.css-mistica.js +133 -123
  126. package/dist-es/skins/telefonica.js +20 -10
  127. package/dist-es/skins/vivo.js +19 -9
  128. package/dist-es/snackbar.css-mistica.js +2 -2
  129. package/dist-es/spinner.css-mistica.js +1 -1
  130. package/dist-es/sprinkles.css-mistica.js +336 -306
  131. package/dist-es/stepper.css-mistica.js +2 -2
  132. package/dist-es/style.css +1 -1
  133. package/dist-es/switch-component.css-mistica.js +19 -19
  134. package/dist-es/tabs.css-mistica.js +10 -10
  135. package/dist-es/tag.css-mistica.js +2 -2
  136. package/dist-es/tag.js +36 -31
  137. package/dist-es/text-field-base.css-mistica.js +2 -2
  138. package/dist-es/text-field-components.css-mistica.js +2 -2
  139. package/dist-es/text-link.css-mistica.js +3 -3
  140. package/dist-es/text.js +5 -5
  141. package/dist-es/theme-context-provider.js +10 -9
  142. package/dist-es/tooltip.css-mistica.js +3 -3
  143. package/dist-es/touchable.css-mistica.js +1 -1
  144. package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
  145. package/dist-es/utils/aspect-ratio-support.js +2 -3
  146. package/dist-es/video.css-mistica.js +2 -2
  147. package/package.json +1 -1
package/dist-es/select.js CHANGED
@@ -50,11 +50,11 @@ function _objectSpreadProps(target, source) {
50
50
  }
51
51
  return target;
52
52
  }
53
- import * as s from "react";
53
+ import * as r from "react";
54
54
  import oe from "classnames";
55
55
  import { useForm as Ce } from "./form-context.js";
56
56
  import { useAriaId as Ne, useTheme as Ae } from "./hooks.js";
57
- import { TAB as Re, ESC as ve, ENTER as se, SPACE as re, UP as be, DOWN as ke } from "./utils/key-codes.js";
57
+ import { TAB as Re, ESC as be, ENTER as re, SPACE as se, UP as ve, DOWN as ke } from "./utils/key-codes.js";
58
58
  import { FieldContainer as _e, HelperText as Ve, Label as De } from "./text-field-components.js";
59
59
  import ie from "./generated/mistica-icons/icon-chevron-down-regular.js";
60
60
  import { TextFieldBaseAutosuggest as Me } from "./text-field-base.js";
@@ -64,173 +64,173 @@ import { cancelEvent as m } from "./utils/dom.js";
64
64
  import { Text3 as Ge } from "./text.js";
65
65
  import { selectVariants as Ze, arrowDown as We, selectContainerVariants as Be, selectTextVariants as Le, vars as C, optionsContainer as $e, optionsAnimationsVariants as ce, menuItem as qe, menuItemSelected as je } from "./select.css-mistica.js";
66
66
  import { assignInlineVars as ze } from "@vanilla-extract/dynamic";
67
- import { jsxs as b, jsx as a, Fragment as Ke } from "./_virtual/jsx-runtime.js";
67
+ import { jsxs as k, jsx as a, Fragment as Ke } from "./_virtual/jsx-runtime.js";
68
68
  const ut = (param)=>{
69
- let { id: le , label: h , helperText: ae , value: k , onChangeValue: _ , name: i , fullWidth: V , options: d , optional: D , disabled: ue , error: de , onBlur: M , autoFocus: $ = !1 , native: fe } = param;
70
- var Y, ee, te;
71
- const g = s.useRef(null), f = s.useRef(null), T = s.useRef(null), I = s.useRef(null), N = s.useRef(/* @__PURE__ */ new Map()), [c, pe] = s.useState(), [H, q] = s.useState(!1), [j, z] = s.useState(!1), [K, y] = s.useState(!1), [u, F] = s.useState({}), [x, P] = s.useState(), G = s.useRef(null), Z = Ne(le), { rawValues: me , setRawValue: W , setValue: B , formStatus: he , formErrors: U , setFormError: ge , register: L } = Ce(), { platformOverrides: X } = Ae(), Te = fe || process.env.NODE_ENV === "test" || Fe(X) || Pe(X), E = ue || he === "sending", A = de || !!U[i], J = U[i] || ae, o = k != null ? k : me[i], R = (e)=>{
72
- _ == null || _(e), ge({
69
+ let { id: le , label: h , helperText: ae , value: _ , onChangeValue: V , name: i , fullWidth: D , options: d , optional: M , disabled: ue , error: de , onBlur: H , autoFocus: q = !1 , native: fe } = param;
70
+ var ee, te, ne;
71
+ const g = r.useRef(null), f = r.useRef(null), T = r.useRef(null), I = r.useRef(null), N = r.useRef(/* @__PURE__ */ new Map()), [c, pe] = r.useState(), [F, j] = r.useState(!1), [z, K] = r.useState(!1), [U, y] = r.useState(!1), [u, P] = r.useState({}), [x, G] = r.useState(), Z = r.useRef(null), W = Ne(le), { rawValues: me , setRawValue: B , setValue: L , formStatus: he , formErrors: X , setFormError: ge , register: $ } = Ce(), { platformOverrides: J } = Ae(), Te = fe || process.env.NODE_ENV === "test" || Fe(J) || Pe(J), E = ue || he === "sending", A = de || !!X[i], Q = X[i] || ae, o = _ != null ? _ : me[i], R = (e)=>{
72
+ V == null || V(e), ge({
73
73
  name: i,
74
74
  error: ""
75
- }), W({
75
+ }), B({
76
76
  name: i,
77
77
  value: e
78
- }), B({
78
+ }), L({
79
79
  name: i,
80
80
  value: e
81
81
  });
82
- }, w = (e)=>{
82
+ }, S = (e)=>{
83
83
  if (e) {
84
84
  if (T != null && T.current) {
85
- const { top: r , width: O , left: S , height: v } = T.current.getBoundingClientRect(), p = r + v, ne = Math.min(d.length, 8) * 48 + 16;
86
- if (p + ne + 12 > window.innerHeight) {
87
- const Se = window.innerHeight - p;
88
- if (r > Se) {
89
- const ye = r - ne;
90
- F({
91
- minWidth: O,
92
- left: S,
85
+ const { top: s , width: w , left: O , height: b } = T.current.getBoundingClientRect(), p = s + b, v = Math.min(d.length, 8) * 48 + 16;
86
+ if (p + v + 12 > window.innerHeight) {
87
+ const Oe = window.innerHeight - p;
88
+ if (s > Oe) {
89
+ const ye = s - v;
90
+ P({
91
+ minWidth: w,
92
+ left: O,
93
93
  top: Math.max(ye, 12),
94
- maxHeight: r - 12,
94
+ maxHeight: Math.min(s - 12, v),
95
95
  transformOrigin: "center bottom"
96
96
  });
97
- } else F({
98
- minWidth: O,
97
+ } else P({
98
+ minWidth: w,
99
99
  top: p,
100
- left: S,
100
+ left: O,
101
101
  maxHeight: window.innerHeight - p - 12,
102
102
  transformOrigin: "center top"
103
103
  });
104
- } else F({
105
- minWidth: O,
104
+ } else P({
105
+ minWidth: w,
106
106
  top: p,
107
- left: S,
108
- maxHeight: void 0,
107
+ left: O,
108
+ maxHeight: v,
109
109
  transformOrigin: "center top"
110
110
  });
111
111
  }
112
- q(!0), requestAnimationFrame(()=>{
113
- G.current && I.current && "scrollTop" in I.current && (I.current.scrollTop = G.current), z(!0);
114
- }), P(c != null ? c : o);
115
- } else z(!1), q(!1), P(void 0);
116
- }, Q = (e)=>{
112
+ j(!0), requestAnimationFrame(()=>{
113
+ Z.current && I.current && "scrollTop" in I.current && (I.current.scrollTop = Z.current), K(!0);
114
+ }), G(c != null ? c : o);
115
+ } else K(!1), j(!1), G(void 0);
116
+ }, Y = (e)=>{
117
117
  var t;
118
- G.current = (t = I.current) == null ? void 0 : t.scrollTop, w(!1), R && typeof e == "string" && R(e), typeof o > "u" && pe(e);
118
+ Z.current = (t = I.current) == null ? void 0 : t.scrollTop, S(!1), R && typeof e == "string" && R(e), typeof o > "u" && pe(e);
119
119
  }, Ie = (e)=>{
120
120
  var n;
121
121
  const t = (n = I.current) == null ? void 0 : n.getBoundingClientRect();
122
122
  if (t && e && N.current.has(e)) {
123
- const l = N.current.get(e), r = l == null ? void 0 : l.getBoundingClientRect();
124
- if (r && r.top + r.height / 2 >= t.top + t.height) {
123
+ const l = N.current.get(e), s = l == null ? void 0 : l.getBoundingClientRect();
124
+ if (s && s.top + s.height / 2 >= t.top + t.height) {
125
125
  l == null || l.scrollIntoView();
126
126
  return;
127
127
  }
128
- r && r.top + r.height / 2 <= t.top && (l == null || l.scrollIntoView(!1));
128
+ s && s.top + s.height / 2 <= t.top && (l == null || l.scrollIntoView(!1));
129
129
  }
130
130
  }, xe = f.current, Ee = g.current;
131
- s.useEffect(()=>{
132
- W({
131
+ r.useEffect(()=>{
132
+ B({
133
133
  name: i,
134
134
  value: o
135
- }), B({
135
+ }), L({
136
136
  name: i,
137
137
  value: o
138
138
  });
139
139
  }, [
140
140
  i,
141
- W,
142
141
  B,
142
+ L,
143
143
  o
144
- ]), s.useEffect(()=>(L(i, {
144
+ ]), r.useEffect(()=>($(i, {
145
145
  input: g.current,
146
146
  focusableElement: f.current
147
147
  }), ()=>{
148
- L(i, {
148
+ $(i, {
149
149
  input: null,
150
150
  focusableElement: null
151
151
  });
152
152
  }), [
153
153
  i,
154
- L,
154
+ $,
155
155
  f,
156
156
  g,
157
157
  xe,
158
158
  Ee
159
- ]), s.useEffect(()=>{
159
+ ]), r.useEffect(()=>{
160
160
  const e = (n)=>{
161
- var O, S;
162
- const r = {
163
- [be]: -1,
161
+ var w, O;
162
+ const s = {
163
+ [ve]: -1,
164
164
  [ke]: 1
165
165
  }[n.keyCode];
166
- if (r) {
166
+ if (s) {
167
167
  m(n);
168
- const v = (S = (O = d[d.findIndex((param)=>{
168
+ const b = (O = (w = d[d.findIndex((param)=>{
169
169
  let { value: p } = param;
170
170
  return p === x;
171
- }) + r]) == null ? void 0 : O.value) != null ? S : x;
172
- P(v), Ie(v);
171
+ }) + s]) == null ? void 0 : w.value) != null ? O : x;
172
+ G(b), Ie(b);
173
173
  }
174
174
  }, t = (n)=>{
175
- H && (n.keyCode === Re && m(n), n.keyCode === ve && w(!1), (n.keyCode === se || n.keyCode === re) && (m(n), d.findIndex((param)=>{
175
+ F && (n.keyCode === Re && m(n), n.keyCode === be && S(!1), (n.keyCode === re || n.keyCode === se) && (m(n), d.findIndex((param)=>{
176
176
  let { value: l } = param;
177
177
  return l === x;
178
- }) !== -1 && x !== c && Q(x), w(!1))), j && e(n);
178
+ }) !== -1 && x !== c && Y(x), S(!1))), z && e(n);
179
179
  };
180
180
  return document.addEventListener("keydown", t, !1), ()=>{
181
181
  document.removeEventListener("keydown", t, !1);
182
182
  };
183
- }), s.useEffect(()=>{
184
- $ && f.current && f.current.focus();
183
+ }), r.useEffect(()=>{
184
+ q && f.current && f.current.focus();
185
185
  }, [
186
- $
186
+ q
187
187
  ]);
188
- const we = (e)=>{
188
+ const Se = (e)=>{
189
189
  var t;
190
190
  return e ? (t = d.find((param)=>{
191
191
  let { value: n } = param;
192
192
  return n === e;
193
193
  })) == null ? void 0 : t.text : "";
194
- }, Oe = {
194
+ }, we = {
195
195
  tabIndex: 0,
196
196
  onFocus: ()=>y(!0),
197
197
  onBlur: ()=>y(!1),
198
198
  onClick: ()=>{
199
- w(!0), y(!0);
199
+ S(!0), y(!0);
200
200
  },
201
201
  onKeyDown: (e)=>{
202
- !H && (e.keyCode === re || e.keyCode === se) && (m(e), w(!0));
202
+ !F && (e.keyCode === se || e.keyCode === re) && (m(e), S(!0));
203
203
  }
204
204
  };
205
- return Te ? /* @__PURE__ */ b(_e, {
205
+ return Te ? /* @__PURE__ */ k(_e, {
206
206
  disabled: E,
207
207
  helperText: /* @__PURE__ */ a(Ve, {
208
208
  error: A,
209
- leftText: J
209
+ leftText: Q
210
210
  }),
211
211
  fieldRef: T,
212
- fullWidth: V,
212
+ fullWidth: D,
213
213
  children: [
214
214
  h && /* @__PURE__ */ a(De, {
215
215
  error: A,
216
- forId: Z,
217
- inputState: K ? "focused" : ((ee = o != null ? o : c) != null ? ee : (Y = g.current) == null ? void 0 : Y.value) ? "filled" : "default",
218
- optional: D,
216
+ forId: W,
217
+ inputState: U ? "focused" : ((te = o != null ? o : c) != null ? te : (ee = g.current) == null ? void 0 : ee.value) ? "filled" : "default",
218
+ optional: M,
219
219
  children: h
220
220
  }),
221
- /* @__PURE__ */ b("select", {
221
+ /* @__PURE__ */ k("select", {
222
222
  className: Ze[E ? "disabled" : "default"],
223
- id: Z,
223
+ id: W,
224
224
  "aria-invalid": !!A,
225
225
  value: o,
226
- required: !D,
226
+ required: !M,
227
227
  disabled: E,
228
228
  onChange: (e)=>{
229
229
  R && R(e.target.value);
230
230
  },
231
231
  onFocus: ()=>y(!0),
232
232
  onBlur: (e)=>{
233
- y(!1), M == null || M(e);
233
+ y(!1), H == null || H(e);
234
234
  },
235
235
  ref: (e)=>{
236
236
  [
@@ -272,32 +272,32 @@ const ut = (param)=>{
272
272
  })
273
273
  })
274
274
  ]
275
- }) : /* @__PURE__ */ b(Ke, {
275
+ }) : /* @__PURE__ */ k(Ke, {
276
276
  children: [
277
- /* @__PURE__ */ b("div", _objectSpreadProps(_objectSpread({
278
- className: Be[V ? "fullWidth" : "default"],
277
+ /* @__PURE__ */ k("div", _objectSpreadProps(_objectSpread({
278
+ className: Be[D ? "fullWidth" : "default"],
279
279
  role: "button",
280
280
  "aria-haspopup": "listbox",
281
281
  ref: f
282
- }, !E && Oe), {
282
+ }, !E && we), {
283
283
  children: [
284
284
  /* @__PURE__ */ a(Me, {
285
285
  style: {
286
286
  visibility: "hidden"
287
287
  },
288
- fullWidth: V,
288
+ fullWidth: D,
289
289
  endIcon: /* @__PURE__ */ a(ie, {
290
290
  size: 20
291
291
  }),
292
- focus: K,
292
+ focus: U,
293
293
  label: h,
294
294
  value: o,
295
295
  shrinkLabel: !!(o || c),
296
296
  name: i,
297
- helperText: J,
298
- required: !D,
297
+ helperText: Q,
298
+ required: !M,
299
299
  disabled: E,
300
- id: Z,
300
+ id: W,
301
301
  error: A,
302
302
  inputRef: g,
303
303
  fieldRef: T
@@ -307,13 +307,13 @@ const ut = (param)=>{
307
307
  style: {
308
308
  top: h ? 27 : 17
309
309
  },
310
- children: we(o != null ? o : c)
310
+ children: Se(o != null ? o : c)
311
311
  })
312
312
  ]
313
313
  })),
314
- H && /* @__PURE__ */ a(He, {
314
+ F && /* @__PURE__ */ a(He, {
315
315
  onPress: (e)=>{
316
- w(!1), m(e);
316
+ S(!1), m(e);
317
317
  },
318
318
  disableScroll: !0,
319
319
  children: /* @__PURE__ */ a("ul", {
@@ -322,10 +322,10 @@ const ut = (param)=>{
322
322
  [C.left]: u.left ? `${u.left}px` : "",
323
323
  [C.maxHeight]: u.maxHeight ? `${u.maxHeight}px` : "",
324
324
  [C.minWidth]: u.minWidth ? `${u.minWidth}px` : "",
325
- [C.transformOrigin]: (te = u.transformOrigin) != null ? te : ""
325
+ [C.transformOrigin]: (ne = u.transformOrigin) != null ? ne : ""
326
326
  }),
327
327
  onPointerDown: m,
328
- className: oe($e, j ? ce.show : ce.hide),
328
+ className: oe($e, z ? ce.show : ce.hide),
329
329
  role: "listbox",
330
330
  ref: I,
331
331
  children: d.map((param)=>/* @__PURE__ */ {
@@ -338,7 +338,7 @@ const ut = (param)=>{
338
338
  [je]: e === x || e === (c != null ? c : o)
339
339
  }),
340
340
  onPointerDown: m,
341
- onClick: ()=>Q(e),
341
+ onClick: ()=>Y(e),
342
342
  ref: (n)=>{
343
343
  n ? N.current.set(e, n) : N.current.delete(e);
344
344
  },
@@ -1,21 +1,21 @@
1
- import { useIsInverseVariant as t } from "./theme-variant-context.js";
2
- import i from "classnames";
3
- import { sprinkles as m } from "./sprinkles.css-mistica.js";
1
+ import { useIsInverseVariant as i } from "./theme-variant-context.js";
2
+ import m from "classnames";
3
+ import { sprinkles as l } from "./sprinkles.css-mistica.js";
4
4
  import { vars as r } from "./skins/skin-contract.css-mistica.js";
5
- import { jsx as l } from "./_virtual/jsx-runtime.js";
6
- const f = (param)=>{
7
- let { width: e = "100%" , height: o = 8 , radius: s = 8 , className: a } = param;
8
- const n = t();
9
- return /* @__PURE__ */ l("div", {
10
- className: i(a, m({
11
- background: n ? r.colors.backgroundSkeletonInverse : r.colors.backgroundSkeleton
5
+ import { jsx as c } from "./_virtual/jsx-runtime.js";
6
+ const v = (param)=>{
7
+ let { width: e = "100%" , height: o = 8 , radius: s = 8 , className: a , noBorderRadius: n = !1 } = param;
8
+ const t = i();
9
+ return /* @__PURE__ */ c("div", {
10
+ className: m(a, l({
11
+ background: t ? r.colors.backgroundSkeletonInverse : r.colors.backgroundSkeleton
12
12
  })),
13
13
  style: {
14
- borderRadius: s,
14
+ borderRadius: n ? 0 : s,
15
15
  width: e,
16
16
  height: o
17
17
  },
18
18
  "aria-hidden": !0
19
19
  });
20
20
  };
21
- export { f as default };
21
+ export { v as default };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
2
  import "./skeletons.css.ts.vanilla.js";
3
- var o = "zopolw2 _1y2v1nf58", r = "_1y2v1nf5o _1y2v1nf5q", f = "zopolw6 _1y2v1nf5p", y = "_1y2v1nf56 _1y2v1nf5l _1y2v1nf5f";
4
- export { o as animation, r as circle, f as line, y as row };
3
+ var o = "zopolw2 _1y2v1nf5i", r = "_1y2v1nf5y _1y2v1nf60", y = "zopolw6 _1y2v1nf5z", f = "_1y2v1nf5g _1y2v1nf5v _1y2v1nf5p";
4
+ export { o as animation, r as circle, y as line, f as row };
@@ -51,89 +51,89 @@ function _objectSpreadProps(target, source) {
51
51
  return target;
52
52
  }
53
53
  import r from "./skeleton-base.js";
54
- import s from "./stack.js";
54
+ import c from "./stack.js";
55
55
  import { getPrefixedDataAttributes as d } from "./utils/dom.js";
56
56
  import { row as m, circle as h, line as u, animation as k } from "./skeletons.css-mistica.js";
57
- import { jsx as t, jsxs as l } from "./_virtual/jsx-runtime.js";
57
+ import { jsx as e, jsxs as s } from "./_virtual/jsx-runtime.js";
58
58
  const o = (param)=>/* @__PURE__ */ {
59
- let { children: n , ariaLabel: e , dataAttributes: i , width: a , height: c } = param;
60
- return t("div", _objectSpreadProps(_objectSpread({
59
+ let { children: n , ariaLabel: t , dataAttributes: i , width: a , height: l } = param;
60
+ return e("div", _objectSpreadProps(_objectSpread({
61
61
  className: k,
62
62
  role: "status",
63
63
  "aria-busy": !0,
64
- "aria-hidden": e === void 0,
65
- "aria-label": e,
64
+ "aria-hidden": t === void 0,
65
+ "aria-label": t,
66
66
  style: {
67
67
  width: a,
68
- height: c
68
+ height: l
69
69
  }
70
70
  }, d(i)), {
71
71
  children: n
72
72
  }));
73
- }, A = (param)=>/* @__PURE__ */ {
74
- let { width: n = "100%" , ariaLabel: e , dataAttributes: i } = param;
75
- return t(o, {
73
+ }, g = (param)=>/* @__PURE__ */ {
74
+ let { width: n = "100%" , ariaLabel: t , dataAttributes: i } = param;
75
+ return e(o, {
76
76
  width: n,
77
- ariaLabel: e,
77
+ ariaLabel: t,
78
78
  dataAttributes: _objectSpread({
79
79
  "component-name": "SkeletonLine"
80
80
  }, i),
81
- children: /* @__PURE__ */ t(r, {
81
+ children: /* @__PURE__ */ e(r, {
82
82
  width: "100%"
83
83
  })
84
84
  });
85
- }, f = (param)=>/* @__PURE__ */ {
86
- let { ariaLabel: n , dataAttributes: e } = param;
87
- return t(o, {
85
+ }, A = (param)=>/* @__PURE__ */ {
86
+ let { ariaLabel: n , dataAttributes: t } = param;
87
+ return e(o, {
88
88
  width: "100%",
89
89
  ariaLabel: n,
90
90
  dataAttributes: _objectSpread({
91
91
  "component-name": "SkeletonText"
92
- }, e),
93
- children: /* @__PURE__ */ l(s, {
92
+ }, t),
93
+ children: /* @__PURE__ */ s(c, {
94
94
  space: 16,
95
95
  children: [
96
- /* @__PURE__ */ t(r, {}),
97
- /* @__PURE__ */ t(r, {}),
98
- /* @__PURE__ */ t(r, {
96
+ /* @__PURE__ */ e(r, {}),
97
+ /* @__PURE__ */ e(r, {}),
98
+ /* @__PURE__ */ e(r, {
99
99
  width: "75%"
100
100
  })
101
101
  ]
102
102
  })
103
103
  });
104
104
  }, x = (param)=>/* @__PURE__ */ {
105
- let { ariaLabel: n , size: e = 40 , dataAttributes: i } = param;
106
- return t(o, {
107
- width: e,
108
- height: e,
105
+ let { ariaLabel: n , size: t = 40 , dataAttributes: i } = param;
106
+ return e(o, {
107
+ width: t,
108
+ height: t,
109
109
  ariaLabel: n,
110
110
  dataAttributes: _objectSpread({
111
111
  "component-name": "SkeletonCircle"
112
112
  }, i),
113
- children: /* @__PURE__ */ t(r, {
113
+ children: /* @__PURE__ */ e(r, {
114
114
  height: "100%",
115
115
  width: "100%",
116
116
  radius: "50%"
117
117
  })
118
118
  });
119
119
  }, N = (param)=>/* @__PURE__ */ {
120
- let { width: n = "100%" , ariaLabel: e , dataAttributes: i } = param;
121
- return t(o, {
120
+ let { width: n = "100%" , ariaLabel: t , dataAttributes: i } = param;
121
+ return e(o, {
122
122
  width: n,
123
- ariaLabel: e,
123
+ ariaLabel: t,
124
124
  dataAttributes: _objectSpread({
125
125
  "component-name": "SkeletonRow"
126
126
  }, i),
127
- children: /* @__PURE__ */ l("div", {
127
+ children: /* @__PURE__ */ s("div", {
128
128
  className: m,
129
129
  children: [
130
- /* @__PURE__ */ t(r, {
130
+ /* @__PURE__ */ e(r, {
131
131
  height: 40,
132
132
  width: 40,
133
133
  radius: "50%",
134
134
  className: h
135
135
  }),
136
- /* @__PURE__ */ t(r, {
136
+ /* @__PURE__ */ e(r, {
137
137
  width: "100%",
138
138
  className: u
139
139
  })
@@ -141,18 +141,19 @@ const o = (param)=>/* @__PURE__ */ {
141
141
  })
142
142
  });
143
143
  }, R = (param)=>/* @__PURE__ */ {
144
- let { width: n = "100%" , height: e = "100%" , ariaLabel: i , dataAttributes: a } = param;
145
- return t(o, {
146
- height: e,
144
+ let { width: n = "100%" , height: t = "100%" , ariaLabel: i , dataAttributes: a , noBorderRadius: l = !1 } = param;
145
+ return e(o, {
146
+ height: t,
147
147
  width: n,
148
148
  ariaLabel: i,
149
149
  dataAttributes: _objectSpread({
150
150
  "component-name": "SkeletonRectangle"
151
151
  }, a),
152
- children: /* @__PURE__ */ t(r, {
152
+ children: /* @__PURE__ */ e(r, {
153
153
  height: "100%",
154
- width: "100%"
154
+ width: "100%",
155
+ noBorderRadius: l
155
156
  })
156
157
  });
157
158
  };
158
- export { x as SkeletonCircle, A as SkeletonLine, R as SkeletonRectangle, N as SkeletonRow, f as SkeletonText };
159
+ export { x as SkeletonCircle, g as SkeletonLine, R as SkeletonRectangle, N as SkeletonRow, A as SkeletonText };
@@ -38,7 +38,7 @@ const e = {
38
38
  darkModeBlack: "#191919",
39
39
  darkModeGrey: "#242424",
40
40
  darkModeGrey6: "#313235"
41
- }, n = ()=>({
41
+ }, t = ()=>({
42
42
  name: a,
43
43
  colors: {
44
44
  appBarBackground: e.white,
@@ -128,7 +128,12 @@ const e = {
128
128
  successHigh: e.blauGreen70,
129
129
  warningHigh: e.blauYellow70,
130
130
  errorHigh: e.blauRed70,
131
- promoHigh: e.blauPurple
131
+ promoHigh: e.blauPurple,
132
+ successHighInverse: e.blauGreen70,
133
+ warningHighInverse: e.blauYellow70,
134
+ errorHighInverse: e.blauRed70,
135
+ promoHighInverse: e.blauPurple,
136
+ neutralMediumInverse: e.grey5
132
137
  },
133
138
  darkModeColors: {
134
139
  backgroundBrand: e.darkModeBlack,
@@ -190,15 +195,20 @@ const e = {
190
195
  textNavigationSearchBarText: e.grey2,
191
196
  textAppBar: e.grey5,
192
197
  textAppBarSelected: e.grey2,
193
- successLow: r(e.white, 0.05),
194
- warningLow: r(e.white, 0.05),
195
- errorLow: r(e.white, 0.05),
196
- promoLow: r(e.white, 0.05),
197
- brandLow: r(e.white, 0.05),
198
+ successLow: e.darkModeGrey6,
199
+ warningLow: e.darkModeGrey6,
200
+ errorLow: e.darkModeGrey6,
201
+ promoLow: e.darkModeGrey6,
202
+ brandLow: e.darkModeGrey6,
198
203
  successHigh: e.blauGreen30,
199
204
  warningHigh: e.blauYellow40,
200
205
  errorHigh: e.blauRed40,
201
- promoHigh: e.blauPurple30
206
+ promoHigh: e.blauPurple30,
207
+ successHighInverse: e.blauGreen70,
208
+ warningHighInverse: e.blauYellow70,
209
+ errorHighInverse: e.blauRed70,
210
+ promoHighInverse: e.blauPurple,
211
+ neutralMediumInverse: e.grey5
202
212
  }
203
213
  });
204
- export { n as getBlauSkin, e as palette };
214
+ export { t as getBlauSkin, e as palette };
@@ -1,5 +1,5 @@
1
1
  import { applyAlpha as r } from "../utils/color.js";
2
- import { MOVISTAR_SKIN as a } from "./constants.js";
2
+ import { MOVISTAR_SKIN as n } from "./constants.js";
3
3
  const e = {
4
4
  movistarBlue: "#019DF4",
5
5
  movistarBlue10: "#E6F5FD",
@@ -44,7 +44,7 @@ const e = {
44
44
  darkModeGrey: "#242424"
45
45
  }, d = (o)=>{
46
46
  const t = {
47
- name: a,
47
+ name: n,
48
48
  colors: {
49
49
  appBarBackground: e.white,
50
50
  background: e.white,
@@ -133,7 +133,12 @@ const e = {
133
133
  successHigh: e.movistarGreen70,
134
134
  warningHigh: e.egg80,
135
135
  errorHigh: e.pepper70,
136
- promoHigh: e.purple70
136
+ promoHigh: e.purple70,
137
+ successHighInverse: e.movistarGreen70,
138
+ warningHighInverse: e.egg80,
139
+ errorHighInverse: e.pepper70,
140
+ promoHighInverse: e.purple70,
141
+ neutralMediumInverse: e.grey5
137
142
  },
138
143
  darkModeColors: {
139
144
  brand: e.movistarBlue,
@@ -199,15 +204,20 @@ const e = {
199
204
  textNavigationSearchBarText: e.grey2,
200
205
  textAppBar: e.grey5,
201
206
  textAppBarSelected: e.grey2,
202
- successLow: r(e.white, 0.05),
203
- warningLow: r(e.white, 0.05),
204
- errorLow: r(e.white, 0.05),
205
- promoLow: r(e.white, 0.05),
206
- brandLow: r(e.white, 0.05),
207
+ successLow: e.grey6,
208
+ warningLow: e.grey6,
209
+ errorLow: e.grey6,
210
+ promoLow: e.grey6,
211
+ brandLow: e.grey6,
207
212
  successHigh: e.movistarGreen40,
208
213
  warningHigh: e.egg40,
209
214
  errorHigh: e.pepper40,
210
- promoHigh: e.purple40
215
+ promoHigh: e.purple40,
216
+ successHighInverse: e.movistarGreen70,
217
+ warningHighInverse: e.egg80,
218
+ errorHighInverse: e.pepper70,
219
+ promoHighInverse: e.purple70,
220
+ neutralMediumInverse: e.grey5
211
221
  },
212
222
  textPresets: {
213
223
  text5: {