@telefonica/mistica 10.19.0 → 10.22.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/CHANGELOG.md +34 -0
- package/dist/button-layout.js +30 -17
- package/dist/button.js +24 -8
- package/dist/card.js +25 -28
- package/dist/chip.d.ts +9 -0
- package/dist/chip.js +111 -0
- package/dist/chip.js.flow +11 -0
- package/dist/form.js +1 -1
- package/dist/header.d.ts +2 -0
- package/dist/header.js.flow +5 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +7 -0
- package/dist/index.js.flow +2 -0
- package/dist/package-version.js +1 -1
- package/dist/skins/blau.d.ts +6 -3
- package/dist/skins/blau.js +34 -5
- package/dist/skins/blau.js.flow +6 -3
- package/dist/skins/movistar.d.ts +21 -11
- package/dist/skins/movistar.js +76 -40
- package/dist/skins/movistar.js.flow +21 -11
- package/dist/skins/o2-classic.d.ts +21 -9
- package/dist/skins/o2-classic.js +64 -26
- package/dist/skins/o2-classic.js.flow +21 -9
- package/dist/skins/o2.d.ts +19 -17
- package/dist/skins/o2.js +68 -40
- package/dist/skins/o2.js.flow +19 -17
- package/dist/skins/telefonica.d.ts +18 -13
- package/dist/skins/telefonica.js +76 -45
- package/dist/skins/telefonica.js.flow +18 -13
- package/dist/skins/types.d.ts +12 -0
- package/dist/skins/types.js.flow +12 -0
- package/dist/skins/vivo.d.ts +9 -4
- package/dist/skins/vivo.js +37 -6
- package/dist/skins/vivo.js.flow +9 -4
- package/dist/tag.d.ts +6 -1
- package/dist/tag.js +133 -24
- package/dist/tag.js.flow +15 -1
- package/dist/text.d.ts +4 -0
- package/dist/text.js +13 -6
- package/dist/text.js.flow +10 -0
- package/dist/theme-context-provider.js +8 -2
- package/dist/theme.d.ts +2 -0
- package/dist/theme.js.flow +2 -0
- package/dist/touchable.js +3 -2
- package/dist-es/button-layout.js +30 -17
- package/dist-es/button.js +24 -8
- package/dist-es/card.js +26 -29
- package/dist-es/chip.js +100 -0
- package/dist-es/form.js +1 -1
- package/dist-es/index.js +1 -0
- package/dist-es/package-version.js +1 -1
- package/dist-es/skins/blau.js +36 -5
- package/dist-es/skins/movistar.js +78 -40
- package/dist-es/skins/o2-classic.js +66 -26
- package/dist-es/skins/o2.js +70 -40
- package/dist-es/skins/telefonica.js +78 -45
- package/dist-es/skins/vivo.js +39 -6
- package/dist-es/tag.js +130 -26
- package/dist-es/text.js +13 -6
- package/dist-es/theme-context-provider.js +8 -2
- package/dist-es/touchable.js +3 -2
- package/package.json +1 -1
package/dist-es/card.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import Tag from './tag';
|
|
4
4
|
import Stack from './stack';
|
|
@@ -14,8 +14,7 @@ var useCardContentStyles = createUseStyles(function() {
|
|
|
14
14
|
actions: {
|
|
15
15
|
flex: 1,
|
|
16
16
|
display: 'flex',
|
|
17
|
-
alignItems: 'flex-end'
|
|
18
|
-
marginTop: 16
|
|
17
|
+
alignItems: 'flex-end'
|
|
19
18
|
}
|
|
20
19
|
};
|
|
21
20
|
});
|
|
@@ -29,32 +28,30 @@ var CardContent = function(param) {
|
|
|
29
28
|
}
|
|
30
29
|
if (typeof headline === 'string') {
|
|
31
30
|
return(/*#__PURE__*/ _jsx(Tag, {
|
|
32
|
-
|
|
31
|
+
type: "promo",
|
|
33
32
|
children: headline
|
|
34
33
|
}));
|
|
35
34
|
}
|
|
36
35
|
return headline;
|
|
37
36
|
};
|
|
38
|
-
return(/*#__PURE__*/ _jsxs(
|
|
37
|
+
return(/*#__PURE__*/ _jsxs(Stack, {
|
|
38
|
+
space: 16,
|
|
39
39
|
children: [
|
|
40
40
|
/*#__PURE__*/ _jsxs(Stack, {
|
|
41
|
-
space:
|
|
41
|
+
space: 8,
|
|
42
42
|
children: [
|
|
43
|
-
/*#__PURE__*/
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
(headline || pretitle || title || subtitle) && /*#__PURE__*/ _jsx("header", {
|
|
44
|
+
children: /*#__PURE__*/ _jsxs(Stack, {
|
|
45
|
+
space: 16,
|
|
46
|
+
children: [
|
|
47
|
+
renderHeadline(),
|
|
48
|
+
/*#__PURE__*/ _jsxs(Stack, {
|
|
48
49
|
space: 4,
|
|
49
50
|
children: [
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
children:
|
|
54
|
-
regular: true,
|
|
55
|
-
uppercase: true,
|
|
56
|
-
children: pretitle
|
|
57
|
-
})
|
|
51
|
+
pretitle && /*#__PURE__*/ _jsx(Text1, {
|
|
52
|
+
regular: true,
|
|
53
|
+
uppercase: true,
|
|
54
|
+
children: pretitle
|
|
58
55
|
}),
|
|
59
56
|
/*#__PURE__*/ _jsx(Text4, {
|
|
60
57
|
as: "h1",
|
|
@@ -67,20 +64,20 @@ var CardContent = function(param) {
|
|
|
67
64
|
})
|
|
68
65
|
]
|
|
69
66
|
})
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
as: "p",
|
|
73
|
-
regular: true,
|
|
74
|
-
color: theme.colors.textSecondary,
|
|
75
|
-
children: description
|
|
76
|
-
})
|
|
77
|
-
]
|
|
67
|
+
]
|
|
68
|
+
})
|
|
78
69
|
}),
|
|
79
|
-
|
|
80
|
-
|
|
70
|
+
description && /*#__PURE__*/ _jsx(Text2, {
|
|
71
|
+
as: "p",
|
|
72
|
+
regular: true,
|
|
73
|
+
color: theme.colors.textSecondary,
|
|
74
|
+
children: description
|
|
81
75
|
})
|
|
82
76
|
]
|
|
83
77
|
}),
|
|
78
|
+
extra && /*#__PURE__*/ _jsx("div", {
|
|
79
|
+
children: extra
|
|
80
|
+
}),
|
|
84
81
|
(button || buttonLink) && /*#__PURE__*/ _jsx("div", {
|
|
85
82
|
className: classes.actions,
|
|
86
83
|
children: /*#__PURE__*/ _jsx(ButtonGroup, {
|
package/dist-es/chip.js
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { createUseStyles } from './jss';
|
|
3
|
+
import { useTheme } from './hooks';
|
|
4
|
+
import Box from './box';
|
|
5
|
+
import { Text2 } from './text';
|
|
6
|
+
import IconButton from './icon-button';
|
|
7
|
+
import IconCloseRegular from './generated/mistica-icons/icon-close-regular';
|
|
8
|
+
import { pxToRem } from './utils/css';
|
|
9
|
+
function _defineProperty(obj, key, value) {
|
|
10
|
+
if (key in obj) {
|
|
11
|
+
Object.defineProperty(obj, key, {
|
|
12
|
+
value: value,
|
|
13
|
+
enumerable: true,
|
|
14
|
+
configurable: true,
|
|
15
|
+
writable: true
|
|
16
|
+
});
|
|
17
|
+
} else {
|
|
18
|
+
obj[key] = value;
|
|
19
|
+
}
|
|
20
|
+
return obj;
|
|
21
|
+
}
|
|
22
|
+
var useStyles = createUseStyles(function(param) {
|
|
23
|
+
var colors = param.colors, mq = param.mq;
|
|
24
|
+
return {
|
|
25
|
+
container: _defineProperty({
|
|
26
|
+
display: 'inline-flex',
|
|
27
|
+
justifyContent: 'center',
|
|
28
|
+
alignItems: 'center',
|
|
29
|
+
border: "1px solid ".concat(colors.border),
|
|
30
|
+
borderRadius: 20,
|
|
31
|
+
backgroundColor: colors.backgroundContainer,
|
|
32
|
+
minHeight: 32,
|
|
33
|
+
minWidth: 56,
|
|
34
|
+
cursor: 'default',
|
|
35
|
+
color: colors.neutralMedium,
|
|
36
|
+
'& > span': {
|
|
37
|
+
color: colors.textPrimary
|
|
38
|
+
}
|
|
39
|
+
}, mq.supportsHover, {
|
|
40
|
+
'&:hover': {
|
|
41
|
+
borderColor: function(param) {
|
|
42
|
+
var isDarkMode = param.isDarkMode;
|
|
43
|
+
return isDarkMode ? colors.background : colors.tagBackgroundActive;
|
|
44
|
+
},
|
|
45
|
+
color: colors.controlActivated,
|
|
46
|
+
backgroundColor: colors.tagBackgroundActive
|
|
47
|
+
},
|
|
48
|
+
'&:hover > span': {
|
|
49
|
+
color: colors.textLink
|
|
50
|
+
}
|
|
51
|
+
})
|
|
52
|
+
};
|
|
53
|
+
});
|
|
54
|
+
var Chip = function(param) {
|
|
55
|
+
var children = param.children, Icon = param.Icon, onClose = param.onClose;
|
|
56
|
+
var ref = useTheme(), texts = ref.texts, isDarkMode = ref.isDarkMode;
|
|
57
|
+
var classes = useStyles({
|
|
58
|
+
isDarkMode: isDarkMode
|
|
59
|
+
});
|
|
60
|
+
return(/*#__PURE__*/ _jsxs(Box, {
|
|
61
|
+
className: classes.container,
|
|
62
|
+
paddingLeft: Icon ? 8 : 12,
|
|
63
|
+
paddingRight: onClose ? 0 : 12,
|
|
64
|
+
children: [
|
|
65
|
+
Icon && /*#__PURE__*/ _jsx(Box, {
|
|
66
|
+
paddingRight: 4,
|
|
67
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
68
|
+
color: "currentColor",
|
|
69
|
+
size: pxToRem(16)
|
|
70
|
+
})
|
|
71
|
+
}),
|
|
72
|
+
/*#__PURE__*/ _jsx(Text2, {
|
|
73
|
+
medium: true,
|
|
74
|
+
truncate: 1,
|
|
75
|
+
color: "currentColor",
|
|
76
|
+
children: children
|
|
77
|
+
}),
|
|
78
|
+
onClose ? /*#__PURE__*/ _jsx(Box, {
|
|
79
|
+
paddingLeft: 4,
|
|
80
|
+
children: /*#__PURE__*/ _jsx(IconButton, {
|
|
81
|
+
size: 24,
|
|
82
|
+
style: {
|
|
83
|
+
display: 'flex',
|
|
84
|
+
justifyContent: 'center',
|
|
85
|
+
alignItems: 'center'
|
|
86
|
+
},
|
|
87
|
+
"aria-label": texts.closeButtonLabel,
|
|
88
|
+
onPress: function() {
|
|
89
|
+
return onClose();
|
|
90
|
+
},
|
|
91
|
+
children: /*#__PURE__*/ _jsx(IconCloseRegular, {
|
|
92
|
+
size: 16,
|
|
93
|
+
color: "currentColor"
|
|
94
|
+
})
|
|
95
|
+
})
|
|
96
|
+
}) : null
|
|
97
|
+
]
|
|
98
|
+
}));
|
|
99
|
+
};
|
|
100
|
+
export default Chip;
|
package/dist-es/form.js
CHANGED
|
@@ -146,7 +146,7 @@ var Form = function(param) {
|
|
|
146
146
|
if (input.disabled) {
|
|
147
147
|
continue;
|
|
148
148
|
}
|
|
149
|
-
if (input.required && !
|
|
149
|
+
if (input.required && !rawValues[name].trim()) {
|
|
150
150
|
errors[name] = texts.formFieldErrorIsMandatory;
|
|
151
151
|
} else {
|
|
152
152
|
var error = validator === null || validator === void 0 ? void 0 : validator(values[name], rawValues[name]);
|
package/dist-es/index.js
CHANGED
|
@@ -56,6 +56,7 @@ export { default as Callout } from './callout';
|
|
|
56
56
|
export { useModalState } from './modal-context-provider';
|
|
57
57
|
export { NavigationBar, MainNavigationBar, FunnelNavigationBar, NavigationBarActionGroup, NavigationBarAction, NavigationBarLogo } from './navigation-bar';
|
|
58
58
|
export { default as Image } from './image';
|
|
59
|
+
export { default as Chip } from './chip';
|
|
59
60
|
export { default as Video } from './video';
|
|
60
61
|
// Forms
|
|
61
62
|
export { default as Form } from './form';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// DO NOT EDIT THIS FILE. It's autogenerated by set-version.js
|
|
2
|
-
export var PACKAGE_VERSION = '10.
|
|
2
|
+
export var PACKAGE_VERSION = '10.22.1';
|
package/dist-es/skins/blau.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { applyAlpha } from '../utils/color';
|
|
2
2
|
import { BLAU_SKIN } from './constants';
|
|
3
|
+
// https://github.com/Telefonica/mistica-design/blob/production/tokens/blau-constants.json
|
|
4
|
+
// https://github.com/Telefonica/mistica-design/blob/production/tokens/blau-skin-schema.json
|
|
3
5
|
export var palette = {
|
|
4
6
|
blauBluePrimary: '#00B6F1',
|
|
5
7
|
blauBluePrimary10: '#F7FDFF',
|
|
@@ -15,16 +17,19 @@ export var palette = {
|
|
|
15
17
|
blauPurple30: '#BB89D9',
|
|
16
18
|
blauYellow: '#FFA922',
|
|
17
19
|
blauYellow10: '#FFF6E9',
|
|
20
|
+
blauYellow40: '#FFC364',
|
|
18
21
|
blauYellow60: '#F09500',
|
|
19
22
|
blauYellow70: '#996614',
|
|
23
|
+
blauGreen: '#30D300',
|
|
24
|
+
blauGreen10: '#EAFBE5',
|
|
25
|
+
blauGreen30: '#97E980',
|
|
26
|
+
blauGreen70: '#1D7F00',
|
|
20
27
|
blauRed: '#F64417',
|
|
21
28
|
blauRed10: '#FEECE8',
|
|
22
29
|
blauRed20: '#FCC7B9',
|
|
23
30
|
blauRed30: '#FA9E87',
|
|
31
|
+
blauRed40: '#F97C5D',
|
|
24
32
|
blauRed70: '#C93712',
|
|
25
|
-
blauGreen: '#30D300',
|
|
26
|
-
blauGreen10: '#EAFBE5',
|
|
27
|
-
blauGreen70: '#1D7F00',
|
|
28
33
|
grey1: '#F5F9FA',
|
|
29
34
|
grey2: '#E7E7E7',
|
|
30
35
|
grey3: '#B8B8B8',
|
|
@@ -126,7 +131,20 @@ export var getBlauSkin = function() {
|
|
|
126
131
|
textNavigationSearchBarHint: palette.blauBlueSecondary20,
|
|
127
132
|
textNavigationSearchBarText: palette.white,
|
|
128
133
|
textAppBar: palette.grey5,
|
|
129
|
-
textAppBarSelected: palette.blauBlueSecondary60
|
|
134
|
+
textAppBarSelected: palette.blauBlueSecondary60,
|
|
135
|
+
// TAGS
|
|
136
|
+
tagBackgroundSuccess: palette.blauGreen10,
|
|
137
|
+
tagBackgroundWarning: palette.blauYellow10,
|
|
138
|
+
tagBackgroundError: palette.blauRed10,
|
|
139
|
+
tagBackgroundPromo: palette.blauPurple10,
|
|
140
|
+
tagBackgroundActive: palette.blauBlueSecondary10,
|
|
141
|
+
tagBackgroundInactive: palette.grey2,
|
|
142
|
+
textTagSuccess: palette.blauGreen70,
|
|
143
|
+
textTagWarning: palette.blauYellow70,
|
|
144
|
+
textTagError: palette.blauRed70,
|
|
145
|
+
textTagPromo: palette.blauPurple,
|
|
146
|
+
textTagActive: palette.blauBlueSecondary,
|
|
147
|
+
textTagInactive: palette.grey5
|
|
130
148
|
},
|
|
131
149
|
darkModeColors: {
|
|
132
150
|
// BACKGROUNDS
|
|
@@ -188,7 +206,20 @@ export var getBlauSkin = function() {
|
|
|
188
206
|
textNavigationSearchBarHint: palette.grey4,
|
|
189
207
|
textNavigationSearchBarText: palette.grey2,
|
|
190
208
|
textAppBar: palette.grey5,
|
|
191
|
-
textAppBarSelected: palette.grey2
|
|
209
|
+
textAppBarSelected: palette.grey2,
|
|
210
|
+
// TAGS
|
|
211
|
+
tagBackgroundSuccess: applyAlpha(palette.white, 0.05),
|
|
212
|
+
tagBackgroundWarning: applyAlpha(palette.white, 0.05),
|
|
213
|
+
tagBackgroundError: applyAlpha(palette.white, 0.05),
|
|
214
|
+
tagBackgroundPromo: applyAlpha(palette.white, 0.05),
|
|
215
|
+
tagBackgroundActive: applyAlpha(palette.white, 0.05),
|
|
216
|
+
tagBackgroundInactive: applyAlpha(palette.white, 0.05),
|
|
217
|
+
textTagSuccess: palette.blauGreen30,
|
|
218
|
+
textTagWarning: palette.blauYellow40,
|
|
219
|
+
textTagError: palette.blauRed40,
|
|
220
|
+
textTagPromo: palette.blauPurple30,
|
|
221
|
+
textTagActive: palette.blauBluePrimary30,
|
|
222
|
+
textTagInactive: palette.grey4
|
|
192
223
|
}
|
|
193
224
|
};
|
|
194
225
|
};
|
|
@@ -1,22 +1,35 @@
|
|
|
1
1
|
import { applyAlpha } from '../utils/color';
|
|
2
2
|
import { MOVISTAR_SKIN } from './constants';
|
|
3
|
+
// https://github.com/Telefonica/mistica-design/blob/production/tokens/movistar-skin-schema.json
|
|
4
|
+
// https://github.com/Telefonica/mistica-design/blob/production/tokens/movistar-constants.json
|
|
3
5
|
export var palette = {
|
|
4
6
|
movistarBlue: '#019DF4',
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
movistarBlue10: '#E6F5FD',
|
|
8
|
+
movistarBlue20: '#B3E1FB',
|
|
9
|
+
movistarBlue30: '#80CEF9',
|
|
10
|
+
movistarBlue40: '#4DBAF7',
|
|
11
|
+
movistarBlue55: '#008EDD',
|
|
9
12
|
movistarGreen: '#5CB615',
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
movistarGreen10: '#EFF8E8',
|
|
14
|
+
movistarGreen30: '#ADDA8A',
|
|
15
|
+
movistarGreen40: '#8DCC5B',
|
|
16
|
+
movistarGreen60: '#499110',
|
|
17
|
+
movistarGreen70: '#407F0F',
|
|
13
18
|
pepper: '#FF374A',
|
|
14
|
-
|
|
15
|
-
|
|
19
|
+
pepper10: '#FFEBED',
|
|
20
|
+
pepper20: '#FFC3C8',
|
|
21
|
+
pepper40: '#FF7380',
|
|
22
|
+
pepper55: '#D73241',
|
|
23
|
+
pepper70: '#B22634',
|
|
16
24
|
egg: '#F28D15',
|
|
17
|
-
|
|
25
|
+
egg10: '#FEF4E8',
|
|
26
|
+
egg40: '#F6AF5B',
|
|
27
|
+
egg80: '#6D3F09',
|
|
18
28
|
pink: '#E63780',
|
|
19
29
|
purple: '#A13EA1',
|
|
30
|
+
purple10: '#F6ECF6',
|
|
31
|
+
purple40: '#BD78BD',
|
|
32
|
+
purple70: '#712B71',
|
|
20
33
|
grey1: '#F6F6F6',
|
|
21
34
|
grey2: '#EEEEEE',
|
|
22
35
|
grey3: '#DDDDDD',
|
|
@@ -31,8 +44,7 @@ export var palette = {
|
|
|
31
44
|
movistarProminentBlueLight70: '#546874',
|
|
32
45
|
// specific for dark mode:
|
|
33
46
|
darkModeBlack: '#191919',
|
|
34
|
-
darkModeGrey: '#242424'
|
|
35
|
-
darkModeMovistarBlueDark: '#4C7389'
|
|
47
|
+
darkModeGrey: '#242424'
|
|
36
48
|
};
|
|
37
49
|
export var getMovistarSkin = function(variant) {
|
|
38
50
|
var skin = {
|
|
@@ -45,7 +57,7 @@ export var getMovistarSkin = function(variant) {
|
|
|
45
57
|
backgroundBrand: palette.movistarBlue,
|
|
46
58
|
backgroundOverlay: applyAlpha(palette.grey6, 0.6),
|
|
47
59
|
backgroundSkeleton: palette.grey1,
|
|
48
|
-
backgroundSkeletonInverse: palette.
|
|
60
|
+
backgroundSkeletonInverse: palette.movistarBlue55,
|
|
49
61
|
navigationBarBackground: palette.movistarBlue,
|
|
50
62
|
backgroundAlternative: palette.grey1,
|
|
51
63
|
backgroundFeedbackBottom: palette.movistarBlue,
|
|
@@ -57,50 +69,50 @@ export var getMovistarSkin = function(variant) {
|
|
|
57
69
|
borderSelected: palette.movistarGreen,
|
|
58
70
|
// BUTTONS
|
|
59
71
|
buttonDangerBackground: palette.pepper,
|
|
60
|
-
buttonDangerBackgroundSelected: palette.
|
|
61
|
-
buttonDangerBackgroundHover: palette.
|
|
62
|
-
buttonLinkBackgroundSelected: palette.
|
|
72
|
+
buttonDangerBackgroundSelected: palette.pepper55,
|
|
73
|
+
buttonDangerBackgroundHover: palette.pepper55,
|
|
74
|
+
buttonLinkBackgroundSelected: palette.movistarBlue10,
|
|
63
75
|
buttonLinkBackgroundSelectedInverse: applyAlpha(palette.white, 0.2),
|
|
64
76
|
buttonPrimaryBackground: palette.movistarGreen,
|
|
65
77
|
buttonPrimaryBackgroundInverse: palette.white,
|
|
66
|
-
buttonPrimaryBackgroundSelected: palette.
|
|
67
|
-
buttonPrimaryBackgroundHover: palette.
|
|
68
|
-
buttonPrimaryBackgroundSelectedInverse: palette.
|
|
78
|
+
buttonPrimaryBackgroundSelected: palette.movistarGreen60,
|
|
79
|
+
buttonPrimaryBackgroundHover: palette.movistarGreen60,
|
|
80
|
+
buttonPrimaryBackgroundSelectedInverse: palette.movistarBlue30,
|
|
69
81
|
buttonSecondaryBackground: palette.movistarGreen,
|
|
70
|
-
buttonSecondaryBackgroundSelected: palette.
|
|
82
|
+
buttonSecondaryBackgroundSelected: palette.movistarGreen60,
|
|
71
83
|
buttonSecondaryBorderInverse: palette.white,
|
|
72
|
-
buttonSecondaryBorderSelectedInverse: palette.
|
|
84
|
+
buttonSecondaryBorderSelectedInverse: palette.movistarBlue30,
|
|
73
85
|
textButtonPrimary: palette.white,
|
|
74
86
|
textButtonPrimaryInverse: palette.movistarBlue,
|
|
75
87
|
textButtonPrimaryInverseSelected: palette.movistarBlue,
|
|
76
88
|
textButtonSecondary: palette.movistarGreen,
|
|
77
|
-
textButtonSecondarySelected: palette.
|
|
89
|
+
textButtonSecondarySelected: palette.movistarGreen60,
|
|
78
90
|
textButtonSecondaryInverse: palette.white,
|
|
79
91
|
textButtonSecondaryInverseSelected: palette.white,
|
|
80
92
|
textLink: palette.movistarBlue,
|
|
81
93
|
textLinkInverse: palette.white,
|
|
82
94
|
textLinkDanger: palette.pepper,
|
|
83
|
-
textLinkSnackbar: palette.
|
|
95
|
+
textLinkSnackbar: palette.movistarBlue30,
|
|
84
96
|
// CONTROLS
|
|
85
97
|
control: palette.grey3,
|
|
86
98
|
controlActivated: palette.movistarBlue,
|
|
87
99
|
controlError: palette.pepper,
|
|
88
|
-
loadingBar: palette.
|
|
89
|
-
loadingBarBackground: palette.
|
|
100
|
+
loadingBar: palette.movistarBlue30,
|
|
101
|
+
loadingBarBackground: palette.movistarBlue55,
|
|
90
102
|
toggleAndroidInactive: palette.grey2,
|
|
91
|
-
toggleAndroidBackgroundActive: palette.
|
|
103
|
+
toggleAndroidBackgroundActive: palette.movistarBlue20,
|
|
92
104
|
iosControlKnob: palette.white,
|
|
93
105
|
// DIVIDERS
|
|
94
106
|
divider: palette.grey2,
|
|
95
|
-
dividerInverse: palette.
|
|
107
|
+
dividerInverse: palette.movistarBlue55,
|
|
96
108
|
navigationBarDivider: palette.movistarBlue,
|
|
97
109
|
// FEEDBACKS
|
|
98
|
-
badge: palette.
|
|
110
|
+
badge: palette.pepper55,
|
|
99
111
|
feedbackErrorBackground: palette.pepper,
|
|
100
112
|
feedbackInfoBackground: palette.grey6,
|
|
101
113
|
// GLOBAL
|
|
102
114
|
brand: palette.movistarBlue,
|
|
103
|
-
brandDark: palette.
|
|
115
|
+
brandDark: palette.movistarBlue55,
|
|
104
116
|
inverse: palette.white,
|
|
105
117
|
neutralHigh: palette.grey6,
|
|
106
118
|
neutralMedium: palette.grey5,
|
|
@@ -118,11 +130,24 @@ export var getMovistarSkin = function(variant) {
|
|
|
118
130
|
warning: palette.egg,
|
|
119
131
|
// BARS TEXTS
|
|
120
132
|
textNavigationBarPrimary: palette.white,
|
|
121
|
-
textNavigationBarSecondary: palette.
|
|
122
|
-
textNavigationSearchBarHint: palette.
|
|
133
|
+
textNavigationBarSecondary: palette.movistarBlue20,
|
|
134
|
+
textNavigationSearchBarHint: palette.movistarBlue20,
|
|
123
135
|
textNavigationSearchBarText: palette.white,
|
|
124
136
|
textAppBar: palette.grey4,
|
|
125
|
-
textAppBarSelected: palette.movistarBlue
|
|
137
|
+
textAppBarSelected: palette.movistarBlue,
|
|
138
|
+
// TAGS
|
|
139
|
+
tagBackgroundSuccess: palette.movistarGreen10,
|
|
140
|
+
tagBackgroundWarning: palette.egg10,
|
|
141
|
+
tagBackgroundError: palette.pepper10,
|
|
142
|
+
tagBackgroundPromo: palette.purple10,
|
|
143
|
+
tagBackgroundActive: palette.movistarBlue10,
|
|
144
|
+
tagBackgroundInactive: palette.grey1,
|
|
145
|
+
textTagSuccess: palette.movistarGreen70,
|
|
146
|
+
textTagWarning: palette.egg80,
|
|
147
|
+
textTagError: palette.pepper70,
|
|
148
|
+
textTagPromo: palette.purple70,
|
|
149
|
+
textTagActive: palette.movistarBlue,
|
|
150
|
+
textTagInactive: palette.grey5
|
|
126
151
|
},
|
|
127
152
|
darkModeColors: {
|
|
128
153
|
brand: palette.movistarBlue,
|
|
@@ -143,13 +168,13 @@ export var getMovistarSkin = function(variant) {
|
|
|
143
168
|
buttonLinkBackgroundSelectedInverse: applyAlpha(palette.white, 0.05),
|
|
144
169
|
buttonPrimaryBackground: palette.movistarGreen,
|
|
145
170
|
buttonPrimaryBackgroundInverse: palette.movistarGreen,
|
|
146
|
-
buttonPrimaryBackgroundSelected: palette.
|
|
147
|
-
buttonPrimaryBackgroundHover: palette.
|
|
148
|
-
buttonPrimaryBackgroundSelectedInverse: palette.
|
|
171
|
+
buttonPrimaryBackgroundSelected: palette.movistarGreen60,
|
|
172
|
+
buttonPrimaryBackgroundHover: palette.movistarGreen60,
|
|
173
|
+
buttonPrimaryBackgroundSelectedInverse: palette.movistarGreen60,
|
|
149
174
|
buttonSecondaryBackground: palette.movistarGreen,
|
|
150
|
-
buttonSecondaryBackgroundSelected: palette.
|
|
175
|
+
buttonSecondaryBackgroundSelected: palette.movistarGreen60,
|
|
151
176
|
buttonSecondaryBorderInverse: palette.movistarGreen,
|
|
152
|
-
buttonSecondaryBorderSelectedInverse: palette.
|
|
177
|
+
buttonSecondaryBorderSelectedInverse: palette.movistarGreen60,
|
|
153
178
|
textButtonPrimary: palette.grey2,
|
|
154
179
|
textButtonPrimaryInverse: palette.grey2,
|
|
155
180
|
textButtonPrimaryInverseSelected: palette.grey2,
|
|
@@ -164,7 +189,7 @@ export var getMovistarSkin = function(variant) {
|
|
|
164
189
|
loadingBar: palette.movistarBlue,
|
|
165
190
|
loadingBarBackground: applyAlpha(palette.white, 0.05),
|
|
166
191
|
toggleAndroidInactive: palette.grey4,
|
|
167
|
-
toggleAndroidBackgroundActive: palette.
|
|
192
|
+
toggleAndroidBackgroundActive: palette.movistarBlue20,
|
|
168
193
|
iosControlKnob: palette.grey2,
|
|
169
194
|
divider: applyAlpha(palette.white, 0.05),
|
|
170
195
|
dividerInverse: applyAlpha(palette.white, 0.05),
|
|
@@ -178,13 +203,26 @@ export var getMovistarSkin = function(variant) {
|
|
|
178
203
|
textPrimaryInverse: palette.grey2,
|
|
179
204
|
textSecondary: palette.grey4,
|
|
180
205
|
textSecondaryInverse: palette.grey4,
|
|
181
|
-
textAmount: palette.
|
|
206
|
+
textAmount: palette.movistarBlue30,
|
|
182
207
|
textNavigationBarPrimary: palette.grey2,
|
|
183
208
|
textNavigationBarSecondary: palette.grey4,
|
|
184
209
|
textNavigationSearchBarHint: palette.grey4,
|
|
185
210
|
textNavigationSearchBarText: palette.grey2,
|
|
186
211
|
textAppBar: palette.grey5,
|
|
187
|
-
textAppBarSelected: palette.grey2
|
|
212
|
+
textAppBarSelected: palette.grey2,
|
|
213
|
+
// TAGS
|
|
214
|
+
tagBackgroundSuccess: applyAlpha(palette.white, 0.05),
|
|
215
|
+
tagBackgroundWarning: applyAlpha(palette.white, 0.05),
|
|
216
|
+
tagBackgroundError: applyAlpha(palette.white, 0.05),
|
|
217
|
+
tagBackgroundPromo: applyAlpha(palette.white, 0.05),
|
|
218
|
+
tagBackgroundActive: applyAlpha(palette.white, 0.05),
|
|
219
|
+
tagBackgroundInactive: applyAlpha(palette.white, 0.05),
|
|
220
|
+
textTagSuccess: palette.movistarGreen40,
|
|
221
|
+
textTagWarning: palette.egg40,
|
|
222
|
+
textTagError: palette.pepper40,
|
|
223
|
+
textTagPromo: palette.purple40,
|
|
224
|
+
textTagActive: palette.movistarBlue40,
|
|
225
|
+
textTagInactive: palette.grey4
|
|
188
226
|
}
|
|
189
227
|
};
|
|
190
228
|
if (variant === 'prominent') {
|