@telefonica/mistica 13.6.0 → 14.0.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.
@@ -0,0 +1,260 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ getMovistarLegacySkin: ()=>d,
13
+ palette: ()=>e
14
+ });
15
+ const _colorJs = require("../utils/color.js");
16
+ const _constantsJs = require("./constants.js");
17
+ const e = {
18
+ movistarBlue: "#019DF4",
19
+ movistarBlue10: "#E6F5FD",
20
+ movistarBlue20: "#B3E1FB",
21
+ movistarBlue30: "#80CEF9",
22
+ movistarBlue40: "#4DBAF7",
23
+ movistarBlue55: "#008EDD",
24
+ movistarGreen: "#5CB615",
25
+ movistarGreen10: "#EFF8E8",
26
+ movistarGreen30: "#ADDA8A",
27
+ movistarGreen40: "#8DCC5B",
28
+ movistarGreen60: "#499110",
29
+ movistarGreen70: "#407F0F",
30
+ pepper: "#FF374A",
31
+ pepper10: "#FFEBED",
32
+ pepper20: "#FFC3C8",
33
+ pepper40: "#FF7380",
34
+ pepper55: "#D73241",
35
+ pepper70: "#B22634",
36
+ egg: "#F28D15",
37
+ egg10: "#FEF4E8",
38
+ egg40: "#F6AF5B",
39
+ egg80: "#6D3F09",
40
+ pink: "#E63780",
41
+ purple: "#A13EA1",
42
+ purple10: "#F6ECF6",
43
+ purple40: "#BD78BD",
44
+ purple70: "#712B71",
45
+ grey1: "#F6F6F6",
46
+ grey2: "#EEEEEE",
47
+ grey3: "#DDDDDD",
48
+ grey4: "#999999",
49
+ grey5: "#86888C",
50
+ grey6: "#313235",
51
+ white: "#FFFFFF",
52
+ movistarProminentBlue: "#0B2739",
53
+ movistarProminentBlueDark: "#081F2D",
54
+ movistarProminentBlueLight20: "#CED3D7",
55
+ movistarProminentBlueLight50: "#85939C",
56
+ movistarProminentBlueLight70: "#546874",
57
+ darkModeBlack: "#191919",
58
+ darkModeGrey: "#242424"
59
+ }, d = (o)=>{
60
+ const t = {
61
+ name: _constantsJs.MOVISTAR_SKIN,
62
+ colors: {
63
+ appBarBackground: e.white,
64
+ background: e.white,
65
+ backgroundContainer: e.white,
66
+ backgroundBrand: e.movistarBlue,
67
+ backgroundBrandSecondary: e.movistarBlue,
68
+ backgroundOverlay: (0, _colorJs.applyAlpha)(e.grey6, 0.6),
69
+ backgroundSkeleton: e.grey2,
70
+ backgroundSkeletonInverse: e.movistarBlue55,
71
+ navigationBarBackground: e.movistarBlue,
72
+ backgroundAlternative: e.grey1,
73
+ backgroundFeedbackBottom: e.movistarBlue,
74
+ skeletonWave: e.grey2,
75
+ borderLow: e.grey1,
76
+ border: e.grey3,
77
+ borderHigh: e.grey5,
78
+ borderSelected: e.movistarBlue,
79
+ buttonDangerBackground: e.pepper,
80
+ buttonDangerBackgroundSelected: e.pepper55,
81
+ buttonDangerBackgroundHover: e.pepper55,
82
+ buttonLinkBackgroundSelected: e.movistarBlue10,
83
+ buttonLinkBackgroundInverseSelected: (0, _colorJs.applyAlpha)(e.white, 0.2),
84
+ buttonPrimaryBackground: e.movistarBlue,
85
+ buttonPrimaryBackgroundInverse: e.white,
86
+ buttonPrimaryBackgroundSelected: e.movistarBlue55,
87
+ buttonPrimaryBackgroundHover: e.movistarBlue55,
88
+ buttonPrimaryBackgroundInverseSelected: e.movistarBlue30,
89
+ buttonSecondaryBorder: e.movistarBlue,
90
+ buttonSecondaryBorderSelected: e.movistarBlue55,
91
+ buttonSecondaryBorderInverse: e.white,
92
+ buttonSecondaryBorderInverseSelected: e.white,
93
+ buttonSecondaryBackgroundHover: e.movistarBlue10,
94
+ buttonSecondaryBackgroundSelected: e.movistarBlue10,
95
+ buttonSecondaryBackgroundInverseHover: (0, _colorJs.applyAlpha)(e.white, 0.2),
96
+ buttonSecondaryBackgroundInverseSelected: (0, _colorJs.applyAlpha)(e.white, 0.2),
97
+ textButtonPrimary: e.white,
98
+ textButtonPrimaryInverse: e.movistarBlue,
99
+ textButtonPrimaryInverseSelected: e.movistarBlue,
100
+ textButtonSecondary: e.movistarBlue,
101
+ textButtonSecondarySelected: e.movistarBlue55,
102
+ textButtonSecondaryInverse: e.white,
103
+ textButtonSecondaryInverseSelected: e.white,
104
+ textLink: e.movistarBlue,
105
+ textLinkInverse: e.white,
106
+ textLinkDanger: e.pepper,
107
+ textLinkSnackbar: e.movistarBlue30,
108
+ control: e.grey3,
109
+ controlActivated: e.movistarBlue,
110
+ controlError: e.pepper,
111
+ loadingBar: e.movistarBlue30,
112
+ loadingBarBackground: e.movistarBlue55,
113
+ toggleAndroidInactive: e.grey2,
114
+ toggleAndroidBackgroundActive: e.movistarBlue20,
115
+ iosControlKnob: e.white,
116
+ divider: e.grey2,
117
+ dividerInverse: e.movistarBlue55,
118
+ navigationBarDivider: e.movistarBlue,
119
+ badge: e.pepper55,
120
+ feedbackErrorBackground: e.pepper,
121
+ feedbackInfoBackground: e.grey6,
122
+ brand: e.movistarBlue,
123
+ brandHigh: e.movistarBlue55,
124
+ inverse: e.white,
125
+ neutralHigh: e.grey6,
126
+ neutralMedium: e.grey5,
127
+ neutralLow: e.grey1,
128
+ promo: e.purple,
129
+ highlight: e.pink,
130
+ textPrimary: e.grey6,
131
+ textPrimaryInverse: e.white,
132
+ textSecondary: e.grey5,
133
+ textSecondaryInverse: e.white,
134
+ error: e.pepper,
135
+ success: e.movistarGreen,
136
+ warning: e.egg,
137
+ textNavigationBarPrimary: e.white,
138
+ textNavigationBarSecondary: e.movistarBlue20,
139
+ textNavigationSearchBarHint: e.movistarBlue20,
140
+ textNavigationSearchBarText: e.white,
141
+ textAppBar: e.grey4,
142
+ textAppBarSelected: e.movistarBlue,
143
+ successLow: e.movistarGreen10,
144
+ warningLow: e.egg10,
145
+ errorLow: e.pepper10,
146
+ promoLow: e.purple10,
147
+ brandLow: e.movistarBlue10,
148
+ successHigh: e.movistarGreen70,
149
+ warningHigh: e.egg80,
150
+ errorHigh: e.pepper70,
151
+ promoHigh: e.purple70,
152
+ successHighInverse: e.movistarGreen70,
153
+ warningHighInverse: e.egg80,
154
+ errorHighInverse: e.pepper70,
155
+ promoHighInverse: e.purple70,
156
+ neutralMediumInverse: e.grey5
157
+ },
158
+ darkModeColors: {
159
+ brand: e.movistarBlue,
160
+ appBarBackground: e.darkModeGrey,
161
+ background: e.darkModeBlack,
162
+ backgroundContainer: e.darkModeGrey,
163
+ backgroundBrand: e.darkModeBlack,
164
+ backgroundBrandSecondary: e.darkModeBlack,
165
+ backgroundOverlay: (0, _colorJs.applyAlpha)(e.darkModeGrey, 0.8),
166
+ backgroundSkeleton: e.grey6,
167
+ backgroundSkeletonInverse: e.grey6,
168
+ navigationBarBackground: e.darkModeBlack,
169
+ backgroundAlternative: e.darkModeGrey,
170
+ backgroundFeedbackBottom: e.darkModeBlack,
171
+ skeletonWave: e.grey5,
172
+ borderLow: e.darkModeBlack,
173
+ border: e.darkModeGrey,
174
+ buttonLinkBackgroundSelected: (0, _colorJs.applyAlpha)(e.white, 0.05),
175
+ buttonLinkBackgroundInverseSelected: (0, _colorJs.applyAlpha)(e.white, 0.05),
176
+ buttonPrimaryBackground: e.movistarBlue,
177
+ buttonPrimaryBackgroundInverse: e.movistarBlue,
178
+ buttonPrimaryBackgroundSelected: e.movistarBlue55,
179
+ buttonPrimaryBackgroundHover: e.movistarBlue55,
180
+ buttonPrimaryBackgroundInverseSelected: e.movistarBlue55,
181
+ buttonSecondaryBorder: e.white,
182
+ buttonSecondaryBorderSelected: e.white,
183
+ buttonSecondaryBorderInverse: e.white,
184
+ buttonSecondaryBorderInverseSelected: e.white,
185
+ buttonSecondaryBackgroundHover: (0, _colorJs.applyAlpha)(e.white, 0.15),
186
+ buttonSecondaryBackgroundSelected: (0, _colorJs.applyAlpha)(e.white, 0.15),
187
+ buttonSecondaryBackgroundInverseHover: (0, _colorJs.applyAlpha)(e.white, 0.15),
188
+ buttonSecondaryBackgroundInverseSelected: (0, _colorJs.applyAlpha)(e.white, 0.15),
189
+ textButtonPrimary: e.grey2,
190
+ textButtonPrimaryInverse: e.grey2,
191
+ textButtonPrimaryInverseSelected: e.grey2,
192
+ textButtonSecondary: e.grey2,
193
+ textButtonSecondarySelected: e.grey2,
194
+ textButtonSecondaryInverse: e.grey2,
195
+ textButtonSecondaryInverseSelected: e.grey2,
196
+ textLink: e.movistarBlue,
197
+ textLinkInverse: e.movistarBlue,
198
+ control: e.grey6,
199
+ controlActivated: e.movistarBlue,
200
+ loadingBar: e.movistarBlue,
201
+ loadingBarBackground: (0, _colorJs.applyAlpha)(e.white, 0.05),
202
+ toggleAndroidInactive: e.grey4,
203
+ toggleAndroidBackgroundActive: e.movistarBlue20,
204
+ iosControlKnob: e.grey2,
205
+ divider: (0, _colorJs.applyAlpha)(e.white, 0.05),
206
+ dividerInverse: (0, _colorJs.applyAlpha)(e.white, 0.05),
207
+ navigationBarDivider: e.darkModeBlack,
208
+ brandHigh: e.grey6,
209
+ inverse: e.grey2,
210
+ neutralHigh: e.grey2,
211
+ neutralMedium: e.grey5,
212
+ neutralLow: e.grey6,
213
+ textPrimary: e.grey2,
214
+ textPrimaryInverse: e.grey2,
215
+ textSecondary: e.grey4,
216
+ textSecondaryInverse: e.grey4,
217
+ textNavigationBarPrimary: e.grey2,
218
+ textNavigationBarSecondary: e.grey4,
219
+ textNavigationSearchBarHint: e.grey4,
220
+ textNavigationSearchBarText: e.grey2,
221
+ textAppBar: e.grey5,
222
+ textAppBarSelected: e.grey2,
223
+ successLow: e.grey6,
224
+ warningLow: e.grey6,
225
+ errorLow: e.grey6,
226
+ promoLow: e.grey6,
227
+ brandLow: e.grey6,
228
+ successHigh: e.movistarGreen40,
229
+ warningHigh: e.egg40,
230
+ errorHigh: e.pepper40,
231
+ promoHigh: e.purple40,
232
+ successHighInverse: e.movistarGreen70,
233
+ warningHighInverse: e.egg80,
234
+ errorHighInverse: e.pepper70,
235
+ promoHighInverse: e.purple70,
236
+ neutralMediumInverse: e.grey5
237
+ },
238
+ textPresets: {
239
+ text5: {
240
+ weight: "bold"
241
+ },
242
+ text6: {
243
+ weight: "bold"
244
+ },
245
+ text7: {
246
+ weight: "bold"
247
+ },
248
+ text8: {
249
+ weight: "bold"
250
+ },
251
+ text9: {
252
+ weight: "bold"
253
+ },
254
+ text10: {
255
+ weight: "bold"
256
+ }
257
+ }
258
+ };
259
+ return o === "prominent" && (t.colors.brand = e.movistarProminentBlue, t.colors.brandHigh = e.movistarProminentBlueDark, t.colors.backgroundBrand = e.movistarProminentBlue, t.colors.navigationBarBackground = e.movistarProminentBlue, t.colors.backgroundFeedbackBottom = e.movistarProminentBlue, t.colors.controlActivated = e.movistarProminentBlue, t.colors.dividerInverse = e.movistarProminentBlueDark), t;
260
+ };
@@ -6,6 +6,7 @@ export declare const palette: {
6
6
  readonly movistarBlue30: "#80CEF9";
7
7
  readonly movistarBlue40: "#4DBAF7";
8
8
  readonly movistarBlue55: "#008EDD";
9
+ readonly movistarBlueDark: "#0B2739";
9
10
  readonly movistarGreen: "#5CB615";
10
11
  readonly movistarGreen10: "#EFF8E8";
11
12
  readonly movistarGreen30: "#ADDA8A";
@@ -39,7 +40,12 @@ export declare const palette: {
39
40
  readonly movistarProminentBlueLight20: "#CED3D7";
40
41
  readonly movistarProminentBlueLight50: "#85939C";
41
42
  readonly movistarProminentBlueLight70: "#546874";
42
- readonly darkModeBlack: "#191919";
43
- readonly darkModeGrey: "#242424";
43
+ readonly darkModeBlack: "#061824";
44
+ readonly darkModeGrey: "#092130";
45
+ readonly darkModeGrey2: "#EAEBEE";
46
+ readonly darkModeGrey3: "#CED4D7";
47
+ readonly darkModeGrey4: "#85939C";
48
+ readonly darkModeGrey5: "#6D7D88";
49
+ readonly darkModeGrey6: "#3C5261";
44
50
  };
45
51
  export declare const getMovistarSkin: GetKnownSkin;
@@ -21,6 +21,7 @@ const e = {
21
21
  movistarBlue30: "#80CEF9",
22
22
  movistarBlue40: "#4DBAF7",
23
23
  movistarBlue55: "#008EDD",
24
+ movistarBlueDark: "#0B2739",
24
25
  movistarGreen: "#5CB615",
25
26
  movistarGreen10: "#EFF8E8",
26
27
  movistarGreen30: "#ADDA8A",
@@ -54,20 +55,24 @@ const e = {
54
55
  movistarProminentBlueLight20: "#CED3D7",
55
56
  movistarProminentBlueLight50: "#85939C",
56
57
  movistarProminentBlueLight70: "#546874",
57
- darkModeBlack: "#191919",
58
- darkModeGrey: "#242424"
59
- }, d = (o)=>{
60
- const t = {
58
+ darkModeBlack: "#061824",
59
+ darkModeGrey: "#092130",
60
+ darkModeGrey2: "#EAEBEE",
61
+ darkModeGrey3: "#CED4D7",
62
+ darkModeGrey4: "#85939C",
63
+ darkModeGrey5: "#6D7D88",
64
+ darkModeGrey6: "#3C5261"
65
+ }, d = ()=>({
61
66
  name: _constantsJs.MOVISTAR_SKIN,
62
67
  colors: {
63
68
  appBarBackground: e.white,
64
69
  background: e.white,
65
70
  backgroundContainer: e.white,
66
71
  backgroundBrand: e.movistarBlue,
67
- backgroundBrandSecondary: e.movistarBlue,
68
- backgroundOverlay: (0, _colorJs.applyAlpha)(e.grey6, 0.6),
72
+ backgroundBrandSecondary: e.movistarBlueDark,
73
+ backgroundOverlay: (0, _colorJs.applyAlpha)(e.movistarBlueDark, 0.6),
69
74
  backgroundSkeleton: e.grey2,
70
- backgroundSkeletonInverse: e.movistarBlue55,
75
+ backgroundSkeletonInverse: (0, _colorJs.applyAlpha)(e.white, 0.2),
71
76
  navigationBarBackground: e.movistarBlue,
72
77
  backgroundAlternative: e.grey1,
73
78
  backgroundFeedbackBottom: e.movistarBlue,
@@ -118,19 +123,19 @@ const e = {
118
123
  navigationBarDivider: e.movistarBlue,
119
124
  badge: e.pepper55,
120
125
  feedbackErrorBackground: e.pepper,
121
- feedbackInfoBackground: e.grey6,
126
+ feedbackInfoBackground: e.movistarBlueDark,
122
127
  brand: e.movistarBlue,
123
128
  brandHigh: e.movistarBlue55,
124
129
  inverse: e.white,
125
- neutralHigh: e.grey6,
130
+ neutralHigh: e.movistarBlueDark,
126
131
  neutralMedium: e.grey5,
127
132
  neutralLow: e.grey1,
128
133
  promo: e.purple,
129
134
  highlight: e.pink,
130
- textPrimary: e.grey6,
135
+ textPrimary: e.movistarBlueDark,
131
136
  textPrimaryInverse: e.white,
132
137
  textSecondary: e.grey5,
133
- textSecondaryInverse: e.white,
138
+ textSecondaryInverse: e.movistarBlue10,
134
139
  error: e.pepper,
135
140
  success: e.movistarGreen,
136
141
  warning: e.egg,
@@ -156,19 +161,19 @@ const e = {
156
161
  neutralMediumInverse: e.grey5
157
162
  },
158
163
  darkModeColors: {
159
- brand: e.movistarBlue,
160
164
  appBarBackground: e.darkModeGrey,
161
165
  background: e.darkModeBlack,
162
166
  backgroundContainer: e.darkModeGrey,
163
167
  backgroundBrand: e.darkModeBlack,
164
168
  backgroundBrandSecondary: e.darkModeBlack,
165
169
  backgroundOverlay: (0, _colorJs.applyAlpha)(e.darkModeGrey, 0.8),
166
- backgroundSkeleton: e.grey6,
167
- backgroundSkeletonInverse: e.grey6,
170
+ backgroundSkeleton: e.darkModeGrey6,
171
+ backgroundSkeletonInverse: e.darkModeGrey6,
168
172
  navigationBarBackground: e.darkModeBlack,
169
173
  backgroundAlternative: e.darkModeGrey,
170
174
  backgroundFeedbackBottom: e.darkModeBlack,
171
- skeletonWave: e.grey5,
175
+ skeletonWave: e.darkModeGrey5,
176
+ borderHigh: e.darkModeGrey4,
172
177
  borderLow: e.darkModeBlack,
173
178
  border: e.darkModeGrey,
174
179
  buttonLinkBackgroundSelected: (0, _colorJs.applyAlpha)(e.white, 0.05),
@@ -186,40 +191,40 @@ const e = {
186
191
  buttonSecondaryBackgroundSelected: (0, _colorJs.applyAlpha)(e.white, 0.15),
187
192
  buttonSecondaryBackgroundInverseHover: (0, _colorJs.applyAlpha)(e.white, 0.15),
188
193
  buttonSecondaryBackgroundInverseSelected: (0, _colorJs.applyAlpha)(e.white, 0.15),
189
- textButtonPrimary: e.grey2,
190
- textButtonPrimaryInverse: e.grey2,
191
- textButtonPrimaryInverseSelected: e.grey2,
192
- textButtonSecondary: e.grey2,
193
- textButtonSecondarySelected: e.grey2,
194
- textButtonSecondaryInverse: e.grey2,
195
- textButtonSecondaryInverseSelected: e.grey2,
194
+ textButtonPrimary: e.darkModeGrey2,
195
+ textButtonPrimaryInverse: e.darkModeGrey2,
196
+ textButtonPrimaryInverseSelected: e.darkModeGrey2,
197
+ textButtonSecondary: e.darkModeGrey2,
198
+ textButtonSecondarySelected: e.darkModeGrey2,
199
+ textButtonSecondaryInverse: e.darkModeGrey2,
200
+ textButtonSecondaryInverseSelected: e.darkModeGrey2,
196
201
  textLink: e.movistarBlue,
197
202
  textLinkInverse: e.movistarBlue,
198
- control: e.grey6,
203
+ control: e.darkModeGrey6,
199
204
  controlActivated: e.movistarBlue,
200
205
  loadingBar: e.movistarBlue,
201
206
  loadingBarBackground: (0, _colorJs.applyAlpha)(e.white, 0.05),
202
- toggleAndroidInactive: e.grey4,
207
+ toggleAndroidInactive: e.darkModeGrey4,
203
208
  toggleAndroidBackgroundActive: e.movistarBlue20,
204
- iosControlKnob: e.grey2,
209
+ iosControlKnob: e.darkModeGrey2,
205
210
  divider: (0, _colorJs.applyAlpha)(e.white, 0.05),
206
211
  dividerInverse: (0, _colorJs.applyAlpha)(e.white, 0.05),
207
212
  navigationBarDivider: e.darkModeBlack,
208
- brandHigh: e.grey6,
209
- inverse: e.grey2,
210
- neutralHigh: e.grey2,
211
- neutralMedium: e.grey5,
212
- neutralLow: e.grey6,
213
- textPrimary: e.grey2,
214
- textPrimaryInverse: e.grey2,
215
- textSecondary: e.grey4,
216
- textSecondaryInverse: e.grey4,
217
- textNavigationBarPrimary: e.grey2,
218
- textNavigationBarSecondary: e.grey4,
219
- textNavigationSearchBarHint: e.grey4,
220
- textNavigationSearchBarText: e.grey2,
221
- textAppBar: e.grey5,
222
- textAppBarSelected: e.grey2,
213
+ brandHigh: e.darkModeGrey6,
214
+ inverse: e.darkModeGrey2,
215
+ neutralHigh: e.darkModeGrey2,
216
+ neutralMedium: e.darkModeGrey5,
217
+ neutralLow: e.darkModeGrey6,
218
+ textPrimary: e.darkModeGrey2,
219
+ textPrimaryInverse: e.darkModeGrey2,
220
+ textSecondary: e.darkModeGrey4,
221
+ textSecondaryInverse: e.darkModeGrey4,
222
+ textNavigationBarPrimary: e.darkModeGrey2,
223
+ textNavigationBarSecondary: e.darkModeGrey4,
224
+ textNavigationSearchBarHint: e.darkModeGrey4,
225
+ textNavigationSearchBarText: e.darkModeGrey2,
226
+ textAppBar: e.darkModeGrey5,
227
+ textAppBarSelected: e.darkModeGrey2,
223
228
  successLow: e.grey6,
224
229
  warningLow: e.grey6,
225
230
  errorLow: e.grey6,
@@ -253,8 +258,9 @@ const e = {
253
258
  },
254
259
  text10: {
255
260
  weight: "bold"
261
+ },
262
+ cardTitle: {
263
+ weight: "bold"
256
264
  }
257
265
  }
258
- };
259
- return o === "prominent" && (t.colors.brand = e.movistarProminentBlue, t.colors.brandHigh = e.movistarProminentBlueDark, t.colors.backgroundBrand = e.movistarProminentBlue, t.colors.navigationBarBackground = e.movistarProminentBlue, t.colors.backgroundFeedbackBottom = e.movistarProminentBlue, t.colors.controlActivated = e.movistarProminentBlue, t.colors.dividerInverse = e.movistarProminentBlueDark), t;
260
- };
266
+ });
@@ -137,7 +137,7 @@ const e = {
137
137
  textPrimary: e.grey6,
138
138
  textPrimaryInverse: e.white,
139
139
  textSecondary: e.grey5,
140
- textSecondaryInverse: e.white,
140
+ textSecondaryInverse: e.o2SkyBlueLight20,
141
141
  error: e.pepper,
142
142
  success: e.o2Green,
143
143
  warning: e.orange,
package/dist/skins/o2.js CHANGED
@@ -127,7 +127,7 @@ const e = {
127
127
  textPrimary: e.grey6,
128
128
  textPrimaryInverse: e.white,
129
129
  textSecondary: e.grey5,
130
- textSecondaryInverse: e.white,
130
+ textSecondaryInverse: e.o2BluePrimary15,
131
131
  error: e.pepper,
132
132
  success: e.o2Green,
133
133
  warning: e.o2Orange,
@@ -123,7 +123,7 @@ const e = {
123
123
  textPrimary: e.grey9,
124
124
  textPrimaryInverse: e.white,
125
125
  textSecondary: e.grey5,
126
- textSecondaryInverse: e.white,
126
+ textSecondaryInverse: e.telefonicaBlue10,
127
127
  error: e.coral,
128
128
  success: e.turquoise,
129
129
  warning: e.ambar,
@@ -3,7 +3,7 @@ export type KnownSkinName = 'Movistar' | 'O2' | 'O2-classic' | 'Vivo' | 'Telefon
3
3
  export type SkinName = KnownSkinName | string;
4
4
  export type GetKnownSkin = (variant?: SkinVariant) => KnownSkin;
5
5
  export type FontWeight = 'light' | 'regular' | 'medium' | 'bold';
6
- type TextPresetName = 'text5' | 'text6' | 'text7' | 'text8' | 'text9' | 'text10';
6
+ type TextPresetName = 'text5' | 'text6' | 'text7' | 'text8' | 'text9' | 'text10' | 'cardTitle';
7
7
  export type TextPresetsConfig = {
8
8
  [preset in TextPresetName]: {
9
9
  weight: FontWeight;
@@ -59,7 +59,7 @@ function _interopRequireWildcard(obj, nodeInterop) {
59
59
  }
60
60
  return newObj;
61
61
  }
62
- const C = (r, n)=>{
62
+ const C = (r, o)=>{
63
63
  switch(r){
64
64
  case _constantsJs.BLAU_SKIN:
65
65
  return (0, _blauJs.getBlauSkin)();
@@ -72,7 +72,7 @@ const C = (r, n)=>{
72
72
  case _constantsJs.O2_CLASSIC_SKIN:
73
73
  return (0, _o2ClassicJs.getO2ClassicSkin)();
74
74
  case _constantsJs.MOVISTAR_SKIN:
75
- return (0, _movistarJs.getMovistarSkin)(n);
75
+ return (0, _movistarJs.getMovistarSkin)();
76
76
  default:
77
77
  throw Error("Unknown skin name: " + r);
78
78
  }
@@ -121,7 +121,7 @@ const e = {
121
121
  textPrimary: e.grey6,
122
122
  textPrimaryInverse: e.white,
123
123
  textSecondary: e.grey5,
124
- textSecondaryInverse: e.white,
124
+ textSecondaryInverse: e.vivoPurpleLight20,
125
125
  error: e.pepper,
126
126
  success: e.vivoGreen,
127
127
  warning: e.orange,
@@ -4,12 +4,14 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "default", {
6
6
  enumerable: true,
7
- get: ()=>q
7
+ get: ()=>z
8
8
  });
9
9
  const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
10
10
  const _formContextJs = require("./form-context.js");
11
11
  const _textFieldBaseJs = require("./text-field-base.js");
12
12
  const _commonJs = require("./utils/common.js");
13
+ const _domJs = require("./utils/dom.js");
14
+ const _hooksJs = require("./hooks.js");
13
15
  const _jsxRuntimeJs = require("./_virtual/jsx-runtime.js");
14
16
  function _getRequireWildcardCache(nodeInterop) {
15
17
  if (typeof WeakMap !== "function") return null;
@@ -129,8 +131,17 @@ function _objectWithoutPropertiesLoose(source, excluded) {
129
131
  }
130
132
  return target;
131
133
  }
132
- const q = /*#__PURE__*/ _react.forwardRef((_param, v)=>{
133
- var { disabled: n , error: s , helperText: f , name: o , optional: m , validate: a , onChangeValue: p , onChange: R , value: d , defaultValue: x , onBlur: r , onFocus: i , onPress: T } = _param, u = _objectWithoutProperties(_param, [
134
+ const F = (c, t, r, i)=>{
135
+ (0, _hooksJs.useIsomorphicLayoutEffect)(()=>{
136
+ c && t && r && t.length > r && i && i((0, _domJs.createChangeEvent)(c, t.slice(0, r)));
137
+ }, [
138
+ i,
139
+ t,
140
+ r,
141
+ c
142
+ ]);
143
+ }, z = /*#__PURE__*/ _react.forwardRef((_param, g)=>{
144
+ var { disabled: c , error: t , helperText: r , name: i , optional: m , validate: a , onChangeValue: p , onChange: R , value: d , defaultValue: T , onBlur: u , onFocus: l , onPress: x } = _param, s = _objectWithoutProperties(_param, [
134
145
  "disabled",
135
146
  "error",
136
147
  "helperText",
@@ -145,33 +156,33 @@ const q = /*#__PURE__*/ _react.forwardRef((_param, v)=>{
145
156
  "onFocus",
146
157
  "onPress"
147
158
  ]);
148
- const e = _react.useRef(null), g = (t)=>t, b = (t)=>{
149
- u.multiline && e.current && (e.current.scrollTop = 0), r == null || r(t);
150
- }, h = (t)=>{
151
- u.multiline && setTimeout(()=>{
159
+ const e = _react.useRef(null), v = (o)=>o, h = (o)=>{
160
+ s.multiline && e.current && (e.current.scrollTop = 0), u == null || u(o);
161
+ }, y = (o)=>{
162
+ s.multiline && setTimeout(()=>{
152
163
  if (e.current) {
153
- const j = e.current.value;
154
- e.current.value = "", e.current.value = j, e.current.scrollTop = e.current.scrollHeight;
164
+ const E = e.current.value;
165
+ e.current.value = "", e.current.value = E, e.current.scrollTop = e.current.scrollHeight;
155
166
  }
156
- }, 0), i == null || i(t);
157
- }, l = (0, _formContextJs.useFieldProps)({
158
- name: o,
167
+ }, 0), l == null || l(o);
168
+ }, f = (0, _formContextJs.useFieldProps)({
169
+ name: i,
159
170
  value: d,
160
- defaultValue: x,
161
- processValue: g,
162
- helperText: f,
171
+ defaultValue: T,
172
+ processValue: v,
173
+ helperText: r,
163
174
  optional: m,
164
- error: s,
165
- disabled: n,
166
- onBlur: b,
175
+ error: t,
176
+ disabled: c,
177
+ onBlur: h,
167
178
  validate: a,
168
179
  onChange: R,
169
180
  onChangeValue: p
170
181
  });
171
- return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textFieldBaseJs.TextFieldBaseAutosuggest, _objectSpreadProps(_objectSpread({}, u, l), {
172
- onClick: T,
173
- inputRef: (0, _commonJs.combineRefs)(e, l.inputRef, v),
174
- onFocus: h,
182
+ return F(e.current, f.value, s.maxLength, f.onChange), /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textFieldBaseJs.TextFieldBaseAutosuggest, _objectSpreadProps(_objectSpread({}, s, f), {
183
+ onClick: x,
184
+ inputRef: (0, _commonJs.combineRefs)(e, f.inputRef, g),
185
+ onFocus: y,
175
186
  type: "text"
176
187
  }));
177
188
  });