@telefonica/mistica 14.1.0 → 14.3.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.
package/dist/header.js CHANGED
@@ -9,10 +9,10 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- Header: ()=>J,
13
- HeaderLayout: ()=>N,
14
- MainSectionHeader: ()=>K,
15
- MainSectionHeaderLayout: ()=>Q
12
+ Header: ()=>N,
13
+ HeaderLayout: ()=>U,
14
+ MainSectionHeader: ()=>Q,
15
+ MainSectionHeaderLayout: ()=>W
16
16
  });
17
17
  const _boxJs = /*#__PURE__*/ _interopRequireDefault(require("./box.js"));
18
18
  const _stackJs = /*#__PURE__*/ _interopRequireDefault(require("./stack.js"));
@@ -109,33 +109,33 @@ function _objectWithoutPropertiesLoose(source, excluded) {
109
109
  }
110
110
  return target;
111
111
  }
112
- const J = (param)=>{
113
- let { pretitle: i , title: e , description: o , dataAttributes: n , preamount: c , amount: s , button: a , subtitle: g , isErrorAmount: H , secondaryButton: x } = param;
114
- const { isTabletOrSmaller: L } = (0, _hooksJs.useScreenSize)(), O = (0, _themeVariantContextJs.useIsInverseVariant)(), f = (m, y)=>{
115
- if (typeof m == "string") return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text3, _objectSpreadProps(_objectSpread({
112
+ const N = (param)=>{
113
+ let { pretitle: l , title: e , description: t , dataAttributes: i , preamount: c , amount: m , button: h , subtitle: a , isErrorAmount: s , secondaryButton: y } = param;
114
+ const { isTabletOrSmaller: L } = (0, _hooksJs.useScreenSize)(), O = (0, _themeVariantContextJs.useIsInverseVariant)(), u = (g, S)=>{
115
+ if (typeof g == "string") return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text3, _objectSpreadProps(_objectSpread({
116
116
  regular: !0
117
- }, y), {
118
- children: m
117
+ }, S), {
118
+ children: g
119
119
  }));
120
- const { text: M } = m, I = _objectWithoutProperties(m, [
120
+ const { text: G } = g, k = _objectWithoutProperties(g, [
121
121
  "text"
122
122
  ]);
123
123
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text3, _objectSpreadProps(_objectSpread({
124
124
  regular: !0
125
- }, y, I), {
126
- children: m.text
125
+ }, S, k), {
126
+ children: g.text
127
127
  }));
128
128
  };
129
129
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
130
130
  space: L ? 24 : 32,
131
- dataAttributes: n,
131
+ dataAttributes: i,
132
132
  children: [
133
- (e || i || o) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
133
+ (e || l || t) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
134
134
  paddingRight: 16,
135
135
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
136
136
  space: 8,
137
137
  children: [
138
- i && f(i, {
138
+ l && u(l, {
139
139
  color: _skinContractCssMisticaJs.vars.colors.textPrimary
140
140
  }),
141
141
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text6, {
@@ -143,121 +143,129 @@ const J = (param)=>{
143
143
  "aria-level": 2,
144
144
  children: e
145
145
  }),
146
- o && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text3, {
146
+ t && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text3, {
147
147
  regular: !0,
148
148
  color: _skinContractCssMisticaJs.vars.colors.textSecondary,
149
- children: o
149
+ children: t
150
150
  })
151
151
  ]
152
152
  })
153
153
  }),
154
- (c || s || a || g) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
154
+ (c || m || h || a) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
155
155
  space: 16,
156
156
  children: [
157
- (c || s) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
157
+ (c || m) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
158
158
  space: 8,
159
159
  children: [
160
- c && f(c, {
160
+ c && u(c, {
161
161
  color: _skinContractCssMisticaJs.vars.colors.textPrimary
162
162
  }),
163
163
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text8, {
164
- color: H && !O ? _skinContractCssMisticaJs.vars.colors.highlight : _skinContractCssMisticaJs.vars.colors.textPrimary,
165
- children: s
164
+ color: s && !O ? _skinContractCssMisticaJs.vars.colors.highlight : _skinContractCssMisticaJs.vars.colors.textPrimary,
165
+ children: m
166
166
  })
167
167
  ]
168
168
  }),
169
- (a || x) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_buttonGroupJs.default, {
170
- primaryButton: a,
171
- secondaryButton: x
169
+ (h || y) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_buttonGroupJs.default, {
170
+ primaryButton: h,
171
+ secondaryButton: y
172
172
  }),
173
- g && f(g, {})
173
+ a && u(a, {})
174
174
  ]
175
175
  })
176
176
  ]
177
177
  });
178
- }, K = (param)=>{
179
- let { title: i , description: e , button: o } = param;
180
- const { isTabletOrSmaller: n } = (0, _hooksJs.useScreenSize)();
178
+ }, Q = (param)=>{
179
+ let { title: l , description: e , button: t } = param;
180
+ const { isTabletOrSmaller: i } = (0, _hooksJs.useScreenSize)();
181
181
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
182
182
  space: 32,
183
183
  children: [
184
184
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
185
- space: n ? 12 : 16,
185
+ space: i ? 12 : 16,
186
186
  children: [
187
- i && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text7, {
187
+ l && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text7, {
188
188
  role: "heading",
189
189
  "aria-level": 1,
190
- children: i
190
+ children: l
191
191
  }),
192
192
  e && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text6, {
193
193
  children: e
194
194
  })
195
195
  ]
196
196
  }),
197
- o
197
+ t
198
198
  ]
199
199
  });
200
- }, N = (param)=>{
201
- let { isInverse: i = !0 , breadcrumbs: e , header: o , extra: n , sideBySideExtraOnDesktop: c = !1 , dataAttributes: s } = param;
202
- const { isTabletOrSmaller: a } = (0, _hooksJs.useScreenSize)();
203
- return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_responsiveLayoutJs.default, {
204
- isInverse: i,
205
- dataAttributes: _objectSpread({
206
- "component-name": "HeaderLayout"
207
- }, s),
200
+ }, U = (param)=>{
201
+ let { isInverse: l = !0 , breadcrumbs: e , header: t , extra: i , sideBySideExtraOnDesktop: c = !1 , dataAttributes: m , bleed: h = !1 } = param;
202
+ const { isTabletOrSmaller: a } = (0, _hooksJs.useScreenSize)(), s = h && l;
203
+ return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_jsxRuntimeJs.Fragment, {
208
204
  children: [
209
- /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_overscrollColorContextJs.default, {}),
210
- a ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
211
- paddingTop: o ? 32 : 0,
212
- paddingBottom: 24,
213
- children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
214
- space: 24,
215
- children: [
216
- o,
217
- n
218
- ]
219
- })
220
- }) : c ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
221
- paddingTop: e ? 16 : 48,
222
- paddingBottom: 48,
223
- children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_gridLayoutJs.default, {
224
- template: "6+6",
225
- left: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
226
- space: 32,
227
- children: [
228
- e,
229
- o
230
- ]
231
- }),
232
- right: n
233
- })
234
- }) : /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
235
- paddingTop: e ? 16 : 48,
236
- paddingBottom: 48,
237
- children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
238
- space: a ? 24 : 32,
239
- children: [
240
- /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
241
- space: 32,
205
+ /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_responsiveLayoutJs.default, {
206
+ isInverse: l,
207
+ dataAttributes: _objectSpread({
208
+ "component-name": "HeaderLayout"
209
+ }, m),
210
+ children: [
211
+ /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_overscrollColorContextJs.default, {}),
212
+ a ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
213
+ paddingTop: t ? 32 : 0,
214
+ paddingBottom: 24,
215
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
216
+ space: 24,
242
217
  children: [
243
- e,
244
- o
218
+ t,
219
+ !s && i
245
220
  ]
246
- }),
247
- n
248
- ]
249
- })
221
+ })
222
+ }) : c ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
223
+ paddingTop: e ? 16 : 48,
224
+ paddingBottom: 48,
225
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_gridLayoutJs.default, {
226
+ template: "6+6",
227
+ left: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
228
+ space: 32,
229
+ children: [
230
+ e,
231
+ t
232
+ ]
233
+ }),
234
+ right: i
235
+ })
236
+ }) : /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
237
+ paddingTop: e ? 16 : 48,
238
+ paddingBottom: s ? 32 : 48,
239
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
240
+ space: a ? 24 : 32,
241
+ children: [
242
+ /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
243
+ space: 32,
244
+ children: [
245
+ e,
246
+ t
247
+ ]
248
+ }),
249
+ !s && i
250
+ ]
251
+ })
252
+ })
253
+ ]
254
+ }),
255
+ s && i && (a || !c) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_responsiveLayoutJs.default, {
256
+ backgroundColor: `linear-gradient(to bottom, ${_skinContractCssMisticaJs.vars.colors.backgroundBrand} 40px, ${_skinContractCssMisticaJs.vars.colors.background} 0%)`,
257
+ children: i
250
258
  })
251
259
  ]
252
260
  });
253
- }, Q = (param)=>{
254
- let { isInverse: i = !0 , children: e } = param;
255
- const { isTabletOrSmaller: o } = (0, _hooksJs.useScreenSize)();
261
+ }, W = (param)=>{
262
+ let { isInverse: l = !0 , children: e } = param;
263
+ const { isTabletOrSmaller: t } = (0, _hooksJs.useScreenSize)();
256
264
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_responsiveLayoutJs.default, {
257
- isInverse: i,
265
+ isInverse: l,
258
266
  children: [
259
267
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_overscrollColorContextJs.default, {}),
260
- o ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
268
+ t ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
261
269
  paddingTop: 12,
262
270
  paddingBottom: 24,
263
271
  children: e
@@ -139,11 +139,11 @@ function _objectWithoutPropertiesLoose(source, excluded) {
139
139
  }
140
140
  return target;
141
141
  }
142
- const V = /*#__PURE__*/ _react.forwardRef((e, i)=>{
143
- var h;
144
- const { title: a , description: r , imageUrl: o , imageFit: l } = e, f = (0, _themeVariantContextJs.useIsInverseVariant)(), g = (h = e.isInverse) != null ? h : f, m = (0, _maybeDismissableJs.useIsDismissable)(), n = /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_boxedJs.Boxed, {
142
+ const R = /*#__PURE__*/ _react.forwardRef((e, i)=>{
143
+ var u;
144
+ const { title: a , description: r , imageUrl: o , imageFit: l } = e, h = (0, _themeVariantContextJs.useIsInverseVariant)(), f = (u = e.isInverse) != null ? u : h, m = (0, _maybeDismissableJs.useIsDismissable)(), n = /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_boxedJs.Boxed, {
145
145
  ref: i,
146
- isInverse: g,
146
+ isInverse: f,
147
147
  className: _highlightedCardCssMisticaJs.container,
148
148
  dataAttributes: _objectSpread({
149
149
  "component-name": "HighlightedCard"
@@ -187,7 +187,8 @@ const V = /*#__PURE__*/ _react.forwardRef((e, i)=>{
187
187
  o && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
188
188
  className: _highlightedCardCssMisticaJs.imageContent,
189
189
  style: {
190
- background: `url(${o}) no-repeat`,
190
+ backgroundImage: `url(${o})`,
191
+ backgroundRepeat: "no-repeat",
191
192
  backgroundSize: l === "fit" ? "contain" : "cover",
192
193
  backgroundPosition: l === "fit" ? "bottom right" : `center ${l === "fill-center" ? "center" : "right"}`
193
194
  }
@@ -221,7 +222,7 @@ const V = /*#__PURE__*/ _react.forwardRef((e, i)=>{
221
222
  onClose: i.onClose,
222
223
  "aria-label": r,
223
224
  width: i.width,
224
- children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(V, _objectSpreadProps(_objectSpread({}, i), {
225
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(R, _objectSpreadProps(_objectSpread({}, i), {
225
226
  "aria-label": r,
226
227
  ref: a
227
228
  }))
package/dist/index.d.ts CHANGED
@@ -1089,6 +1089,7 @@ export { default as IconMapRegular } from './generated/mistica-icons/icon-map-re
1089
1089
  export { default as IconMastFilled } from './generated/mistica-icons/icon-mast-filled';
1090
1090
  export { default as IconMastLight } from './generated/mistica-icons/icon-mast-light';
1091
1091
  export { default as IconMastRegular } from './generated/mistica-icons/icon-mast-regular';
1092
+ export { default as IconMeatballFilled } from './generated/mistica-icons/icon-meatball-filled';
1092
1093
  export { default as IconMedicalHistoryFilled } from './generated/mistica-icons/icon-medical-history-filled';
1093
1094
  export { default as IconMedicalHistoryLight } from './generated/mistica-icons/icon-medical-history-light';
1094
1095
  export { default as IconMedicalHistoryRegular } from './generated/mistica-icons/icon-medical-history-regular';
package/dist/index.js CHANGED
@@ -1033,6 +1033,7 @@ _export(exports, {
1033
1033
  IconMastFilled: ()=>_iconMastFilledJs.default,
1034
1034
  IconMastLight: ()=>_iconMastLightJs.default,
1035
1035
  IconMastRegular: ()=>_iconMastRegularJs.default,
1036
+ IconMeatballFilled: ()=>_iconMeatballFilledJs.default,
1036
1037
  IconMedicalHistoryFilled: ()=>_iconMedicalHistoryFilledJs.default,
1037
1038
  IconMedicalHistoryLight: ()=>_iconMedicalHistoryLightJs.default,
1038
1039
  IconMedicalHistoryRegular: ()=>_iconMedicalHistoryRegularJs.default,
@@ -2904,6 +2905,7 @@ const _iconMapRegularJs = /*#__PURE__*/ _interopRequireDefault(require("./genera
2904
2905
  const _iconMastFilledJs = /*#__PURE__*/ _interopRequireDefault(require("./generated/mistica-icons/icon-mast-filled.js"));
2905
2906
  const _iconMastLightJs = /*#__PURE__*/ _interopRequireDefault(require("./generated/mistica-icons/icon-mast-light.js"));
2906
2907
  const _iconMastRegularJs = /*#__PURE__*/ _interopRequireDefault(require("./generated/mistica-icons/icon-mast-regular.js"));
2908
+ const _iconMeatballFilledJs = /*#__PURE__*/ _interopRequireDefault(require("./generated/mistica-icons/icon-meatball-filled.js"));
2907
2909
  const _iconMedicalHistoryFilledJs = /*#__PURE__*/ _interopRequireDefault(require("./generated/mistica-icons/icon-medical-history-filled.js"));
2908
2910
  const _iconMedicalHistoryLightJs = /*#__PURE__*/ _interopRequireDefault(require("./generated/mistica-icons/icon-medical-history-light.js"));
2909
2911
  const _iconMedicalHistoryRegularJs = /*#__PURE__*/ _interopRequireDefault(require("./generated/mistica-icons/icon-medical-history-regular.js"));
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "PACKAGE_VERSION", {
6
6
  enumerable: true,
7
7
  get: ()=>o
8
8
  });
9
- const o = "14.1.0";
9
+ const o = "14.3.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,