@telefonica/mistica 14.0.0 → 14.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.
@@ -9,12 +9,12 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- FunnelNavigationBar: ()=>Y1,
13
- MainNavigationBar: ()=>Q1,
14
- NavigationBar: ()=>X1,
15
- NavigationBarAction: ()=>e2,
16
- NavigationBarActionGroup: ()=>z1,
17
- NavigationBarLogo: ()=>G
12
+ FunnelNavigationBar: ()=>z1,
13
+ MainNavigationBar: ()=>X1,
14
+ NavigationBar: ()=>Y1,
15
+ NavigationBarAction: ()=>r2,
16
+ NavigationBarActionGroup: ()=>e2,
17
+ NavigationBarLogo: ()=>P
18
18
  });
19
19
  const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
20
20
  const _reactTransitionGroup = require("react-transition-group");
@@ -164,7 +164,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
164
164
  }
165
165
  return target;
166
166
  }
167
- const g1 = (param)=>{
167
+ const H1 = (param)=>{
168
168
  let { size: r } = param;
169
169
  const { isDarkMode: t } = (0, _hooksJs.useTheme)(), n = (0, _themeVariantContextJs.useIsInverseVariant)() && !t ? _skinContractCssMisticaJs.vars.colors.inverse : _skinContractCssMisticaJs.vars.colors.brand;
170
170
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("svg", {
@@ -177,7 +177,7 @@ const g1 = (param)=>{
177
177
  d: "M5.75989 5.73747C4.83318 5.7524 3.12261 6.21673 2.34128 9.45937C2.00085 10.8723 1.86931 12.3449 2.16077 14.0979C2.42943 15.7147 2.90545 17.1101 3.22629 17.8792C3.33689 18.1441 3.50812 18.4206 3.6405 18.5906C4.02129 19.0797 4.65503 19.0484 4.92132 18.9151C5.2116 18.7699 5.54527 18.4194 5.42453 17.6187C5.36611 17.2319 5.19775 16.666 5.10302 16.3515C4.81224 15.3863 4.42521 14.2216 4.39143 13.392C4.34635 12.2823 4.77695 12.1369 5.06283 12.0731C5.54375 11.9655 5.94682 12.5021 6.3298 13.1746C6.78691 13.9771 7.57026 15.3991 8.20924 16.4853C8.78607 17.4658 9.85057 18.5156 11.5601 18.4436C13.303 18.3703 14.5877 17.6946 15.2494 15.5671C15.7447 13.9756 16.0823 12.7863 16.6255 11.5683C17.2501 10.1677 18.0833 9.41801 18.7849 9.64692C19.4364 9.85935 19.599 10.5064 19.6067 11.4576C19.6137 12.2989 19.5179 13.2264 19.4435 13.9078C19.4164 14.1551 19.3675 14.6525 19.3874 14.9286C19.4267 15.4715 19.6581 16.0138 20.2597 16.1006C20.9006 16.1929 21.4148 15.6725 21.6201 15.0434C21.7011 14.7955 21.7702 14.4161 21.8075 14.1468C21.9958 12.7873 22.0446 11.8735 21.9598 10.4824C21.8604 8.85587 21.5471 7.3726 21.0007 6.08889C20.4779 4.8613 19.6382 4.07454 18.5612 4.00504C17.369 3.92817 16.0009 4.73192 15.2832 6.29138C14.6216 7.72883 14.0924 9.20455 13.7714 9.95768C13.4458 10.7214 12.9673 11.1921 12.2315 11.2709C11.332 11.367 10.5569 10.7034 9.98921 9.75726C9.49428 8.93257 8.51336 7.3623 7.98853 6.83465C7.49546 6.33891 6.9323 5.71859 5.75989 5.73747Z"
178
178
  })
179
179
  });
180
- }, H1 = (param)=>{
180
+ }, f1 = (param)=>{
181
181
  let { size: r } = param;
182
182
  const { isDarkMode: t } = (0, _hooksJs.useTheme)(), n = (0, _themeVariantContextJs.useIsInverseVariant)() && !t ? _skinContractCssMisticaJs.vars.colors.inverse : _skinContractCssMisticaJs.vars.colors.brand;
183
183
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("svg", {
@@ -206,7 +206,7 @@ const g1 = (param)=>{
206
206
  })
207
207
  ]
208
208
  });
209
- }, f1 = (param)=>{
209
+ }, V1 = (param)=>{
210
210
  let { size: r } = param;
211
211
  const { isDarkMode: t } = (0, _hooksJs.useTheme)(), n = (0, _themeVariantContextJs.useIsInverseVariant)() && !t ? _skinContractCssMisticaJs.vars.colors.inverse : _skinContractCssMisticaJs.vars.colors.brand;
212
212
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("svg", {
@@ -219,7 +219,7 @@ const g1 = (param)=>{
219
219
  d: "M21.5488 16.0335C21.8424 16.1065 22.1266 16.2415 22.3388 16.4558C22.5183 16.6276 22.6411 16.8499 22.7127 17.0838C22.7977 17.3731 22.8193 17.6803 22.7802 17.9787C22.7429 18.2479 22.6501 18.5075 22.5284 18.7511C22.2997 19.1992 21.9805 19.5965 21.6394 19.9683C21.2723 20.3662 20.8766 20.738 20.4814 21.1094C21.2777 21.1069 22.074 21.1092 22.8703 21.1081C22.9135 21.1077 22.9576 21.1055 23 21.1167V22.0552C22.9759 22.0582 22.952 22.0614 22.9283 22.0624L18.8838 22.0622V21.0511C18.9759 20.9616 19.0743 20.8788 19.1687 20.7915C19.5786 20.4276 19.9825 20.0567 20.3632 19.6636C20.7294 19.2771 21.0861 18.873 21.3411 18.4066C21.4566 18.1876 21.5534 17.9491 21.5517 17.6993C21.5505 17.5207 21.4843 17.341 21.3574 17.2104C21.1927 17.0367 20.9529 16.9489 20.716 16.9204C20.3962 16.887 20.0733 16.9517 19.7757 17.0638C19.546 17.1486 19.3328 17.2686 19.1242 17.3931C19.0916 17.0571 19.0577 16.7212 19.0264 16.385C19.5388 16.1368 20.1029 15.987 20.6754 15.9608C20.9677 15.9438 21.2639 15.965 21.5488 16.0335ZM14.8405 5.31598C15.4058 5.52592 15.9429 5.8091 16.4281 6.16147C17.2361 6.74433 17.8939 7.51825 18.3477 8.39085C18.7702 9.19553 19.0213 10.0802 19.1223 10.9769C19.1704 11.4267 19.1906 11.8802 19.1648 12.332C19.1295 13.0499 18.99 13.7632 18.7481 14.4425C18.3674 15.5124 17.7227 16.4967 16.8652 17.2645C16.0449 18.0046 15.0307 18.537 13.947 18.8055C13.1523 19.0037 12.3237 19.0655 11.5063 19.0057C10.6758 18.9451 9.85411 18.7488 9.09547 18.4127C8.21888 18.0263 7.43007 17.4539 6.79756 16.7483C6.02182 15.8873 5.48168 14.8334 5.21175 13.7205C5.07973 13.1805 5.01279 12.6264 5 12.0718V11.7823C5.01178 11.3188 5.05344 10.8555 5.13963 10.3991C5.34506 9.29686 5.79973 8.23067 6.51039 7.34507C7.05786 6.65781 7.75545 6.08488 8.54283 5.67338C9.55445 5.14127 10.703 4.87849 11.8491 4.8504C12.8638 4.81979 13.89 4.96278 14.8405 5.31598ZM11.7686 6.88536C11.3519 6.91848 10.939 7.01031 10.5534 7.16896C10.1453 7.33515 9.76806 7.57136 9.43995 7.86C9.02852 8.21991 8.69266 8.65754 8.43365 9.13235C8.03931 9.85652 7.81866 10.665 7.75717 11.4807C7.72184 11.96 7.74281 12.4429 7.81421 12.9184C7.90715 13.527 8.08442 14.1256 8.36283 14.679C8.59899 15.1493 8.90986 15.5869 9.2996 15.9492C9.7116 16.3365 10.2151 16.6312 10.7604 16.8024C11.2601 16.9599 11.7902 17.0181 12.3138 16.9961C12.8009 16.9736 13.287 16.8782 13.7364 16.6911C14.4144 16.4136 14.9922 15.9302 15.4118 15.3457C15.9534 14.5939 16.259 13.6989 16.3791 12.7929C16.5377 11.6104 16.3647 10.3777 15.831 9.29994C15.592 8.82345 15.2831 8.37604 14.8943 8.00284C14.4766 7.59023 13.9621 7.26917 13.3989 7.08034C12.8773 6.90381 12.3181 6.84622 11.7686 6.88536Z"
220
220
  })
221
221
  });
222
- }, V1 = (param)=>{
222
+ }, b1 = (param)=>{
223
223
  let { size: r } = param;
224
224
  const { isDarkMode: t } = (0, _hooksJs.useTheme)(), n = (0, _themeVariantContextJs.useIsInverseVariant)() && !t ? _skinContractCssMisticaJs.vars.colors.inverse : _skinContractCssMisticaJs.vars.colors.brand;
225
225
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("svg", {
@@ -281,7 +281,7 @@ const g1 = (param)=>{
281
281
  })
282
282
  ]
283
283
  });
284
- }, b1 = (param)=>{
284
+ }, Z1 = (param)=>{
285
285
  let { size: r } = param;
286
286
  const { isDarkMode: t } = (0, _hooksJs.useTheme)(), n = (0, _themeVariantContextJs.useIsInverseVariant)() && !t ? _skinContractCssMisticaJs.vars.colors.inverse : _skinContractCssMisticaJs.vars.colors.brand;
287
287
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("svg", {
@@ -308,35 +308,35 @@ const g1 = (param)=>{
308
308
  })
309
309
  ]
310
310
  });
311
- }, G = (param)=>{
311
+ }, P = (param)=>{
312
312
  let { size: r } = param;
313
313
  const { skinName: t } = (0, _hooksJs.useTheme)(), { isTabletOrSmaller: a } = (0, _hooksJs.useScreenSize)();
314
314
  switch(r = r != null ? r : a ? 40 : 48, t){
315
315
  case "Movistar":
316
- return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(g1, {
316
+ return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(H1, {
317
317
  size: r
318
318
  });
319
319
  case "Vivo":
320
- return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(H1, {
320
+ return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(f1, {
321
321
  size: r
322
322
  });
323
323
  case "O2":
324
324
  case "O2-classic":
325
- return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(f1, {
325
+ return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(V1, {
326
326
  size: r
327
327
  });
328
328
  case "Telefonica":
329
- return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(V1, {
329
+ return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(b1, {
330
330
  size: r
331
331
  });
332
332
  case "Blau":
333
- return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(b1, {
333
+ return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(Z1, {
334
334
  size: r
335
335
  });
336
336
  default:
337
337
  return null;
338
338
  }
339
- }, Z1 = (param)=>/* @__PURE__ */ {
339
+ }, N1 = (param)=>/* @__PURE__ */ {
340
340
  let { isOpen: r } = param;
341
341
  return (0, _jsxRuntimeJs.jsxs)("div", {
342
342
  className: _navigationBarCssMisticaJs.burgerIconContainer,
@@ -353,7 +353,7 @@ const g1 = (param)=>{
353
353
  })
354
354
  ]
355
355
  });
356
- }, N1 = 300, V = (param)=>{
356
+ }, L1 = 300, V = (param)=>{
357
357
  let { children: r , topFixed: t , withBorder: a , isMenuOpen: n , isInverse: i , dataAttributes: d } = param;
358
358
  const { isDarkMode: u } = (0, _hooksJs.useTheme)();
359
359
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("header", _objectSpreadProps(_objectSpread({
@@ -370,19 +370,19 @@ const g1 = (param)=>{
370
370
  }, (0, _domJs.getPrefixedDataAttributes)(d)), {
371
371
  children: r
372
372
  }));
373
- }, Q1 = (param)=>{
373
+ }, X1 = (param)=>{
374
374
  let { sections: r , selectedIndex: t , right: a , logo: n , isInverse: i = !1 , topFixed: d = !0 } = param;
375
- const { texts: u , isDarkMode: M } = (0, _hooksJs.useTheme)(), [C, B] = _react.useState(!1), [I, v] = _react.useState("closed"), x = (0, _hooksJs.useAriaId)(), P = M ? 1 : 0.2, { isTabletOrSmaller: _ } = (0, _hooksJs.useScreenSize)(), w = (0, _modalContextProviderJs.useSetModalState)();
376
- if (n = n != null ? n : /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(G, {}), _) {
375
+ const { texts: u , isDarkMode: M } = (0, _hooksJs.useTheme)(), [C, B] = _react.useState(!1), [I, g] = _react.useState("closed"), x = (0, _hooksJs.useAriaId)(), _ = M ? 1 : 0.2, { isTabletOrSmaller: U } = (0, _hooksJs.useScreenSize)(), w = (0, _modalContextProviderJs.useSetModalState)();
376
+ if (n = n != null ? n : /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(P, {}), U) {
377
377
  const b = ()=>{
378
378
  B(!0), w({
379
379
  isModalOpen: !0
380
380
  });
381
- }, g = ()=>{
381
+ }, v = ()=>{
382
382
  B(!1), w({
383
383
  isModalOpen: !1
384
384
  });
385
- }, p = I !== "open";
385
+ }, p = I !== "open", A = r.length > 1;
386
386
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_jsxRuntimeJs.Fragment, {
387
387
  children: [
388
388
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_focusTrapJs.default, {
@@ -408,13 +408,13 @@ const g1 = (param)=>{
408
408
  space: 24,
409
409
  alignItems: "center",
410
410
  children: [
411
- /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_iconButtonJs.default, {
411
+ A && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_iconButtonJs.default, {
412
412
  "aria-live": "polite",
413
413
  "aria-label": C ? u.closeNavigationMenu : u.openNavigationMenu,
414
414
  "aria-expanded": C,
415
415
  "aria-controls": x,
416
- onPress: C ? g : b,
417
- children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(Z1, {
416
+ onPress: C ? v : b,
417
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(N1, {
418
418
  isOpen: C
419
419
  })
420
420
  }),
@@ -435,25 +435,25 @@ const g1 = (param)=>{
435
435
  })
436
436
  ]
437
437
  }),
438
- /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_portalJs.Portal, {
438
+ A && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_portalJs.Portal, {
439
439
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_focusTrapJs.default, {
440
440
  disabled: p,
441
441
  group: "burger-menu-lock",
442
442
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_reactTransitionGroup.CSSTransition, {
443
443
  onEntering: ()=>{
444
- v("opening");
444
+ g("opening");
445
445
  },
446
446
  onEntered: ()=>{
447
- v("open");
447
+ g("open");
448
448
  },
449
449
  onExiting: ()=>{
450
- v("closing");
450
+ g("closing");
451
451
  },
452
452
  onExited: ()=>{
453
- v("closed");
453
+ g("closed");
454
454
  },
455
455
  in: C,
456
- timeout: N1,
456
+ timeout: L1,
457
457
  classNames: {
458
458
  enter: _navigationBarCssMisticaJs.burgerMenuEnter,
459
459
  enterActive: _navigationBarCssMisticaJs.burgerMenuEnterActive,
@@ -464,16 +464,16 @@ const g1 = (param)=>{
464
464
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("nav", {
465
465
  className: _navigationBarCssMisticaJs.burgerMenu,
466
466
  style: {
467
- boxShadow: I !== "closed" ? `6px 0 4px -4px rgba(0, 0, 0, ${P})` : "none"
467
+ boxShadow: I !== "closed" ? `6px 0 4px -4px rgba(0, 0, 0, ${_})` : "none"
468
468
  },
469
469
  id: x,
470
470
  onClick: ()=>{
471
- g();
471
+ v();
472
472
  },
473
473
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_responsiveLayoutJs.default, {
474
474
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_negativeBoxJs.default, {
475
475
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_listJs.RowList, {
476
- children: r.map((U, j)=>/* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_listJs.Row, _objectSpread({}, U), j))
476
+ children: r.map((j, F)=>/* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_listJs.Row, _objectSpread({}, j), F))
477
477
  })
478
478
  })
479
479
  })
@@ -512,10 +512,10 @@ const g1 = (param)=>{
512
512
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_inlineJs.default, {
513
513
  space: 32,
514
514
  children: r.map((_param, p)=>/* @__PURE__ */ /*#__PURE__*/ {
515
- var { title: b } = _param, g = _objectWithoutProperties(_param, [
515
+ var { title: b } = _param, v = _objectWithoutProperties(_param, [
516
516
  "title"
517
517
  ]);
518
- return /*#__PURE__*/ (0, _react.createElement)(_touchableJs.BaseTouchable, _objectSpreadProps(_objectSpread({}, g), {
518
+ return /*#__PURE__*/ (0, _react.createElement)(_touchableJs.BaseTouchable, _objectSpreadProps(_objectSpread({}, v), {
519
519
  key: p,
520
520
  className: (0, _classnames.default)(_navigationBarCssMisticaJs.section, {
521
521
  [_navigationBarCssMisticaJs.selectedSectionVariantes[i ? "inverse" : "default"]]: p === t
@@ -543,7 +543,7 @@ const g1 = (param)=>{
543
543
  })
544
544
  ]
545
545
  });
546
- }, X1 = (param)=>{
546
+ }, Y1 = (param)=>{
547
547
  let { onBack: r , title: t , right: a , isInverse: n = !1 , topFixed: i = !0 , paddingX: d = 0 , withBorder: u = !0 } = param;
548
548
  const { texts: M } = (0, _hooksJs.useTheme)(), C = /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_inlineJs.default, {
549
549
  space: "between",
@@ -601,7 +601,7 @@ const g1 = (param)=>{
601
601
  })
602
602
  ]
603
603
  });
604
- }, Y1 = (param)=>/* @__PURE__ */ {
604
+ }, z1 = (param)=>/* @__PURE__ */ {
605
605
  let { logo: r , right: t , isInverse: a = !1 , topFixed: n = !0 } = param;
606
606
  return (0, _jsxRuntimeJs.jsxs)(_themeVariantContextJs.ThemeVariant, {
607
607
  isInverse: a,
@@ -620,7 +620,7 @@ const g1 = (param)=>{
620
620
  space: "between",
621
621
  alignItems: "center",
622
622
  children: [
623
- r != null ? r : /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(G, {}),
623
+ r != null ? r : /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(P, {}),
624
624
  t
625
625
  ]
626
626
  })
@@ -632,7 +632,7 @@ const g1 = (param)=>{
632
632
  })
633
633
  ]
634
634
  });
635
- }, z1 = (param)=>/* @__PURE__ */ {
635
+ }, e2 = (param)=>/* @__PURE__ */ {
636
636
  let { children: r } = param;
637
637
  return (0, _jsxRuntimeJs.jsx)("div", {
638
638
  className: _navigationBarCssMisticaJs.lineHeightFix,
@@ -643,7 +643,7 @@ const g1 = (param)=>{
643
643
  children: r
644
644
  })
645
645
  });
646
- }, e2 = (_param)=>{
646
+ }, r2 = (_param)=>{
647
647
  var { children: r } = _param, t = _objectWithoutProperties(_param, [
648
648
  "children"
649
649
  ]);
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "PACKAGE_VERSION", {
6
6
  enumerable: true,
7
7
  get: ()=>o
8
8
  });
9
- const o = "14.0.0";
9
+ const o = "14.2.0";
package/dist/select.js CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "default", {
6
6
  enumerable: true,
7
- get: ()=>ut
7
+ get: ()=>ft
8
8
  });
9
9
  const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
10
10
  const _classnames = /*#__PURE__*/ _interopRequireDefault(require("classnames"));
@@ -117,11 +117,11 @@ function _objectSpreadProps(target, source) {
117
117
  }
118
118
  return target;
119
119
  }
120
- const ut = (param)=>{
121
- 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;
120
+ const ft = (param)=>{
121
+ let { id: le , label: h , helperText: ae , value: k , onChangeValue: V , name: i , fullWidth: D , options: d , optional: M , disabled: ue , error: de , onBlur: H , autoFocus: q = !1 , native: fe } = param;
122
122
  var ee, te, ne;
123
- const g = _react.useRef(null), f = _react.useRef(null), T = _react.useRef(null), I = _react.useRef(null), N = _react.useRef(/* @__PURE__ */ new Map()), [c, pe] = _react.useState(), [F, j] = _react.useState(!1), [z, K] = _react.useState(!1), [U, y] = _react.useState(!1), [u, P] = _react.useState({}), [x, G] = _react.useState(), Z = _react.useRef(null), W = (0, _hooksJs.useAriaId)(le), { rawValues: me , setRawValue: B , setValue: L , formStatus: he , formErrors: X , setFormError: ge , register: $ } = (0, _formContextJs.useForm)(), { platformOverrides: J } = (0, _hooksJs.useTheme)(), Te = fe || process.env.NODE_ENV === "test" || (0, _platformJs.isAndroid)(J) || (0, _platformJs.isIos)(J), E = ue || he === "sending", A = de || !!X[i], Q = X[i] || ae, o = _ != null ? _ : me[i], R = (e)=>{
124
- V == null || V(e), ge({
123
+ const g = _react.useRef(null), f = _react.useRef(null), S = _react.useRef(null), T = _react.useRef(null), N = _react.useRef(/* @__PURE__ */ new Map()), [pe, me] = _react.useState(!0), [c, he] = _react.useState(), [F, j] = _react.useState(!1), [z, K] = _react.useState(!1), [U, y] = _react.useState(!1), [u, P] = _react.useState({}), [I, G] = _react.useState(), Z = _react.useRef(null), W = (0, _hooksJs.useAriaId)(le), { rawValues: ge , setRawValue: B , setValue: L , formStatus: Se , formErrors: X , setFormError: Te , register: $ } = (0, _formContextJs.useForm)(), { platformOverrides: J } = (0, _hooksJs.useTheme)(), Ie = fe || process.env.NODE_ENV === "test" && !process.env.SSR_TEST || (0, _platformJs.isAndroid)(J) || (0, _platformJs.isIos)(J), E = ue || Se === "sending", v = de || !!X[i], Q = X[i] || ae, o = k != null ? k : ge[i], A = (e)=>{
124
+ V == null || V(e), Te({
125
125
  name: i,
126
126
  error: ""
127
127
  }), B({
@@ -131,19 +131,19 @@ const ut = (param)=>{
131
131
  name: i,
132
132
  value: e
133
133
  });
134
- }, S = (e)=>{
134
+ }, x = (e)=>{
135
135
  if (e) {
136
- if (T != null && T.current) {
137
- const { top: s , width: w , left: O , height: b } = T.current.getBoundingClientRect(), p = s + b, v = Math.min(d.length, 8) * 48 + 16;
138
- if (p + v + 12 > window.innerHeight) {
139
- const Oe = window.innerHeight - p;
140
- if (s > Oe) {
141
- const ye = s - v;
136
+ if (S != null && S.current) {
137
+ const { top: r , width: w , left: O , height: R } = S.current.getBoundingClientRect(), p = r + R, b = Math.min(d.length, 8) * 48 + 16;
138
+ if (p + b + 12 > window.innerHeight) {
139
+ const Ce = window.innerHeight - p;
140
+ if (r > Ce) {
141
+ const Ne = r - b;
142
142
  P({
143
143
  minWidth: w,
144
144
  left: O,
145
- top: Math.max(ye, 12),
146
- maxHeight: Math.min(s - 12, v),
145
+ top: Math.max(Ne, 12),
146
+ maxHeight: Math.min(r - 12, b),
147
147
  transformOrigin: "center bottom"
148
148
  });
149
149
  } else P({
@@ -157,29 +157,29 @@ const ut = (param)=>{
157
157
  minWidth: w,
158
158
  top: p,
159
159
  left: O,
160
- maxHeight: v,
160
+ maxHeight: b,
161
161
  transformOrigin: "center top"
162
162
  });
163
163
  }
164
164
  j(!0), requestAnimationFrame(()=>{
165
- Z.current && I.current && "scrollTop" in I.current && (I.current.scrollTop = Z.current), K(!0);
165
+ Z.current && T.current && "scrollTop" in T.current && (T.current.scrollTop = Z.current), K(!0);
166
166
  }), G(c != null ? c : o);
167
167
  } else K(!1), j(!1), G(void 0);
168
168
  }, Y = (e)=>{
169
169
  var t;
170
- Z.current = (t = I.current) == null ? void 0 : t.scrollTop, S(!1), R && typeof e == "string" && R(e), typeof o > "u" && pe(e);
171
- }, Ie = (e)=>{
170
+ Z.current = (t = T.current) == null ? void 0 : t.scrollTop, x(!1), A && typeof e == "string" && A(e), typeof o > "u" && he(e);
171
+ }, Ee = (e)=>{
172
172
  var n;
173
- const t = (n = I.current) == null ? void 0 : n.getBoundingClientRect();
173
+ const t = (n = T.current) == null ? void 0 : n.getBoundingClientRect();
174
174
  if (t && e && N.current.has(e)) {
175
- const l = N.current.get(e), s = l == null ? void 0 : l.getBoundingClientRect();
176
- if (s && s.top + s.height / 2 >= t.top + t.height) {
175
+ const l = N.current.get(e), r = l == null ? void 0 : l.getBoundingClientRect();
176
+ if (r && r.top + r.height / 2 >= t.top + t.height) {
177
177
  l == null || l.scrollIntoView();
178
178
  return;
179
179
  }
180
- s && s.top + s.height / 2 <= t.top && (l == null || l.scrollIntoView(!1));
180
+ r && r.top + r.height / 2 <= t.top && (l == null || l.scrollIntoView(!1));
181
181
  }
182
- }, xe = f.current, Ee = g.current;
182
+ }, xe = f.current, we = g.current;
183
183
  _react.useEffect(()=>{
184
184
  B({
185
185
  name: i,
@@ -207,27 +207,27 @@ const ut = (param)=>{
207
207
  f,
208
208
  g,
209
209
  xe,
210
- Ee
210
+ we
211
211
  ]), _react.useEffect(()=>{
212
212
  const e = (n)=>{
213
213
  var w, O;
214
- const s = {
214
+ const r = {
215
215
  [_keyCodesJs.UP]: -1,
216
216
  [_keyCodesJs.DOWN]: 1
217
217
  }[n.keyCode];
218
- if (s) {
218
+ if (r) {
219
219
  (0, _domJs.cancelEvent)(n);
220
- const b = (O = (w = d[d.findIndex((param)=>{
220
+ const R = (O = (w = d[d.findIndex((param)=>{
221
221
  let { value: p } = param;
222
- return p === x;
223
- }) + s]) == null ? void 0 : w.value) != null ? O : x;
224
- G(b), Ie(b);
222
+ return p === I;
223
+ }) + r]) == null ? void 0 : w.value) != null ? O : I;
224
+ G(R), Ee(R);
225
225
  }
226
226
  }, t = (n)=>{
227
- F && (n.keyCode === _keyCodesJs.TAB && (0, _domJs.cancelEvent)(n), n.keyCode === _keyCodesJs.ESC && S(!1), (n.keyCode === _keyCodesJs.ENTER || n.keyCode === _keyCodesJs.SPACE) && ((0, _domJs.cancelEvent)(n), d.findIndex((param)=>{
227
+ F && (n.keyCode === _keyCodesJs.TAB && (0, _domJs.cancelEvent)(n), n.keyCode === _keyCodesJs.ESC && x(!1), (n.keyCode === _keyCodesJs.ENTER || n.keyCode === _keyCodesJs.SPACE) && ((0, _domJs.cancelEvent)(n), d.findIndex((param)=>{
228
228
  let { value: l } = param;
229
- return l === x;
230
- }) !== -1 && x !== c && Y(x), S(!1))), z && e(n);
229
+ return l === I;
230
+ }) !== -1 && I !== c && Y(I), x(!1))), z && e(n);
231
231
  };
232
232
  return document.addEventListener("keydown", t, !1), ()=>{
233
233
  document.removeEventListener("keydown", t, !1);
@@ -236,35 +236,37 @@ const ut = (param)=>{
236
236
  q && f.current && f.current.focus();
237
237
  }, [
238
238
  q
239
- ]);
240
- const Se = (e)=>{
239
+ ]), _react.useEffect(()=>{
240
+ me(!1);
241
+ }, []);
242
+ const Oe = (e)=>{
241
243
  var t;
242
244
  return e ? (t = d.find((param)=>{
243
245
  let { value: n } = param;
244
246
  return n === e;
245
247
  })) == null ? void 0 : t.text : "";
246
- }, we = {
248
+ }, ye = {
247
249
  tabIndex: 0,
248
250
  onFocus: ()=>y(!0),
249
251
  onBlur: ()=>y(!1),
250
252
  onClick: ()=>{
251
- S(!0), y(!0);
253
+ x(!0), y(!0);
252
254
  },
253
255
  onKeyDown: (e)=>{
254
- !F && (e.keyCode === _keyCodesJs.SPACE || e.keyCode === _keyCodesJs.ENTER) && ((0, _domJs.cancelEvent)(e), S(!0));
256
+ !F && (e.keyCode === _keyCodesJs.SPACE || e.keyCode === _keyCodesJs.ENTER) && ((0, _domJs.cancelEvent)(e), x(!0));
255
257
  }
256
258
  };
257
- return Te ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_textFieldComponentsJs.FieldContainer, {
259
+ return Ie || pe ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_textFieldComponentsJs.FieldContainer, {
258
260
  disabled: E,
259
261
  helperText: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textFieldComponentsJs.HelperText, {
260
- error: A,
262
+ error: v,
261
263
  leftText: Q
262
264
  }),
263
- fieldRef: T,
265
+ fieldRef: S,
264
266
  fullWidth: D,
265
267
  children: [
266
268
  h && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textFieldComponentsJs.Label, {
267
- error: A,
269
+ error: v,
268
270
  forId: W,
269
271
  inputState: U ? "focused" : ((te = o != null ? o : c) != null ? te : (ee = g.current) == null ? void 0 : ee.value) ? "filled" : "default",
270
272
  optional: M,
@@ -273,12 +275,12 @@ const ut = (param)=>{
273
275
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("select", {
274
276
  className: _selectCssMisticaJs.selectVariants[E ? "disabled" : "default"],
275
277
  id: W,
276
- "aria-invalid": !!A,
278
+ "aria-invalid": !!v,
277
279
  value: o,
278
280
  required: !M,
279
281
  disabled: E,
280
282
  onChange: (e)=>{
281
- R && R(e.target.value);
283
+ A && A(e.target.value);
282
284
  },
283
285
  onFocus: ()=>y(!0),
284
286
  onBlur: (e)=>{
@@ -331,7 +333,7 @@ const ut = (param)=>{
331
333
  role: "button",
332
334
  "aria-haspopup": "listbox",
333
335
  ref: f
334
- }, !E && we), {
336
+ }, !E && ye), {
335
337
  children: [
336
338
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textFieldBaseJs.TextFieldBaseAutosuggest, {
337
339
  style: {
@@ -350,22 +352,22 @@ const ut = (param)=>{
350
352
  required: !M,
351
353
  disabled: E,
352
354
  id: W,
353
- error: A,
355
+ error: v,
354
356
  inputRef: g,
355
- fieldRef: T
357
+ fieldRef: S
356
358
  }),
357
359
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
358
360
  className: _selectCssMisticaJs.selectTextVariants[E ? "disabled" : "default"],
359
361
  style: {
360
362
  top: h ? 27 : 17
361
363
  },
362
- children: Se(o != null ? o : c)
364
+ children: Oe(o != null ? o : c)
363
365
  })
364
366
  ]
365
367
  })),
366
368
  F && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_overlayJs.default, {
367
369
  onPress: (e)=>{
368
- S(!1), (0, _domJs.cancelEvent)(e);
370
+ x(!1), (0, _domJs.cancelEvent)(e);
369
371
  },
370
372
  disableScroll: !0,
371
373
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("ul", {
@@ -379,7 +381,7 @@ const ut = (param)=>{
379
381
  onPointerDown: _domJs.cancelEvent,
380
382
  className: (0, _classnames.default)(_selectCssMisticaJs.optionsContainer, z ? _selectCssMisticaJs.optionsAnimationsVariants.show : _selectCssMisticaJs.optionsAnimationsVariants.hide),
381
383
  role: "listbox",
382
- ref: I,
384
+ ref: T,
383
385
  children: d.map((param)=>/* @__PURE__ */ {
384
386
  let { value: e , text: t } = param;
385
387
  return (0, _jsxRuntimeJs.jsx)("li", {
@@ -387,7 +389,7 @@ const ut = (param)=>{
387
389
  "aria-selected": e === (c != null ? c : o),
388
390
  "data-value": e,
389
391
  className: (0, _classnames.default)(_selectCssMisticaJs.menuItem, {
390
- [_selectCssMisticaJs.menuItemSelected]: e === x || e === (c != null ? c : o)
392
+ [_selectCssMisticaJs.menuItemSelected]: e === I || e === (c != null ? c : o)
391
393
  }),
392
394
  onPointerDown: _domJs.cancelEvent,
393
395
  onClick: ()=>Y(e),
@@ -41,7 +41,7 @@ export declare const palette: {
41
41
  readonly movistarProminentBlueLight50: "#85939C";
42
42
  readonly movistarProminentBlueLight70: "#546874";
43
43
  readonly darkModeBlack: "#061824";
44
- readonly darkModeGrey: "#092130";
44
+ readonly darkModeGrey: "#081F2E";
45
45
  readonly darkModeGrey2: "#EAEBEE";
46
46
  readonly darkModeGrey3: "#CED4D7";
47
47
  readonly darkModeGrey4: "#85939C";
@@ -56,7 +56,7 @@ const e = {
56
56
  movistarProminentBlueLight50: "#85939C",
57
57
  movistarProminentBlueLight70: "#546874",
58
58
  darkModeBlack: "#061824",
59
- darkModeGrey: "#092130",
59
+ darkModeGrey: "#081F2E",
60
60
  darkModeGrey2: "#EAEBEE",
61
61
  darkModeGrey3: "#CED4D7",
62
62
  darkModeGrey4: "#85939C",
@@ -167,12 +167,12 @@ const e = {
167
167
  backgroundBrand: e.darkModeBlack,
168
168
  backgroundBrandSecondary: e.darkModeBlack,
169
169
  backgroundOverlay: (0, _colorJs.applyAlpha)(e.darkModeGrey, 0.8),
170
- backgroundSkeleton: e.darkModeGrey6,
171
- backgroundSkeletonInverse: e.darkModeGrey6,
170
+ backgroundSkeleton: e.movistarBlueDark,
171
+ backgroundSkeletonInverse: e.movistarBlueDark,
172
172
  navigationBarBackground: e.darkModeBlack,
173
173
  backgroundAlternative: e.darkModeGrey,
174
174
  backgroundFeedbackBottom: e.darkModeBlack,
175
- skeletonWave: e.darkModeGrey5,
175
+ skeletonWave: e.darkModeGrey6,
176
176
  borderHigh: e.darkModeGrey4,
177
177
  borderLow: e.darkModeBlack,
178
178
  border: e.darkModeGrey,
@@ -214,7 +214,7 @@ const e = {
214
214
  inverse: e.darkModeGrey2,
215
215
  neutralHigh: e.darkModeGrey2,
216
216
  neutralMedium: e.darkModeGrey5,
217
- neutralLow: e.darkModeGrey6,
217
+ neutralLow: e.movistarBlueDark,
218
218
  textPrimary: e.darkModeGrey2,
219
219
  textPrimaryInverse: e.darkModeGrey2,
220
220
  textSecondary: e.darkModeGrey4,
@@ -225,11 +225,11 @@ const e = {
225
225
  textNavigationSearchBarText: e.darkModeGrey2,
226
226
  textAppBar: e.darkModeGrey5,
227
227
  textAppBarSelected: e.darkModeGrey2,
228
- successLow: e.grey6,
229
- warningLow: e.grey6,
230
- errorLow: e.grey6,
231
- promoLow: e.grey6,
232
- brandLow: e.grey6,
228
+ successLow: e.movistarBlueDark,
229
+ warningLow: e.movistarBlueDark,
230
+ errorLow: e.movistarBlueDark,
231
+ promoLow: e.movistarBlueDark,
232
+ brandLow: e.movistarBlueDark,
233
233
  successHigh: e.movistarGreen40,
234
234
  warningHigh: e.egg40,
235
235
  errorHigh: e.pepper40,