@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
@@ -65,40 +65,29 @@ var getBlauSkin = function getBlauSkin() {
65
65
  borderSelected: palette.blauBlueSecondary60,
66
66
  // BUTTONS
67
67
  buttonDangerBackground: palette.blauRed,
68
- buttonDangerBackgroundDisabled: palette.blauRed20,
69
68
  buttonDangerBackgroundSelected: palette.blauRed70,
70
69
  buttonDangerBackgroundHover: palette.blauRed70,
71
70
  buttonLinkBackgroundSelected: palette.blauPurple10,
72
71
  buttonLinkBackgroundSelectedInverse: (0, _color).applyAlpha(palette.white, 0.3),
73
72
  buttonPrimaryBackground: palette.blauBlueSecondary,
74
- buttonPrimaryBackgroundDisabled: palette.blauBlueSecondary20,
75
- buttonPrimaryBackgroundDisabledInverse: palette.blauBlueSecondary30,
76
73
  buttonPrimaryBackgroundInverse: palette.white,
77
74
  buttonPrimaryBackgroundSelected: palette.blauBlueSecondary60,
78
75
  buttonPrimaryBackgroundHover: palette.blauBlueSecondary60,
79
76
  buttonPrimaryBackgroundSelectedInverse: palette.blauBluePrimary30,
80
77
  buttonSecondaryBackground: palette.blauBlueSecondary,
81
- buttonSecondaryBackgroundDisabled: palette.blauBlueSecondary20,
82
78
  buttonSecondaryBackgroundSelected: palette.blauBlueSecondary60,
83
- buttonSecondaryBorderDisabledInverse: palette.blauBlueSecondary20,
84
79
  buttonSecondaryBorderInverse: palette.white,
85
80
  buttonSecondaryBorderSelectedInverse: palette.blauBluePrimary30,
86
81
  textButtonPrimary: palette.white,
87
- textButtonPrimaryDisabled: palette.white,
88
82
  textButtonPrimaryInverse: palette.blauBlueSecondary,
89
- textButtonPrimaryInverseDisabled: palette.blauBluePrimary10,
90
83
  textButtonPrimaryInverseSelected: palette.blauBlueSecondary60,
91
84
  textButtonSecondary: palette.blauBlueSecondary,
92
- textButtonSecondaryDisabled: palette.blauBlueSecondary30,
93
85
  textButtonSecondarySelected: palette.blauBlueSecondary60,
94
86
  textButtonSecondaryInverse: palette.white,
95
- textButtonSecondaryInverseDisabled: palette.blauBlueSecondary20,
96
87
  textButtonSecondaryInverseSelected: palette.white,
97
88
  textLink: palette.blauPurple,
98
89
  textLinkInverse: palette.white,
99
90
  textLinkDanger: palette.blauRed,
100
- textLinkDangerDisabled: palette.blauRed20,
101
- textLinkDisabled: palette.blauPurple30,
102
91
  textLinkSnackbar: palette.blauPurple30,
103
92
  // CONTROLS
104
93
  control: palette.grey2,
@@ -130,7 +119,6 @@ var getBlauSkin = function getBlauSkin() {
130
119
  textPrimaryInverse: palette.white,
131
120
  textSecondary: palette.grey5,
132
121
  textSecondaryInverse: palette.white,
133
- textDisabled: palette.grey3,
134
122
  textAmount: palette.blauBlueSecondary,
135
123
  // STATES
136
124
  error: palette.blauRed,
@@ -163,32 +151,21 @@ var getBlauSkin = function getBlauSkin() {
163
151
  borderLight: palette.darkModeBlack,
164
152
  border: palette.darkModeGrey,
165
153
  // BUTTONS
166
- buttonDangerBackgroundDisabled: palette.darkModeGrey,
167
154
  buttonLinkBackgroundSelected: (0, _color).applyAlpha(palette.blauPurple, 0.3),
168
155
  buttonLinkBackgroundSelectedInverse: (0, _color).applyAlpha(palette.blauPurple, 0.3),
169
- buttonPrimaryBackgroundDisabled: palette.darkModeGrey,
170
- buttonPrimaryBackgroundDisabledInverse: palette.darkModeGrey,
171
156
  buttonPrimaryBackgroundInverse: palette.blauBlueSecondary,
172
157
  buttonPrimaryBackgroundSelected: palette.blauBlueSecondary60,
173
- buttonSecondaryBackgroundDisabled: palette.darkModeGrey,
174
- buttonSecondaryBorderDisabledInverse: palette.darkModeGrey,
175
158
  buttonSecondaryBorderInverse: palette.blauBluePrimary,
176
159
  buttonSecondaryBorderSelectedInverse: palette.blauBlueSecondary60,
177
160
  textButtonPrimary: palette.grey2,
178
- textButtonPrimaryDisabled: palette.grey5,
179
161
  textButtonPrimaryInverse: palette.grey2,
180
- textButtonPrimaryInverseDisabled: palette.grey5,
181
162
  textButtonPrimaryInverseSelected: palette.grey2,
182
163
  textButtonSecondary: palette.grey2,
183
- textButtonSecondaryDisabled: palette.grey5,
184
164
  textButtonSecondarySelected: palette.blauBlueSecondary60,
185
165
  textButtonSecondaryInverse: palette.grey2,
186
- textButtonSecondaryInverseDisabled: palette.grey5,
187
166
  textButtonSecondaryInverseSelected: palette.blauBlueSecondary60,
188
167
  textLink: palette.blauPurple30,
189
168
  textLinkInverse: palette.blauPurple30,
190
- textLinkDisabled: palette.grey5,
191
- textLinkDangerDisabled: palette.grey5,
192
169
  // CONTROLS
193
170
  control: palette.darkModeGrey,
194
171
  loadingBar: palette.blauBluePrimary,
@@ -211,7 +188,6 @@ var getBlauSkin = function getBlauSkin() {
211
188
  textPrimaryInverse: palette.grey2,
212
189
  textSecondary: palette.grey4,
213
190
  textSecondaryInverse: palette.grey4,
214
- textDisabled: palette.grey5,
215
191
  textAmount: palette.blauBlueSecondary,
216
192
  textNavigationBarPrimary: palette.grey2,
217
193
  textNavigationBarSecondary: palette.grey4,
@@ -63,40 +63,29 @@ var getMovistarSkin = function getMovistarSkin(variant) {
63
63
  borderSelected: palette.movistarGreen,
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.movistarBlueLight10,
70
69
  buttonLinkBackgroundSelectedInverse: (0, _color).applyAlpha(palette.white, 0.2),
71
70
  buttonPrimaryBackground: palette.movistarGreen,
72
- buttonPrimaryBackgroundDisabled: palette.movistarGreenLight50,
73
- buttonPrimaryBackgroundDisabledInverse: palette.movistarBlueLight50,
74
71
  buttonPrimaryBackgroundInverse: palette.white,
75
72
  buttonPrimaryBackgroundSelected: palette.movistarGreenDark,
76
73
  buttonPrimaryBackgroundHover: palette.movistarGreenDark,
77
74
  buttonPrimaryBackgroundSelectedInverse: palette.movistarBlueLight50,
78
75
  buttonSecondaryBackground: palette.movistarGreen,
79
- buttonSecondaryBackgroundDisabled: palette.movistarGreenLight50,
80
76
  buttonSecondaryBackgroundSelected: palette.movistarGreenDark,
81
- buttonSecondaryBorderDisabledInverse: palette.movistarBlueLight50,
82
77
  buttonSecondaryBorderInverse: palette.white,
83
78
  buttonSecondaryBorderSelectedInverse: palette.movistarBlueLight50,
84
79
  textButtonPrimary: palette.white,
85
- textButtonPrimaryDisabled: palette.white,
86
80
  textButtonPrimaryInverse: palette.movistarBlue,
87
- textButtonPrimaryInverseDisabled: palette.movistarBlueLight30,
88
81
  textButtonPrimaryInverseSelected: palette.movistarBlue,
89
82
  textButtonSecondary: palette.movistarGreen,
90
- textButtonSecondaryDisabled: palette.movistarGreenLight50,
91
83
  textButtonSecondarySelected: palette.movistarGreenDark,
92
84
  textButtonSecondaryInverse: palette.white,
93
- textButtonSecondaryInverseDisabled: palette.movistarBlueLight50,
94
85
  textButtonSecondaryInverseSelected: palette.white,
95
86
  textLink: palette.movistarBlue,
96
87
  textLinkInverse: palette.white,
97
88
  textLinkDanger: palette.pepper,
98
- textLinkDangerDisabled: palette.pepperLight30,
99
- textLinkDisabled: palette.movistarBlueLight50,
100
89
  textLinkSnackbar: palette.movistarBlueLight50,
101
90
  // CONTROLS
102
91
  control: palette.grey3,
@@ -128,7 +117,6 @@ var getMovistarSkin = function getMovistarSkin(variant) {
128
117
  textPrimaryInverse: palette.white,
129
118
  textSecondary: palette.grey5,
130
119
  textSecondaryInverse: palette.white,
131
- textDisabled: palette.grey4,
132
120
  textAmount: palette.movistarBlue,
133
121
  // STATES
134
122
  error: palette.pepper,
@@ -157,36 +145,26 @@ var getMovistarSkin = function getMovistarSkin(variant) {
157
145
  skeletonWave: palette.grey5,
158
146
  borderLight: palette.darkModeBlack,
159
147
  border: palette.darkModeGrey,
160
- buttonDangerBackgroundDisabled: (0, _color).applyAlpha(palette.white, 0.05),
161
148
  buttonLinkBackgroundSelected: (0, _color).applyAlpha(palette.white, 0.05),
162
149
  buttonLinkBackgroundSelectedInverse: (0, _color).applyAlpha(palette.white, 0.05),
163
150
  buttonPrimaryBackground: palette.movistarGreen,
164
- buttonPrimaryBackgroundDisabled: (0, _color).applyAlpha(palette.white, 0.05),
165
- buttonPrimaryBackgroundDisabledInverse: (0, _color).applyAlpha(palette.white, 0.05),
166
151
  buttonPrimaryBackgroundInverse: palette.movistarGreen,
167
152
  buttonPrimaryBackgroundSelected: palette.movistarGreenDark,
168
153
  buttonPrimaryBackgroundHover: palette.movistarGreenDark,
169
154
  buttonPrimaryBackgroundSelectedInverse: palette.movistarGreenDark,
170
155
  buttonSecondaryBackground: palette.movistarGreen,
171
- buttonSecondaryBackgroundDisabled: (0, _color).applyAlpha(palette.white, 0.05),
172
156
  buttonSecondaryBackgroundSelected: palette.movistarGreenDark,
173
- buttonSecondaryBorderDisabledInverse: (0, _color).applyAlpha(palette.white, 0.05),
174
157
  buttonSecondaryBorderInverse: palette.movistarGreen,
175
158
  buttonSecondaryBorderSelectedInverse: palette.movistarGreenDark,
176
159
  textButtonPrimary: palette.grey2,
177
- textButtonPrimaryDisabled: palette.grey5,
178
160
  textButtonPrimaryInverse: palette.grey2,
179
- textButtonPrimaryInverseDisabled: palette.grey5,
180
161
  textButtonPrimaryInverseSelected: palette.grey2,
181
162
  textButtonSecondary: palette.grey2,
182
- textButtonSecondaryDisabled: palette.grey5,
183
163
  textButtonSecondarySelected: palette.grey4,
184
164
  textButtonSecondaryInverse: palette.grey2,
185
- textButtonSecondaryInverseDisabled: palette.grey5,
186
165
  textButtonSecondaryInverseSelected: palette.grey4,
187
166
  textLink: palette.movistarBlue,
188
167
  textLinkInverse: palette.movistarBlue,
189
- textLinkDisabled: palette.grey6,
190
168
  control: palette.grey6,
191
169
  controlActivated: palette.movistarBlue,
192
170
  loadingBar: palette.movistarBlue,
@@ -206,7 +184,6 @@ var getMovistarSkin = function getMovistarSkin(variant) {
206
184
  textPrimaryInverse: palette.grey2,
207
185
  textSecondary: palette.grey4,
208
186
  textSecondaryInverse: palette.grey4,
209
- textDisabled: palette.grey5,
210
187
  textAmount: palette.movistarBlueLight50,
211
188
  textNavigationBarPrimary: palette.grey2,
212
189
  textNavigationBarSecondary: palette.grey4,
@@ -69,40 +69,29 @@ var getO2ClassicSkin = function getO2ClassicSkin() {
69
69
  borderSelected: palette.o2Gem,
70
70
  // BUTTONS
71
71
  buttonDangerBackground: palette.pepper,
72
- buttonDangerBackgroundDisabled: palette.pepperLight30,
73
72
  buttonDangerBackgroundSelected: palette.pepperDark,
74
73
  buttonDangerBackgroundHover: palette.pepperDark,
75
74
  buttonLinkBackgroundSelected: palette.o2SkyBlueLight10,
76
75
  buttonLinkBackgroundSelectedInverse: (0, _color).applyAlpha(palette.white, 0.2),
77
76
  buttonPrimaryBackground: palette.o2SkyBlue,
78
- buttonPrimaryBackgroundDisabled: palette.o2SkyBlueLight50,
79
- buttonPrimaryBackgroundDisabledInverse: palette.o2SkyBlueLight50,
80
77
  buttonPrimaryBackgroundInverse: palette.white,
81
78
  buttonPrimaryBackgroundSelected: palette.o2SkyBlueDark,
82
79
  buttonPrimaryBackgroundHover: palette.o2SkyBlueDark,
83
80
  buttonPrimaryBackgroundSelectedInverse: palette.o2SkyBlueLight50,
84
81
  buttonSecondaryBackground: palette.o2SkyBlue,
85
- buttonSecondaryBackgroundDisabled: palette.o2SkyBlueLight50,
86
82
  buttonSecondaryBackgroundSelected: palette.o2SkyBlueDark,
87
- buttonSecondaryBorderDisabledInverse: palette.o2SkyBlueLight50,
88
83
  buttonSecondaryBorderInverse: palette.white,
89
84
  buttonSecondaryBorderSelectedInverse: palette.o2SkyBlueLight50,
90
85
  textButtonPrimary: palette.white,
91
- textButtonPrimaryDisabled: palette.white,
92
86
  textButtonPrimaryInverse: palette.o2SkyBlue,
93
- textButtonPrimaryInverseDisabled: palette.o2SkyBlueLight30,
94
87
  textButtonPrimaryInverseSelected: palette.o2SkyBlue,
95
88
  textButtonSecondary: palette.o2SkyBlue,
96
- textButtonSecondaryDisabled: palette.o2SkyBlueLight50,
97
89
  textButtonSecondarySelected: palette.o2SkyBlueDark,
98
90
  textButtonSecondaryInverse: palette.white,
99
- textButtonSecondaryInverseDisabled: palette.o2SkyBlueLight50,
100
91
  textButtonSecondaryInverseSelected: palette.white,
101
92
  textLink: palette.o2SkyBlue,
102
93
  textLinkInverse: palette.white,
103
94
  textLinkDanger: palette.pepper,
104
- textLinkDangerDisabled: palette.pepperLight30,
105
- textLinkDisabled: palette.o2SkyBlueLight,
106
95
  textLinkSnackbar: palette.o2SkyBlueLight,
107
96
  // CONTROLS
108
97
  control: palette.grey3,
@@ -136,7 +125,6 @@ var getO2ClassicSkin = function getO2ClassicSkin() {
136
125
  textPrimaryInverse: palette.white,
137
126
  textSecondary: palette.grey5,
138
127
  textSecondaryInverse: palette.white,
139
- textDisabled: palette.grey4,
140
128
  textAmount: palette.o2SkyBlue,
141
129
  // STATES
142
130
  error: palette.pepper,
@@ -166,32 +154,21 @@ var getO2ClassicSkin = function getO2ClassicSkin() {
166
154
  border: palette.darkModeGrey,
167
155
  borderDark: palette.grey5,
168
156
  borderSelected: palette.o2Gem,
169
- buttonDangerBackgroundDisabled: (0, _color).applyAlpha(palette.white, 0.05),
170
157
  buttonLinkBackgroundSelected: (0, _color).applyAlpha(palette.white, 0.05),
171
158
  buttonLinkBackgroundSelectedInverse: (0, _color).applyAlpha(palette.white, 0.05),
172
- buttonPrimaryBackgroundDisabled: (0, _color).applyAlpha(palette.white, 0.05),
173
- buttonPrimaryBackgroundDisabledInverse: (0, _color).applyAlpha(palette.white, 0.05),
174
159
  buttonPrimaryBackgroundInverse: palette.o2SkyBlue,
175
160
  buttonPrimaryBackgroundSelectedInverse: palette.o2SkyBlueDark,
176
- buttonSecondaryBackgroundDisabled: (0, _color).applyAlpha(palette.white, 0.05),
177
- buttonSecondaryBorderDisabledInverse: (0, _color).applyAlpha(palette.white, 0.05),
178
161
  buttonSecondaryBorderInverse: palette.o2SkyBlue,
179
162
  buttonSecondaryBorderSelectedInverse: palette.o2SkyBlueDark,
180
163
  textButtonPrimary: palette.grey2,
181
- textButtonPrimaryDisabled: palette.grey5,
182
164
  textButtonPrimaryInverse: palette.grey2,
183
- textButtonPrimaryInverseDisabled: palette.grey5,
184
165
  textButtonPrimaryInverseSelected: palette.grey2,
185
166
  textButtonSecondary: palette.grey2,
186
- textButtonSecondaryDisabled: palette.grey5,
187
167
  textButtonSecondarySelected: palette.grey4,
188
168
  textButtonSecondaryInverse: palette.grey2,
189
- textButtonSecondaryInverseDisabled: palette.grey5,
190
169
  textButtonSecondaryInverseSelected: palette.grey4,
191
170
  textLink: palette.o2SkyBlueLight,
192
171
  textLinkInverse: palette.o2SkyBlueLight,
193
- textLinkDangerDisabled: palette.grey5,
194
- textLinkDisabled: palette.darkModeGrey6,
195
172
  textLinkSnackbar: palette.o2SkyBlueLight,
196
173
  control: palette.darkModeGrey6,
197
174
  controlActivated: palette.o2Gem,
@@ -216,7 +193,6 @@ var getO2ClassicSkin = function getO2ClassicSkin() {
216
193
  textPrimaryInverse: palette.grey2,
217
194
  textSecondary: palette.grey4,
218
195
  textSecondaryInverse: palette.grey4,
219
- textDisabled: palette.grey5,
220
196
  textAmount: palette.o2SkyBlueLight50,
221
197
  textNavigationBarPrimary: palette.grey2,
222
198
  textNavigationBarSecondary: palette.grey4,
package/dist/skins/o2.js CHANGED
@@ -69,40 +69,29 @@ var getO2Skin = function getO2Skin() {
69
69
  borderSelected: palette.o2BluePrimary,
70
70
  // BUTTONS
71
71
  buttonDangerBackground: palette.pepper,
72
- buttonDangerBackgroundDisabled: palette.pepperLight30,
73
72
  buttonDangerBackgroundSelected: palette.pepperDark,
74
73
  buttonDangerBackgroundHover: palette.pepperDark,
75
74
  buttonLinkBackgroundSelected: palette.o2BluePrimaryLight10,
76
75
  buttonLinkBackgroundSelectedInverse: (0, _color).applyAlpha(palette.white, 0.2),
77
76
  buttonPrimaryBackground: palette.o2BluePrimary,
78
- buttonPrimaryBackgroundDisabled: palette.o2BluePrimaryLight10,
79
- buttonPrimaryBackgroundDisabledInverse: palette.o2BluePrimaryLight50,
80
77
  buttonPrimaryBackgroundInverse: palette.white,
81
78
  buttonPrimaryBackgroundSelected: palette.o2BluePrimaryDark,
82
79
  buttonPrimaryBackgroundHover: palette.o2BluePrimaryDark,
83
80
  buttonPrimaryBackgroundSelectedInverse: palette.o2BluePrimaryLight50,
84
81
  buttonSecondaryBackground: palette.o2BluePrimary,
85
- buttonSecondaryBackgroundDisabled: palette.o2BluePrimaryLight10,
86
82
  buttonSecondaryBackgroundSelected: palette.o2BluePrimaryDark,
87
- buttonSecondaryBorderDisabledInverse: palette.o2BluePrimaryLight50,
88
83
  buttonSecondaryBorderInverse: palette.white,
89
84
  buttonSecondaryBorderSelectedInverse: palette.o2BluePrimaryLight50,
90
85
  textButtonPrimary: palette.white,
91
- textButtonPrimaryDisabled: palette.white,
92
86
  textButtonPrimaryInverse: palette.o2BluePrimary,
93
- textButtonPrimaryInverseDisabled: palette.o2BluePrimaryLight10,
94
87
  textButtonPrimaryInverseSelected: palette.o2BluePrimaryDark,
95
88
  textButtonSecondary: palette.o2BluePrimary,
96
- textButtonSecondaryDisabled: palette.o2BluePrimaryLight10,
97
89
  textButtonSecondarySelected: palette.o2BluePrimaryDark,
98
90
  textButtonSecondaryInverse: palette.white,
99
- textButtonSecondaryInverseDisabled: palette.o2BluePrimaryLight50,
100
91
  textButtonSecondaryInverseSelected: palette.white,
101
92
  textLink: palette.o2BluePrimary,
102
93
  textLinkInverse: palette.white,
103
94
  textLinkDanger: palette.pepper,
104
- textLinkDangerDisabled: palette.pepperLight30,
105
- textLinkDisabled: palette.o2BluePrimaryLight50,
106
95
  textLinkSnackbar: palette.o2BluePrimaryLight50,
107
96
  // CONTROLS
108
97
  control: palette.grey3,
@@ -136,7 +125,6 @@ var getO2Skin = function getO2Skin() {
136
125
  textPrimaryInverse: palette.white,
137
126
  textSecondary: palette.grey5,
138
127
  textSecondaryInverse: palette.white,
139
- textDisabled: palette.grey4,
140
128
  textAmount: palette.o2BluePrimary,
141
129
  // STATES
142
130
  error: palette.pepper,
@@ -166,36 +154,26 @@ var getO2Skin = function getO2Skin() {
166
154
  border: palette.darkModeGrey,
167
155
  borderDark: palette.grey5,
168
156
  borderSelected: palette.darkModeO2BluePrimary,
169
- buttonDangerBackgroundDisabled: (0, _color).applyAlpha(palette.white, 0.05),
170
157
  buttonLinkBackgroundSelected: (0, _color).applyAlpha(palette.white, 0.05),
171
158
  buttonLinkBackgroundSelectedInverse: (0, _color).applyAlpha(palette.white, 0.05),
172
159
  buttonPrimaryBackground: palette.darkModeO2BluePrimary,
173
- buttonPrimaryBackgroundDisabled: (0, _color).applyAlpha(palette.white, 0.05),
174
- buttonPrimaryBackgroundDisabledInverse: (0, _color).applyAlpha(palette.white, 0.05),
175
160
  buttonPrimaryBackgroundInverse: palette.darkModeO2BluePrimary,
176
161
  buttonPrimaryBackgroundSelected: palette.darkModeO2BluePrimaryDark,
177
162
  buttonPrimaryBackgroundHover: palette.darkModeO2BluePrimaryDark,
178
163
  buttonPrimaryBackgroundSelectedInverse: palette.darkModeO2BluePrimaryDark,
179
164
  buttonSecondaryBackground: palette.darkModeO2BluePrimary,
180
- buttonSecondaryBackgroundDisabled: (0, _color).applyAlpha(palette.white, 0.05),
181
165
  buttonSecondaryBackgroundSelected: palette.darkModeO2BluePrimaryDark,
182
- buttonSecondaryBorderDisabledInverse: (0, _color).applyAlpha(palette.white, 0.05),
183
166
  buttonSecondaryBorderInverse: palette.darkModeO2BluePrimary,
184
167
  buttonSecondaryBorderSelectedInverse: palette.darkModeO2BluePrimaryDark,
185
168
  textButtonPrimary: palette.grey2,
186
- textButtonPrimaryDisabled: palette.grey5,
187
169
  textButtonPrimaryInverse: palette.grey2,
188
- textButtonPrimaryInverseDisabled: palette.grey5,
189
170
  textButtonPrimaryInverseSelected: palette.grey2,
190
171
  textButtonSecondary: palette.grey2,
191
- textButtonSecondaryDisabled: palette.grey5,
192
172
  textButtonSecondarySelected: palette.grey4,
193
173
  textButtonSecondaryInverse: palette.grey2,
194
- textButtonSecondaryInverseDisabled: palette.grey5,
195
174
  textButtonSecondaryInverseSelected: palette.grey4,
196
175
  textLink: palette.o2BluePrimaryLight50,
197
176
  textLinkInverse: palette.o2BluePrimaryLight50,
198
- textLinkDisabled: palette.darkModeGrey6,
199
177
  control: palette.darkModeGrey6,
200
178
  controlActivated: palette.o2BluePrimaryLight50,
201
179
  loadingBar: palette.darkModeO2BluePrimary,
@@ -219,7 +197,6 @@ var getO2Skin = function getO2Skin() {
219
197
  textPrimaryInverse: palette.grey2,
220
198
  textSecondary: palette.grey4,
221
199
  textSecondaryInverse: palette.grey4,
222
- textDisabled: palette.grey5,
223
200
  textAmount: palette.o2BluePrimaryLight10,
224
201
  textNavigationBarPrimary: palette.grey2,
225
202
  textNavigationBarSecondary: palette.grey4,
@@ -23,22 +23,17 @@ export declare type Colors = {
23
23
  borderDark: string;
24
24
  borderSelected: string;
25
25
  buttonDangerBackground: string;
26
- buttonDangerBackgroundDisabled: string;
27
26
  buttonDangerBackgroundSelected: string;
28
27
  buttonDangerBackgroundHover: string;
29
28
  buttonLinkBackgroundSelected: string;
30
29
  buttonLinkBackgroundSelectedInverse: string;
31
30
  buttonPrimaryBackground: string;
32
- buttonPrimaryBackgroundDisabled: string;
33
- buttonPrimaryBackgroundDisabledInverse: string;
34
31
  buttonPrimaryBackgroundInverse: string;
35
32
  buttonPrimaryBackgroundSelected: string;
36
33
  buttonPrimaryBackgroundSelectedInverse: string;
37
34
  buttonPrimaryBackgroundHover: string;
38
35
  buttonSecondaryBackground: string;
39
- buttonSecondaryBackgroundDisabled: string;
40
36
  buttonSecondaryBackgroundSelected: string;
41
- buttonSecondaryBorderDisabledInverse: string;
42
37
  buttonSecondaryBorderInverse: string;
43
38
  buttonSecondaryBorderSelectedInverse: string;
44
39
  control: string;
@@ -70,24 +65,17 @@ export declare type Colors = {
70
65
  textPrimaryInverse: string;
71
66
  textSecondary: string;
72
67
  textSecondaryInverse: string;
73
- textDisabled: string;
74
68
  textAmount: string;
75
69
  textButtonPrimary: string;
76
- textButtonPrimaryDisabled: string;
77
70
  textButtonPrimaryInverse: string;
78
- textButtonPrimaryInverseDisabled: string;
79
71
  textButtonPrimaryInverseSelected: string;
80
72
  textButtonSecondary: string;
81
- textButtonSecondaryDisabled: string;
82
73
  textButtonSecondarySelected: string;
83
74
  textButtonSecondaryInverse: string;
84
- textButtonSecondaryInverseDisabled: string;
85
75
  textButtonSecondaryInverseSelected: string;
86
76
  textLink: string;
87
77
  textLinkInverse: string;
88
78
  textLinkDanger: string;
89
- textLinkDangerDisabled: string;
90
- textLinkDisabled: string;
91
79
  textLinkSnackbar: string;
92
80
  textNavigationBarPrimary: string;
93
81
  textNavigationBarSecondary: string;
@@ -31,22 +31,17 @@ export type Colors = {
31
31
  borderDark: string,
32
32
  borderSelected: string,
33
33
  buttonDangerBackground: string,
34
- buttonDangerBackgroundDisabled: string,
35
34
  buttonDangerBackgroundSelected: string,
36
35
  buttonDangerBackgroundHover: string,
37
36
  buttonLinkBackgroundSelected: string,
38
37
  buttonLinkBackgroundSelectedInverse: string,
39
38
  buttonPrimaryBackground: string,
40
- buttonPrimaryBackgroundDisabled: string,
41
- buttonPrimaryBackgroundDisabledInverse: string,
42
39
  buttonPrimaryBackgroundInverse: string,
43
40
  buttonPrimaryBackgroundSelected: string,
44
41
  buttonPrimaryBackgroundSelectedInverse: string,
45
42
  buttonPrimaryBackgroundHover: string,
46
43
  buttonSecondaryBackground: string,
47
- buttonSecondaryBackgroundDisabled: string,
48
44
  buttonSecondaryBackgroundSelected: string,
49
- buttonSecondaryBorderDisabledInverse: string,
50
45
  buttonSecondaryBorderInverse: string,
51
46
  buttonSecondaryBorderSelectedInverse: string,
52
47
  control: string,
@@ -78,24 +73,17 @@ export type Colors = {
78
73
  textPrimaryInverse: string,
79
74
  textSecondary: string,
80
75
  textSecondaryInverse: string,
81
- textDisabled: string,
82
76
  textAmount: string,
83
77
  textButtonPrimary: string,
84
- textButtonPrimaryDisabled: string,
85
78
  textButtonPrimaryInverse: string,
86
- textButtonPrimaryInverseDisabled: string,
87
79
  textButtonPrimaryInverseSelected: string,
88
80
  textButtonSecondary: string,
89
- textButtonSecondaryDisabled: string,
90
81
  textButtonSecondarySelected: string,
91
82
  textButtonSecondaryInverse: string,
92
- textButtonSecondaryInverseDisabled: string,
93
83
  textButtonSecondaryInverseSelected: string,
94
84
  textLink: string,
95
85
  textLinkInverse: string,
96
86
  textLinkDanger: string,
97
- textLinkDangerDisabled: string,
98
- textLinkDisabled: string,
99
87
  textLinkSnackbar: string,
100
88
  textNavigationBarPrimary: string,
101
89
  textNavigationBarSecondary: string,
@@ -60,40 +60,29 @@ var getVivoSkin = function getVivoSkin() {
60
60
  borderSelected: palette.vivoPurple,
61
61
  // BUTTONS
62
62
  buttonDangerBackground: palette.pepper,
63
- buttonDangerBackgroundDisabled: palette.pepperLight30,
64
63
  buttonDangerBackgroundSelected: palette.pepperDark,
65
64
  buttonDangerBackgroundHover: palette.pepperDark,
66
65
  buttonLinkBackgroundSelected: palette.vivoPurpleLight10,
67
66
  buttonLinkBackgroundSelectedInverse: (0, _color).applyAlpha(palette.white, 0.2),
68
67
  buttonPrimaryBackground: palette.vivoPurple,
69
- buttonPrimaryBackgroundDisabled: palette.vivoPurpleLight20,
70
- buttonPrimaryBackgroundDisabledInverse: palette.vivoPurpleLight50,
71
68
  buttonPrimaryBackgroundInverse: palette.white,
72
69
  buttonPrimaryBackgroundSelected: palette.vivoPurpleDark,
73
70
  buttonPrimaryBackgroundHover: palette.vivoPurpleDark,
74
71
  buttonPrimaryBackgroundSelectedInverse: palette.vivoPurpleLight50,
75
72
  buttonSecondaryBackground: palette.vivoPurple,
76
- buttonSecondaryBackgroundDisabled: palette.vivoPurpleLight20,
77
73
  buttonSecondaryBackgroundSelected: palette.vivoPurpleDark,
78
- buttonSecondaryBorderDisabledInverse: palette.vivoPurpleLight50,
79
74
  buttonSecondaryBorderInverse: palette.white,
80
75
  buttonSecondaryBorderSelectedInverse: palette.vivoPurpleLight50,
81
76
  textButtonPrimary: palette.white,
82
- textButtonPrimaryDisabled: palette.white,
83
77
  textButtonPrimaryInverse: palette.vivoPurple,
84
- textButtonPrimaryInverseDisabled: palette.vivoPurpleLight20,
85
78
  textButtonPrimaryInverseSelected: palette.vivoPurple,
86
79
  textButtonSecondary: palette.vivoPurple,
87
- textButtonSecondaryDisabled: palette.vivoPurpleLight20,
88
80
  textButtonSecondarySelected: palette.vivoPurpleDark,
89
81
  textButtonSecondaryInverse: palette.white,
90
- textButtonSecondaryInverseDisabled: palette.vivoPurpleLight50,
91
82
  textButtonSecondaryInverseSelected: palette.white,
92
83
  textLink: palette.vivoPurple,
93
84
  textLinkInverse: palette.white,
94
85
  textLinkDanger: palette.pepper,
95
- textLinkDangerDisabled: palette.pepperLight30,
96
- textLinkDisabled: palette.vivoPurpleLight50,
97
86
  textLinkSnackbar: palette.vivoPurpleLight50,
98
87
  // CONTROLS
99
88
  control: palette.grey3,
@@ -127,7 +116,6 @@ var getVivoSkin = function getVivoSkin() {
127
116
  textPrimaryInverse: palette.white,
128
117
  textSecondary: palette.grey5,
129
118
  textSecondaryInverse: palette.white,
130
- textDisabled: palette.grey4,
131
119
  textAmount: palette.vivoPurple,
132
120
  // STATES
133
121
  error: palette.pepper,
@@ -157,36 +145,26 @@ var getVivoSkin = function getVivoSkin() {
157
145
  border: palette.darkModeGrey,
158
146
  borderDark: palette.grey5,
159
147
  borderSelected: palette.vivoPurpleLight80,
160
- buttonDangerBackgroundDisabled: (0, _color).applyAlpha(palette.white, 0.05),
161
148
  buttonLinkBackgroundSelected: (0, _color).applyAlpha(palette.white, 0.05),
162
149
  buttonLinkBackgroundSelectedInverse: (0, _color).applyAlpha(palette.white, 0.05),
163
150
  buttonPrimaryBackground: palette.vivoPurpleLight80,
164
- buttonPrimaryBackgroundDisabled: (0, _color).applyAlpha(palette.white, 0.05),
165
- buttonPrimaryBackgroundDisabledInverse: (0, _color).applyAlpha(palette.white, 0.05),
166
151
  buttonPrimaryBackgroundInverse: palette.vivoPurpleLight80,
167
152
  buttonPrimaryBackgroundSelected: palette.vivoPurpleDark,
168
153
  buttonPrimaryBackgroundHover: palette.vivoPurpleDark,
169
154
  buttonPrimaryBackgroundSelectedInverse: palette.vivoPurpleDark,
170
155
  buttonSecondaryBackground: palette.vivoPurpleLight80,
171
- buttonSecondaryBackgroundDisabled: (0, _color).applyAlpha(palette.white, 0.05),
172
156
  buttonSecondaryBackgroundSelected: palette.vivoPurpleDark,
173
- buttonSecondaryBorderDisabledInverse: (0, _color).applyAlpha(palette.white, 0.05),
174
157
  buttonSecondaryBorderInverse: palette.vivoPurpleLight80,
175
158
  buttonSecondaryBorderSelectedInverse: palette.vivoPurpleDark,
176
159
  textButtonPrimary: palette.grey2,
177
- textButtonPrimaryDisabled: palette.grey5,
178
160
  textButtonPrimaryInverse: palette.grey2,
179
- textButtonPrimaryInverseDisabled: palette.grey5,
180
161
  textButtonPrimaryInverseSelected: palette.grey2,
181
162
  textButtonSecondary: palette.grey2,
182
- textButtonSecondaryDisabled: palette.grey5,
183
163
  textButtonSecondarySelected: palette.grey4,
184
164
  textButtonSecondaryInverse: palette.grey2,
185
- textButtonSecondaryInverseDisabled: palette.grey5,
186
165
  textButtonSecondaryInverseSelected: palette.grey4,
187
166
  textLink: palette.vivoPurpleLight50,
188
167
  textLinkInverse: palette.vivoPurpleLight50,
189
- textLinkDisabled: palette.darkModeGrey6,
190
168
  control: palette.darkModeGrey6,
191
169
  controlActivated: palette.vivoPurpleLight80,
192
170
  loadingBar: palette.vivoPurpleLight80,
@@ -211,7 +189,6 @@ var getVivoSkin = function getVivoSkin() {
211
189
  textPrimaryInverse: palette.grey2,
212
190
  textSecondary: palette.grey4,
213
191
  textSecondaryInverse: palette.grey4,
214
- textDisabled: palette.grey5,
215
192
  textAmount: palette.vivoPurpleLight50,
216
193
  textNavigationBarPrimary: palette.grey2,
217
194
  textNavigationBarSecondary: palette.grey4,
@@ -109,7 +109,8 @@ var useStyles = (0, _jss).createUseStyles(function(param) {
109
109
  return {
110
110
  checkbox: {
111
111
  display: 'inline-block',
112
- padding: isIos ? 0 : 4
112
+ padding: isIos ? 0 : 4,
113
+ cursor: 'pointer'
113
114
  },
114
115
  switchCheckboxContainer: {
115
116
  position: 'relative',
@@ -119,7 +120,6 @@ var useStyles = (0, _jss).createUseStyles(function(param) {
119
120
  switchCheckboxLabel: {
120
121
  display: 'block',
121
122
  overflow: 'hidden',
122
- cursor: 'pointer',
123
123
  borderRadius: 40,
124
124
  '& > *': {
125
125
  pointerEvents: 'none'
@@ -165,8 +165,8 @@ var useStyles = (0, _jss).createUseStyles(function(param) {
165
165
  cursor: 'default'
166
166
  },
167
167
  disabled: {
168
- opacity: 0.5,
169
- pointerEvents: 'none'
168
+ cursor: 'default',
169
+ opacity: 0.5
170
170
  }
171
171
  };
172
172
  });
@@ -212,7 +212,8 @@ var Switch = function Switch(props) {
212
212
  }
213
213
  };
214
214
  var switchEl = /*#__PURE__*/ (0, _jsxRuntime).jsx("div", {
215
- className: classes.checkbox,
215
+ className: (0, _classnames).default(classes.checkbox, _defineProperty({
216
+ }, classes.disabled, disabled)),
216
217
  children: /*#__PURE__*/ (0, _jsxRuntime).jsx("div", {
217
218
  className: classes.switchCheckboxContainer,
218
219
  children: /*#__PURE__*/ (0, _jsxRuntime).jsxs("div", {
@@ -236,8 +237,7 @@ var Switch = function Switch(props) {
236
237
  onKeyDown: disabled ? undefined : handleKeyDown,
237
238
  tabIndex: disabled ? undefined : 0,
238
239
  ref: focusableRef,
239
- className: (0, _classnames).default(classes.container, _defineProperty({
240
- }, classes.disabled, disabled)),
240
+ className: classes.container,
241
241
  "aria-disabled": disabled,
242
242
  "aria-labelledby": labelId
243
243
  }, (0, _dom).getPrefixedDataAttributes(props.dataAttributes), {
@@ -248,11 +248,14 @@ var Switch = function Switch(props) {
248
248
  alignItems: "center",
249
249
  children: [
250
250
  switchEl,
251
- /*#__PURE__*/ (0, _jsxRuntime).jsx(_text.Text3, {
251
+ props.children && /*#__PURE__*/ (0, _jsxRuntime).jsx(_text.Text3, {
252
252
  regular: true,
253
253
  as: "div",
254
254
  id: labelId,
255
- children: props.children
255
+ children: /*#__PURE__*/ (0, _jsxRuntime).jsx("span", {
256
+ className: disabled ? classes.disabled : '',
257
+ children: props.children
258
+ })
256
259
  })
257
260
  ]
258
261
  })