@proximus/lavender-styling-native 0.1.0-alpha.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.
- package/CHANGELOG.md +13 -0
- package/dist/AssetContainer.d.ts +15 -0
- package/dist/AssetContainer.d.ts.map +1 -0
- package/dist/ProximusTheme.d.ts +3 -0
- package/dist/ProximusTheme.d.ts.map +1 -0
- package/dist/ScarletTheme.d.ts +3 -0
- package/dist/ScarletTheme.d.ts.map +1 -0
- package/dist/ThemeContext.d.ts +6 -0
- package/dist/ThemeContext.d.ts.map +1 -0
- package/dist/ThemeProvider.d.ts +9 -0
- package/dist/ThemeProvider.d.ts.map +1 -0
- package/dist/breakpoints.d.ts +56 -0
- package/dist/breakpoints.d.ts.map +1 -0
- package/dist/colors.d.ts +514 -0
- package/dist/colors.d.ts.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/sizes.d.ts +69 -0
- package/dist/sizes.d.ts.map +1 -0
- package/dist/themes.d.ts +19 -0
- package/dist/themes.d.ts.map +1 -0
- package/package.json +31 -0
- package/src/AssetContainer.tsx +32 -0
- package/src/ProximusTheme.ts +9 -0
- package/src/ScarletTheme.ts +11 -0
- package/src/ThemeContext.ts +18 -0
- package/src/ThemeProvider.tsx +35 -0
- package/src/__tests__/breakpoints.spec.ts +168 -0
- package/src/breakpoints.ts +96 -0
- package/src/colors.ts +289 -0
- package/src/index.ts +7 -0
- package/src/sizes.ts +78 -0
- package/src/themes.ts +21 -0
- package/tsconfig.json +8 -0
package/src/colors.ts
ADDED
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
export const Colors = {
|
|
2
|
+
aquaBlue: 'rgb(10, 216, 220)',
|
|
3
|
+
barbiePink: 'rgb(255, 65, 140)',
|
|
4
|
+
black: 'rgb(51, 51, 51)',
|
|
5
|
+
blackTwo: 'rgb(0, 0, 0)',
|
|
6
|
+
blackTwo80: 'rgba(0, 0, 0, 0.8)',
|
|
7
|
+
blueberry: 'rgb(92, 45, 145)',
|
|
8
|
+
purple: 'rgb(92, 45, 145)',
|
|
9
|
+
blueberryLight: 'rgb(141, 108, 178)',
|
|
10
|
+
blueberryTransparent: 'rgba(92, 45, 145, 0.3)',
|
|
11
|
+
brightSkyBlue: 'rgb(0, 188, 238)',
|
|
12
|
+
cerulean: 'rgb(0, 115, 207)',
|
|
13
|
+
cloudyBlue: 'rgb(193, 193, 195)',
|
|
14
|
+
cobalt: 'rgb(62, 33, 128)',
|
|
15
|
+
darkPurple: 'rgb(30, 6, 59)',
|
|
16
|
+
frogGreen: 'rgb(108, 208, 9)',
|
|
17
|
+
grey: 'rgb(112, 112, 112)', // named 707070 on zeplin's styleguide
|
|
18
|
+
indigo: 'rgb(75, 12, 146)',
|
|
19
|
+
marigold: 'rgb(255, 202, 0)',
|
|
20
|
+
nastyGreen: 'rgb(116, 187, 57)',
|
|
21
|
+
freshGreen: 'rgb(125,210,81)',
|
|
22
|
+
pumpkinOrange: 'rgb(252, 127, 4)',
|
|
23
|
+
red: 'rgb(237, 0, 0)',
|
|
24
|
+
redTwo: 'rgb(255, 0, 0)',
|
|
25
|
+
redPink: 'rgb(238, 46, 93)',
|
|
26
|
+
sandy: 'rgb(234, 200, 131)',
|
|
27
|
+
topaz: 'rgb(21, 195, 211)',
|
|
28
|
+
unnamedBlue: 'rgb(70, 70, 246)', // Used in zeplin but absent from styleguide
|
|
29
|
+
unnamedGreen: 'rgb(125, 210, 81)', // Used in zeplin but absent from styleguide
|
|
30
|
+
unnamedOrange: 'rgb(255, 172, 45)', // Used in zeplin but absent from styleguide
|
|
31
|
+
veryLightPink: 'rgb(242, 242, 242)',
|
|
32
|
+
veryLightPinkTwo: 'rgb(221, 221, 221)',
|
|
33
|
+
warmBlue: 'rgb(88, 86, 214)',
|
|
34
|
+
white: 'rgb(246, 246, 246)',
|
|
35
|
+
whitePure: 'rgb(255, 255, 255)', // Also called white in zeplin
|
|
36
|
+
whitePureTransparent: 'rgba(255, 255, 255, 0.5)',
|
|
37
|
+
unnamedGrey: 'rgb(237, 237, 237)', // Used in zeplin but absent from styleguide
|
|
38
|
+
greyLight: 'rgb(233, 233, 233)', // unnamed in zeplin
|
|
39
|
+
greyLightTwo: 'rgb(146, 146, 146)', // unnamed in zeplin
|
|
40
|
+
whiteThree: 'rgb(245, 245, 245)',
|
|
41
|
+
green: 'rgb(0, 128, 0)', // unnamed in zeplin
|
|
42
|
+
blackThree: 'rgb(58,58,58)',
|
|
43
|
+
purpleLight: 'rgb(205,191,221)', // unnamed in zeplin
|
|
44
|
+
greyTwo: 'rgb(157, 157, 157)', // unnamed in zeplin
|
|
45
|
+
// New Theme colors
|
|
46
|
+
brand: {
|
|
47
|
+
purple: 'rgb(92, 45, 145)',
|
|
48
|
+
purple70: 'rgb(141, 108, 145)',
|
|
49
|
+
red: 'rgba(238, 46, 93, 1)',
|
|
50
|
+
pink: 'rgba(255, 65, 140, 1)',
|
|
51
|
+
orange: 'rgba(243, 146, 0, 1)',
|
|
52
|
+
yellow: 'rgba(255, 202, 0, 1)',
|
|
53
|
+
green: 'rgba(129, 199, 71, 1)',
|
|
54
|
+
turquoise: 'rgba(102, 210, 204, 1)',
|
|
55
|
+
blue: 'rgba(0, 188, 238, 1)',
|
|
56
|
+
darkBlue: 'rgba(0, 115, 207, 1)',
|
|
57
|
+
scarletRed: '#E61F13',
|
|
58
|
+
},
|
|
59
|
+
// Shades of grey
|
|
60
|
+
shadesOfGrey: {
|
|
61
|
+
grey1: 'rgba(249, 249, 249, 1)',
|
|
62
|
+
grey2: 'rgba(243, 243, 243, 1)',
|
|
63
|
+
grey3: 'rgba(236, 236, 237, 1)',
|
|
64
|
+
grey4: 'rgba(230, 230, 231, 1)',
|
|
65
|
+
grey5: 'rgba(224, 224, 225, 1)',
|
|
66
|
+
grey6: 'rgba(218, 218, 219, 1)',
|
|
67
|
+
grey7: 'rgba(211, 211, 213, 1)',
|
|
68
|
+
grey8: 'rgba(205, 205, 207, 1)',
|
|
69
|
+
grey9: 'rgba(199, 199, 201, 1)',
|
|
70
|
+
grey: 'rgba(193, 193, 195, 1)',
|
|
71
|
+
black: 'rgba(10, 10, 10, 1)',
|
|
72
|
+
black4: 'rgba(125, 125, 125, 1)',
|
|
73
|
+
black5: 'rgba(99, 99, 99, 1)',
|
|
74
|
+
black6: 'rgba(85, 85, 85, 1)',
|
|
75
|
+
black7: 'rgba(70, 70, 70, 1)',
|
|
76
|
+
black8: 'rgba(58, 58, 58, 1)',
|
|
77
|
+
black9: 'rgba(37, 37, 37, 1)',
|
|
78
|
+
whiteOpacity8: 'rgba(255, 255, 255, 0.08)',
|
|
79
|
+
whiteOpacity16: 'rgba(255, 255, 255, 0.16)',
|
|
80
|
+
blackOpacity6: 'rgba(10, 10, 10, 0.6)',
|
|
81
|
+
black9Opacity6: 'rgba(37, 37, 37, 0.6)',
|
|
82
|
+
white: 'rgba(255, 255, 255, 1)',
|
|
83
|
+
},
|
|
84
|
+
status: {
|
|
85
|
+
validGreenPos: 'rgba(0, 128, 0, 1)', // TODO: To be deleted
|
|
86
|
+
validGreenNeg: 'rgba(41, 219, 41, 1)',
|
|
87
|
+
warningOrangePos: 'rgba(255, 137, 0, 1)', // TODO: To be deleted
|
|
88
|
+
warningRedPos: 'rgba(179, 0, 0, 1)', // TODO: To be deleted
|
|
89
|
+
success: 'rgb(0,128,0)',
|
|
90
|
+
order: 'rgba(42, 209, 42, 1)',
|
|
91
|
+
warning: 'rgba(255, 137, 0, 1)',
|
|
92
|
+
warningText: 'rgba(170, 93, 0, 1)',
|
|
93
|
+
error: 'rgba(179, 0, 0, 1)',
|
|
94
|
+
toastError: 'rgba(242, 38, 19, 1)',
|
|
95
|
+
scarletOrderColor: '#008000',
|
|
96
|
+
},
|
|
97
|
+
// v7 colors
|
|
98
|
+
v7: {
|
|
99
|
+
promo: 'rgba(222, 0, 55, 1)',
|
|
100
|
+
epicPromo: 'rgba(255, 67, 113, 1)',
|
|
101
|
+
pink: 'rgba(255, 67, 113, 1)',
|
|
102
|
+
status: {
|
|
103
|
+
info: 'rgba(92, 45, 145, 1)',
|
|
104
|
+
success: '#008000',
|
|
105
|
+
epicSuccess: '#2AD12A',
|
|
106
|
+
error: '#B30000',
|
|
107
|
+
epicError: '#F22613',
|
|
108
|
+
warning: '#A55D00',
|
|
109
|
+
epicWarning: '#F5AB35',
|
|
110
|
+
},
|
|
111
|
+
shadesOfPurple: {
|
|
112
|
+
purple1: 'rgba(92, 45, 145, 0.16)',
|
|
113
|
+
purple2: 'rgba(92, 45, 145, 1)',
|
|
114
|
+
purple3: 'rgba(125, 87, 167, 1)',
|
|
115
|
+
},
|
|
116
|
+
shadesOfRed: {
|
|
117
|
+
red1: '#E61F13',
|
|
118
|
+
red2: '#EC574E',
|
|
119
|
+
red3: 'rgba(230, 31, 19, 0.16)',
|
|
120
|
+
},
|
|
121
|
+
shadesOfGrey: {
|
|
122
|
+
black0Opacity4: 'rgba(0, 0, 0, 0.04)',
|
|
123
|
+
black0Opacity12: 'rgba(0, 0, 0, 0.12)',
|
|
124
|
+
blackOpacity2: 'rgba(0, 0, 0, 0.2)',
|
|
125
|
+
blackOpacity44: 'rgba(0, 0, 0, 0.44)',
|
|
126
|
+
black0Opacity8: 'rgba(0,0,0,0.08)',
|
|
127
|
+
black0Opacity56: 'rgba(0, 0, 0, 0.56)',
|
|
128
|
+
black0Opacity16: 'rgba(0, 0, 0, 0.16)',
|
|
129
|
+
whiteOpacity8: 'rgba(255, 255, 255, 0.08)',
|
|
130
|
+
whiteOpacity12: 'rgba(255, 255, 255, 0.12)',
|
|
131
|
+
whiteOpacity16: 'rgba(255, 255, 255, 0.16)',
|
|
132
|
+
whiteOpacity4: 'rgba(255, 255, 255, 0.4)',
|
|
133
|
+
whiteOpacity52: 'rgba(255, 255, 255, 0.52)',
|
|
134
|
+
whiteOpacity64: 'rgba(255,255,255,0.64)',
|
|
135
|
+
whiteOpacity24: 'rgba(255, 255, 255, 0.24)',
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
// v8 is already used for unknown reason... so we use v8_1
|
|
139
|
+
v8_1: {
|
|
140
|
+
shadesOfPurple: {
|
|
141
|
+
purple: '#5C2D91',
|
|
142
|
+
purpleLight: '#DED5E9',
|
|
143
|
+
},
|
|
144
|
+
shadesOfGrey: {
|
|
145
|
+
dark4: 'rgba(0, 0, 0, 0.04)',
|
|
146
|
+
dark40: 'rgba(0, 0, 0, 0.4)',
|
|
147
|
+
dark120: 'rgba(0, 0, 0, 0.12)',
|
|
148
|
+
dark160: 'rgba(0, 0, 0, 0.16)',
|
|
149
|
+
dark280: 'rgba(0, 0, 0, 0.28)',
|
|
150
|
+
dark320: 'rgba(0, 0, 0, 0.32)',
|
|
151
|
+
},
|
|
152
|
+
text: {
|
|
153
|
+
black: '#252525',
|
|
154
|
+
details: '#707070',
|
|
155
|
+
},
|
|
156
|
+
success: '#008000',
|
|
157
|
+
strokeBlack: '#707070',
|
|
158
|
+
white: '#FFFFFF',
|
|
159
|
+
black: '#252525',
|
|
160
|
+
},
|
|
161
|
+
v8: {
|
|
162
|
+
shadesOfPurple: {
|
|
163
|
+
purple: '#5C2D91',
|
|
164
|
+
purple1: '#EEEAF4',
|
|
165
|
+
purple2: '#DED5E9',
|
|
166
|
+
purple3: '#CEC0DE',
|
|
167
|
+
purple4: '#BEABD3',
|
|
168
|
+
purple5: '#AD96C8',
|
|
169
|
+
purple6: '#9D81BD',
|
|
170
|
+
purple7: '#8D6CB2',
|
|
171
|
+
purple8: '#7D57A7',
|
|
172
|
+
purple9: '#6C429C',
|
|
173
|
+
},
|
|
174
|
+
shadesOfGrey: {
|
|
175
|
+
black: '#000000',
|
|
176
|
+
black6: '#7D7D7D',
|
|
177
|
+
black7: '#636363',
|
|
178
|
+
black8: '#464646',
|
|
179
|
+
black9: '#252525',
|
|
180
|
+
grey: '#C1C1C3',
|
|
181
|
+
grey1: '#F9F9F9',
|
|
182
|
+
grey2: '#F3F3F3',
|
|
183
|
+
grey4: '#E6E6E7',
|
|
184
|
+
grey6: '#DADADB',
|
|
185
|
+
},
|
|
186
|
+
res: {
|
|
187
|
+
red: '#EE2E5D',
|
|
188
|
+
magenta: '#FF418C',
|
|
189
|
+
orange: '#F39200',
|
|
190
|
+
blue: '#00BCEE',
|
|
191
|
+
turquoise: '#66D2CC',
|
|
192
|
+
green: '#81C747',
|
|
193
|
+
red2: '#FCD5DF',
|
|
194
|
+
red1: '#FDEAEE',
|
|
195
|
+
green1: '#F2F9EC',
|
|
196
|
+
green2: '#E6F4DA',
|
|
197
|
+
green4: '#CDE9B5',
|
|
198
|
+
},
|
|
199
|
+
ebu: {
|
|
200
|
+
blue: '#00BCEE',
|
|
201
|
+
blue1: '#E5F8FD',
|
|
202
|
+
blue2: '#CCF2FC',
|
|
203
|
+
blue4: '#99E4F8',
|
|
204
|
+
turquoise: '#66D2CC',
|
|
205
|
+
turquoise1: '#EFFAFA',
|
|
206
|
+
turquoise2: '#E0F6F5',
|
|
207
|
+
turquoise4: '#C2EDEB',
|
|
208
|
+
},
|
|
209
|
+
promo: {
|
|
210
|
+
backgroundMypx: '#DE2A56',
|
|
211
|
+
textMypx: '#DE0037',
|
|
212
|
+
backgroundEpic: '#DE2A56',
|
|
213
|
+
textEpic: '#FF4371',
|
|
214
|
+
},
|
|
215
|
+
status: {
|
|
216
|
+
success: '#008000',
|
|
217
|
+
epicSuccess: '#2AD12A',
|
|
218
|
+
error: '#B30000',
|
|
219
|
+
epicError: '#F22613',
|
|
220
|
+
warning: '#F58221',
|
|
221
|
+
epicWarning: '#F5AB35',
|
|
222
|
+
warningText: '#A55D00',
|
|
223
|
+
epicWarningText: '#F5AB35',
|
|
224
|
+
},
|
|
225
|
+
//TODO : Need to clean up epic styles once all the epic references are removed from rn-proximus
|
|
226
|
+
theme: {
|
|
227
|
+
mypxBackground: 'rgba(255, 255, 255, 1)',
|
|
228
|
+
mypxBackground1: 'rgba(0, 0, 0, 0.04)',
|
|
229
|
+
mypxBackground2: 'rgba(0, 0, 0, 0.08)',
|
|
230
|
+
mypxBackground3: 'rgba(0, 0, 0, 0.12)',
|
|
231
|
+
mypxIconBackground: 'rgba(92, 45, 145, 0.16)',
|
|
232
|
+
mypxIconColor: 'rgba(92, 45, 145, 1.0)',
|
|
233
|
+
mypxTextDetails: 'rgba(0, 0, 0, 0.56)',
|
|
234
|
+
mypxTransparentBlurBackground: 'rgba(70, 70, 70, 0.8)',
|
|
235
|
+
epicBackground: 'rgba(0, 0, 0, 1)',
|
|
236
|
+
epicBackgroundDarkGrey3: 'rgba(54, 54, 54, 1)',
|
|
237
|
+
epicBackground1: 'rgba(255, 255, 255, 0.08)',
|
|
238
|
+
epicBackground2: 'rgba(255, 255, 255, 0.12)',
|
|
239
|
+
epicBackground3: 'rgba(255, 255, 255, 0.16)',
|
|
240
|
+
epicIconBackground: 'rgba(255, 255, 255, 0.24)',
|
|
241
|
+
epicIconColor: 'rgba(255, 255, 255, 1.0)',
|
|
242
|
+
epicTextDetails: 'rgba(255, 255, 255, 0.64)',
|
|
243
|
+
epicTransparentBlurBackground: 'rgba(255, 255, 255, 0.8)',
|
|
244
|
+
scarletIconBackground: 'rgba(230, 31, 19, 0.16)',
|
|
245
|
+
scarletIconColor: '#E61F13',
|
|
246
|
+
scarletTransparentBlurBackground: 'rgba(70, 70, 70, 0.8)',
|
|
247
|
+
scarletTextDetails: 'rgba(0, 0, 0, 0.56)',
|
|
248
|
+
scarletBackground1: 'rgba(0, 0, 0, 0.04)',
|
|
249
|
+
scarletBackground2: 'rgba(0, 0, 0, 0.08)',
|
|
250
|
+
scarletBackground3: 'rgba(0, 0, 0, 0.12)',
|
|
251
|
+
},
|
|
252
|
+
yellow: '#FFCA00',
|
|
253
|
+
almond: '#EAC883',
|
|
254
|
+
white: '#FFFFFF',
|
|
255
|
+
},
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
export const ScarletColors = {
|
|
259
|
+
...Colors,
|
|
260
|
+
white: 'rgba(255, 255, 255, 1)',
|
|
261
|
+
shadesOfGrey: {
|
|
262
|
+
...Colors.shadesOfGrey,
|
|
263
|
+
black5: 'rgba(215, 215, 215, 1)',
|
|
264
|
+
black6: 'rgba(125, 125, 125, 1)',
|
|
265
|
+
black7: 'rgba(99, 99, 99, 1)',
|
|
266
|
+
black8: 'rgba(70, 70, 70, 1)',
|
|
267
|
+
black85: 'rgba(58, 58, 58, 1)',
|
|
268
|
+
},
|
|
269
|
+
status: {
|
|
270
|
+
...Colors.status,
|
|
271
|
+
validGreenNeg: 'rgba(41, 219, 41, 1)', // TODO: To be deleted
|
|
272
|
+
warningOrangeNeg: 'rgba(255, 137, 0, 1)', // TODO: To be deleted
|
|
273
|
+
warningRedNeg: 'rgba(179, 0, 0, 1)', // TODO: To be deleted
|
|
274
|
+
success: 'rgba(41, 219, 41, 1)',
|
|
275
|
+
warning: 'rgba(255, 137, 0, 1)',
|
|
276
|
+
warningText: 'rgba(245, 171, 53, 1)',
|
|
277
|
+
error: 'rgba(242, 38, 19, 1)',
|
|
278
|
+
toastError: 'rgba(242, 38, 19, 1)',
|
|
279
|
+
},
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
export const Gradients = {
|
|
283
|
+
red: [Colors.brand.red, Colors.brand.purple],
|
|
284
|
+
magenta: [Colors.brand.pink, Colors.brand.purple],
|
|
285
|
+
orange: [Colors.brand.orange, Colors.brand.purple],
|
|
286
|
+
blue: [Colors.brand.blue, Colors.brand.purple],
|
|
287
|
+
turquoise: [Colors.brand.turquoise, Colors.brand.purple],
|
|
288
|
+
green: [Colors.brand.green, Colors.brand.purple],
|
|
289
|
+
};
|
package/src/index.ts
ADDED
package/src/sizes.ts
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Dimensions, Platform, StatusBar } from 'react-native';
|
|
2
|
+
|
|
3
|
+
const { width, height } = Dimensions.get('window');
|
|
4
|
+
|
|
5
|
+
const NavigationBarHeight = 44;
|
|
6
|
+
const StatusHeight =
|
|
7
|
+
Platform.OS === 'android' ? StatusBar.currentHeight || 0 : 0;
|
|
8
|
+
const DefaultContentWidth = 448;
|
|
9
|
+
|
|
10
|
+
export const CommonSizes = {
|
|
11
|
+
AbsoluteBiggest: 36,
|
|
12
|
+
Big: 18,
|
|
13
|
+
Bigger: 20,
|
|
14
|
+
Biggest: 24,
|
|
15
|
+
Medium: 16,
|
|
16
|
+
Small: 14,
|
|
17
|
+
Smaller: 12,
|
|
18
|
+
Smallest: 10,
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const Sizes = {
|
|
22
|
+
NavigationBarHeight,
|
|
23
|
+
StatusHeight,
|
|
24
|
+
AlertPopupButton: CommonSizes.Smaller,
|
|
25
|
+
AlertPopupText: CommonSizes.Small,
|
|
26
|
+
AlertPopupTitle: CommonSizes.Bigger,
|
|
27
|
+
BubbleTitleSize: CommonSizes.Small,
|
|
28
|
+
ButtonTitleSize: CommonSizes.Bigger,
|
|
29
|
+
CardText: CommonSizes.Small,
|
|
30
|
+
CharLimitTextInput: CommonSizes.Smaller,
|
|
31
|
+
ContentMaxWidth: 468,
|
|
32
|
+
ContentWidth: Math.min(Math.min(width, height), DefaultContentWidth),
|
|
33
|
+
CounterIconTextSize: CommonSizes.Smallest,
|
|
34
|
+
HeaderHeight: StatusHeight + NavigationBarHeight,
|
|
35
|
+
HeaderSubtitleFontSize: CommonSizes.Smallest,
|
|
36
|
+
HeaderTitleFontSize: CommonSizes.Big,
|
|
37
|
+
IconSize: CommonSizes.Medium,
|
|
38
|
+
InfoViewSize: CommonSizes.Small,
|
|
39
|
+
ListHeaderAndroid: CommonSizes.Small,
|
|
40
|
+
ListHeaderIOS: CommonSizes.Big,
|
|
41
|
+
ListItemInfoSubtitle: CommonSizes.Smaller,
|
|
42
|
+
ListItemInfoTitle: CommonSizes.Medium,
|
|
43
|
+
ListItemNotificationTitle: CommonSizes.Medium,
|
|
44
|
+
ListItemSecondSubtitle: CommonSizes.Smallest,
|
|
45
|
+
ListItemSubtitle: CommonSizes.Smaller,
|
|
46
|
+
ListItemSubtitleIOS: CommonSizes.Smaller,
|
|
47
|
+
ListItemTime: CommonSizes.Smallest,
|
|
48
|
+
ListItemTitle: CommonSizes.Medium,
|
|
49
|
+
ListWithAvatarExplicitText: CommonSizes.Smallest,
|
|
50
|
+
NotificationMessage: CommonSizes.Small,
|
|
51
|
+
PromptPopupText: CommonSizes.Small,
|
|
52
|
+
PromptPopupTitle: CommonSizes.Biggest,
|
|
53
|
+
PxCompactPriceTextCurrencySize: CommonSizes.Biggest,
|
|
54
|
+
PxCompactPriceTextDigitsSize: CommonSizes.Small,
|
|
55
|
+
PxCompactPriceTextDurationSize: CommonSizes.Smaller,
|
|
56
|
+
PxCompactPriceTextUnitsSize: CommonSizes.AbsoluteBiggest,
|
|
57
|
+
PxMobilePricingPlanCardFirstLine: CommonSizes.Big,
|
|
58
|
+
PxMobilePricingPlanCardLine: CommonSizes.Small,
|
|
59
|
+
PxMobilePricingPlanCardTitle: CommonSizes.Big,
|
|
60
|
+
PxPriceButtonTextSize: CommonSizes.Small,
|
|
61
|
+
PxPriceTextSize: CommonSizes.Small,
|
|
62
|
+
PxPriceTextSizeMultiLine: CommonSizes.Smaller,
|
|
63
|
+
PxTextIconRightIconSize: CommonSizes.Biggest,
|
|
64
|
+
PxTextIconRightTextSize: CommonSizes.Small,
|
|
65
|
+
PxOptionCardIcon: CommonSizes.Biggest,
|
|
66
|
+
PxOptionCardSubtitle: CommonSizes.Small,
|
|
67
|
+
PxOptionCardTitle: CommonSizes.Small,
|
|
68
|
+
PxProgressBarText: CommonSizes.Small,
|
|
69
|
+
SmallInformativeSubtitleText: CommonSizes.Smallest,
|
|
70
|
+
SmallInformativeText: CommonSizes.Smaller,
|
|
71
|
+
TabBarIcon: CommonSizes.Biggest,
|
|
72
|
+
TextBodySize: CommonSizes.Smaller,
|
|
73
|
+
TextDisclaimerSize: CommonSizes.Smallest,
|
|
74
|
+
TextHeader2Size: CommonSizes.Biggest,
|
|
75
|
+
TextHeaderSize: CommonSizes.Big,
|
|
76
|
+
TopNotification: CommonSizes.Medium,
|
|
77
|
+
UsageCardHeight: height,
|
|
78
|
+
};
|
package/src/themes.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export enum ThemeName {
|
|
2
|
+
MYPROXIMUS = 'myproximus',
|
|
3
|
+
SCARLET = 'scarlet',
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export enum StatusType {
|
|
7
|
+
SUCCESS = 'success',
|
|
8
|
+
ERROR = 'error',
|
|
9
|
+
WARNING = 'warning',
|
|
10
|
+
INFO = 'info',
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface ITheme {
|
|
14
|
+
name: ThemeName;
|
|
15
|
+
t: (key: string) => any;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface IThemeContext {
|
|
19
|
+
theme: ITheme;
|
|
20
|
+
setTheme?: (theme: ITheme) => void;
|
|
21
|
+
}
|