@telefonica/mistica 14.16.0 → 14.17.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 (40) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/button.css-mistica.js +19 -16
  3. package/dist/button.css.d.ts +1 -0
  4. package/dist/button.d.ts +6 -1
  5. package/dist/button.js +161 -115
  6. package/dist/card.js +115 -119
  7. package/dist/list.css-mistica.js +17 -11
  8. package/dist/list.css.d.ts +2 -0
  9. package/dist/list.d.ts +1 -0
  10. package/dist/list.js +106 -94
  11. package/dist/package-version.js +1 -1
  12. package/dist/skins/blau.js +11 -10
  13. package/dist/skins/defaults.js +1 -0
  14. package/dist/skins/movistar-legacy.js +11 -10
  15. package/dist/skins/movistar.js +11 -10
  16. package/dist/skins/o2.js +11 -10
  17. package/dist/skins/telefonica.js +11 -10
  18. package/dist/skins/types/index.d.ts +1 -0
  19. package/dist/skins/vivo-new.js +11 -10
  20. package/dist/skins/vivo.js +11 -10
  21. package/dist/spinner.css-mistica.js +4 -4
  22. package/dist/tabs.js +13 -13
  23. package/dist-es/button.css-mistica.js +3 -3
  24. package/dist-es/button.js +201 -155
  25. package/dist-es/card.js +164 -168
  26. package/dist-es/list.css-mistica.js +2 -2
  27. package/dist-es/list.js +143 -131
  28. package/dist-es/package-version.js +1 -1
  29. package/dist-es/skins/blau.js +11 -10
  30. package/dist-es/skins/defaults.js +1 -0
  31. package/dist-es/skins/movistar-legacy.js +11 -10
  32. package/dist-es/skins/movistar.js +11 -10
  33. package/dist-es/skins/o2.js +11 -10
  34. package/dist-es/skins/telefonica.js +11 -10
  35. package/dist-es/skins/vivo-new.js +11 -10
  36. package/dist-es/skins/vivo.js +11 -10
  37. package/dist-es/spinner.css-mistica.js +2 -2
  38. package/dist-es/style.css +1 -1
  39. package/dist-es/tabs.js +18 -18
  40. package/package.json +1 -1
@@ -289,6 +289,17 @@ const e = {
289
289
  button: {
290
290
  weight: "medium"
291
291
  },
292
+ tabsLabel: {
293
+ weight: "medium",
294
+ size: {
295
+ mobile: 16,
296
+ desktop: 18
297
+ },
298
+ lineHeight: {
299
+ mobile: 24,
300
+ desktop: 24
301
+ }
302
+ },
292
303
  link: {
293
304
  weight: "medium"
294
305
  },
@@ -315,16 +326,6 @@ const e = {
315
326
  },
316
327
  text10: {
317
328
  weight: "regular"
318
- },
319
- tabsLabel: {
320
- size: {
321
- mobile: 16,
322
- desktop: 18
323
- },
324
- lineHeight: {
325
- mobile: 24,
326
- desktop: 24
327
- }
328
329
  }
329
330
  }
330
331
  });
@@ -15,6 +15,7 @@ export type TextPresetsConfig = {
15
15
  title1: TextTokenConfig<'regular' | 'medium'>;
16
16
  indicator: TextTokenConfig<'regular' | 'medium'>;
17
17
  tabsLabel: {
18
+ weight: FontWeight;
18
19
  size: {
19
20
  mobile: number;
20
21
  desktop: number;
@@ -289,6 +289,17 @@ const e = {
289
289
  button: {
290
290
  weight: "regular"
291
291
  },
292
+ tabsLabel: {
293
+ weight: "regular",
294
+ size: {
295
+ mobile: 18,
296
+ desktop: 18
297
+ },
298
+ lineHeight: {
299
+ mobile: 24,
300
+ desktop: 24
301
+ }
302
+ },
292
303
  link: {
293
304
  weight: "regular"
294
305
  },
@@ -315,16 +326,6 @@ const e = {
315
326
  },
316
327
  text10: {
317
328
  weight: "regular"
318
- },
319
- tabsLabel: {
320
- size: {
321
- mobile: 18,
322
- desktop: 18
323
- },
324
- lineHeight: {
325
- mobile: 24,
326
- desktop: 24
327
- }
328
329
  }
329
330
  }
330
331
  });
@@ -289,6 +289,17 @@ const e = {
289
289
  button: {
290
290
  weight: "medium"
291
291
  },
292
+ tabsLabel: {
293
+ weight: "medium",
294
+ size: {
295
+ mobile: 16,
296
+ desktop: 18
297
+ },
298
+ lineHeight: {
299
+ mobile: 24,
300
+ desktop: 24
301
+ }
302
+ },
292
303
  link: {
293
304
  weight: "medium"
294
305
  },
@@ -315,16 +326,6 @@ const e = {
315
326
  },
316
327
  text10: {
317
328
  weight: "light"
318
- },
319
- tabsLabel: {
320
- size: {
321
- mobile: 16,
322
- desktop: 18
323
- },
324
- lineHeight: {
325
- mobile: 24,
326
- desktop: 24
327
- }
328
329
  }
329
330
  }
330
331
  });
@@ -13,15 +13,15 @@ _export(exports, {
13
13
  return t;
14
14
  },
15
15
  spinnerDefaultPath: function() {
16
- return a;
16
+ return f;
17
17
  },
18
18
  spinnerIos: function() {
19
- return e;
19
+ return v;
20
20
  },
21
21
  spinnerIosSvgPath: function() {
22
- return f;
22
+ return a;
23
23
  }
24
24
  });
25
25
  require("./sprinkles.css.ts.vanilla.css-mistica.js");
26
26
  require("./spinner.css.ts.vanilla.css-mistica.js");
27
- var t = "_1fthc594 _1y2v1nf6m", a = "_1fthc595", e = "_1y2v1nf6m", f = "_1fthc597";
27
+ var t = "_1fthc594 _1y2v1nf6m _1y2v1nf66", f = "_1fthc595", v = "_1y2v1nf6m _1y2v1nf66", a = "_1fthc597";
package/dist/tabs.js CHANGED
@@ -114,7 +114,7 @@ function _object_spread_props(target, source) {
114
114
  }
115
115
  return target;
116
116
  }
117
- const f = (0, _platform.isRunningAcceptanceTest)() ? 0 : 300, q = (i)=>{
117
+ const d = (0, _platform.isRunningAcceptanceTest)() ? 0 : 300, q = (i)=>{
118
118
  switch(i){
119
119
  case 2:
120
120
  return "tabs2";
@@ -125,13 +125,13 @@ const f = (0, _platform.isRunningAcceptanceTest)() ? 0 : 300, q = (i)=>{
125
125
  }
126
126
  }, C = (param)=>{
127
127
  let { selectedIndex: i , onChange: y , tabs: b , dataAttributes: T } = param;
128
- const { textPresets: o } = (0, _hooks.useTheme)(), n = (0, _hooks.useAriaId)(), { ref: A } = (0, _hooks.useElementDimensions)(), u = _react.useRef(null), h = _react.useRef(null), [p, L] = _react.useState(!1), N = (l, c)=>{
129
- const t = document.querySelector(`[id='${n}'] [data-tabindex="${l}"]`), r = document.querySelector(`[id='${n}'] [data-tabindex="${c}"]`), e = u.current, a = h.current;
130
- t && r && e && a && (L(!0), e.style.display = "block", e.style.width = `${t.offsetWidth}px`, e.style.transform = `translate(${t.offsetLeft - a.scrollLeft}px, 0)`, Promise.resolve().then(()=>{
131
- e.style.width = `${r.offsetWidth}px`, e.style.transform = `translate(${r.offsetLeft - a.scrollLeft}px, 0)`, e.style.transition = `transform ${f}ms, width ${f}ms`;
128
+ const { textPresets: r } = (0, _hooks.useTheme)(), n = (0, _hooks.useAriaId)(), { ref: A } = (0, _hooks.useElementDimensions)(), u = _react.useRef(null), h = _react.useRef(null), [p, L] = _react.useState(!1), N = (l, c)=>{
129
+ const t = document.querySelector(`[id='${n}'] [data-tabindex="${l}"]`), o = document.querySelector(`[id='${n}'] [data-tabindex="${c}"]`), e = u.current, a = h.current;
130
+ t && o && e && a && (L(!0), e.style.display = "block", e.style.width = `${t.offsetWidth}px`, e.style.transform = `translate(${t.offsetLeft - a.scrollLeft}px, 0)`, Promise.resolve().then(()=>{
131
+ e.style.width = `${o.offsetWidth}px`, e.style.transform = `translate(${o.offsetLeft - a.scrollLeft}px, 0)`, e.style.transition = `transform ${d}ms, width ${d}ms`;
132
132
  }), setTimeout(()=>{
133
133
  e.style.transition = "", e.style.display = "none", L(!1);
134
- }, f));
134
+ }, d));
135
135
  };
136
136
  return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({
137
137
  id: n,
@@ -150,7 +150,7 @@ const f = (0, _platform.isRunningAcceptanceTest)() ? 0 : 300, q = (i)=>{
150
150
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
151
151
  className: _tabscssmistica.tabsContainer,
152
152
  children: b.map((param, e)=>{
153
- let { text: l , trackingEvent: c , icon: t , "aria-controls": r } = param;
153
+ let { text: l , trackingEvent: c , icon: t , "aria-controls": o } = param;
154
154
  const a = e === i;
155
155
  return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, {
156
156
  dataAttributes: {
@@ -163,7 +163,7 @@ const f = (0, _platform.isRunningAcceptanceTest)() ? 0 : 300, q = (i)=>{
163
163
  },
164
164
  trackingEvent: c,
165
165
  role: "tab",
166
- "aria-controls": r,
166
+ "aria-controls": o,
167
167
  "aria-selected": a ? "true" : "false",
168
168
  children: [
169
169
  t && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
@@ -171,11 +171,11 @@ const f = (0, _platform.isRunningAcceptanceTest)() ? 0 : 300, q = (i)=>{
171
171
  children: t
172
172
  }),
173
173
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, {
174
- desktopSize: o.tabsLabel.size.desktop,
175
- mobileSize: o.tabsLabel.size.mobile,
176
- desktopLineHeight: o.tabsLabel.lineHeight.desktop,
177
- mobileLineHeight: o.tabsLabel.lineHeight.mobile,
178
- weight: "medium",
174
+ desktopSize: r.tabsLabel.size.desktop,
175
+ mobileSize: r.tabsLabel.size.mobile,
176
+ desktopLineHeight: r.tabsLabel.lineHeight.desktop,
177
+ mobileLineHeight: r.tabsLabel.lineHeight.mobile,
178
+ weight: r.tabsLabel.weight,
179
179
  color: "inherit",
180
180
  wordBreak: !1,
181
181
  textAlign: "center",
@@ -1,12 +1,12 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./button.css.ts.vanilla.css-mistica.js";
3
- var _ = 104, r = 8, y = 24, f = 20, a = 16, p = 20, b = 14.5, i = 10.5, s = "rrbrpnl", e = "rrbrpni _1y2v1nf28", l = {
3
+ var _ = 104, r = 2, y = 8, f = 24, a = 20, p = 16, b = 20, i = 14.5, s = 10.5, e = "rrbrpnl", I = "rrbrpni _1y2v1nf28", l = {
4
4
  primary: "rrbrpnp rrbrpn2 _1y2v1nf6r _1y2v1nf76 _1y2v1nf7l _1y2v1nf80 _1y2v1nf68 _1y2v1nf5z _1y2v1nf8g _1y2v1nfah _1y2v1nfas _1y2v1nf21 _1y2v1nf3s",
5
5
  secondary: "rrbrpnq rrbrpn2 _1y2v1nf6r _1y2v1nf76 _1y2v1nf7l _1y2v1nf80 _1y2v1nf68 _1y2v1nf5z _1y2v1nf8g _1y2v1nfah _1y2v1nfas _1y2v1nf25 _1y2v1nf5y",
6
6
  danger: "rrbrpnr rrbrpn2 _1y2v1nf6r _1y2v1nf76 _1y2v1nf7l _1y2v1nf80 _1y2v1nf68 _1y2v1nf5z _1y2v1nf8g _1y2v1nfah _1y2v1nfas _1y2v1nf20 _1y2v1nf3m"
7
- }, t = "rrbrpn0", g = "rrbrpng _1y2v1nf7p _1y2v1nf84 _1y2v1nf68 _1y2v1nf8g _1y2v1nf5z _1y2v1nfah _1y2v1nfaa _1y2v1nf27 _1y2v1nf5y _1y2v1nfas _1y2v1nf9m", I = "rrbrpn7 _1y2v1nf65 _1y2v1nf60 _1y2v1nfau _1y2v1nfc3 _1y2v1nf6d _1y2v1nf6j", o = "rrbrpn4 _1y2v1nf66 _1y2v1nf8x _1y2v1nfas", N = "rrbrpn5", d = "rrbrpn9 _1y2v1nf64 _1y2v1nf6j _1y2v1nf6d", L = "rrbrpnk _1y2v1nf64 _1y2v1nf6j _1y2v1nf6d", m = {
7
+ }, t = "rrbrpn0", N = "rrbrpng _1y2v1nf7p _1y2v1nf84 _1y2v1nf68 _1y2v1nf8g _1y2v1nf5z _1y2v1nfah _1y2v1nfaa _1y2v1nf27 _1y2v1nf5y _1y2v1nfas _1y2v1nf9m", g = "rrbrpn7 _1y2v1nf65 _1y2v1nf60 _1y2v1nfau _1y2v1nfc3 _1y2v1nf6d _1y2v1nf6j", o = "rrbrpn4 _1y2v1nf66 _1y2v1nf8x _1y2v1nfas", L = "rrbrpn5", d = "rrbrpn9 _1y2v1nf64 _1y2v1nf6j _1y2v1nf6d", m = "rrbrpnk _1y2v1nf64 _1y2v1nf6j _1y2v1nf6d", S = {
8
8
  primary: "rrbrpnm rrbrpn2 _1y2v1nf6r _1y2v1nf76 _1y2v1nf7l _1y2v1nf80 _1y2v1nf68 _1y2v1nf5z _1y2v1nf8g _1y2v1nfah _1y2v1nfas _1y2v1nf20 _1y2v1nf3r",
9
9
  secondary: "rrbrpnn rrbrpn2 _1y2v1nf6r _1y2v1nf76 _1y2v1nf7l _1y2v1nf80 _1y2v1nf68 _1y2v1nf5z _1y2v1nf8g _1y2v1nfah _1y2v1nfas _1y2v1nf23 _1y2v1nf5y",
10
10
  danger: "rrbrpno rrbrpn2 _1y2v1nf6r _1y2v1nf76 _1y2v1nf7l _1y2v1nf80 _1y2v1nf68 _1y2v1nf5z _1y2v1nf8g _1y2v1nfah _1y2v1nfas _1y2v1nf20 _1y2v1nf3m"
11
11
  };
12
- export { _ as BUTTON_MIN_WIDTH, r as ICON_MARGIN_PX, y as ICON_SIZE, f as SMALL_ICON_SIZE, a as SMALL_SPINNER_SIZE, p as SPINNER_SIZE, b as X_PADDING_PX, i as X_SMALL_PADDING_PX, s as alignedLink, e as inverseLink, l as inverseVariants, t as isLoading, g as link, I as loadingContent, o as loadingFiller, N as small, d as textContent, L as textContentLink, m as variants };
12
+ export { _ as BUTTON_MIN_WIDTH, r as CHEVRON_MARGIN_LEFT_LINK, y as ICON_MARGIN_PX, f as ICON_SIZE, a as SMALL_ICON_SIZE, p as SMALL_SPINNER_SIZE, b as SPINNER_SIZE, i as X_PADDING_PX, s as X_SMALL_PADDING_PX, e as alignedLink, I as inverseLink, l as inverseVariants, t as isLoading, N as link, g as loadingContent, o as loadingFiller, L as small, d as textContent, m as textContentLink, S as variants };