@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 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,8 @@ var shapermint = {
188
222
  border: 'none',
189
223
  borderRadius: '0.5rem',
190
224
  fontWeight: 600,
225
+ lineHeight: 'normal',
226
+ letterSpacing: 'normal',
191
227
  size: {
192
228
  small: {
193
229
  fontSize: '0.75rem',
@@ -234,6 +270,12 @@ var shapermint = {
234
270
  lineHeight: '1.5rem',
235
271
  border: '0.063rem solid var(--colors-shades-200-color)',
236
272
  boxShadow: 'none',
273
+ errorBorder: '0.09375rem solid #d3373c',
274
+ },
275
+ inputPlaceholder: {
276
+ fontSize: '0.875rem',
277
+ padding: '1.125rem 0.9375rem 0 0.9375rem',
278
+ focusBorder: '0.09375rem solid #1990c6',
237
279
  },
238
280
  inputCustom: {
239
281
  button: {
@@ -266,6 +308,12 @@ var shapermint = {
266
308
  border: 'none',
267
309
  color: '--colors-shades-white-color',
268
310
  },
311
+ noStock: {
312
+ fontWeight: 600,
313
+ background: 'transparent',
314
+ border: '1px solid #3a3a3a4d',
315
+ color: '#3a3a3a4d',
316
+ },
269
317
  disabled: {
270
318
  border: 'none',
271
319
  },
@@ -319,10 +367,13 @@ var shapermint = {
319
367
  },
320
368
  card: {
321
369
  borderRadius: '0.5rem',
370
+ backgroundColor: '#f7ece4',
322
371
  },
323
372
  radio: {
324
373
  borderColor: '--colors-shades-700-color',
325
374
  background: '--colors-shades-white-color',
375
+ textSize: '16px',
376
+ lineHeight: 'normal',
326
377
  size: {
327
378
  large: {
328
379
  borderWidth: '0.094rem',
@@ -351,6 +402,7 @@ var shapermint = {
351
402
  },
352
403
  },
353
404
  label: {
405
+ color: '--colors-pallete-secondary-color',
354
406
  fontSize: {
355
407
  small: '0.75rem',
356
408
  medium: '0.75rem',
@@ -464,6 +516,7 @@ var shapermint = {
464
516
  options: {
465
517
  borderColor: '--colors-shades-700-color',
466
518
  color: '--colors-shades-700-color',
519
+ borderRadius: '0.5rem',
467
520
  },
468
521
  },
469
522
  modal: {
@@ -477,6 +530,163 @@ var shapermint = {
477
530
  selectedContrast: '--colors-semantic-positive-contrast',
478
531
  tagColor: '--colors-semantic-attention-color',
479
532
  },
533
+ slideNavigation: {
534
+ slideDots: {
535
+ unselectedDotColor: '--colors-shades-700-color',
536
+ selectedDotColor: '--colors-shades-white-color',
537
+ dotsOpacity: 0.6,
538
+ },
539
+ },
540
+ beforeAfter: {
541
+ size: {
542
+ small: {
543
+ image: {
544
+ minHeight: 'auto',
545
+ minWidth: '92px',
546
+ mobile: {
547
+ minHeight: '138px',
548
+ minWidth: '128px',
549
+ },
550
+ },
551
+ imageContainer: {
552
+ maxWidth: '214px',
553
+ padding: '12px',
554
+ mobile: {
555
+ maxWidth: '286px',
556
+ },
557
+ },
558
+ userInfoText: {
559
+ fontSize: '12px',
560
+ mobile: {
561
+ fontSize: '12px',
562
+ },
563
+ },
564
+ },
565
+ medium: {
566
+ image: {
567
+ minHeight: '200px',
568
+ minWidth: '187px',
569
+ mobile: {
570
+ minHeight: '157px',
571
+ minWidth: '150px',
572
+ },
573
+ },
574
+ imageContainer: {
575
+ maxWidth: '427px',
576
+ padding: '18px',
577
+ mobile: {
578
+ maxWidth: '342px',
579
+ },
580
+ },
581
+ userInfoText: {
582
+ fontSize: '18px',
583
+ mobile: {
584
+ fontSize: '14px',
585
+ },
586
+ },
587
+ },
588
+ large: {
589
+ image: {
590
+ minHeight: '200px',
591
+ minWidth: '187px',
592
+ mobile: {
593
+ minHeight: '157px',
594
+ minWidth: '150px',
595
+ },
596
+ },
597
+ imageContainer: {
598
+ maxWidth: '427px',
599
+ padding: '18px',
600
+ mobile: {
601
+ maxWidth: '342px',
602
+ },
603
+ },
604
+ userInfoText: {
605
+ fontSize: '18px',
606
+ mobile: {
607
+ fontSize: '14px',
608
+ },
609
+ },
610
+ },
611
+ },
612
+ },
613
+ total: {
614
+ basicTotal: {
615
+ amount: {
616
+ color: '--colors-shades-550-color',
617
+ fontSize: '24px',
618
+ },
619
+ currency: {
620
+ color: '--colors-shades-550-color',
621
+ fontSize: '14px',
622
+ lineHeight: '22px',
623
+ alignSelf: 'flex-end',
624
+ },
625
+ savings: {
626
+ textFontSize: '16px',
627
+ textLineHeight: '24px',
628
+ amountFontSize: '16px',
629
+ amountFontWeight: 600,
630
+ amountLineHeight: '24px',
631
+ color: '--colors-semantic-positive-color',
632
+ },
633
+ },
634
+ },
635
+ subTotal: {
636
+ basicSubTotal: {
637
+ family: 'Jost',
638
+ size: '16px',
639
+ weight: 600,
640
+ lineHeight: '22px',
641
+ color: '--colors-shades-550-color',
642
+ },
643
+ },
644
+ pricing: {
645
+ priceLabel: {
646
+ price: {
647
+ size: ComponentSize.Small,
648
+ originalPriceColor: '--colors-shades-300-color',
649
+ actualPriceColor: '--colors-semantic-urgent-color',
650
+ },
651
+ },
652
+ },
653
+ orderSummary: {
654
+ backgroundColor: '--colors-shades-5-color',
655
+ padding: '',
656
+ borderRadius: '',
657
+ maxWidth: '460px',
658
+ onMobile: {
659
+ maxWidth: '100%',
660
+ padding: '15px',
661
+ },
662
+ },
663
+ expressCheckout: {
664
+ fontFamily: '-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica,Arial, sans-serif',
665
+ fontWeight: 500,
666
+ lineHeight: '16px',
667
+ },
668
+ copyrightText: {
669
+ fontSize: '16px',
670
+ fontWeight: 400,
671
+ lineHeight: '24px',
672
+ color: '--colors-pallete-secondary-color',
673
+ },
674
+ textButton: {
675
+ fontWeight: 500,
676
+ lineHeight: 'normal',
677
+ },
678
+ deliveryDetails: {
679
+ note: {
680
+ accentColor: '--colors-semantic-urgent-color',
681
+ color: '--colors-text-color',
682
+ backgroundColor: '--colors-pallete-primary-20-color',
683
+ },
684
+ },
685
+ text: {
686
+ orderHeader: {
687
+ color: '--colors-pallete-primary-color',
688
+ },
689
+ },
480
690
  },
481
691
  typography: {
482
692
  config: {
@@ -687,7 +897,11 @@ var shapermint = {
687
897
  assets: {
688
898
  images: {
689
899
  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',
900
+ logo: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/images/shapermint/shapermint_logo_black.svg',
901
+ logoSize: {
902
+ width: '230',
903
+ height: '46',
904
+ },
691
905
  },
692
906
  },
693
907
  };