@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/select.js CHANGED
@@ -118,171 +118,171 @@ function _objectSpreadProps(target, source) {
118
118
  return target;
119
119
  }
120
120
  const ut = (param)=>{
121
- 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;
122
- var Y, ee, te;
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(), [H, q] = _react.useState(!1), [j, z] = _react.useState(!1), [K, y] = _react.useState(!1), [u, F] = _react.useState({}), [x, P] = _react.useState(), G = _react.useRef(null), Z = (0, _hooksJs.useAriaId)(le), { rawValues: me , setRawValue: W , setValue: B , formStatus: he , formErrors: U , setFormError: ge , register: L } = (0, _formContextJs.useForm)(), { platformOverrides: X } = (0, _hooksJs.useTheme)(), Te = fe || process.env.NODE_ENV === "test" || (0, _platformJs.isAndroid)(X) || (0, _platformJs.isIos)(X), E = ue || he === "sending", A = de || !!U[i], J = U[i] || ae, o = k != null ? k : me[i], R = (e)=>{
124
- _ == null || _(e), ge({
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;
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({
125
125
  name: i,
126
126
  error: ""
127
- }), W({
127
+ }), B({
128
128
  name: i,
129
129
  value: e
130
- }), B({
130
+ }), L({
131
131
  name: i,
132
132
  value: e
133
133
  });
134
- }, w = (e)=>{
134
+ }, S = (e)=>{
135
135
  if (e) {
136
136
  if (T != null && T.current) {
137
- const { top: r , width: O , left: S , height: v } = T.current.getBoundingClientRect(), p = r + v, ne = Math.min(d.length, 8) * 48 + 16;
138
- if (p + ne + 12 > window.innerHeight) {
139
- const Se = window.innerHeight - p;
140
- if (r > Se) {
141
- const ye = r - ne;
142
- F({
143
- minWidth: O,
144
- left: S,
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;
142
+ P({
143
+ minWidth: w,
144
+ left: O,
145
145
  top: Math.max(ye, 12),
146
- maxHeight: r - 12,
146
+ maxHeight: Math.min(s - 12, v),
147
147
  transformOrigin: "center bottom"
148
148
  });
149
- } else F({
150
- minWidth: O,
149
+ } else P({
150
+ minWidth: w,
151
151
  top: p,
152
- left: S,
152
+ left: O,
153
153
  maxHeight: window.innerHeight - p - 12,
154
154
  transformOrigin: "center top"
155
155
  });
156
- } else F({
157
- minWidth: O,
156
+ } else P({
157
+ minWidth: w,
158
158
  top: p,
159
- left: S,
160
- maxHeight: void 0,
159
+ left: O,
160
+ maxHeight: v,
161
161
  transformOrigin: "center top"
162
162
  });
163
163
  }
164
- q(!0), requestAnimationFrame(()=>{
165
- G.current && I.current && "scrollTop" in I.current && (I.current.scrollTop = G.current), z(!0);
166
- }), P(c != null ? c : o);
167
- } else z(!1), q(!1), P(void 0);
168
- }, Q = (e)=>{
164
+ j(!0), requestAnimationFrame(()=>{
165
+ Z.current && I.current && "scrollTop" in I.current && (I.current.scrollTop = Z.current), K(!0);
166
+ }), G(c != null ? c : o);
167
+ } else K(!1), j(!1), G(void 0);
168
+ }, Y = (e)=>{
169
169
  var t;
170
- G.current = (t = I.current) == null ? void 0 : t.scrollTop, w(!1), R && typeof e == "string" && R(e), typeof o > "u" && pe(e);
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
171
  }, Ie = (e)=>{
172
172
  var n;
173
173
  const t = (n = I.current) == null ? void 0 : n.getBoundingClientRect();
174
174
  if (t && e && N.current.has(e)) {
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) {
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) {
177
177
  l == null || l.scrollIntoView();
178
178
  return;
179
179
  }
180
- r && r.top + r.height / 2 <= t.top && (l == null || l.scrollIntoView(!1));
180
+ s && s.top + s.height / 2 <= t.top && (l == null || l.scrollIntoView(!1));
181
181
  }
182
182
  }, xe = f.current, Ee = g.current;
183
183
  _react.useEffect(()=>{
184
- W({
184
+ B({
185
185
  name: i,
186
186
  value: o
187
- }), B({
187
+ }), L({
188
188
  name: i,
189
189
  value: o
190
190
  });
191
191
  }, [
192
192
  i,
193
- W,
194
193
  B,
194
+ L,
195
195
  o
196
- ]), _react.useEffect(()=>(L(i, {
196
+ ]), _react.useEffect(()=>($(i, {
197
197
  input: g.current,
198
198
  focusableElement: f.current
199
199
  }), ()=>{
200
- L(i, {
200
+ $(i, {
201
201
  input: null,
202
202
  focusableElement: null
203
203
  });
204
204
  }), [
205
205
  i,
206
- L,
206
+ $,
207
207
  f,
208
208
  g,
209
209
  xe,
210
210
  Ee
211
211
  ]), _react.useEffect(()=>{
212
212
  const e = (n)=>{
213
- var O, S;
214
- const r = {
213
+ var w, O;
214
+ const s = {
215
215
  [_keyCodesJs.UP]: -1,
216
216
  [_keyCodesJs.DOWN]: 1
217
217
  }[n.keyCode];
218
- if (r) {
218
+ if (s) {
219
219
  (0, _domJs.cancelEvent)(n);
220
- const v = (S = (O = d[d.findIndex((param)=>{
220
+ const b = (O = (w = d[d.findIndex((param)=>{
221
221
  let { value: p } = param;
222
222
  return p === x;
223
- }) + r]) == null ? void 0 : O.value) != null ? S : x;
224
- P(v), Ie(v);
223
+ }) + s]) == null ? void 0 : w.value) != null ? O : x;
224
+ G(b), Ie(b);
225
225
  }
226
226
  }, t = (n)=>{
227
- H && (n.keyCode === _keyCodesJs.TAB && (0, _domJs.cancelEvent)(n), n.keyCode === _keyCodesJs.ESC && w(!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 && S(!1), (n.keyCode === _keyCodesJs.ENTER || n.keyCode === _keyCodesJs.SPACE) && ((0, _domJs.cancelEvent)(n), d.findIndex((param)=>{
228
228
  let { value: l } = param;
229
229
  return l === x;
230
- }) !== -1 && x !== c && Q(x), w(!1))), j && e(n);
230
+ }) !== -1 && x !== c && Y(x), S(!1))), z && e(n);
231
231
  };
232
232
  return document.addEventListener("keydown", t, !1), ()=>{
233
233
  document.removeEventListener("keydown", t, !1);
234
234
  };
235
235
  }), _react.useEffect(()=>{
236
- $ && f.current && f.current.focus();
236
+ q && f.current && f.current.focus();
237
237
  }, [
238
- $
238
+ q
239
239
  ]);
240
- const we = (e)=>{
240
+ const Se = (e)=>{
241
241
  var t;
242
242
  return e ? (t = d.find((param)=>{
243
243
  let { value: n } = param;
244
244
  return n === e;
245
245
  })) == null ? void 0 : t.text : "";
246
- }, Oe = {
246
+ }, we = {
247
247
  tabIndex: 0,
248
248
  onFocus: ()=>y(!0),
249
249
  onBlur: ()=>y(!1),
250
250
  onClick: ()=>{
251
- w(!0), y(!0);
251
+ S(!0), y(!0);
252
252
  },
253
253
  onKeyDown: (e)=>{
254
- !H && (e.keyCode === _keyCodesJs.SPACE || e.keyCode === _keyCodesJs.ENTER) && ((0, _domJs.cancelEvent)(e), w(!0));
254
+ !F && (e.keyCode === _keyCodesJs.SPACE || e.keyCode === _keyCodesJs.ENTER) && ((0, _domJs.cancelEvent)(e), S(!0));
255
255
  }
256
256
  };
257
257
  return Te ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_textFieldComponentsJs.FieldContainer, {
258
258
  disabled: E,
259
259
  helperText: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textFieldComponentsJs.HelperText, {
260
260
  error: A,
261
- leftText: J
261
+ leftText: Q
262
262
  }),
263
263
  fieldRef: T,
264
- fullWidth: V,
264
+ fullWidth: D,
265
265
  children: [
266
266
  h && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textFieldComponentsJs.Label, {
267
267
  error: A,
268
- forId: Z,
269
- inputState: K ? "focused" : ((ee = o != null ? o : c) != null ? ee : (Y = g.current) == null ? void 0 : Y.value) ? "filled" : "default",
270
- optional: D,
268
+ forId: W,
269
+ inputState: U ? "focused" : ((te = o != null ? o : c) != null ? te : (ee = g.current) == null ? void 0 : ee.value) ? "filled" : "default",
270
+ optional: M,
271
271
  children: h
272
272
  }),
273
273
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("select", {
274
274
  className: _selectCssMisticaJs.selectVariants[E ? "disabled" : "default"],
275
- id: Z,
275
+ id: W,
276
276
  "aria-invalid": !!A,
277
277
  value: o,
278
- required: !D,
278
+ required: !M,
279
279
  disabled: E,
280
280
  onChange: (e)=>{
281
281
  R && R(e.target.value);
282
282
  },
283
283
  onFocus: ()=>y(!0),
284
284
  onBlur: (e)=>{
285
- y(!1), M == null || M(e);
285
+ y(!1), H == null || H(e);
286
286
  },
287
287
  ref: (e)=>{
288
288
  [
@@ -327,29 +327,29 @@ const ut = (param)=>{
327
327
  }) : /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_jsxRuntimeJs.Fragment, {
328
328
  children: [
329
329
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("div", _objectSpreadProps(_objectSpread({
330
- className: _selectCssMisticaJs.selectContainerVariants[V ? "fullWidth" : "default"],
330
+ className: _selectCssMisticaJs.selectContainerVariants[D ? "fullWidth" : "default"],
331
331
  role: "button",
332
332
  "aria-haspopup": "listbox",
333
333
  ref: f
334
- }, !E && Oe), {
334
+ }, !E && we), {
335
335
  children: [
336
336
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textFieldBaseJs.TextFieldBaseAutosuggest, {
337
337
  style: {
338
338
  visibility: "hidden"
339
339
  },
340
- fullWidth: V,
340
+ fullWidth: D,
341
341
  endIcon: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_iconChevronDownRegularJs.default, {
342
342
  size: 20
343
343
  }),
344
- focus: K,
344
+ focus: U,
345
345
  label: h,
346
346
  value: o,
347
347
  shrinkLabel: !!(o || c),
348
348
  name: i,
349
- helperText: J,
350
- required: !D,
349
+ helperText: Q,
350
+ required: !M,
351
351
  disabled: E,
352
- id: Z,
352
+ id: W,
353
353
  error: A,
354
354
  inputRef: g,
355
355
  fieldRef: T
@@ -359,13 +359,13 @@ const ut = (param)=>{
359
359
  style: {
360
360
  top: h ? 27 : 17
361
361
  },
362
- children: we(o != null ? o : c)
362
+ children: Se(o != null ? o : c)
363
363
  })
364
364
  ]
365
365
  })),
366
- H && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_overlayJs.default, {
366
+ F && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_overlayJs.default, {
367
367
  onPress: (e)=>{
368
- w(!1), (0, _domJs.cancelEvent)(e);
368
+ S(!1), (0, _domJs.cancelEvent)(e);
369
369
  },
370
370
  disableScroll: !0,
371
371
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("ul", {
@@ -374,10 +374,10 @@ const ut = (param)=>{
374
374
  [_selectCssMisticaJs.vars.left]: u.left ? `${u.left}px` : "",
375
375
  [_selectCssMisticaJs.vars.maxHeight]: u.maxHeight ? `${u.maxHeight}px` : "",
376
376
  [_selectCssMisticaJs.vars.minWidth]: u.minWidth ? `${u.minWidth}px` : "",
377
- [_selectCssMisticaJs.vars.transformOrigin]: (te = u.transformOrigin) != null ? te : ""
377
+ [_selectCssMisticaJs.vars.transformOrigin]: (ne = u.transformOrigin) != null ? ne : ""
378
378
  }),
379
379
  onPointerDown: _domJs.cancelEvent,
380
- className: (0, _classnames.default)(_selectCssMisticaJs.optionsContainer, j ? _selectCssMisticaJs.optionsAnimationsVariants.show : _selectCssMisticaJs.optionsAnimationsVariants.hide),
380
+ className: (0, _classnames.default)(_selectCssMisticaJs.optionsContainer, z ? _selectCssMisticaJs.optionsAnimationsVariants.show : _selectCssMisticaJs.optionsAnimationsVariants.hide),
381
381
  role: "listbox",
382
382
  ref: I,
383
383
  children: d.map((param)=>/* @__PURE__ */ {
@@ -390,7 +390,7 @@ const ut = (param)=>{
390
390
  [_selectCssMisticaJs.menuItemSelected]: e === x || e === (c != null ? c : o)
391
391
  }),
392
392
  onPointerDown: _domJs.cancelEvent,
393
- onClick: ()=>Q(e),
393
+ onClick: ()=>Y(e),
394
394
  ref: (n)=>{
395
395
  n ? N.current.set(e, n) : N.current.delete(e);
396
396
  },
@@ -4,6 +4,7 @@ type SkeletonBaseProps = {
4
4
  height?: string | number;
5
5
  radius?: string | number;
6
6
  className?: string;
7
+ noBorderRadius?: boolean;
7
8
  };
8
- declare const SkeletonBase: ({ width, height, radius, className, }: SkeletonBaseProps) => JSX.Element;
9
+ declare const SkeletonBase: ({ width, height, radius, className, noBorderRadius, }: SkeletonBaseProps) => JSX.Element;
9
10
  export default SkeletonBase;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "default", {
6
6
  enumerable: true,
7
- get: ()=>f
7
+ get: ()=>v
8
8
  });
9
9
  const _themeVariantContextJs = require("./theme-variant-context.js");
10
10
  const _classnames = /*#__PURE__*/ _interopRequireDefault(require("classnames"));
@@ -16,15 +16,15 @@ function _interopRequireDefault(obj) {
16
16
  default: obj
17
17
  };
18
18
  }
19
- const f = (param)=>{
20
- let { width: e = "100%" , height: o = 8 , radius: s = 8 , className: a } = param;
21
- const n = (0, _themeVariantContextJs.useIsInverseVariant)();
19
+ const v = (param)=>{
20
+ let { width: e = "100%" , height: o = 8 , radius: s = 8 , className: a , noBorderRadius: n = !1 } = param;
21
+ const t = (0, _themeVariantContextJs.useIsInverseVariant)();
22
22
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
23
23
  className: (0, _classnames.default)(a, (0, _sprinklesCssMisticaJs.sprinkles)({
24
- background: n ? _skinContractCssMisticaJs.vars.colors.backgroundSkeletonInverse : _skinContractCssMisticaJs.vars.colors.backgroundSkeleton
24
+ background: t ? _skinContractCssMisticaJs.vars.colors.backgroundSkeletonInverse : _skinContractCssMisticaJs.vars.colors.backgroundSkeleton
25
25
  })),
26
26
  style: {
27
- borderRadius: s,
27
+ borderRadius: n ? 0 : s,
28
28
  width: e,
29
29
  height: o
30
30
  },
@@ -11,9 +11,9 @@ function _export(target, all) {
11
11
  _export(exports, {
12
12
  animation: ()=>o,
13
13
  circle: ()=>r,
14
- line: ()=>f,
15
- row: ()=>y
14
+ line: ()=>y,
15
+ row: ()=>f
16
16
  });
17
17
  require("./sprinkles.css.ts.vanilla.js");
18
18
  require("./skeletons.css.ts.vanilla.js");
19
- var o = "zopolw2 _1y2v1nf58", r = "_1y2v1nf5o _1y2v1nf5q", f = "zopolw6 _1y2v1nf5p", y = "_1y2v1nf56 _1y2v1nf5l _1y2v1nf5f";
19
+ var o = "zopolw2 _1y2v1nf5i", r = "_1y2v1nf5y _1y2v1nf60", y = "zopolw6 _1y2v1nf5z", f = "_1y2v1nf5g _1y2v1nf5v _1y2v1nf5p";
@@ -19,6 +19,7 @@ type SkeletonRectangleProps = {
19
19
  dataAttributes?: DataAttributes;
20
20
  width?: number | string;
21
21
  height?: number | string;
22
+ noBorderRadius?: boolean;
22
23
  };
23
- export declare const SkeletonRectangle: ({ width, height, ariaLabel, dataAttributes, }: SkeletonRectangleProps) => JSX.Element;
24
+ export declare const SkeletonRectangle: ({ width, height, ariaLabel, dataAttributes, noBorderRadius, }: SkeletonRectangleProps) => JSX.Element;
24
25
  export {};
package/dist/skeletons.js CHANGED
@@ -10,10 +10,10 @@ function _export(target, all) {
10
10
  }
11
11
  _export(exports, {
12
12
  SkeletonCircle: ()=>x,
13
- SkeletonLine: ()=>A,
13
+ SkeletonLine: ()=>g,
14
14
  SkeletonRectangle: ()=>R,
15
15
  SkeletonRow: ()=>N,
16
- SkeletonText: ()=>f
16
+ SkeletonText: ()=>A
17
17
  });
18
18
  const _skeletonBaseJs = /*#__PURE__*/ _interopRequireDefault(require("./skeleton-base.js"));
19
19
  const _stackJs = /*#__PURE__*/ _interopRequireDefault(require("./stack.js"));
@@ -78,25 +78,25 @@ function _objectSpreadProps(target, source) {
78
78
  return target;
79
79
  }
80
80
  const o = (param)=>/* @__PURE__ */ {
81
- let { children: n , ariaLabel: e , dataAttributes: i , width: a , height: c } = param;
81
+ let { children: n , ariaLabel: t , dataAttributes: i , width: a , height: l } = param;
82
82
  return (0, _jsxRuntimeJs.jsx)("div", _objectSpreadProps(_objectSpread({
83
83
  className: _skeletonsCssMisticaJs.animation,
84
84
  role: "status",
85
85
  "aria-busy": !0,
86
- "aria-hidden": e === void 0,
87
- "aria-label": e,
86
+ "aria-hidden": t === void 0,
87
+ "aria-label": t,
88
88
  style: {
89
89
  width: a,
90
- height: c
90
+ height: l
91
91
  }
92
92
  }, (0, _domJs.getPrefixedDataAttributes)(i)), {
93
93
  children: n
94
94
  }));
95
- }, A = (param)=>/* @__PURE__ */ {
96
- let { width: n = "100%" , ariaLabel: e , dataAttributes: i } = param;
95
+ }, g = (param)=>/* @__PURE__ */ {
96
+ let { width: n = "100%" , ariaLabel: t , dataAttributes: i } = param;
97
97
  return (0, _jsxRuntimeJs.jsx)(o, {
98
98
  width: n,
99
- ariaLabel: e,
99
+ ariaLabel: t,
100
100
  dataAttributes: _objectSpread({
101
101
  "component-name": "SkeletonLine"
102
102
  }, i),
@@ -104,14 +104,14 @@ const o = (param)=>/* @__PURE__ */ {
104
104
  width: "100%"
105
105
  })
106
106
  });
107
- }, f = (param)=>/* @__PURE__ */ {
108
- let { ariaLabel: n , dataAttributes: e } = param;
107
+ }, A = (param)=>/* @__PURE__ */ {
108
+ let { ariaLabel: n , dataAttributes: t } = param;
109
109
  return (0, _jsxRuntimeJs.jsx)(o, {
110
110
  width: "100%",
111
111
  ariaLabel: n,
112
112
  dataAttributes: _objectSpread({
113
113
  "component-name": "SkeletonText"
114
- }, e),
114
+ }, t),
115
115
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
116
116
  space: 16,
117
117
  children: [
@@ -124,10 +124,10 @@ const o = (param)=>/* @__PURE__ */ {
124
124
  })
125
125
  });
126
126
  }, x = (param)=>/* @__PURE__ */ {
127
- let { ariaLabel: n , size: e = 40 , dataAttributes: i } = param;
127
+ let { ariaLabel: n , size: t = 40 , dataAttributes: i } = param;
128
128
  return (0, _jsxRuntimeJs.jsx)(o, {
129
- width: e,
130
- height: e,
129
+ width: t,
130
+ height: t,
131
131
  ariaLabel: n,
132
132
  dataAttributes: _objectSpread({
133
133
  "component-name": "SkeletonCircle"
@@ -139,10 +139,10 @@ const o = (param)=>/* @__PURE__ */ {
139
139
  })
140
140
  });
141
141
  }, N = (param)=>/* @__PURE__ */ {
142
- let { width: n = "100%" , ariaLabel: e , dataAttributes: i } = param;
142
+ let { width: n = "100%" , ariaLabel: t , dataAttributes: i } = param;
143
143
  return (0, _jsxRuntimeJs.jsx)(o, {
144
144
  width: n,
145
- ariaLabel: e,
145
+ ariaLabel: t,
146
146
  dataAttributes: _objectSpread({
147
147
  "component-name": "SkeletonRow"
148
148
  }, i),
@@ -163,9 +163,9 @@ const o = (param)=>/* @__PURE__ */ {
163
163
  })
164
164
  });
165
165
  }, R = (param)=>/* @__PURE__ */ {
166
- let { width: n = "100%" , height: e = "100%" , ariaLabel: i , dataAttributes: a } = param;
166
+ let { width: n = "100%" , height: t = "100%" , ariaLabel: i , dataAttributes: a , noBorderRadius: l = !1 } = param;
167
167
  return (0, _jsxRuntimeJs.jsx)(o, {
168
- height: e,
168
+ height: t,
169
169
  width: n,
170
170
  ariaLabel: i,
171
171
  dataAttributes: _objectSpread({
@@ -173,7 +173,8 @@ const o = (param)=>/* @__PURE__ */ {
173
173
  }, a),
174
174
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_skeletonBaseJs.default, {
175
175
  height: "100%",
176
- width: "100%"
176
+ width: "100%",
177
+ noBorderRadius: l
177
178
  })
178
179
  });
179
180
  };
@@ -9,7 +9,7 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- getBlauSkin: ()=>n,
12
+ getBlauSkin: ()=>t,
13
13
  palette: ()=>e
14
14
  });
15
15
  const _colorJs = require("../utils/color.js");
@@ -52,7 +52,7 @@ const e = {
52
52
  darkModeBlack: "#191919",
53
53
  darkModeGrey: "#242424",
54
54
  darkModeGrey6: "#313235"
55
- }, n = ()=>({
55
+ }, t = ()=>({
56
56
  name: _constantsJs.BLAU_SKIN,
57
57
  colors: {
58
58
  appBarBackground: e.white,
@@ -142,7 +142,12 @@ const e = {
142
142
  successHigh: e.blauGreen70,
143
143
  warningHigh: e.blauYellow70,
144
144
  errorHigh: e.blauRed70,
145
- promoHigh: e.blauPurple
145
+ promoHigh: e.blauPurple,
146
+ successHighInverse: e.blauGreen70,
147
+ warningHighInverse: e.blauYellow70,
148
+ errorHighInverse: e.blauRed70,
149
+ promoHighInverse: e.blauPurple,
150
+ neutralMediumInverse: e.grey5
146
151
  },
147
152
  darkModeColors: {
148
153
  backgroundBrand: e.darkModeBlack,
@@ -204,14 +209,19 @@ const e = {
204
209
  textNavigationSearchBarText: e.grey2,
205
210
  textAppBar: e.grey5,
206
211
  textAppBarSelected: e.grey2,
207
- successLow: (0, _colorJs.applyAlpha)(e.white, 0.05),
208
- warningLow: (0, _colorJs.applyAlpha)(e.white, 0.05),
209
- errorLow: (0, _colorJs.applyAlpha)(e.white, 0.05),
210
- promoLow: (0, _colorJs.applyAlpha)(e.white, 0.05),
211
- brandLow: (0, _colorJs.applyAlpha)(e.white, 0.05),
212
+ successLow: e.darkModeGrey6,
213
+ warningLow: e.darkModeGrey6,
214
+ errorLow: e.darkModeGrey6,
215
+ promoLow: e.darkModeGrey6,
216
+ brandLow: e.darkModeGrey6,
212
217
  successHigh: e.blauGreen30,
213
218
  warningHigh: e.blauYellow40,
214
219
  errorHigh: e.blauRed40,
215
- promoHigh: e.blauPurple30
220
+ promoHigh: e.blauPurple30,
221
+ successHighInverse: e.blauGreen70,
222
+ warningHighInverse: e.blauYellow70,
223
+ errorHighInverse: e.blauRed70,
224
+ promoHighInverse: e.blauPurple,
225
+ neutralMediumInverse: e.grey5
216
226
  }
217
227
  });
@@ -147,7 +147,12 @@ const e = {
147
147
  successHigh: e.movistarGreen70,
148
148
  warningHigh: e.egg80,
149
149
  errorHigh: e.pepper70,
150
- promoHigh: e.purple70
150
+ promoHigh: e.purple70,
151
+ successHighInverse: e.movistarGreen70,
152
+ warningHighInverse: e.egg80,
153
+ errorHighInverse: e.pepper70,
154
+ promoHighInverse: e.purple70,
155
+ neutralMediumInverse: e.grey5
151
156
  },
152
157
  darkModeColors: {
153
158
  brand: e.movistarBlue,
@@ -213,15 +218,20 @@ const e = {
213
218
  textNavigationSearchBarText: e.grey2,
214
219
  textAppBar: e.grey5,
215
220
  textAppBarSelected: e.grey2,
216
- successLow: (0, _colorJs.applyAlpha)(e.white, 0.05),
217
- warningLow: (0, _colorJs.applyAlpha)(e.white, 0.05),
218
- errorLow: (0, _colorJs.applyAlpha)(e.white, 0.05),
219
- promoLow: (0, _colorJs.applyAlpha)(e.white, 0.05),
220
- brandLow: (0, _colorJs.applyAlpha)(e.white, 0.05),
221
+ successLow: e.grey6,
222
+ warningLow: e.grey6,
223
+ errorLow: e.grey6,
224
+ promoLow: e.grey6,
225
+ brandLow: e.grey6,
221
226
  successHigh: e.movistarGreen40,
222
227
  warningHigh: e.egg40,
223
228
  errorHigh: e.pepper40,
224
- promoHigh: e.purple40
229
+ promoHigh: e.purple40,
230
+ successHighInverse: e.movistarGreen70,
231
+ warningHighInverse: e.egg80,
232
+ errorHighInverse: e.pepper70,
233
+ promoHighInverse: e.purple70,
234
+ neutralMediumInverse: e.grey5
225
235
  },
226
236
  textPresets: {
227
237
  text5: {
@@ -154,7 +154,12 @@ const e = {
154
154
  successHigh: e.o2Green75,
155
155
  warningHigh: e.orange80,
156
156
  errorHigh: e.pepper70,
157
- promoHigh: e.pink60
157
+ promoHigh: e.pink60,
158
+ successHighInverse: e.o2Green75,
159
+ warningHighInverse: e.orange80,
160
+ errorHighInverse: e.pepper70,
161
+ promoHighInverse: e.pink60,
162
+ neutralMediumInverse: e.grey5
158
163
  },
159
164
  darkModeColors: {
160
165
  appBarBackground: e.darkModeGrey,
@@ -221,14 +226,19 @@ const e = {
221
226
  textNavigationSearchBarText: e.grey2,
222
227
  textAppBar: e.grey5,
223
228
  textAppBarSelected: e.grey2,
224
- successLow: (0, _colorJs.applyAlpha)(e.white, 0.05),
225
- warningLow: (0, _colorJs.applyAlpha)(e.white, 0.05),
226
- errorLow: (0, _colorJs.applyAlpha)(e.white, 0.05),
227
- promoLow: (0, _colorJs.applyAlpha)(e.white, 0.05),
228
- brandLow: (0, _colorJs.applyAlpha)(e.white, 0.05),
229
+ successLow: e.darkModeGrey6,
230
+ warningLow: e.darkModeGrey6,
231
+ errorLow: e.darkModeGrey6,
232
+ promoLow: e.darkModeGrey6,
233
+ brandLow: e.darkModeGrey6,
229
234
  successHigh: e.o2Green40,
230
235
  warningHigh: e.orange40,
231
236
  errorHigh: e.pepper40,
232
- promoHigh: e.pink40
237
+ promoHigh: e.pink40,
238
+ successHighInverse: e.o2Green75,
239
+ warningHighInverse: e.orange80,
240
+ errorHighInverse: e.pepper70,
241
+ promoHighInverse: e.pink60,
242
+ neutralMediumInverse: e.grey5
233
243
  }
234
244
  });