@trafilea/afrodita-components 5.0.0-beta.30 → 5.0.0-beta.301

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