@trafilea/afrodita-components 5.0.0-beta.17 → 5.0.0-beta.170

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;
@@ -138,6 +143,12 @@ declare type ThemeComponent = {
138
143
  lineHeight: string;
139
144
  border: string;
140
145
  boxShadow: string;
146
+ errorBorder: string;
147
+ };
148
+ inputPlaceholder: {
149
+ fontSize: string;
150
+ padding: string;
151
+ focusBorder: string;
141
152
  };
142
153
  inputCustom: {
143
154
  button: {
@@ -170,6 +181,12 @@ declare type ThemeComponent = {
170
181
  border: string;
171
182
  color: string;
172
183
  };
184
+ noStock: {
185
+ fontWeight: number;
186
+ background: string;
187
+ border: string;
188
+ color: string;
189
+ };
173
190
  disabled: {
174
191
  border: string;
175
192
  };
@@ -223,10 +240,13 @@ declare type ThemeComponent = {
223
240
  };
224
241
  card: {
225
242
  borderRadius: string;
243
+ backgroundColor: string;
226
244
  };
227
245
  radio: {
228
246
  borderColor: string;
229
247
  background: string;
248
+ textSize: string;
249
+ lineHeight: string;
230
250
  size: {
231
251
  small: {
232
252
  borderWidth: string;
@@ -255,6 +275,7 @@ declare type ThemeComponent = {
255
275
  };
256
276
  };
257
277
  label: {
278
+ color: string;
258
279
  fontSize: {
259
280
  small: string;
260
281
  medium: string;
@@ -368,6 +389,7 @@ declare type ThemeComponent = {
368
389
  options: {
369
390
  borderColor: string;
370
391
  color: string;
392
+ borderRadius: string;
371
393
  };
372
394
  };
373
395
  modal: {
@@ -381,6 +403,168 @@ declare type ThemeComponent = {
381
403
  selectedContrast: string;
382
404
  tagColor: string;
383
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
+ };
384
568
  };
385
569
  declare type ThemeTypography = {
386
570
  config: {
@@ -407,6 +591,11 @@ declare type ThemeAssets = {
407
591
  images: {
408
592
  favicon: string;
409
593
  logo: string;
594
+ logoSize?: {
595
+ width: string;
596
+ height: string;
597
+ };
598
+ logoMobile?: string;
410
599
  };
411
600
  [key: string]: any;
412
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 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,10 @@ var truekind = {
269
295
  border: 'none',
270
296
  borderRadius: '1.5rem',
271
297
  fontWeight: 700,
298
+ lineHeight: 'normal',
299
+ letterSpacing: 'normal',
300
+ minWidth: 'unset',
301
+ minHeight: 'unset',
272
302
  size: {
273
303
  small: {
274
304
  fontSize: '1rem',
@@ -315,6 +345,12 @@ var truekind = {
315
345
  lineHeight: '1.5rem',
316
346
  border: '0.063rem solid #BBBBBB',
317
347
  boxShadow: '0 0 0 0.25rem #D9EEFF',
348
+ errorBorder: '0.09375rem solid #d3373c',
349
+ },
350
+ inputPlaceholder: {
351
+ fontSize: '0.875rem',
352
+ padding: '1.125rem 0.9375rem 0 0.9375rem',
353
+ focusBorder: '0.09375rem solid #1990c6',
318
354
  },
319
355
  inputCustom: {
320
356
  button: {
@@ -347,6 +383,12 @@ var truekind = {
347
383
  border: 'none',
348
384
  color: '#FFFFFF',
349
385
  },
386
+ noStock: {
387
+ fontWeight: 600,
388
+ background: 'transparent',
389
+ border: '1px solid #3a3a3a4d',
390
+ color: '#3a3a3a4d',
391
+ },
350
392
  disabled: {
351
393
  border: '0.063rem solid #E5E5E5',
352
394
  },
@@ -400,10 +442,13 @@ var truekind = {
400
442
  },
401
443
  card: {
402
444
  borderRadius: '1.5rem',
445
+ backgroundColor: '#f7ece4',
403
446
  },
404
447
  radio: {
405
448
  borderColor: '#686872',
406
449
  background: '#FFFFFF',
450
+ textSize: '16px',
451
+ lineHeight: 'normal',
407
452
  size: {
408
453
  large: {
409
454
  borderWidth: '0.094rem',
@@ -432,6 +477,7 @@ var truekind = {
432
477
  },
433
478
  },
434
479
  label: {
480
+ color: '--colors-pallete-secondary-color',
435
481
  fontSize: {
436
482
  small: '0.625rem',
437
483
  medium: '0.75rem',
@@ -545,6 +591,7 @@ var truekind = {
545
591
  options: {
546
592
  borderColor: '#8BBEEA',
547
593
  color: '#292929',
594
+ borderRadius: '0.5rem',
548
595
  },
549
596
  },
550
597
  modal: {
@@ -558,6 +605,164 @@ var truekind = {
558
605
  selectedContrast: '--colors-semantic-positive-contrast',
559
606
  tagColor: '--colors-semantic-attention-color',
560
607
  },
608
+ slideNavigation: {
609
+ slideDots: {
610
+ unselectedDotColor: '--colors-shades-700-color:',
611
+ selectedDotColor: '--colors-shades-white-color',
612
+ dotsOpacity: 0.6,
613
+ },
614
+ },
615
+ beforeAfter: {
616
+ size: {
617
+ small: {
618
+ image: {
619
+ minHeight: 'auto',
620
+ minWidth: '92px',
621
+ mobile: {
622
+ minHeight: '138px',
623
+ minWidth: '128px',
624
+ },
625
+ },
626
+ imageContainer: {
627
+ maxWidth: '214px',
628
+ padding: '12px',
629
+ mobile: {
630
+ maxWidth: '286px',
631
+ },
632
+ },
633
+ userInfoText: {
634
+ fontSize: '12px',
635
+ mobile: {
636
+ fontSize: '12px',
637
+ },
638
+ },
639
+ },
640
+ medium: {
641
+ image: {
642
+ minHeight: '200px',
643
+ minWidth: '187px',
644
+ mobile: {
645
+ minHeight: '157px',
646
+ minWidth: '150px',
647
+ },
648
+ },
649
+ imageContainer: {
650
+ maxWidth: '427px',
651
+ padding: '18px',
652
+ mobile: {
653
+ maxWidth: '342px',
654
+ },
655
+ },
656
+ userInfoText: {
657
+ fontSize: '18px',
658
+ mobile: {
659
+ fontSize: '14px',
660
+ },
661
+ },
662
+ },
663
+ large: {
664
+ image: {
665
+ minHeight: '200px',
666
+ minWidth: '187px',
667
+ mobile: {
668
+ minHeight: '157px',
669
+ minWidth: '150px',
670
+ },
671
+ },
672
+ imageContainer: {
673
+ maxWidth: '427px',
674
+ padding: '18px',
675
+ mobile: {
676
+ maxWidth: '342px',
677
+ },
678
+ },
679
+ userInfoText: {
680
+ fontSize: '18px',
681
+ mobile: {
682
+ fontSize: '14px',
683
+ },
684
+ },
685
+ },
686
+ },
687
+ },
688
+ total: {
689
+ basicTotal: {
690
+ amount: {
691
+ color: '--colors-shades-550-color',
692
+ fontSize: '24px',
693
+ },
694
+ currency: {
695
+ color: '--colors-shades-550-color',
696
+ fontSize: '14px',
697
+ lineHeight: '22px',
698
+ alignSelf: 'flex-end',
699
+ },
700
+ savings: {
701
+ textFontSize: '16px',
702
+ textLineHeight: '24px',
703
+ amountFontSize: '16px',
704
+ amountFontWeight: 600,
705
+ amountLineHeight: '24px',
706
+ color: '--colors-semantic-positive-color',
707
+ },
708
+ },
709
+ },
710
+ subTotal: {
711
+ basicSubTotal: {
712
+ family: 'Jost',
713
+ size: '14px',
714
+ weight: 600,
715
+ lineHeight: '22px',
716
+ color: '--colors-shades-550-color',
717
+ },
718
+ },
719
+ pricing: {
720
+ priceLabel: {
721
+ price: {
722
+ size: ComponentSize.Small,
723
+ originalPriceColor: '--colors-shades-300-color',
724
+ actualPriceColor: '--colors-semantic-urgent-color',
725
+ },
726
+ },
727
+ },
728
+ orderSummary: {
729
+ headingTextAlign: 'left',
730
+ backgroundColor: '--colors-shades-5-color',
731
+ padding: '',
732
+ borderRadius: '',
733
+ maxWidth: '460px',
734
+ onMobile: {
735
+ maxWidth: '100%',
736
+ padding: '15px',
737
+ },
738
+ },
739
+ expressCheckout: {
740
+ fontFamily: '-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica,Arial, sans-serif',
741
+ fontWeight: 500,
742
+ lineHeight: '16px',
743
+ },
744
+ copyrightText: {
745
+ fontSize: '16px',
746
+ fontWeight: 400,
747
+ lineHeight: '24px',
748
+ color: '--colors-pallete-secondary-color',
749
+ },
750
+ textButton: {
751
+ fontWeight: 500,
752
+ lineHeight: 'normal',
753
+ },
754
+ deliveryDetails: {
755
+ note: {
756
+ accentColor: '--colors-semantic-urgent-color',
757
+ color: '--colors-text-color',
758
+ backgroundColor: '--colors-pallete-primary-20-color',
759
+ },
760
+ },
761
+ text: {
762
+ orderHeader: {
763
+ color: '--colors-pallete-primary-color',
764
+ },
765
+ },
561
766
  },
562
767
  fonts: {
563
768
  url: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/fonts/truekind',
@@ -684,6 +889,10 @@ var truekind = {
684
889
  images: {
685
890
  favicon: 'https://cdn.shopify.com/s/files/1/2679/8624/files/shapermint_favicon-128x128.png',
686
891
  logo: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/images/shapermint/shapermint_logo_black.svg',
892
+ logoSize: {
893
+ width: '230',
894
+ height: '46',
895
+ },
687
896
  },
688
897
  },
689
898
  };
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.17",
6
+ "version": "5.0.0-beta.170",
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",