@trafilea/afrodita-components 5.0.0-beta.15 → 5.0.0-beta.151

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;
@@ -138,6 +139,12 @@ declare type ThemeComponent = {
138
139
  lineHeight: string;
139
140
  border: string;
140
141
  boxShadow: string;
142
+ errorBorder: string;
143
+ };
144
+ inputPlaceholder: {
145
+ fontSize: string;
146
+ padding: string;
147
+ focusBorder: string;
141
148
  };
142
149
  inputCustom: {
143
150
  button: {
@@ -170,6 +177,12 @@ declare type ThemeComponent = {
170
177
  border: string;
171
178
  color: string;
172
179
  };
180
+ noStock: {
181
+ fontWeight: number;
182
+ background: string;
183
+ border: string;
184
+ color: string;
185
+ };
173
186
  disabled: {
174
187
  border: string;
175
188
  };
@@ -223,10 +236,13 @@ declare type ThemeComponent = {
223
236
  };
224
237
  card: {
225
238
  borderRadius: string;
239
+ backgroundColor: string;
226
240
  };
227
241
  radio: {
228
242
  borderColor: string;
229
243
  background: string;
244
+ textSize: string;
245
+ lineHeight: string;
230
246
  size: {
231
247
  small: {
232
248
  borderWidth: string;
@@ -255,6 +271,7 @@ declare type ThemeComponent = {
255
271
  };
256
272
  };
257
273
  label: {
274
+ color: string;
258
275
  fontSize: {
259
276
  small: string;
260
277
  medium: string;
@@ -368,6 +385,7 @@ declare type ThemeComponent = {
368
385
  options: {
369
386
  borderColor: string;
370
387
  color: string;
388
+ borderRadius: string;
371
389
  };
372
390
  };
373
391
  modal: {
@@ -381,6 +399,164 @@ declare type ThemeComponent = {
381
399
  selectedContrast: string;
382
400
  tagColor: string;
383
401
  };
402
+ slideNavigation: {
403
+ slideDots: {
404
+ unselectedDotColor: string;
405
+ selectedDotColor: string;
406
+ dotsOpacity: number;
407
+ };
408
+ };
409
+ beforeAfter: {
410
+ size: {
411
+ small: {
412
+ image: {
413
+ minHeight: string;
414
+ minWidth: string;
415
+ mobile: {
416
+ minHeight: string;
417
+ minWidth: string;
418
+ };
419
+ };
420
+ imageContainer: {
421
+ maxWidth: string;
422
+ padding: string;
423
+ mobile: {
424
+ maxWidth: string;
425
+ };
426
+ };
427
+ userInfoText: {
428
+ fontSize: string;
429
+ mobile: {
430
+ fontSize: string;
431
+ };
432
+ };
433
+ };
434
+ medium: {
435
+ image: {
436
+ minHeight: string;
437
+ minWidth: string;
438
+ mobile: {
439
+ minHeight: string;
440
+ minWidth: string;
441
+ };
442
+ };
443
+ imageContainer: {
444
+ maxWidth: string;
445
+ padding: string;
446
+ mobile: {
447
+ maxWidth: string;
448
+ };
449
+ };
450
+ userInfoText: {
451
+ fontSize: string;
452
+ mobile: {
453
+ fontSize: string;
454
+ };
455
+ };
456
+ };
457
+ large: {
458
+ image: {
459
+ minHeight: string;
460
+ minWidth: string;
461
+ mobile: {
462
+ minHeight: string;
463
+ minWidth: string;
464
+ };
465
+ };
466
+ imageContainer: {
467
+ maxWidth: string;
468
+ padding: string;
469
+ mobile: {
470
+ maxWidth: string;
471
+ };
472
+ };
473
+ userInfoText: {
474
+ fontSize: string;
475
+ mobile: {
476
+ fontSize: string;
477
+ };
478
+ };
479
+ };
480
+ };
481
+ };
482
+ total: {
483
+ basicTotal: {
484
+ amount: {
485
+ color: string;
486
+ fontSize: string;
487
+ };
488
+ currency: {
489
+ color: string;
490
+ fontSize: string;
491
+ lineHeight: string;
492
+ alignSelf?: string;
493
+ };
494
+ savings: {
495
+ textFontSize: string;
496
+ textLineHeight: string;
497
+ amountFontSize: string;
498
+ amountFontWeight: number;
499
+ amountLineHeight: string;
500
+ color?: string;
501
+ };
502
+ };
503
+ };
504
+ subTotal: {
505
+ basicSubTotal: {
506
+ family: string;
507
+ size: string;
508
+ weight: number;
509
+ lineHeight: string;
510
+ color: string;
511
+ };
512
+ };
513
+ pricing: {
514
+ priceLabel: {
515
+ price: {
516
+ size: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
517
+ originalPriceColor: string;
518
+ actualPriceColor: string;
519
+ };
520
+ };
521
+ };
522
+ orderSummary: {
523
+ backgroundColor: string;
524
+ maxWidth?: string;
525
+ padding?: string;
526
+ borderRadius?: string;
527
+ onMobile: {
528
+ maxWidth?: string;
529
+ padding?: string;
530
+ backgroundColor?: string;
531
+ };
532
+ };
533
+ expressCheckout: {
534
+ fontFamily: string;
535
+ fontWeight: number;
536
+ lineHeight: string;
537
+ };
538
+ copyrightText: {
539
+ fontSize: string;
540
+ fontWeight: number;
541
+ lineHeight: string;
542
+ color: string;
543
+ };
544
+ textButton: {
545
+ fontWeight: number;
546
+ lineHeight: string;
547
+ };
548
+ deliveryDetails: {
549
+ note: {
550
+ accentColor: string;
551
+ color: string;
552
+ backgroundColor: string;
553
+ };
554
+ };
555
+ text: {
556
+ orderHeader: {
557
+ color: string;
558
+ };
559
+ };
384
560
  };
385
561
  declare type ThemeTypography = {
386
562
  config: {
@@ -407,6 +583,11 @@ declare type ThemeAssets = {
407
583
  images: {
408
584
  favicon: string;
409
585
  logo: string;
586
+ logoSize?: {
587
+ width: string;
588
+ height: string;
589
+ };
590
+ logoMobile?: string;
410
591
  };
411
592
  [key: string]: any;
412
593
  };
@@ -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],
@@ -315,6 +341,12 @@ var truekind = {
315
341
  lineHeight: '1.5rem',
316
342
  border: '0.063rem solid #BBBBBB',
317
343
  boxShadow: '0 0 0 0.25rem #D9EEFF',
344
+ errorBorder: '0.09375rem solid #d3373c',
345
+ },
346
+ inputPlaceholder: {
347
+ fontSize: '0.875rem',
348
+ padding: '1.125rem 0.9375rem 0 0.9375rem',
349
+ focusBorder: '0.09375rem solid #1990c6',
318
350
  },
319
351
  inputCustom: {
320
352
  button: {
@@ -347,6 +379,12 @@ var truekind = {
347
379
  border: 'none',
348
380
  color: '#FFFFFF',
349
381
  },
382
+ noStock: {
383
+ fontWeight: 600,
384
+ background: 'transparent',
385
+ border: '1px solid #3a3a3a4d',
386
+ color: '#3a3a3a4d',
387
+ },
350
388
  disabled: {
351
389
  border: '0.063rem solid #E5E5E5',
352
390
  },
@@ -400,10 +438,13 @@ var truekind = {
400
438
  },
401
439
  card: {
402
440
  borderRadius: '1.5rem',
441
+ backgroundColor: '#f7ece4',
403
442
  },
404
443
  radio: {
405
444
  borderColor: '#686872',
406
445
  background: '#FFFFFF',
446
+ textSize: '16px',
447
+ lineHeight: 'normal',
407
448
  size: {
408
449
  large: {
409
450
  borderWidth: '0.094rem',
@@ -432,6 +473,7 @@ var truekind = {
432
473
  },
433
474
  },
434
475
  label: {
476
+ color: '--colors-pallete-secondary-color',
435
477
  fontSize: {
436
478
  small: '0.625rem',
437
479
  medium: '0.75rem',
@@ -545,6 +587,7 @@ var truekind = {
545
587
  options: {
546
588
  borderColor: '#8BBEEA',
547
589
  color: '#292929',
590
+ borderRadius: '0.5rem',
548
591
  },
549
592
  },
550
593
  modal: {
@@ -558,6 +601,163 @@ var truekind = {
558
601
  selectedContrast: '--colors-semantic-positive-contrast',
559
602
  tagColor: '--colors-semantic-attention-color',
560
603
  },
604
+ slideNavigation: {
605
+ slideDots: {
606
+ unselectedDotColor: '--colors-shades-700-color:',
607
+ selectedDotColor: '--colors-shades-white-color',
608
+ dotsOpacity: 0.6,
609
+ },
610
+ },
611
+ beforeAfter: {
612
+ size: {
613
+ small: {
614
+ image: {
615
+ minHeight: 'auto',
616
+ minWidth: '92px',
617
+ mobile: {
618
+ minHeight: '138px',
619
+ minWidth: '128px',
620
+ },
621
+ },
622
+ imageContainer: {
623
+ maxWidth: '214px',
624
+ padding: '12px',
625
+ mobile: {
626
+ maxWidth: '286px',
627
+ },
628
+ },
629
+ userInfoText: {
630
+ fontSize: '12px',
631
+ mobile: {
632
+ fontSize: '12px',
633
+ },
634
+ },
635
+ },
636
+ medium: {
637
+ image: {
638
+ minHeight: '200px',
639
+ minWidth: '187px',
640
+ mobile: {
641
+ minHeight: '157px',
642
+ minWidth: '150px',
643
+ },
644
+ },
645
+ imageContainer: {
646
+ maxWidth: '427px',
647
+ padding: '18px',
648
+ mobile: {
649
+ maxWidth: '342px',
650
+ },
651
+ },
652
+ userInfoText: {
653
+ fontSize: '18px',
654
+ mobile: {
655
+ fontSize: '14px',
656
+ },
657
+ },
658
+ },
659
+ large: {
660
+ image: {
661
+ minHeight: '200px',
662
+ minWidth: '187px',
663
+ mobile: {
664
+ minHeight: '157px',
665
+ minWidth: '150px',
666
+ },
667
+ },
668
+ imageContainer: {
669
+ maxWidth: '427px',
670
+ padding: '18px',
671
+ mobile: {
672
+ maxWidth: '342px',
673
+ },
674
+ },
675
+ userInfoText: {
676
+ fontSize: '18px',
677
+ mobile: {
678
+ fontSize: '14px',
679
+ },
680
+ },
681
+ },
682
+ },
683
+ },
684
+ total: {
685
+ basicTotal: {
686
+ amount: {
687
+ color: '--colors-shades-550-color',
688
+ fontSize: '24px',
689
+ },
690
+ currency: {
691
+ color: '--colors-shades-550-color',
692
+ fontSize: '14px',
693
+ lineHeight: '22px',
694
+ alignSelf: 'flex-end',
695
+ },
696
+ savings: {
697
+ textFontSize: '16px',
698
+ textLineHeight: '24px',
699
+ amountFontSize: '16px',
700
+ amountFontWeight: 600,
701
+ amountLineHeight: '24px',
702
+ color: '--colors-semantic-positive-color',
703
+ },
704
+ },
705
+ },
706
+ subTotal: {
707
+ basicSubTotal: {
708
+ family: 'Jost',
709
+ size: '14px',
710
+ weight: 600,
711
+ lineHeight: '22px',
712
+ color: '--colors-shades-550-color',
713
+ },
714
+ },
715
+ pricing: {
716
+ priceLabel: {
717
+ price: {
718
+ size: ComponentSize.Small,
719
+ originalPriceColor: '--colors-shades-300-color',
720
+ actualPriceColor: '--colors-semantic-urgent-color',
721
+ },
722
+ },
723
+ },
724
+ orderSummary: {
725
+ backgroundColor: '--colors-shades-5-color',
726
+ padding: '',
727
+ borderRadius: '',
728
+ maxWidth: '460px',
729
+ onMobile: {
730
+ maxWidth: '100%',
731
+ padding: '15px',
732
+ },
733
+ },
734
+ expressCheckout: {
735
+ fontFamily: '-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica,Arial, sans-serif',
736
+ fontWeight: 500,
737
+ lineHeight: '16px',
738
+ },
739
+ copyrightText: {
740
+ fontSize: '16px',
741
+ fontWeight: 400,
742
+ lineHeight: '24px',
743
+ color: '--colors-pallete-secondary-color',
744
+ },
745
+ textButton: {
746
+ fontWeight: 500,
747
+ lineHeight: 'normal',
748
+ },
749
+ deliveryDetails: {
750
+ note: {
751
+ accentColor: '--colors-semantic-urgent-color',
752
+ color: '--colors-text-color',
753
+ backgroundColor: '--colors-pallete-primary-20-color',
754
+ },
755
+ },
756
+ text: {
757
+ orderHeader: {
758
+ color: '--colors-pallete-primary-color',
759
+ },
760
+ },
561
761
  },
562
762
  fonts: {
563
763
  url: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/fonts/truekind',
@@ -684,6 +884,10 @@ var truekind = {
684
884
  images: {
685
885
  favicon: 'https://cdn.shopify.com/s/files/1/2679/8624/files/shapermint_favicon-128x128.png',
686
886
  logo: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/images/shapermint/shapermint_logo_black.svg',
887
+ logoSize: {
888
+ width: '230',
889
+ height: '46',
890
+ },
687
891
  },
688
892
  },
689
893
  };
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.15",
6
+ "version": "5.0.0-beta.151",
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",