@trafilea/afrodita-components 5.0.0-beta.15 → 5.0.0-beta.150
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 +3 -1
- package/build/index.d.ts +930 -76
- package/build/index.esm.css +3 -1
- package/build/index.esm.js +6810 -4102
- package/build/index.esm.js.map +1 -1
- package/build/index.js +6825 -4102
- package/build/index.js.map +1 -1
- package/build/theme/revel.theme.d.ts +597 -0
- package/build/theme/revel.theme.js +941 -0
- package/build/theme/shapermint.theme.d.ts +181 -0
- package/build/theme/shapermint.theme.js +213 -1
- package/build/theme/truekind.theme.d.ts +181 -0
- package/build/theme/truekind.theme.js +204 -0
- package/package.json +4 -3
|
@@ -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;
|
|
@@ -138,6 +139,12 @@ declare type ThemeComponent = {
|
|
|
138
139
|
lineHeight: string;
|
|
139
140
|
border: string;
|
|
140
141
|
boxShadow: string;
|
|
142
|
+
errorBorder: string;
|
|
143
|
+
};
|
|
144
|
+
inputPlaceholder: {
|
|
145
|
+
fontSize: string;
|
|
146
|
+
padding: string;
|
|
147
|
+
focusBorder: string;
|
|
141
148
|
};
|
|
142
149
|
inputCustom: {
|
|
143
150
|
button: {
|
|
@@ -170,6 +177,12 @@ declare type ThemeComponent = {
|
|
|
170
177
|
border: string;
|
|
171
178
|
color: string;
|
|
172
179
|
};
|
|
180
|
+
noStock: {
|
|
181
|
+
fontWeight: number;
|
|
182
|
+
background: string;
|
|
183
|
+
border: string;
|
|
184
|
+
color: string;
|
|
185
|
+
};
|
|
173
186
|
disabled: {
|
|
174
187
|
border: string;
|
|
175
188
|
};
|
|
@@ -223,10 +236,13 @@ declare type ThemeComponent = {
|
|
|
223
236
|
};
|
|
224
237
|
card: {
|
|
225
238
|
borderRadius: string;
|
|
239
|
+
backgroundColor: string;
|
|
226
240
|
};
|
|
227
241
|
radio: {
|
|
228
242
|
borderColor: string;
|
|
229
243
|
background: string;
|
|
244
|
+
textSize: string;
|
|
245
|
+
lineHeight: string;
|
|
230
246
|
size: {
|
|
231
247
|
small: {
|
|
232
248
|
borderWidth: string;
|
|
@@ -255,6 +271,7 @@ declare type ThemeComponent = {
|
|
|
255
271
|
};
|
|
256
272
|
};
|
|
257
273
|
label: {
|
|
274
|
+
color: string;
|
|
258
275
|
fontSize: {
|
|
259
276
|
small: string;
|
|
260
277
|
medium: string;
|
|
@@ -368,6 +385,7 @@ declare type ThemeComponent = {
|
|
|
368
385
|
options: {
|
|
369
386
|
borderColor: string;
|
|
370
387
|
color: string;
|
|
388
|
+
borderRadius: string;
|
|
371
389
|
};
|
|
372
390
|
};
|
|
373
391
|
modal: {
|
|
@@ -381,6 +399,164 @@ declare type ThemeComponent = {
|
|
|
381
399
|
selectedContrast: string;
|
|
382
400
|
tagColor: string;
|
|
383
401
|
};
|
|
402
|
+
slideNavigation: {
|
|
403
|
+
slideDots: {
|
|
404
|
+
unselectedDotColor: string;
|
|
405
|
+
selectedDotColor: string;
|
|
406
|
+
dotsOpacity: number;
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
beforeAfter: {
|
|
410
|
+
size: {
|
|
411
|
+
small: {
|
|
412
|
+
image: {
|
|
413
|
+
minHeight: string;
|
|
414
|
+
minWidth: string;
|
|
415
|
+
mobile: {
|
|
416
|
+
minHeight: string;
|
|
417
|
+
minWidth: string;
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
imageContainer: {
|
|
421
|
+
maxWidth: string;
|
|
422
|
+
padding: string;
|
|
423
|
+
mobile: {
|
|
424
|
+
maxWidth: string;
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
userInfoText: {
|
|
428
|
+
fontSize: string;
|
|
429
|
+
mobile: {
|
|
430
|
+
fontSize: string;
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
medium: {
|
|
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
|
+
large: {
|
|
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
|
+
};
|
|
481
|
+
};
|
|
482
|
+
total: {
|
|
483
|
+
basicTotal: {
|
|
484
|
+
amount: {
|
|
485
|
+
color: string;
|
|
486
|
+
fontSize: string;
|
|
487
|
+
};
|
|
488
|
+
currency: {
|
|
489
|
+
color: string;
|
|
490
|
+
fontSize: string;
|
|
491
|
+
lineHeight: string;
|
|
492
|
+
alignSelf?: string;
|
|
493
|
+
};
|
|
494
|
+
savings: {
|
|
495
|
+
textFontSize: string;
|
|
496
|
+
textLineHeight: string;
|
|
497
|
+
amountFontSize: string;
|
|
498
|
+
amountFontWeight: number;
|
|
499
|
+
amountLineHeight: string;
|
|
500
|
+
color?: string;
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
};
|
|
504
|
+
subTotal: {
|
|
505
|
+
basicSubTotal: {
|
|
506
|
+
family: string;
|
|
507
|
+
size: string;
|
|
508
|
+
weight: number;
|
|
509
|
+
lineHeight: string;
|
|
510
|
+
color: string;
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
pricing: {
|
|
514
|
+
priceLabel: {
|
|
515
|
+
price: {
|
|
516
|
+
size: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
|
|
517
|
+
originalPriceColor: string;
|
|
518
|
+
actualPriceColor: string;
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
};
|
|
522
|
+
orderSummary: {
|
|
523
|
+
backgroundColor: string;
|
|
524
|
+
maxWidth?: string;
|
|
525
|
+
padding?: string;
|
|
526
|
+
borderRadius?: string;
|
|
527
|
+
onMobile: {
|
|
528
|
+
maxWidth?: string;
|
|
529
|
+
padding?: string;
|
|
530
|
+
backgroundColor?: string;
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
expressCheckout: {
|
|
534
|
+
fontFamily: string;
|
|
535
|
+
fontWeight: number;
|
|
536
|
+
lineHeight: string;
|
|
537
|
+
};
|
|
538
|
+
copyrightText: {
|
|
539
|
+
fontSize: string;
|
|
540
|
+
fontWeight: number;
|
|
541
|
+
lineHeight: string;
|
|
542
|
+
color: string;
|
|
543
|
+
};
|
|
544
|
+
textButton: {
|
|
545
|
+
fontWeight: number;
|
|
546
|
+
lineHeight: string;
|
|
547
|
+
};
|
|
548
|
+
deliveryDetails: {
|
|
549
|
+
note: {
|
|
550
|
+
accentColor: string;
|
|
551
|
+
color: string;
|
|
552
|
+
backgroundColor: string;
|
|
553
|
+
};
|
|
554
|
+
};
|
|
555
|
+
text: {
|
|
556
|
+
orderHeader: {
|
|
557
|
+
color: string;
|
|
558
|
+
};
|
|
559
|
+
};
|
|
384
560
|
};
|
|
385
561
|
declare type ThemeTypography = {
|
|
386
562
|
config: {
|
|
@@ -407,6 +583,11 @@ declare type ThemeAssets = {
|
|
|
407
583
|
images: {
|
|
408
584
|
favicon: string;
|
|
409
585
|
logo: string;
|
|
586
|
+
logoSize?: {
|
|
587
|
+
width: string;
|
|
588
|
+
height: string;
|
|
589
|
+
};
|
|
590
|
+
logoMobile?: string;
|
|
410
591
|
};
|
|
411
592
|
[key: string]: any;
|
|
412
593
|
};
|
|
@@ -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',
|
|
@@ -234,6 +268,12 @@ var shapermint = {
|
|
|
234
268
|
lineHeight: '1.5rem',
|
|
235
269
|
border: '0.063rem solid var(--colors-shades-200-color)',
|
|
236
270
|
boxShadow: 'none',
|
|
271
|
+
errorBorder: '0.09375rem solid #d3373c',
|
|
272
|
+
},
|
|
273
|
+
inputPlaceholder: {
|
|
274
|
+
fontSize: '0.875rem',
|
|
275
|
+
padding: '1.125rem 0.9375rem 0 0.9375rem',
|
|
276
|
+
focusBorder: '0.09375rem solid #1990c6',
|
|
237
277
|
},
|
|
238
278
|
inputCustom: {
|
|
239
279
|
button: {
|
|
@@ -266,6 +306,12 @@ var shapermint = {
|
|
|
266
306
|
border: 'none',
|
|
267
307
|
color: '--colors-shades-white-color',
|
|
268
308
|
},
|
|
309
|
+
noStock: {
|
|
310
|
+
fontWeight: 600,
|
|
311
|
+
background: 'transparent',
|
|
312
|
+
border: '1px solid #3a3a3a4d',
|
|
313
|
+
color: '#3a3a3a4d',
|
|
314
|
+
},
|
|
269
315
|
disabled: {
|
|
270
316
|
border: 'none',
|
|
271
317
|
},
|
|
@@ -319,10 +365,13 @@ var shapermint = {
|
|
|
319
365
|
},
|
|
320
366
|
card: {
|
|
321
367
|
borderRadius: '0.5rem',
|
|
368
|
+
backgroundColor: '#f7ece4',
|
|
322
369
|
},
|
|
323
370
|
radio: {
|
|
324
371
|
borderColor: '--colors-shades-700-color',
|
|
325
372
|
background: '--colors-shades-white-color',
|
|
373
|
+
textSize: '16px',
|
|
374
|
+
lineHeight: 'normal',
|
|
326
375
|
size: {
|
|
327
376
|
large: {
|
|
328
377
|
borderWidth: '0.094rem',
|
|
@@ -351,6 +400,7 @@ var shapermint = {
|
|
|
351
400
|
},
|
|
352
401
|
},
|
|
353
402
|
label: {
|
|
403
|
+
color: '--colors-pallete-secondary-color',
|
|
354
404
|
fontSize: {
|
|
355
405
|
small: '0.75rem',
|
|
356
406
|
medium: '0.75rem',
|
|
@@ -464,6 +514,7 @@ var shapermint = {
|
|
|
464
514
|
options: {
|
|
465
515
|
borderColor: '--colors-shades-700-color',
|
|
466
516
|
color: '--colors-shades-700-color',
|
|
517
|
+
borderRadius: '0.5rem',
|
|
467
518
|
},
|
|
468
519
|
},
|
|
469
520
|
modal: {
|
|
@@ -477,6 +528,163 @@ var shapermint = {
|
|
|
477
528
|
selectedContrast: '--colors-semantic-positive-contrast',
|
|
478
529
|
tagColor: '--colors-semantic-attention-color',
|
|
479
530
|
},
|
|
531
|
+
slideNavigation: {
|
|
532
|
+
slideDots: {
|
|
533
|
+
unselectedDotColor: '--colors-shades-700-color',
|
|
534
|
+
selectedDotColor: '--colors-shades-white-color',
|
|
535
|
+
dotsOpacity: 0.6,
|
|
536
|
+
},
|
|
537
|
+
},
|
|
538
|
+
beforeAfter: {
|
|
539
|
+
size: {
|
|
540
|
+
small: {
|
|
541
|
+
image: {
|
|
542
|
+
minHeight: 'auto',
|
|
543
|
+
minWidth: '92px',
|
|
544
|
+
mobile: {
|
|
545
|
+
minHeight: '138px',
|
|
546
|
+
minWidth: '128px',
|
|
547
|
+
},
|
|
548
|
+
},
|
|
549
|
+
imageContainer: {
|
|
550
|
+
maxWidth: '214px',
|
|
551
|
+
padding: '12px',
|
|
552
|
+
mobile: {
|
|
553
|
+
maxWidth: '286px',
|
|
554
|
+
},
|
|
555
|
+
},
|
|
556
|
+
userInfoText: {
|
|
557
|
+
fontSize: '12px',
|
|
558
|
+
mobile: {
|
|
559
|
+
fontSize: '12px',
|
|
560
|
+
},
|
|
561
|
+
},
|
|
562
|
+
},
|
|
563
|
+
medium: {
|
|
564
|
+
image: {
|
|
565
|
+
minHeight: '200px',
|
|
566
|
+
minWidth: '187px',
|
|
567
|
+
mobile: {
|
|
568
|
+
minHeight: '157px',
|
|
569
|
+
minWidth: '150px',
|
|
570
|
+
},
|
|
571
|
+
},
|
|
572
|
+
imageContainer: {
|
|
573
|
+
maxWidth: '427px',
|
|
574
|
+
padding: '18px',
|
|
575
|
+
mobile: {
|
|
576
|
+
maxWidth: '342px',
|
|
577
|
+
},
|
|
578
|
+
},
|
|
579
|
+
userInfoText: {
|
|
580
|
+
fontSize: '18px',
|
|
581
|
+
mobile: {
|
|
582
|
+
fontSize: '14px',
|
|
583
|
+
},
|
|
584
|
+
},
|
|
585
|
+
},
|
|
586
|
+
large: {
|
|
587
|
+
image: {
|
|
588
|
+
minHeight: '200px',
|
|
589
|
+
minWidth: '187px',
|
|
590
|
+
mobile: {
|
|
591
|
+
minHeight: '157px',
|
|
592
|
+
minWidth: '150px',
|
|
593
|
+
},
|
|
594
|
+
},
|
|
595
|
+
imageContainer: {
|
|
596
|
+
maxWidth: '427px',
|
|
597
|
+
padding: '18px',
|
|
598
|
+
mobile: {
|
|
599
|
+
maxWidth: '342px',
|
|
600
|
+
},
|
|
601
|
+
},
|
|
602
|
+
userInfoText: {
|
|
603
|
+
fontSize: '18px',
|
|
604
|
+
mobile: {
|
|
605
|
+
fontSize: '14px',
|
|
606
|
+
},
|
|
607
|
+
},
|
|
608
|
+
},
|
|
609
|
+
},
|
|
610
|
+
},
|
|
611
|
+
total: {
|
|
612
|
+
basicTotal: {
|
|
613
|
+
amount: {
|
|
614
|
+
color: '--colors-shades-550-color',
|
|
615
|
+
fontSize: '24px',
|
|
616
|
+
},
|
|
617
|
+
currency: {
|
|
618
|
+
color: '--colors-shades-550-color',
|
|
619
|
+
fontSize: '14px',
|
|
620
|
+
lineHeight: '22px',
|
|
621
|
+
alignSelf: 'flex-end',
|
|
622
|
+
},
|
|
623
|
+
savings: {
|
|
624
|
+
textFontSize: '16px',
|
|
625
|
+
textLineHeight: '24px',
|
|
626
|
+
amountFontSize: '16px',
|
|
627
|
+
amountFontWeight: 600,
|
|
628
|
+
amountLineHeight: '24px',
|
|
629
|
+
color: '--colors-semantic-positive-color',
|
|
630
|
+
},
|
|
631
|
+
},
|
|
632
|
+
},
|
|
633
|
+
subTotal: {
|
|
634
|
+
basicSubTotal: {
|
|
635
|
+
family: 'Jost',
|
|
636
|
+
size: '16px',
|
|
637
|
+
weight: 600,
|
|
638
|
+
lineHeight: '22px',
|
|
639
|
+
color: '--colors-shades-550-color',
|
|
640
|
+
},
|
|
641
|
+
},
|
|
642
|
+
pricing: {
|
|
643
|
+
priceLabel: {
|
|
644
|
+
price: {
|
|
645
|
+
size: ComponentSize.Small,
|
|
646
|
+
originalPriceColor: '--colors-shades-300-color',
|
|
647
|
+
actualPriceColor: '--colors-semantic-urgent-color',
|
|
648
|
+
},
|
|
649
|
+
},
|
|
650
|
+
},
|
|
651
|
+
orderSummary: {
|
|
652
|
+
backgroundColor: '--colors-shades-5-color',
|
|
653
|
+
padding: '',
|
|
654
|
+
borderRadius: '',
|
|
655
|
+
maxWidth: '460px',
|
|
656
|
+
onMobile: {
|
|
657
|
+
maxWidth: '100%',
|
|
658
|
+
padding: '15px',
|
|
659
|
+
},
|
|
660
|
+
},
|
|
661
|
+
expressCheckout: {
|
|
662
|
+
fontFamily: '-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica,Arial, sans-serif',
|
|
663
|
+
fontWeight: 500,
|
|
664
|
+
lineHeight: '16px',
|
|
665
|
+
},
|
|
666
|
+
copyrightText: {
|
|
667
|
+
fontSize: '16px',
|
|
668
|
+
fontWeight: 400,
|
|
669
|
+
lineHeight: '24px',
|
|
670
|
+
color: '--colors-pallete-secondary-color',
|
|
671
|
+
},
|
|
672
|
+
textButton: {
|
|
673
|
+
fontWeight: 500,
|
|
674
|
+
lineHeight: 'normal',
|
|
675
|
+
},
|
|
676
|
+
deliveryDetails: {
|
|
677
|
+
note: {
|
|
678
|
+
accentColor: '--colors-semantic-urgent-color',
|
|
679
|
+
color: '--colors-text-color',
|
|
680
|
+
backgroundColor: '--colors-pallete-primary-20-color',
|
|
681
|
+
},
|
|
682
|
+
},
|
|
683
|
+
text: {
|
|
684
|
+
orderHeader: {
|
|
685
|
+
color: '--colors-pallete-primary-color',
|
|
686
|
+
},
|
|
687
|
+
},
|
|
480
688
|
},
|
|
481
689
|
typography: {
|
|
482
690
|
config: {
|
|
@@ -687,7 +895,11 @@ var shapermint = {
|
|
|
687
895
|
assets: {
|
|
688
896
|
images: {
|
|
689
897
|
favicon: 'https://cdn.shopify.com/s/files/1/2679/8624/files/shapermint_favicon-128x128.png',
|
|
690
|
-
logo: 'https://cdn.jsdelivr.net/gh/
|
|
898
|
+
logo: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/images/shapermint/shapermint_logo_black.svg',
|
|
899
|
+
logoSize: {
|
|
900
|
+
width: '230',
|
|
901
|
+
height: '46',
|
|
902
|
+
},
|
|
691
903
|
},
|
|
692
904
|
},
|
|
693
905
|
};
|