@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 shapermint = {
30
56
  name: 'Shapermint',
31
57
  fontSizes: [10, 12, 14, 16, 18, 20, 24, 30, 36, 42, 52, 60, 68, 72, 76],
@@ -120,6 +146,14 @@ var shapermint = {
120
146
  contrast: '--colors-shades-700-color',
121
147
  },
122
148
  } }),
149
+ wine: {
150
+ color: '#882A2B',
151
+ contrast: '--colors-shades-white-color',
152
+ soft: {
153
+ color: '#DBBFBF',
154
+ contrast: '--colors-text-color',
155
+ },
156
+ },
123
157
  creamy: {
124
158
  color: '#FFE9D8',
125
159
  contrast: '--colors-text-color',
@@ -188,6 +222,10 @@ var shapermint = {
188
222
  border: 'none',
189
223
  borderRadius: '0.5rem',
190
224
  fontWeight: 600,
225
+ lineHeight: 'normal',
226
+ letterSpacing: 'normal',
227
+ minWidth: 'unset',
228
+ minHeight: 'unset',
191
229
  size: {
192
230
  small: {
193
231
  fontSize: '0.75rem',
@@ -234,6 +272,12 @@ var shapermint = {
234
272
  lineHeight: '1.5rem',
235
273
  border: '0.063rem solid var(--colors-shades-200-color)',
236
274
  boxShadow: 'none',
275
+ errorBorder: '0.09375rem solid #d3373c',
276
+ },
277
+ inputPlaceholder: {
278
+ fontSize: '0.875rem',
279
+ padding: '1.125rem 0.9375rem 0 0.9375rem',
280
+ focusBorder: '0.09375rem solid #1990c6',
237
281
  },
238
282
  inputCustom: {
239
283
  button: {
@@ -266,6 +310,12 @@ var shapermint = {
266
310
  border: 'none',
267
311
  color: '--colors-shades-white-color',
268
312
  },
313
+ noStock: {
314
+ fontWeight: 600,
315
+ background: 'transparent',
316
+ border: '1px solid #3a3a3a4d',
317
+ color: '#3a3a3a4d',
318
+ },
269
319
  disabled: {
270
320
  border: 'none',
271
321
  },
@@ -319,10 +369,13 @@ var shapermint = {
319
369
  },
320
370
  card: {
321
371
  borderRadius: '0.5rem',
372
+ backgroundColor: '#f7ece4',
322
373
  },
323
374
  radio: {
324
375
  borderColor: '--colors-shades-700-color',
325
376
  background: '--colors-shades-white-color',
377
+ textSize: '16px',
378
+ lineHeight: 'normal',
326
379
  size: {
327
380
  large: {
328
381
  borderWidth: '0.094rem',
@@ -351,6 +404,7 @@ var shapermint = {
351
404
  },
352
405
  },
353
406
  label: {
407
+ color: '--colors-pallete-secondary-color',
354
408
  fontSize: {
355
409
  small: '0.75rem',
356
410
  medium: '0.75rem',
@@ -464,6 +518,7 @@ var shapermint = {
464
518
  options: {
465
519
  borderColor: '--colors-shades-700-color',
466
520
  color: '--colors-shades-700-color',
521
+ borderRadius: '0.5rem',
467
522
  },
468
523
  },
469
524
  modal: {
@@ -477,6 +532,164 @@ var shapermint = {
477
532
  selectedContrast: '--colors-semantic-positive-contrast',
478
533
  tagColor: '--colors-semantic-attention-color',
479
534
  },
535
+ slideNavigation: {
536
+ slideDots: {
537
+ unselectedDotColor: '--colors-shades-700-color',
538
+ selectedDotColor: '--colors-shades-white-color',
539
+ dotsOpacity: 0.6,
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-shades-550-color',
619
+ fontSize: '24px',
620
+ },
621
+ currency: {
622
+ color: '--colors-shades-550-color',
623
+ fontSize: '14px',
624
+ lineHeight: '22px',
625
+ alignSelf: 'flex-end',
626
+ },
627
+ savings: {
628
+ textFontSize: '16px',
629
+ textLineHeight: '24px',
630
+ amountFontSize: '16px',
631
+ amountFontWeight: 600,
632
+ amountLineHeight: '24px',
633
+ color: '--colors-semantic-positive-color',
634
+ },
635
+ },
636
+ },
637
+ subTotal: {
638
+ basicSubTotal: {
639
+ family: 'Jost',
640
+ size: '16px',
641
+ weight: 600,
642
+ lineHeight: '22px',
643
+ color: '--colors-shades-550-color',
644
+ },
645
+ },
646
+ pricing: {
647
+ priceLabel: {
648
+ price: {
649
+ size: ComponentSize.Small,
650
+ originalPriceColor: '--colors-shades-300-color',
651
+ actualPriceColor: '--colors-semantic-urgent-color',
652
+ },
653
+ },
654
+ },
655
+ orderSummary: {
656
+ headingTextAlign: 'left',
657
+ backgroundColor: '--colors-shades-5-color',
658
+ padding: '',
659
+ borderRadius: '',
660
+ maxWidth: '460px',
661
+ onMobile: {
662
+ maxWidth: '100%',
663
+ padding: '15px',
664
+ },
665
+ },
666
+ expressCheckout: {
667
+ fontFamily: '-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica,Arial, sans-serif',
668
+ fontWeight: 500,
669
+ lineHeight: '16px',
670
+ },
671
+ copyrightText: {
672
+ fontSize: '16px',
673
+ fontWeight: 400,
674
+ lineHeight: '24px',
675
+ color: '--colors-pallete-secondary-color',
676
+ },
677
+ textButton: {
678
+ fontWeight: 500,
679
+ lineHeight: 'normal',
680
+ },
681
+ deliveryDetails: {
682
+ note: {
683
+ accentColor: '--colors-semantic-urgent-color',
684
+ color: '--colors-text-color',
685
+ backgroundColor: '--colors-pallete-primary-20-color',
686
+ },
687
+ },
688
+ text: {
689
+ orderHeader: {
690
+ color: '--colors-pallete-primary-color',
691
+ },
692
+ },
480
693
  },
481
694
  typography: {
482
695
  config: {
@@ -687,7 +900,11 @@ var shapermint = {
687
900
  assets: {
688
901
  images: {
689
902
  favicon: 'https://cdn.shopify.com/s/files/1/2679/8624/files/shapermint_favicon-128x128.png',
690
- logo: 'https://cdn.jsdelivr.net/gh/igor-ribeiro/storefront-static@main/images/shapermint/shapermint_logo_black.svg',
903
+ logo: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/images/shapermint/shapermint_logo_black.svg',
904
+ logoSize: {
905
+ width: '230',
906
+ height: '46',
907
+ },
691
908
  },
692
909
  },
693
910
  };