@trafilea/afrodita-components 5.0.0-beta.27 → 5.0.0-beta.271
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 +4 -1
- package/build/index.d.ts +1375 -86
- package/build/index.esm.css +4 -1
- package/build/index.esm.js +7169 -3263
- package/build/index.esm.js.map +1 -1
- package/build/index.js +7201 -3265
- package/build/index.js.map +1 -1
- package/build/theme/revel.theme.d.ts +714 -0
- package/build/theme/revel.theme.js +1044 -0
- package/build/theme/shapermint.theme.d.ts +299 -1
- package/build/theme/shapermint.theme.js +326 -3
- package/build/theme/thespadr.theme.d.ts +714 -0
- package/build/theme/thespadr.theme.js +1135 -0
- package/build/theme/truekind.theme.d.ts +299 -1
- package/build/theme/truekind.theme.js +329 -5
- package/package.json +4 -2
|
@@ -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
|
|
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,8 @@ declare type ThemeColors = {
|
|
|
77
81
|
color: string;
|
|
78
82
|
disabled: string;
|
|
79
83
|
highlight: string;
|
|
84
|
+
shadow?: string;
|
|
85
|
+
isChecked?: string;
|
|
80
86
|
};
|
|
81
87
|
background: {
|
|
82
88
|
color: string;
|
|
@@ -92,6 +98,10 @@ declare type ThemeComponent = {
|
|
|
92
98
|
border: string;
|
|
93
99
|
borderRadius: string;
|
|
94
100
|
fontWeight: number;
|
|
101
|
+
lineHeight: string;
|
|
102
|
+
letterSpacing: string;
|
|
103
|
+
minWidth: string;
|
|
104
|
+
minHeight: string;
|
|
95
105
|
size: {
|
|
96
106
|
small: {
|
|
97
107
|
fontSize: string;
|
|
@@ -138,6 +148,12 @@ declare type ThemeComponent = {
|
|
|
138
148
|
lineHeight: string;
|
|
139
149
|
border: string;
|
|
140
150
|
boxShadow: string;
|
|
151
|
+
errorBorder: string;
|
|
152
|
+
};
|
|
153
|
+
inputPlaceholder: {
|
|
154
|
+
fontSize: string;
|
|
155
|
+
padding: string;
|
|
156
|
+
focusBorder: string;
|
|
141
157
|
};
|
|
142
158
|
inputCustom: {
|
|
143
159
|
button: {
|
|
@@ -170,6 +186,12 @@ declare type ThemeComponent = {
|
|
|
170
186
|
border: string;
|
|
171
187
|
color: string;
|
|
172
188
|
};
|
|
189
|
+
noStock: {
|
|
190
|
+
fontWeight: number;
|
|
191
|
+
background: string;
|
|
192
|
+
border: string;
|
|
193
|
+
color: string;
|
|
194
|
+
};
|
|
173
195
|
disabled: {
|
|
174
196
|
border: string;
|
|
175
197
|
};
|
|
@@ -223,10 +245,13 @@ declare type ThemeComponent = {
|
|
|
223
245
|
};
|
|
224
246
|
card: {
|
|
225
247
|
borderRadius: string;
|
|
248
|
+
backgroundColor: string;
|
|
226
249
|
};
|
|
227
250
|
radio: {
|
|
228
251
|
borderColor: string;
|
|
229
252
|
background: string;
|
|
253
|
+
textSize: string;
|
|
254
|
+
lineHeight: string;
|
|
230
255
|
size: {
|
|
231
256
|
small: {
|
|
232
257
|
borderWidth: string;
|
|
@@ -255,6 +280,7 @@ declare type ThemeComponent = {
|
|
|
255
280
|
};
|
|
256
281
|
};
|
|
257
282
|
label: {
|
|
283
|
+
color: string;
|
|
258
284
|
fontSize: {
|
|
259
285
|
small: string;
|
|
260
286
|
medium: string;
|
|
@@ -363,11 +389,13 @@ declare type ThemeComponent = {
|
|
|
363
389
|
fontWeight: number;
|
|
364
390
|
lineHeight: string;
|
|
365
391
|
padding: string;
|
|
392
|
+
optionPadding: string;
|
|
366
393
|
color: string;
|
|
367
394
|
fill: string;
|
|
368
395
|
options: {
|
|
369
396
|
borderColor: string;
|
|
370
397
|
color: string;
|
|
398
|
+
borderRadius: string;
|
|
371
399
|
};
|
|
372
400
|
};
|
|
373
401
|
modal: {
|
|
@@ -381,6 +409,256 @@ declare type ThemeComponent = {
|
|
|
381
409
|
selectedContrast: string;
|
|
382
410
|
tagColor: string;
|
|
383
411
|
};
|
|
412
|
+
slideNavigation: {
|
|
413
|
+
slideDots: {
|
|
414
|
+
unselectedDotColor: string;
|
|
415
|
+
selectedDotColor: string;
|
|
416
|
+
dotsOpacity: number;
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
beforeAfter: {
|
|
420
|
+
size: {
|
|
421
|
+
small: {
|
|
422
|
+
image: {
|
|
423
|
+
minHeight: string;
|
|
424
|
+
minWidth: string;
|
|
425
|
+
mobile: {
|
|
426
|
+
minHeight: string;
|
|
427
|
+
minWidth: string;
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
imageContainer: {
|
|
431
|
+
maxWidth: string;
|
|
432
|
+
padding: string;
|
|
433
|
+
mobile: {
|
|
434
|
+
maxWidth: string;
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
userInfoText: {
|
|
438
|
+
fontSize: string;
|
|
439
|
+
mobile: {
|
|
440
|
+
fontSize: string;
|
|
441
|
+
};
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
medium: {
|
|
445
|
+
image: {
|
|
446
|
+
minHeight: string;
|
|
447
|
+
minWidth: string;
|
|
448
|
+
mobile: {
|
|
449
|
+
minHeight: string;
|
|
450
|
+
minWidth: string;
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
imageContainer: {
|
|
454
|
+
maxWidth: string;
|
|
455
|
+
padding: string;
|
|
456
|
+
mobile: {
|
|
457
|
+
maxWidth: string;
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
userInfoText: {
|
|
461
|
+
fontSize: string;
|
|
462
|
+
mobile: {
|
|
463
|
+
fontSize: string;
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
large: {
|
|
468
|
+
image: {
|
|
469
|
+
minHeight: string;
|
|
470
|
+
minWidth: string;
|
|
471
|
+
mobile: {
|
|
472
|
+
minHeight: string;
|
|
473
|
+
minWidth: string;
|
|
474
|
+
};
|
|
475
|
+
};
|
|
476
|
+
imageContainer: {
|
|
477
|
+
maxWidth: string;
|
|
478
|
+
padding: string;
|
|
479
|
+
mobile: {
|
|
480
|
+
maxWidth: string;
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
userInfoText: {
|
|
484
|
+
fontSize: string;
|
|
485
|
+
mobile: {
|
|
486
|
+
fontSize: string;
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
total: {
|
|
493
|
+
basicTotal: {
|
|
494
|
+
amount: {
|
|
495
|
+
color: string;
|
|
496
|
+
fontSize: string;
|
|
497
|
+
};
|
|
498
|
+
currency: {
|
|
499
|
+
color: string;
|
|
500
|
+
fontSize: string;
|
|
501
|
+
lineHeight: string;
|
|
502
|
+
alignSelf?: string;
|
|
503
|
+
};
|
|
504
|
+
savings: {
|
|
505
|
+
textFontSize: string;
|
|
506
|
+
textLineHeight: string;
|
|
507
|
+
amountFontSize: string;
|
|
508
|
+
amountFontWeight: number;
|
|
509
|
+
amountLineHeight: string;
|
|
510
|
+
color?: string;
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
subTotal: {
|
|
515
|
+
basicSubTotal: {
|
|
516
|
+
family: string;
|
|
517
|
+
size: string;
|
|
518
|
+
weight: number;
|
|
519
|
+
lineHeight: string;
|
|
520
|
+
color: string;
|
|
521
|
+
};
|
|
522
|
+
};
|
|
523
|
+
pricing: {
|
|
524
|
+
priceLabel: {
|
|
525
|
+
price: {
|
|
526
|
+
size: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
|
|
527
|
+
originalPriceColor: string;
|
|
528
|
+
actualPriceColor: string;
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
};
|
|
532
|
+
orderSummary: {
|
|
533
|
+
headingTextAlign: string;
|
|
534
|
+
backgroundColor?: string;
|
|
535
|
+
padding?: string;
|
|
536
|
+
borderRadius?: string;
|
|
537
|
+
maxWidth?: string;
|
|
538
|
+
onMobile: {
|
|
539
|
+
maxWidth?: string;
|
|
540
|
+
padding?: string;
|
|
541
|
+
backgroundColor?: string;
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
expressCheckout: {
|
|
545
|
+
button: {
|
|
546
|
+
borderRadius: string;
|
|
547
|
+
};
|
|
548
|
+
};
|
|
549
|
+
copyrightText: {
|
|
550
|
+
fontSize: string;
|
|
551
|
+
fontWeight: number;
|
|
552
|
+
lineHeight: string;
|
|
553
|
+
color: string;
|
|
554
|
+
};
|
|
555
|
+
thankyouFooterText: {
|
|
556
|
+
fontSize: string;
|
|
557
|
+
fontWeight: string;
|
|
558
|
+
lineHeight: string;
|
|
559
|
+
};
|
|
560
|
+
textButton: {
|
|
561
|
+
fontWeight: number;
|
|
562
|
+
lineHeight: string;
|
|
563
|
+
};
|
|
564
|
+
deliveryDetails: {
|
|
565
|
+
title: {
|
|
566
|
+
fontSize: string;
|
|
567
|
+
lineHeight: string;
|
|
568
|
+
fontWeight: number;
|
|
569
|
+
};
|
|
570
|
+
note: {
|
|
571
|
+
accentColor: string;
|
|
572
|
+
color: string;
|
|
573
|
+
backgroundColor: string;
|
|
574
|
+
};
|
|
575
|
+
sectionTitle: {
|
|
576
|
+
fontSize: string;
|
|
577
|
+
lineHeight: string;
|
|
578
|
+
fontWeight: number;
|
|
579
|
+
};
|
|
580
|
+
sectionDetails: {
|
|
581
|
+
fontSize: string;
|
|
582
|
+
lineHeight: string;
|
|
583
|
+
fontWeight: number;
|
|
584
|
+
marginLeft?: string;
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
text: {
|
|
588
|
+
orderHeader: {
|
|
589
|
+
color: string;
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
orderBar: {
|
|
593
|
+
backgroundColor: string;
|
|
594
|
+
fontColor: string;
|
|
595
|
+
};
|
|
596
|
+
banner: {
|
|
597
|
+
outlineColor: string;
|
|
598
|
+
filledColor: string;
|
|
599
|
+
fontColor: string;
|
|
600
|
+
};
|
|
601
|
+
offerTitleText: {
|
|
602
|
+
size: string;
|
|
603
|
+
weight: number;
|
|
604
|
+
lineHeight: string;
|
|
605
|
+
};
|
|
606
|
+
linePrice: {
|
|
607
|
+
color: string;
|
|
608
|
+
badge: {
|
|
609
|
+
color: string;
|
|
610
|
+
borderRadius: string;
|
|
611
|
+
};
|
|
612
|
+
};
|
|
613
|
+
divider: {
|
|
614
|
+
color: string;
|
|
615
|
+
};
|
|
616
|
+
checkout: {
|
|
617
|
+
paymentInformation: {
|
|
618
|
+
borderRadius?: string;
|
|
619
|
+
};
|
|
620
|
+
creditCardSection: {
|
|
621
|
+
borderRadius?: string;
|
|
622
|
+
};
|
|
623
|
+
};
|
|
624
|
+
upsell: {
|
|
625
|
+
banner: {
|
|
626
|
+
outlined: {
|
|
627
|
+
color?: string;
|
|
628
|
+
};
|
|
629
|
+
};
|
|
630
|
+
price: {
|
|
631
|
+
colors: {
|
|
632
|
+
regular: string;
|
|
633
|
+
deal: string;
|
|
634
|
+
each: string;
|
|
635
|
+
badgeBG: string;
|
|
636
|
+
badgeColor: string;
|
|
637
|
+
};
|
|
638
|
+
};
|
|
639
|
+
hurryTimeCard: {
|
|
640
|
+
backgroundColor: string;
|
|
641
|
+
};
|
|
642
|
+
guaranteedFit?: {
|
|
643
|
+
backgroundColor: string;
|
|
644
|
+
};
|
|
645
|
+
};
|
|
646
|
+
thankyou: {
|
|
647
|
+
orderBanner?: {
|
|
648
|
+
text: {
|
|
649
|
+
left: string;
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
emailSection: {
|
|
653
|
+
backgroundColor?: string;
|
|
654
|
+
};
|
|
655
|
+
socialIcon: {
|
|
656
|
+
color?: string;
|
|
657
|
+
};
|
|
658
|
+
orderId: {
|
|
659
|
+
color: string;
|
|
660
|
+
};
|
|
661
|
+
};
|
|
384
662
|
};
|
|
385
663
|
declare type ThemeTypography = {
|
|
386
664
|
config: {
|
|
@@ -407,6 +685,26 @@ declare type ThemeAssets = {
|
|
|
407
685
|
images: {
|
|
408
686
|
favicon: string;
|
|
409
687
|
logo: string;
|
|
688
|
+
logoSize?: {
|
|
689
|
+
width: string;
|
|
690
|
+
height: string;
|
|
691
|
+
};
|
|
692
|
+
logoMobile?: string;
|
|
693
|
+
checkoutLogo?: {
|
|
694
|
+
url: string;
|
|
695
|
+
width: string;
|
|
696
|
+
height: string;
|
|
697
|
+
};
|
|
698
|
+
upsellLogo?: {
|
|
699
|
+
url: string;
|
|
700
|
+
width: string;
|
|
701
|
+
height: string;
|
|
702
|
+
};
|
|
703
|
+
tyLogo?: {
|
|
704
|
+
url: string;
|
|
705
|
+
width: string;
|
|
706
|
+
height: string;
|
|
707
|
+
};
|
|
410
708
|
};
|
|
411
709
|
[key: string]: any;
|
|
412
710
|
};
|