@trafilea/afrodita-components 5.0.0-beta.307 → 5.0.0-beta.309

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.
@@ -1,712 +0,0 @@
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
- borderWidth?: string;
396
- options: {
397
- borderColor: string;
398
- color: string;
399
- borderRadius: string;
400
- backgroundColor?: string;
401
- };
402
- };
403
- modal: {
404
- minWidth: string;
405
- };
406
- packSelector: {
407
- borderRadius: string;
408
- borderColor: string;
409
- highlightColor: string;
410
- selectedColor: string;
411
- selectedContrast: string;
412
- tagColor: string;
413
- };
414
- slideNavigation: {
415
- slideDots: {
416
- unselectedDotColor: string;
417
- selectedDotColor: string;
418
- dotsOpacity: number;
419
- };
420
- };
421
- beforeAfter: {
422
- size: {
423
- small: {
424
- image: {
425
- minHeight: string;
426
- minWidth: string;
427
- mobile: {
428
- minHeight: string;
429
- minWidth: string;
430
- };
431
- };
432
- imageContainer: {
433
- maxWidth: string;
434
- padding: string;
435
- mobile: {
436
- maxWidth: string;
437
- };
438
- };
439
- userInfoText: {
440
- fontSize: string;
441
- mobile: {
442
- fontSize: string;
443
- };
444
- };
445
- };
446
- medium: {
447
- image: {
448
- minHeight: string;
449
- minWidth: string;
450
- mobile: {
451
- minHeight: string;
452
- minWidth: string;
453
- };
454
- };
455
- imageContainer: {
456
- maxWidth: string;
457
- padding: string;
458
- mobile: {
459
- maxWidth: string;
460
- };
461
- };
462
- userInfoText: {
463
- fontSize: string;
464
- mobile: {
465
- fontSize: string;
466
- };
467
- };
468
- };
469
- large: {
470
- image: {
471
- minHeight: string;
472
- minWidth: string;
473
- mobile: {
474
- minHeight: string;
475
- minWidth: string;
476
- };
477
- };
478
- imageContainer: {
479
- maxWidth: string;
480
- padding: string;
481
- mobile: {
482
- maxWidth: string;
483
- };
484
- };
485
- userInfoText: {
486
- fontSize: string;
487
- mobile: {
488
- fontSize: string;
489
- };
490
- };
491
- };
492
- };
493
- };
494
- total: {
495
- basicTotal: {
496
- amount: {
497
- color: string;
498
- fontSize: string;
499
- };
500
- currency: {
501
- color: string;
502
- fontSize: string;
503
- lineHeight: string;
504
- alignSelf?: string;
505
- };
506
- savings: {
507
- amountFontWeight: number;
508
- color?: string;
509
- };
510
- };
511
- };
512
- subTotal: {
513
- basicSubTotal: {
514
- family: string;
515
- size: string;
516
- weight: number;
517
- lineHeight: string;
518
- color: string;
519
- };
520
- };
521
- pricing: {
522
- priceLabel: {
523
- price: {
524
- size: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
525
- originalPriceColor: string;
526
- actualPriceColor: string;
527
- };
528
- };
529
- };
530
- orderSummary: {
531
- headingTextAlign: string;
532
- backgroundColor?: string;
533
- padding?: string;
534
- borderRadius?: string;
535
- maxWidth?: string;
536
- onMobile: {
537
- maxWidth?: string;
538
- padding?: string;
539
- backgroundColor?: string;
540
- };
541
- };
542
- expressCheckout: {
543
- button: {
544
- borderRadius: string;
545
- };
546
- };
547
- copyrightText: {
548
- fontSize: string;
549
- fontWeight: number;
550
- lineHeight: string;
551
- color: string;
552
- };
553
- thankyouFooterText: {
554
- fontSize: string;
555
- fontWeight: string;
556
- lineHeight: string;
557
- };
558
- textButton: {
559
- fontWeight: number;
560
- lineHeight: string;
561
- };
562
- deliveryDetails: {
563
- title: {
564
- fontSize: string;
565
- lineHeight: string;
566
- fontWeight: number;
567
- };
568
- note: {
569
- accentColor: string;
570
- color: string;
571
- backgroundColor: string;
572
- };
573
- sectionTitle: {
574
- fontSize: string;
575
- lineHeight: string;
576
- fontWeight: number;
577
- };
578
- sectionDetails: {
579
- fontSize: string;
580
- lineHeight: string;
581
- fontWeight: number;
582
- marginLeft?: string;
583
- };
584
- };
585
- text: {
586
- orderHeader: {
587
- color: string;
588
- };
589
- };
590
- orderBar: {
591
- backgroundColor: string;
592
- fontColor: string;
593
- };
594
- banner: {
595
- outlineColor: string;
596
- filledColor: string;
597
- fontColor: string;
598
- };
599
- offerTitleText: {
600
- size: string;
601
- weight: number;
602
- lineHeight: string;
603
- };
604
- linePrice: {
605
- color: string;
606
- badge: {
607
- color: string;
608
- borderRadius: string;
609
- };
610
- };
611
- divider: {
612
- color: string;
613
- };
614
- checkout: {
615
- paymentInformation: {
616
- borderRadius?: string;
617
- };
618
- creditCardSection: {
619
- borderRadius?: string;
620
- };
621
- };
622
- upsell: {
623
- banner: {
624
- outlined: {
625
- color?: string;
626
- };
627
- };
628
- price: {
629
- colors: {
630
- regular: string;
631
- deal: string;
632
- each: string;
633
- badgeBG: string;
634
- badgeColor: string;
635
- };
636
- };
637
- hurryTimeCard: {
638
- backgroundColor: string;
639
- };
640
- guaranteedFit?: {
641
- backgroundColor: string;
642
- };
643
- };
644
- thankyou: {
645
- orderBanner?: {
646
- text: {
647
- left: string;
648
- };
649
- };
650
- emailSection: {
651
- backgroundColor?: string;
652
- };
653
- socialIcon: {
654
- color?: string;
655
- };
656
- orderId: {
657
- color: string;
658
- };
659
- };
660
- };
661
- declare type ThemeTypography = {
662
- config: {
663
- weight: {
664
- heavy: number;
665
- bold: number;
666
- demi: number;
667
- regular: number;
668
- };
669
- };
670
- variants: Record<string, CSSProperties>;
671
- };
672
- declare type ThemeFonts = {
673
- url: string;
674
- config: Array<{
675
- src: string;
676
- family: string;
677
- weight?: number | string;
678
- style?: string;
679
- stretch?: string;
680
- }>;
681
- };
682
- declare type ThemeAssets = {
683
- images: {
684
- favicon: string;
685
- logo: string;
686
- logoSize?: {
687
- width: string;
688
- height: string;
689
- };
690
- logoMobile?: string;
691
- checkoutLogo?: {
692
- url: string;
693
- width: string;
694
- height: string;
695
- };
696
- upsellLogo?: {
697
- url: string;
698
- width: string;
699
- height: string;
700
- };
701
- tyLogo?: {
702
- url: string;
703
- width: string;
704
- height: string;
705
- };
706
- };
707
- [key: string]: any;
708
- };
709
-
710
- declare const tsdv2: Theme;
711
-
712
- export { tsdv2 as default };