@telefonica/mistica 10.14.2 → 10.15.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 (44) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/button.js +16 -26
  3. package/dist/checkbox.js +11 -7
  4. package/dist/date-time-picker.js +10 -4
  5. package/dist/list.d.ts +1 -0
  6. package/dist/list.js +63 -26
  7. package/dist/list.js.flow +1 -0
  8. package/dist/package-version.js +1 -1
  9. package/dist/radio-button.js +13 -9
  10. package/dist/select.js +5 -16
  11. package/dist/skins/blau.js +0 -24
  12. package/dist/skins/movistar.js +0 -23
  13. package/dist/skins/o2-classic.js +0 -24
  14. package/dist/skins/o2.js +0 -23
  15. package/dist/skins/types.d.ts +0 -12
  16. package/dist/skins/types.js.flow +0 -12
  17. package/dist/skins/vivo.js +0 -23
  18. package/dist/switch-component.js +12 -9
  19. package/dist/text-field-base.js +3 -17
  20. package/dist/text-field-components.d.ts +0 -1
  21. package/dist/text-field-components.js +8 -15
  22. package/dist/text-field-components.js.flow +0 -1
  23. package/dist/text-link.d.ts +1 -0
  24. package/dist/text-link.js +16 -9
  25. package/dist/text-link.js.flow +1 -0
  26. package/dist/touchable.js +2 -3
  27. package/dist-es/button.js +16 -26
  28. package/dist-es/checkbox.js +11 -7
  29. package/dist-es/date-time-picker.js +10 -4
  30. package/dist-es/list.js +63 -26
  31. package/dist-es/package-version.js +1 -1
  32. package/dist-es/radio-button.js +13 -9
  33. package/dist-es/select.js +5 -16
  34. package/dist-es/skins/blau.js +0 -24
  35. package/dist-es/skins/movistar.js +0 -23
  36. package/dist-es/skins/o2-classic.js +0 -24
  37. package/dist-es/skins/o2.js +0 -23
  38. package/dist-es/skins/vivo.js +0 -23
  39. package/dist-es/switch-component.js +12 -9
  40. package/dist-es/text-field-base.js +3 -17
  41. package/dist-es/text-field-components.js +8 -15
  42. package/dist-es/text-link.js +14 -8
  43. package/dist-es/touchable.js +2 -3
  44. package/package.json +2 -2
package/dist-es/list.js CHANGED
@@ -16,7 +16,7 @@ import { useAriaId, useTheme } from './hooks';
16
16
  import { useIsInverseVariant } from './theme-variant-context';
17
17
  import IconChevron from './icons/icon-chevron';
18
18
  import Switch from './switch-component';
19
- import RadioButton from './radio-button';
19
+ import RadioButton, { useRadioContext } from './radio-button';
20
20
  import Checkbox from './checkbox';
21
21
  import { Boxed } from './boxed';
22
22
  import Divider from './divider';
@@ -84,18 +84,24 @@ function _slicedToArray(arr, i) {
84
84
  var useStyles = createUseStyles(function(param) {
85
85
  var colors = param.colors, mq = param.mq;
86
86
  return {
87
+ disabled: {
88
+ opacity: 0.5
89
+ },
87
90
  hover: _defineProperty({
88
91
  }, mq.supportsHover, {
89
92
  '&:hover': {
90
93
  background: function(param) {
91
- var isInverse = param.isInverse;
92
- return isInverse ? 'initial' : colors.backgroundAlternative;
94
+ var isInverse = param.isInverse, disabled = param.disabled;
95
+ return isInverse || disabled ? 'initial' : colors.backgroundAlternative;
93
96
  }
94
97
  }
95
98
  }),
96
99
  rowContent: {
97
100
  width: '100%',
98
- cursor: 'pointer'
101
+ cursor: function(param) {
102
+ var disabled = param.disabled;
103
+ return disabled ? 'default' : 'pointer';
104
+ }
99
105
  },
100
106
  hoverDisabled: {
101
107
  cursor: 'initial',
@@ -166,8 +172,9 @@ var useStyles = createUseStyles(function(param) {
166
172
  }
167
173
  };
168
174
  });
175
+ var _obj;
169
176
  var Content = function(param) {
170
- var headline = param.headline, title = param.title, titleLinesMax = param.titleLinesMax, subtitle = param.subtitle, subtitleLinesMax = param.subtitleLinesMax, description = param.description, descriptionLinesMax = param.descriptionLinesMax, asset = param.asset, _type = param.type, type = _type === void 0 ? 'basic' : _type, badge = param.badge, right = param.right, extra = param.extra, labelId = param.labelId;
177
+ var headline = param.headline, title = param.title, titleLinesMax = param.titleLinesMax, subtitle = param.subtitle, subtitleLinesMax = param.subtitleLinesMax, description = param.description, descriptionLinesMax = param.descriptionLinesMax, asset = param.asset, _type = param.type, type = _type === void 0 ? 'basic' : _type, badge = param.badge, right = param.right, extra = param.extra, labelId = param.labelId, disabled = param.disabled;
171
178
  var isInverse = useIsInverseVariant();
172
179
  var classes = useStyles({
173
180
  isInverse: isInverse
@@ -188,7 +195,8 @@ var Content = function(param) {
188
195
  return(/*#__PURE__*/ _jsx(Box, {
189
196
  paddingLeft: 16,
190
197
  children: /*#__PURE__*/ _jsx("div", {
191
- className: classNames(classes.center, classes.badge),
198
+ className: classNames(classes.center, classes.badge, _defineProperty({
199
+ }, classes.disabled, disabled)),
192
200
  children: badge === true ? /*#__PURE__*/ _jsx(Badge, {
193
201
  }) : /*#__PURE__*/ _jsx(Badge, {
194
202
  value: badge
@@ -196,21 +204,49 @@ var Content = function(param) {
196
204
  })
197
205
  }));
198
206
  };
207
+ var renderRight = function() {
208
+ switch(type){
209
+ case 'chevron':
210
+ return(/*#__PURE__*/ _jsx(Box, {
211
+ paddingLeft: 16,
212
+ className: classNames(classes.center, _defineProperty({
213
+ }, classes.disabled, disabled)),
214
+ children: /*#__PURE__*/ _jsx(IconChevron, {
215
+ color: isInverse ? colors.inverse : colors.neutralMedium,
216
+ direction: "right"
217
+ })
218
+ }));
219
+ case 'control':
220
+ return(/*#__PURE__*/ _jsx("div", {
221
+ className: classes.right,
222
+ children: right
223
+ }));
224
+ case 'custom':
225
+ return(/*#__PURE__*/ _jsx("div", {
226
+ className: classNames(classes.right, _defineProperty({
227
+ }, classes.disabled, disabled)),
228
+ children: right
229
+ }));
230
+ default:
231
+ return null;
232
+ }
233
+ };
199
234
  return(/*#__PURE__*/ _jsxs(Box, {
200
235
  paddingY: 16,
201
236
  className: classes.content,
202
237
  children: [
203
238
  asset && /*#__PURE__*/ _jsx(Box, {
204
239
  paddingRight: 16,
205
- className: classNames(_defineProperty({
206
- }, classes.center, shouldCenter)),
240
+ className: classNames((_obj = {
241
+ }, _defineProperty(_obj, classes.center, shouldCenter), _defineProperty(_obj, classes.disabled, disabled), _obj)),
207
242
  children: /*#__PURE__*/ _jsx("div", {
208
243
  className: classes.asset,
209
244
  children: asset
210
245
  })
211
246
  }),
212
247
  /*#__PURE__*/ _jsx("div", {
213
- className: classes.rowBody,
248
+ className: classNames(classes.rowBody, _defineProperty({
249
+ }, classes.disabled, disabled)),
214
250
  style: {
215
251
  justifyContent: shouldCenter ? 'center' : 'flex-start'
216
252
  },
@@ -255,17 +291,7 @@ var Content = function(param) {
255
291
  })
256
292
  }),
257
293
  renderBadge(),
258
- type === 'chevron' ? /*#__PURE__*/ _jsx(Box, {
259
- paddingLeft: 16,
260
- className: classes.center,
261
- children: /*#__PURE__*/ _jsx(IconChevron, {
262
- color: isInverse ? colors.inverse : colors.neutralMedium,
263
- direction: "right"
264
- })
265
- }) : right ? /*#__PURE__*/ _jsx("div", {
266
- className: classes.right,
267
- children: right
268
- }) : null
294
+ renderRight()
269
295
  ]
270
296
  }));
271
297
  };
@@ -295,10 +321,13 @@ var useControlState = function(param) {
295
321
  var RowContent = /*#__PURE__*/ React.forwardRef(function(props, ref5) {
296
322
  var titleId = useAriaId();
297
323
  var isInverse = useIsInverseVariant();
324
+ var asset = props.asset, headline = props.headline, title = props.title, titleLinesMax = props.titleLinesMax, subtitle = props.subtitle, subtitleLinesMax = props.subtitleLinesMax, description = props.description, descriptionLinesMax = props.descriptionLinesMax, badge = props.badge, role = props.role, extra = props.extra, dataAttributes = props.dataAttributes;
325
+ var radioContext = useRadioContext();
326
+ var disabled = props.disabled || props.radioValue !== undefined && radioContext.disabled;
298
327
  var classes = useStyles({
299
- isInverse: isInverse
328
+ isInverse: isInverse,
329
+ disabled: disabled
300
330
  });
301
- var asset = props.asset, headline = props.headline, title = props.title, titleLinesMax = props.titleLinesMax, subtitle = props.subtitle, subtitleLinesMax = props.subtitleLinesMax, description = props.description, descriptionLinesMax = props.descriptionLinesMax, badge = props.badge, role = props.role, extra = props.extra, dataAttributes = props.dataAttributes;
302
331
  var ref1 = _slicedToArray(useControlState(props.switch || props.checkbox || {
303
332
  }), 2), isChecked = ref1[0], toggle = ref1[1];
304
333
  var renderContent = function(param) {
@@ -316,7 +345,8 @@ var RowContent = /*#__PURE__*/ React.forwardRef(function(props, ref5) {
316
345
  type: type,
317
346
  right: right,
318
347
  extra: extra,
319
- labelId: labelId
348
+ labelId: labelId,
349
+ disabled: disabled
320
350
  });
321
351
  };
322
352
  var renderTouchableContent = function(props) {
@@ -344,6 +374,7 @@ var RowContent = /*#__PURE__*/ React.forwardRef(function(props, ref5) {
344
374
  onPress: props.onPress,
345
375
  role: role,
346
376
  dataAttributes: dataAttributes,
377
+ disabled: disabled,
347
378
  children: renderTouchableContent(props)
348
379
  }));
349
380
  }
@@ -355,6 +386,7 @@ var RowContent = /*#__PURE__*/ React.forwardRef(function(props, ref5) {
355
386
  fullPageOnWebView: props.fullPageOnWebView,
356
387
  role: role,
357
388
  dataAttributes: dataAttributes,
389
+ disabled: disabled,
358
390
  children: renderTouchableContent(props)
359
391
  }));
360
392
  }
@@ -366,6 +398,7 @@ var RowContent = /*#__PURE__*/ React.forwardRef(function(props, ref5) {
366
398
  newTab: props.newTab,
367
399
  role: role,
368
400
  dataAttributes: dataAttributes,
401
+ disabled: disabled,
369
402
  children: renderTouchableContent(props)
370
403
  }));
371
404
  }
@@ -377,19 +410,22 @@ var RowContent = /*#__PURE__*/ React.forwardRef(function(props, ref5) {
377
410
  className: classes.dualActionContainer,
378
411
  children: [
379
412
  /*#__PURE__*/ _jsx(Touchable, {
413
+ disabled: disabled,
380
414
  onPress: props.onPress,
381
415
  role: role,
382
416
  className: classNames(classes.dualActionLeft, classes.hover),
383
417
  children: renderContent({
384
- type: 'custom',
418
+ type: 'basic',
385
419
  labelId: titleId
386
420
  })
387
421
  }),
388
422
  /*#__PURE__*/ _jsx(Touchable, {
423
+ disabled: disabled,
389
424
  className: classes.dualActionRight,
390
425
  onPress: toggle,
391
426
  dataAttributes: dataAttributes,
392
427
  children: /*#__PURE__*/ _jsx(Control, {
428
+ disabled: disabled,
393
429
  name: name,
394
430
  checked: isChecked,
395
431
  "aria-labelledby": titleId,
@@ -402,6 +438,7 @@ var RowContent = /*#__PURE__*/ React.forwardRef(function(props, ref5) {
402
438
  }) : /*#__PURE__*/ _jsx("div", {
403
439
  className: classNames(classes.rowContent, classes.hover),
404
440
  children: /*#__PURE__*/ _jsx(Control, {
441
+ disabled: disabled,
405
442
  dataAttributes: dataAttributes,
406
443
  name: name,
407
444
  checked: isChecked,
@@ -412,7 +449,7 @@ var RowContent = /*#__PURE__*/ React.forwardRef(function(props, ref5) {
412
449
  role: role,
413
450
  children: renderContent({
414
451
  labelId: labelId,
415
- type: 'custom',
452
+ type: 'control',
416
453
  right: /*#__PURE__*/ _jsx(Stack, {
417
454
  space: "around",
418
455
  children: control
@@ -442,7 +479,7 @@ var RowContent = /*#__PURE__*/ React.forwardRef(function(props, ref5) {
442
479
  /*#__PURE__*/ return _jsx(Box, {
443
480
  paddingX: 16,
444
481
  children: renderContent({
445
- type: 'custom',
482
+ type: 'control',
446
483
  right: /*#__PURE__*/ _jsx(Stack, {
447
484
  space: "around",
448
485
  children: radio
@@ -1,2 +1,2 @@
1
1
  // DO NOT EDIT THIS FILE. It's autogenerated by set-version.js
2
- export var PACKAGE_VERSION = '10.14.2';
2
+ export var PACKAGE_VERSION = '10.15.0';
@@ -103,6 +103,7 @@ var useRadioButtonStyles = createUseStyles(function(param) {
103
103
  var colors = param.colors, isIos = param.isIos;
104
104
  return {
105
105
  outerCircle: {
106
+ cursor: 'pointer',
106
107
  flexShrink: 0,
107
108
  width: 20,
108
109
  height: 20,
@@ -135,11 +136,11 @@ var useRadioButtonStyles = createUseStyles(function(param) {
135
136
  transform: 'scale(1)'
136
137
  },
137
138
  radioButton: {
138
- cursor: 'default',
139
- opacity: function(param) {
140
- var disabled = param.disabled;
141
- return disabled ? 0.5 : 1;
142
- }
139
+ cursor: 'default'
140
+ },
141
+ disabled: {
142
+ opacity: 0.5,
143
+ cursor: 'default'
143
144
  }
144
145
  };
145
146
  });
@@ -157,6 +158,7 @@ var RadioContext = /*#__PURE__*/ React.createContext({
157
158
  export var useRadioContext = function() {
158
159
  return React.useContext(RadioContext);
159
160
  };
161
+ var _obj;
160
162
  var RadioButton = function(_param) {
161
163
  var value = _param.value, id = _param.id, dataAttributes = _param.dataAttributes, rest = _objectWithoutProperties(_param, ["value", "id", "dataAttributes"]);
162
164
  var ref = useRadioContext(), disabled = ref.disabled, selectedValue = ref.selectedValue, focusableValue = ref.focusableValue, select = ref.select, selectNext = ref.selectNext, selectPrev = ref.selectPrev;
@@ -164,7 +166,6 @@ var RadioButton = function(_param) {
164
166
  var checked = value === selectedValue;
165
167
  var tabIndex = focusableValue === value ? 0 : -1;
166
168
  var classes = useRadioButtonStyles({
167
- disabled: disabled,
168
169
  checked: checked
169
170
  });
170
171
  var ref2 = useTheme(), isIos = ref2.isIos;
@@ -191,8 +192,8 @@ var RadioButton = function(_param) {
191
192
  }
192
193
  };
193
194
  var radio = /*#__PURE__*/ _jsx("div", {
194
- className: classnames(classes.outerCircle, _defineProperty({
195
- }, classes.outerCircleChecked, checked)),
195
+ className: classnames(classes.outerCircle, (_obj = {
196
+ }, _defineProperty(_obj, classes.outerCircleChecked, checked), _defineProperty(_obj, classes.disabled, disabled), _obj)),
196
197
  children: !isIos && /*#__PURE__*/ _jsx("div", {
197
198
  className: classnames(classes.innerCircle, _defineProperty({
198
199
  }, classes.innerCircleChecked, checked))
@@ -230,7 +231,10 @@ var RadioButton = function(_param) {
230
231
  /*#__PURE__*/ _jsx(Text3, {
231
232
  regular: true,
232
233
  as: "div",
233
- children: rest.children
234
+ children: /*#__PURE__*/ _jsx("span", {
235
+ className: disabled ? classes.disabled : '',
236
+ children: rest.children
237
+ })
234
238
  })
235
239
  ]
236
240
  })
package/dist-es/select.js CHANGED
@@ -77,10 +77,6 @@ var _obj, _obj1;
77
77
  var useStyles = createUseStyles(function(theme) {
78
78
  return {
79
79
  selectContainer: (_obj = {
80
- cursor: function(param) {
81
- var disabled = param.disabled;
82
- return disabled ? 'auto' : 'pointer';
83
- },
84
80
  position: 'relative',
85
81
  outline: 0
86
82
  }, _defineProperty(_obj, theme.mq.tabletOrSmaller, {
@@ -111,24 +107,17 @@ var useStyles = createUseStyles(function(theme) {
111
107
  width: '100%',
112
108
  height: '100%',
113
109
  textOverflow: 'ellipsis',
114
- '&:disabled': {
115
- color: theme.colors.textDisabled
116
- },
117
110
  appearance: 'none',
118
111
  cursor: function(param) {
119
112
  var disabled = param.disabled;
120
- return disabled ? 'inherit' : 'pointer';
113
+ return disabled ? 'default' : 'pointer';
121
114
  }
122
115
  },
123
116
  arrowDown: {
124
117
  position: 'absolute',
125
118
  right: 16,
126
119
  top: 'calc(50% - 10px)',
127
- pointerEvents: 'none',
128
- opacity: function(param) {
129
- var disabled = param.disabled;
130
- return disabled ? 0.3 : 1;
131
- }
120
+ pointerEvents: 'none'
132
121
  },
133
122
  selectText: {
134
123
  position: 'absolute',
@@ -141,9 +130,10 @@ var useStyles = createUseStyles(function(theme) {
141
130
  return label ? 27 : 17;
142
131
  },
143
132
  fontSize: 16,
144
- color: function(param) {
133
+ color: theme.colors.textPrimary,
134
+ opacity: function(param) {
145
135
  var disabled = param.disabled;
146
- return disabled ? theme.colors.textDisabled : theme.colors.textPrimary;
136
+ return disabled ? 0.5 : 1;
147
137
  },
148
138
  maxWidth: '100%',
149
139
  textOverflow: 'ellipsis',
@@ -451,7 +441,6 @@ var Select = function(param) {
451
441
  error: error,
452
442
  forId: inputId,
453
443
  inputState: isFocused ? 'focused' : ((ref15 = value !== null && value !== void 0 ? value : valueState) !== null && ref15 !== void 0 ? ref15 : (ref11 = inputRef.current) === null || ref11 === void 0 ? void 0 : ref11.value) ? 'filled' : 'default',
454
- disabled: disabled,
455
444
  optional: optional,
456
445
  children: label
457
446
  }),
@@ -59,40 +59,29 @@ export var getBlauSkin = function() {
59
59
  borderSelected: palette.blauBlueSecondary60,
60
60
  // BUTTONS
61
61
  buttonDangerBackground: palette.blauRed,
62
- buttonDangerBackgroundDisabled: palette.blauRed20,
63
62
  buttonDangerBackgroundSelected: palette.blauRed70,
64
63
  buttonDangerBackgroundHover: palette.blauRed70,
65
64
  buttonLinkBackgroundSelected: palette.blauPurple10,
66
65
  buttonLinkBackgroundSelectedInverse: applyAlpha(palette.white, 0.3),
67
66
  buttonPrimaryBackground: palette.blauBlueSecondary,
68
- buttonPrimaryBackgroundDisabled: palette.blauBlueSecondary20,
69
- buttonPrimaryBackgroundDisabledInverse: palette.blauBlueSecondary30,
70
67
  buttonPrimaryBackgroundInverse: palette.white,
71
68
  buttonPrimaryBackgroundSelected: palette.blauBlueSecondary60,
72
69
  buttonPrimaryBackgroundHover: palette.blauBlueSecondary60,
73
70
  buttonPrimaryBackgroundSelectedInverse: palette.blauBluePrimary30,
74
71
  buttonSecondaryBackground: palette.blauBlueSecondary,
75
- buttonSecondaryBackgroundDisabled: palette.blauBlueSecondary20,
76
72
  buttonSecondaryBackgroundSelected: palette.blauBlueSecondary60,
77
- buttonSecondaryBorderDisabledInverse: palette.blauBlueSecondary20,
78
73
  buttonSecondaryBorderInverse: palette.white,
79
74
  buttonSecondaryBorderSelectedInverse: palette.blauBluePrimary30,
80
75
  textButtonPrimary: palette.white,
81
- textButtonPrimaryDisabled: palette.white,
82
76
  textButtonPrimaryInverse: palette.blauBlueSecondary,
83
- textButtonPrimaryInverseDisabled: palette.blauBluePrimary10,
84
77
  textButtonPrimaryInverseSelected: palette.blauBlueSecondary60,
85
78
  textButtonSecondary: palette.blauBlueSecondary,
86
- textButtonSecondaryDisabled: palette.blauBlueSecondary30,
87
79
  textButtonSecondarySelected: palette.blauBlueSecondary60,
88
80
  textButtonSecondaryInverse: palette.white,
89
- textButtonSecondaryInverseDisabled: palette.blauBlueSecondary20,
90
81
  textButtonSecondaryInverseSelected: palette.white,
91
82
  textLink: palette.blauPurple,
92
83
  textLinkInverse: palette.white,
93
84
  textLinkDanger: palette.blauRed,
94
- textLinkDangerDisabled: palette.blauRed20,
95
- textLinkDisabled: palette.blauPurple30,
96
85
  textLinkSnackbar: palette.blauPurple30,
97
86
  // CONTROLS
98
87
  control: palette.grey2,
@@ -124,7 +113,6 @@ export var getBlauSkin = function() {
124
113
  textPrimaryInverse: palette.white,
125
114
  textSecondary: palette.grey5,
126
115
  textSecondaryInverse: palette.white,
127
- textDisabled: palette.grey3,
128
116
  textAmount: palette.blauBlueSecondary,
129
117
  // STATES
130
118
  error: palette.blauRed,
@@ -157,32 +145,21 @@ export var getBlauSkin = function() {
157
145
  borderLight: palette.darkModeBlack,
158
146
  border: palette.darkModeGrey,
159
147
  // BUTTONS
160
- buttonDangerBackgroundDisabled: palette.darkModeGrey,
161
148
  buttonLinkBackgroundSelected: applyAlpha(palette.blauPurple, 0.3),
162
149
  buttonLinkBackgroundSelectedInverse: applyAlpha(palette.blauPurple, 0.3),
163
- buttonPrimaryBackgroundDisabled: palette.darkModeGrey,
164
- buttonPrimaryBackgroundDisabledInverse: palette.darkModeGrey,
165
150
  buttonPrimaryBackgroundInverse: palette.blauBlueSecondary,
166
151
  buttonPrimaryBackgroundSelected: palette.blauBlueSecondary60,
167
- buttonSecondaryBackgroundDisabled: palette.darkModeGrey,
168
- buttonSecondaryBorderDisabledInverse: palette.darkModeGrey,
169
152
  buttonSecondaryBorderInverse: palette.blauBluePrimary,
170
153
  buttonSecondaryBorderSelectedInverse: palette.blauBlueSecondary60,
171
154
  textButtonPrimary: palette.grey2,
172
- textButtonPrimaryDisabled: palette.grey5,
173
155
  textButtonPrimaryInverse: palette.grey2,
174
- textButtonPrimaryInverseDisabled: palette.grey5,
175
156
  textButtonPrimaryInverseSelected: palette.grey2,
176
157
  textButtonSecondary: palette.grey2,
177
- textButtonSecondaryDisabled: palette.grey5,
178
158
  textButtonSecondarySelected: palette.blauBlueSecondary60,
179
159
  textButtonSecondaryInverse: palette.grey2,
180
- textButtonSecondaryInverseDisabled: palette.grey5,
181
160
  textButtonSecondaryInverseSelected: palette.blauBlueSecondary60,
182
161
  textLink: palette.blauPurple30,
183
162
  textLinkInverse: palette.blauPurple30,
184
- textLinkDisabled: palette.grey5,
185
- textLinkDangerDisabled: palette.grey5,
186
163
  // CONTROLS
187
164
  control: palette.darkModeGrey,
188
165
  loadingBar: palette.blauBluePrimary,
@@ -205,7 +182,6 @@ export var getBlauSkin = function() {
205
182
  textPrimaryInverse: palette.grey2,
206
183
  textSecondary: palette.grey4,
207
184
  textSecondaryInverse: palette.grey4,
208
- textDisabled: palette.grey5,
209
185
  textAmount: palette.blauBlueSecondary,
210
186
  textNavigationBarPrimary: palette.grey2,
211
187
  textNavigationBarSecondary: palette.grey4,
@@ -57,40 +57,29 @@ export var getMovistarSkin = function(variant) {
57
57
  borderSelected: palette.movistarGreen,
58
58
  // BUTTONS
59
59
  buttonDangerBackground: palette.pepper,
60
- buttonDangerBackgroundDisabled: palette.pepperLight30,
61
60
  buttonDangerBackgroundSelected: palette.pepperDark,
62
61
  buttonDangerBackgroundHover: palette.pepperDark,
63
62
  buttonLinkBackgroundSelected: palette.movistarBlueLight10,
64
63
  buttonLinkBackgroundSelectedInverse: applyAlpha(palette.white, 0.2),
65
64
  buttonPrimaryBackground: palette.movistarGreen,
66
- buttonPrimaryBackgroundDisabled: palette.movistarGreenLight50,
67
- buttonPrimaryBackgroundDisabledInverse: palette.movistarBlueLight50,
68
65
  buttonPrimaryBackgroundInverse: palette.white,
69
66
  buttonPrimaryBackgroundSelected: palette.movistarGreenDark,
70
67
  buttonPrimaryBackgroundHover: palette.movistarGreenDark,
71
68
  buttonPrimaryBackgroundSelectedInverse: palette.movistarBlueLight50,
72
69
  buttonSecondaryBackground: palette.movistarGreen,
73
- buttonSecondaryBackgroundDisabled: palette.movistarGreenLight50,
74
70
  buttonSecondaryBackgroundSelected: palette.movistarGreenDark,
75
- buttonSecondaryBorderDisabledInverse: palette.movistarBlueLight50,
76
71
  buttonSecondaryBorderInverse: palette.white,
77
72
  buttonSecondaryBorderSelectedInverse: palette.movistarBlueLight50,
78
73
  textButtonPrimary: palette.white,
79
- textButtonPrimaryDisabled: palette.white,
80
74
  textButtonPrimaryInverse: palette.movistarBlue,
81
- textButtonPrimaryInverseDisabled: palette.movistarBlueLight30,
82
75
  textButtonPrimaryInverseSelected: palette.movistarBlue,
83
76
  textButtonSecondary: palette.movistarGreen,
84
- textButtonSecondaryDisabled: palette.movistarGreenLight50,
85
77
  textButtonSecondarySelected: palette.movistarGreenDark,
86
78
  textButtonSecondaryInverse: palette.white,
87
- textButtonSecondaryInverseDisabled: palette.movistarBlueLight50,
88
79
  textButtonSecondaryInverseSelected: palette.white,
89
80
  textLink: palette.movistarBlue,
90
81
  textLinkInverse: palette.white,
91
82
  textLinkDanger: palette.pepper,
92
- textLinkDangerDisabled: palette.pepperLight30,
93
- textLinkDisabled: palette.movistarBlueLight50,
94
83
  textLinkSnackbar: palette.movistarBlueLight50,
95
84
  // CONTROLS
96
85
  control: palette.grey3,
@@ -122,7 +111,6 @@ export var getMovistarSkin = function(variant) {
122
111
  textPrimaryInverse: palette.white,
123
112
  textSecondary: palette.grey5,
124
113
  textSecondaryInverse: palette.white,
125
- textDisabled: palette.grey4,
126
114
  textAmount: palette.movistarBlue,
127
115
  // STATES
128
116
  error: palette.pepper,
@@ -151,36 +139,26 @@ export var getMovistarSkin = function(variant) {
151
139
  skeletonWave: palette.grey5,
152
140
  borderLight: palette.darkModeBlack,
153
141
  border: palette.darkModeGrey,
154
- buttonDangerBackgroundDisabled: applyAlpha(palette.white, 0.05),
155
142
  buttonLinkBackgroundSelected: applyAlpha(palette.white, 0.05),
156
143
  buttonLinkBackgroundSelectedInverse: applyAlpha(palette.white, 0.05),
157
144
  buttonPrimaryBackground: palette.movistarGreen,
158
- buttonPrimaryBackgroundDisabled: applyAlpha(palette.white, 0.05),
159
- buttonPrimaryBackgroundDisabledInverse: applyAlpha(palette.white, 0.05),
160
145
  buttonPrimaryBackgroundInverse: palette.movistarGreen,
161
146
  buttonPrimaryBackgroundSelected: palette.movistarGreenDark,
162
147
  buttonPrimaryBackgroundHover: palette.movistarGreenDark,
163
148
  buttonPrimaryBackgroundSelectedInverse: palette.movistarGreenDark,
164
149
  buttonSecondaryBackground: palette.movistarGreen,
165
- buttonSecondaryBackgroundDisabled: applyAlpha(palette.white, 0.05),
166
150
  buttonSecondaryBackgroundSelected: palette.movistarGreenDark,
167
- buttonSecondaryBorderDisabledInverse: applyAlpha(palette.white, 0.05),
168
151
  buttonSecondaryBorderInverse: palette.movistarGreen,
169
152
  buttonSecondaryBorderSelectedInverse: palette.movistarGreenDark,
170
153
  textButtonPrimary: palette.grey2,
171
- textButtonPrimaryDisabled: palette.grey5,
172
154
  textButtonPrimaryInverse: palette.grey2,
173
- textButtonPrimaryInverseDisabled: palette.grey5,
174
155
  textButtonPrimaryInverseSelected: palette.grey2,
175
156
  textButtonSecondary: palette.grey2,
176
- textButtonSecondaryDisabled: palette.grey5,
177
157
  textButtonSecondarySelected: palette.grey4,
178
158
  textButtonSecondaryInverse: palette.grey2,
179
- textButtonSecondaryInverseDisabled: palette.grey5,
180
159
  textButtonSecondaryInverseSelected: palette.grey4,
181
160
  textLink: palette.movistarBlue,
182
161
  textLinkInverse: palette.movistarBlue,
183
- textLinkDisabled: palette.grey6,
184
162
  control: palette.grey6,
185
163
  controlActivated: palette.movistarBlue,
186
164
  loadingBar: palette.movistarBlue,
@@ -200,7 +178,6 @@ export var getMovistarSkin = function(variant) {
200
178
  textPrimaryInverse: palette.grey2,
201
179
  textSecondary: palette.grey4,
202
180
  textSecondaryInverse: palette.grey4,
203
- textDisabled: palette.grey5,
204
181
  textAmount: palette.movistarBlueLight50,
205
182
  textNavigationBarPrimary: palette.grey2,
206
183
  textNavigationBarSecondary: palette.grey4,
@@ -63,40 +63,29 @@ export var getO2ClassicSkin = function() {
63
63
  borderSelected: palette.o2Gem,
64
64
  // BUTTONS
65
65
  buttonDangerBackground: palette.pepper,
66
- buttonDangerBackgroundDisabled: palette.pepperLight30,
67
66
  buttonDangerBackgroundSelected: palette.pepperDark,
68
67
  buttonDangerBackgroundHover: palette.pepperDark,
69
68
  buttonLinkBackgroundSelected: palette.o2SkyBlueLight10,
70
69
  buttonLinkBackgroundSelectedInverse: applyAlpha(palette.white, 0.2),
71
70
  buttonPrimaryBackground: palette.o2SkyBlue,
72
- buttonPrimaryBackgroundDisabled: palette.o2SkyBlueLight50,
73
- buttonPrimaryBackgroundDisabledInverse: palette.o2SkyBlueLight50,
74
71
  buttonPrimaryBackgroundInverse: palette.white,
75
72
  buttonPrimaryBackgroundSelected: palette.o2SkyBlueDark,
76
73
  buttonPrimaryBackgroundHover: palette.o2SkyBlueDark,
77
74
  buttonPrimaryBackgroundSelectedInverse: palette.o2SkyBlueLight50,
78
75
  buttonSecondaryBackground: palette.o2SkyBlue,
79
- buttonSecondaryBackgroundDisabled: palette.o2SkyBlueLight50,
80
76
  buttonSecondaryBackgroundSelected: palette.o2SkyBlueDark,
81
- buttonSecondaryBorderDisabledInverse: palette.o2SkyBlueLight50,
82
77
  buttonSecondaryBorderInverse: palette.white,
83
78
  buttonSecondaryBorderSelectedInverse: palette.o2SkyBlueLight50,
84
79
  textButtonPrimary: palette.white,
85
- textButtonPrimaryDisabled: palette.white,
86
80
  textButtonPrimaryInverse: palette.o2SkyBlue,
87
- textButtonPrimaryInverseDisabled: palette.o2SkyBlueLight30,
88
81
  textButtonPrimaryInverseSelected: palette.o2SkyBlue,
89
82
  textButtonSecondary: palette.o2SkyBlue,
90
- textButtonSecondaryDisabled: palette.o2SkyBlueLight50,
91
83
  textButtonSecondarySelected: palette.o2SkyBlueDark,
92
84
  textButtonSecondaryInverse: palette.white,
93
- textButtonSecondaryInverseDisabled: palette.o2SkyBlueLight50,
94
85
  textButtonSecondaryInverseSelected: palette.white,
95
86
  textLink: palette.o2SkyBlue,
96
87
  textLinkInverse: palette.white,
97
88
  textLinkDanger: palette.pepper,
98
- textLinkDangerDisabled: palette.pepperLight30,
99
- textLinkDisabled: palette.o2SkyBlueLight,
100
89
  textLinkSnackbar: palette.o2SkyBlueLight,
101
90
  // CONTROLS
102
91
  control: palette.grey3,
@@ -130,7 +119,6 @@ export var getO2ClassicSkin = function() {
130
119
  textPrimaryInverse: palette.white,
131
120
  textSecondary: palette.grey5,
132
121
  textSecondaryInverse: palette.white,
133
- textDisabled: palette.grey4,
134
122
  textAmount: palette.o2SkyBlue,
135
123
  // STATES
136
124
  error: palette.pepper,
@@ -160,32 +148,21 @@ export var getO2ClassicSkin = function() {
160
148
  border: palette.darkModeGrey,
161
149
  borderDark: palette.grey5,
162
150
  borderSelected: palette.o2Gem,
163
- buttonDangerBackgroundDisabled: applyAlpha(palette.white, 0.05),
164
151
  buttonLinkBackgroundSelected: applyAlpha(palette.white, 0.05),
165
152
  buttonLinkBackgroundSelectedInverse: applyAlpha(palette.white, 0.05),
166
- buttonPrimaryBackgroundDisabled: applyAlpha(palette.white, 0.05),
167
- buttonPrimaryBackgroundDisabledInverse: applyAlpha(palette.white, 0.05),
168
153
  buttonPrimaryBackgroundInverse: palette.o2SkyBlue,
169
154
  buttonPrimaryBackgroundSelectedInverse: palette.o2SkyBlueDark,
170
- buttonSecondaryBackgroundDisabled: applyAlpha(palette.white, 0.05),
171
- buttonSecondaryBorderDisabledInverse: applyAlpha(palette.white, 0.05),
172
155
  buttonSecondaryBorderInverse: palette.o2SkyBlue,
173
156
  buttonSecondaryBorderSelectedInverse: palette.o2SkyBlueDark,
174
157
  textButtonPrimary: palette.grey2,
175
- textButtonPrimaryDisabled: palette.grey5,
176
158
  textButtonPrimaryInverse: palette.grey2,
177
- textButtonPrimaryInverseDisabled: palette.grey5,
178
159
  textButtonPrimaryInverseSelected: palette.grey2,
179
160
  textButtonSecondary: palette.grey2,
180
- textButtonSecondaryDisabled: palette.grey5,
181
161
  textButtonSecondarySelected: palette.grey4,
182
162
  textButtonSecondaryInverse: palette.grey2,
183
- textButtonSecondaryInverseDisabled: palette.grey5,
184
163
  textButtonSecondaryInverseSelected: palette.grey4,
185
164
  textLink: palette.o2SkyBlueLight,
186
165
  textLinkInverse: palette.o2SkyBlueLight,
187
- textLinkDangerDisabled: palette.grey5,
188
- textLinkDisabled: palette.darkModeGrey6,
189
166
  textLinkSnackbar: palette.o2SkyBlueLight,
190
167
  control: palette.darkModeGrey6,
191
168
  controlActivated: palette.o2Gem,
@@ -210,7 +187,6 @@ export var getO2ClassicSkin = function() {
210
187
  textPrimaryInverse: palette.grey2,
211
188
  textSecondary: palette.grey4,
212
189
  textSecondaryInverse: palette.grey4,
213
- textDisabled: palette.grey5,
214
190
  textAmount: palette.o2SkyBlueLight50,
215
191
  textNavigationBarPrimary: palette.grey2,
216
192
  textNavigationBarSecondary: palette.grey4,