@trafilea/afrodita-components 5.0.0-beta.27 → 5.0.0-beta.270

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