@trafilea/afrodita-components 6.4.6 → 6.5.1

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.
@@ -0,0 +1,764 @@
1
+ import { CSSProperties } from 'react';
2
+
3
+ declare enum ComponentSize {
4
+ Large = "large",
5
+ Medium = "medium",
6
+ Small = "small",
7
+ XSmall = "xsmall"
8
+ }
9
+
10
+ declare type Themes = 'Shapermint' | 'Truekind' | 'Revel' | 'TheSpaDr' | 'TheBodCon';
11
+ declare type Theme = {
12
+ name: Themes;
13
+ fontSizes: number[];
14
+ fontWeights: number[];
15
+ lineHeights: number[];
16
+ mediaQueries: ThemeBreakpoints;
17
+ radius: {
18
+ regular: string;
19
+ };
20
+ zIndex: {
21
+ modal: number;
22
+ overlay: number;
23
+ };
24
+ colors: ThemeColors;
25
+ component: ThemeComponent;
26
+ typography: ThemeTypography;
27
+ fonts: ThemeFonts;
28
+ assets: ThemeAssets;
29
+ };
30
+ declare type ThemeBreakpoints = {
31
+ mobile: number;
32
+ tablet: number;
33
+ desktop: number;
34
+ };
35
+ declare type ThemeBasicPallete = {
36
+ color: string;
37
+ contrast: string;
38
+ };
39
+ declare type ThemeColorPallete = ThemeBasicPallete & {
40
+ soft?: ThemeBasicPallete;
41
+ };
42
+ declare type ThemeColorPrimaryPallete = ThemeColorPallete & {
43
+ 20: ThemeColorPallete;
44
+ 40: ThemeColorPallete;
45
+ 60: ThemeColorPallete;
46
+ 80: ThemeColorPallete;
47
+ };
48
+ declare type ThemeColors = {
49
+ pallete: {
50
+ primary: ThemeColorPrimaryPallete;
51
+ secondary: ThemeColorPrimaryPallete;
52
+ tertiary?: ThemeColorPrimaryPallete;
53
+ } & Partial<Record<string, ThemeColorPallete>>;
54
+ shades: {
55
+ black: ThemeBasicPallete;
56
+ white: ThemeBasicPallete;
57
+ 5: ThemeBasicPallete;
58
+ 10: ThemeBasicPallete;
59
+ 50: ThemeBasicPallete;
60
+ 100: ThemeBasicPallete;
61
+ 150: ThemeBasicPallete;
62
+ 175: ThemeBasicPallete;
63
+ 200: ThemeBasicPallete;
64
+ 250: ThemeBasicPallete;
65
+ 300: ThemeBasicPallete;
66
+ 350: ThemeBasicPallete;
67
+ 400: ThemeBasicPallete;
68
+ 450: ThemeBasicPallete;
69
+ 500: ThemeBasicPallete;
70
+ 550: ThemeBasicPallete;
71
+ 600: ThemeBasicPallete;
72
+ 650: ThemeBasicPallete;
73
+ 700: ThemeBasicPallete;
74
+ 750: ThemeBasicPallete;
75
+ 800: ThemeBasicPallete;
76
+ 850: ThemeBasicPallete;
77
+ 900: ThemeBasicPallete;
78
+ 950: ThemeBasicPallete;
79
+ 990: ThemeBasicPallete;
80
+ };
81
+ semantic: {
82
+ positive: ThemeBasicPallete;
83
+ urgent: ThemeBasicPallete;
84
+ attention: ThemeBasicPallete;
85
+ informative: ThemeBasicPallete;
86
+ };
87
+ border: {
88
+ color: string;
89
+ disabled: string;
90
+ highlight: string;
91
+ shadow?: string;
92
+ isChecked?: string;
93
+ };
94
+ background: {
95
+ color: string;
96
+ disabled: string;
97
+ };
98
+ text: {
99
+ color: string;
100
+ disabled: string;
101
+ };
102
+ };
103
+ declare type ThemeComponent = {
104
+ button: {
105
+ border: string;
106
+ borderRadius: string;
107
+ fontWeight: number;
108
+ lineHeight: string;
109
+ letterSpacing: string;
110
+ minWidth: string;
111
+ minHeight: string;
112
+ size: {
113
+ small: {
114
+ fontSize: string;
115
+ padding: string;
116
+ };
117
+ medium: {
118
+ fontSize: string;
119
+ padding: string;
120
+ };
121
+ large: {
122
+ fontSize: string;
123
+ padding: string;
124
+ };
125
+ };
126
+ primary: {
127
+ active: {
128
+ backgroundColor: string;
129
+ color: string;
130
+ };
131
+ hover: {
132
+ backgroundColor: string;
133
+ color: string;
134
+ };
135
+ };
136
+ secondary: {
137
+ active: {
138
+ backgroundColor: string;
139
+ color: string;
140
+ };
141
+ hover: {
142
+ backgroundColor: string;
143
+ color: string;
144
+ };
145
+ };
146
+ };
147
+ input: {
148
+ background: string;
149
+ color: string;
150
+ placeholderColor: string;
151
+ borderRadius: string;
152
+ fontSize: string;
153
+ fontWeight: number;
154
+ padding: string;
155
+ lineHeight: string;
156
+ border: string;
157
+ boxShadow: string;
158
+ errorBorder: string;
159
+ };
160
+ inputPlaceholder: {
161
+ fontSize: string;
162
+ padding: string;
163
+ focusBorder: string;
164
+ };
165
+ inputCustom: {
166
+ button: {
167
+ borderRadius: string;
168
+ };
169
+ input: {
170
+ borderRadius: string;
171
+ };
172
+ };
173
+ selector: {
174
+ size: {
175
+ small: {
176
+ padding: string;
177
+ borderRadius: string;
178
+ };
179
+ medium: {
180
+ padding: string;
181
+ borderRadius: string;
182
+ };
183
+ };
184
+ default: {
185
+ fontWeight: number;
186
+ border: string;
187
+ background: string;
188
+ color: string;
189
+ };
190
+ hover: {
191
+ fontWeight: number;
192
+ background: string;
193
+ border: string;
194
+ color: string;
195
+ };
196
+ noStock: {
197
+ fontWeight: number;
198
+ background: string;
199
+ border: string;
200
+ color: string;
201
+ };
202
+ disabled: {
203
+ border: string;
204
+ };
205
+ fontSize: string;
206
+ };
207
+ rating: {
208
+ fontWeight: number;
209
+ size: {
210
+ xsmall: {
211
+ fontSize: string;
212
+ lineHeight: string;
213
+ };
214
+ small: {
215
+ fontSize: string;
216
+ lineHeight: string;
217
+ };
218
+ medium: {
219
+ fontSize: string;
220
+ lineHeight: string;
221
+ };
222
+ large: {
223
+ fontSize: string;
224
+ lineHeight: string;
225
+ };
226
+ };
227
+ };
228
+ stars: {
229
+ element: {
230
+ color: string;
231
+ xsmall: {
232
+ width: string;
233
+ height: string;
234
+ marginRight: string;
235
+ };
236
+ small: {
237
+ width: string;
238
+ height: string;
239
+ marginRight: string;
240
+ };
241
+ medium: {
242
+ width: string;
243
+ height: string;
244
+ marginRight: string;
245
+ };
246
+ large: {
247
+ width: string;
248
+ height: string;
249
+ marginRight: string;
250
+ };
251
+ };
252
+ };
253
+ card: {
254
+ borderRadius: string;
255
+ backgroundColor: string;
256
+ };
257
+ radio: {
258
+ borderColor: string;
259
+ background: string;
260
+ textSize: string;
261
+ lineHeight: string;
262
+ size: {
263
+ small: {
264
+ borderWidth: string;
265
+ margin: string;
266
+ height: string;
267
+ active: {
268
+ borderWidth: string;
269
+ };
270
+ };
271
+ medium: {
272
+ borderWidth: string;
273
+ margin: string;
274
+ height: string;
275
+ active: {
276
+ borderWidth: string;
277
+ };
278
+ };
279
+ large: {
280
+ borderWidth: string;
281
+ margin: string;
282
+ height: string;
283
+ active: {
284
+ borderWidth: string;
285
+ };
286
+ };
287
+ };
288
+ };
289
+ label: {
290
+ color: string;
291
+ fontSize: {
292
+ small: string;
293
+ medium: string;
294
+ large: string;
295
+ };
296
+ lineHeight: {
297
+ small: string;
298
+ medium: string;
299
+ large: string;
300
+ };
301
+ };
302
+ checkbox: {
303
+ background: string;
304
+ borderColor: string;
305
+ active: {
306
+ background: string;
307
+ };
308
+ size: {
309
+ large: {
310
+ width: string;
311
+ height: string;
312
+ borderRadius: string;
313
+ borderWidth: string;
314
+ margin: string;
315
+ icon: {
316
+ width: string;
317
+ height: string;
318
+ };
319
+ };
320
+ medium: {
321
+ width: string;
322
+ height: string;
323
+ borderRadius: string;
324
+ borderWidth: string;
325
+ margin: string;
326
+ icon: {
327
+ width: string;
328
+ height: string;
329
+ };
330
+ };
331
+ small: {
332
+ width: string;
333
+ height: string;
334
+ borderRadius: string;
335
+ borderWidth: string;
336
+ margin: string;
337
+ icon: {
338
+ width: string;
339
+ height: string;
340
+ };
341
+ };
342
+ };
343
+ };
344
+ accordion: {
345
+ variant: {
346
+ box: {
347
+ container: {
348
+ border: string;
349
+ borderColor: string;
350
+ borderRadius: string;
351
+ padding: string;
352
+ };
353
+ summary: {
354
+ fontWeight: number;
355
+ fontSize: string;
356
+ lineHeight: string;
357
+ color: string;
358
+ };
359
+ details: {
360
+ margin: string;
361
+ };
362
+ icon: {
363
+ width: number;
364
+ height: number;
365
+ color: string;
366
+ };
367
+ };
368
+ simple: {
369
+ container: {
370
+ borderTop: string;
371
+ borderBottom: string;
372
+ borderColor: string;
373
+ borderRadius: string;
374
+ padding: string;
375
+ };
376
+ summary: {
377
+ fontWeight: number;
378
+ fontSize: string;
379
+ lineHeight: string;
380
+ color: string;
381
+ };
382
+ details: {
383
+ margin: string;
384
+ };
385
+ icon: {
386
+ width: number;
387
+ height: number;
388
+ color: string;
389
+ };
390
+ };
391
+ };
392
+ };
393
+ dropdown: {
394
+ borderRadius: string;
395
+ fontSize: string;
396
+ fontWeight: number;
397
+ lineHeight: string;
398
+ padding: string;
399
+ optionPadding: string;
400
+ color: string;
401
+ fill: string;
402
+ borderWidth?: string;
403
+ options: {
404
+ borderColor: string;
405
+ color: string;
406
+ borderRadius: string;
407
+ borderRadiusV2?: string;
408
+ backgroundColor?: string;
409
+ };
410
+ optionsWrapper: {
411
+ borderRadius: string;
412
+ overflow: string;
413
+ };
414
+ };
415
+ modal: {
416
+ minWidth: string;
417
+ };
418
+ packSelector: {
419
+ borderRadius: string;
420
+ borderColor: string;
421
+ highlightColor: string;
422
+ selectedColor: string;
423
+ selectedContrast: string;
424
+ tagColor: string;
425
+ };
426
+ slideNavigation: {
427
+ slideDots: {
428
+ unselectedDotColor: string;
429
+ selectedDotColor: string;
430
+ dotsOpacity: number;
431
+ };
432
+ };
433
+ beforeAfter: {
434
+ size: {
435
+ small: {
436
+ image: {
437
+ minHeight: string;
438
+ minWidth: string;
439
+ mobile: {
440
+ minHeight: string;
441
+ minWidth: string;
442
+ };
443
+ };
444
+ imageContainer: {
445
+ maxWidth: string;
446
+ padding: string;
447
+ mobile: {
448
+ maxWidth: string;
449
+ };
450
+ };
451
+ userInfoText: {
452
+ fontSize: string;
453
+ mobile: {
454
+ fontSize: string;
455
+ };
456
+ };
457
+ };
458
+ medium: {
459
+ image: {
460
+ minHeight: string;
461
+ minWidth: string;
462
+ mobile: {
463
+ minHeight: string;
464
+ minWidth: string;
465
+ };
466
+ };
467
+ imageContainer: {
468
+ maxWidth: string;
469
+ padding: string;
470
+ mobile: {
471
+ maxWidth: string;
472
+ };
473
+ };
474
+ userInfoText: {
475
+ fontSize: string;
476
+ mobile: {
477
+ fontSize: string;
478
+ };
479
+ };
480
+ };
481
+ large: {
482
+ image: {
483
+ minHeight: string;
484
+ minWidth: string;
485
+ mobile: {
486
+ minHeight: string;
487
+ minWidth: string;
488
+ };
489
+ };
490
+ imageContainer: {
491
+ maxWidth: string;
492
+ padding: string;
493
+ mobile: {
494
+ maxWidth: string;
495
+ };
496
+ };
497
+ userInfoText: {
498
+ fontSize: string;
499
+ mobile: {
500
+ fontSize: string;
501
+ };
502
+ };
503
+ };
504
+ };
505
+ };
506
+ total: {
507
+ basicTotal: {
508
+ amount: {
509
+ color: string;
510
+ fontSize: string;
511
+ };
512
+ currency: {
513
+ color: string;
514
+ fontSize: string;
515
+ lineHeight: string;
516
+ alignSelf?: string;
517
+ };
518
+ savings: {
519
+ amountFontWeight: number;
520
+ color?: string;
521
+ };
522
+ };
523
+ };
524
+ subTotal: {
525
+ basicSubTotal: {
526
+ family: string;
527
+ size: string;
528
+ weight: number;
529
+ lineHeight: string;
530
+ color: string;
531
+ };
532
+ };
533
+ pricing: {
534
+ priceLabel: {
535
+ price: {
536
+ size: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
537
+ originalPriceColor: string;
538
+ actualPriceColor: string;
539
+ defaultFontSize?: {
540
+ large: string;
541
+ medium: string;
542
+ small: string;
543
+ };
544
+ smallFontSize?: {
545
+ large: string;
546
+ medium: string;
547
+ small: string;
548
+ };
549
+ largeFontSize?: {
550
+ large: string;
551
+ medium: string;
552
+ small: string;
553
+ };
554
+ discountFontSize?: {
555
+ large: string;
556
+ medium: string;
557
+ small: string;
558
+ };
559
+ };
560
+ };
561
+ };
562
+ orderSummary: {
563
+ headingTextAlign: string;
564
+ backgroundColor?: string;
565
+ padding?: string;
566
+ borderRadius?: string;
567
+ maxWidth?: string;
568
+ onMobile: {
569
+ position?: string;
570
+ maxWidth?: string;
571
+ padding?: string;
572
+ backgroundColor?: string;
573
+ titleHeight?: string;
574
+ boxShadow?: string;
575
+ borderRadius?: string;
576
+ };
577
+ };
578
+ expressCheckout: {
579
+ button: {
580
+ borderRadius: string;
581
+ };
582
+ };
583
+ copyrightText: {
584
+ fontSize: string;
585
+ fontWeight: number;
586
+ lineHeight: string;
587
+ color: string;
588
+ };
589
+ thankyouFooterText: {
590
+ fontSize: string;
591
+ fontWeight: string;
592
+ lineHeight: string;
593
+ };
594
+ textButton: {
595
+ fontWeight: number;
596
+ lineHeight: string;
597
+ };
598
+ deliveryDetails: {
599
+ title: {
600
+ fontSize: string;
601
+ lineHeight: string;
602
+ fontWeight: number;
603
+ };
604
+ note: {
605
+ accentColor: string;
606
+ color: string;
607
+ backgroundColor: string;
608
+ };
609
+ sectionTitle: {
610
+ fontSize: string;
611
+ lineHeight: string;
612
+ fontWeight: number;
613
+ };
614
+ sectionDetails: {
615
+ fontSize: string;
616
+ lineHeight: string;
617
+ fontWeight: number;
618
+ marginLeft?: string;
619
+ };
620
+ };
621
+ text: {
622
+ orderHeader: {
623
+ color: string;
624
+ };
625
+ fitGuarantee: {
626
+ titleFontSize?: string;
627
+ titleFontWeight?: number | string;
628
+ fontWeight: number | string;
629
+ };
630
+ offerBanner: {
631
+ borderRadius: string;
632
+ };
633
+ };
634
+ orderBar: {
635
+ backgroundColor: string;
636
+ fontColor: string;
637
+ };
638
+ banner: {
639
+ outlineColor: string;
640
+ filledColor: string;
641
+ fontColor: string;
642
+ };
643
+ offerTitleText: {
644
+ size: string;
645
+ weight: number;
646
+ lineHeight: string;
647
+ };
648
+ linePrice: {
649
+ color: string;
650
+ badge: {
651
+ color: string;
652
+ borderRadius: string;
653
+ };
654
+ };
655
+ divider: {
656
+ color: string;
657
+ };
658
+ checkout: {
659
+ paymentInformation: {
660
+ borderRadius?: string;
661
+ };
662
+ creditCardSection: {
663
+ borderRadius?: string;
664
+ };
665
+ };
666
+ upsell: {
667
+ banner: {
668
+ outlined: {
669
+ color?: string;
670
+ };
671
+ };
672
+ price: {
673
+ colors: {
674
+ regular: string;
675
+ deal: string;
676
+ each: string;
677
+ badgeBG: string;
678
+ badgeColor: string;
679
+ };
680
+ };
681
+ hurryTimeCard: {
682
+ backgroundColor: string;
683
+ };
684
+ guaranteedFit?: {
685
+ backgroundColor: string;
686
+ };
687
+ };
688
+ thankyou: {
689
+ orderBanner?: {
690
+ text: {
691
+ left: string;
692
+ };
693
+ };
694
+ emailSection: {
695
+ backgroundColor?: string;
696
+ };
697
+ socialIcon: {
698
+ color?: string;
699
+ };
700
+ orderId: {
701
+ color: string;
702
+ };
703
+ };
704
+ hurryUp: {
705
+ borderRadius?: string;
706
+ };
707
+ qtyPicker: {
708
+ borderRadius: string;
709
+ };
710
+ };
711
+ declare type ThemeTypography = {
712
+ config: {
713
+ weight: {
714
+ heavy: number;
715
+ bold: number;
716
+ demi: number;
717
+ regular: number;
718
+ };
719
+ };
720
+ variants: Record<string, CSSProperties>;
721
+ };
722
+ declare type ThemeFonts = {
723
+ url: string;
724
+ config: Array<{
725
+ src: string;
726
+ family: string;
727
+ weight?: number | string;
728
+ style?: string;
729
+ stretch?: string;
730
+ }>;
731
+ };
732
+ declare type ThemeAssets = {
733
+ isSameOriginIcons?: boolean;
734
+ cdn: string;
735
+ images: {
736
+ favicon: string;
737
+ logo: string;
738
+ logoSize?: {
739
+ width: string;
740
+ height: string;
741
+ };
742
+ logoMobile?: string;
743
+ checkoutLogo?: {
744
+ url: string;
745
+ width: string;
746
+ height: string;
747
+ };
748
+ upsellLogo?: {
749
+ url: string;
750
+ width: string;
751
+ height: string;
752
+ };
753
+ tyLogo?: {
754
+ url: string;
755
+ width: string;
756
+ height: string;
757
+ };
758
+ };
759
+ [key: string]: any;
760
+ };
761
+
762
+ declare const thebodcon: Theme;
763
+
764
+ export { thebodcon as default };