@telefonica/mistica 14.16.1 → 14.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/mistica.css +1 -1
- package/dist/button.css-mistica.js +19 -16
- package/dist/button.css.d.ts +1 -0
- package/dist/button.d.ts +6 -1
- package/dist/button.js +161 -115
- package/dist/card.js +41 -41
- package/dist/list.css-mistica.js +20 -11
- package/dist/list.css.d.ts +3 -0
- package/dist/list.d.ts +1 -0
- package/dist/list.js +121 -108
- package/dist/package-version.js +1 -1
- package/dist/skins/blau.js +11 -10
- package/dist/skins/defaults.js +1 -0
- package/dist/skins/movistar-legacy.js +11 -10
- package/dist/skins/movistar.js +11 -10
- package/dist/skins/o2.js +11 -10
- package/dist/skins/telefonica.js +11 -10
- package/dist/skins/types/index.d.ts +1 -0
- package/dist/skins/vivo-new.js +11 -10
- package/dist/skins/vivo.js +11 -10
- package/dist/spinner.css-mistica.js +4 -4
- package/dist/tabs.js +13 -13
- package/dist-es/button.css-mistica.js +3 -3
- package/dist-es/button.js +201 -155
- package/dist-es/card.js +66 -66
- package/dist-es/list.css-mistica.js +2 -2
- package/dist-es/list.js +159 -146
- package/dist-es/package-version.js +1 -1
- package/dist-es/skins/blau.js +11 -10
- package/dist-es/skins/defaults.js +1 -0
- package/dist-es/skins/movistar-legacy.js +11 -10
- package/dist-es/skins/movistar.js +11 -10
- package/dist-es/skins/o2.js +11 -10
- package/dist-es/skins/telefonica.js +11 -10
- package/dist-es/skins/vivo-new.js +11 -10
- package/dist-es/skins/vivo.js +11 -10
- package/dist-es/spinner.css-mistica.js +2 -2
- package/dist-es/style.css +1 -1
- package/dist-es/tabs.js +18 -18
- package/package.json +1 -1
package/dist/skins/vivo-new.js
CHANGED
|
@@ -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
|
});
|
package/dist/skins/vivo.js
CHANGED
|
@@ -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
|
|
16
|
+
return f;
|
|
17
17
|
},
|
|
18
18
|
spinnerIos: function() {
|
|
19
|
-
return
|
|
19
|
+
return v;
|
|
20
20
|
},
|
|
21
21
|
spinnerIosSvgPath: function() {
|
|
22
|
-
return
|
|
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",
|
|
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
|
|
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:
|
|
129
|
-
const t = document.querySelector(`[id='${n}'] [data-tabindex="${l}"]`),
|
|
130
|
-
t &&
|
|
131
|
-
e.style.width = `${
|
|
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
|
-
},
|
|
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":
|
|
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":
|
|
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:
|
|
175
|
-
mobileSize:
|
|
176
|
-
desktopLineHeight:
|
|
177
|
-
mobileLineHeight:
|
|
178
|
-
weight:
|
|
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 =
|
|
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",
|
|
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
|
|
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 };
|