@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 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',
@@ -459,11 +514,13 @@ var shapermint = {
459
514
  fontWeight: 600,
460
515
  lineHeight: '1.125rem',
461
516
  padding: '0.5rem 0.75rem 0.5rem 1rem',
517
+ optionPadding: '0.75rem 1rem 0.625rem 0.75rem',
462
518
  color: '--colors-shades-700-color',
463
519
  fill: '--colors-shades-700-color',
464
520
  options: {
465
521
  borderColor: '--colors-shades-700-color',
466
522
  color: '--colors-shades-700-color',
523
+ borderRadius: '0.5rem',
467
524
  },
468
525
  },
469
526
  modal: {
@@ -477,6 +534,164 @@ var shapermint = {
477
534
  selectedContrast: '--colors-semantic-positive-contrast',
478
535
  tagColor: '--colors-semantic-attention-color',
479
536
  },
537
+ slideNavigation: {
538
+ slideDots: {
539
+ unselectedDotColor: '--colors-shades-700-color',
540
+ selectedDotColor: '--colors-shades-white-color',
541
+ dotsOpacity: 0.6,
542
+ },
543
+ },
544
+ beforeAfter: {
545
+ size: {
546
+ small: {
547
+ image: {
548
+ minHeight: 'auto',
549
+ minWidth: '92px',
550
+ mobile: {
551
+ minHeight: '138px',
552
+ minWidth: '128px',
553
+ },
554
+ },
555
+ imageContainer: {
556
+ maxWidth: '214px',
557
+ padding: '12px',
558
+ mobile: {
559
+ maxWidth: '286px',
560
+ },
561
+ },
562
+ userInfoText: {
563
+ fontSize: '12px',
564
+ mobile: {
565
+ fontSize: '12px',
566
+ },
567
+ },
568
+ },
569
+ medium: {
570
+ image: {
571
+ minHeight: '200px',
572
+ minWidth: '187px',
573
+ mobile: {
574
+ minHeight: '157px',
575
+ minWidth: '150px',
576
+ },
577
+ },
578
+ imageContainer: {
579
+ maxWidth: '427px',
580
+ padding: '18px',
581
+ mobile: {
582
+ maxWidth: '342px',
583
+ },
584
+ },
585
+ userInfoText: {
586
+ fontSize: '18px',
587
+ mobile: {
588
+ fontSize: '14px',
589
+ },
590
+ },
591
+ },
592
+ large: {
593
+ image: {
594
+ minHeight: '200px',
595
+ minWidth: '187px',
596
+ mobile: {
597
+ minHeight: '157px',
598
+ minWidth: '150px',
599
+ },
600
+ },
601
+ imageContainer: {
602
+ maxWidth: '427px',
603
+ padding: '18px',
604
+ mobile: {
605
+ maxWidth: '342px',
606
+ },
607
+ },
608
+ userInfoText: {
609
+ fontSize: '18px',
610
+ mobile: {
611
+ fontSize: '14px',
612
+ },
613
+ },
614
+ },
615
+ },
616
+ },
617
+ total: {
618
+ basicTotal: {
619
+ amount: {
620
+ color: '--colors-shades-550-color',
621
+ fontSize: '24px',
622
+ },
623
+ currency: {
624
+ color: '--colors-shades-550-color',
625
+ fontSize: '14px',
626
+ lineHeight: '22px',
627
+ alignSelf: 'flex-end',
628
+ },
629
+ savings: {
630
+ textFontSize: '16px',
631
+ textLineHeight: '24px',
632
+ amountFontSize: '16px',
633
+ amountFontWeight: 600,
634
+ amountLineHeight: '24px',
635
+ color: '--colors-semantic-positive-color',
636
+ },
637
+ },
638
+ },
639
+ subTotal: {
640
+ basicSubTotal: {
641
+ family: 'Jost',
642
+ size: '16px',
643
+ weight: 600,
644
+ lineHeight: '22px',
645
+ color: '--colors-shades-550-color',
646
+ },
647
+ },
648
+ pricing: {
649
+ priceLabel: {
650
+ price: {
651
+ size: ComponentSize.Small,
652
+ originalPriceColor: '--colors-shades-300-color',
653
+ actualPriceColor: '--colors-semantic-urgent-color',
654
+ },
655
+ },
656
+ },
657
+ orderSummary: {
658
+ headingTextAlign: 'left',
659
+ backgroundColor: '--colors-shades-5-color',
660
+ padding: '',
661
+ borderRadius: '',
662
+ maxWidth: '460px',
663
+ onMobile: {
664
+ maxWidth: '100%',
665
+ padding: '15px',
666
+ },
667
+ },
668
+ expressCheckout: {
669
+ fontFamily: '-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica,Arial, sans-serif',
670
+ fontWeight: 500,
671
+ lineHeight: '16px',
672
+ },
673
+ copyrightText: {
674
+ fontSize: '16px',
675
+ fontWeight: 400,
676
+ lineHeight: '24px',
677
+ color: '--colors-pallete-secondary-color',
678
+ },
679
+ textButton: {
680
+ fontWeight: 500,
681
+ lineHeight: 'normal',
682
+ },
683
+ deliveryDetails: {
684
+ note: {
685
+ accentColor: '--colors-semantic-urgent-color',
686
+ color: '--colors-text-color',
687
+ backgroundColor: '--colors-pallete-primary-20-color',
688
+ },
689
+ },
690
+ text: {
691
+ orderHeader: {
692
+ color: '--colors-pallete-primary-color',
693
+ },
694
+ },
480
695
  },
481
696
  typography: {
482
697
  config: {
@@ -687,7 +902,11 @@ var shapermint = {
687
902
  assets: {
688
903
  images: {
689
904
  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',
905
+ logo: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/images/shapermint/shapermint_logo_black.svg',
906
+ logoSize: {
907
+ width: '230',
908
+ height: '46',
909
+ },
691
910
  },
692
911
  },
693
912
  };