@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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [10.20.0](https://github.com/Telefonica/mistica-web/compare/v10.19.0...v10.20.0) (2022-01-24)
2
+
3
+
4
+ ### Features
5
+
6
+ * **Tags:** Tag component evolution ([#372](https://github.com/Telefonica/mistica-web/issues/372)) ([0db48b1](https://github.com/Telefonica/mistica-web/commit/0db48b15525b67c574b90c8c450b35ef155ca199))
7
+
1
8
  # [10.19.0](https://github.com/Telefonica/mistica-web/compare/v10.18.0...v10.19.0) (2022-01-24)
2
9
 
3
10
 
package/dist/button.js CHANGED
@@ -396,6 +396,11 @@ var Button = function Button(props) {
396
396
  disabled: props.disabled || showSpinner || isFormSending,
397
397
  role: 'button'
398
398
  };
399
+ if (process.env.NODE_ENV !== 'production') {
400
+ if (props.to === '' || props.href === '') {
401
+ throw Error('to or href props are empty strings');
402
+ }
403
+ }
399
404
  if (props.fake) {
400
405
  return(/*#__PURE__*/ (0, _jsxRuntime).jsx(_touchable.default, _objectSpread({
401
406
  maybe: true
@@ -419,22 +424,25 @@ var Button = function Button(props) {
419
424
  onPress: props.onPress
420
425
  })));
421
426
  }
422
- if (props.to) {
427
+ if (props.to || props.to === '') {
423
428
  return(/*#__PURE__*/ (0, _jsxRuntime).jsx(_touchable.default, _objectSpread({
424
429
  }, commonProps, {
425
430
  to: props.to,
426
431
  fullPageOnWebView: props.fullPageOnWebView
427
432
  })));
428
433
  }
429
- if (props.href) {
434
+ if (props.href || props.href === '') {
430
435
  return(/*#__PURE__*/ (0, _jsxRuntime).jsx(_touchable.default, _objectSpread({
431
436
  }, commonProps, {
432
437
  href: props.href,
433
438
  newTab: props.newTab
434
439
  })));
435
440
  }
436
- // this cannot happen
437
- throw Error('Bad button props');
441
+ if (process.env.NODE_ENV !== 'production') {
442
+ // this cannot happen
443
+ throw Error('Bad button props');
444
+ }
445
+ return null;
438
446
  };
439
447
  var useButtonLinkStyles = (0, _jss).createUseStyles(function(theme) {
440
448
  var padding = 6;
@@ -491,6 +499,11 @@ var ButtonLink = /*#__PURE__*/ React.forwardRef(function(props, ref) {
491
499
  children: props.children
492
500
  })
493
501
  };
502
+ if (process.env.NODE_ENV !== 'production') {
503
+ if (props.to === '' || props.href === '') {
504
+ throw Error('to or href props are empty strings');
505
+ }
506
+ }
494
507
  if (props.onPress) {
495
508
  return(/*#__PURE__*/ (0, _jsxRuntime).jsx(_touchable.default, _objectSpread({
496
509
  ref: ref
@@ -498,7 +511,7 @@ var ButtonLink = /*#__PURE__*/ React.forwardRef(function(props, ref) {
498
511
  onPress: props.onPress
499
512
  })));
500
513
  }
501
- if (props.to) {
514
+ if (props.to || props.to === '') {
502
515
  return(/*#__PURE__*/ (0, _jsxRuntime).jsx(_touchable.default, _objectSpread({
503
516
  ref: ref
504
517
  }, commonProps, {
@@ -506,7 +519,7 @@ var ButtonLink = /*#__PURE__*/ React.forwardRef(function(props, ref) {
506
519
  fullPageOnWebView: props.fullPageOnWebView
507
520
  })));
508
521
  }
509
- if (props.href) {
522
+ if (props.href || props.href === '') {
510
523
  return(/*#__PURE__*/ (0, _jsxRuntime).jsx(_touchable.default, _objectSpread({
511
524
  ref: ref
512
525
  }, commonProps, {
@@ -514,8 +527,11 @@ var ButtonLink = /*#__PURE__*/ React.forwardRef(function(props, ref) {
514
527
  newTab: props.newTab
515
528
  })));
516
529
  }
517
- // this cannot happen
518
- throw Error('Bad button props');
530
+ if (process.env.NODE_ENV !== 'production') {
531
+ // this cannot happen
532
+ throw Error('Bad button props');
533
+ }
534
+ return null;
519
535
  });
520
536
  exports.ButtonLink = ButtonLink;
521
537
  var ButtonPrimary = function ButtonPrimary(props) {
package/dist/card.js CHANGED
@@ -47,8 +47,7 @@ var useCardContentStyles = (0, _jss).createUseStyles(function() {
47
47
  actions: {
48
48
  flex: 1,
49
49
  display: 'flex',
50
- alignItems: 'flex-end',
51
- marginTop: 16
50
+ alignItems: 'flex-end'
52
51
  }
53
52
  };
54
53
  });
@@ -62,32 +61,30 @@ var CardContent = function CardContent(param) {
62
61
  }
63
62
  if (typeof headline === 'string') {
64
63
  return(/*#__PURE__*/ (0, _jsxRuntime).jsx(_tag.default, {
65
- color: theme.colors.promo,
64
+ type: "promo",
66
65
  children: headline
67
66
  }));
68
67
  }
69
68
  return headline;
70
69
  };
71
- return(/*#__PURE__*/ (0, _jsxRuntime).jsxs(_jsxRuntime.Fragment, {
70
+ return(/*#__PURE__*/ (0, _jsxRuntime).jsxs(_stack.default, {
71
+ space: 16,
72
72
  children: [
73
73
  /*#__PURE__*/ (0, _jsxRuntime).jsxs(_stack.default, {
74
- space: 16,
74
+ space: 8,
75
75
  children: [
76
- /*#__PURE__*/ (0, _jsxRuntime).jsxs(_stack.default, {
77
- space: 8,
78
- children: [
79
- (headline || pretitle || title || subtitle) && /*#__PURE__*/ (0, _jsxRuntime).jsx("header", {
80
- children: /*#__PURE__*/ (0, _jsxRuntime).jsxs(_stack.default, {
76
+ (headline || pretitle || title || subtitle) && /*#__PURE__*/ (0, _jsxRuntime).jsx("header", {
77
+ children: /*#__PURE__*/ (0, _jsxRuntime).jsxs(_stack.default, {
78
+ space: 16,
79
+ children: [
80
+ renderHeadline(),
81
+ /*#__PURE__*/ (0, _jsxRuntime).jsxs(_stack.default, {
81
82
  space: 4,
82
83
  children: [
83
- renderHeadline(),
84
- pretitle && /*#__PURE__*/ (0, _jsxRuntime).jsx(_box.default, {
85
- paddingTop: 4,
86
- children: /*#__PURE__*/ (0, _jsxRuntime).jsx(_text.Text1, {
87
- regular: true,
88
- uppercase: true,
89
- children: pretitle
90
- })
84
+ pretitle && /*#__PURE__*/ (0, _jsxRuntime).jsx(_text.Text1, {
85
+ regular: true,
86
+ uppercase: true,
87
+ children: pretitle
91
88
  }),
92
89
  /*#__PURE__*/ (0, _jsxRuntime).jsx(_text.Text4, {
93
90
  as: "h1",
@@ -100,20 +97,20 @@ var CardContent = function CardContent(param) {
100
97
  })
101
98
  ]
102
99
  })
103
- }),
104
- description && /*#__PURE__*/ (0, _jsxRuntime).jsx(_text.Text2, {
105
- as: "p",
106
- regular: true,
107
- color: theme.colors.textSecondary,
108
- children: description
109
- })
110
- ]
100
+ ]
101
+ })
111
102
  }),
112
- extra && /*#__PURE__*/ (0, _jsxRuntime).jsx("div", {
113
- children: extra
103
+ description && /*#__PURE__*/ (0, _jsxRuntime).jsx(_text.Text2, {
104
+ as: "p",
105
+ regular: true,
106
+ color: theme.colors.textSecondary,
107
+ children: description
114
108
  })
115
109
  ]
116
110
  }),
111
+ extra && /*#__PURE__*/ (0, _jsxRuntime).jsx("div", {
112
+ children: extra
113
+ }),
117
114
  (button || buttonLink) && /*#__PURE__*/ (0, _jsxRuntime).jsx("div", {
118
115
  className: classes.actions,
119
116
  children: /*#__PURE__*/ (0, _jsxRuntime).jsx(_buttonGroup.default, {
package/dist/header.d.ts CHANGED
@@ -6,7 +6,9 @@ import type { TextPresetProps } from './text';
6
6
  import type { NavigationBreadcrumbsProps } from './navigation-breadcrumbs';
7
7
  declare type OverridableTextProps = {
8
8
  color?: TextPresetProps['color'];
9
+ /** @deprecated use decoration prop */
9
10
  textDecoration?: TextPresetProps['textDecoration'];
11
+ decoration?: TextPresetProps['decoration'];
10
12
  truncate?: TextPresetProps['truncate'];
11
13
  };
12
14
  declare type RichText = string | ({
@@ -6,7 +6,12 @@ import { ButtonPrimary, ButtonSecondary } from "./button";
6
6
  import type { TextPresetProps } from "./text";
7
7
  declare type OverridableTextProps = {
8
8
  color?: $PropertyType<TextPresetProps, "color">,
9
+
10
+ /**
11
+ * @deprecated use decoration prop
12
+ */
9
13
  textDecoration?: $PropertyType<TextPresetProps, "textDecoration">,
14
+ decoration?: $PropertyType<TextPresetProps, "decoration">,
10
15
  truncate?: $PropertyType<TextPresetProps, "truncate">,
11
16
  };
12
17
  declare type RichText =
package/dist/index.d.ts CHANGED
@@ -34,6 +34,7 @@ export { default as MasterDetailLayout } from './master-detail-layout';
34
34
  export { default as NavigationBreadcrumbs } from './navigation-breadcrumbs';
35
35
  export { default as Text, Text1, Text2, Text3, Text4, Text5, Text6, Text7, Text8, Text9, Text10 } from './text';
36
36
  export { default as Tag } from './tag';
37
+ export type { TagType } from './tag';
37
38
  export { default as SectionTitle } from './section-title';
38
39
  export { Placeholder, AvatarPlaceholder } from './placeholder';
39
40
  export { RowList, Row, BoxedRowList, BoxedRow } from './list';
@@ -70,6 +70,7 @@ declare export {
70
70
  Text10,
71
71
  } from "./text";
72
72
  declare export { default as Tag } from "./tag";
73
+ export type { TagType } from "./tag";
73
74
  declare export { default as SectionTitle } from "./section-title";
74
75
  declare export { Placeholder, AvatarPlaceholder } from "./placeholder";
75
76
  declare export { RowList, Row, BoxedRowList, BoxedRow } from "./list";
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
5
  exports.PACKAGE_VERSION = void 0;
6
- var PACKAGE_VERSION = '10.19.0';
6
+ var PACKAGE_VERSION = '10.20.0';
7
7
  exports.PACKAGE_VERSION = PACKAGE_VERSION;
@@ -14,16 +14,19 @@ export declare const palette: {
14
14
  readonly blauPurple30: "#BB89D9";
15
15
  readonly blauYellow: "#FFA922";
16
16
  readonly blauYellow10: "#FFF6E9";
17
+ readonly blauYellow40: "#FFC364";
17
18
  readonly blauYellow60: "#F09500";
18
19
  readonly blauYellow70: "#996614";
20
+ readonly blauGreen: "#30D300";
21
+ readonly blauGreen10: "#EAFBE5";
22
+ readonly blauGreen30: "#97E980";
23
+ readonly blauGreen70: "#1D7F00";
19
24
  readonly blauRed: "#F64417";
20
25
  readonly blauRed10: "#FEECE8";
21
26
  readonly blauRed20: "#FCC7B9";
22
27
  readonly blauRed30: "#FA9E87";
28
+ readonly blauRed40: "#F97C5D";
23
29
  readonly blauRed70: "#C93712";
24
- readonly blauGreen: "#30D300";
25
- readonly blauGreen10: "#EAFBE5";
26
- readonly blauGreen70: "#1D7F00";
27
30
  readonly grey1: "#F5F9FA";
28
31
  readonly grey2: "#E7E7E7";
29
32
  readonly grey3: "#B8B8B8";
@@ -20,16 +20,19 @@ var palette = {
20
20
  blauPurple30: '#BB89D9',
21
21
  blauYellow: '#FFA922',
22
22
  blauYellow10: '#FFF6E9',
23
+ blauYellow40: '#FFC364',
23
24
  blauYellow60: '#F09500',
24
25
  blauYellow70: '#996614',
26
+ blauGreen: '#30D300',
27
+ blauGreen10: '#EAFBE5',
28
+ blauGreen30: '#97E980',
29
+ blauGreen70: '#1D7F00',
25
30
  blauRed: '#F64417',
26
31
  blauRed10: '#FEECE8',
27
32
  blauRed20: '#FCC7B9',
28
33
  blauRed30: '#FA9E87',
34
+ blauRed40: '#F97C5D',
29
35
  blauRed70: '#C93712',
30
- blauGreen: '#30D300',
31
- blauGreen10: '#EAFBE5',
32
- blauGreen70: '#1D7F00',
33
36
  grey1: '#F5F9FA',
34
37
  grey2: '#E7E7E7',
35
38
  grey3: '#B8B8B8',
@@ -132,7 +135,20 @@ var getBlauSkin = function getBlauSkin() {
132
135
  textNavigationSearchBarHint: palette.blauBlueSecondary20,
133
136
  textNavigationSearchBarText: palette.white,
134
137
  textAppBar: palette.grey5,
135
- textAppBarSelected: palette.blauBlueSecondary60
138
+ textAppBarSelected: palette.blauBlueSecondary60,
139
+ // TAGS
140
+ tagBackgroundSuccess: palette.blauGreen10,
141
+ tagBackgroundWarning: palette.blauYellow10,
142
+ tagBackgroundError: palette.blauRed10,
143
+ tagBackgroundPromo: palette.blauPurple10,
144
+ tagBackgroundActive: palette.blauBlueSecondary10,
145
+ tagBackgroundInactive: palette.grey2,
146
+ textTagSuccess: palette.blauGreen70,
147
+ textTagWarning: palette.blauYellow70,
148
+ textTagError: palette.blauRed70,
149
+ textTagPromo: palette.blauPurple,
150
+ textTagActive: palette.blauBlueSecondary,
151
+ textTagInactive: palette.grey5
136
152
  },
137
153
  darkModeColors: {
138
154
  // BACKGROUNDS
@@ -194,7 +210,20 @@ var getBlauSkin = function getBlauSkin() {
194
210
  textNavigationSearchBarHint: palette.grey4,
195
211
  textNavigationSearchBarText: palette.grey2,
196
212
  textAppBar: palette.grey5,
197
- textAppBarSelected: palette.grey2
213
+ textAppBarSelected: palette.grey2,
214
+ // TAGS
215
+ tagBackgroundSuccess: (0, _color).applyAlpha(palette.white, 0.05),
216
+ tagBackgroundWarning: (0, _color).applyAlpha(palette.white, 0.05),
217
+ tagBackgroundError: (0, _color).applyAlpha(palette.white, 0.05),
218
+ tagBackgroundPromo: (0, _color).applyAlpha(palette.white, 0.05),
219
+ tagBackgroundActive: (0, _color).applyAlpha(palette.white, 0.05),
220
+ tagBackgroundInactive: (0, _color).applyAlpha(palette.white, 0.05),
221
+ textTagSuccess: palette.blauGreen30,
222
+ textTagWarning: palette.blauYellow40,
223
+ textTagError: palette.blauRed40,
224
+ textTagPromo: palette.blauPurple30,
225
+ textTagActive: palette.blauBluePrimary30,
226
+ textTagInactive: palette.grey4
198
227
  }
199
228
  };
200
229
  };
@@ -16,16 +16,19 @@ declare export var palette: {
16
16
  +blauPurple30: "#BB89D9",
17
17
  +blauYellow: "#FFA922",
18
18
  +blauYellow10: "#FFF6E9",
19
+ +blauYellow40: "#FFC364",
19
20
  +blauYellow60: "#F09500",
20
21
  +blauYellow70: "#996614",
22
+ +blauGreen: "#30D300",
23
+ +blauGreen10: "#EAFBE5",
24
+ +blauGreen30: "#97E980",
25
+ +blauGreen70: "#1D7F00",
21
26
  +blauRed: "#F64417",
22
27
  +blauRed10: "#FEECE8",
23
28
  +blauRed20: "#FCC7B9",
24
29
  +blauRed30: "#FA9E87",
30
+ +blauRed40: "#F97C5D",
25
31
  +blauRed70: "#C93712",
26
- +blauGreen: "#30D300",
27
- +blauGreen10: "#EAFBE5",
28
- +blauGreen70: "#1D7F00",
29
32
  +grey1: "#F5F9FA",
30
33
  +grey2: "#E7E7E7",
31
34
  +grey3: "#B8B8B8",
@@ -1,21 +1,32 @@
1
1
  import type { GetSkin } from './types';
2
2
  export declare const palette: {
3
3
  readonly movistarBlue: "#019DF4";
4
- readonly movistarBlueDark: "#008EDD";
5
- readonly movistarBlueLight50: "#80CEF9";
6
- readonly movistarBlueLight30: "#B3E1FB";
7
- readonly movistarBlueLight10: "#E6F5FD";
4
+ readonly movistarBlue10: "#E6F5FD";
5
+ readonly movistarBlue20: "#B3E1FB";
6
+ readonly movistarBlue30: "#80CEF9";
7
+ readonly movistarBlue40: "#4DBAF7";
8
+ readonly movistarBlue55: "#008EDD";
8
9
  readonly movistarGreen: "#5CB615";
9
- readonly movistarGreenDark: "#499110";
10
- readonly movistarGreenLight50: "#ADDA8A";
11
- readonly movistarGreenLight30: "#CEE9B9";
10
+ readonly movistarGreen10: "#EFF8E8";
11
+ readonly movistarGreen30: "#ADDA8A";
12
+ readonly movistarGreen40: "#8DCC5B";
13
+ readonly movistarGreen60: "#499110";
14
+ readonly movistarGreen70: "#407F0F";
12
15
  readonly pepper: "#FF374A";
13
- readonly pepperDark: "#D73241";
14
- readonly pepperLight30: "#FFC3C8";
16
+ readonly pepper10: "#FFEBED";
17
+ readonly pepper20: "#FFC3C8";
18
+ readonly pepper40: "#FF7380";
19
+ readonly pepper55: "#D73241";
20
+ readonly pepper70: "#B22634";
15
21
  readonly egg: "#F28D15";
16
- readonly eggLight: "#F8D2B3";
22
+ readonly egg10: "#FEF4E8";
23
+ readonly egg40: "#F6AF5B";
24
+ readonly egg80: "#6D3F09";
17
25
  readonly pink: "#E63780";
18
26
  readonly purple: "#A13EA1";
27
+ readonly purple10: "#F6ECF6";
28
+ readonly purple40: "#BD78BD";
29
+ readonly purple70: "#712B71";
19
30
  readonly grey1: "#F6F6F6";
20
31
  readonly grey2: "#EEEEEE";
21
32
  readonly grey3: "#DDDDDD";
@@ -30,6 +41,5 @@ export declare const palette: {
30
41
  readonly movistarProminentBlueLight70: "#546874";
31
42
  readonly darkModeBlack: "#191919";
32
43
  readonly darkModeGrey: "#242424";
33
- readonly darkModeMovistarBlueDark: "#4C7389";
34
44
  };
35
45
  export declare const getMovistarSkin: GetSkin;
@@ -7,21 +7,32 @@ var _color = require("../utils/color");
7
7
  var _constants = require("./constants");
8
8
  var palette = {
9
9
  movistarBlue: '#019DF4',
10
- movistarBlueDark: '#008EDD',
11
- movistarBlueLight50: '#80CEF9',
12
- movistarBlueLight30: '#B3E1FB',
13
- movistarBlueLight10: '#E6F5FD',
10
+ movistarBlue10: '#E6F5FD',
11
+ movistarBlue20: '#B3E1FB',
12
+ movistarBlue30: '#80CEF9',
13
+ movistarBlue40: '#4DBAF7',
14
+ movistarBlue55: '#008EDD',
14
15
  movistarGreen: '#5CB615',
15
- movistarGreenDark: '#499110',
16
- movistarGreenLight50: '#ADDA8A',
17
- movistarGreenLight30: '#CEE9B9',
16
+ movistarGreen10: '#EFF8E8',
17
+ movistarGreen30: '#ADDA8A',
18
+ movistarGreen40: '#8DCC5B',
19
+ movistarGreen60: '#499110',
20
+ movistarGreen70: '#407F0F',
18
21
  pepper: '#FF374A',
19
- pepperDark: '#D73241',
20
- pepperLight30: '#FFC3C8',
22
+ pepper10: '#FFEBED',
23
+ pepper20: '#FFC3C8',
24
+ pepper40: '#FF7380',
25
+ pepper55: '#D73241',
26
+ pepper70: '#B22634',
21
27
  egg: '#F28D15',
22
- eggLight: '#F8D2B3',
28
+ egg10: '#FEF4E8',
29
+ egg40: '#F6AF5B',
30
+ egg80: '#6D3F09',
23
31
  pink: '#E63780',
24
32
  purple: '#A13EA1',
33
+ purple10: '#F6ECF6',
34
+ purple40: '#BD78BD',
35
+ purple70: '#712B71',
25
36
  grey1: '#F6F6F6',
26
37
  grey2: '#EEEEEE',
27
38
  grey3: '#DDDDDD',
@@ -36,8 +47,7 @@ var palette = {
36
47
  movistarProminentBlueLight70: '#546874',
37
48
  // specific for dark mode:
38
49
  darkModeBlack: '#191919',
39
- darkModeGrey: '#242424',
40
- darkModeMovistarBlueDark: '#4C7389'
50
+ darkModeGrey: '#242424'
41
51
  };
42
52
  exports.palette = palette;
43
53
  var getMovistarSkin = function getMovistarSkin(variant) {
@@ -51,7 +61,7 @@ var getMovistarSkin = function getMovistarSkin(variant) {
51
61
  backgroundBrand: palette.movistarBlue,
52
62
  backgroundOverlay: (0, _color).applyAlpha(palette.grey6, 0.6),
53
63
  backgroundSkeleton: palette.grey1,
54
- backgroundSkeletonInverse: palette.movistarBlueDark,
64
+ backgroundSkeletonInverse: palette.movistarBlue55,
55
65
  navigationBarBackground: palette.movistarBlue,
56
66
  backgroundAlternative: palette.grey1,
57
67
  backgroundFeedbackBottom: palette.movistarBlue,
@@ -63,50 +73,50 @@ var getMovistarSkin = function getMovistarSkin(variant) {
63
73
  borderSelected: palette.movistarGreen,
64
74
  // BUTTONS
65
75
  buttonDangerBackground: palette.pepper,
66
- buttonDangerBackgroundSelected: palette.pepperDark,
67
- buttonDangerBackgroundHover: palette.pepperDark,
68
- buttonLinkBackgroundSelected: palette.movistarBlueLight10,
76
+ buttonDangerBackgroundSelected: palette.pepper55,
77
+ buttonDangerBackgroundHover: palette.pepper55,
78
+ buttonLinkBackgroundSelected: palette.movistarBlue10,
69
79
  buttonLinkBackgroundSelectedInverse: (0, _color).applyAlpha(palette.white, 0.2),
70
80
  buttonPrimaryBackground: palette.movistarGreen,
71
81
  buttonPrimaryBackgroundInverse: palette.white,
72
- buttonPrimaryBackgroundSelected: palette.movistarGreenDark,
73
- buttonPrimaryBackgroundHover: palette.movistarGreenDark,
74
- buttonPrimaryBackgroundSelectedInverse: palette.movistarBlueLight50,
82
+ buttonPrimaryBackgroundSelected: palette.movistarGreen60,
83
+ buttonPrimaryBackgroundHover: palette.movistarGreen60,
84
+ buttonPrimaryBackgroundSelectedInverse: palette.movistarBlue30,
75
85
  buttonSecondaryBackground: palette.movistarGreen,
76
- buttonSecondaryBackgroundSelected: palette.movistarGreenDark,
86
+ buttonSecondaryBackgroundSelected: palette.movistarGreen60,
77
87
  buttonSecondaryBorderInverse: palette.white,
78
- buttonSecondaryBorderSelectedInverse: palette.movistarBlueLight50,
88
+ buttonSecondaryBorderSelectedInverse: palette.movistarBlue30,
79
89
  textButtonPrimary: palette.white,
80
90
  textButtonPrimaryInverse: palette.movistarBlue,
81
91
  textButtonPrimaryInverseSelected: palette.movistarBlue,
82
92
  textButtonSecondary: palette.movistarGreen,
83
- textButtonSecondarySelected: palette.movistarGreenDark,
93
+ textButtonSecondarySelected: palette.movistarGreen60,
84
94
  textButtonSecondaryInverse: palette.white,
85
95
  textButtonSecondaryInverseSelected: palette.white,
86
96
  textLink: palette.movistarBlue,
87
97
  textLinkInverse: palette.white,
88
98
  textLinkDanger: palette.pepper,
89
- textLinkSnackbar: palette.movistarBlueLight50,
99
+ textLinkSnackbar: palette.movistarBlue30,
90
100
  // CONTROLS
91
101
  control: palette.grey3,
92
102
  controlActivated: palette.movistarBlue,
93
103
  controlError: palette.pepper,
94
- loadingBar: palette.movistarBlueLight50,
95
- loadingBarBackground: palette.movistarBlueDark,
104
+ loadingBar: palette.movistarBlue30,
105
+ loadingBarBackground: palette.movistarBlue55,
96
106
  toggleAndroidInactive: palette.grey2,
97
- toggleAndroidBackgroundActive: palette.movistarBlueLight30,
107
+ toggleAndroidBackgroundActive: palette.movistarBlue20,
98
108
  iosControlKnob: palette.white,
99
109
  // DIVIDERS
100
110
  divider: palette.grey2,
101
- dividerInverse: palette.movistarBlueDark,
111
+ dividerInverse: palette.movistarBlue55,
102
112
  navigationBarDivider: palette.movistarBlue,
103
113
  // FEEDBACKS
104
- badge: palette.pepperDark,
114
+ badge: palette.pepper55,
105
115
  feedbackErrorBackground: palette.pepper,
106
116
  feedbackInfoBackground: palette.grey6,
107
117
  // GLOBAL
108
118
  brand: palette.movistarBlue,
109
- brandDark: palette.movistarBlueDark,
119
+ brandDark: palette.movistarBlue55,
110
120
  inverse: palette.white,
111
121
  neutralHigh: palette.grey6,
112
122
  neutralMedium: palette.grey5,
@@ -124,11 +134,24 @@ var getMovistarSkin = function getMovistarSkin(variant) {
124
134
  warning: palette.egg,
125
135
  // BARS TEXTS
126
136
  textNavigationBarPrimary: palette.white,
127
- textNavigationBarSecondary: palette.movistarBlueLight30,
128
- textNavigationSearchBarHint: palette.movistarBlueLight30,
137
+ textNavigationBarSecondary: palette.movistarBlue20,
138
+ textNavigationSearchBarHint: palette.movistarBlue20,
129
139
  textNavigationSearchBarText: palette.white,
130
140
  textAppBar: palette.grey4,
131
- textAppBarSelected: palette.movistarBlue
141
+ textAppBarSelected: palette.movistarBlue,
142
+ // TAGS
143
+ tagBackgroundSuccess: palette.movistarGreen10,
144
+ tagBackgroundWarning: palette.egg10,
145
+ tagBackgroundError: palette.pepper10,
146
+ tagBackgroundPromo: palette.purple10,
147
+ tagBackgroundActive: palette.movistarBlue10,
148
+ tagBackgroundInactive: palette.grey1,
149
+ textTagSuccess: palette.movistarGreen70,
150
+ textTagWarning: palette.egg80,
151
+ textTagError: palette.pepper70,
152
+ textTagPromo: palette.purple70,
153
+ textTagActive: palette.movistarBlue,
154
+ textTagInactive: palette.grey5
132
155
  },
133
156
  darkModeColors: {
134
157
  brand: palette.movistarBlue,
@@ -149,13 +172,13 @@ var getMovistarSkin = function getMovistarSkin(variant) {
149
172
  buttonLinkBackgroundSelectedInverse: (0, _color).applyAlpha(palette.white, 0.05),
150
173
  buttonPrimaryBackground: palette.movistarGreen,
151
174
  buttonPrimaryBackgroundInverse: palette.movistarGreen,
152
- buttonPrimaryBackgroundSelected: palette.movistarGreenDark,
153
- buttonPrimaryBackgroundHover: palette.movistarGreenDark,
154
- buttonPrimaryBackgroundSelectedInverse: palette.movistarGreenDark,
175
+ buttonPrimaryBackgroundSelected: palette.movistarGreen60,
176
+ buttonPrimaryBackgroundHover: palette.movistarGreen60,
177
+ buttonPrimaryBackgroundSelectedInverse: palette.movistarGreen60,
155
178
  buttonSecondaryBackground: palette.movistarGreen,
156
- buttonSecondaryBackgroundSelected: palette.movistarGreenDark,
179
+ buttonSecondaryBackgroundSelected: palette.movistarGreen60,
157
180
  buttonSecondaryBorderInverse: palette.movistarGreen,
158
- buttonSecondaryBorderSelectedInverse: palette.movistarGreenDark,
181
+ buttonSecondaryBorderSelectedInverse: palette.movistarGreen60,
159
182
  textButtonPrimary: palette.grey2,
160
183
  textButtonPrimaryInverse: palette.grey2,
161
184
  textButtonPrimaryInverseSelected: palette.grey2,
@@ -170,7 +193,7 @@ var getMovistarSkin = function getMovistarSkin(variant) {
170
193
  loadingBar: palette.movistarBlue,
171
194
  loadingBarBackground: (0, _color).applyAlpha(palette.white, 0.05),
172
195
  toggleAndroidInactive: palette.grey4,
173
- toggleAndroidBackgroundActive: palette.movistarBlueLight30,
196
+ toggleAndroidBackgroundActive: palette.movistarBlue20,
174
197
  iosControlKnob: palette.grey2,
175
198
  divider: (0, _color).applyAlpha(palette.white, 0.05),
176
199
  dividerInverse: (0, _color).applyAlpha(palette.white, 0.05),
@@ -184,13 +207,26 @@ var getMovistarSkin = function getMovistarSkin(variant) {
184
207
  textPrimaryInverse: palette.grey2,
185
208
  textSecondary: palette.grey4,
186
209
  textSecondaryInverse: palette.grey4,
187
- textAmount: palette.movistarBlueLight50,
210
+ textAmount: palette.movistarBlue30,
188
211
  textNavigationBarPrimary: palette.grey2,
189
212
  textNavigationBarSecondary: palette.grey4,
190
213
  textNavigationSearchBarHint: palette.grey4,
191
214
  textNavigationSearchBarText: palette.grey2,
192
215
  textAppBar: palette.grey5,
193
- textAppBarSelected: palette.grey2
216
+ textAppBarSelected: palette.grey2,
217
+ // TAGS
218
+ tagBackgroundSuccess: (0, _color).applyAlpha(palette.white, 0.05),
219
+ tagBackgroundWarning: (0, _color).applyAlpha(palette.white, 0.05),
220
+ tagBackgroundError: (0, _color).applyAlpha(palette.white, 0.05),
221
+ tagBackgroundPromo: (0, _color).applyAlpha(palette.white, 0.05),
222
+ tagBackgroundActive: (0, _color).applyAlpha(palette.white, 0.05),
223
+ tagBackgroundInactive: (0, _color).applyAlpha(palette.white, 0.05),
224
+ textTagSuccess: palette.movistarGreen40,
225
+ textTagWarning: palette.egg40,
226
+ textTagError: palette.pepper40,
227
+ textTagPromo: palette.purple40,
228
+ textTagActive: palette.movistarBlue40,
229
+ textTagInactive: palette.grey4
194
230
  }
195
231
  };
196
232
  if (variant === 'prominent') {