@trafilea/afrodita-components 5.0.0-beta.13 → 5.0.0-beta.131

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,437 @@
1
+ import { CSSProperties } from 'react';
2
+
3
+ declare type Theme = {
4
+ name: string;
5
+ fontSizes: number[];
6
+ fontWeights: number[];
7
+ lineHeights: number[];
8
+ mediaQueries: ThemeBreakpoints;
9
+ radius: {
10
+ regular: string;
11
+ };
12
+ zIndex: {
13
+ modal: number;
14
+ overlay: number;
15
+ };
16
+ colors: ThemeColors;
17
+ component: ThemeComponent;
18
+ typography: ThemeTypography;
19
+ fonts: ThemeFonts;
20
+ assets: ThemeAssets;
21
+ };
22
+ declare type ThemeBreakpoints = {
23
+ mobile: number;
24
+ desktop: number;
25
+ };
26
+ declare type ThemeBasicPallete = {
27
+ color: string;
28
+ contrast: string;
29
+ };
30
+ declare type ThemeColorPallete = ThemeBasicPallete & {
31
+ soft: ThemeBasicPallete;
32
+ };
33
+ declare type ThemeColorPrimaryPallete = ThemeColorPallete & {
34
+ 20: ThemeColorPallete;
35
+ 40: ThemeColorPallete;
36
+ 60: ThemeColorPallete;
37
+ 80: ThemeColorPallete;
38
+ };
39
+ declare type ThemeColors = {
40
+ pallete: {
41
+ primary: ThemeColorPrimaryPallete;
42
+ secondary: ThemeColorPrimaryPallete;
43
+ } & Partial<Record<string, ThemeColorPallete>>;
44
+ shades: {
45
+ black: ThemeBasicPallete;
46
+ white: ThemeBasicPallete;
47
+ 5: ThemeBasicPallete;
48
+ 10: ThemeBasicPallete;
49
+ 50: ThemeBasicPallete;
50
+ 100: ThemeBasicPallete;
51
+ 150: ThemeBasicPallete;
52
+ 200: ThemeBasicPallete;
53
+ 250: ThemeBasicPallete;
54
+ 300: ThemeBasicPallete;
55
+ 350: ThemeBasicPallete;
56
+ 400: ThemeBasicPallete;
57
+ 450: ThemeBasicPallete;
58
+ 500: ThemeBasicPallete;
59
+ 550: ThemeBasicPallete;
60
+ 600: ThemeBasicPallete;
61
+ 650: ThemeBasicPallete;
62
+ 700: ThemeBasicPallete;
63
+ 750: ThemeBasicPallete;
64
+ 800: ThemeBasicPallete;
65
+ 850: ThemeBasicPallete;
66
+ 900: ThemeBasicPallete;
67
+ 950: ThemeBasicPallete;
68
+ 990: ThemeBasicPallete;
69
+ };
70
+ semantic: {
71
+ positive: ThemeBasicPallete;
72
+ urgent: ThemeBasicPallete;
73
+ attention: ThemeBasicPallete;
74
+ informative: ThemeBasicPallete;
75
+ };
76
+ border: {
77
+ color: string;
78
+ disabled: string;
79
+ highlight: string;
80
+ };
81
+ background: {
82
+ color: string;
83
+ disabled: string;
84
+ };
85
+ text: {
86
+ color: string;
87
+ disabled: string;
88
+ };
89
+ };
90
+ declare type ThemeComponent = {
91
+ button: {
92
+ border: string;
93
+ borderRadius: string;
94
+ fontWeight: number;
95
+ size: {
96
+ small: {
97
+ fontSize: string;
98
+ padding: string;
99
+ };
100
+ medium: {
101
+ fontSize: string;
102
+ padding: string;
103
+ };
104
+ large: {
105
+ fontSize: string;
106
+ padding: string;
107
+ };
108
+ };
109
+ primary: {
110
+ active: {
111
+ backgroundColor: string;
112
+ color: string;
113
+ };
114
+ hover: {
115
+ backgroundColor: string;
116
+ color: string;
117
+ };
118
+ };
119
+ secondary: {
120
+ active: {
121
+ backgroundColor: string;
122
+ color: string;
123
+ };
124
+ hover: {
125
+ backgroundColor: string;
126
+ color: string;
127
+ };
128
+ };
129
+ };
130
+ input: {
131
+ background: string;
132
+ color: string;
133
+ placeholderColor: string;
134
+ borderRadius: string;
135
+ fontSize: string;
136
+ fontWeight: number;
137
+ padding: string;
138
+ lineHeight: string;
139
+ border: string;
140
+ boxShadow: string;
141
+ errorBorder: string;
142
+ };
143
+ inputPlaceholder: {
144
+ fontSize: string;
145
+ padding: string;
146
+ focusBorder: string;
147
+ };
148
+ inputCustom: {
149
+ button: {
150
+ borderRadius: string;
151
+ };
152
+ input: {
153
+ borderRadius: string;
154
+ };
155
+ };
156
+ selector: {
157
+ size: {
158
+ small: {
159
+ padding: string;
160
+ borderRadius: string;
161
+ };
162
+ medium: {
163
+ padding: string;
164
+ borderRadius: string;
165
+ };
166
+ };
167
+ default: {
168
+ fontWeight: number;
169
+ border: string;
170
+ background: string;
171
+ color: string;
172
+ };
173
+ hover: {
174
+ fontWeight: number;
175
+ background: string;
176
+ border: string;
177
+ color: string;
178
+ };
179
+ noStock: {
180
+ fontWeight: number;
181
+ background: string;
182
+ border: string;
183
+ color: string;
184
+ };
185
+ disabled: {
186
+ border: string;
187
+ };
188
+ fontSize: string;
189
+ };
190
+ rating: {
191
+ fontWeight: number;
192
+ size: {
193
+ xsmall: {
194
+ fontSize: string;
195
+ lineHeight: string;
196
+ };
197
+ small: {
198
+ fontSize: string;
199
+ lineHeight: string;
200
+ };
201
+ medium: {
202
+ fontSize: string;
203
+ lineHeight: string;
204
+ };
205
+ large: {
206
+ fontSize: string;
207
+ lineHeight: string;
208
+ };
209
+ };
210
+ };
211
+ stars: {
212
+ element: {
213
+ color: string;
214
+ xsmall: {
215
+ width: string;
216
+ height: string;
217
+ marginRight: string;
218
+ };
219
+ small: {
220
+ width: string;
221
+ height: string;
222
+ marginRight: string;
223
+ };
224
+ medium: {
225
+ width: string;
226
+ height: string;
227
+ marginRight: string;
228
+ };
229
+ large: {
230
+ width: string;
231
+ height: string;
232
+ marginRight: string;
233
+ };
234
+ };
235
+ };
236
+ card: {
237
+ borderRadius: string;
238
+ };
239
+ radio: {
240
+ borderColor: string;
241
+ background: string;
242
+ size: {
243
+ small: {
244
+ borderWidth: string;
245
+ margin: string;
246
+ height: string;
247
+ active: {
248
+ borderWidth: string;
249
+ };
250
+ };
251
+ medium: {
252
+ borderWidth: string;
253
+ margin: string;
254
+ height: string;
255
+ active: {
256
+ borderWidth: string;
257
+ };
258
+ };
259
+ large: {
260
+ borderWidth: string;
261
+ margin: string;
262
+ height: string;
263
+ active: {
264
+ borderWidth: string;
265
+ };
266
+ };
267
+ };
268
+ };
269
+ label: {
270
+ fontSize: {
271
+ small: string;
272
+ medium: string;
273
+ large: string;
274
+ };
275
+ lineHeight: {
276
+ small: string;
277
+ medium: string;
278
+ large: string;
279
+ };
280
+ };
281
+ checkbox: {
282
+ background: string;
283
+ borderColor: string;
284
+ active: {
285
+ background: string;
286
+ };
287
+ size: {
288
+ large: {
289
+ width: string;
290
+ height: string;
291
+ borderRadius: string;
292
+ borderWidth: string;
293
+ margin: string;
294
+ icon: {
295
+ width: string;
296
+ height: string;
297
+ };
298
+ };
299
+ medium: {
300
+ width: string;
301
+ height: string;
302
+ borderRadius: string;
303
+ borderWidth: string;
304
+ margin: string;
305
+ icon: {
306
+ width: string;
307
+ height: string;
308
+ };
309
+ };
310
+ small: {
311
+ width: string;
312
+ height: string;
313
+ borderRadius: string;
314
+ borderWidth: string;
315
+ margin: string;
316
+ icon: {
317
+ width: string;
318
+ height: string;
319
+ };
320
+ };
321
+ };
322
+ };
323
+ accordion: {
324
+ variant: {
325
+ box: {
326
+ container: {
327
+ border: string;
328
+ borderColor: string;
329
+ borderRadius: string;
330
+ padding: string;
331
+ };
332
+ summary: {
333
+ fontWeight: number;
334
+ fontSize: string;
335
+ lineHeight: string;
336
+ color: string;
337
+ };
338
+ details: {
339
+ margin: string;
340
+ };
341
+ icon: {
342
+ width: number;
343
+ height: number;
344
+ color: string;
345
+ };
346
+ };
347
+ simple: {
348
+ container: {
349
+ borderTop: string;
350
+ borderBottom: string;
351
+ borderColor: string;
352
+ borderRadius: string;
353
+ padding: string;
354
+ };
355
+ summary: {
356
+ fontWeight: number;
357
+ fontSize: string;
358
+ lineHeight: string;
359
+ color: string;
360
+ };
361
+ details: {
362
+ margin: string;
363
+ };
364
+ icon: {
365
+ width: number;
366
+ height: number;
367
+ color: string;
368
+ };
369
+ };
370
+ };
371
+ };
372
+ dropdown: {
373
+ borderRadius: string;
374
+ fontSize: string;
375
+ fontWeight: number;
376
+ lineHeight: string;
377
+ padding: string;
378
+ color: string;
379
+ fill: string;
380
+ options: {
381
+ borderColor: string;
382
+ color: string;
383
+ borderRadius: string;
384
+ };
385
+ };
386
+ modal: {
387
+ minWidth: string;
388
+ };
389
+ packSelector: {
390
+ borderRadius: string;
391
+ borderColor: string;
392
+ highlightColor: string;
393
+ selectedColor: string;
394
+ selectedContrast: string;
395
+ tagColor: string;
396
+ };
397
+ slideNavigation: {
398
+ slideDots: {
399
+ unselectedDotColor: string;
400
+ selectedDotColor: string;
401
+ dotsOpacity: number;
402
+ };
403
+ };
404
+ };
405
+ declare type ThemeTypography = {
406
+ config: {
407
+ weight: {
408
+ heavy: number;
409
+ bold: number;
410
+ demi: number;
411
+ regular: number;
412
+ };
413
+ };
414
+ variants: Record<string, CSSProperties>;
415
+ };
416
+ declare type ThemeFonts = {
417
+ url: string;
418
+ config: Array<{
419
+ src: string;
420
+ family: string;
421
+ weight?: number | string;
422
+ style?: string;
423
+ stretch?: string;
424
+ }>;
425
+ };
426
+ declare type ThemeAssets = {
427
+ images: {
428
+ favicon: string;
429
+ logo: string;
430
+ logoMobile?: string;
431
+ };
432
+ [key: string]: any;
433
+ };
434
+
435
+ declare const revel: Theme;
436
+
437
+ export { revel as default };