@telefonica/mistica 15.9.0 → 15.11.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/css/mistica.css +1 -1
- package/dist/boxed.css-mistica.js +35 -2
- package/dist/boxed.css.d.ts +29 -0
- package/dist/boxed.d.ts +6 -4
- package/dist/boxed.js +30 -24
- package/dist/button-group.css-mistica.js +14 -5
- package/dist/button-group.css.d.ts +3 -0
- package/dist/button-group.d.ts +2 -1
- package/dist/button-group.js +29 -16
- package/dist/button-layout.css-mistica.js +7 -7
- package/dist/button-layout.css.d.ts +1 -1
- package/dist/button-layout.js +9 -9
- package/dist/button.d.ts +4 -24
- package/dist/button.js +6 -4
- package/dist/card.d.ts +8 -1
- package/dist/card.js +567 -501
- package/dist/carousel.css-mistica.js +19 -16
- package/dist/carousel.css.d.ts +1 -0
- package/dist/carousel.js +41 -39
- package/dist/chip.js +37 -44
- package/dist/circle.d.ts +11 -4
- package/dist/circle.js +10 -11
- package/dist/community/advanced-data-card.css-mistica.js +24 -21
- package/dist/community/advanced-data-card.css.d.ts +1 -0
- package/dist/community/advanced-data-card.d.ts +1 -0
- package/dist/community/advanced-data-card.js +20 -17
- package/dist/counter.js +26 -22
- package/dist/cover-hero-media.d.ts +12 -0
- package/dist/cover-hero-media.js +44 -0
- package/dist/cover-hero.css-mistica.js +56 -0
- package/dist/cover-hero.css.d.ts +14 -0
- package/dist/cover-hero.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/cover-hero.d.ts +38 -0
- package/dist/cover-hero.js +296 -0
- package/dist/empty-state.js +6 -6
- package/dist/grid-layout.css-mistica.js +11 -8
- package/dist/grid-layout.css.d.ts +1 -0
- package/dist/grid-layout.d.ts +12 -22
- package/dist/grid-layout.js +63 -49
- package/dist/header.js +18 -18
- package/dist/highlighted-card.d.ts +1 -0
- package/dist/highlighted-card.js +22 -18
- package/dist/icon-button.d.ts +7 -6
- package/dist/image.js +69 -48
- package/dist/index.d.ts +4 -1
- package/dist/index.js +15 -0
- package/dist/list.d.ts +1 -0
- package/dist/navigation-bar.d.ts +1 -1
- package/dist/navigation-bar.js +1 -1
- package/dist/package-version.js +1 -1
- package/dist/select.js +16 -12
- package/dist/skins/movistar.d.ts +13 -0
- package/dist/skins/movistar.js +112 -99
- package/dist/spinner.js +19 -18
- package/dist/table.css-mistica.js +58 -0
- package/dist/table.css.d.ts +13 -0
- package/dist/table.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/table.d.ts +39 -0
- package/dist/table.js +269 -0
- package/dist/text.d.ts +1 -1
- package/dist/theme.d.ts +20 -0
- package/dist/theme.js +80 -20
- package/dist/timer.css-mistica.js +39 -0
- package/dist/timer.css.d.ts +8 -0
- package/dist/timer.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/timer.d.ts +27 -0
- package/dist/timer.js +370 -0
- package/dist/tooltip.js +13 -13
- package/dist/touchable.d.ts +2 -0
- package/dist/touchable.js +35 -31
- package/dist/utils/helpers.js +32 -32
- package/dist-es/boxed.css-mistica.js +29 -2
- package/dist-es/boxed.js +37 -31
- package/dist-es/button-group.css-mistica.js +2 -2
- package/dist-es/button-group.js +37 -24
- package/dist-es/button-layout.css-mistica.js +2 -2
- package/dist-es/button-layout.js +16 -16
- package/dist-es/button.js +24 -22
- package/dist-es/card.js +681 -618
- package/dist-es/carousel.css-mistica.js +7 -7
- package/dist-es/carousel.js +75 -73
- package/dist-es/chip.js +57 -64
- package/dist-es/circle.js +15 -16
- package/dist-es/community/advanced-data-card.css-mistica.js +4 -4
- package/dist-es/community/advanced-data-card.js +59 -56
- package/dist-es/counter.js +62 -58
- package/dist-es/cover-hero-media.js +30 -0
- package/dist-es/cover-hero.css-mistica.js +9 -0
- package/dist-es/cover-hero.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/cover-hero.js +241 -0
- package/dist-es/empty-state.js +13 -13
- package/dist-es/grid-layout.css-mistica.js +3 -3
- package/dist-es/grid-layout.js +80 -66
- package/dist-es/header.js +37 -37
- package/dist-es/highlighted-card.js +35 -31
- package/dist-es/image.js +88 -67
- package/dist-es/index.js +1817 -1814
- package/dist-es/navigation-bar.js +1 -1
- package/dist-es/package-version.js +1 -1
- package/dist-es/select.js +23 -18
- package/dist-es/skins/movistar.js +112 -99
- package/dist-es/spinner.js +38 -37
- package/dist-es/style.css +1 -1
- package/dist-es/table.css-mistica.js +14 -0
- package/dist-es/table.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/table.js +214 -0
- package/dist-es/theme.js +77 -17
- package/dist-es/timer.css-mistica.js +4 -0
- package/dist-es/timer.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/timer.js +307 -0
- package/dist-es/tooltip.js +16 -16
- package/dist-es/touchable.js +47 -43
- package/dist-es/utils/helpers.js +31 -31
- package/package.json +1 -1
package/dist/navigation-bar.js
CHANGED
|
@@ -224,7 +224,7 @@ const we = (param)=>{
|
|
|
224
224
|
]
|
|
225
225
|
});
|
|
226
226
|
}, mn = (param)=>{
|
|
227
|
-
let { sections: n, selectedIndex: a, right: t, isInverse: r = !1, topFixed: o = !0, withBorder: s = !0, burgerMenuExtra: c, logo: l, large: p = !1 } = param;
|
|
227
|
+
let { sections: n = [], selectedIndex: a, right: t, isInverse: r = !1, topFixed: o = !0, withBorder: s = !0, burgerMenuExtra: c, logo: l, large: p = !1 } = param;
|
|
228
228
|
const { texts: m, isDarkMode: q } = (0, _hooks.useTheme)(), [d, I] = _react.useState(!1), [O, h] = _react.useState("closed"), R = (0, _hooks.useAriaId)(), J = q ? 1 : 0.2, { isTabletOrSmaller: K } = (0, _hooks.useScreenSize)(), y = (0, _modalcontextprovider.useSetModalState)();
|
|
229
229
|
l = l !== null && l !== void 0 ? l : /* @__PURE__ */ (0, _jsxruntime.jsx)(_logo.Logo, {
|
|
230
230
|
size: {
|
package/dist/package-version.js
CHANGED
package/dist/select.js
CHANGED
|
@@ -142,9 +142,9 @@ const st = (param)=>{
|
|
|
142
142
|
}, I = (e)=>{
|
|
143
143
|
if (e) {
|
|
144
144
|
if (S != null && S.current) {
|
|
145
|
-
const o = S.current.getBoundingClientRect(), p = o.top, E = o.width, O = o.left, Re = o.height,
|
|
146
|
-
if (
|
|
147
|
-
const Ae = window.innerHeight -
|
|
145
|
+
const o = S.current.getBoundingClientRect(), p = o.top, E = o.width, O = o.left, Re = o.height, y = p + Re, _ = Math.min(f.length, 8) * 48 + 16;
|
|
146
|
+
if (y + _ + 12 > window.innerHeight) {
|
|
147
|
+
const Ae = window.innerHeight - y;
|
|
148
148
|
if (p > Ae) {
|
|
149
149
|
const _e = p - _;
|
|
150
150
|
F({
|
|
@@ -156,14 +156,14 @@ const st = (param)=>{
|
|
|
156
156
|
});
|
|
157
157
|
} else F({
|
|
158
158
|
minWidth: E,
|
|
159
|
-
top:
|
|
159
|
+
top: y,
|
|
160
160
|
left: O,
|
|
161
|
-
maxHeight: window.innerHeight -
|
|
161
|
+
maxHeight: window.innerHeight - y - 12,
|
|
162
162
|
transformOrigin: "center top"
|
|
163
163
|
});
|
|
164
164
|
} else F({
|
|
165
165
|
minWidth: E,
|
|
166
|
-
top:
|
|
166
|
+
top: y,
|
|
167
167
|
left: O,
|
|
168
168
|
maxHeight: _,
|
|
169
169
|
transformOrigin: "center top"
|
|
@@ -187,7 +187,7 @@ const st = (param)=>{
|
|
|
187
187
|
}
|
|
188
188
|
o && o.top + o.height / 2 <= t.top && (c == null || c.scrollIntoView(!1));
|
|
189
189
|
}
|
|
190
|
-
}, Oe = d.current,
|
|
190
|
+
}, Oe = d.current, ye = h.current;
|
|
191
191
|
_react.useEffect(()=>{
|
|
192
192
|
Z({
|
|
193
193
|
name: i,
|
|
@@ -215,7 +215,7 @@ const st = (param)=>{
|
|
|
215
215
|
d,
|
|
216
216
|
h,
|
|
217
217
|
Oe,
|
|
218
|
-
|
|
218
|
+
ye
|
|
219
219
|
]), _react.useEffect(()=>{
|
|
220
220
|
const e = (s)=>{
|
|
221
221
|
var p;
|
|
@@ -260,7 +260,7 @@ const st = (param)=>{
|
|
|
260
260
|
]), _react.useEffect(()=>{
|
|
261
261
|
ve(!1);
|
|
262
262
|
}, []);
|
|
263
|
-
const
|
|
263
|
+
const be = (e)=>{
|
|
264
264
|
var t;
|
|
265
265
|
return e ? (t = f.find((param)=>{
|
|
266
266
|
let { value: s } = param;
|
|
@@ -337,10 +337,14 @@ const st = (param)=>{
|
|
|
337
337
|
}),
|
|
338
338
|
f.map((param)=>{
|
|
339
339
|
let { value: e, text: t } = param;
|
|
340
|
-
return
|
|
340
|
+
return(// Similar issue in another lib: https://github.com/chakra-ui/chakra-ui/issues/417#issue-566611352
|
|
341
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)("option", {
|
|
341
342
|
value: e,
|
|
343
|
+
style: {
|
|
344
|
+
color: "initial"
|
|
345
|
+
},
|
|
342
346
|
children: t
|
|
343
|
-
}, e);
|
|
347
|
+
}, e));
|
|
344
348
|
})
|
|
345
349
|
]
|
|
346
350
|
}),
|
|
@@ -390,7 +394,7 @@ const st = (param)=>{
|
|
|
390
394
|
}),
|
|
391
395
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
392
396
|
className: (0, _classnames.default)(_selectcssmistica.selectTextVariants[T ? "disabled" : "default"], w ? _textfieldbasecssmistica.inputWithLabel : _textfieldbasecssmistica.inputWithoutLabel),
|
|
393
|
-
children:
|
|
397
|
+
children: be(a !== null && a !== void 0 ? a : l)
|
|
394
398
|
})
|
|
395
399
|
]
|
|
396
400
|
})),
|
package/dist/skins/movistar.d.ts
CHANGED
|
@@ -2,28 +2,40 @@ import type { GetKnownSkin } from './types';
|
|
|
2
2
|
export declare const palette: {
|
|
3
3
|
movistarBlue: string;
|
|
4
4
|
movistarBlue10: string;
|
|
5
|
+
movistarBlue15: string;
|
|
5
6
|
movistarBlue20: string;
|
|
6
7
|
movistarBlue30: string;
|
|
7
8
|
movistarBlue40: string;
|
|
8
9
|
movistarBlue55: string;
|
|
10
|
+
movistarBlueHC: string;
|
|
11
|
+
movistarBlueHC55: string;
|
|
12
|
+
movistarBlueHC65: string;
|
|
9
13
|
movistarGreen: string;
|
|
10
14
|
movistarGreen10: string;
|
|
11
15
|
movistarGreen30: string;
|
|
12
16
|
movistarGreen40: string;
|
|
17
|
+
movistarGreen55: string;
|
|
13
18
|
movistarGreen60: string;
|
|
14
19
|
movistarGreen70: string;
|
|
15
20
|
pepper: string;
|
|
16
21
|
pepper10: string;
|
|
17
22
|
pepper40: string;
|
|
23
|
+
pepper45: string;
|
|
18
24
|
pepper55: string;
|
|
25
|
+
pepper60: string;
|
|
26
|
+
pepper65: string;
|
|
19
27
|
pepper70: string;
|
|
20
28
|
egg: string;
|
|
21
29
|
egg10: string;
|
|
22
30
|
egg40: string;
|
|
31
|
+
egg55: string;
|
|
23
32
|
egg80: string;
|
|
24
33
|
pink: string;
|
|
34
|
+
pink45: string;
|
|
35
|
+
pink55: string;
|
|
25
36
|
purple: string;
|
|
26
37
|
purple10: string;
|
|
38
|
+
purple35: string;
|
|
27
39
|
purple40: string;
|
|
28
40
|
purple70: string;
|
|
29
41
|
grey1: string;
|
|
@@ -42,5 +54,6 @@ export declare const palette: {
|
|
|
42
54
|
darkModeGrey4: string;
|
|
43
55
|
darkModeGrey5: string;
|
|
44
56
|
darkModeGrey6: string;
|
|
57
|
+
darkModeGrey7: string;
|
|
45
58
|
};
|
|
46
59
|
export declare const getMovistarSkin: GetKnownSkin;
|
package/dist/skins/movistar.js
CHANGED
|
@@ -19,37 +19,49 @@ _export(exports, {
|
|
|
19
19
|
const _constants = require("./constants.js");
|
|
20
20
|
const _color = require("../utils/color.js");
|
|
21
21
|
const e = {
|
|
22
|
-
movistarBlue: "#
|
|
22
|
+
movistarBlue: "#0B9CEA",
|
|
23
23
|
movistarBlue10: "#E6F5FD",
|
|
24
|
+
movistarBlue15: "#CEEBFB",
|
|
24
25
|
movistarBlue20: "#B3E1FB",
|
|
25
26
|
movistarBlue30: "#80CEF9",
|
|
26
27
|
movistarBlue40: "#4DBAF7",
|
|
27
28
|
movistarBlue55: "#008EDD",
|
|
29
|
+
movistarBlueHC: "#066FCB",
|
|
30
|
+
movistarBlueHC55: "#055EAC",
|
|
31
|
+
movistarBlueHC65: "#055398",
|
|
28
32
|
movistarGreen: "#5CB615",
|
|
29
33
|
movistarGreen10: "#EFF8E8",
|
|
30
34
|
movistarGreen30: "#ADDA8A",
|
|
31
35
|
movistarGreen40: "#8DCC5B",
|
|
36
|
+
movistarGreen55: "#52A413",
|
|
32
37
|
movistarGreen60: "#499110",
|
|
33
38
|
movistarGreen70: "#407F0F",
|
|
34
39
|
pepper: "#FF374A",
|
|
35
40
|
pepper10: "#FFEBED",
|
|
36
41
|
pepper40: "#FF7380",
|
|
42
|
+
pepper45: "#FF5F6E",
|
|
37
43
|
pepper55: "#D73241",
|
|
44
|
+
pepper60: "#CC2C3B",
|
|
45
|
+
pepper65: "#BF2937",
|
|
38
46
|
pepper70: "#B22634",
|
|
39
47
|
egg: "#F28D15",
|
|
40
48
|
egg10: "#FEF4E8",
|
|
41
49
|
egg40: "#F6AF5B",
|
|
50
|
+
egg55: "#D97D0D",
|
|
42
51
|
egg80: "#6D3F09",
|
|
43
52
|
pink: "#E63780",
|
|
53
|
+
pink45: "#EB5F99",
|
|
54
|
+
pink55: "#C42F6D",
|
|
44
55
|
purple: "#A13EA1",
|
|
45
56
|
purple10: "#F6ECF6",
|
|
57
|
+
purple35: "#C78BC7",
|
|
46
58
|
purple40: "#BD78BD",
|
|
47
59
|
purple70: "#712B71",
|
|
48
60
|
grey1: "#F6F6F6",
|
|
49
61
|
grey2: "#EEEEEE",
|
|
50
62
|
grey3: "#DDDDDD",
|
|
51
|
-
grey4: "#
|
|
52
|
-
grey5: "#
|
|
63
|
+
grey4: "#949494",
|
|
64
|
+
grey5: "#6B6C6F",
|
|
53
65
|
grey6: "#313235",
|
|
54
66
|
white: "#FFFFFF",
|
|
55
67
|
black: "#000000",
|
|
@@ -60,7 +72,8 @@ const e = {
|
|
|
60
72
|
darkModeGrey3: "#CED4D7",
|
|
61
73
|
darkModeGrey4: "#85939C",
|
|
62
74
|
darkModeGrey5: "#6D7D88",
|
|
63
|
-
darkModeGrey6: "#3C5261"
|
|
75
|
+
darkModeGrey6: "#3C5261",
|
|
76
|
+
darkModeGrey7: "#032F46"
|
|
64
77
|
}, d = ()=>({
|
|
65
78
|
name: _constants.MOVISTAR_SKIN,
|
|
66
79
|
colors: {
|
|
@@ -70,11 +83,11 @@ const e = {
|
|
|
70
83
|
backgroundBrandSecondary: e.movistarBlueDark,
|
|
71
84
|
backgroundContainer: e.white,
|
|
72
85
|
backgroundContainerError: e.pepper10,
|
|
73
|
-
backgroundContainerHover: (0, _color.applyAlpha)(e.
|
|
74
|
-
backgroundContainerPressed: (0, _color.applyAlpha)(e.
|
|
86
|
+
backgroundContainerHover: (0, _color.applyAlpha)(e.black, 0.03),
|
|
87
|
+
backgroundContainerPressed: (0, _color.applyAlpha)(e.black, 0.05),
|
|
75
88
|
backgroundContainerBrand: e.movistarBlue,
|
|
76
|
-
backgroundContainerBrandHover: (0, _color.applyAlpha)(e.
|
|
77
|
-
backgroundContainerBrandPressed: (0, _color.applyAlpha)(e.
|
|
89
|
+
backgroundContainerBrandHover: (0, _color.applyAlpha)(e.black, 0.1),
|
|
90
|
+
backgroundContainerBrandPressed: (0, _color.applyAlpha)(e.black, 0.2),
|
|
78
91
|
backgroundContainerBrandOverInverse: e.movistarBlue55,
|
|
79
92
|
backgroundContainerAlternative: e.grey1,
|
|
80
93
|
backgroundOverlay: (0, _color.applyAlpha)(e.movistarBlueDark, 0.6),
|
|
@@ -89,58 +102,58 @@ const e = {
|
|
|
89
102
|
border: e.grey3,
|
|
90
103
|
borderHigh: e.grey5,
|
|
91
104
|
borderSelected: e.movistarBlue,
|
|
92
|
-
coverBackgroundHover: (0, _color.applyAlpha)(e.
|
|
93
|
-
coverBackgroundPressed: (0, _color.applyAlpha)(e.
|
|
94
|
-
buttonDangerBackground: e.
|
|
95
|
-
buttonDangerBackgroundSelected: e.
|
|
96
|
-
buttonDangerBackgroundHover: e.
|
|
105
|
+
coverBackgroundHover: (0, _color.applyAlpha)(e.black, 0.25),
|
|
106
|
+
coverBackgroundPressed: (0, _color.applyAlpha)(e.black, 0.35),
|
|
107
|
+
buttonDangerBackground: e.pepper55,
|
|
108
|
+
buttonDangerBackgroundSelected: e.pepper70,
|
|
109
|
+
buttonDangerBackgroundHover: e.pepper65,
|
|
97
110
|
buttonLinkDangerBackgroundSelected: e.pepper10,
|
|
98
111
|
buttonLinkDangerBackgroundInverse: e.white,
|
|
99
112
|
buttonLinkDangerBackgroundInverseSelected: e.pepper10,
|
|
100
113
|
buttonLinkBackgroundSelected: e.movistarBlue10,
|
|
101
114
|
buttonLinkBackgroundInverseSelected: (0, _color.applyAlpha)(e.white, 0.2),
|
|
102
|
-
buttonPrimaryBackground: e.
|
|
115
|
+
buttonPrimaryBackground: e.movistarBlueHC,
|
|
103
116
|
buttonPrimaryBackgroundInverse: e.white,
|
|
104
|
-
buttonPrimaryBackgroundSelected: e.
|
|
105
|
-
buttonPrimaryBackgroundHover: e.
|
|
106
|
-
buttonPrimaryBackgroundInverseSelected: e.
|
|
107
|
-
buttonSecondaryBorder: e.
|
|
108
|
-
buttonSecondaryBorderSelected: e.
|
|
117
|
+
buttonPrimaryBackgroundSelected: e.movistarBlueHC65,
|
|
118
|
+
buttonPrimaryBackgroundHover: e.movistarBlueHC55,
|
|
119
|
+
buttonPrimaryBackgroundInverseSelected: e.movistarBlue10,
|
|
120
|
+
buttonSecondaryBorder: e.movistarBlueHC,
|
|
121
|
+
buttonSecondaryBorderSelected: e.movistarBlueHC65,
|
|
109
122
|
buttonSecondaryBackgroundHover: e.movistarBlue10,
|
|
110
|
-
buttonSecondaryBackgroundSelected: e.
|
|
123
|
+
buttonSecondaryBackgroundSelected: e.movistarBlue15,
|
|
111
124
|
buttonSecondaryBorderInverse: e.white,
|
|
112
125
|
buttonSecondaryBorderInverseSelected: e.white,
|
|
113
126
|
buttonSecondaryBackgroundInverseHover: (0, _color.applyAlpha)(e.white, 0.2),
|
|
114
|
-
buttonSecondaryBackgroundInverseSelected: (0, _color.applyAlpha)(e.white, 0.
|
|
127
|
+
buttonSecondaryBackgroundInverseSelected: (0, _color.applyAlpha)(e.white, 0.3),
|
|
115
128
|
textButtonPrimary: e.white,
|
|
116
|
-
textButtonPrimaryInverse: e.
|
|
117
|
-
textButtonPrimaryInverseSelected: e.
|
|
118
|
-
textButtonSecondary: e.
|
|
119
|
-
textButtonSecondarySelected: e.
|
|
129
|
+
textButtonPrimaryInverse: e.movistarBlueHC,
|
|
130
|
+
textButtonPrimaryInverseSelected: e.movistarBlueHC,
|
|
131
|
+
textButtonSecondary: e.movistarBlueHC,
|
|
132
|
+
textButtonSecondarySelected: e.movistarBlueHC55,
|
|
120
133
|
textButtonSecondaryInverse: e.white,
|
|
121
134
|
textButtonSecondaryInverseSelected: e.white,
|
|
122
|
-
textLink: e.
|
|
135
|
+
textLink: e.movistarBlueHC,
|
|
123
136
|
textLinkInverse: e.white,
|
|
124
|
-
textLinkDanger: e.
|
|
137
|
+
textLinkDanger: e.pepper60,
|
|
125
138
|
textLinkSnackbar: e.movistarBlue30,
|
|
126
|
-
textActivated: e.
|
|
127
|
-
textBrand: e.
|
|
128
|
-
control: e.
|
|
139
|
+
textActivated: e.movistarBlueHC,
|
|
140
|
+
textBrand: e.movistarBlueHC,
|
|
141
|
+
control: e.grey4,
|
|
129
142
|
controlActivated: e.movistarBlue,
|
|
130
143
|
controlInverse: e.movistarBlue20,
|
|
131
144
|
controlActivatedInverse: e.white,
|
|
132
|
-
controlError: e.
|
|
145
|
+
controlError: e.pepper55,
|
|
133
146
|
barTrack: e.grey3,
|
|
134
|
-
loadingBar: e.
|
|
135
|
-
loadingBarBackground: e.
|
|
147
|
+
loadingBar: e.movistarBlue,
|
|
148
|
+
loadingBarBackground: e.grey2,
|
|
136
149
|
toggleAndroidInactive: e.grey2,
|
|
137
150
|
toggleAndroidBackgroundActive: e.movistarBlue20,
|
|
138
151
|
iosControlKnob: e.white,
|
|
139
|
-
divider: e.
|
|
152
|
+
divider: e.grey3,
|
|
140
153
|
dividerInverse: (0, _color.applyAlpha)(e.white, 0.2),
|
|
141
154
|
navigationBarDivider: e.movistarBlue,
|
|
142
155
|
badge: e.pepper55,
|
|
143
|
-
feedbackErrorBackground: e.
|
|
156
|
+
feedbackErrorBackground: e.pepper55,
|
|
144
157
|
feedbackInfoBackground: e.movistarBlueDark,
|
|
145
158
|
brand: e.movistarBlue,
|
|
146
159
|
brandHigh: e.movistarBlue55,
|
|
@@ -154,13 +167,13 @@ const e = {
|
|
|
154
167
|
textPrimaryInverse: e.white,
|
|
155
168
|
textSecondary: e.grey5,
|
|
156
169
|
textSecondaryInverse: e.movistarBlue10,
|
|
157
|
-
success: e.
|
|
158
|
-
warning: e.
|
|
159
|
-
error: e.
|
|
160
|
-
textError: e.
|
|
170
|
+
success: e.movistarGreen55,
|
|
171
|
+
warning: e.egg55,
|
|
172
|
+
error: e.pepper55,
|
|
173
|
+
textError: e.pepper55,
|
|
161
174
|
textErrorInverse: e.white,
|
|
162
175
|
promo: e.purple,
|
|
163
|
-
highlight: e.
|
|
176
|
+
highlight: e.pink55,
|
|
164
177
|
successLow: e.movistarGreen10,
|
|
165
178
|
warningLow: e.egg10,
|
|
166
179
|
errorLow: e.pepper10,
|
|
@@ -178,11 +191,11 @@ const e = {
|
|
|
178
191
|
textNavigationBarSecondary: e.movistarBlue20,
|
|
179
192
|
textNavigationSearchBarHint: e.movistarBlue20,
|
|
180
193
|
textNavigationSearchBarText: e.white,
|
|
181
|
-
textAppBar: e.
|
|
182
|
-
textAppBarSelected: e.
|
|
183
|
-
customTabsBackground: e.
|
|
194
|
+
textAppBar: e.grey5,
|
|
195
|
+
textAppBarSelected: e.movistarBlueHC,
|
|
196
|
+
customTabsBackground: e.white,
|
|
184
197
|
tagTextPromo: e.purple70,
|
|
185
|
-
tagTextActive: e.
|
|
198
|
+
tagTextActive: e.movistarBlueHC,
|
|
186
199
|
tagTextInactive: e.grey5,
|
|
187
200
|
tagTextSuccess: e.movistarGreen70,
|
|
188
201
|
tagTextWarning: e.egg80,
|
|
@@ -210,8 +223,8 @@ const e = {
|
|
|
210
223
|
backgroundContainerBrandOverInverse: e.darkModeGrey,
|
|
211
224
|
backgroundContainerAlternative: e.darkModeGrey,
|
|
212
225
|
backgroundOverlay: (0, _color.applyAlpha)(e.darkModeGrey, 0.8),
|
|
213
|
-
backgroundSkeleton: e.
|
|
214
|
-
backgroundSkeletonInverse: e.
|
|
226
|
+
backgroundSkeleton: e.darkModeGrey6,
|
|
227
|
+
backgroundSkeletonInverse: e.darkModeGrey6,
|
|
215
228
|
backgroundBrandTop: e.darkModeBlack,
|
|
216
229
|
backgroundBrandBottom: e.darkModeBlack,
|
|
217
230
|
appBarBackground: e.darkModeGrey,
|
|
@@ -219,89 +232,89 @@ const e = {
|
|
|
219
232
|
skeletonWave: e.darkModeGrey6,
|
|
220
233
|
borderLow: e.darkModeBlack,
|
|
221
234
|
border: e.darkModeGrey,
|
|
222
|
-
borderHigh: e.
|
|
235
|
+
borderHigh: e.darkModeGrey5,
|
|
223
236
|
borderSelected: e.movistarBlue,
|
|
224
237
|
coverBackgroundHover: (0, _color.applyAlpha)(e.darkModeBlack, 0.25),
|
|
225
238
|
coverBackgroundPressed: (0, _color.applyAlpha)(e.darkModeBlack, 0.35),
|
|
226
|
-
buttonDangerBackground: e.
|
|
227
|
-
buttonDangerBackgroundSelected: e.
|
|
228
|
-
buttonDangerBackgroundHover: e.
|
|
239
|
+
buttonDangerBackground: e.pepper55,
|
|
240
|
+
buttonDangerBackgroundSelected: e.pepper70,
|
|
241
|
+
buttonDangerBackgroundHover: e.pepper65,
|
|
229
242
|
buttonLinkDangerBackgroundSelected: (0, _color.applyAlpha)(e.white, 0.08),
|
|
230
243
|
buttonLinkDangerBackgroundInverse: (0, _color.applyAlpha)(e.white, 0),
|
|
231
244
|
buttonLinkDangerBackgroundInverseSelected: (0, _color.applyAlpha)(e.white, 0.08),
|
|
232
245
|
buttonLinkBackgroundSelected: (0, _color.applyAlpha)(e.white, 0.08),
|
|
233
246
|
buttonLinkBackgroundInverseSelected: (0, _color.applyAlpha)(e.white, 0.08),
|
|
234
|
-
buttonPrimaryBackground: e.
|
|
235
|
-
buttonPrimaryBackgroundInverse: e.
|
|
236
|
-
buttonPrimaryBackgroundSelected: e.
|
|
237
|
-
buttonPrimaryBackgroundHover: e.
|
|
238
|
-
buttonPrimaryBackgroundInverseSelected: e.
|
|
247
|
+
buttonPrimaryBackground: e.movistarBlueHC,
|
|
248
|
+
buttonPrimaryBackgroundInverse: e.movistarBlueHC,
|
|
249
|
+
buttonPrimaryBackgroundSelected: e.movistarBlueHC65,
|
|
250
|
+
buttonPrimaryBackgroundHover: e.movistarBlueHC55,
|
|
251
|
+
buttonPrimaryBackgroundInverseSelected: e.movistarBlueHC65,
|
|
239
252
|
buttonSecondaryBackgroundHover: (0, _color.applyAlpha)(e.white, 0.15),
|
|
240
|
-
buttonSecondaryBackgroundSelected: (0, _color.applyAlpha)(e.white, 0.
|
|
253
|
+
buttonSecondaryBackgroundSelected: (0, _color.applyAlpha)(e.white, 0.25),
|
|
241
254
|
buttonSecondaryBorder: e.white,
|
|
242
255
|
buttonSecondaryBorderSelected: e.white,
|
|
243
|
-
buttonSecondaryBorderInverse: e.
|
|
244
|
-
buttonSecondaryBorderInverseSelected: e.
|
|
256
|
+
buttonSecondaryBorderInverse: e.darkModeGrey2,
|
|
257
|
+
buttonSecondaryBorderInverseSelected: e.darkModeGrey2,
|
|
245
258
|
buttonSecondaryBackgroundInverseHover: (0, _color.applyAlpha)(e.white, 0.15),
|
|
246
|
-
buttonSecondaryBackgroundInverseSelected: (0, _color.applyAlpha)(e.white, 0.
|
|
247
|
-
textButtonPrimary: e.
|
|
248
|
-
textButtonPrimaryInverse: e.
|
|
249
|
-
textButtonPrimaryInverseSelected: e.
|
|
259
|
+
buttonSecondaryBackgroundInverseSelected: (0, _color.applyAlpha)(e.white, 0.25),
|
|
260
|
+
textButtonPrimary: e.white,
|
|
261
|
+
textButtonPrimaryInverse: e.white,
|
|
262
|
+
textButtonPrimaryInverseSelected: e.white,
|
|
250
263
|
textButtonSecondary: e.darkModeGrey2,
|
|
251
|
-
textButtonSecondarySelected: e.
|
|
264
|
+
textButtonSecondarySelected: e.darkModeGrey2,
|
|
252
265
|
textButtonSecondaryInverse: e.darkModeGrey2,
|
|
253
|
-
textButtonSecondaryInverseSelected: e.
|
|
266
|
+
textButtonSecondaryInverseSelected: e.darkModeGrey2,
|
|
254
267
|
textLink: e.movistarBlue,
|
|
255
268
|
textLinkInverse: e.movistarBlue,
|
|
256
|
-
textLinkDanger: e.
|
|
257
|
-
textLinkSnackbar: e.
|
|
269
|
+
textLinkDanger: e.pepper45,
|
|
270
|
+
textLinkSnackbar: e.movistarBlue,
|
|
258
271
|
textActivated: e.movistarBlue,
|
|
259
272
|
textBrand: e.movistarBlue,
|
|
260
|
-
control: e.
|
|
273
|
+
control: e.darkModeGrey4,
|
|
261
274
|
controlActivated: e.movistarBlue,
|
|
262
|
-
controlInverse: e.
|
|
275
|
+
controlInverse: e.darkModeGrey4,
|
|
263
276
|
controlActivatedInverse: e.movistarBlue,
|
|
264
|
-
controlError: e.
|
|
277
|
+
controlError: e.pepper45,
|
|
265
278
|
barTrack: e.darkModeGrey6,
|
|
266
279
|
loadingBar: e.movistarBlue,
|
|
267
280
|
loadingBarBackground: e.darkModeGrey6,
|
|
268
|
-
toggleAndroidInactive: e.
|
|
281
|
+
toggleAndroidInactive: e.darkModeGrey2,
|
|
269
282
|
toggleAndroidBackgroundActive: e.movistarBlue20,
|
|
270
283
|
iosControlKnob: e.darkModeGrey2,
|
|
271
|
-
divider: (0, _color.applyAlpha)(e.white, 0.
|
|
272
|
-
dividerInverse: (0, _color.applyAlpha)(e.white, 0.
|
|
284
|
+
divider: (0, _color.applyAlpha)(e.white, 0.1),
|
|
285
|
+
dividerInverse: (0, _color.applyAlpha)(e.white, 0.1),
|
|
273
286
|
navigationBarDivider: e.darkModeBlack,
|
|
274
287
|
badge: e.pepper55,
|
|
275
|
-
feedbackErrorBackground: e.
|
|
288
|
+
feedbackErrorBackground: e.pepper55,
|
|
276
289
|
feedbackInfoBackground: e.movistarBlueDark,
|
|
277
290
|
brand: e.movistarBlue,
|
|
278
|
-
brandHigh: e.
|
|
291
|
+
brandHigh: e.movistarBlue40,
|
|
279
292
|
inverse: e.darkModeGrey2,
|
|
280
293
|
neutralHigh: e.darkModeGrey2,
|
|
281
294
|
neutralMedium: e.darkModeGrey5,
|
|
282
295
|
neutralMediumInverse: e.grey5,
|
|
283
|
-
neutralLow: e.
|
|
284
|
-
neutralLowAlternative: e.
|
|
296
|
+
neutralLow: e.darkModeGrey6,
|
|
297
|
+
neutralLowAlternative: e.darkModeGrey6,
|
|
285
298
|
textPrimary: e.darkModeGrey2,
|
|
286
299
|
textPrimaryInverse: e.darkModeGrey2,
|
|
287
300
|
textSecondary: e.darkModeGrey4,
|
|
288
301
|
textSecondaryInverse: e.darkModeGrey4,
|
|
289
302
|
success: e.movistarGreen,
|
|
290
303
|
warning: e.egg,
|
|
291
|
-
error: e.
|
|
292
|
-
textError: e.
|
|
293
|
-
textErrorInverse: e.
|
|
294
|
-
promo: e.
|
|
295
|
-
highlight: e.
|
|
296
|
-
successLow: e.
|
|
297
|
-
warningLow: e.
|
|
298
|
-
errorLow: e.
|
|
299
|
-
promoLow: e.
|
|
300
|
-
brandLow: e.
|
|
304
|
+
error: e.pepper45,
|
|
305
|
+
textError: e.pepper45,
|
|
306
|
+
textErrorInverse: e.pepper45,
|
|
307
|
+
promo: e.purple40,
|
|
308
|
+
highlight: e.pink45,
|
|
309
|
+
successLow: e.darkModeGrey7,
|
|
310
|
+
warningLow: e.darkModeGrey7,
|
|
311
|
+
errorLow: e.darkModeGrey7,
|
|
312
|
+
promoLow: e.darkModeGrey7,
|
|
313
|
+
brandLow: e.darkModeGrey7,
|
|
301
314
|
successHigh: e.movistarGreen40,
|
|
302
315
|
warningHigh: e.egg40,
|
|
303
|
-
errorHigh: e.
|
|
304
|
-
promoHigh: e.
|
|
316
|
+
errorHigh: e.pepper45,
|
|
317
|
+
promoHigh: e.purple35,
|
|
305
318
|
successHighInverse: e.movistarGreen70,
|
|
306
319
|
warningHighInverse: e.egg80,
|
|
307
320
|
errorHighInverse: e.pepper70,
|
|
@@ -310,21 +323,21 @@ const e = {
|
|
|
310
323
|
textNavigationBarSecondary: e.darkModeGrey4,
|
|
311
324
|
textNavigationSearchBarHint: e.darkModeGrey4,
|
|
312
325
|
textNavigationSearchBarText: e.darkModeGrey2,
|
|
313
|
-
textAppBar: e.
|
|
314
|
-
textAppBarSelected: e.
|
|
326
|
+
textAppBar: e.darkModeGrey4,
|
|
327
|
+
textAppBarSelected: e.movistarBlue,
|
|
315
328
|
customTabsBackground: e.darkModeBlack,
|
|
316
|
-
tagTextPromo: e.
|
|
329
|
+
tagTextPromo: e.purple35,
|
|
317
330
|
tagTextActive: e.movistarBlue,
|
|
318
|
-
tagTextInactive: e.
|
|
331
|
+
tagTextInactive: e.darkModeGrey3,
|
|
319
332
|
tagTextSuccess: e.movistarGreen40,
|
|
320
333
|
tagTextWarning: e.egg40,
|
|
321
|
-
tagTextError: e.
|
|
322
|
-
tagBackgroundPromo: e.
|
|
323
|
-
tagBackgroundActive: e.
|
|
324
|
-
tagBackgroundInactive: e.
|
|
325
|
-
tagBackgroundSuccess: e.
|
|
326
|
-
tagBackgroundWarning: e.
|
|
327
|
-
tagBackgroundError: e.
|
|
334
|
+
tagTextError: e.pepper45,
|
|
335
|
+
tagBackgroundPromo: e.darkModeGrey7,
|
|
336
|
+
tagBackgroundActive: e.darkModeGrey7,
|
|
337
|
+
tagBackgroundInactive: e.darkModeGrey7,
|
|
338
|
+
tagBackgroundSuccess: e.darkModeGrey7,
|
|
339
|
+
tagBackgroundWarning: e.darkModeGrey7,
|
|
340
|
+
tagBackgroundError: e.darkModeGrey7,
|
|
328
341
|
cardContentOverlay: `linear-gradient(180deg, ${(0, _color.applyAlpha)(e.black, 0)} 0%, ${(0, _color.applyAlpha)(e.black, 0.4)} 30%, ${(0, _color.applyAlpha)(e.black, 0.7)} 100%)`
|
|
329
342
|
},
|
|
330
343
|
borderRadii: {
|
package/dist/spinner.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "default", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function() {
|
|
9
|
-
return
|
|
9
|
+
return j;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -15,6 +15,7 @@ const _fadein = /*#__PURE__*/ _interop_require_default(require("./fade-in.js"));
|
|
|
15
15
|
const _hooks = require("./hooks.js");
|
|
16
16
|
const _spinnercssmistica = require("./spinner.css-mistica.js");
|
|
17
17
|
const _skincontractcssmistica = require("./skins/skin-contract.css-mistica.js");
|
|
18
|
+
const _themevariantcontext = require("./theme-variant-context.js");
|
|
18
19
|
function _interop_require_default(obj) {
|
|
19
20
|
return obj && obj.__esModule ? obj : {
|
|
20
21
|
default: obj
|
|
@@ -48,12 +49,12 @@ function _object_spread(target) {
|
|
|
48
49
|
}
|
|
49
50
|
return target;
|
|
50
51
|
}
|
|
51
|
-
const
|
|
52
|
-
let { color: t, delay:
|
|
53
|
-
const { texts:
|
|
54
|
-
t = t || _skincontractcssmistica.vars.colors.controlActivated;
|
|
55
|
-
const
|
|
56
|
-
"aria-labelledby":
|
|
52
|
+
const x = (param)=>{
|
|
53
|
+
let { color: t, delay: i = "500ms", size: a = 24, style: m, rolePresentation: p } = param;
|
|
54
|
+
const { texts: c, platformOverrides: h } = (0, _hooks.useTheme)(), f = (0, _themevariantcontext.useIsInverseVariant)();
|
|
55
|
+
t = t || (f ? _skincontractcssmistica.vars.colors.controlActivatedInverse : _skincontractcssmistica.vars.colors.controlActivated);
|
|
56
|
+
const n = (0, _hooks.useAriaId)(), r = !p, o = c.loading, C = (0, _platform.getPlatform)(h) === "ios" ? /* @__PURE__ */ (0, _jsxruntime.jsxs)("svg", {
|
|
57
|
+
"aria-labelledby": n,
|
|
57
58
|
className: _spinnercssmistica.spinnerIos,
|
|
58
59
|
height: a,
|
|
59
60
|
style: _object_spread({}, m),
|
|
@@ -61,9 +62,9 @@ const Z = (param)=>{
|
|
|
61
62
|
viewBox: "0 0 30 30",
|
|
62
63
|
width: a,
|
|
63
64
|
children: [
|
|
64
|
-
|
|
65
|
-
id:
|
|
66
|
-
children:
|
|
65
|
+
r && /* @__PURE__ */ (0, _jsxruntime.jsx)("title", {
|
|
66
|
+
id: n,
|
|
67
|
+
children: o
|
|
67
68
|
}),
|
|
68
69
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("g", {
|
|
69
70
|
role: "presentation",
|
|
@@ -112,7 +113,7 @@ const Z = (param)=>{
|
|
|
112
113
|
})
|
|
113
114
|
]
|
|
114
115
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsxs)("svg", {
|
|
115
|
-
"aria-labelledby":
|
|
116
|
+
"aria-labelledby": r ? n : void 0,
|
|
116
117
|
className: _spinnercssmistica.spinnerDefault,
|
|
117
118
|
height: a,
|
|
118
119
|
style: _object_spread({}, m),
|
|
@@ -120,9 +121,9 @@ const Z = (param)=>{
|
|
|
120
121
|
viewBox: "0 0 66 66",
|
|
121
122
|
width: a,
|
|
122
123
|
children: [
|
|
123
|
-
|
|
124
|
-
id:
|
|
125
|
-
children:
|
|
124
|
+
r && /* @__PURE__ */ (0, _jsxruntime.jsx)("title", {
|
|
125
|
+
id: n,
|
|
126
|
+
children: o
|
|
126
127
|
}),
|
|
127
128
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("circle", {
|
|
128
129
|
className: _spinnercssmistica.spinnerDefaultPath,
|
|
@@ -136,11 +137,11 @@ const Z = (param)=>{
|
|
|
136
137
|
})
|
|
137
138
|
]
|
|
138
139
|
});
|
|
139
|
-
return
|
|
140
|
-
delay:
|
|
140
|
+
return i === "0" || i === "0s" || i === "0ms" ? C : /* @__PURE__ */ (0, _jsxruntime.jsx)(_fadein.default, {
|
|
141
|
+
delay: i,
|
|
141
142
|
dataAttributes: {
|
|
142
143
|
"component-name": "Spinner"
|
|
143
144
|
},
|
|
144
|
-
children:
|
|
145
|
+
children: C
|
|
145
146
|
});
|
|
146
|
-
},
|
|
147
|
+
}, j = x;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
boxed: function() {
|
|
13
|
+
return l;
|
|
14
|
+
},
|
|
15
|
+
cellTextAlign: function() {
|
|
16
|
+
return a;
|
|
17
|
+
},
|
|
18
|
+
collapsedRowTittle: function() {
|
|
19
|
+
return k;
|
|
20
|
+
},
|
|
21
|
+
collapsedRowsInMobile: function() {
|
|
22
|
+
return t;
|
|
23
|
+
},
|
|
24
|
+
fullWidth: function() {
|
|
25
|
+
return _;
|
|
26
|
+
},
|
|
27
|
+
mobileCellHeading: function() {
|
|
28
|
+
return i;
|
|
29
|
+
},
|
|
30
|
+
scrollContainer: function() {
|
|
31
|
+
return v;
|
|
32
|
+
},
|
|
33
|
+
scrollOverResponsiveLayout: function() {
|
|
34
|
+
return c;
|
|
35
|
+
},
|
|
36
|
+
table: function() {
|
|
37
|
+
return d;
|
|
38
|
+
},
|
|
39
|
+
vars: function() {
|
|
40
|
+
return n;
|
|
41
|
+
},
|
|
42
|
+
verticalAlign: function() {
|
|
43
|
+
return p;
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
require("./sprinkles.css.ts.vanilla.css-mistica.js");
|
|
47
|
+
require("./responsive-layout.css.ts.vanilla.css-mistica.js");
|
|
48
|
+
require("./table.css.ts.vanilla.css-mistica.js");
|
|
49
|
+
var l = "_107ok884", a = {
|
|
50
|
+
left: "_107ok886 _107ok885",
|
|
51
|
+
right: "_107ok887 _107ok885",
|
|
52
|
+
center: "_107ok888 _107ok885"
|
|
53
|
+
}, k = "_107ok88e", t = "_107ok883", _ = "_107ok882", i = "_107ok88d", v = "_107ok889", c = "_107ok88a", d = "_107ok881", n = {
|
|
54
|
+
maxHeight: "var(--_107ok880)"
|
|
55
|
+
}, p = {
|
|
56
|
+
top: "_107ok88b",
|
|
57
|
+
middle: "_107ok88c"
|
|
58
|
+
};
|