@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.
@@ -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,8 @@ declare type ThemeComponent = {
92
93
  border: string;
93
94
  borderRadius: string;
94
95
  fontWeight: number;
96
+ lineHeight: string;
97
+ letterSpacing: string;
95
98
  size: {
96
99
  small: {
97
100
  fontSize: string;
@@ -138,6 +141,12 @@ declare type ThemeComponent = {
138
141
  lineHeight: string;
139
142
  border: string;
140
143
  boxShadow: string;
144
+ errorBorder: string;
145
+ };
146
+ inputPlaceholder: {
147
+ fontSize: string;
148
+ padding: string;
149
+ focusBorder: string;
141
150
  };
142
151
  inputCustom: {
143
152
  button: {
@@ -170,6 +179,12 @@ declare type ThemeComponent = {
170
179
  border: string;
171
180
  color: string;
172
181
  };
182
+ noStock: {
183
+ fontWeight: number;
184
+ background: string;
185
+ border: string;
186
+ color: string;
187
+ };
173
188
  disabled: {
174
189
  border: string;
175
190
  };
@@ -223,10 +238,13 @@ declare type ThemeComponent = {
223
238
  };
224
239
  card: {
225
240
  borderRadius: string;
241
+ backgroundColor: string;
226
242
  };
227
243
  radio: {
228
244
  borderColor: string;
229
245
  background: string;
246
+ textSize: string;
247
+ lineHeight: string;
230
248
  size: {
231
249
  small: {
232
250
  borderWidth: string;
@@ -255,6 +273,7 @@ declare type ThemeComponent = {
255
273
  };
256
274
  };
257
275
  label: {
276
+ color: string;
258
277
  fontSize: {
259
278
  small: string;
260
279
  medium: string;
@@ -368,6 +387,7 @@ declare type ThemeComponent = {
368
387
  options: {
369
388
  borderColor: string;
370
389
  color: string;
390
+ borderRadius: string;
371
391
  };
372
392
  };
373
393
  modal: {
@@ -381,6 +401,167 @@ declare type ThemeComponent = {
381
401
  selectedContrast: string;
382
402
  tagColor: string;
383
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
+ };
384
565
  };
385
566
  declare type ThemeTypography = {
386
567
  config: {
@@ -407,6 +588,11 @@ declare type ThemeAssets = {
407
588
  images: {
408
589
  favicon: string;
409
590
  logo: string;
591
+ logoSize?: {
592
+ width: string;
593
+ height: string;
594
+ };
595
+ logoMobile?: string;
410
596
  };
411
597
  [key: string]: any;
412
598
  };
@@ -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 truekind = {
30
56
  name: 'Truekind',
31
57
  fontSizes: [10, 12, 14, 16, 18, 20, 24, 30, 36, 42, 52, 60, 68, 72, 76],
@@ -269,6 +295,8 @@ var truekind = {
269
295
  border: 'none',
270
296
  borderRadius: '1.5rem',
271
297
  fontWeight: 700,
298
+ lineHeight: 'normal',
299
+ letterSpacing: 'normal',
272
300
  size: {
273
301
  small: {
274
302
  fontSize: '1rem',
@@ -315,6 +343,12 @@ var truekind = {
315
343
  lineHeight: '1.5rem',
316
344
  border: '0.063rem solid #BBBBBB',
317
345
  boxShadow: '0 0 0 0.25rem #D9EEFF',
346
+ errorBorder: '0.09375rem solid #d3373c',
347
+ },
348
+ inputPlaceholder: {
349
+ fontSize: '0.875rem',
350
+ padding: '1.125rem 0.9375rem 0 0.9375rem',
351
+ focusBorder: '0.09375rem solid #1990c6',
318
352
  },
319
353
  inputCustom: {
320
354
  button: {
@@ -347,6 +381,12 @@ var truekind = {
347
381
  border: 'none',
348
382
  color: '#FFFFFF',
349
383
  },
384
+ noStock: {
385
+ fontWeight: 600,
386
+ background: 'transparent',
387
+ border: '1px solid #3a3a3a4d',
388
+ color: '#3a3a3a4d',
389
+ },
350
390
  disabled: {
351
391
  border: '0.063rem solid #E5E5E5',
352
392
  },
@@ -400,10 +440,13 @@ var truekind = {
400
440
  },
401
441
  card: {
402
442
  borderRadius: '1.5rem',
443
+ backgroundColor: '#f7ece4',
403
444
  },
404
445
  radio: {
405
446
  borderColor: '#686872',
406
447
  background: '#FFFFFF',
448
+ textSize: '16px',
449
+ lineHeight: 'normal',
407
450
  size: {
408
451
  large: {
409
452
  borderWidth: '0.094rem',
@@ -432,6 +475,7 @@ var truekind = {
432
475
  },
433
476
  },
434
477
  label: {
478
+ color: '--colors-pallete-secondary-color',
435
479
  fontSize: {
436
480
  small: '0.625rem',
437
481
  medium: '0.75rem',
@@ -545,6 +589,7 @@ var truekind = {
545
589
  options: {
546
590
  borderColor: '#8BBEEA',
547
591
  color: '#292929',
592
+ borderRadius: '0.5rem',
548
593
  },
549
594
  },
550
595
  modal: {
@@ -558,6 +603,163 @@ var truekind = {
558
603
  selectedContrast: '--colors-semantic-positive-contrast',
559
604
  tagColor: '--colors-semantic-attention-color',
560
605
  },
606
+ slideNavigation: {
607
+ slideDots: {
608
+ unselectedDotColor: '--colors-shades-700-color:',
609
+ selectedDotColor: '--colors-shades-white-color',
610
+ dotsOpacity: 0.6,
611
+ },
612
+ },
613
+ beforeAfter: {
614
+ size: {
615
+ small: {
616
+ image: {
617
+ minHeight: 'auto',
618
+ minWidth: '92px',
619
+ mobile: {
620
+ minHeight: '138px',
621
+ minWidth: '128px',
622
+ },
623
+ },
624
+ imageContainer: {
625
+ maxWidth: '214px',
626
+ padding: '12px',
627
+ mobile: {
628
+ maxWidth: '286px',
629
+ },
630
+ },
631
+ userInfoText: {
632
+ fontSize: '12px',
633
+ mobile: {
634
+ fontSize: '12px',
635
+ },
636
+ },
637
+ },
638
+ medium: {
639
+ image: {
640
+ minHeight: '200px',
641
+ minWidth: '187px',
642
+ mobile: {
643
+ minHeight: '157px',
644
+ minWidth: '150px',
645
+ },
646
+ },
647
+ imageContainer: {
648
+ maxWidth: '427px',
649
+ padding: '18px',
650
+ mobile: {
651
+ maxWidth: '342px',
652
+ },
653
+ },
654
+ userInfoText: {
655
+ fontSize: '18px',
656
+ mobile: {
657
+ fontSize: '14px',
658
+ },
659
+ },
660
+ },
661
+ large: {
662
+ image: {
663
+ minHeight: '200px',
664
+ minWidth: '187px',
665
+ mobile: {
666
+ minHeight: '157px',
667
+ minWidth: '150px',
668
+ },
669
+ },
670
+ imageContainer: {
671
+ maxWidth: '427px',
672
+ padding: '18px',
673
+ mobile: {
674
+ maxWidth: '342px',
675
+ },
676
+ },
677
+ userInfoText: {
678
+ fontSize: '18px',
679
+ mobile: {
680
+ fontSize: '14px',
681
+ },
682
+ },
683
+ },
684
+ },
685
+ },
686
+ total: {
687
+ basicTotal: {
688
+ amount: {
689
+ color: '--colors-shades-550-color',
690
+ fontSize: '24px',
691
+ },
692
+ currency: {
693
+ color: '--colors-shades-550-color',
694
+ fontSize: '14px',
695
+ lineHeight: '22px',
696
+ alignSelf: 'flex-end',
697
+ },
698
+ savings: {
699
+ textFontSize: '16px',
700
+ textLineHeight: '24px',
701
+ amountFontSize: '16px',
702
+ amountFontWeight: 600,
703
+ amountLineHeight: '24px',
704
+ color: '--colors-semantic-positive-color',
705
+ },
706
+ },
707
+ },
708
+ subTotal: {
709
+ basicSubTotal: {
710
+ family: 'Jost',
711
+ size: '14px',
712
+ weight: 600,
713
+ lineHeight: '22px',
714
+ color: '--colors-shades-550-color',
715
+ },
716
+ },
717
+ pricing: {
718
+ priceLabel: {
719
+ price: {
720
+ size: ComponentSize.Small,
721
+ originalPriceColor: '--colors-shades-300-color',
722
+ actualPriceColor: '--colors-semantic-urgent-color',
723
+ },
724
+ },
725
+ },
726
+ orderSummary: {
727
+ backgroundColor: '--colors-shades-5-color',
728
+ padding: '',
729
+ borderRadius: '',
730
+ maxWidth: '460px',
731
+ onMobile: {
732
+ maxWidth: '100%',
733
+ padding: '15px',
734
+ },
735
+ },
736
+ expressCheckout: {
737
+ fontFamily: '-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica,Arial, sans-serif',
738
+ fontWeight: 500,
739
+ lineHeight: '16px',
740
+ },
741
+ copyrightText: {
742
+ fontSize: '16px',
743
+ fontWeight: 400,
744
+ lineHeight: '24px',
745
+ color: '--colors-pallete-secondary-color',
746
+ },
747
+ textButton: {
748
+ fontWeight: 500,
749
+ lineHeight: 'normal',
750
+ },
751
+ deliveryDetails: {
752
+ note: {
753
+ accentColor: '--colors-semantic-urgent-color',
754
+ color: '--colors-text-color',
755
+ backgroundColor: '--colors-pallete-primary-20-color',
756
+ },
757
+ },
758
+ text: {
759
+ orderHeader: {
760
+ color: '--colors-pallete-primary-color',
761
+ },
762
+ },
561
763
  },
562
764
  fonts: {
563
765
  url: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/fonts/truekind',
@@ -684,6 +886,10 @@ var truekind = {
684
886
  images: {
685
887
  favicon: 'https://cdn.shopify.com/s/files/1/2679/8624/files/shapermint_favicon-128x128.png',
686
888
  logo: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/images/shapermint/shapermint_logo_black.svg',
889
+ logoSize: {
890
+ width: '230',
891
+ height: '46',
892
+ },
687
893
  },
688
894
  },
689
895
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Trafilea's Design System",
4
4
  "author": "Trafilea",
5
5
  "repository": "https://github.com/trafilea/afrodita-components",
6
- "version": "5.0.0-beta.16",
6
+ "version": "5.0.0-beta.160",
7
7
  "private": false,
8
8
  "main": "build/index.js",
9
9
  "style": "build/index.css",
@@ -13,14 +13,14 @@
13
13
  "build"
14
14
  ],
15
15
  "dependencies": {
16
- "@ant-design/react-slick": "^0.28.4",
16
+ "@ant-design/react-slick": "^0.29.2",
17
17
  "@emotion/react": "^11.4.0",
18
18
  "@emotion/styled": "^11.3.0",
19
19
  "@headlessui/react": "^1.4.0",
20
20
  "@ribeirolabs/events": "3.0.0",
21
21
  "facepaint": "^1.2.1",
22
22
  "html-react-parser": "1.4.8",
23
- "react-swipeable": "6.2.0",
23
+ "react-inner-image-zoom": "^3.0.2",
24
24
  "typescript": "^4.3.5"
25
25
  },
26
26
  "scripts": {
@@ -85,6 +85,7 @@
85
85
  "@types/node": "^12.20.17",
86
86
  "@types/react": "^17.0.15",
87
87
  "@types/react-dom": "^17.0.9",
88
+ "@types/react-inner-image-zoom": "^3.0.0",
88
89
  "@types/react-slick": "^0.23.7",
89
90
  "chromatic": "^5.9.2",
90
91
  "eslint": "^7.31.0",