@trafilea/afrodita-components 5.0.0-beta.3 → 5.0.0-beta.300

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.
@@ -1,4 +1,5 @@
1
1
  import { CSSProperties } from 'react';
2
+ import { ComponentSize } from 'src/types/enums';
2
3
 
3
4
  declare type Theme = {
4
5
  name: string;
@@ -21,6 +22,7 @@ declare type Theme = {
21
22
  };
22
23
  declare type ThemeBreakpoints = {
23
24
  mobile: number;
25
+ tablet?: number;
24
26
  desktop: number;
25
27
  };
26
28
  declare type ThemeBasicPallete = {
@@ -28,7 +30,7 @@ declare type ThemeBasicPallete = {
28
30
  contrast: string;
29
31
  };
30
32
  declare type ThemeColorPallete = ThemeBasicPallete & {
31
- soft: ThemeBasicPallete;
33
+ soft?: ThemeBasicPallete;
32
34
  };
33
35
  declare type ThemeColorPrimaryPallete = ThemeColorPallete & {
34
36
  20: ThemeColorPallete;
@@ -40,6 +42,7 @@ declare type ThemeColors = {
40
42
  pallete: {
41
43
  primary: ThemeColorPrimaryPallete;
42
44
  secondary: ThemeColorPrimaryPallete;
45
+ tertiary?: ThemeColorPrimaryPallete;
43
46
  } & Partial<Record<string, ThemeColorPallete>>;
44
47
  shades: {
45
48
  black: ThemeBasicPallete;
@@ -49,6 +52,7 @@ declare type ThemeColors = {
49
52
  50: ThemeBasicPallete;
50
53
  100: ThemeBasicPallete;
51
54
  150: ThemeBasicPallete;
55
+ 175: ThemeBasicPallete;
52
56
  200: ThemeBasicPallete;
53
57
  250: ThemeBasicPallete;
54
58
  300: ThemeBasicPallete;
@@ -77,6 +81,8 @@ declare type ThemeColors = {
77
81
  color: string;
78
82
  disabled: string;
79
83
  highlight: string;
84
+ shadow?: string;
85
+ isChecked?: string;
80
86
  };
81
87
  background: {
82
88
  color: string;
@@ -92,6 +98,10 @@ declare type ThemeComponent = {
92
98
  border: string;
93
99
  borderRadius: string;
94
100
  fontWeight: number;
101
+ lineHeight: string;
102
+ letterSpacing: string;
103
+ minWidth: string;
104
+ minHeight: string;
95
105
  size: {
96
106
  small: {
97
107
  fontSize: string;
@@ -138,6 +148,12 @@ declare type ThemeComponent = {
138
148
  lineHeight: string;
139
149
  border: string;
140
150
  boxShadow: string;
151
+ errorBorder: string;
152
+ };
153
+ inputPlaceholder: {
154
+ fontSize: string;
155
+ padding: string;
156
+ focusBorder: string;
141
157
  };
142
158
  inputCustom: {
143
159
  button: {
@@ -170,6 +186,12 @@ declare type ThemeComponent = {
170
186
  border: string;
171
187
  color: string;
172
188
  };
189
+ noStock: {
190
+ fontWeight: number;
191
+ background: string;
192
+ border: string;
193
+ color: string;
194
+ };
173
195
  disabled: {
174
196
  border: string;
175
197
  };
@@ -223,10 +245,13 @@ declare type ThemeComponent = {
223
245
  };
224
246
  card: {
225
247
  borderRadius: string;
248
+ backgroundColor: string;
226
249
  };
227
250
  radio: {
228
251
  borderColor: string;
229
252
  background: string;
253
+ textSize: string;
254
+ lineHeight: string;
230
255
  size: {
231
256
  small: {
232
257
  borderWidth: string;
@@ -255,6 +280,7 @@ declare type ThemeComponent = {
255
280
  };
256
281
  };
257
282
  label: {
283
+ color: string;
258
284
  fontSize: {
259
285
  small: string;
260
286
  medium: string;
@@ -363,11 +389,13 @@ declare type ThemeComponent = {
363
389
  fontWeight: number;
364
390
  lineHeight: string;
365
391
  padding: string;
392
+ optionPadding: string;
366
393
  color: string;
367
394
  fill: string;
368
395
  options: {
369
396
  borderColor: string;
370
397
  color: string;
398
+ borderRadius: string;
371
399
  };
372
400
  };
373
401
  modal: {
@@ -376,8 +404,256 @@ declare type ThemeComponent = {
376
404
  packSelector: {
377
405
  borderRadius: string;
378
406
  borderColor: string;
379
- highlight: string;
380
- selected: 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
+ };
381
657
  };
382
658
  };
383
659
  declare type ThemeTypography = {
@@ -405,6 +681,26 @@ declare type ThemeAssets = {
405
681
  images: {
406
682
  favicon: string;
407
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
+ };
408
704
  };
409
705
  [key: string]: any;
410
706
  };