@trafilea/afrodita-components 5.0.0-beta.21 → 5.0.0-beta.211

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,7 @@ declare type ThemeColors = {
77
81
  color: string;
78
82
  disabled: string;
79
83
  highlight: string;
84
+ shadow?: string;
80
85
  };
81
86
  background: {
82
87
  color: string;
@@ -92,6 +97,10 @@ declare type ThemeComponent = {
92
97
  border: string;
93
98
  borderRadius: string;
94
99
  fontWeight: number;
100
+ lineHeight: string;
101
+ letterSpacing: string;
102
+ minWidth: string;
103
+ minHeight: string;
95
104
  size: {
96
105
  small: {
97
106
  fontSize: string;
@@ -138,6 +147,12 @@ declare type ThemeComponent = {
138
147
  lineHeight: string;
139
148
  border: string;
140
149
  boxShadow: string;
150
+ errorBorder: string;
151
+ };
152
+ inputPlaceholder: {
153
+ fontSize: string;
154
+ padding: string;
155
+ focusBorder: string;
141
156
  };
142
157
  inputCustom: {
143
158
  button: {
@@ -170,6 +185,12 @@ declare type ThemeComponent = {
170
185
  border: string;
171
186
  color: string;
172
187
  };
188
+ noStock: {
189
+ fontWeight: number;
190
+ background: string;
191
+ border: string;
192
+ color: string;
193
+ };
173
194
  disabled: {
174
195
  border: string;
175
196
  };
@@ -223,10 +244,13 @@ declare type ThemeComponent = {
223
244
  };
224
245
  card: {
225
246
  borderRadius: string;
247
+ backgroundColor: string;
226
248
  };
227
249
  radio: {
228
250
  borderColor: string;
229
251
  background: string;
252
+ textSize: string;
253
+ lineHeight: string;
230
254
  size: {
231
255
  small: {
232
256
  borderWidth: string;
@@ -255,6 +279,7 @@ declare type ThemeComponent = {
255
279
  };
256
280
  };
257
281
  label: {
282
+ color: string;
258
283
  fontSize: {
259
284
  small: string;
260
285
  medium: string;
@@ -363,11 +388,13 @@ declare type ThemeComponent = {
363
388
  fontWeight: number;
364
389
  lineHeight: string;
365
390
  padding: string;
391
+ optionPadding: string;
366
392
  color: string;
367
393
  fill: string;
368
394
  options: {
369
395
  borderColor: string;
370
396
  color: string;
397
+ borderRadius: string;
371
398
  };
372
399
  };
373
400
  modal: {
@@ -381,6 +408,168 @@ declare type ThemeComponent = {
381
408
  selectedContrast: string;
382
409
  tagColor: string;
383
410
  };
411
+ slideNavigation: {
412
+ slideDots: {
413
+ unselectedDotColor: string;
414
+ selectedDotColor: string;
415
+ dotsOpacity: number;
416
+ };
417
+ };
418
+ beforeAfter: {
419
+ size: {
420
+ small: {
421
+ image: {
422
+ minHeight: string;
423
+ minWidth: string;
424
+ mobile: {
425
+ minHeight: string;
426
+ minWidth: string;
427
+ };
428
+ };
429
+ imageContainer: {
430
+ maxWidth: string;
431
+ padding: string;
432
+ mobile: {
433
+ maxWidth: string;
434
+ };
435
+ };
436
+ userInfoText: {
437
+ fontSize: string;
438
+ mobile: {
439
+ fontSize: string;
440
+ };
441
+ };
442
+ };
443
+ medium: {
444
+ image: {
445
+ minHeight: string;
446
+ minWidth: string;
447
+ mobile: {
448
+ minHeight: string;
449
+ minWidth: string;
450
+ };
451
+ };
452
+ imageContainer: {
453
+ maxWidth: string;
454
+ padding: string;
455
+ mobile: {
456
+ maxWidth: string;
457
+ };
458
+ };
459
+ userInfoText: {
460
+ fontSize: string;
461
+ mobile: {
462
+ fontSize: string;
463
+ };
464
+ };
465
+ };
466
+ large: {
467
+ image: {
468
+ minHeight: string;
469
+ minWidth: string;
470
+ mobile: {
471
+ minHeight: string;
472
+ minWidth: string;
473
+ };
474
+ };
475
+ imageContainer: {
476
+ maxWidth: string;
477
+ padding: string;
478
+ mobile: {
479
+ maxWidth: string;
480
+ };
481
+ };
482
+ userInfoText: {
483
+ fontSize: string;
484
+ mobile: {
485
+ fontSize: string;
486
+ };
487
+ };
488
+ };
489
+ };
490
+ };
491
+ total: {
492
+ basicTotal: {
493
+ amount: {
494
+ color: string;
495
+ fontSize: string;
496
+ };
497
+ currency: {
498
+ color: string;
499
+ fontSize: string;
500
+ lineHeight: string;
501
+ alignSelf?: string;
502
+ };
503
+ savings: {
504
+ textFontSize: string;
505
+ textLineHeight: string;
506
+ amountFontSize: string;
507
+ amountFontWeight: number;
508
+ amountLineHeight: string;
509
+ color?: string;
510
+ };
511
+ };
512
+ };
513
+ subTotal: {
514
+ basicSubTotal: {
515
+ family: string;
516
+ size: string;
517
+ weight: number;
518
+ lineHeight: string;
519
+ color: string;
520
+ };
521
+ };
522
+ pricing: {
523
+ priceLabel: {
524
+ price: {
525
+ size: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
526
+ originalPriceColor: string;
527
+ actualPriceColor: string;
528
+ };
529
+ };
530
+ };
531
+ orderSummary: {
532
+ headingTextAlign: string;
533
+ backgroundColor: string;
534
+ maxWidth?: string;
535
+ padding?: string;
536
+ borderRadius?: string;
537
+ onMobile: {
538
+ maxWidth?: string;
539
+ padding?: string;
540
+ backgroundColor?: string;
541
+ };
542
+ };
543
+ expressCheckout: {
544
+ fontFamily: string;
545
+ fontWeight: number;
546
+ lineHeight: string;
547
+ };
548
+ copyrightText: {
549
+ fontSize: string;
550
+ fontWeight: number;
551
+ lineHeight: string;
552
+ color: string;
553
+ };
554
+ textButton: {
555
+ fontWeight: number;
556
+ lineHeight: string;
557
+ };
558
+ deliveryDetails: {
559
+ note: {
560
+ accentColor: string;
561
+ color: string;
562
+ backgroundColor: string;
563
+ };
564
+ SectionDetails?: {
565
+ marginLeft: string;
566
+ };
567
+ };
568
+ text: {
569
+ orderHeader: {
570
+ color: string;
571
+ };
572
+ };
384
573
  };
385
574
  declare type ThemeTypography = {
386
575
  config: {
@@ -407,6 +596,11 @@ declare type ThemeAssets = {
407
596
  images: {
408
597
  favicon: string;
409
598
  logo: string;
599
+ logoSize?: {
600
+ width: string;
601
+ height: string;
602
+ };
603
+ logoMobile?: string;
410
604
  };
411
605
  [key: string]: any;
412
606
  };
@@ -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],
@@ -103,6 +129,7 @@ var truekind = {
103
129
  50: { color: '#efefef', contrast: '--colors-shades-700-color' },
104
130
  100: { color: '#e5e5e5', contrast: '--colors-shades-700-color' },
105
131
  150: { color: '#d1d1d1', contrast: '--colors-shades-700-color' },
132
+ 175: { color: '#c4c4c4', contrast: '--colors-shades-700-color' },
106
133
  200: { color: '#bbbbbb', contrast: '--colors-shades-700-color' },
107
134
  250: { color: '#a6a6a6', contrast: '--colors-shades-700-color' },
108
135
  300: { color: '#9e9e9e', contrast: '--colors-shades-700-color' },
@@ -269,6 +296,10 @@ var truekind = {
269
296
  border: 'none',
270
297
  borderRadius: '1.5rem',
271
298
  fontWeight: 700,
299
+ lineHeight: 'normal',
300
+ letterSpacing: 'normal',
301
+ minWidth: 'unset',
302
+ minHeight: 'unset',
272
303
  size: {
273
304
  small: {
274
305
  fontSize: '1rem',
@@ -315,6 +346,12 @@ var truekind = {
315
346
  lineHeight: '1.5rem',
316
347
  border: '0.063rem solid #BBBBBB',
317
348
  boxShadow: '0 0 0 0.25rem #D9EEFF',
349
+ errorBorder: '0.09375rem solid #d3373c',
350
+ },
351
+ inputPlaceholder: {
352
+ fontSize: '0.875rem',
353
+ padding: '1.125rem 0.9375rem 0 0.9375rem',
354
+ focusBorder: '0.09375rem solid #1990c6',
318
355
  },
319
356
  inputCustom: {
320
357
  button: {
@@ -347,6 +384,12 @@ var truekind = {
347
384
  border: 'none',
348
385
  color: '#FFFFFF',
349
386
  },
387
+ noStock: {
388
+ fontWeight: 600,
389
+ background: 'transparent',
390
+ border: '1px solid #3a3a3a4d',
391
+ color: '#3a3a3a4d',
392
+ },
350
393
  disabled: {
351
394
  border: '0.063rem solid #E5E5E5',
352
395
  },
@@ -400,10 +443,13 @@ var truekind = {
400
443
  },
401
444
  card: {
402
445
  borderRadius: '1.5rem',
446
+ backgroundColor: '#f7ece4',
403
447
  },
404
448
  radio: {
405
449
  borderColor: '#686872',
406
450
  background: '#FFFFFF',
451
+ textSize: '16px',
452
+ lineHeight: 'normal',
407
453
  size: {
408
454
  large: {
409
455
  borderWidth: '0.094rem',
@@ -432,6 +478,7 @@ var truekind = {
432
478
  },
433
479
  },
434
480
  label: {
481
+ color: '--colors-pallete-secondary-color',
435
482
  fontSize: {
436
483
  small: '0.625rem',
437
484
  medium: '0.75rem',
@@ -540,11 +587,13 @@ var truekind = {
540
587
  fontWeight: 600,
541
588
  lineHeight: '1.125rem',
542
589
  padding: '0.5rem 0.75rem 0.5rem 1rem',
590
+ optionPadding: '0.75rem 1rem 0.625rem 0.75rem',
543
591
  color: '#292929',
544
592
  fill: '#292929',
545
593
  options: {
546
594
  borderColor: '#8BBEEA',
547
595
  color: '#292929',
596
+ borderRadius: '0.5rem',
548
597
  },
549
598
  },
550
599
  modal: {
@@ -558,6 +607,164 @@ var truekind = {
558
607
  selectedContrast: '--colors-semantic-positive-contrast',
559
608
  tagColor: '--colors-semantic-attention-color',
560
609
  },
610
+ slideNavigation: {
611
+ slideDots: {
612
+ unselectedDotColor: '--colors-shades-700-color:',
613
+ selectedDotColor: '--colors-shades-white-color',
614
+ dotsOpacity: 0.6,
615
+ },
616
+ },
617
+ beforeAfter: {
618
+ size: {
619
+ small: {
620
+ image: {
621
+ minHeight: 'auto',
622
+ minWidth: '92px',
623
+ mobile: {
624
+ minHeight: '138px',
625
+ minWidth: '128px',
626
+ },
627
+ },
628
+ imageContainer: {
629
+ maxWidth: '214px',
630
+ padding: '12px',
631
+ mobile: {
632
+ maxWidth: '286px',
633
+ },
634
+ },
635
+ userInfoText: {
636
+ fontSize: '12px',
637
+ mobile: {
638
+ fontSize: '12px',
639
+ },
640
+ },
641
+ },
642
+ medium: {
643
+ image: {
644
+ minHeight: '200px',
645
+ minWidth: '187px',
646
+ mobile: {
647
+ minHeight: '157px',
648
+ minWidth: '150px',
649
+ },
650
+ },
651
+ imageContainer: {
652
+ maxWidth: '427px',
653
+ padding: '18px',
654
+ mobile: {
655
+ maxWidth: '342px',
656
+ },
657
+ },
658
+ userInfoText: {
659
+ fontSize: '18px',
660
+ mobile: {
661
+ fontSize: '14px',
662
+ },
663
+ },
664
+ },
665
+ large: {
666
+ image: {
667
+ minHeight: '200px',
668
+ minWidth: '187px',
669
+ mobile: {
670
+ minHeight: '157px',
671
+ minWidth: '150px',
672
+ },
673
+ },
674
+ imageContainer: {
675
+ maxWidth: '427px',
676
+ padding: '18px',
677
+ mobile: {
678
+ maxWidth: '342px',
679
+ },
680
+ },
681
+ userInfoText: {
682
+ fontSize: '18px',
683
+ mobile: {
684
+ fontSize: '14px',
685
+ },
686
+ },
687
+ },
688
+ },
689
+ },
690
+ total: {
691
+ basicTotal: {
692
+ amount: {
693
+ color: '--colors-shades-550-color',
694
+ fontSize: '24px',
695
+ },
696
+ currency: {
697
+ color: '--colors-shades-550-color',
698
+ fontSize: '14px',
699
+ lineHeight: '22px',
700
+ alignSelf: 'flex-end',
701
+ },
702
+ savings: {
703
+ textFontSize: '16px',
704
+ textLineHeight: '24px',
705
+ amountFontSize: '16px',
706
+ amountFontWeight: 600,
707
+ amountLineHeight: '24px',
708
+ color: '--colors-semantic-positive-color',
709
+ },
710
+ },
711
+ },
712
+ subTotal: {
713
+ basicSubTotal: {
714
+ family: 'Jost',
715
+ size: '14px',
716
+ weight: 600,
717
+ lineHeight: '22px',
718
+ color: '--colors-shades-550-color',
719
+ },
720
+ },
721
+ pricing: {
722
+ priceLabel: {
723
+ price: {
724
+ size: ComponentSize.Small,
725
+ originalPriceColor: '--colors-shades-300-color',
726
+ actualPriceColor: '--colors-semantic-urgent-color',
727
+ },
728
+ },
729
+ },
730
+ orderSummary: {
731
+ headingTextAlign: 'left',
732
+ backgroundColor: '--colors-shades-5-color',
733
+ padding: '',
734
+ borderRadius: '',
735
+ maxWidth: '460px',
736
+ onMobile: {
737
+ maxWidth: '100%',
738
+ padding: '15px',
739
+ },
740
+ },
741
+ expressCheckout: {
742
+ fontFamily: '-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica,Arial, sans-serif',
743
+ fontWeight: 500,
744
+ lineHeight: '16px',
745
+ },
746
+ copyrightText: {
747
+ fontSize: '16px',
748
+ fontWeight: 400,
749
+ lineHeight: '24px',
750
+ color: '--colors-pallete-secondary-color',
751
+ },
752
+ textButton: {
753
+ fontWeight: 500,
754
+ lineHeight: 'normal',
755
+ },
756
+ deliveryDetails: {
757
+ note: {
758
+ accentColor: '--colors-semantic-urgent-color',
759
+ color: '--colors-text-color',
760
+ backgroundColor: '--colors-pallete-primary-20-color',
761
+ },
762
+ },
763
+ text: {
764
+ orderHeader: {
765
+ color: '--colors-pallete-primary-color',
766
+ },
767
+ },
561
768
  },
562
769
  fonts: {
563
770
  url: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/fonts/truekind',
@@ -684,6 +891,10 @@ var truekind = {
684
891
  images: {
685
892
  favicon: 'https://cdn.shopify.com/s/files/1/2679/8624/files/shapermint_favicon-128x128.png',
686
893
  logo: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/images/shapermint/shapermint_logo_black.svg',
894
+ logoSize: {
895
+ width: '230',
896
+ height: '46',
897
+ },
687
898
  },
688
899
  },
689
900
  };