@trafilea/afrodita-components 5.0.0-beta.99 → 6.0.0
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.
- package/build/index.css +2 -1
- package/build/index.d.ts +2388 -1406
- package/build/index.esm.css +2 -1
- package/build/index.esm.js +13234 -11824
- package/build/index.esm.js.map +1 -1
- package/build/index.js +13269 -11832
- package/build/index.js.map +1 -1
- package/build/theme/revel.theme.d.ts +337 -1
- package/build/theme/revel.theme.js +402 -56
- package/build/theme/shapermint.theme.d.ts +337 -1
- package/build/theme/shapermint.theme.js +326 -3
- package/build/theme/thespadr.theme.d.ts +758 -0
- package/build/theme/thespadr.theme.js +1059 -0
- package/build/theme/truekind.theme.d.ts +337 -1
- package/build/theme/truekind.theme.js +347 -15
- package/package.json +5 -4
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
|
|
3
|
+
declare enum ComponentSize {
|
|
4
|
+
Large = "large",
|
|
5
|
+
Medium = "medium",
|
|
6
|
+
Small = "small",
|
|
7
|
+
XSmall = "xsmall"
|
|
8
|
+
}
|
|
9
|
+
|
|
3
10
|
declare type Theme = {
|
|
4
11
|
name: string;
|
|
5
12
|
fontSizes: number[];
|
|
@@ -21,6 +28,7 @@ declare type Theme = {
|
|
|
21
28
|
};
|
|
22
29
|
declare type ThemeBreakpoints = {
|
|
23
30
|
mobile: number;
|
|
31
|
+
tablet?: number;
|
|
24
32
|
desktop: number;
|
|
25
33
|
};
|
|
26
34
|
declare type ThemeBasicPallete = {
|
|
@@ -28,7 +36,7 @@ declare type ThemeBasicPallete = {
|
|
|
28
36
|
contrast: string;
|
|
29
37
|
};
|
|
30
38
|
declare type ThemeColorPallete = ThemeBasicPallete & {
|
|
31
|
-
soft
|
|
39
|
+
soft?: ThemeBasicPallete;
|
|
32
40
|
};
|
|
33
41
|
declare type ThemeColorPrimaryPallete = ThemeColorPallete & {
|
|
34
42
|
20: ThemeColorPallete;
|
|
@@ -40,6 +48,7 @@ declare type ThemeColors = {
|
|
|
40
48
|
pallete: {
|
|
41
49
|
primary: ThemeColorPrimaryPallete;
|
|
42
50
|
secondary: ThemeColorPrimaryPallete;
|
|
51
|
+
tertiary?: ThemeColorPrimaryPallete;
|
|
43
52
|
} & Partial<Record<string, ThemeColorPallete>>;
|
|
44
53
|
shades: {
|
|
45
54
|
black: ThemeBasicPallete;
|
|
@@ -49,6 +58,7 @@ declare type ThemeColors = {
|
|
|
49
58
|
50: ThemeBasicPallete;
|
|
50
59
|
100: ThemeBasicPallete;
|
|
51
60
|
150: ThemeBasicPallete;
|
|
61
|
+
175: ThemeBasicPallete;
|
|
52
62
|
200: ThemeBasicPallete;
|
|
53
63
|
250: ThemeBasicPallete;
|
|
54
64
|
300: ThemeBasicPallete;
|
|
@@ -77,6 +87,8 @@ declare type ThemeColors = {
|
|
|
77
87
|
color: string;
|
|
78
88
|
disabled: string;
|
|
79
89
|
highlight: string;
|
|
90
|
+
shadow?: string;
|
|
91
|
+
isChecked?: string;
|
|
80
92
|
};
|
|
81
93
|
background: {
|
|
82
94
|
color: string;
|
|
@@ -92,6 +104,10 @@ declare type ThemeComponent = {
|
|
|
92
104
|
border: string;
|
|
93
105
|
borderRadius: string;
|
|
94
106
|
fontWeight: number;
|
|
107
|
+
lineHeight: string;
|
|
108
|
+
letterSpacing: string;
|
|
109
|
+
minWidth: string;
|
|
110
|
+
minHeight: string;
|
|
95
111
|
size: {
|
|
96
112
|
small: {
|
|
97
113
|
fontSize: string;
|
|
@@ -176,6 +192,12 @@ declare type ThemeComponent = {
|
|
|
176
192
|
border: string;
|
|
177
193
|
color: string;
|
|
178
194
|
};
|
|
195
|
+
noStock: {
|
|
196
|
+
fontWeight: number;
|
|
197
|
+
background: string;
|
|
198
|
+
border: string;
|
|
199
|
+
color: string;
|
|
200
|
+
};
|
|
179
201
|
disabled: {
|
|
180
202
|
border: string;
|
|
181
203
|
};
|
|
@@ -229,10 +251,13 @@ declare type ThemeComponent = {
|
|
|
229
251
|
};
|
|
230
252
|
card: {
|
|
231
253
|
borderRadius: string;
|
|
254
|
+
backgroundColor: string;
|
|
232
255
|
};
|
|
233
256
|
radio: {
|
|
234
257
|
borderColor: string;
|
|
235
258
|
background: string;
|
|
259
|
+
textSize: string;
|
|
260
|
+
lineHeight: string;
|
|
236
261
|
size: {
|
|
237
262
|
small: {
|
|
238
263
|
borderWidth: string;
|
|
@@ -261,6 +286,7 @@ declare type ThemeComponent = {
|
|
|
261
286
|
};
|
|
262
287
|
};
|
|
263
288
|
label: {
|
|
289
|
+
color: string;
|
|
264
290
|
fontSize: {
|
|
265
291
|
small: string;
|
|
266
292
|
medium: string;
|
|
@@ -369,11 +395,20 @@ declare type ThemeComponent = {
|
|
|
369
395
|
fontWeight: number;
|
|
370
396
|
lineHeight: string;
|
|
371
397
|
padding: string;
|
|
398
|
+
optionPadding: string;
|
|
372
399
|
color: string;
|
|
373
400
|
fill: string;
|
|
401
|
+
borderWidth?: string;
|
|
374
402
|
options: {
|
|
375
403
|
borderColor: string;
|
|
376
404
|
color: string;
|
|
405
|
+
borderRadius: string;
|
|
406
|
+
borderRadiusV2?: string;
|
|
407
|
+
backgroundColor?: string;
|
|
408
|
+
};
|
|
409
|
+
optionsWrapper: {
|
|
410
|
+
borderRadius: string;
|
|
411
|
+
overflow: string;
|
|
377
412
|
};
|
|
378
413
|
};
|
|
379
414
|
modal: {
|
|
@@ -387,6 +422,286 @@ declare type ThemeComponent = {
|
|
|
387
422
|
selectedContrast: string;
|
|
388
423
|
tagColor: string;
|
|
389
424
|
};
|
|
425
|
+
slideNavigation: {
|
|
426
|
+
slideDots: {
|
|
427
|
+
unselectedDotColor: string;
|
|
428
|
+
selectedDotColor: string;
|
|
429
|
+
dotsOpacity: number;
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
beforeAfter: {
|
|
433
|
+
size: {
|
|
434
|
+
small: {
|
|
435
|
+
image: {
|
|
436
|
+
minHeight: string;
|
|
437
|
+
minWidth: string;
|
|
438
|
+
mobile: {
|
|
439
|
+
minHeight: string;
|
|
440
|
+
minWidth: string;
|
|
441
|
+
};
|
|
442
|
+
};
|
|
443
|
+
imageContainer: {
|
|
444
|
+
maxWidth: string;
|
|
445
|
+
padding: string;
|
|
446
|
+
mobile: {
|
|
447
|
+
maxWidth: string;
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
userInfoText: {
|
|
451
|
+
fontSize: string;
|
|
452
|
+
mobile: {
|
|
453
|
+
fontSize: string;
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
medium: {
|
|
458
|
+
image: {
|
|
459
|
+
minHeight: string;
|
|
460
|
+
minWidth: string;
|
|
461
|
+
mobile: {
|
|
462
|
+
minHeight: string;
|
|
463
|
+
minWidth: string;
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
imageContainer: {
|
|
467
|
+
maxWidth: string;
|
|
468
|
+
padding: string;
|
|
469
|
+
mobile: {
|
|
470
|
+
maxWidth: string;
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
userInfoText: {
|
|
474
|
+
fontSize: string;
|
|
475
|
+
mobile: {
|
|
476
|
+
fontSize: string;
|
|
477
|
+
};
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
large: {
|
|
481
|
+
image: {
|
|
482
|
+
minHeight: string;
|
|
483
|
+
minWidth: string;
|
|
484
|
+
mobile: {
|
|
485
|
+
minHeight: string;
|
|
486
|
+
minWidth: string;
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
imageContainer: {
|
|
490
|
+
maxWidth: string;
|
|
491
|
+
padding: string;
|
|
492
|
+
mobile: {
|
|
493
|
+
maxWidth: string;
|
|
494
|
+
};
|
|
495
|
+
};
|
|
496
|
+
userInfoText: {
|
|
497
|
+
fontSize: string;
|
|
498
|
+
mobile: {
|
|
499
|
+
fontSize: string;
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
};
|
|
504
|
+
};
|
|
505
|
+
total: {
|
|
506
|
+
basicTotal: {
|
|
507
|
+
amount: {
|
|
508
|
+
color: string;
|
|
509
|
+
fontSize: string;
|
|
510
|
+
};
|
|
511
|
+
currency: {
|
|
512
|
+
color: string;
|
|
513
|
+
fontSize: string;
|
|
514
|
+
lineHeight: string;
|
|
515
|
+
alignSelf?: string;
|
|
516
|
+
};
|
|
517
|
+
savings: {
|
|
518
|
+
amountFontWeight: number;
|
|
519
|
+
color?: string;
|
|
520
|
+
};
|
|
521
|
+
};
|
|
522
|
+
};
|
|
523
|
+
subTotal: {
|
|
524
|
+
basicSubTotal: {
|
|
525
|
+
family: string;
|
|
526
|
+
size: string;
|
|
527
|
+
weight: number;
|
|
528
|
+
lineHeight: string;
|
|
529
|
+
color: string;
|
|
530
|
+
};
|
|
531
|
+
};
|
|
532
|
+
pricing: {
|
|
533
|
+
priceLabel: {
|
|
534
|
+
price: {
|
|
535
|
+
size: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
|
|
536
|
+
originalPriceColor: string;
|
|
537
|
+
actualPriceColor: string;
|
|
538
|
+
defaultFontSize?: {
|
|
539
|
+
large: string;
|
|
540
|
+
medium: string;
|
|
541
|
+
small: string;
|
|
542
|
+
};
|
|
543
|
+
smallFontSize?: {
|
|
544
|
+
large: string;
|
|
545
|
+
medium: string;
|
|
546
|
+
small: string;
|
|
547
|
+
};
|
|
548
|
+
largeFontSize?: {
|
|
549
|
+
large: string;
|
|
550
|
+
medium: string;
|
|
551
|
+
small: string;
|
|
552
|
+
};
|
|
553
|
+
discountFontSize?: {
|
|
554
|
+
large: string;
|
|
555
|
+
medium: string;
|
|
556
|
+
small: string;
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
};
|
|
561
|
+
orderSummary: {
|
|
562
|
+
headingTextAlign: string;
|
|
563
|
+
backgroundColor?: string;
|
|
564
|
+
padding?: string;
|
|
565
|
+
borderRadius?: string;
|
|
566
|
+
maxWidth?: string;
|
|
567
|
+
onMobile: {
|
|
568
|
+
maxWidth?: string;
|
|
569
|
+
padding?: string;
|
|
570
|
+
backgroundColor?: string;
|
|
571
|
+
};
|
|
572
|
+
};
|
|
573
|
+
expressCheckout: {
|
|
574
|
+
button: {
|
|
575
|
+
borderRadius: string;
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
copyrightText: {
|
|
579
|
+
fontSize: string;
|
|
580
|
+
fontWeight: number;
|
|
581
|
+
lineHeight: string;
|
|
582
|
+
color: string;
|
|
583
|
+
};
|
|
584
|
+
thankyouFooterText: {
|
|
585
|
+
fontSize: string;
|
|
586
|
+
fontWeight: string;
|
|
587
|
+
lineHeight: string;
|
|
588
|
+
};
|
|
589
|
+
textButton: {
|
|
590
|
+
fontWeight: number;
|
|
591
|
+
lineHeight: string;
|
|
592
|
+
};
|
|
593
|
+
deliveryDetails: {
|
|
594
|
+
title: {
|
|
595
|
+
fontSize: string;
|
|
596
|
+
lineHeight: string;
|
|
597
|
+
fontWeight: number;
|
|
598
|
+
};
|
|
599
|
+
note: {
|
|
600
|
+
accentColor: string;
|
|
601
|
+
color: string;
|
|
602
|
+
backgroundColor: string;
|
|
603
|
+
};
|
|
604
|
+
sectionTitle: {
|
|
605
|
+
fontSize: string;
|
|
606
|
+
lineHeight: string;
|
|
607
|
+
fontWeight: number;
|
|
608
|
+
};
|
|
609
|
+
sectionDetails: {
|
|
610
|
+
fontSize: string;
|
|
611
|
+
lineHeight: string;
|
|
612
|
+
fontWeight: number;
|
|
613
|
+
marginLeft?: string;
|
|
614
|
+
};
|
|
615
|
+
};
|
|
616
|
+
text: {
|
|
617
|
+
orderHeader: {
|
|
618
|
+
color: string;
|
|
619
|
+
};
|
|
620
|
+
fitGuarantee: {
|
|
621
|
+
titleFontSize?: string;
|
|
622
|
+
titleFontWeight?: number | string;
|
|
623
|
+
fontWeight: number | string;
|
|
624
|
+
};
|
|
625
|
+
offerBanner: {
|
|
626
|
+
borderRadius: string;
|
|
627
|
+
};
|
|
628
|
+
};
|
|
629
|
+
orderBar: {
|
|
630
|
+
backgroundColor: string;
|
|
631
|
+
fontColor: string;
|
|
632
|
+
};
|
|
633
|
+
banner: {
|
|
634
|
+
outlineColor: string;
|
|
635
|
+
filledColor: string;
|
|
636
|
+
fontColor: string;
|
|
637
|
+
};
|
|
638
|
+
offerTitleText: {
|
|
639
|
+
size: string;
|
|
640
|
+
weight: number;
|
|
641
|
+
lineHeight: string;
|
|
642
|
+
};
|
|
643
|
+
linePrice: {
|
|
644
|
+
color: string;
|
|
645
|
+
badge: {
|
|
646
|
+
color: string;
|
|
647
|
+
borderRadius: string;
|
|
648
|
+
};
|
|
649
|
+
};
|
|
650
|
+
divider: {
|
|
651
|
+
color: string;
|
|
652
|
+
};
|
|
653
|
+
checkout: {
|
|
654
|
+
paymentInformation: {
|
|
655
|
+
borderRadius?: string;
|
|
656
|
+
};
|
|
657
|
+
creditCardSection: {
|
|
658
|
+
borderRadius?: string;
|
|
659
|
+
};
|
|
660
|
+
};
|
|
661
|
+
upsell: {
|
|
662
|
+
banner: {
|
|
663
|
+
outlined: {
|
|
664
|
+
color?: string;
|
|
665
|
+
};
|
|
666
|
+
};
|
|
667
|
+
price: {
|
|
668
|
+
colors: {
|
|
669
|
+
regular: string;
|
|
670
|
+
deal: string;
|
|
671
|
+
each: string;
|
|
672
|
+
badgeBG: string;
|
|
673
|
+
badgeColor: string;
|
|
674
|
+
};
|
|
675
|
+
};
|
|
676
|
+
hurryTimeCard: {
|
|
677
|
+
backgroundColor: string;
|
|
678
|
+
};
|
|
679
|
+
guaranteedFit?: {
|
|
680
|
+
backgroundColor: string;
|
|
681
|
+
};
|
|
682
|
+
};
|
|
683
|
+
thankyou: {
|
|
684
|
+
orderBanner?: {
|
|
685
|
+
text: {
|
|
686
|
+
left: string;
|
|
687
|
+
};
|
|
688
|
+
};
|
|
689
|
+
emailSection: {
|
|
690
|
+
backgroundColor?: string;
|
|
691
|
+
};
|
|
692
|
+
socialIcon: {
|
|
693
|
+
color?: string;
|
|
694
|
+
};
|
|
695
|
+
orderId: {
|
|
696
|
+
color: string;
|
|
697
|
+
};
|
|
698
|
+
};
|
|
699
|
+
hurryUp: {
|
|
700
|
+
borderRadius?: string;
|
|
701
|
+
};
|
|
702
|
+
qtyPicker: {
|
|
703
|
+
borderRadius: string;
|
|
704
|
+
};
|
|
390
705
|
};
|
|
391
706
|
declare type ThemeTypography = {
|
|
392
707
|
config: {
|
|
@@ -410,9 +725,30 @@ declare type ThemeFonts = {
|
|
|
410
725
|
}>;
|
|
411
726
|
};
|
|
412
727
|
declare type ThemeAssets = {
|
|
728
|
+
cdn: string;
|
|
413
729
|
images: {
|
|
414
730
|
favicon: string;
|
|
415
731
|
logo: string;
|
|
732
|
+
logoSize?: {
|
|
733
|
+
width: string;
|
|
734
|
+
height: string;
|
|
735
|
+
};
|
|
736
|
+
logoMobile?: string;
|
|
737
|
+
checkoutLogo?: {
|
|
738
|
+
url: string;
|
|
739
|
+
width: string;
|
|
740
|
+
height: string;
|
|
741
|
+
};
|
|
742
|
+
upsellLogo?: {
|
|
743
|
+
url: string;
|
|
744
|
+
width: string;
|
|
745
|
+
height: string;
|
|
746
|
+
};
|
|
747
|
+
tyLogo?: {
|
|
748
|
+
url: string;
|
|
749
|
+
width: string;
|
|
750
|
+
height: string;
|
|
751
|
+
};
|
|
416
752
|
};
|
|
417
753
|
[key: string]: any;
|
|
418
754
|
};
|