@trafilea/afrodita-components 5.0.0-beta.16 → 5.0.0-beta.160

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,602 @@
1
+ import { CSSProperties } from 'react';
2
+ import { ComponentSize } from 'src/types/enums';
3
+
4
+ declare type Theme = {
5
+ name: string;
6
+ fontSizes: number[];
7
+ fontWeights: number[];
8
+ lineHeights: number[];
9
+ mediaQueries: ThemeBreakpoints;
10
+ radius: {
11
+ regular: string;
12
+ };
13
+ zIndex: {
14
+ modal: number;
15
+ overlay: number;
16
+ };
17
+ colors: ThemeColors;
18
+ component: ThemeComponent;
19
+ typography: ThemeTypography;
20
+ fonts: ThemeFonts;
21
+ assets: ThemeAssets;
22
+ };
23
+ declare type ThemeBreakpoints = {
24
+ mobile: number;
25
+ desktop: number;
26
+ };
27
+ declare type ThemeBasicPallete = {
28
+ color: string;
29
+ contrast: string;
30
+ };
31
+ declare type ThemeColorPallete = ThemeBasicPallete & {
32
+ soft: ThemeBasicPallete;
33
+ };
34
+ declare type ThemeColorPrimaryPallete = ThemeColorPallete & {
35
+ 20: ThemeColorPallete;
36
+ 40: ThemeColorPallete;
37
+ 60: ThemeColorPallete;
38
+ 80: ThemeColorPallete;
39
+ };
40
+ declare type ThemeColors = {
41
+ pallete: {
42
+ primary: ThemeColorPrimaryPallete;
43
+ secondary: ThemeColorPrimaryPallete;
44
+ } & Partial<Record<string, ThemeColorPallete>>;
45
+ shades: {
46
+ black: ThemeBasicPallete;
47
+ white: ThemeBasicPallete;
48
+ 5: ThemeBasicPallete;
49
+ 10: ThemeBasicPallete;
50
+ 50: ThemeBasicPallete;
51
+ 100: ThemeBasicPallete;
52
+ 150: ThemeBasicPallete;
53
+ 200: ThemeBasicPallete;
54
+ 250: ThemeBasicPallete;
55
+ 300: ThemeBasicPallete;
56
+ 350: ThemeBasicPallete;
57
+ 400: ThemeBasicPallete;
58
+ 450: ThemeBasicPallete;
59
+ 500: ThemeBasicPallete;
60
+ 550: ThemeBasicPallete;
61
+ 600: ThemeBasicPallete;
62
+ 650: ThemeBasicPallete;
63
+ 700: ThemeBasicPallete;
64
+ 750: ThemeBasicPallete;
65
+ 800: ThemeBasicPallete;
66
+ 850: ThemeBasicPallete;
67
+ 900: ThemeBasicPallete;
68
+ 950: ThemeBasicPallete;
69
+ 990: ThemeBasicPallete;
70
+ };
71
+ semantic: {
72
+ positive: ThemeBasicPallete;
73
+ urgent: ThemeBasicPallete;
74
+ attention: ThemeBasicPallete;
75
+ informative: ThemeBasicPallete;
76
+ };
77
+ border: {
78
+ color: string;
79
+ disabled: string;
80
+ highlight: string;
81
+ };
82
+ background: {
83
+ color: string;
84
+ disabled: string;
85
+ };
86
+ text: {
87
+ color: string;
88
+ disabled: string;
89
+ };
90
+ };
91
+ declare type ThemeComponent = {
92
+ button: {
93
+ border: string;
94
+ borderRadius: string;
95
+ fontWeight: number;
96
+ lineHeight: string;
97
+ letterSpacing: string;
98
+ size: {
99
+ small: {
100
+ fontSize: string;
101
+ padding: string;
102
+ };
103
+ medium: {
104
+ fontSize: string;
105
+ padding: string;
106
+ };
107
+ large: {
108
+ fontSize: string;
109
+ padding: string;
110
+ };
111
+ };
112
+ primary: {
113
+ active: {
114
+ backgroundColor: string;
115
+ color: string;
116
+ };
117
+ hover: {
118
+ backgroundColor: string;
119
+ color: string;
120
+ };
121
+ };
122
+ secondary: {
123
+ active: {
124
+ backgroundColor: string;
125
+ color: string;
126
+ };
127
+ hover: {
128
+ backgroundColor: string;
129
+ color: string;
130
+ };
131
+ };
132
+ };
133
+ input: {
134
+ background: string;
135
+ color: string;
136
+ placeholderColor: string;
137
+ borderRadius: string;
138
+ fontSize: string;
139
+ fontWeight: number;
140
+ padding: string;
141
+ lineHeight: string;
142
+ border: string;
143
+ boxShadow: string;
144
+ errorBorder: string;
145
+ };
146
+ inputPlaceholder: {
147
+ fontSize: string;
148
+ padding: string;
149
+ focusBorder: string;
150
+ };
151
+ inputCustom: {
152
+ button: {
153
+ borderRadius: string;
154
+ };
155
+ input: {
156
+ borderRadius: string;
157
+ };
158
+ };
159
+ selector: {
160
+ size: {
161
+ small: {
162
+ padding: string;
163
+ borderRadius: string;
164
+ };
165
+ medium: {
166
+ padding: string;
167
+ borderRadius: string;
168
+ };
169
+ };
170
+ default: {
171
+ fontWeight: number;
172
+ border: string;
173
+ background: string;
174
+ color: string;
175
+ };
176
+ hover: {
177
+ fontWeight: number;
178
+ background: string;
179
+ border: string;
180
+ color: string;
181
+ };
182
+ noStock: {
183
+ fontWeight: number;
184
+ background: string;
185
+ border: string;
186
+ color: string;
187
+ };
188
+ disabled: {
189
+ border: string;
190
+ };
191
+ fontSize: string;
192
+ };
193
+ rating: {
194
+ fontWeight: number;
195
+ size: {
196
+ xsmall: {
197
+ fontSize: string;
198
+ lineHeight: string;
199
+ };
200
+ small: {
201
+ fontSize: string;
202
+ lineHeight: string;
203
+ };
204
+ medium: {
205
+ fontSize: string;
206
+ lineHeight: string;
207
+ };
208
+ large: {
209
+ fontSize: string;
210
+ lineHeight: string;
211
+ };
212
+ };
213
+ };
214
+ stars: {
215
+ element: {
216
+ color: string;
217
+ xsmall: {
218
+ width: string;
219
+ height: string;
220
+ marginRight: string;
221
+ };
222
+ small: {
223
+ width: string;
224
+ height: string;
225
+ marginRight: string;
226
+ };
227
+ medium: {
228
+ width: string;
229
+ height: string;
230
+ marginRight: string;
231
+ };
232
+ large: {
233
+ width: string;
234
+ height: string;
235
+ marginRight: string;
236
+ };
237
+ };
238
+ };
239
+ card: {
240
+ borderRadius: string;
241
+ backgroundColor: string;
242
+ };
243
+ radio: {
244
+ borderColor: string;
245
+ background: string;
246
+ textSize: string;
247
+ lineHeight: string;
248
+ size: {
249
+ small: {
250
+ borderWidth: string;
251
+ margin: string;
252
+ height: string;
253
+ active: {
254
+ borderWidth: string;
255
+ };
256
+ };
257
+ medium: {
258
+ borderWidth: string;
259
+ margin: string;
260
+ height: string;
261
+ active: {
262
+ borderWidth: string;
263
+ };
264
+ };
265
+ large: {
266
+ borderWidth: string;
267
+ margin: string;
268
+ height: string;
269
+ active: {
270
+ borderWidth: string;
271
+ };
272
+ };
273
+ };
274
+ };
275
+ label: {
276
+ color: string;
277
+ fontSize: {
278
+ small: string;
279
+ medium: string;
280
+ large: string;
281
+ };
282
+ lineHeight: {
283
+ small: string;
284
+ medium: string;
285
+ large: string;
286
+ };
287
+ };
288
+ checkbox: {
289
+ background: string;
290
+ borderColor: string;
291
+ active: {
292
+ background: string;
293
+ };
294
+ size: {
295
+ large: {
296
+ width: string;
297
+ height: string;
298
+ borderRadius: string;
299
+ borderWidth: string;
300
+ margin: string;
301
+ icon: {
302
+ width: string;
303
+ height: string;
304
+ };
305
+ };
306
+ medium: {
307
+ width: string;
308
+ height: string;
309
+ borderRadius: string;
310
+ borderWidth: string;
311
+ margin: string;
312
+ icon: {
313
+ width: string;
314
+ height: string;
315
+ };
316
+ };
317
+ small: {
318
+ width: string;
319
+ height: string;
320
+ borderRadius: string;
321
+ borderWidth: string;
322
+ margin: string;
323
+ icon: {
324
+ width: string;
325
+ height: string;
326
+ };
327
+ };
328
+ };
329
+ };
330
+ accordion: {
331
+ variant: {
332
+ box: {
333
+ container: {
334
+ border: string;
335
+ borderColor: string;
336
+ borderRadius: string;
337
+ padding: string;
338
+ };
339
+ summary: {
340
+ fontWeight: number;
341
+ fontSize: string;
342
+ lineHeight: string;
343
+ color: string;
344
+ };
345
+ details: {
346
+ margin: string;
347
+ };
348
+ icon: {
349
+ width: number;
350
+ height: number;
351
+ color: string;
352
+ };
353
+ };
354
+ simple: {
355
+ container: {
356
+ borderTop: string;
357
+ borderBottom: string;
358
+ borderColor: string;
359
+ borderRadius: string;
360
+ padding: string;
361
+ };
362
+ summary: {
363
+ fontWeight: number;
364
+ fontSize: string;
365
+ lineHeight: string;
366
+ color: string;
367
+ };
368
+ details: {
369
+ margin: string;
370
+ };
371
+ icon: {
372
+ width: number;
373
+ height: number;
374
+ color: string;
375
+ };
376
+ };
377
+ };
378
+ };
379
+ dropdown: {
380
+ borderRadius: string;
381
+ fontSize: string;
382
+ fontWeight: number;
383
+ lineHeight: string;
384
+ padding: string;
385
+ color: string;
386
+ fill: string;
387
+ options: {
388
+ borderColor: string;
389
+ color: string;
390
+ borderRadius: string;
391
+ };
392
+ };
393
+ modal: {
394
+ minWidth: string;
395
+ };
396
+ packSelector: {
397
+ borderRadius: string;
398
+ borderColor: string;
399
+ highlightColor: string;
400
+ selectedColor: string;
401
+ selectedContrast: string;
402
+ tagColor: string;
403
+ };
404
+ slideNavigation: {
405
+ slideDots: {
406
+ unselectedDotColor: string;
407
+ selectedDotColor: string;
408
+ dotsOpacity: number;
409
+ };
410
+ };
411
+ beforeAfter: {
412
+ size: {
413
+ small: {
414
+ image: {
415
+ minHeight: string;
416
+ minWidth: string;
417
+ mobile: {
418
+ minHeight: string;
419
+ minWidth: string;
420
+ };
421
+ };
422
+ imageContainer: {
423
+ maxWidth: string;
424
+ padding: string;
425
+ mobile: {
426
+ maxWidth: string;
427
+ };
428
+ };
429
+ userInfoText: {
430
+ fontSize: string;
431
+ mobile: {
432
+ fontSize: string;
433
+ };
434
+ };
435
+ };
436
+ medium: {
437
+ image: {
438
+ minHeight: string;
439
+ minWidth: string;
440
+ mobile: {
441
+ minHeight: string;
442
+ minWidth: string;
443
+ };
444
+ };
445
+ imageContainer: {
446
+ maxWidth: string;
447
+ padding: string;
448
+ mobile: {
449
+ maxWidth: string;
450
+ };
451
+ };
452
+ userInfoText: {
453
+ fontSize: string;
454
+ mobile: {
455
+ fontSize: string;
456
+ };
457
+ };
458
+ };
459
+ large: {
460
+ image: {
461
+ minHeight: string;
462
+ minWidth: string;
463
+ mobile: {
464
+ minHeight: string;
465
+ minWidth: string;
466
+ };
467
+ };
468
+ imageContainer: {
469
+ maxWidth: string;
470
+ padding: string;
471
+ mobile: {
472
+ maxWidth: string;
473
+ };
474
+ };
475
+ userInfoText: {
476
+ fontSize: string;
477
+ mobile: {
478
+ fontSize: string;
479
+ };
480
+ };
481
+ };
482
+ };
483
+ };
484
+ total: {
485
+ basicTotal: {
486
+ amount: {
487
+ color: string;
488
+ fontSize: string;
489
+ };
490
+ currency: {
491
+ color: string;
492
+ fontSize: string;
493
+ lineHeight: string;
494
+ alignSelf?: string;
495
+ };
496
+ savings: {
497
+ textFontSize: string;
498
+ textLineHeight: string;
499
+ amountFontSize: string;
500
+ amountFontWeight: number;
501
+ amountLineHeight: string;
502
+ color?: string;
503
+ };
504
+ };
505
+ };
506
+ subTotal: {
507
+ basicSubTotal: {
508
+ family: string;
509
+ size: string;
510
+ weight: number;
511
+ lineHeight: string;
512
+ color: string;
513
+ };
514
+ };
515
+ pricing: {
516
+ priceLabel: {
517
+ price: {
518
+ size: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
519
+ originalPriceColor: string;
520
+ actualPriceColor: string;
521
+ };
522
+ };
523
+ };
524
+ orderSummary: {
525
+ backgroundColor: string;
526
+ maxWidth?: string;
527
+ padding?: string;
528
+ borderRadius?: string;
529
+ onMobile: {
530
+ maxWidth?: string;
531
+ padding?: string;
532
+ backgroundColor?: string;
533
+ };
534
+ };
535
+ expressCheckout: {
536
+ fontFamily: string;
537
+ fontWeight: number;
538
+ lineHeight: string;
539
+ };
540
+ copyrightText: {
541
+ fontSize: string;
542
+ fontWeight: number;
543
+ lineHeight: string;
544
+ color: string;
545
+ };
546
+ textButton: {
547
+ fontWeight: number;
548
+ lineHeight: string;
549
+ };
550
+ deliveryDetails: {
551
+ note: {
552
+ accentColor: string;
553
+ color: string;
554
+ backgroundColor: string;
555
+ };
556
+ SectionDetails?: {
557
+ marginLeft: string;
558
+ };
559
+ };
560
+ text: {
561
+ orderHeader: {
562
+ color: string;
563
+ };
564
+ };
565
+ };
566
+ declare type ThemeTypography = {
567
+ config: {
568
+ weight: {
569
+ heavy: number;
570
+ bold: number;
571
+ demi: number;
572
+ regular: number;
573
+ };
574
+ };
575
+ variants: Record<string, CSSProperties>;
576
+ };
577
+ declare type ThemeFonts = {
578
+ url: string;
579
+ config: Array<{
580
+ src: string;
581
+ family: string;
582
+ weight?: number | string;
583
+ style?: string;
584
+ stretch?: string;
585
+ }>;
586
+ };
587
+ declare type ThemeAssets = {
588
+ images: {
589
+ favicon: string;
590
+ logo: string;
591
+ logoSize?: {
592
+ width: string;
593
+ height: string;
594
+ };
595
+ logoMobile?: string;
596
+ };
597
+ [key: string]: any;
598
+ };
599
+
600
+ declare const revel: Theme;
601
+
602
+ export { revel as default };