@trafilea/afrodita-components 5.0.0-beta.133 → 5.0.0-beta.135

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;
@@ -239,6 +240,7 @@ declare type ThemeComponent = {
239
240
  radio: {
240
241
  borderColor: string;
241
242
  background: string;
243
+ textSize: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
242
244
  size: {
243
245
  small: {
244
246
  borderWidth: string;
@@ -267,6 +269,7 @@ declare type ThemeComponent = {
267
269
  };
268
270
  };
269
271
  label: {
272
+ color: string;
270
273
  fontSize: {
271
274
  small: string;
272
275
  medium: string;
@@ -401,6 +404,79 @@ declare type ThemeComponent = {
401
404
  dotsOpacity: number;
402
405
  };
403
406
  };
407
+ beforeAfter: {
408
+ size: {
409
+ small: {
410
+ image: {
411
+ minHeight: string;
412
+ minWidth: string;
413
+ mobile: {
414
+ minHeight: string;
415
+ minWidth: string;
416
+ };
417
+ };
418
+ imageContainer: {
419
+ maxWidth: string;
420
+ padding: string;
421
+ mobile: {
422
+ maxWidth: string;
423
+ };
424
+ };
425
+ userInfoText: {
426
+ fontSize: string;
427
+ mobile: {
428
+ fontSize: string;
429
+ };
430
+ };
431
+ };
432
+ medium: {
433
+ image: {
434
+ minHeight: string;
435
+ minWidth: string;
436
+ mobile: {
437
+ minHeight: string;
438
+ minWidth: string;
439
+ };
440
+ };
441
+ imageContainer: {
442
+ maxWidth: string;
443
+ padding: string;
444
+ mobile: {
445
+ maxWidth: string;
446
+ };
447
+ };
448
+ userInfoText: {
449
+ fontSize: string;
450
+ mobile: {
451
+ fontSize: string;
452
+ };
453
+ };
454
+ };
455
+ large: {
456
+ image: {
457
+ minHeight: string;
458
+ minWidth: string;
459
+ mobile: {
460
+ minHeight: string;
461
+ minWidth: string;
462
+ };
463
+ };
464
+ imageContainer: {
465
+ maxWidth: string;
466
+ padding: string;
467
+ mobile: {
468
+ maxWidth: string;
469
+ };
470
+ };
471
+ userInfoText: {
472
+ fontSize: string;
473
+ mobile: {
474
+ fontSize: string;
475
+ };
476
+ };
477
+ };
478
+ };
479
+ };
404
480
  };
405
481
  declare type ThemeTypography = {
406
482
  config: {
@@ -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],
@@ -416,6 +442,7 @@ var truekind = {
416
442
  radio: {
417
443
  borderColor: '#686872',
418
444
  background: '#FFFFFF',
445
+ textSize: ComponentSize.Medium,
419
446
  size: {
420
447
  large: {
421
448
  borderWidth: '0.094rem',
@@ -444,6 +471,7 @@ var truekind = {
444
471
  },
445
472
  },
446
473
  label: {
474
+ color: '--colors-pallete-secondary-color',
447
475
  fontSize: {
448
476
  small: '0.625rem',
449
477
  medium: '0.75rem',
@@ -578,6 +606,79 @@ var truekind = {
578
606
  dotsOpacity: 0.6,
579
607
  },
580
608
  },
609
+ beforeAfter: {
610
+ size: {
611
+ small: {
612
+ image: {
613
+ minHeight: 'auto',
614
+ minWidth: '92px',
615
+ mobile: {
616
+ minHeight: '138px',
617
+ minWidth: '128px',
618
+ },
619
+ },
620
+ imageContainer: {
621
+ maxWidth: '214px',
622
+ padding: '12px',
623
+ mobile: {
624
+ maxWidth: '286px',
625
+ },
626
+ },
627
+ userInfoText: {
628
+ fontSize: '12px',
629
+ mobile: {
630
+ fontSize: '12px',
631
+ },
632
+ },
633
+ },
634
+ medium: {
635
+ image: {
636
+ minHeight: '200px',
637
+ minWidth: '187px',
638
+ mobile: {
639
+ minHeight: '157px',
640
+ minWidth: '150px',
641
+ },
642
+ },
643
+ imageContainer: {
644
+ maxWidth: '427px',
645
+ padding: '18px',
646
+ mobile: {
647
+ maxWidth: '342px',
648
+ },
649
+ },
650
+ userInfoText: {
651
+ fontSize: '18px',
652
+ mobile: {
653
+ fontSize: '14px',
654
+ },
655
+ },
656
+ },
657
+ large: {
658
+ image: {
659
+ minHeight: '200px',
660
+ minWidth: '187px',
661
+ mobile: {
662
+ minHeight: '157px',
663
+ minWidth: '150px',
664
+ },
665
+ },
666
+ imageContainer: {
667
+ maxWidth: '427px',
668
+ padding: '18px',
669
+ mobile: {
670
+ maxWidth: '342px',
671
+ },
672
+ },
673
+ userInfoText: {
674
+ fontSize: '18px',
675
+ mobile: {
676
+ fontSize: '14px',
677
+ },
678
+ },
679
+ },
680
+ },
681
+ },
581
682
  },
582
683
  fonts: {
583
684
  url: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/fonts/truekind',
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Trafilea's Design System",
4
4
  "author": "Trafilea",
5
5
  "repository": "https://github.com/trafilea/afrodita-components",
6
- "version": "5.0.0-beta.133",
6
+ "version": "5.0.0-beta.135",
7
7
  "private": false,
8
8
  "main": "build/index.js",
9
9
  "style": "build/index.css",