@trafilea/afrodita-components 5.0.0 → 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.
@@ -0,0 +1,758 @@
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 Theme = {
11
+ name: string;
12
+ fontSizes: number[];
13
+ fontWeights: number[];
14
+ lineHeights: number[];
15
+ mediaQueries: ThemeBreakpoints;
16
+ radius: {
17
+ regular: string;
18
+ };
19
+ zIndex: {
20
+ modal: number;
21
+ overlay: number;
22
+ };
23
+ colors: ThemeColors;
24
+ component: ThemeComponent;
25
+ typography: ThemeTypography;
26
+ fonts: ThemeFonts;
27
+ assets: ThemeAssets;
28
+ };
29
+ declare type ThemeBreakpoints = {
30
+ mobile: number;
31
+ tablet?: number;
32
+ desktop: number;
33
+ };
34
+ declare type ThemeBasicPallete = {
35
+ color: string;
36
+ contrast: string;
37
+ };
38
+ declare type ThemeColorPallete = ThemeBasicPallete & {
39
+ soft?: ThemeBasicPallete;
40
+ };
41
+ declare type ThemeColorPrimaryPallete = ThemeColorPallete & {
42
+ 20: ThemeColorPallete;
43
+ 40: ThemeColorPallete;
44
+ 60: ThemeColorPallete;
45
+ 80: ThemeColorPallete;
46
+ };
47
+ declare type ThemeColors = {
48
+ pallete: {
49
+ primary: ThemeColorPrimaryPallete;
50
+ secondary: ThemeColorPrimaryPallete;
51
+ tertiary?: ThemeColorPrimaryPallete;
52
+ } & Partial<Record<string, ThemeColorPallete>>;
53
+ shades: {
54
+ black: ThemeBasicPallete;
55
+ white: ThemeBasicPallete;
56
+ 5: ThemeBasicPallete;
57
+ 10: ThemeBasicPallete;
58
+ 50: ThemeBasicPallete;
59
+ 100: ThemeBasicPallete;
60
+ 150: ThemeBasicPallete;
61
+ 175: ThemeBasicPallete;
62
+ 200: ThemeBasicPallete;
63
+ 250: ThemeBasicPallete;
64
+ 300: ThemeBasicPallete;
65
+ 350: ThemeBasicPallete;
66
+ 400: ThemeBasicPallete;
67
+ 450: ThemeBasicPallete;
68
+ 500: ThemeBasicPallete;
69
+ 550: ThemeBasicPallete;
70
+ 600: ThemeBasicPallete;
71
+ 650: ThemeBasicPallete;
72
+ 700: ThemeBasicPallete;
73
+ 750: ThemeBasicPallete;
74
+ 800: ThemeBasicPallete;
75
+ 850: ThemeBasicPallete;
76
+ 900: ThemeBasicPallete;
77
+ 950: ThemeBasicPallete;
78
+ 990: ThemeBasicPallete;
79
+ };
80
+ semantic: {
81
+ positive: ThemeBasicPallete;
82
+ urgent: ThemeBasicPallete;
83
+ attention: ThemeBasicPallete;
84
+ informative: ThemeBasicPallete;
85
+ };
86
+ border: {
87
+ color: string;
88
+ disabled: string;
89
+ highlight: string;
90
+ shadow?: string;
91
+ isChecked?: string;
92
+ };
93
+ background: {
94
+ color: string;
95
+ disabled: string;
96
+ };
97
+ text: {
98
+ color: string;
99
+ disabled: string;
100
+ };
101
+ };
102
+ declare type ThemeComponent = {
103
+ button: {
104
+ border: string;
105
+ borderRadius: string;
106
+ fontWeight: number;
107
+ lineHeight: string;
108
+ letterSpacing: string;
109
+ minWidth: string;
110
+ minHeight: string;
111
+ size: {
112
+ small: {
113
+ fontSize: string;
114
+ padding: string;
115
+ };
116
+ medium: {
117
+ fontSize: string;
118
+ padding: string;
119
+ };
120
+ large: {
121
+ fontSize: string;
122
+ padding: string;
123
+ };
124
+ };
125
+ primary: {
126
+ active: {
127
+ backgroundColor: string;
128
+ color: string;
129
+ };
130
+ hover: {
131
+ backgroundColor: string;
132
+ color: string;
133
+ };
134
+ };
135
+ secondary: {
136
+ active: {
137
+ backgroundColor: string;
138
+ color: string;
139
+ };
140
+ hover: {
141
+ backgroundColor: string;
142
+ color: string;
143
+ };
144
+ };
145
+ };
146
+ input: {
147
+ background: string;
148
+ color: string;
149
+ placeholderColor: string;
150
+ borderRadius: string;
151
+ fontSize: string;
152
+ fontWeight: number;
153
+ padding: string;
154
+ lineHeight: string;
155
+ border: string;
156
+ boxShadow: string;
157
+ errorBorder: string;
158
+ };
159
+ inputPlaceholder: {
160
+ fontSize: string;
161
+ padding: string;
162
+ focusBorder: string;
163
+ };
164
+ inputCustom: {
165
+ button: {
166
+ borderRadius: string;
167
+ };
168
+ input: {
169
+ borderRadius: string;
170
+ };
171
+ };
172
+ selector: {
173
+ size: {
174
+ small: {
175
+ padding: string;
176
+ borderRadius: string;
177
+ };
178
+ medium: {
179
+ padding: string;
180
+ borderRadius: string;
181
+ };
182
+ };
183
+ default: {
184
+ fontWeight: number;
185
+ border: string;
186
+ background: string;
187
+ color: string;
188
+ };
189
+ hover: {
190
+ fontWeight: number;
191
+ background: string;
192
+ border: string;
193
+ color: string;
194
+ };
195
+ noStock: {
196
+ fontWeight: number;
197
+ background: string;
198
+ border: string;
199
+ color: string;
200
+ };
201
+ disabled: {
202
+ border: string;
203
+ };
204
+ fontSize: string;
205
+ };
206
+ rating: {
207
+ fontWeight: number;
208
+ size: {
209
+ xsmall: {
210
+ fontSize: string;
211
+ lineHeight: string;
212
+ };
213
+ small: {
214
+ fontSize: string;
215
+ lineHeight: string;
216
+ };
217
+ medium: {
218
+ fontSize: string;
219
+ lineHeight: string;
220
+ };
221
+ large: {
222
+ fontSize: string;
223
+ lineHeight: string;
224
+ };
225
+ };
226
+ };
227
+ stars: {
228
+ element: {
229
+ color: string;
230
+ xsmall: {
231
+ width: string;
232
+ height: string;
233
+ marginRight: string;
234
+ };
235
+ small: {
236
+ width: string;
237
+ height: string;
238
+ marginRight: string;
239
+ };
240
+ medium: {
241
+ width: string;
242
+ height: string;
243
+ marginRight: string;
244
+ };
245
+ large: {
246
+ width: string;
247
+ height: string;
248
+ marginRight: string;
249
+ };
250
+ };
251
+ };
252
+ card: {
253
+ borderRadius: string;
254
+ backgroundColor: string;
255
+ };
256
+ radio: {
257
+ borderColor: string;
258
+ background: string;
259
+ textSize: string;
260
+ lineHeight: string;
261
+ size: {
262
+ small: {
263
+ borderWidth: string;
264
+ margin: string;
265
+ height: string;
266
+ active: {
267
+ borderWidth: string;
268
+ };
269
+ };
270
+ medium: {
271
+ borderWidth: string;
272
+ margin: string;
273
+ height: string;
274
+ active: {
275
+ borderWidth: string;
276
+ };
277
+ };
278
+ large: {
279
+ borderWidth: string;
280
+ margin: string;
281
+ height: string;
282
+ active: {
283
+ borderWidth: string;
284
+ };
285
+ };
286
+ };
287
+ };
288
+ label: {
289
+ color: string;
290
+ fontSize: {
291
+ small: string;
292
+ medium: string;
293
+ large: string;
294
+ };
295
+ lineHeight: {
296
+ small: string;
297
+ medium: string;
298
+ large: string;
299
+ };
300
+ };
301
+ checkbox: {
302
+ background: string;
303
+ borderColor: string;
304
+ active: {
305
+ background: string;
306
+ };
307
+ size: {
308
+ large: {
309
+ width: string;
310
+ height: string;
311
+ borderRadius: string;
312
+ borderWidth: string;
313
+ margin: string;
314
+ icon: {
315
+ width: string;
316
+ height: string;
317
+ };
318
+ };
319
+ medium: {
320
+ width: string;
321
+ height: string;
322
+ borderRadius: string;
323
+ borderWidth: string;
324
+ margin: string;
325
+ icon: {
326
+ width: string;
327
+ height: string;
328
+ };
329
+ };
330
+ small: {
331
+ width: string;
332
+ height: string;
333
+ borderRadius: string;
334
+ borderWidth: string;
335
+ margin: string;
336
+ icon: {
337
+ width: string;
338
+ height: string;
339
+ };
340
+ };
341
+ };
342
+ };
343
+ accordion: {
344
+ variant: {
345
+ box: {
346
+ container: {
347
+ border: string;
348
+ borderColor: string;
349
+ borderRadius: string;
350
+ padding: string;
351
+ };
352
+ summary: {
353
+ fontWeight: number;
354
+ fontSize: string;
355
+ lineHeight: string;
356
+ color: string;
357
+ };
358
+ details: {
359
+ margin: string;
360
+ };
361
+ icon: {
362
+ width: number;
363
+ height: number;
364
+ color: string;
365
+ };
366
+ };
367
+ simple: {
368
+ container: {
369
+ borderTop: string;
370
+ borderBottom: string;
371
+ borderColor: string;
372
+ borderRadius: string;
373
+ padding: string;
374
+ };
375
+ summary: {
376
+ fontWeight: number;
377
+ fontSize: string;
378
+ lineHeight: string;
379
+ color: string;
380
+ };
381
+ details: {
382
+ margin: string;
383
+ };
384
+ icon: {
385
+ width: number;
386
+ height: number;
387
+ color: string;
388
+ };
389
+ };
390
+ };
391
+ };
392
+ dropdown: {
393
+ borderRadius: string;
394
+ fontSize: string;
395
+ fontWeight: number;
396
+ lineHeight: string;
397
+ padding: string;
398
+ optionPadding: string;
399
+ color: string;
400
+ fill: string;
401
+ borderWidth?: string;
402
+ options: {
403
+ borderColor: string;
404
+ color: string;
405
+ borderRadius: string;
406
+ borderRadiusV2?: string;
407
+ backgroundColor?: string;
408
+ };
409
+ optionsWrapper: {
410
+ borderRadius: string;
411
+ overflow: string;
412
+ };
413
+ };
414
+ modal: {
415
+ minWidth: string;
416
+ };
417
+ packSelector: {
418
+ borderRadius: string;
419
+ borderColor: string;
420
+ highlightColor: string;
421
+ selectedColor: string;
422
+ selectedContrast: string;
423
+ tagColor: string;
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
+ };
705
+ };
706
+ declare type ThemeTypography = {
707
+ config: {
708
+ weight: {
709
+ heavy: number;
710
+ bold: number;
711
+ demi: number;
712
+ regular: number;
713
+ };
714
+ };
715
+ variants: Record<string, CSSProperties>;
716
+ };
717
+ declare type ThemeFonts = {
718
+ url: string;
719
+ config: Array<{
720
+ src: string;
721
+ family: string;
722
+ weight?: number | string;
723
+ style?: string;
724
+ stretch?: string;
725
+ }>;
726
+ };
727
+ declare type ThemeAssets = {
728
+ cdn: string;
729
+ images: {
730
+ favicon: string;
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
+ };
752
+ };
753
+ [key: string]: any;
754
+ };
755
+
756
+ declare const tsd: Theme;
757
+
758
+ export { tsd as default };