@telefonica/mistica 14.15.0 → 14.16.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 (88) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/card.d.ts +3 -3
  3. package/dist/card.js +86 -90
  4. package/dist/checkbox.css-mistica.js +4 -4
  5. package/dist/checkbox.js +10 -9
  6. package/dist/credit-card-number-field.js +22 -19
  7. package/dist/cvv-field.js +60 -47
  8. package/dist/date-time-picker.d.ts +10 -0
  9. package/dist/date-time-picker.js +54 -35
  10. package/dist/hooks.d.ts +1 -1
  11. package/dist/icons/icon-cvv-amex.d.ts +1 -0
  12. package/dist/icons/icon-cvv-amex.js +5 -4
  13. package/dist/icons/icon-cvv-visa-mc.d.ts +1 -0
  14. package/dist/icons/icon-cvv-visa-mc.js +7 -6
  15. package/dist/index.d.ts +1 -0
  16. package/dist/list.css-mistica.js +1 -1
  17. package/dist/list.js +90 -91
  18. package/dist/package-version.js +1 -1
  19. package/dist/radio-button.css-mistica.js +12 -12
  20. package/dist/radio-button.js +34 -33
  21. package/dist/search-field.js +8 -8
  22. package/dist/select.css-mistica.js +6 -6
  23. package/dist/select.js +145 -142
  24. package/dist/skins/blau.js +10 -0
  25. package/dist/skins/defaults.js +10 -0
  26. package/dist/skins/movistar-legacy.js +10 -0
  27. package/dist/skins/movistar.js +10 -0
  28. package/dist/skins/o2.js +10 -0
  29. package/dist/skins/telefonica.js +12 -2
  30. package/dist/skins/types/index.d.ts +10 -0
  31. package/dist/skins/vivo-new.js +10 -0
  32. package/dist/skins/vivo.js +10 -0
  33. package/dist/switch-component.css-mistica.js +9 -9
  34. package/dist/switch-component.js +16 -15
  35. package/dist/tabs.js +32 -28
  36. package/dist/text-field-base.js +44 -44
  37. package/dist/theme-context-provider.js +25 -24
  38. package/dist/theme.d.ts +5 -2
  39. package/dist/theme.js +73 -24
  40. package/dist/video.d.ts +7 -1
  41. package/dist/video.js +116 -76
  42. package/dist-es/card.js +115 -119
  43. package/dist-es/checkbox.css-mistica.js +4 -4
  44. package/dist-es/checkbox.js +21 -20
  45. package/dist-es/credit-card-number-field.js +23 -20
  46. package/dist-es/cvv-field.js +74 -61
  47. package/dist-es/date-time-picker.js +66 -47
  48. package/dist-es/icons/icon-cvv-amex.js +5 -4
  49. package/dist-es/icons/icon-cvv-visa-mc.js +9 -8
  50. package/dist-es/list.css-mistica.js +1 -1
  51. package/dist-es/list.js +114 -115
  52. package/dist-es/package-version.js +1 -1
  53. package/dist-es/radio-button.css-mistica.js +6 -6
  54. package/dist-es/radio-button.js +38 -37
  55. package/dist-es/search-field.js +7 -7
  56. package/dist-es/select.css-mistica.js +5 -5
  57. package/dist-es/select.js +173 -170
  58. package/dist-es/skins/blau.js +10 -0
  59. package/dist-es/skins/defaults.js +10 -0
  60. package/dist-es/skins/movistar-legacy.js +10 -0
  61. package/dist-es/skins/movistar.js +10 -0
  62. package/dist-es/skins/o2.js +10 -0
  63. package/dist-es/skins/telefonica.js +12 -2
  64. package/dist-es/skins/vivo-new.js +10 -0
  65. package/dist-es/skins/vivo.js +10 -0
  66. package/dist-es/style.css +1 -1
  67. package/dist-es/switch-component.css-mistica.js +7 -7
  68. package/dist-es/switch-component.js +37 -36
  69. package/dist-es/tabs.js +49 -45
  70. package/dist-es/text-field-base.js +64 -64
  71. package/dist-es/theme-context-provider.js +56 -55
  72. package/dist-es/theme.js +69 -20
  73. package/dist-es/video.js +121 -81
  74. package/package.json +2 -2
  75. package/dist/cvv-field.css-mistica.js +0 -21
  76. package/dist/cvv-field.css.d.ts +0 -2
  77. package/dist/cvv-field.css.ts.vanilla.css-mistica.js +0 -11
  78. package/dist/icons/icon-creditcard.d.ts +0 -7
  79. package/dist/icons/icon-creditcard.js +0 -33
  80. package/dist/icons/icon-info-cvv.d.ts +0 -7
  81. package/dist/icons/icon-info-cvv.js +0 -26
  82. package/dist/icons/icon-search.d.ts +0 -7
  83. package/dist/icons/icon-search.js +0 -32
  84. package/dist-es/cvv-field.css-mistica.js +0 -4
  85. package/dist-es/cvv-field.css.ts.vanilla.css-mistica.js +0 -2
  86. package/dist-es/icons/icon-creditcard.js +0 -24
  87. package/dist-es/icons/icon-info-cvv.js +0 -17
  88. package/dist-es/icons/icon-search.js +0 -23
package/dist-es/select.js CHANGED
@@ -50,139 +50,140 @@ function _object_spread_props(target, source) {
50
50
  }
51
51
  return target;
52
52
  }
53
- import { jsxs as b, jsx as c, Fragment as ye } from "react/jsx-runtime";
53
+ import { jsxs as _, jsx as r, Fragment as Ne } from "react/jsx-runtime";
54
54
  import * as o from "react";
55
55
  import ee from "classnames";
56
- import { useForm as Ce } from "./form-context.js";
57
- import { useAriaId as Ne, useTheme as Ae } from "./hooks.js";
58
- import { TAB as Re, ESC as be, ENTER as te, SPACE as ne, UP as _e, DOWN as ke } from "./utils/key-codes.js";
59
- import { FieldContainer as Ve, HelperText as Pe, Label as De } from "./text-field-components.js";
56
+ import { useForm as Re } from "./form-context.js";
57
+ import { useAriaId as Ae, useTheme as ke, useScreenSize as _e } from "./hooks.js";
58
+ import { TAB as be, ESC as Pe, ENTER as te, SPACE as ne, UP as Ve, DOWN as De } from "./utils/key-codes.js";
59
+ import { FieldContainer as Me, HelperText as He, Label as Fe } from "./text-field-components.js";
60
60
  import oe from "./generated/mistica-icons/icon-chevron-down-regular.js";
61
- import { TextFieldBaseAutosuggest as Me } from "./text-field-base.js";
62
- import He from "./overlay.js";
63
- import { isAndroid as Fe, isIos as Ge } from "./utils/platform.js";
64
- import { cancelEvent as p } from "./utils/dom.js";
65
- import { Text3 as Ze } from "./text.js";
66
- import { selectVariants as We, arrowDown as Be, selectContainerVariants as Le, selectTextVariants as $e, vars as y, optionsContainer as qe, optionsAnimationsVariants as re, menuItem as je, menuItemSelected as ze } from "./select.css-mistica.js";
67
- import { assignInlineVars as Ke } from "@vanilla-extract/dynamic";
68
- const Ue = (param)=>{
69
- let { id: se , label: m , helperText: ie , value: ce , onChangeValue: _ , name: s , fullWidth: k , options: u , optional: V , disabled: le , error: ae , onBlur: P , autoFocus: $ = !1 , native: ue } = param;
61
+ import { TextFieldBaseAutosuggest as Ge } from "./text-field-base.js";
62
+ import Ze from "./overlay.js";
63
+ import { isAndroid as Be, isIos as We } from "./utils/platform.js";
64
+ import { cancelEvent as h } from "./utils/dom.js";
65
+ import { Text3 as Le } from "./text.js";
66
+ import { selectVariants as $e, arrowDown as qe, selectContainerVariants as ze, selectTextVariants as je, vars as C, optionsContainer as Ke, optionsAnimationsVariants as se, menuItem as Ue, menuItemSelected as Xe } from "./select.css-mistica.js";
67
+ import { assignInlineVars as Je } from "@vanilla-extract/dynamic";
68
+ import { Portal as Qe } from "./portal.js";
69
+ const Ye = (param)=>{
70
+ let { id: re , label: d , helperText: ie , value: ce , onChangeValue: b , name: i , fullWidth: P , options: u , optional: V , disabled: le , error: ae , onBlur: D , autoFocus: $ = !1 , native: ue } = param;
70
71
  var Y;
71
- const h = o.useRef(null), d = o.useRef(null), S = o.useRef(null), g = o.useRef(null), C = o.useRef(/* @__PURE__ */ new Map()), [de, fe] = o.useState(!0), [f, pe] = o.useState(), [D, q] = o.useState(!1), [j, z] = o.useState(!1), [K, w] = o.useState(!1), [a, M] = o.useState({}), [T, H] = o.useState(), F = o.useRef(null), G = Ne(se), { rawValues: me , setRawValue: Z , setValue: W , formStatus: he , formErrors: U , setFormError: Se , register: B } = Ce(), { platformOverrides: X } = Ae(), ge = ue || process.env.NODE_ENV === "test" && !process.env.SSR_TEST || Fe(X) || Ge(X), v = le || he === "sending", N = ae || !!U[s], J = U[s] || ie, l = ce !== null && ce !== void 0 ? ce : me[s], A = (e)=>{
72
- _ == null || _(e), Se({
73
- name: s,
72
+ const S = o.useRef(null), f = o.useRef(null), g = o.useRef(null), T = o.useRef(null), N = o.useRef(/* @__PURE__ */ new Map()), [de, fe] = o.useState(!0), [p, pe] = o.useState(), [M, q] = o.useState(!1), [z, j] = o.useState(!1), [K, x] = o.useState(!1), [a, H] = o.useState({}), [v, F] = o.useState(), G = o.useRef(null), Z = Ae(re), { rawValues: me , setRawValue: B , setValue: W , formStatus: he , formErrors: U , setFormError: Se , register: L } = Re(), { platformOverrides: X } = ke(), ge = ue || process.env.NODE_ENV === "test" && !process.env.SSR_TEST || Be(X) || We(X), I = le || he === "sending", R = ae || !!U[i], J = U[i] || ie, l = ce !== null && ce !== void 0 ? ce : me[i], A = (e)=>{
73
+ b == null || b(e), Se({
74
+ name: i,
74
75
  error: ""
75
- }), Z({
76
- name: s,
76
+ }), B({
77
+ name: i,
77
78
  value: e
78
79
  }), W({
79
- name: s,
80
+ name: i,
80
81
  value: e
81
82
  });
82
- }, I = (e)=>{
83
+ }, E = (e)=>{
83
84
  if (e) {
84
- if (S != null && S.current) {
85
- const { top: r , width: E , left: x , height: L } = S.current.getBoundingClientRect(), O = r + L, R = Math.min(u.length, 8) * 48 + 16;
86
- if (O + R + 12 > window.innerHeight) {
87
- const we = window.innerHeight - O;
88
- if (r > we) {
89
- const Oe = r - R;
90
- M({
91
- minWidth: E,
92
- left: x,
93
- top: Math.max(Oe, 12),
94
- maxHeight: Math.min(r - 12, R),
85
+ if (g != null && g.current) {
86
+ const s = g.current.getBoundingClientRect(), m = s.top, w = s.width, O = s.left, Oe = s.height, y = m + Oe, k = Math.min(u.length, 8) * 48 + 16;
87
+ if (y + k + 12 > window.innerHeight) {
88
+ const ye = window.innerHeight - y;
89
+ if (m > ye) {
90
+ const Ce = m - k;
91
+ H({
92
+ minWidth: w,
93
+ left: O,
94
+ top: Math.max(Ce, 12),
95
+ maxHeight: Math.min(m - 12, k),
95
96
  transformOrigin: "center bottom"
96
97
  });
97
- } else M({
98
- minWidth: E,
99
- top: O,
100
- left: x,
101
- maxHeight: window.innerHeight - O - 12,
98
+ } else H({
99
+ minWidth: w,
100
+ top: y,
101
+ left: O,
102
+ maxHeight: window.innerHeight - y - 12,
102
103
  transformOrigin: "center top"
103
104
  });
104
- } else M({
105
- minWidth: E,
106
- top: O,
107
- left: x,
108
- maxHeight: R,
105
+ } else H({
106
+ minWidth: w,
107
+ top: y,
108
+ left: O,
109
+ maxHeight: k,
109
110
  transformOrigin: "center top"
110
111
  });
111
112
  }
112
113
  q(!0), requestAnimationFrame(()=>{
113
- F.current && g.current && "scrollTop" in g.current && (g.current.scrollTop = F.current), z(!0);
114
- }), H(f !== null && f !== void 0 ? f : l);
115
- } else z(!1), q(!1), H(void 0);
114
+ G.current && T.current && "scrollTop" in T.current && (T.current.scrollTop = G.current), j(!0);
115
+ }), F(p !== null && p !== void 0 ? p : l);
116
+ } else j(!1), q(!1), F(void 0);
116
117
  }, Q = (e)=>{
117
118
  var t;
118
- F.current = (t = g.current) == null ? void 0 : t.scrollTop, I(!1), A && typeof e == "string" && A(e), typeof l > "u" && pe(e);
119
+ G.current = (t = T.current) == null ? void 0 : t.scrollTop, E(!1), A && typeof e == "string" && A(e), typeof l > "u" && pe(e);
119
120
  }, Te = (e)=>{
120
121
  var n;
121
- const t = (n = g.current) == null ? void 0 : n.getBoundingClientRect();
122
- if (t && e && C.current.has(e)) {
123
- const i = C.current.get(e), r = i == null ? void 0 : i.getBoundingClientRect();
124
- if (r && r.top + r.height / 2 >= t.top + t.height) {
125
- i == null || i.scrollIntoView();
122
+ const t = (n = T.current) == null ? void 0 : n.getBoundingClientRect();
123
+ if (t && e && N.current.has(e)) {
124
+ const c = N.current.get(e), s = c == null ? void 0 : c.getBoundingClientRect();
125
+ if (s && s.top + s.height / 2 >= t.top + t.height) {
126
+ c == null || c.scrollIntoView();
126
127
  return;
127
128
  }
128
- r && r.top + r.height / 2 <= t.top && (i == null || i.scrollIntoView(!1));
129
+ s && s.top + s.height / 2 <= t.top && (c == null || c.scrollIntoView(!1));
129
130
  }
130
- }, ve = d.current, Ie = h.current;
131
+ }, ve = f.current, Ie = S.current;
131
132
  o.useEffect(()=>{
132
- Z({
133
- name: s,
133
+ B({
134
+ name: i,
134
135
  value: l
135
136
  }), W({
136
- name: s,
137
+ name: i,
137
138
  value: l
138
139
  });
139
140
  }, [
140
- s,
141
- Z,
141
+ i,
142
+ B,
142
143
  W,
143
144
  l
144
- ]), o.useEffect(()=>(B(s, {
145
- input: h.current,
146
- focusableElement: d.current
145
+ ]), o.useEffect(()=>(L(i, {
146
+ input: S.current,
147
+ focusableElement: f.current
147
148
  }), ()=>{
148
- B(s, {
149
+ L(i, {
149
150
  input: null,
150
151
  focusableElement: null
151
152
  });
152
153
  }), [
153
- s,
154
- B,
155
- d,
156
- h,
154
+ i,
155
+ L,
156
+ f,
157
+ S,
157
158
  ve,
158
159
  Ie
159
160
  ]), o.useEffect(()=>{
160
161
  const e = (n)=>{
161
- var E;
162
- const r = {
163
- [_e]: -1,
164
- [ke]: 1
162
+ var m;
163
+ const s = {
164
+ [Ve]: -1,
165
+ [De]: 1
165
166
  }[n.keyCode];
166
- if (r) {
167
- p(n);
167
+ if (s) {
168
+ h(n);
168
169
  var _ref;
169
- const x = (_ref = (E = u[u.findIndex((param)=>{
170
- let { value: L } = param;
171
- return L === T;
172
- }) + r]) == null ? void 0 : E.value) !== null && _ref !== void 0 ? _ref : T;
173
- H(x), Te(x);
170
+ const w = (_ref = (m = u[u.findIndex((param)=>{
171
+ let { value: O } = param;
172
+ return O === v;
173
+ }) + s]) == null ? void 0 : m.value) !== null && _ref !== void 0 ? _ref : v;
174
+ F(w), Te(w);
174
175
  }
175
176
  }, t = (n)=>{
176
- D && (n.keyCode === Re && p(n), n.keyCode === be && I(!1), (n.keyCode === te || n.keyCode === ne) && (p(n), u.findIndex((param)=>{
177
- let { value: i } = param;
178
- return i === T;
179
- }) !== -1 && T !== f && Q(T), I(!1))), j && e(n);
177
+ M && (n.keyCode === be && h(n), n.keyCode === Pe && E(!1), (n.keyCode === te || n.keyCode === ne) && (h(n), u.findIndex((param)=>{
178
+ let { value: c } = param;
179
+ return c === v;
180
+ }) !== -1 && v !== p && Q(v), E(!1))), z && e(n);
180
181
  };
181
182
  return document.addEventListener("keydown", t, !1), ()=>{
182
183
  document.removeEventListener("keydown", t, !1);
183
184
  };
184
185
  }), o.useEffect(()=>{
185
- $ && d.current && d.current.focus();
186
+ $ && f.current && f.current.focus();
186
187
  }, [
187
188
  $
188
189
  ]), o.useEffect(()=>{
@@ -194,59 +195,59 @@ const Ue = (param)=>{
194
195
  let { value: n } = param;
195
196
  return n === e;
196
197
  })) == null ? void 0 : t.text : "";
197
- }, xe = {
198
+ }, we = {
198
199
  tabIndex: 0,
199
- onFocus: ()=>w(!0),
200
- onBlur: ()=>w(!1),
200
+ onFocus: ()=>x(!0),
201
+ onBlur: ()=>x(!1),
201
202
  onClick: ()=>{
202
- I(!0), w(!0);
203
+ E(!0), x(!0);
203
204
  },
204
205
  onKeyDown: (e)=>{
205
- !D && (e.keyCode === ne || e.keyCode === te) && (p(e), I(!0));
206
+ !M && (e.keyCode === ne || e.keyCode === te) && (h(e), E(!0));
206
207
  }
207
- };
208
+ }, { isDesktopOrBigger: xe } = _e();
208
209
  var _ref, _a_transformOrigin;
209
- return ge || de ? /* @__PURE__ */ b(Ve, {
210
- disabled: v,
211
- helperText: /* @__PURE__ */ c(Pe, {
212
- error: N,
210
+ return ge || de ? /* @__PURE__ */ _(Me, {
211
+ disabled: I,
212
+ helperText: /* @__PURE__ */ r(He, {
213
+ error: R,
213
214
  leftText: J
214
215
  }),
215
- fieldRef: S,
216
- fullWidth: k,
216
+ fieldRef: g,
217
+ fullWidth: P,
217
218
  children: [
218
- m && /* @__PURE__ */ c(De, {
219
- error: N,
220
- forId: G,
221
- inputState: K ? "focused" : ((_ref = l !== null && l !== void 0 ? l : f) !== null && _ref !== void 0 ? _ref : (Y = h.current) == null ? void 0 : Y.value) ? "filled" : "default",
219
+ d && /* @__PURE__ */ r(Fe, {
220
+ error: R,
221
+ forId: Z,
222
+ inputState: K ? "focused" : ((_ref = l !== null && l !== void 0 ? l : p) !== null && _ref !== void 0 ? _ref : (Y = S.current) == null ? void 0 : Y.value) ? "filled" : "default",
222
223
  optional: V,
223
- children: m
224
+ children: d
224
225
  }),
225
- /* @__PURE__ */ b("select", {
226
- className: We[v ? "disabled" : "default"],
227
- id: G,
228
- "aria-invalid": !!N,
226
+ /* @__PURE__ */ _("select", {
227
+ className: $e[I ? "disabled" : "default"],
228
+ id: Z,
229
+ "aria-invalid": !!R,
229
230
  value: l,
230
231
  required: !V,
231
- disabled: v,
232
+ disabled: I,
232
233
  onChange: (e)=>{
233
234
  A && A(e.target.value);
234
235
  },
235
- onFocus: ()=>w(!0),
236
+ onFocus: ()=>x(!0),
236
237
  onBlur: (e)=>{
237
- w(!1), P == null || P(e);
238
+ x(!1), D == null || D(e);
238
239
  },
239
240
  ref: (e)=>{
240
241
  [
241
- h,
242
- d
242
+ S,
243
+ f
243
244
  ].forEach((t)=>{
244
245
  t.current = e;
245
246
  });
246
247
  },
247
248
  style: {
248
- paddingTop: m ? 24 : 16,
249
- paddingBottom: m ? 8 : 16,
249
+ paddingTop: d ? 24 : 16,
250
+ paddingBottom: d ? 8 : 16,
250
251
  // Override default browser opacity when disabled. This opacity also affects the label.
251
252
  // Without this fix, the label is invisible when disabled
252
253
  opacity: 1
@@ -257,7 +258,7 @@ const Ue = (param)=>{
257
258
  return !!e;
258
259
  }) && // if no "empty" option exists, insert a dummy empty option
259
260
  // this is needed to allow a native select with no selected option
260
- /* @__PURE__ */ c("option", {
261
+ /* @__PURE__ */ r("option", {
261
262
  value: "",
262
263
  style: {
263
264
  display: "none"
@@ -265,100 +266,102 @@ const Ue = (param)=>{
265
266
  }),
266
267
  u.map((param)=>/* @__PURE__ */ {
267
268
  let { value: e , text: t } = param;
268
- return c("option", {
269
+ return r("option", {
269
270
  value: e,
270
271
  children: t
271
272
  }, e);
272
273
  })
273
274
  ]
274
275
  }),
275
- /* @__PURE__ */ c("div", {
276
- className: Be,
276
+ /* @__PURE__ */ r("div", {
277
+ className: qe,
277
278
  "aria-hidden": !0,
278
- children: /* @__PURE__ */ c(oe, {
279
+ children: /* @__PURE__ */ r(oe, {
279
280
  size: 20
280
281
  })
281
282
  })
282
283
  ]
283
- }) : /* @__PURE__ */ b(ye, {
284
+ }) : /* @__PURE__ */ _(Ne, {
284
285
  children: [
285
- /* @__PURE__ */ b("div", _object_spread_props(_object_spread({
286
- className: Le[k ? "fullWidth" : "default"],
286
+ /* @__PURE__ */ _("div", _object_spread_props(_object_spread({
287
+ className: ze[P ? "fullWidth" : "default"],
287
288
  role: "button",
288
289
  "aria-haspopup": "listbox",
289
- ref: d
290
- }, !v && xe), {
290
+ ref: f
291
+ }, !I && we), {
291
292
  children: [
292
- /* @__PURE__ */ c(Me, {
293
+ /* @__PURE__ */ r(Ge, {
293
294
  style: {
294
295
  visibility: "hidden"
295
296
  },
296
- fullWidth: k,
297
- endIcon: /* @__PURE__ */ c(oe, {
297
+ fullWidth: P,
298
+ endIcon: /* @__PURE__ */ r(oe, {
298
299
  size: 20
299
300
  }),
300
301
  focus: K,
301
- label: m,
302
+ label: d,
302
303
  value: l,
303
- shrinkLabel: !!(l || f),
304
- name: s,
304
+ shrinkLabel: !!(l || p),
305
+ name: i,
305
306
  helperText: J,
306
307
  required: !V,
307
- disabled: v,
308
- id: G,
309
- error: N,
310
- inputRef: h,
311
- fieldRef: S
308
+ disabled: I,
309
+ id: Z,
310
+ error: R,
311
+ inputRef: S,
312
+ fieldRef: g
312
313
  }),
313
- /* @__PURE__ */ c("div", {
314
- className: $e[v ? "disabled" : "default"],
314
+ /* @__PURE__ */ r("div", {
315
+ className: je[I ? "disabled" : "default"],
315
316
  style: {
316
- top: m ? 27 : 17
317
+ top: xe ? d ? 28 : 18 : d ? 25 : 16
317
318
  },
318
- children: Ee(l !== null && l !== void 0 ? l : f)
319
+ children: Ee(l !== null && l !== void 0 ? l : p)
319
320
  })
320
321
  ]
321
322
  })),
322
- D && /* @__PURE__ */ c(He, {
323
+ M && /* @__PURE__ */ r(Ze, {
323
324
  onPress: (e)=>{
324
- I(!1), p(e);
325
+ E(!1), h(e);
325
326
  },
326
327
  disableScroll: !0,
327
- children: /* @__PURE__ */ c("ul", {
328
- style: Ke({
329
- [y.top]: a.top ? `${a.top}px` : "",
330
- [y.left]: a.left ? `${a.left}px` : "",
331
- [y.maxHeight]: a.maxHeight ? `${a.maxHeight}px` : "",
332
- [y.minWidth]: a.minWidth ? `${a.minWidth}px` : "",
333
- [y.transformOrigin]: (_a_transformOrigin = a.transformOrigin) !== null && _a_transformOrigin !== void 0 ? _a_transformOrigin : ""
334
- }),
335
- onPointerDown: p,
336
- className: ee(qe, j ? re.show : re.hide),
337
- role: "listbox",
338
- ref: g,
339
- children: u.map((param)=>/* @__PURE__ */ {
340
- let { value: e , text: t } = param;
341
- return c("li", {
342
- role: "option",
343
- "aria-selected": e === (f !== null && f !== void 0 ? f : l),
344
- "data-value": e,
345
- className: ee(je, {
346
- [ze]: e === T || e === (f !== null && f !== void 0 ? f : l)
347
- }),
348
- onPointerDown: p,
349
- onClick: ()=>Q(e),
350
- ref: (n)=>{
351
- n ? C.current.set(e, n) : C.current.delete(e);
352
- },
353
- children: /* @__PURE__ */ c(Ze, {
354
- regular: !0,
355
- children: t
356
- })
357
- }, e);
328
+ children: /* @__PURE__ */ r(Qe, {
329
+ children: /* @__PURE__ */ r("ul", {
330
+ style: Je({
331
+ [C.top]: a.top ? `${a.top}px` : "",
332
+ [C.left]: a.left ? `${a.left}px` : "",
333
+ [C.maxHeight]: a.maxHeight ? `${a.maxHeight}px` : "",
334
+ [C.minWidth]: a.minWidth ? `${a.minWidth}px` : "",
335
+ [C.transformOrigin]: (_a_transformOrigin = a.transformOrigin) !== null && _a_transformOrigin !== void 0 ? _a_transformOrigin : ""
336
+ }),
337
+ onPointerDown: h,
338
+ className: ee(Ke, z ? se.show : se.hide),
339
+ role: "listbox",
340
+ ref: T,
341
+ children: u.map((param)=>/* @__PURE__ */ {
342
+ let { value: e , text: t } = param;
343
+ return r("li", {
344
+ role: "option",
345
+ "aria-selected": e === (p !== null && p !== void 0 ? p : l),
346
+ "data-value": e,
347
+ className: ee(Ue, {
348
+ [Xe]: e === v || e === (p !== null && p !== void 0 ? p : l)
349
+ }),
350
+ onPointerDown: h,
351
+ onClick: ()=>Q(e),
352
+ ref: (n)=>{
353
+ n ? N.current.set(e, n) : N.current.delete(e);
354
+ },
355
+ children: /* @__PURE__ */ r(Le, {
356
+ regular: !0,
357
+ children: t
358
+ })
359
+ }, e);
360
+ })
358
361
  })
359
362
  })
360
363
  })
361
364
  ]
362
365
  });
363
- }, dt = Ue;
364
- export { dt as default };
366
+ }, St = Ye;
367
+ export { St as default };
@@ -299,6 +299,16 @@ const e = {
299
299
  },
300
300
  text10: {
301
301
  weight: "light"
302
+ },
303
+ tabsLabel: {
304
+ size: {
305
+ mobile: 16,
306
+ desktop: 18
307
+ },
308
+ lineHeight: {
309
+ mobile: 24,
310
+ desktop: 24
311
+ }
302
312
  }
303
313
  }
304
314
  });
@@ -31,6 +31,16 @@ const t = {
31
31
  },
32
32
  indicator: {
33
33
  weight: "medium"
34
+ },
35
+ tabsLabel: {
36
+ size: {
37
+ mobile: 16,
38
+ desktop: 18
39
+ },
40
+ lineHeight: {
41
+ mobile: 24,
42
+ desktop: 24
43
+ }
34
44
  }
35
45
  }, e = {
36
46
  button: "4px",
@@ -303,6 +303,16 @@ const e = {
303
303
  },
304
304
  text10: {
305
305
  weight: "bold"
306
+ },
307
+ tabsLabel: {
308
+ size: {
309
+ mobile: 16,
310
+ desktop: 18
311
+ },
312
+ lineHeight: {
313
+ mobile: 24,
314
+ desktop: 24
315
+ }
306
316
  }
307
317
  }
308
318
  };
@@ -303,6 +303,16 @@ const e = {
303
303
  },
304
304
  text10: {
305
305
  weight: "bold"
306
+ },
307
+ tabsLabel: {
308
+ size: {
309
+ mobile: 16,
310
+ desktop: 18
311
+ },
312
+ lineHeight: {
313
+ mobile: 24,
314
+ desktop: 24
315
+ }
306
316
  }
307
317
  }
308
318
  });
@@ -303,6 +303,16 @@ const e = {
303
303
  },
304
304
  text10: {
305
305
  weight: "light"
306
+ },
307
+ tabsLabel: {
308
+ size: {
309
+ mobile: 16,
310
+ desktop: 18
311
+ },
312
+ lineHeight: {
313
+ mobile: 24,
314
+ desktop: 24
315
+ }
306
316
  }
307
317
  }
308
318
  });
@@ -36,7 +36,7 @@ const e = {
36
36
  darkModeBlack: "#191919",
37
37
  darkModeGrey: "#242424",
38
38
  darkModeGrey6: "#313235"
39
- }, c = ()=>({
39
+ }, d = ()=>({
40
40
  name: o,
41
41
  colors: {
42
42
  appBarBackground: e.white,
@@ -297,7 +297,17 @@ const e = {
297
297
  },
298
298
  text10: {
299
299
  weight: "regular"
300
+ },
301
+ tabsLabel: {
302
+ size: {
303
+ mobile: 16,
304
+ desktop: 18
305
+ },
306
+ lineHeight: {
307
+ mobile: 24,
308
+ desktop: 24
309
+ }
300
310
  }
301
311
  }
302
312
  });
303
- export { c as getTelefonicaSkin, e as palette };
313
+ export { d as getTelefonicaSkin, e as palette };
@@ -297,6 +297,16 @@ const e = {
297
297
  },
298
298
  text10: {
299
299
  weight: "regular"
300
+ },
301
+ tabsLabel: {
302
+ size: {
303
+ mobile: 18,
304
+ desktop: 18
305
+ },
306
+ lineHeight: {
307
+ mobile: 24,
308
+ desktop: 24
309
+ }
300
310
  }
301
311
  }
302
312
  });
@@ -297,6 +297,16 @@ const e = {
297
297
  },
298
298
  text10: {
299
299
  weight: "light"
300
+ },
301
+ tabsLabel: {
302
+ size: {
303
+ mobile: 16,
304
+ desktop: 18
305
+ },
306
+ lineHeight: {
307
+ mobile: 24,
308
+ desktop: 24
309
+ }
300
310
  }
301
311
  }
302
312
  });