@trafilea/afrodita-components 5.0.0-beta.20 → 5.0.0-beta.200

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;
@@ -49,6 +50,7 @@ declare type ThemeColors = {
49
50
  50: ThemeBasicPallete;
50
51
  100: ThemeBasicPallete;
51
52
  150: ThemeBasicPallete;
53
+ 175: ThemeBasicPallete;
52
54
  200: ThemeBasicPallete;
53
55
  250: ThemeBasicPallete;
54
56
  300: ThemeBasicPallete;
@@ -92,6 +94,10 @@ declare type ThemeComponent = {
92
94
  border: string;
93
95
  borderRadius: string;
94
96
  fontWeight: number;
97
+ lineHeight: string;
98
+ letterSpacing: string;
99
+ minWidth: string;
100
+ minHeight: string;
95
101
  size: {
96
102
  small: {
97
103
  fontSize: string;
@@ -138,6 +144,12 @@ declare type ThemeComponent = {
138
144
  lineHeight: string;
139
145
  border: string;
140
146
  boxShadow: string;
147
+ errorBorder: string;
148
+ };
149
+ inputPlaceholder: {
150
+ fontSize: string;
151
+ padding: string;
152
+ focusBorder: string;
141
153
  };
142
154
  inputCustom: {
143
155
  button: {
@@ -170,6 +182,12 @@ declare type ThemeComponent = {
170
182
  border: string;
171
183
  color: string;
172
184
  };
185
+ noStock: {
186
+ fontWeight: number;
187
+ background: string;
188
+ border: string;
189
+ color: string;
190
+ };
173
191
  disabled: {
174
192
  border: string;
175
193
  };
@@ -223,10 +241,13 @@ declare type ThemeComponent = {
223
241
  };
224
242
  card: {
225
243
  borderRadius: string;
244
+ backgroundColor: string;
226
245
  };
227
246
  radio: {
228
247
  borderColor: string;
229
248
  background: string;
249
+ textSize: string;
250
+ lineHeight: string;
230
251
  size: {
231
252
  small: {
232
253
  borderWidth: string;
@@ -255,6 +276,7 @@ declare type ThemeComponent = {
255
276
  };
256
277
  };
257
278
  label: {
279
+ color: string;
258
280
  fontSize: {
259
281
  small: string;
260
282
  medium: string;
@@ -368,6 +390,7 @@ declare type ThemeComponent = {
368
390
  options: {
369
391
  borderColor: string;
370
392
  color: string;
393
+ borderRadius: string;
371
394
  };
372
395
  };
373
396
  modal: {
@@ -381,6 +404,168 @@ declare type ThemeComponent = {
381
404
  selectedContrast: string;
382
405
  tagColor: string;
383
406
  };
407
+ slideNavigation: {
408
+ slideDots: {
409
+ unselectedDotColor: string;
410
+ selectedDotColor: string;
411
+ dotsOpacity: number;
412
+ };
413
+ };
414
+ beforeAfter: {
415
+ size: {
416
+ small: {
417
+ image: {
418
+ minHeight: string;
419
+ minWidth: string;
420
+ mobile: {
421
+ minHeight: string;
422
+ minWidth: string;
423
+ };
424
+ };
425
+ imageContainer: {
426
+ maxWidth: string;
427
+ padding: string;
428
+ mobile: {
429
+ maxWidth: string;
430
+ };
431
+ };
432
+ userInfoText: {
433
+ fontSize: string;
434
+ mobile: {
435
+ fontSize: string;
436
+ };
437
+ };
438
+ };
439
+ medium: {
440
+ image: {
441
+ minHeight: string;
442
+ minWidth: string;
443
+ mobile: {
444
+ minHeight: string;
445
+ minWidth: string;
446
+ };
447
+ };
448
+ imageContainer: {
449
+ maxWidth: string;
450
+ padding: string;
451
+ mobile: {
452
+ maxWidth: string;
453
+ };
454
+ };
455
+ userInfoText: {
456
+ fontSize: string;
457
+ mobile: {
458
+ fontSize: string;
459
+ };
460
+ };
461
+ };
462
+ large: {
463
+ image: {
464
+ minHeight: string;
465
+ minWidth: string;
466
+ mobile: {
467
+ minHeight: string;
468
+ minWidth: string;
469
+ };
470
+ };
471
+ imageContainer: {
472
+ maxWidth: string;
473
+ padding: string;
474
+ mobile: {
475
+ maxWidth: string;
476
+ };
477
+ };
478
+ userInfoText: {
479
+ fontSize: string;
480
+ mobile: {
481
+ fontSize: string;
482
+ };
483
+ };
484
+ };
485
+ };
486
+ };
487
+ total: {
488
+ basicTotal: {
489
+ amount: {
490
+ color: string;
491
+ fontSize: string;
492
+ };
493
+ currency: {
494
+ color: string;
495
+ fontSize: string;
496
+ lineHeight: string;
497
+ alignSelf?: string;
498
+ };
499
+ savings: {
500
+ textFontSize: string;
501
+ textLineHeight: string;
502
+ amountFontSize: string;
503
+ amountFontWeight: number;
504
+ amountLineHeight: string;
505
+ color?: string;
506
+ };
507
+ };
508
+ };
509
+ subTotal: {
510
+ basicSubTotal: {
511
+ family: string;
512
+ size: string;
513
+ weight: number;
514
+ lineHeight: string;
515
+ color: string;
516
+ };
517
+ };
518
+ pricing: {
519
+ priceLabel: {
520
+ price: {
521
+ size: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
522
+ originalPriceColor: string;
523
+ actualPriceColor: string;
524
+ };
525
+ };
526
+ };
527
+ orderSummary: {
528
+ headingTextAlign: string;
529
+ backgroundColor: string;
530
+ maxWidth?: string;
531
+ padding?: string;
532
+ borderRadius?: string;
533
+ onMobile: {
534
+ maxWidth?: string;
535
+ padding?: string;
536
+ backgroundColor?: string;
537
+ };
538
+ };
539
+ expressCheckout: {
540
+ fontFamily: string;
541
+ fontWeight: number;
542
+ lineHeight: string;
543
+ };
544
+ copyrightText: {
545
+ fontSize: string;
546
+ fontWeight: number;
547
+ lineHeight: string;
548
+ color: string;
549
+ };
550
+ textButton: {
551
+ fontWeight: number;
552
+ lineHeight: string;
553
+ };
554
+ deliveryDetails: {
555
+ note: {
556
+ accentColor: string;
557
+ color: string;
558
+ backgroundColor: string;
559
+ };
560
+ SectionDetails?: {
561
+ marginLeft: string;
562
+ };
563
+ };
564
+ text: {
565
+ orderHeader: {
566
+ color: string;
567
+ };
568
+ };
384
569
  };
385
570
  declare type ThemeTypography = {
386
571
  config: {
@@ -407,6 +592,11 @@ declare type ThemeAssets = {
407
592
  images: {
408
593
  favicon: string;
409
594
  logo: string;
595
+ logoSize?: {
596
+ width: string;
597
+ height: string;
598
+ };
599
+ logoMobile?: string;
410
600
  };
411
601
  [key: string]: any;
412
602
  };
@@ -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',
@@ -145,6 +179,7 @@ var shapermint = {
145
179
  50: { color: '#efefef', contrast: '--colors-shades-700-color' },
146
180
  100: { color: '#e5e5e5', contrast: '--colors-shades-700-color' },
147
181
  150: { color: '#d1d1d1', contrast: '--colors-shades-700-color' },
182
+ 175: { color: '#c4c4c4', contrast: '--colors-shades-700-color' },
148
183
  200: { color: '#bbbbbb', contrast: '--colors-shades-700-color' },
149
184
  250: { color: '#a6a6a6', contrast: '--colors-shades-700-color' },
150
185
  300: { color: '#9e9e9e', contrast: '--colors-shades-700-color' },
@@ -188,6 +223,10 @@ var shapermint = {
188
223
  border: 'none',
189
224
  borderRadius: '0.5rem',
190
225
  fontWeight: 600,
226
+ lineHeight: 'normal',
227
+ letterSpacing: 'normal',
228
+ minWidth: 'unset',
229
+ minHeight: 'unset',
191
230
  size: {
192
231
  small: {
193
232
  fontSize: '0.75rem',
@@ -234,6 +273,12 @@ var shapermint = {
234
273
  lineHeight: '1.5rem',
235
274
  border: '0.063rem solid var(--colors-shades-200-color)',
236
275
  boxShadow: 'none',
276
+ errorBorder: '0.09375rem solid #d3373c',
277
+ },
278
+ inputPlaceholder: {
279
+ fontSize: '0.875rem',
280
+ padding: '1.125rem 0.9375rem 0 0.9375rem',
281
+ focusBorder: '0.09375rem solid #1990c6',
237
282
  },
238
283
  inputCustom: {
239
284
  button: {
@@ -266,6 +311,12 @@ var shapermint = {
266
311
  border: 'none',
267
312
  color: '--colors-shades-white-color',
268
313
  },
314
+ noStock: {
315
+ fontWeight: 600,
316
+ background: 'transparent',
317
+ border: '1px solid #3a3a3a4d',
318
+ color: '#3a3a3a4d',
319
+ },
269
320
  disabled: {
270
321
  border: 'none',
271
322
  },
@@ -319,10 +370,13 @@ var shapermint = {
319
370
  },
320
371
  card: {
321
372
  borderRadius: '0.5rem',
373
+ backgroundColor: '#f7ece4',
322
374
  },
323
375
  radio: {
324
376
  borderColor: '--colors-shades-700-color',
325
377
  background: '--colors-shades-white-color',
378
+ textSize: '16px',
379
+ lineHeight: 'normal',
326
380
  size: {
327
381
  large: {
328
382
  borderWidth: '0.094rem',
@@ -351,6 +405,7 @@ var shapermint = {
351
405
  },
352
406
  },
353
407
  label: {
408
+ color: '--colors-pallete-secondary-color',
354
409
  fontSize: {
355
410
  small: '0.75rem',
356
411
  medium: '0.75rem',
@@ -464,6 +519,7 @@ var shapermint = {
464
519
  options: {
465
520
  borderColor: '--colors-shades-700-color',
466
521
  color: '--colors-shades-700-color',
522
+ borderRadius: '0.5rem',
467
523
  },
468
524
  },
469
525
  modal: {
@@ -477,6 +533,164 @@ var shapermint = {
477
533
  selectedContrast: '--colors-semantic-positive-contrast',
478
534
  tagColor: '--colors-semantic-attention-color',
479
535
  },
536
+ slideNavigation: {
537
+ slideDots: {
538
+ unselectedDotColor: '--colors-shades-700-color',
539
+ selectedDotColor: '--colors-shades-white-color',
540
+ dotsOpacity: 0.6,
541
+ },
542
+ },
543
+ beforeAfter: {
544
+ size: {
545
+ small: {
546
+ image: {
547
+ minHeight: 'auto',
548
+ minWidth: '92px',
549
+ mobile: {
550
+ minHeight: '138px',
551
+ minWidth: '128px',
552
+ },
553
+ },
554
+ imageContainer: {
555
+ maxWidth: '214px',
556
+ padding: '12px',
557
+ mobile: {
558
+ maxWidth: '286px',
559
+ },
560
+ },
561
+ userInfoText: {
562
+ fontSize: '12px',
563
+ mobile: {
564
+ fontSize: '12px',
565
+ },
566
+ },
567
+ },
568
+ medium: {
569
+ image: {
570
+ minHeight: '200px',
571
+ minWidth: '187px',
572
+ mobile: {
573
+ minHeight: '157px',
574
+ minWidth: '150px',
575
+ },
576
+ },
577
+ imageContainer: {
578
+ maxWidth: '427px',
579
+ padding: '18px',
580
+ mobile: {
581
+ maxWidth: '342px',
582
+ },
583
+ },
584
+ userInfoText: {
585
+ fontSize: '18px',
586
+ mobile: {
587
+ fontSize: '14px',
588
+ },
589
+ },
590
+ },
591
+ large: {
592
+ image: {
593
+ minHeight: '200px',
594
+ minWidth: '187px',
595
+ mobile: {
596
+ minHeight: '157px',
597
+ minWidth: '150px',
598
+ },
599
+ },
600
+ imageContainer: {
601
+ maxWidth: '427px',
602
+ padding: '18px',
603
+ mobile: {
604
+ maxWidth: '342px',
605
+ },
606
+ },
607
+ userInfoText: {
608
+ fontSize: '18px',
609
+ mobile: {
610
+ fontSize: '14px',
611
+ },
612
+ },
613
+ },
614
+ },
615
+ },
616
+ total: {
617
+ basicTotal: {
618
+ amount: {
619
+ color: '--colors-shades-550-color',
620
+ fontSize: '24px',
621
+ },
622
+ currency: {
623
+ color: '--colors-shades-550-color',
624
+ fontSize: '14px',
625
+ lineHeight: '22px',
626
+ alignSelf: 'flex-end',
627
+ },
628
+ savings: {
629
+ textFontSize: '16px',
630
+ textLineHeight: '24px',
631
+ amountFontSize: '16px',
632
+ amountFontWeight: 600,
633
+ amountLineHeight: '24px',
634
+ color: '--colors-semantic-positive-color',
635
+ },
636
+ },
637
+ },
638
+ subTotal: {
639
+ basicSubTotal: {
640
+ family: 'Jost',
641
+ size: '16px',
642
+ weight: 600,
643
+ lineHeight: '22px',
644
+ color: '--colors-shades-550-color',
645
+ },
646
+ },
647
+ pricing: {
648
+ priceLabel: {
649
+ price: {
650
+ size: ComponentSize.Small,
651
+ originalPriceColor: '--colors-shades-300-color',
652
+ actualPriceColor: '--colors-semantic-urgent-color',
653
+ },
654
+ },
655
+ },
656
+ orderSummary: {
657
+ headingTextAlign: 'left',
658
+ backgroundColor: '--colors-shades-5-color',
659
+ padding: '',
660
+ borderRadius: '',
661
+ maxWidth: '460px',
662
+ onMobile: {
663
+ maxWidth: '100%',
664
+ padding: '15px',
665
+ },
666
+ },
667
+ expressCheckout: {
668
+ fontFamily: '-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica,Arial, sans-serif',
669
+ fontWeight: 500,
670
+ lineHeight: '16px',
671
+ },
672
+ copyrightText: {
673
+ fontSize: '16px',
674
+ fontWeight: 400,
675
+ lineHeight: '24px',
676
+ color: '--colors-pallete-secondary-color',
677
+ },
678
+ textButton: {
679
+ fontWeight: 500,
680
+ lineHeight: 'normal',
681
+ },
682
+ deliveryDetails: {
683
+ note: {
684
+ accentColor: '--colors-semantic-urgent-color',
685
+ color: '--colors-text-color',
686
+ backgroundColor: '--colors-pallete-primary-20-color',
687
+ },
688
+ },
689
+ text: {
690
+ orderHeader: {
691
+ color: '--colors-pallete-primary-color',
692
+ },
693
+ },
480
694
  },
481
695
  typography: {
482
696
  config: {
@@ -687,7 +901,11 @@ var shapermint = {
687
901
  assets: {
688
902
  images: {
689
903
  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',
904
+ logo: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/images/shapermint/shapermint_logo_black.svg',
905
+ logoSize: {
906
+ width: '230',
907
+ height: '46',
908
+ },
691
909
  },
692
910
  },
693
911
  };