@telefonica/mistica 10.17.0 → 10.21.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 (70) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/button-layout.js +28 -17
  3. package/dist/button.js +24 -8
  4. package/dist/card.d.ts +10 -1
  5. package/dist/card.js +29 -29
  6. package/dist/card.js.flow +16 -1
  7. package/dist/header.d.ts +2 -0
  8. package/dist/header.js.flow +5 -0
  9. package/dist/icons/icon-success.js +14 -6
  10. package/dist/image.d.ts +25 -4
  11. package/dist/image.js +67 -9
  12. package/dist/image.js.flow +33 -4
  13. package/dist/index.d.ts +2 -0
  14. package/dist/index.js +7 -0
  15. package/dist/index.js.flow +2 -0
  16. package/dist/package-version.js +1 -1
  17. package/dist/section-title.d.ts +1 -3
  18. package/dist/section-title.js.flow +1 -2
  19. package/dist/skins/blau.d.ts +6 -3
  20. package/dist/skins/blau.js +34 -5
  21. package/dist/skins/blau.js.flow +6 -3
  22. package/dist/skins/movistar.d.ts +21 -11
  23. package/dist/skins/movistar.js +76 -40
  24. package/dist/skins/movistar.js.flow +21 -11
  25. package/dist/skins/o2-classic.d.ts +21 -9
  26. package/dist/skins/o2-classic.js +64 -26
  27. package/dist/skins/o2-classic.js.flow +21 -9
  28. package/dist/skins/o2.d.ts +19 -17
  29. package/dist/skins/o2.js +68 -40
  30. package/dist/skins/o2.js.flow +19 -17
  31. package/dist/skins/telefonica.d.ts +18 -13
  32. package/dist/skins/telefonica.js +76 -45
  33. package/dist/skins/telefonica.js.flow +18 -13
  34. package/dist/skins/types.d.ts +12 -0
  35. package/dist/skins/types.js.flow +12 -0
  36. package/dist/skins/vivo.d.ts +9 -4
  37. package/dist/skins/vivo.js +37 -6
  38. package/dist/skins/vivo.js.flow +9 -4
  39. package/dist/tag.d.ts +6 -1
  40. package/dist/tag.js +133 -24
  41. package/dist/tag.js.flow +15 -1
  42. package/dist/text.d.ts +4 -0
  43. package/dist/text.js +13 -6
  44. package/dist/text.js.flow +10 -0
  45. package/dist/theme-context-provider.js +8 -2
  46. package/dist/theme.d.ts +2 -0
  47. package/dist/theme.js.flow +2 -0
  48. package/dist/touchable.js +3 -2
  49. package/dist/video.d.ts +32 -0
  50. package/dist/video.js +161 -0
  51. package/dist/video.js.flow +50 -0
  52. package/dist-es/button-layout.js +28 -17
  53. package/dist-es/button.js +24 -8
  54. package/dist-es/card.js +30 -30
  55. package/dist-es/icons/icon-success.js +14 -6
  56. package/dist-es/image.js +41 -8
  57. package/dist-es/index.js +1 -0
  58. package/dist-es/package-version.js +1 -1
  59. package/dist-es/skins/blau.js +36 -5
  60. package/dist-es/skins/movistar.js +78 -40
  61. package/dist-es/skins/o2-classic.js +66 -26
  62. package/dist-es/skins/o2.js +70 -40
  63. package/dist-es/skins/telefonica.js +78 -45
  64. package/dist-es/skins/vivo.js +39 -6
  65. package/dist-es/tag.js +130 -26
  66. package/dist-es/text.js +13 -6
  67. package/dist-es/theme-context-provider.js +8 -2
  68. package/dist-es/touchable.js +3 -2
  69. package/dist-es/video.js +123 -0
  70. package/package.json +1 -1
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';
@@ -8,13 +8,13 @@ import { Text1, Text2, Text4 } from './text';
8
8
  import { createUseStyles } from './jss';
9
9
  import { Boxed } from './boxed';
10
10
  import ButtonGroup from './button-group';
11
+ import { DisableBorderRadiusProvider } from './image';
11
12
  var useCardContentStyles = createUseStyles(function() {
12
13
  return {
13
14
  actions: {
14
15
  flex: 1,
15
16
  display: 'flex',
16
- alignItems: 'flex-end',
17
- marginTop: 16
17
+ alignItems: 'flex-end'
18
18
  }
19
19
  };
20
20
  });
@@ -28,32 +28,30 @@ var CardContent = function(param) {
28
28
  }
29
29
  if (typeof headline === 'string') {
30
30
  return(/*#__PURE__*/ _jsx(Tag, {
31
- color: theme.colors.promo,
31
+ type: "promo",
32
32
  children: headline
33
33
  }));
34
34
  }
35
35
  return headline;
36
36
  };
37
- return(/*#__PURE__*/ _jsxs(_Fragment, {
37
+ return(/*#__PURE__*/ _jsxs(Stack, {
38
+ space: 16,
38
39
  children: [
39
40
  /*#__PURE__*/ _jsxs(Stack, {
40
- space: 16,
41
+ space: 8,
41
42
  children: [
42
- /*#__PURE__*/ _jsxs(Stack, {
43
- space: 8,
44
- children: [
45
- (headline || pretitle || title || subtitle) && /*#__PURE__*/ _jsx("header", {
46
- 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, {
47
49
  space: 4,
48
50
  children: [
49
- renderHeadline(),
50
- pretitle && /*#__PURE__*/ _jsx(Box, {
51
- paddingTop: 4,
52
- children: /*#__PURE__*/ _jsx(Text1, {
53
- regular: true,
54
- uppercase: true,
55
- children: pretitle
56
- })
51
+ pretitle && /*#__PURE__*/ _jsx(Text1, {
52
+ regular: true,
53
+ uppercase: true,
54
+ children: pretitle
57
55
  }),
58
56
  /*#__PURE__*/ _jsx(Text4, {
59
57
  as: "h1",
@@ -66,20 +64,20 @@ var CardContent = function(param) {
66
64
  })
67
65
  ]
68
66
  })
69
- }),
70
- description && /*#__PURE__*/ _jsx(Text2, {
71
- as: "p",
72
- regular: true,
73
- color: theme.colors.textSecondary,
74
- children: description
75
- })
76
- ]
67
+ ]
68
+ })
77
69
  }),
78
- extra && /*#__PURE__*/ _jsx("div", {
79
- children: extra
70
+ description && /*#__PURE__*/ _jsx(Text2, {
71
+ as: "p",
72
+ regular: true,
73
+ color: theme.colors.textSecondary,
74
+ children: description
80
75
  })
81
76
  ]
82
77
  }),
78
+ extra && /*#__PURE__*/ _jsx("div", {
79
+ children: extra
80
+ }),
83
81
  (button || buttonLink) && /*#__PURE__*/ _jsx("div", {
84
82
  className: classes.actions,
85
83
  children: /*#__PURE__*/ _jsx(ButtonGroup, {
@@ -141,8 +139,10 @@ export var MediaCard = /*#__PURE__*/ React.forwardRef(function(param, ref) {
141
139
  className: classes.mediaCard,
142
140
  "aria-label": ariaLabel,
143
141
  children: [
144
- /*#__PURE__*/ _jsx("div", {
142
+ typeof media.src === 'string' ? /*#__PURE__*/ _jsx("div", {
145
143
  className: classes.media
144
+ }) : /*#__PURE__*/ _jsx(DisableBorderRadiusProvider, {
145
+ children: media
146
146
  }),
147
147
  /*#__PURE__*/ _jsx("div", {
148
148
  className: classes.content,
@@ -59,21 +59,29 @@ var IconSuccessO2 = function(param) {
59
59
  children: /*#__PURE__*/ _jsxs("g", {
60
60
  className: classnames(_defineProperty({
61
61
  }, classes.iconContainer, !color)),
62
- strokeWidth: "2",
63
62
  strokeLinecap: "round",
64
63
  strokeLinejoin: "round",
65
64
  children: [
66
65
  /*#__PURE__*/ _jsx("path", _objectSpread({
67
66
  fill: "none",
67
+ strokeWidth: "2",
68
68
  stroke: color ? color : undefined,
69
- strokeMiterlimit: "10",
70
- d: "M21.7,35.6l2.8,2.8c1.1,1.1,2.9,1.1,4.1,0l17.3-17.3"
71
- }, !skipAnimation && mergeProperties(getAnimateDrawLineProps('33', '0.9s', platformOverrides), getAnimateHopInProps('0.9s', platformOverrides)))),
69
+ d: "M45.64 53.84A25.599 25.599 0 0 1 32 57.75C17.78 57.75 6.25 46.22 6.25 32S17.78 6.25 32 6.25 57.75 17.78 57.75 32c0 5.13-1.5 9.92-4.09 13.93"
70
+ }, !skipAnimation && getAnimateDrawLineProps('202', '0.3s', platformOverrides))),
72
71
  /*#__PURE__*/ _jsx("path", _objectSpread({
73
72
  fill: "none",
73
+ strokeWidth: "2",
74
+ stroke: color ? color : undefined,
75
+ d: "m19.33 30.39 9.88 10.95 18.13-19.23"
76
+ }, !skipAnimation && mergeProperties(getAnimateDrawLineProps('44', '0.6s', platformOverrides), getAnimateHopInProps('0.6', platformOverrides)))),
77
+ /*#__PURE__*/ _jsx("circle", _objectSpread({
78
+ fill: "none",
79
+ strokeWidth: "2",
74
80
  stroke: color ? color : undefined,
75
- d: "M49.1,57.9C44.2,61.1,38.3,63,32,63C14.9,63,1,49.1,1,32C1,14.9,14.9,1,32,1c17.1,0,31,13.9,31,31c0,7.5-2.6,14.3-7.1,19.7"
76
- }, !skipAnimation && getAnimateDrawLineProps('186', '0.5s', platformOverrides)))
81
+ cx: "50.18",
82
+ cy: "50.1",
83
+ r: ".89"
84
+ }, !skipAnimation && getAnimateDrawLineProps('180', '0.2s', platformOverrides)))
77
85
  ]
78
86
  })
79
87
  }));
package/dist-es/image.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from 'react';
2
3
  import { createUseStyles } from './jss';
3
4
  function _objectWithoutProperties(source, excluded) {
4
5
  if (source == null) return {
@@ -30,38 +31,70 @@ function _objectWithoutPropertiesLoose(source, excluded) {
30
31
  }
31
32
  return target;
32
33
  }
34
+ /**
35
+ * This context is used internally to disable the border radius. This is useful for example
36
+ * when using the Image component inside a Card
37
+ */ var DisableBorderRadiusContext = /*#__PURE__*/ React.createContext(false);
38
+ export var useDisableBorderRadius = function() {
39
+ return React.useContext(DisableBorderRadiusContext);
40
+ };
41
+ export var DisableBorderRadiusProvider = function(param) {
42
+ var children = param.children;
43
+ /*#__PURE__*/ return _jsx(DisableBorderRadiusContext.Provider, {
44
+ value: true,
45
+ children: children
46
+ });
47
+ };
33
48
  var useStyles = createUseStyles(function() {
34
49
  return {
35
50
  image: {
36
- borderRadius: 4,
51
+ borderRadius: function(param) {
52
+ var noBorderRadius = param.noBorderRadius;
53
+ return noBorderRadius ? 0 : 4;
54
+ },
37
55
  display: 'block',
38
56
  objectFit: 'cover',
39
57
  maxWidth: '100%',
40
- maxHeight: '100%'
58
+ maxHeight: '100%',
59
+ aspectRatio: function(param) {
60
+ var aspectRatio = param.aspectRatio;
61
+ return aspectRatio !== null && aspectRatio !== void 0 ? aspectRatio : 'unset';
62
+ }
41
63
  }
42
64
  };
43
65
  });
44
- var RATIO = {
66
+ export var RATIO = {
45
67
  '1:1': 1,
46
68
  '16:9': 16 / 9,
47
69
  '7:10': 7 / 10
48
70
  };
49
- var Image = function(_param) {
50
- var url = _param.url, _aspectRatio = _param.aspectRatio, aspectRatio = _aspectRatio === void 0 ? '1:1' : _aspectRatio, _alt = _param.alt, alt = _alt === void 0 ? '' : _alt, props = _objectWithoutProperties(_param, ["url", "aspectRatio", "alt"]);
51
- var classes = useStyles();
71
+ var Image = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
72
+ var _aspectRatio = _param.aspectRatio, aspectRatio = _aspectRatio === void 0 ? '1:1' : _aspectRatio, _alt = _param.alt, alt = _alt === void 0 ? '' : _alt, props = _objectWithoutProperties(_param, ["aspectRatio", "alt"]);
73
+ var noBorderRadius = useDisableBorderRadius();
74
+ var classes = useStyles({
75
+ noBorderRadius: noBorderRadius,
76
+ aspectRatio: !props.width && !props.height ? RATIO[aspectRatio] : undefined
77
+ });
78
+ var url = props.src || props.url;
52
79
  var width = props.width;
53
80
  var height = props.height;
54
- if (props.width !== undefined) {
81
+ if (props.width !== undefined && props.height !== undefined) {
82
+ width = props.width;
83
+ height = props.height;
84
+ } else if (props.width !== undefined) {
55
85
  height = props.width / RATIO[aspectRatio];
56
86
  } else if (props.height !== undefined) {
57
87
  width = props.height * RATIO[aspectRatio];
88
+ } else {
89
+ width = '100%';
58
90
  }
59
91
  return(/*#__PURE__*/ _jsx("img", {
92
+ ref: ref,
60
93
  src: url,
61
94
  className: classes.image,
62
95
  alt: alt,
63
96
  width: width,
64
97
  height: height
65
98
  }));
66
- };
99
+ });
67
100
  export default Image;
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 Video } from './video';
59
60
  // Forms
60
61
  export { default as Form } from './form';
61
62
  export { default as Select } from './select';
@@ -1,2 +1,2 @@
1
1
  // DO NOT EDIT THIS FILE. It's autogenerated by set-version.js
2
- export var PACKAGE_VERSION = '10.17.0';
2
+ export var PACKAGE_VERSION = '10.21.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') {