@trafilea/afrodita-components 5.0.0-beta.99 → 5.0.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.
@@ -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;
@@ -92,6 +93,10 @@ declare type ThemeComponent = {
92
93
  border: string;
93
94
  borderRadius: string;
94
95
  fontWeight: number;
96
+ lineHeight: string;
97
+ letterSpacing: string;
98
+ minWidth: string;
99
+ minHeight: string;
95
100
  size: {
96
101
  small: {
97
102
  fontSize: string;
@@ -176,6 +181,12 @@ declare type ThemeComponent = {
176
181
  border: string;
177
182
  color: string;
178
183
  };
184
+ noStock: {
185
+ fontWeight: number;
186
+ background: string;
187
+ border: string;
188
+ color: string;
189
+ };
179
190
  disabled: {
180
191
  border: string;
181
192
  };
@@ -229,10 +240,13 @@ declare type ThemeComponent = {
229
240
  };
230
241
  card: {
231
242
  borderRadius: string;
243
+ backgroundColor: string;
232
244
  };
233
245
  radio: {
234
246
  borderColor: string;
235
247
  background: string;
248
+ textSize: string;
249
+ lineHeight: string;
236
250
  size: {
237
251
  small: {
238
252
  borderWidth: string;
@@ -261,6 +275,7 @@ declare type ThemeComponent = {
261
275
  };
262
276
  };
263
277
  label: {
278
+ color: string;
264
279
  fontSize: {
265
280
  small: string;
266
281
  medium: string;
@@ -374,6 +389,7 @@ declare type ThemeComponent = {
374
389
  options: {
375
390
  borderColor: string;
376
391
  color: string;
392
+ borderRadius: string;
377
393
  };
378
394
  };
379
395
  modal: {
@@ -387,6 +403,168 @@ declare type ThemeComponent = {
387
403
  selectedContrast: string;
388
404
  tagColor: string;
389
405
  };
406
+ slideNavigation: {
407
+ slideDots: {
408
+ unselectedDotColor: string;
409
+ selectedDotColor: string;
410
+ dotsOpacity: number;
411
+ };
412
+ };
413
+ beforeAfter: {
414
+ size: {
415
+ small: {
416
+ image: {
417
+ minHeight: string;
418
+ minWidth: string;
419
+ mobile: {
420
+ minHeight: string;
421
+ minWidth: string;
422
+ };
423
+ };
424
+ imageContainer: {
425
+ maxWidth: string;
426
+ padding: string;
427
+ mobile: {
428
+ maxWidth: string;
429
+ };
430
+ };
431
+ userInfoText: {
432
+ fontSize: string;
433
+ mobile: {
434
+ fontSize: string;
435
+ };
436
+ };
437
+ };
438
+ medium: {
439
+ image: {
440
+ minHeight: string;
441
+ minWidth: string;
442
+ mobile: {
443
+ minHeight: string;
444
+ minWidth: string;
445
+ };
446
+ };
447
+ imageContainer: {
448
+ maxWidth: string;
449
+ padding: string;
450
+ mobile: {
451
+ maxWidth: string;
452
+ };
453
+ };
454
+ userInfoText: {
455
+ fontSize: string;
456
+ mobile: {
457
+ fontSize: string;
458
+ };
459
+ };
460
+ };
461
+ large: {
462
+ image: {
463
+ minHeight: string;
464
+ minWidth: string;
465
+ mobile: {
466
+ minHeight: string;
467
+ minWidth: string;
468
+ };
469
+ };
470
+ imageContainer: {
471
+ maxWidth: string;
472
+ padding: string;
473
+ mobile: {
474
+ maxWidth: string;
475
+ };
476
+ };
477
+ userInfoText: {
478
+ fontSize: string;
479
+ mobile: {
480
+ fontSize: string;
481
+ };
482
+ };
483
+ };
484
+ };
485
+ };
486
+ total: {
487
+ basicTotal: {
488
+ amount: {
489
+ color: string;
490
+ fontSize: string;
491
+ };
492
+ currency: {
493
+ color: string;
494
+ fontSize: string;
495
+ lineHeight: string;
496
+ alignSelf?: string;
497
+ };
498
+ savings: {
499
+ textFontSize: string;
500
+ textLineHeight: string;
501
+ amountFontSize: string;
502
+ amountFontWeight: number;
503
+ amountLineHeight: string;
504
+ color?: string;
505
+ };
506
+ };
507
+ };
508
+ subTotal: {
509
+ basicSubTotal: {
510
+ family: string;
511
+ size: string;
512
+ weight: number;
513
+ lineHeight: string;
514
+ color: string;
515
+ };
516
+ };
517
+ pricing: {
518
+ priceLabel: {
519
+ price: {
520
+ size: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
521
+ originalPriceColor: string;
522
+ actualPriceColor: string;
523
+ };
524
+ };
525
+ };
526
+ orderSummary: {
527
+ headingTextAlign: string;
528
+ backgroundColor: string;
529
+ maxWidth?: string;
530
+ padding?: string;
531
+ borderRadius?: string;
532
+ onMobile: {
533
+ maxWidth?: string;
534
+ padding?: string;
535
+ backgroundColor?: string;
536
+ };
537
+ };
538
+ expressCheckout: {
539
+ fontFamily: string;
540
+ fontWeight: number;
541
+ lineHeight: string;
542
+ };
543
+ copyrightText: {
544
+ fontSize: string;
545
+ fontWeight: number;
546
+ lineHeight: string;
547
+ color: string;
548
+ };
549
+ textButton: {
550
+ fontWeight: number;
551
+ lineHeight: string;
552
+ };
553
+ deliveryDetails: {
554
+ note: {
555
+ accentColor: string;
556
+ color: string;
557
+ backgroundColor: string;
558
+ };
559
+ SectionDetails?: {
560
+ marginLeft: string;
561
+ };
562
+ };
563
+ text: {
564
+ orderHeader: {
565
+ color: string;
566
+ };
567
+ };
390
568
  };
391
569
  declare type ThemeTypography = {
392
570
  config: {
@@ -413,6 +591,11 @@ declare type ThemeAssets = {
413
591
  images: {
414
592
  favicon: string;
415
593
  logo: string;
594
+ logoSize?: {
595
+ width: string;
596
+ height: string;
597
+ };
598
+ logoMobile?: string;
416
599
  };
417
600
  [key: string]: any;
418
601
  };
@@ -26,6 +26,32 @@ var __assign = function() {
26
26
  return __assign.apply(this, arguments);
27
27
  };
28
28
 
29
+ var CardSectionType;
30
+ (function (CardSectionType) {
31
+ CardSectionType[CardSectionType["Header"] = 0] = "Header";
32
+ CardSectionType[CardSectionType["Footer"] = 1] = "Footer";
33
+ })(CardSectionType || (CardSectionType = {}));
34
+ var ComponentSize;
35
+ (function (ComponentSize) {
36
+ ComponentSize["Large"] = "large";
37
+ ComponentSize["Medium"] = "medium";
38
+ ComponentSize["Small"] = "small";
39
+ ComponentSize["XSmall"] = "xsmall";
40
+ })(ComponentSize || (ComponentSize = {}));
41
+ var ComponentPosition;
42
+ (function (ComponentPosition) {
43
+ ComponentPosition[ComponentPosition["Top"] = 0] = "Top";
44
+ ComponentPosition[ComponentPosition["Bottom"] = 1] = "Bottom";
45
+ ComponentPosition[ComponentPosition["Left"] = 2] = "Left";
46
+ ComponentPosition[ComponentPosition["Right"] = 3] = "Right";
47
+ })(ComponentPosition || (ComponentPosition = {}));
48
+ var InputValidationType;
49
+ (function (InputValidationType) {
50
+ InputValidationType[InputValidationType["Error"] = 0] = "Error";
51
+ InputValidationType[InputValidationType["Valid"] = 1] = "Valid";
52
+ InputValidationType[InputValidationType["Empty"] = 2] = "Empty";
53
+ })(InputValidationType || (InputValidationType = {}));
54
+
29
55
  var revel = {
30
56
  name: 'Revel',
31
57
  fontSizes: [10, 12, 14, 16, 18, 20, 24, 30, 36, 42, 52, 60, 68, 72, 76],
@@ -194,25 +220,29 @@ var revel = {
194
220
  component: {
195
221
  button: {
196
222
  border: 'none',
197
- borderRadius: '1.5rem',
223
+ borderRadius: '2.5rem',
198
224
  fontWeight: 700,
225
+ lineHeight: '20px',
226
+ letterSpacing: '0.2em',
227
+ minWidth: '300px',
228
+ minHeight: '48px',
199
229
  size: {
200
230
  small: {
201
- fontSize: '1rem',
202
- padding: '0.75rem 3rem',
231
+ fontSize: '0.75rem',
232
+ padding: '0.25rem 1rem',
203
233
  },
204
234
  medium: {
205
235
  fontSize: '0.875rem',
206
- padding: '0.5rem 2.5rem',
236
+ padding: '0.5rem 1.5rem',
207
237
  },
208
238
  large: {
209
- fontSize: '0.75rem',
210
- padding: '0.25rem 2rem',
239
+ fontSize: '1rem',
240
+ padding: '0.75rem 2rem',
211
241
  },
212
242
  },
213
243
  primary: {
214
244
  active: {
215
- backgroundColor: '--colors-pallete-primary-color',
245
+ backgroundColor: '--component-stars-element-color',
216
246
  color: '--colors-pallete-primary-contrast',
217
247
  },
218
248
  hover: {
@@ -235,7 +265,7 @@ var revel = {
235
265
  background: '--colors-shades-white-color',
236
266
  color: '--colors-shades-700-color',
237
267
  placeholderColor: '--colors-shades-250-color',
238
- borderRadius: '0.5rem',
268
+ borderRadius: '2.5rem',
239
269
  fontSize: '1rem',
240
270
  fontWeight: 400,
241
271
  padding: '0.75rem 1rem',
@@ -246,7 +276,7 @@ var revel = {
246
276
  },
247
277
  inputPlaceholder: {
248
278
  fontSize: '0.875rem',
249
- padding: '1.125rem 0.9375rem 0 0.9375rem',
279
+ padding: '1.125rem 0.9375rem 0.3rem 0.9375rem',
250
280
  focusBorder: '0.09375rem solid #1990c6',
251
281
  },
252
282
  inputCustom: {
@@ -280,6 +310,12 @@ var revel = {
280
310
  border: 'none',
281
311
  color: '--colors-shades-white-color',
282
312
  },
313
+ noStock: {
314
+ fontWeight: 600,
315
+ background: 'transparent',
316
+ border: '1px solid #3a3a3a4d',
317
+ color: '#3a3a3a4d',
318
+ },
283
319
  disabled: {
284
320
  border: 'none',
285
321
  },
@@ -332,11 +368,14 @@ var revel = {
332
368
  },
333
369
  },
334
370
  card: {
335
- borderRadius: '0.5rem',
371
+ borderRadius: '1.25rem',
372
+ backgroundColor: '#F5DECE',
336
373
  },
337
374
  radio: {
338
375
  borderColor: '--colors-shades-700-color',
339
376
  background: '--colors-shades-white-color',
377
+ textSize: '14px',
378
+ lineHeight: '22px',
340
379
  size: {
341
380
  large: {
342
381
  borderWidth: '0.094rem',
@@ -365,6 +404,7 @@ var revel = {
365
404
  },
366
405
  },
367
406
  label: {
407
+ color: '--colors-shades-400-color',
368
408
  fontSize: {
369
409
  small: '0.75rem',
370
410
  medium: '0.75rem',
@@ -468,7 +508,7 @@ var revel = {
468
508
  },
469
509
  },
470
510
  dropdown: {
471
- borderRadius: '0.5rem',
511
+ borderRadius: '2.5rem',
472
512
  fontSize: '0.875rem',
473
513
  fontWeight: 600,
474
514
  lineHeight: '1.125rem',
@@ -478,6 +518,7 @@ var revel = {
478
518
  options: {
479
519
  borderColor: '--colors-shades-700-color',
480
520
  color: '--colors-shades-700-color',
521
+ borderRadius: '0.5rem',
481
522
  },
482
523
  },
483
524
  modal: {
@@ -491,6 +532,167 @@ var revel = {
491
532
  selectedContrast: '--colors-semantic-positive-contrast',
492
533
  tagColor: '--colors-semantic-attention-color',
493
534
  },
535
+ slideNavigation: {
536
+ slideDots: {
537
+ unselectedDotColor: 'transparent',
538
+ selectedDotColor: '--colors-shades-700-color',
539
+ dotsOpacity: 0.9,
540
+ },
541
+ },
542
+ beforeAfter: {
543
+ size: {
544
+ small: {
545
+ image: {
546
+ minHeight: 'auto',
547
+ minWidth: '92px',
548
+ mobile: {
549
+ minHeight: '138px',
550
+ minWidth: '128px',
551
+ },
552
+ },
553
+ imageContainer: {
554
+ maxWidth: '214px',
555
+ padding: '12px',
556
+ mobile: {
557
+ maxWidth: '286px',
558
+ },
559
+ },
560
+ userInfoText: {
561
+ fontSize: '12px',
562
+ mobile: {
563
+ fontSize: '12px',
564
+ },
565
+ },
566
+ },
567
+ medium: {
568
+ image: {
569
+ minHeight: '200px',
570
+ minWidth: '187px',
571
+ mobile: {
572
+ minHeight: '157px',
573
+ minWidth: '150px',
574
+ },
575
+ },
576
+ imageContainer: {
577
+ maxWidth: '427px',
578
+ padding: '18px',
579
+ mobile: {
580
+ maxWidth: '342px',
581
+ },
582
+ },
583
+ userInfoText: {
584
+ fontSize: '18px',
585
+ mobile: {
586
+ fontSize: '14px',
587
+ },
588
+ },
589
+ },
590
+ large: {
591
+ image: {
592
+ minHeight: '200px',
593
+ minWidth: '187px',
594
+ mobile: {
595
+ minHeight: '157px',
596
+ minWidth: '150px',
597
+ },
598
+ },
599
+ imageContainer: {
600
+ maxWidth: '427px',
601
+ padding: '18px',
602
+ mobile: {
603
+ maxWidth: '342px',
604
+ },
605
+ },
606
+ userInfoText: {
607
+ fontSize: '18px',
608
+ mobile: {
609
+ fontSize: '14px',
610
+ },
611
+ },
612
+ },
613
+ },
614
+ },
615
+ total: {
616
+ basicTotal: {
617
+ amount: {
618
+ color: '--colors-pallete-secondary-color',
619
+ fontSize: '24px',
620
+ },
621
+ currency: {
622
+ color: '#A6A6A6',
623
+ fontSize: '16px',
624
+ lineHeight: '24px',
625
+ alignSelf: 'flex-end',
626
+ },
627
+ savings: {
628
+ textFontSize: '14px',
629
+ textLineHeight: '22px',
630
+ amountFontSize: '18px',
631
+ amountFontWeight: 700,
632
+ amountLineHeight: '20px',
633
+ color: '--colors-semantic-positive-color',
634
+ },
635
+ },
636
+ },
637
+ subTotal: {
638
+ basicSubTotal: {
639
+ family: 'Jost',
640
+ size: '14px',
641
+ weight: 700,
642
+ lineHeight: '20px',
643
+ color: '--colors-pallete-secondary-color',
644
+ },
645
+ },
646
+ pricing: {
647
+ priceLabel: {
648
+ price: {
649
+ size: ComponentSize.Medium,
650
+ originalPriceColor: '--colors-shades-400-color',
651
+ actualPriceColor: '--colors-semantic-urgent-color',
652
+ },
653
+ },
654
+ },
655
+ orderSummary: {
656
+ headingTextAlign: 'center',
657
+ backgroundColor: '--colors-shades-10-color',
658
+ padding: '20px',
659
+ borderRadius: '--radius-regular',
660
+ maxWidth: '',
661
+ onMobile: {
662
+ maxWidth: '100%',
663
+ padding: '15px',
664
+ },
665
+ },
666
+ expressCheckout: {
667
+ fontFamily: 'Jost',
668
+ fontWeight: 600,
669
+ lineHeight: '22px',
670
+ },
671
+ copyrightText: {
672
+ fontSize: '14px',
673
+ fontWeight: 400,
674
+ lineHeight: '22px',
675
+ color: '--colors-shades-400-color',
676
+ },
677
+ textButton: {
678
+ fontWeight: 600,
679
+ lineHeight: '22px',
680
+ },
681
+ deliveryDetails: {
682
+ note: {
683
+ accentColor: '--colors-semantic-urgent-color',
684
+ color: '--colors-text-color',
685
+ backgroundColor: '#F5DECE',
686
+ },
687
+ SectionDetails: {
688
+ marginLeft: '1.813rem',
689
+ },
690
+ },
691
+ text: {
692
+ orderHeader: {
693
+ color: '--colors-shades-650-color',
694
+ },
695
+ },
494
696
  },
495
697
  typography: {
496
698
  config: {
@@ -544,7 +746,7 @@ var revel = {
544
746
  },
545
747
  heading6: {
546
748
  fontSize: 18,
547
- lineHeight: '28px',
749
+ lineHeight: '22px',
548
750
  },
549
751
  'body-regular': {
550
752
  fontSize: 16,
@@ -620,99 +822,104 @@ var revel = {
620
822
  config: [
621
823
  {
622
824
  family: 'Jost',
623
- src: 'Jost-Regular.otf',
825
+ src: 'Jost400Book.otf',
624
826
  weight: 400,
625
827
  },
626
828
  {
627
829
  family: 'Jost',
628
- src: 'Jost-SemiBold.otf',
629
- weight: 600,
830
+ src: 'Jost100Hairline.otf',
831
+ weight: 100,
630
832
  },
631
833
  {
632
834
  family: 'Jost',
633
- src: 'Jost-Bold.otf',
634
- weight: 700,
835
+ src: 'Jost200Thin.otf',
836
+ weight: 200,
635
837
  },
636
838
  {
637
839
  family: 'Jost',
638
- src: 'Jost-SemiBold.otf',
639
- weight: 600,
640
- stretch: 'condensed',
840
+ src: 'Jost300Light.otf',
841
+ weight: 300,
641
842
  },
642
843
  {
643
844
  family: 'Jost',
644
- src: 'Jost-SemiBoldItalic.otf',
645
- weight: 600,
646
- stretch: 'condensed',
647
- style: 'italic',
845
+ src: 'Jost500Medium.otf',
846
+ weight: 500,
648
847
  },
649
848
  {
650
849
  family: 'Jost',
651
- src: 'Jost-SemiBoldItalic.otf',
850
+ src: 'Jost600Semi.otf',
652
851
  weight: 600,
653
- style: 'italic',
654
852
  },
655
853
  {
656
854
  family: 'Jost',
657
- src: 'Jost-Medium.otf',
658
- weight: 500,
659
- stretch: 'condensed',
855
+ src: 'Jost700Bold.otf',
856
+ weight: 700,
660
857
  },
661
858
  {
662
859
  family: 'Jost',
663
- src: 'Jost-MediumItalic.otf',
664
- weight: 500,
665
- style: 'italic',
860
+ src: 'Jost800Heavy.otf',
861
+ weight: 800,
666
862
  stretch: 'condensed',
667
863
  },
668
864
  {
669
865
  family: 'Jost',
670
- src: 'Jost-ExtraLight.otf',
671
- weight: 200,
866
+ src: 'Jost900Black.otf',
867
+ weight: 900,
672
868
  stretch: 'condensed',
673
869
  },
674
870
  {
675
871
  family: 'Jost',
676
- src: 'Jost-ExtraLightItalic.otf',
872
+ src: 'Jost100HairlineItalic.otf',
873
+ weight: 100,
874
+ style: 'italic',
875
+ },
876
+ {
877
+ family: 'Jost',
878
+ src: 'Jost200ThinItalic.otf',
677
879
  weight: 200,
678
880
  style: 'italic',
679
- stretch: 'condensed',
680
881
  },
681
882
  {
682
883
  family: 'Jost',
683
- src: 'Jost-ExtraBold.otf',
684
- weight: 800,
884
+ src: 'Jost300LightItalic.otf',
885
+ weight: 300,
886
+ style: 'italic',
685
887
  },
686
888
  {
687
889
  family: 'Jost',
688
- src: 'Jost-ExtraBold.otf',
689
- weight: 800,
690
- stretch: 'condensed',
890
+ src: 'Jost400BookItalic.otf',
891
+ weight: 400,
892
+ style: 'italic',
691
893
  },
692
894
  {
693
895
  family: 'Jost',
694
- src: 'Jost-ExtraBoldItalic.otf',
695
- weight: 800,
896
+ src: 'Jost500MediumItalic.otf',
897
+ weight: 500,
696
898
  style: 'italic',
697
- stretch: 'condensed',
698
899
  },
699
900
  {
700
901
  family: 'Jost',
701
- src: 'Jost-Black.otf',
702
- weight: 900,
902
+ src: 'Jost600SemiItalic.otf',
903
+ weight: 600,
904
+ style: 'italic',
703
905
  },
704
906
  {
705
907
  family: 'Jost',
706
- src: 'Jost-Black.otf',
707
- weight: 900,
708
- stretch: 'condensed',
908
+ src: 'Jost700BoldItalic.otf',
909
+ weight: 700,
910
+ style: 'italic',
911
+ },
912
+ {
913
+ family: 'Jost',
914
+ src: 'Jost800HeavyItalic.otf',
915
+ weight: 800,
916
+ style: 'italic',
709
917
  },
710
918
  {
711
919
  family: 'Jost',
712
- src: 'Jost-BlackItalic.otf',
920
+ src: 'Jost900BlackItalic.otf',
713
921
  weight: 900,
714
922
  style: 'italic',
715
- stretch: 'condensed',
716
923
  },
717
924
  {
718
925
  family: 'Georgia',
@@ -730,6 +937,11 @@ var revel = {
730
937
  images: {
731
938
  favicon: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/images/revel/revel_favicon.png',
732
939
  logo: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/images/revel/revelbeauty.svg',
940
+ logoSize: {
941
+ width: '342',
942
+ height: '22',
943
+ },
944
+ logoMobile: 'https://cdn11.bigcommerce.com/s-fjtlubkm6t/images/stencil/original/image-manager/mobilelogo.png?t=1667205066&_gl=1*1rjjnv8*_ga*MTM1MjY2Nzk4OS4xNjYzMjQ5ODIy*_ga_WS2VZYPC6G*MTY2NzIwNDk0OS41Ni4xLjE2NjcyMDUwNTguMTQuMC4w',
733
945
  },
734
946
  },
735
947
  };