@telefonica/mistica 10.18.0 → 10.22.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/CHANGELOG.md +36 -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/header.d.ts +2 -0
- package/dist/header.js.flow +5 -0
- package/dist/icons/icon-success.js +14 -6
- package/dist/image.d.ts +1 -1
- package/dist/image.js +3 -2
- package/dist/image.js.flow +4 -1
- 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/section-title.d.ts +1 -3
- package/dist/section-title.js.flow +1 -2
- 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/icons/icon-success.js +14 -6
- package/dist-es/image.js +3 -2
- 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
|
@@ -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') {
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { applyAlpha } from '../utils/color';
|
|
2
2
|
import { O2_CLASSIC_SKIN } from './constants';
|
|
3
|
+
// https://github.com/Telefonica/mistica-design/blob/production/tokens/classicO2-constants.json
|
|
4
|
+
// https://github.com/Telefonica/mistica-design/blob/production/tokens/classicO2-skin-schema.json
|
|
3
5
|
export var palette = {
|
|
4
6
|
o2Blue: '#032B5A',
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
o2Blue10: '#E6EAEE',
|
|
8
|
+
o2Blue30: '#8195AC',
|
|
9
|
+
o2Blue45: '#6C8BAF',
|
|
10
|
+
o2Blue55: '#04264E',
|
|
7
11
|
o2SkyBlue: '#0090D0',
|
|
8
|
-
|
|
12
|
+
o2SkyBlue55: '#057DB2',
|
|
9
13
|
o2SkyBlueLight: '#65B4E4',
|
|
10
|
-
|
|
11
|
-
|
|
14
|
+
o2SkyBlueLight45: '#80C7E7',
|
|
15
|
+
o2SkyBlueLight20: '#D0E8F6',
|
|
12
16
|
o2SkyBlueLight10: '#E9F5FB',
|
|
13
17
|
o2DeepSkyBlue: '#7FD4FE',
|
|
14
18
|
o2Gem: '#01B7B4',
|
|
@@ -16,14 +20,24 @@ export var palette = {
|
|
|
16
20
|
o2GemLight30: '#99E2E1',
|
|
17
21
|
o2Yellow: '#FFCC00',
|
|
18
22
|
o2Green: '#84B50F',
|
|
19
|
-
|
|
23
|
+
o2Green10: '#F3F8E7',
|
|
24
|
+
o2Green40: '#A9CB57',
|
|
25
|
+
o2Green75: '#4D621D',
|
|
20
26
|
pepper: '#FF374A',
|
|
21
|
-
|
|
22
|
-
|
|
27
|
+
pepper10: '#FFEBED',
|
|
28
|
+
pepper20: '#FFC3C8',
|
|
29
|
+
pepper40: '#FF7380',
|
|
30
|
+
pepper55: '#D73241',
|
|
31
|
+
pepper70: '#B22634',
|
|
23
32
|
orange: '#FF7F41',
|
|
24
|
-
|
|
33
|
+
orange10: '#FFF2EC',
|
|
34
|
+
orange40: '#FFA57A',
|
|
35
|
+
orange80: '#73391D',
|
|
25
36
|
coral: '#FF706E',
|
|
26
37
|
pink: '#EB3C7D',
|
|
38
|
+
pink10: '#FDEBF2',
|
|
39
|
+
pink40: '#F59DBE',
|
|
40
|
+
pink60: '#BC3064',
|
|
27
41
|
o2GradientFirst: '#102550',
|
|
28
42
|
o2GradientSecond: '#0B4680',
|
|
29
43
|
o2GradientThird: '#0D71AD',
|
|
@@ -63,24 +77,24 @@ export var getO2ClassicSkin = function() {
|
|
|
63
77
|
borderSelected: palette.o2Gem,
|
|
64
78
|
// BUTTONS
|
|
65
79
|
buttonDangerBackground: palette.pepper,
|
|
66
|
-
buttonDangerBackgroundSelected: palette.
|
|
67
|
-
buttonDangerBackgroundHover: palette.
|
|
80
|
+
buttonDangerBackgroundSelected: palette.pepper55,
|
|
81
|
+
buttonDangerBackgroundHover: palette.pepper55,
|
|
68
82
|
buttonLinkBackgroundSelected: palette.o2SkyBlueLight10,
|
|
69
83
|
buttonLinkBackgroundSelectedInverse: applyAlpha(palette.white, 0.2),
|
|
70
84
|
buttonPrimaryBackground: palette.o2SkyBlue,
|
|
71
85
|
buttonPrimaryBackgroundInverse: palette.white,
|
|
72
|
-
buttonPrimaryBackgroundSelected: palette.
|
|
73
|
-
buttonPrimaryBackgroundHover: palette.
|
|
74
|
-
buttonPrimaryBackgroundSelectedInverse: palette.
|
|
86
|
+
buttonPrimaryBackgroundSelected: palette.o2SkyBlue55,
|
|
87
|
+
buttonPrimaryBackgroundHover: palette.o2SkyBlue55,
|
|
88
|
+
buttonPrimaryBackgroundSelectedInverse: palette.o2SkyBlueLight45,
|
|
75
89
|
buttonSecondaryBackground: palette.o2SkyBlue,
|
|
76
|
-
buttonSecondaryBackgroundSelected: palette.
|
|
90
|
+
buttonSecondaryBackgroundSelected: palette.o2SkyBlue55,
|
|
77
91
|
buttonSecondaryBorderInverse: palette.white,
|
|
78
|
-
buttonSecondaryBorderSelectedInverse: palette.
|
|
92
|
+
buttonSecondaryBorderSelectedInverse: palette.o2SkyBlueLight45,
|
|
79
93
|
textButtonPrimary: palette.white,
|
|
80
94
|
textButtonPrimaryInverse: palette.o2SkyBlue,
|
|
81
95
|
textButtonPrimaryInverseSelected: palette.o2SkyBlue,
|
|
82
96
|
textButtonSecondary: palette.o2SkyBlue,
|
|
83
|
-
textButtonSecondarySelected: palette.
|
|
97
|
+
textButtonSecondarySelected: palette.o2SkyBlue55,
|
|
84
98
|
textButtonSecondaryInverse: palette.white,
|
|
85
99
|
textButtonSecondaryInverseSelected: palette.white,
|
|
86
100
|
textLink: palette.o2SkyBlue,
|
|
@@ -103,12 +117,12 @@ export var getO2ClassicSkin = function() {
|
|
|
103
117
|
dividerInverse: applyAlpha(palette.white, 0.2),
|
|
104
118
|
navigationBarDivider: palette.o2Blue,
|
|
105
119
|
// FEEDBACKS
|
|
106
|
-
badge: palette.
|
|
120
|
+
badge: palette.pepper55,
|
|
107
121
|
feedbackErrorBackground: palette.pepper,
|
|
108
122
|
feedbackInfoBackground: palette.grey6,
|
|
109
123
|
// GLOBAL
|
|
110
124
|
brand: palette.o2Blue,
|
|
111
|
-
brandDark: palette.
|
|
125
|
+
brandDark: palette.o2Blue55,
|
|
112
126
|
inverse: palette.white,
|
|
113
127
|
neutralHigh: palette.grey6,
|
|
114
128
|
neutralLow: palette.grey3,
|
|
@@ -126,11 +140,24 @@ export var getO2ClassicSkin = function() {
|
|
|
126
140
|
warning: palette.orange,
|
|
127
141
|
// BARS TEXTS
|
|
128
142
|
textNavigationBarPrimary: palette.white,
|
|
129
|
-
textNavigationBarSecondary: palette.
|
|
130
|
-
textNavigationSearchBarHint: palette.
|
|
143
|
+
textNavigationBarSecondary: palette.o2Blue45,
|
|
144
|
+
textNavigationSearchBarHint: palette.o2Blue45,
|
|
131
145
|
textNavigationSearchBarText: palette.white,
|
|
132
146
|
textAppBar: palette.grey4,
|
|
133
|
-
textAppBarSelected: palette.o2Blue
|
|
147
|
+
textAppBarSelected: palette.o2Blue,
|
|
148
|
+
// TAGS
|
|
149
|
+
tagBackgroundSuccess: palette.o2Green10,
|
|
150
|
+
tagBackgroundWarning: palette.orange10,
|
|
151
|
+
tagBackgroundError: palette.pepper10,
|
|
152
|
+
tagBackgroundPromo: palette.pink10,
|
|
153
|
+
tagBackgroundActive: palette.o2Blue10,
|
|
154
|
+
tagBackgroundInactive: palette.grey1,
|
|
155
|
+
textTagSuccess: palette.o2Green75,
|
|
156
|
+
textTagWarning: palette.orange80,
|
|
157
|
+
textTagError: palette.pepper70,
|
|
158
|
+
textTagPromo: palette.pink60,
|
|
159
|
+
textTagActive: palette.o2Blue,
|
|
160
|
+
textTagInactive: palette.grey5
|
|
134
161
|
},
|
|
135
162
|
darkModeColors: {
|
|
136
163
|
appBarBackground: palette.darkModeGrey,
|
|
@@ -151,9 +178,9 @@ export var getO2ClassicSkin = function() {
|
|
|
151
178
|
buttonLinkBackgroundSelected: applyAlpha(palette.white, 0.05),
|
|
152
179
|
buttonLinkBackgroundSelectedInverse: applyAlpha(palette.white, 0.05),
|
|
153
180
|
buttonPrimaryBackgroundInverse: palette.o2SkyBlue,
|
|
154
|
-
buttonPrimaryBackgroundSelectedInverse: palette.
|
|
181
|
+
buttonPrimaryBackgroundSelectedInverse: palette.o2SkyBlue55,
|
|
155
182
|
buttonSecondaryBorderInverse: palette.o2SkyBlue,
|
|
156
|
-
buttonSecondaryBorderSelectedInverse: palette.
|
|
183
|
+
buttonSecondaryBorderSelectedInverse: palette.o2SkyBlue55,
|
|
157
184
|
textButtonPrimary: palette.grey2,
|
|
158
185
|
textButtonPrimaryInverse: palette.grey2,
|
|
159
186
|
textButtonPrimaryInverseSelected: palette.grey2,
|
|
@@ -187,13 +214,26 @@ export var getO2ClassicSkin = function() {
|
|
|
187
214
|
textPrimaryInverse: palette.grey2,
|
|
188
215
|
textSecondary: palette.grey4,
|
|
189
216
|
textSecondaryInverse: palette.grey4,
|
|
190
|
-
textAmount: palette.
|
|
217
|
+
textAmount: palette.o2SkyBlueLight45,
|
|
191
218
|
textNavigationBarPrimary: palette.grey2,
|
|
192
219
|
textNavigationBarSecondary: palette.grey4,
|
|
193
220
|
textNavigationSearchBarHint: palette.grey4,
|
|
194
221
|
textNavigationSearchBarText: palette.grey2,
|
|
195
222
|
textAppBar: palette.grey5,
|
|
196
|
-
textAppBarSelected: palette.grey2
|
|
223
|
+
textAppBarSelected: palette.grey2,
|
|
224
|
+
// TAGS
|
|
225
|
+
tagBackgroundSuccess: applyAlpha(palette.white, 0.05),
|
|
226
|
+
tagBackgroundWarning: applyAlpha(palette.white, 0.05),
|
|
227
|
+
tagBackgroundError: applyAlpha(palette.white, 0.05),
|
|
228
|
+
tagBackgroundPromo: applyAlpha(palette.white, 0.05),
|
|
229
|
+
tagBackgroundActive: applyAlpha(palette.white, 0.05),
|
|
230
|
+
tagBackgroundInactive: applyAlpha(palette.white, 0.05),
|
|
231
|
+
textTagSuccess: palette.o2Green40,
|
|
232
|
+
textTagWarning: palette.orange40,
|
|
233
|
+
textTagError: palette.pepper40,
|
|
234
|
+
textTagPromo: palette.pink40,
|
|
235
|
+
textTagActive: palette.o2Blue30,
|
|
236
|
+
textTagInactive: palette.grey4
|
|
197
237
|
}
|
|
198
238
|
};
|
|
199
239
|
};
|
package/dist-es/skins/o2.js
CHANGED
|
@@ -1,31 +1,35 @@
|
|
|
1
1
|
import { applyAlpha } from '../utils/color';
|
|
2
2
|
import { O2_SKIN } from './constants';
|
|
3
|
+
// https://github.com/Telefonica/mistica-design/blob/production/tokens/o2-constants.json
|
|
4
|
+
// https://github.com/Telefonica/mistica-design/blob/production/tokens/o2-skin-schema.json
|
|
3
5
|
export var palette = {
|
|
4
6
|
o2BluePrimary: '#0019A5',
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
o2BluePrimary70: '#000066',
|
|
8
|
+
o2BluePrimary30: '#808CD2',
|
|
9
|
+
o2BluePrimary15: '#CCD1ED',
|
|
10
|
+
o2BluePrimary10: '#E5E8F6',
|
|
11
|
+
o2BlueMid: '#0090D0',
|
|
10
12
|
o2BlueLight: '#41B6E6',
|
|
11
|
-
o2BlueLight60: '#8DD3F0',
|
|
12
13
|
o2BlueLight30: '#C6E9F7',
|
|
13
|
-
o2BlueLight10: '#ECF7FC',
|
|
14
14
|
o2Teal: '#01B7B4',
|
|
15
|
-
o2TealDark: '#099E9B',
|
|
16
|
-
o2TealLight: '#B1E4E3',
|
|
17
15
|
o2Green: '#91C90E',
|
|
18
|
-
|
|
16
|
+
o2Green10: '#F4FAE7',
|
|
17
|
+
o2Green40: '#B2D956',
|
|
18
|
+
o2Green80: '#415A06',
|
|
19
19
|
o2Yellow: '#FEDB00',
|
|
20
|
-
o2YellowLight: '#FEF6C3',
|
|
21
20
|
o2Orange: '#FF7F41',
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
o2Orange10: '#FFF2EC',
|
|
22
|
+
o2Orange40: '#FFA57A',
|
|
23
|
+
o2Orange75: '#A6522A',
|
|
24
|
+
o2Pink: '#E45DBF',
|
|
25
|
+
o2Purple: '#952D98',
|
|
26
|
+
o2Purple10: '#F4EAF5',
|
|
27
|
+
o2Purple30: '#CA9ACB',
|
|
26
28
|
pepper: '#FF374A',
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
pepper10: '#FEEBED',
|
|
30
|
+
pepper20: '#FCC3C9',
|
|
31
|
+
pepper40: '#FF7380',
|
|
32
|
+
pepper60: '#C32B3D',
|
|
29
33
|
grey1: '#F6F6F6',
|
|
30
34
|
grey2: '#EEEEEE',
|
|
31
35
|
grey3: '#DDDDDD',
|
|
@@ -63,30 +67,30 @@ export var getO2Skin = function() {
|
|
|
63
67
|
borderSelected: palette.o2BluePrimary,
|
|
64
68
|
// BUTTONS
|
|
65
69
|
buttonDangerBackground: palette.pepper,
|
|
66
|
-
buttonDangerBackgroundSelected: palette.
|
|
67
|
-
buttonDangerBackgroundHover: palette.
|
|
68
|
-
buttonLinkBackgroundSelected: palette.
|
|
70
|
+
buttonDangerBackgroundSelected: palette.pepper60,
|
|
71
|
+
buttonDangerBackgroundHover: palette.pepper60,
|
|
72
|
+
buttonLinkBackgroundSelected: palette.o2BluePrimary15,
|
|
69
73
|
buttonLinkBackgroundSelectedInverse: applyAlpha(palette.white, 0.2),
|
|
70
74
|
buttonPrimaryBackground: palette.o2BluePrimary,
|
|
71
75
|
buttonPrimaryBackgroundInverse: palette.white,
|
|
72
|
-
buttonPrimaryBackgroundSelected: palette.
|
|
73
|
-
buttonPrimaryBackgroundHover: palette.
|
|
74
|
-
buttonPrimaryBackgroundSelectedInverse: palette.
|
|
76
|
+
buttonPrimaryBackgroundSelected: palette.o2BluePrimary70,
|
|
77
|
+
buttonPrimaryBackgroundHover: palette.o2BluePrimary70,
|
|
78
|
+
buttonPrimaryBackgroundSelectedInverse: palette.o2BluePrimary30,
|
|
75
79
|
buttonSecondaryBackground: palette.o2BluePrimary,
|
|
76
|
-
buttonSecondaryBackgroundSelected: palette.
|
|
80
|
+
buttonSecondaryBackgroundSelected: palette.o2BluePrimary70,
|
|
77
81
|
buttonSecondaryBorderInverse: palette.white,
|
|
78
|
-
buttonSecondaryBorderSelectedInverse: palette.
|
|
82
|
+
buttonSecondaryBorderSelectedInverse: palette.o2BluePrimary30,
|
|
79
83
|
textButtonPrimary: palette.white,
|
|
80
84
|
textButtonPrimaryInverse: palette.o2BluePrimary,
|
|
81
|
-
textButtonPrimaryInverseSelected: palette.
|
|
85
|
+
textButtonPrimaryInverseSelected: palette.o2BluePrimary70,
|
|
82
86
|
textButtonSecondary: palette.o2BluePrimary,
|
|
83
|
-
textButtonSecondarySelected: palette.
|
|
87
|
+
textButtonSecondarySelected: palette.o2BluePrimary70,
|
|
84
88
|
textButtonSecondaryInverse: palette.white,
|
|
85
89
|
textButtonSecondaryInverseSelected: palette.white,
|
|
86
90
|
textLink: palette.o2BluePrimary,
|
|
87
91
|
textLinkInverse: palette.white,
|
|
88
92
|
textLinkDanger: palette.pepper,
|
|
89
|
-
textLinkSnackbar: palette.
|
|
93
|
+
textLinkSnackbar: palette.o2BluePrimary30,
|
|
90
94
|
// CONTROLS
|
|
91
95
|
control: palette.grey3,
|
|
92
96
|
controlActivated: palette.o2BluePrimary,
|
|
@@ -96,19 +100,19 @@ export var getO2Skin = function() {
|
|
|
96
100
|
loadingBarBackgroundInverse: palette.grey1,
|
|
97
101
|
loadingBarInverse: palette.o2BluePrimary,
|
|
98
102
|
toggleAndroidInactive: palette.grey2,
|
|
99
|
-
toggleAndroidBackgroundActive: palette.
|
|
103
|
+
toggleAndroidBackgroundActive: palette.o2BluePrimary15,
|
|
100
104
|
iosControlKnob: palette.white,
|
|
101
105
|
// DIVIDERS
|
|
102
106
|
divider: palette.grey2,
|
|
103
107
|
dividerInverse: applyAlpha(palette.white, 0.2),
|
|
104
108
|
navigationBarDivider: palette.o2BluePrimary,
|
|
105
109
|
// FEEDBACKS
|
|
106
|
-
badge: palette.
|
|
110
|
+
badge: palette.pepper60,
|
|
107
111
|
feedbackErrorBackground: palette.pepper,
|
|
108
112
|
feedbackInfoBackground: palette.grey6,
|
|
109
113
|
// GLOBAL
|
|
110
114
|
brand: palette.o2BluePrimary,
|
|
111
|
-
brandDark: palette.
|
|
115
|
+
brandDark: palette.o2BluePrimary70,
|
|
112
116
|
inverse: palette.white,
|
|
113
117
|
neutralHigh: palette.grey6,
|
|
114
118
|
neutralMedium: palette.grey5,
|
|
@@ -126,11 +130,24 @@ export var getO2Skin = function() {
|
|
|
126
130
|
warning: palette.o2Orange,
|
|
127
131
|
// BARS TEXTS
|
|
128
132
|
textNavigationBarPrimary: palette.white,
|
|
129
|
-
textNavigationBarSecondary: palette.
|
|
130
|
-
textNavigationSearchBarHint: palette.
|
|
133
|
+
textNavigationBarSecondary: palette.o2BluePrimary30,
|
|
134
|
+
textNavigationSearchBarHint: palette.o2BluePrimary30,
|
|
131
135
|
textNavigationSearchBarText: palette.white,
|
|
132
136
|
textAppBar: palette.grey4,
|
|
133
|
-
textAppBarSelected: palette.o2BluePrimary
|
|
137
|
+
textAppBarSelected: palette.o2BluePrimary,
|
|
138
|
+
// TAGS
|
|
139
|
+
tagBackgroundSuccess: palette.o2Green10,
|
|
140
|
+
tagBackgroundWarning: palette.o2Orange10,
|
|
141
|
+
tagBackgroundError: palette.pepper10,
|
|
142
|
+
tagBackgroundPromo: palette.o2Purple10,
|
|
143
|
+
tagBackgroundActive: palette.o2BluePrimary10,
|
|
144
|
+
tagBackgroundInactive: palette.grey1,
|
|
145
|
+
textTagSuccess: palette.o2Green80,
|
|
146
|
+
textTagWarning: palette.o2Orange75,
|
|
147
|
+
textTagError: palette.pepper60,
|
|
148
|
+
textTagPromo: palette.o2Purple,
|
|
149
|
+
textTagActive: palette.o2BluePrimary,
|
|
150
|
+
textTagInactive: palette.grey5
|
|
134
151
|
},
|
|
135
152
|
darkModeColors: {
|
|
136
153
|
appBarBackground: palette.darkModeGrey,
|
|
@@ -166,10 +183,10 @@ export var getO2Skin = function() {
|
|
|
166
183
|
textButtonSecondarySelected: palette.grey4,
|
|
167
184
|
textButtonSecondaryInverse: palette.grey2,
|
|
168
185
|
textButtonSecondaryInverseSelected: palette.grey4,
|
|
169
|
-
textLink: palette.
|
|
170
|
-
textLinkInverse: palette.
|
|
186
|
+
textLink: palette.o2BluePrimary30,
|
|
187
|
+
textLinkInverse: palette.o2BluePrimary30,
|
|
171
188
|
control: palette.darkModeGrey6,
|
|
172
|
-
controlActivated: palette.
|
|
189
|
+
controlActivated: palette.o2BluePrimary30,
|
|
173
190
|
loadingBar: palette.darkModeO2BluePrimary,
|
|
174
191
|
loadingBarBackground: palette.darkModeGrey6,
|
|
175
192
|
loadingBarBackgroundInverse: palette.grey1,
|
|
@@ -181,7 +198,7 @@ export var getO2Skin = function() {
|
|
|
181
198
|
dividerInverse: applyAlpha(palette.white, 0.05),
|
|
182
199
|
navigationBarDivider: palette.darkModeBlack,
|
|
183
200
|
feedbackInfoBackground: palette.darkModeGrey6,
|
|
184
|
-
brand: palette.
|
|
201
|
+
brand: palette.o2BluePrimary30,
|
|
185
202
|
brandDark: palette.darkModeGrey6,
|
|
186
203
|
inverse: palette.grey2,
|
|
187
204
|
neutralHigh: palette.grey2,
|
|
@@ -191,13 +208,26 @@ export var getO2Skin = function() {
|
|
|
191
208
|
textPrimaryInverse: palette.grey2,
|
|
192
209
|
textSecondary: palette.grey4,
|
|
193
210
|
textSecondaryInverse: palette.grey4,
|
|
194
|
-
textAmount: palette.
|
|
211
|
+
textAmount: palette.o2BluePrimary15,
|
|
195
212
|
textNavigationBarPrimary: palette.grey2,
|
|
196
213
|
textNavigationBarSecondary: palette.grey4,
|
|
197
214
|
textNavigationSearchBarHint: palette.grey4,
|
|
198
215
|
textNavigationSearchBarText: palette.grey2,
|
|
199
216
|
textAppBar: palette.grey5,
|
|
200
|
-
textAppBarSelected: palette.grey2
|
|
217
|
+
textAppBarSelected: palette.grey2,
|
|
218
|
+
// TAGS
|
|
219
|
+
tagBackgroundSuccess: applyAlpha(palette.white, 0.05),
|
|
220
|
+
tagBackgroundWarning: applyAlpha(palette.white, 0.05),
|
|
221
|
+
tagBackgroundError: applyAlpha(palette.white, 0.05),
|
|
222
|
+
tagBackgroundPromo: applyAlpha(palette.white, 0.05),
|
|
223
|
+
tagBackgroundActive: applyAlpha(palette.white, 0.05),
|
|
224
|
+
tagBackgroundInactive: applyAlpha(palette.white, 0.05),
|
|
225
|
+
textTagSuccess: palette.o2Green40,
|
|
226
|
+
textTagWarning: palette.o2Orange40,
|
|
227
|
+
textTagError: palette.pepper40,
|
|
228
|
+
textTagPromo: palette.o2Purple30,
|
|
229
|
+
textTagActive: palette.o2BluePrimary15,
|
|
230
|
+
textTagInactive: palette.grey4
|
|
201
231
|
}
|
|
202
232
|
};
|
|
203
233
|
};
|