@telefonica/mistica 10.19.0 → 10.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/button.js +24 -8
  3. package/dist/card.js +25 -28
  4. package/dist/header.d.ts +2 -0
  5. package/dist/header.js.flow +5 -0
  6. package/dist/index.d.ts +1 -0
  7. package/dist/index.js.flow +1 -0
  8. package/dist/package-version.js +1 -1
  9. package/dist/skins/blau.d.ts +6 -3
  10. package/dist/skins/blau.js +34 -5
  11. package/dist/skins/blau.js.flow +6 -3
  12. package/dist/skins/movistar.d.ts +21 -11
  13. package/dist/skins/movistar.js +76 -40
  14. package/dist/skins/movistar.js.flow +21 -11
  15. package/dist/skins/o2-classic.d.ts +21 -9
  16. package/dist/skins/o2-classic.js +64 -26
  17. package/dist/skins/o2-classic.js.flow +21 -9
  18. package/dist/skins/o2.d.ts +19 -17
  19. package/dist/skins/o2.js +68 -40
  20. package/dist/skins/o2.js.flow +19 -17
  21. package/dist/skins/telefonica.d.ts +18 -13
  22. package/dist/skins/telefonica.js +76 -45
  23. package/dist/skins/telefonica.js.flow +18 -13
  24. package/dist/skins/types.d.ts +12 -0
  25. package/dist/skins/types.js.flow +12 -0
  26. package/dist/skins/vivo.d.ts +9 -4
  27. package/dist/skins/vivo.js +37 -6
  28. package/dist/skins/vivo.js.flow +9 -4
  29. package/dist/tag.d.ts +6 -1
  30. package/dist/tag.js +133 -24
  31. package/dist/tag.js.flow +15 -1
  32. package/dist/text.d.ts +4 -0
  33. package/dist/text.js +13 -6
  34. package/dist/text.js.flow +10 -0
  35. package/dist-es/button.js +24 -8
  36. package/dist-es/card.js +26 -29
  37. package/dist-es/package-version.js +1 -1
  38. package/dist-es/skins/blau.js +36 -5
  39. package/dist-es/skins/movistar.js +78 -40
  40. package/dist-es/skins/o2-classic.js +66 -26
  41. package/dist-es/skins/o2.js +70 -40
  42. package/dist-es/skins/telefonica.js +78 -45
  43. package/dist-es/skins/vivo.js +39 -6
  44. package/dist-es/tag.js +130 -26
  45. package/dist-es/text.js +13 -6
  46. package/package.json +1 -1
package/dist/text.d.ts CHANGED
@@ -2,9 +2,13 @@ import * as React from 'react';
2
2
  declare type FontWeight = 'light' | 'regular' | 'medium';
3
3
  export interface TextPresetProps {
4
4
  color?: string;
5
+ /** @deprecated use decoration prop */
5
6
  textDecoration?: 'underline' | 'line-through' | 'none';
7
+ decoration?: 'underline' | 'line-through' | 'inherit' | 'none';
8
+ transform?: 'uppercase' | 'capitalize' | 'lowercase' | 'inherit' | 'none';
6
9
  children?: React.ReactNode;
7
10
  truncate?: boolean | number;
11
+ /** @deprecated use transform */
8
12
  uppercase?: boolean;
9
13
  wordBreak?: boolean;
10
14
  id?: string;
package/dist/text.js CHANGED
@@ -86,7 +86,7 @@ var useStyles = (0, _jss).createUseStyles(function(theme) {
86
86
  }
87
87
  return 'initial';
88
88
  };
89
- var _color, _textDecoration;
89
+ var _color, _decoration;
90
90
  return {
91
91
  text: _defineProperty({
92
92
  lineHeight: function lineHeight(param) {
@@ -94,8 +94,14 @@ var useStyles = (0, _jss).createUseStyles(function(theme) {
94
94
  return (0, _css).pxToRem(desktopLineHeight);
95
95
  },
96
96
  textTransform: function textTransform(param) {
97
- var uppercase = param.uppercase;
98
- return uppercase ? 'uppercase' : 'inherit';
97
+ var uppercase = param.uppercase, transform = param.transform;
98
+ if (uppercase) {
99
+ return 'uppercase';
100
+ }
101
+ if (transform) {
102
+ return transform;
103
+ }
104
+ return 'inherit';
99
105
  },
100
106
  fontSize: function fontSize(param) {
101
107
  var desktopSize = param.desktopSize;
@@ -110,7 +116,7 @@ var useStyles = (0, _jss).createUseStyles(function(theme) {
110
116
  return isInverse ? (_color = inverseColorsMap[color1]) !== null && _color !== void 0 ? _color : color1 : color1;
111
117
  },
112
118
  textDecoration: function textDecoration(p) {
113
- return (_textDecoration = p.textDecoration) !== null && _textDecoration !== void 0 ? _textDecoration : 'inherit';
119
+ return (_decoration = p.decoration) !== null && _decoration !== void 0 ? _decoration : 'inherit';
114
120
  },
115
121
  letterSpacing: function letterSpacing(param) {
116
122
  var letterSpacing1 = param.letterSpacing;
@@ -146,7 +152,7 @@ var useStyles = (0, _jss).createUseStyles(function(theme) {
146
152
  };
147
153
  });
148
154
  var Text = function Text(param) {
149
- var weight = param.weight, color = param.color, textDecoration = param.textDecoration, truncate = param.truncate, uppercase = param.uppercase, wordBreak = param.wordBreak, _as = param.as, as = _as === void 0 ? 'span' : _as, children = param.children, size = param.size, _mobileSize = param.mobileSize, mobileSize = _mobileSize === void 0 ? size : _mobileSize, _desktopSize = param.desktopSize, desktopSize = _desktopSize === void 0 ? size : _desktopSize, lineHeight = param.lineHeight, _mobileLineHeight = param.mobileLineHeight, mobileLineHeight = _mobileLineHeight === void 0 ? lineHeight : _mobileLineHeight, _desktopLineHeight = param.desktopLineHeight, desktopLineHeight = _desktopLineHeight === void 0 ? lineHeight : _desktopLineHeight, letterSpacing = param.letterSpacing, id = param.id, role = param.role, ariaLevel = param['aria-level'];
155
+ var weight = param.weight, color = param.color, textDecoration = param.textDecoration, _decoration = param.decoration, decoration = _decoration === void 0 ? textDecoration : _decoration, truncate = param.truncate, uppercase = param.uppercase, transform = param.transform, wordBreak = param.wordBreak, _as = param.as, as = _as === void 0 ? 'span' : _as, children = param.children, size = param.size, _mobileSize = param.mobileSize, mobileSize = _mobileSize === void 0 ? size : _mobileSize, _desktopSize = param.desktopSize, desktopSize = _desktopSize === void 0 ? size : _desktopSize, lineHeight = param.lineHeight, _mobileLineHeight = param.mobileLineHeight, mobileLineHeight = _mobileLineHeight === void 0 ? lineHeight : _mobileLineHeight, _desktopLineHeight = param.desktopLineHeight, desktopLineHeight = _desktopLineHeight === void 0 ? lineHeight : _desktopLineHeight, letterSpacing = param.letterSpacing, id = param.id, role = param.role, ariaLevel = param['aria-level'];
150
156
  var isInverse = (0, _themeVariantContext).useIsInverseVariant();
151
157
  var classes = useStyles({
152
158
  isInverse: isInverse,
@@ -156,8 +162,9 @@ var Text = function Text(param) {
156
162
  desktopLineHeight: desktopLineHeight,
157
163
  weight: weight,
158
164
  color: color,
159
- textDecoration: textDecoration,
165
+ decoration: decoration,
160
166
  uppercase: uppercase,
167
+ transform: transform,
161
168
  wordBreak: wordBreak,
162
169
  letterSpacing: letterSpacing,
163
170
  truncate: truncate
package/dist/text.js.flow CHANGED
@@ -4,9 +4,19 @@ import * as React from "react";
4
4
  declare type FontWeight = "light" | "regular" | "medium";
5
5
  export type TextPresetProps = {
6
6
  color?: string,
7
+
8
+ /**
9
+ * @deprecated use decoration prop
10
+ */
7
11
  textDecoration?: "underline" | "line-through" | "none",
12
+ decoration?: "underline" | "line-through" | "inherit" | "none",
13
+ transform?: "uppercase" | "capitalize" | "lowercase" | "inherit" | "none",
8
14
  children?: React.Node,
9
15
  truncate?: boolean | number,
16
+
17
+ /**
18
+ * @deprecated use transform
19
+ */
10
20
  uppercase?: boolean,
11
21
  wordBreak?: boolean,
12
22
  id?: string,
package/dist-es/button.js CHANGED
@@ -361,6 +361,11 @@ var Button = function(props) {
361
361
  disabled: props.disabled || showSpinner || isFormSending,
362
362
  role: 'button'
363
363
  };
364
+ if (process.env.NODE_ENV !== 'production') {
365
+ if (props.to === '' || props.href === '') {
366
+ throw Error('to or href props are empty strings');
367
+ }
368
+ }
364
369
  if (props.fake) {
365
370
  return(/*#__PURE__*/ _jsx(Touchable, _objectSpread({
366
371
  maybe: true
@@ -384,22 +389,25 @@ var Button = function(props) {
384
389
  onPress: props.onPress
385
390
  })));
386
391
  }
387
- if (props.to) {
392
+ if (props.to || props.to === '') {
388
393
  return(/*#__PURE__*/ _jsx(Touchable, _objectSpread({
389
394
  }, commonProps, {
390
395
  to: props.to,
391
396
  fullPageOnWebView: props.fullPageOnWebView
392
397
  })));
393
398
  }
394
- if (props.href) {
399
+ if (props.href || props.href === '') {
395
400
  return(/*#__PURE__*/ _jsx(Touchable, _objectSpread({
396
401
  }, commonProps, {
397
402
  href: props.href,
398
403
  newTab: props.newTab
399
404
  })));
400
405
  }
401
- // this cannot happen
402
- throw Error('Bad button props');
406
+ if (process.env.NODE_ENV !== 'production') {
407
+ // this cannot happen
408
+ throw Error('Bad button props');
409
+ }
410
+ return null;
403
411
  };
404
412
  var useButtonLinkStyles = createUseStyles(function(theme) {
405
413
  var padding = 6;
@@ -456,6 +464,11 @@ export var ButtonLink = /*#__PURE__*/ React.forwardRef(function(props, ref) {
456
464
  children: props.children
457
465
  })
458
466
  };
467
+ if (process.env.NODE_ENV !== 'production') {
468
+ if (props.to === '' || props.href === '') {
469
+ throw Error('to or href props are empty strings');
470
+ }
471
+ }
459
472
  if (props.onPress) {
460
473
  return(/*#__PURE__*/ _jsx(Touchable, _objectSpread({
461
474
  ref: ref
@@ -463,7 +476,7 @@ export var ButtonLink = /*#__PURE__*/ React.forwardRef(function(props, ref) {
463
476
  onPress: props.onPress
464
477
  })));
465
478
  }
466
- if (props.to) {
479
+ if (props.to || props.to === '') {
467
480
  return(/*#__PURE__*/ _jsx(Touchable, _objectSpread({
468
481
  ref: ref
469
482
  }, commonProps, {
@@ -471,7 +484,7 @@ export var ButtonLink = /*#__PURE__*/ React.forwardRef(function(props, ref) {
471
484
  fullPageOnWebView: props.fullPageOnWebView
472
485
  })));
473
486
  }
474
- if (props.href) {
487
+ if (props.href || props.href === '') {
475
488
  return(/*#__PURE__*/ _jsx(Touchable, _objectSpread({
476
489
  ref: ref
477
490
  }, commonProps, {
@@ -479,8 +492,11 @@ export var ButtonLink = /*#__PURE__*/ React.forwardRef(function(props, ref) {
479
492
  newTab: props.newTab
480
493
  })));
481
494
  }
482
- // this cannot happen
483
- throw Error('Bad button props');
495
+ if (process.env.NODE_ENV !== 'production') {
496
+ // this cannot happen
497
+ throw Error('Bad button props');
498
+ }
499
+ return null;
484
500
  });
485
501
  export var ButtonPrimary = function(props) {
486
502
  var classes = usePrimaryButtonStyles();
package/dist-es/card.js CHANGED
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
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
- color: theme.colors.promo,
31
+ type: "promo",
33
32
  children: headline
34
33
  }));
35
34
  }
36
35
  return headline;
37
36
  };
38
- return(/*#__PURE__*/ _jsxs(_Fragment, {
37
+ return(/*#__PURE__*/ _jsxs(Stack, {
38
+ space: 16,
39
39
  children: [
40
40
  /*#__PURE__*/ _jsxs(Stack, {
41
- space: 16,
41
+ space: 8,
42
42
  children: [
43
- /*#__PURE__*/ _jsxs(Stack, {
44
- space: 8,
45
- children: [
46
- (headline || pretitle || title || subtitle) && /*#__PURE__*/ _jsx("header", {
47
- children: /*#__PURE__*/ _jsxs(Stack, {
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
- renderHeadline(),
51
- pretitle && /*#__PURE__*/ _jsx(Box, {
52
- paddingTop: 4,
53
- children: /*#__PURE__*/ _jsx(Text1, {
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
- description && /*#__PURE__*/ _jsx(Text2, {
72
- as: "p",
73
- regular: true,
74
- color: theme.colors.textSecondary,
75
- children: description
76
- })
77
- ]
67
+ ]
68
+ })
78
69
  }),
79
- extra && /*#__PURE__*/ _jsx("div", {
80
- children: extra
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, {
@@ -1,2 +1,2 @@
1
1
  // DO NOT EDIT THIS FILE. It's autogenerated by set-version.js
2
- export var PACKAGE_VERSION = '10.19.0';
2
+ export var PACKAGE_VERSION = '10.20.0';
@@ -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
- movistarBlueDark: '#008EDD',
6
- movistarBlueLight50: '#80CEF9',
7
- movistarBlueLight30: '#B3E1FB',
8
- movistarBlueLight10: '#E6F5FD',
7
+ movistarBlue10: '#E6F5FD',
8
+ movistarBlue20: '#B3E1FB',
9
+ movistarBlue30: '#80CEF9',
10
+ movistarBlue40: '#4DBAF7',
11
+ movistarBlue55: '#008EDD',
9
12
  movistarGreen: '#5CB615',
10
- movistarGreenDark: '#499110',
11
- movistarGreenLight50: '#ADDA8A',
12
- movistarGreenLight30: '#CEE9B9',
13
+ movistarGreen10: '#EFF8E8',
14
+ movistarGreen30: '#ADDA8A',
15
+ movistarGreen40: '#8DCC5B',
16
+ movistarGreen60: '#499110',
17
+ movistarGreen70: '#407F0F',
13
18
  pepper: '#FF374A',
14
- pepperDark: '#D73241',
15
- pepperLight30: '#FFC3C8',
19
+ pepper10: '#FFEBED',
20
+ pepper20: '#FFC3C8',
21
+ pepper40: '#FF7380',
22
+ pepper55: '#D73241',
23
+ pepper70: '#B22634',
16
24
  egg: '#F28D15',
17
- eggLight: '#F8D2B3',
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.movistarBlueDark,
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.pepperDark,
61
- buttonDangerBackgroundHover: palette.pepperDark,
62
- buttonLinkBackgroundSelected: palette.movistarBlueLight10,
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.movistarGreenDark,
67
- buttonPrimaryBackgroundHover: palette.movistarGreenDark,
68
- buttonPrimaryBackgroundSelectedInverse: palette.movistarBlueLight50,
78
+ buttonPrimaryBackgroundSelected: palette.movistarGreen60,
79
+ buttonPrimaryBackgroundHover: palette.movistarGreen60,
80
+ buttonPrimaryBackgroundSelectedInverse: palette.movistarBlue30,
69
81
  buttonSecondaryBackground: palette.movistarGreen,
70
- buttonSecondaryBackgroundSelected: palette.movistarGreenDark,
82
+ buttonSecondaryBackgroundSelected: palette.movistarGreen60,
71
83
  buttonSecondaryBorderInverse: palette.white,
72
- buttonSecondaryBorderSelectedInverse: palette.movistarBlueLight50,
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.movistarGreenDark,
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.movistarBlueLight50,
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.movistarBlueLight50,
89
- loadingBarBackground: palette.movistarBlueDark,
100
+ loadingBar: palette.movistarBlue30,
101
+ loadingBarBackground: palette.movistarBlue55,
90
102
  toggleAndroidInactive: palette.grey2,
91
- toggleAndroidBackgroundActive: palette.movistarBlueLight30,
103
+ toggleAndroidBackgroundActive: palette.movistarBlue20,
92
104
  iosControlKnob: palette.white,
93
105
  // DIVIDERS
94
106
  divider: palette.grey2,
95
- dividerInverse: palette.movistarBlueDark,
107
+ dividerInverse: palette.movistarBlue55,
96
108
  navigationBarDivider: palette.movistarBlue,
97
109
  // FEEDBACKS
98
- badge: palette.pepperDark,
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.movistarBlueDark,
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.movistarBlueLight30,
122
- textNavigationSearchBarHint: palette.movistarBlueLight30,
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.movistarGreenDark,
147
- buttonPrimaryBackgroundHover: palette.movistarGreenDark,
148
- buttonPrimaryBackgroundSelectedInverse: palette.movistarGreenDark,
171
+ buttonPrimaryBackgroundSelected: palette.movistarGreen60,
172
+ buttonPrimaryBackgroundHover: palette.movistarGreen60,
173
+ buttonPrimaryBackgroundSelectedInverse: palette.movistarGreen60,
149
174
  buttonSecondaryBackground: palette.movistarGreen,
150
- buttonSecondaryBackgroundSelected: palette.movistarGreenDark,
175
+ buttonSecondaryBackgroundSelected: palette.movistarGreen60,
151
176
  buttonSecondaryBorderInverse: palette.movistarGreen,
152
- buttonSecondaryBorderSelectedInverse: palette.movistarGreenDark,
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.movistarBlueLight30,
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.movistarBlueLight50,
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') {