@trafilea/afrodita-components 5.0.0-beta.17 → 5.0.0-beta.170

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,605 @@
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
+ desktop: number;
26
+ };
27
+ declare type ThemeBasicPallete = {
28
+ color: string;
29
+ contrast: string;
30
+ };
31
+ declare type ThemeColorPallete = ThemeBasicPallete & {
32
+ soft: ThemeBasicPallete;
33
+ };
34
+ declare type ThemeColorPrimaryPallete = ThemeColorPallete & {
35
+ 20: ThemeColorPallete;
36
+ 40: ThemeColorPallete;
37
+ 60: ThemeColorPallete;
38
+ 80: ThemeColorPallete;
39
+ };
40
+ declare type ThemeColors = {
41
+ pallete: {
42
+ primary: ThemeColorPrimaryPallete;
43
+ secondary: ThemeColorPrimaryPallete;
44
+ } & Partial<Record<string, ThemeColorPallete>>;
45
+ shades: {
46
+ black: ThemeBasicPallete;
47
+ white: ThemeBasicPallete;
48
+ 5: ThemeBasicPallete;
49
+ 10: ThemeBasicPallete;
50
+ 50: ThemeBasicPallete;
51
+ 100: ThemeBasicPallete;
52
+ 150: ThemeBasicPallete;
53
+ 200: ThemeBasicPallete;
54
+ 250: ThemeBasicPallete;
55
+ 300: ThemeBasicPallete;
56
+ 350: ThemeBasicPallete;
57
+ 400: ThemeBasicPallete;
58
+ 450: ThemeBasicPallete;
59
+ 500: ThemeBasicPallete;
60
+ 550: ThemeBasicPallete;
61
+ 600: ThemeBasicPallete;
62
+ 650: ThemeBasicPallete;
63
+ 700: ThemeBasicPallete;
64
+ 750: ThemeBasicPallete;
65
+ 800: ThemeBasicPallete;
66
+ 850: ThemeBasicPallete;
67
+ 900: ThemeBasicPallete;
68
+ 950: ThemeBasicPallete;
69
+ 990: ThemeBasicPallete;
70
+ };
71
+ semantic: {
72
+ positive: ThemeBasicPallete;
73
+ urgent: ThemeBasicPallete;
74
+ attention: ThemeBasicPallete;
75
+ informative: ThemeBasicPallete;
76
+ };
77
+ border: {
78
+ color: string;
79
+ disabled: string;
80
+ highlight: string;
81
+ };
82
+ background: {
83
+ color: string;
84
+ disabled: string;
85
+ };
86
+ text: {
87
+ color: string;
88
+ disabled: string;
89
+ };
90
+ };
91
+ declare type ThemeComponent = {
92
+ button: {
93
+ border: string;
94
+ borderRadius: string;
95
+ fontWeight: number;
96
+ lineHeight: string;
97
+ letterSpacing: string;
98
+ minWidth: string;
99
+ minHeight: string;
100
+ size: {
101
+ small: {
102
+ fontSize: string;
103
+ padding: string;
104
+ };
105
+ medium: {
106
+ fontSize: string;
107
+ padding: string;
108
+ };
109
+ large: {
110
+ fontSize: string;
111
+ padding: string;
112
+ };
113
+ };
114
+ primary: {
115
+ active: {
116
+ backgroundColor: string;
117
+ color: string;
118
+ };
119
+ hover: {
120
+ backgroundColor: string;
121
+ color: string;
122
+ };
123
+ };
124
+ secondary: {
125
+ active: {
126
+ backgroundColor: string;
127
+ color: string;
128
+ };
129
+ hover: {
130
+ backgroundColor: string;
131
+ color: string;
132
+ };
133
+ };
134
+ };
135
+ input: {
136
+ background: string;
137
+ color: string;
138
+ placeholderColor: string;
139
+ borderRadius: string;
140
+ fontSize: string;
141
+ fontWeight: number;
142
+ padding: string;
143
+ lineHeight: string;
144
+ border: string;
145
+ boxShadow: string;
146
+ errorBorder: string;
147
+ };
148
+ inputPlaceholder: {
149
+ fontSize: string;
150
+ padding: string;
151
+ focusBorder: string;
152
+ };
153
+ inputCustom: {
154
+ button: {
155
+ borderRadius: string;
156
+ };
157
+ input: {
158
+ borderRadius: string;
159
+ };
160
+ };
161
+ selector: {
162
+ size: {
163
+ small: {
164
+ padding: string;
165
+ borderRadius: string;
166
+ };
167
+ medium: {
168
+ padding: string;
169
+ borderRadius: string;
170
+ };
171
+ };
172
+ default: {
173
+ fontWeight: number;
174
+ border: string;
175
+ background: string;
176
+ color: string;
177
+ };
178
+ hover: {
179
+ fontWeight: number;
180
+ background: string;
181
+ border: string;
182
+ color: string;
183
+ };
184
+ noStock: {
185
+ fontWeight: number;
186
+ background: string;
187
+ border: string;
188
+ color: string;
189
+ };
190
+ disabled: {
191
+ border: string;
192
+ };
193
+ fontSize: string;
194
+ };
195
+ rating: {
196
+ fontWeight: number;
197
+ size: {
198
+ xsmall: {
199
+ fontSize: string;
200
+ lineHeight: string;
201
+ };
202
+ small: {
203
+ fontSize: string;
204
+ lineHeight: string;
205
+ };
206
+ medium: {
207
+ fontSize: string;
208
+ lineHeight: string;
209
+ };
210
+ large: {
211
+ fontSize: string;
212
+ lineHeight: string;
213
+ };
214
+ };
215
+ };
216
+ stars: {
217
+ element: {
218
+ color: string;
219
+ xsmall: {
220
+ width: string;
221
+ height: string;
222
+ marginRight: string;
223
+ };
224
+ small: {
225
+ width: string;
226
+ height: string;
227
+ marginRight: string;
228
+ };
229
+ medium: {
230
+ width: string;
231
+ height: string;
232
+ marginRight: string;
233
+ };
234
+ large: {
235
+ width: string;
236
+ height: string;
237
+ marginRight: string;
238
+ };
239
+ };
240
+ };
241
+ card: {
242
+ borderRadius: string;
243
+ backgroundColor: string;
244
+ };
245
+ radio: {
246
+ borderColor: string;
247
+ background: string;
248
+ textSize: string;
249
+ lineHeight: string;
250
+ size: {
251
+ small: {
252
+ borderWidth: string;
253
+ margin: string;
254
+ height: string;
255
+ active: {
256
+ borderWidth: string;
257
+ };
258
+ };
259
+ medium: {
260
+ borderWidth: string;
261
+ margin: string;
262
+ height: string;
263
+ active: {
264
+ borderWidth: string;
265
+ };
266
+ };
267
+ large: {
268
+ borderWidth: string;
269
+ margin: string;
270
+ height: string;
271
+ active: {
272
+ borderWidth: string;
273
+ };
274
+ };
275
+ };
276
+ };
277
+ label: {
278
+ color: string;
279
+ fontSize: {
280
+ small: string;
281
+ medium: string;
282
+ large: string;
283
+ };
284
+ lineHeight: {
285
+ small: string;
286
+ medium: string;
287
+ large: string;
288
+ };
289
+ };
290
+ checkbox: {
291
+ background: string;
292
+ borderColor: string;
293
+ active: {
294
+ background: string;
295
+ };
296
+ size: {
297
+ large: {
298
+ width: string;
299
+ height: string;
300
+ borderRadius: string;
301
+ borderWidth: string;
302
+ margin: string;
303
+ icon: {
304
+ width: string;
305
+ height: string;
306
+ };
307
+ };
308
+ medium: {
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
+ small: {
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
+ };
331
+ };
332
+ accordion: {
333
+ variant: {
334
+ box: {
335
+ container: {
336
+ border: string;
337
+ borderColor: string;
338
+ borderRadius: string;
339
+ padding: string;
340
+ };
341
+ summary: {
342
+ fontWeight: number;
343
+ fontSize: string;
344
+ lineHeight: string;
345
+ color: string;
346
+ };
347
+ details: {
348
+ margin: string;
349
+ };
350
+ icon: {
351
+ width: number;
352
+ height: number;
353
+ color: string;
354
+ };
355
+ };
356
+ simple: {
357
+ container: {
358
+ borderTop: string;
359
+ borderBottom: string;
360
+ borderColor: string;
361
+ borderRadius: string;
362
+ padding: string;
363
+ };
364
+ summary: {
365
+ fontWeight: number;
366
+ fontSize: string;
367
+ lineHeight: string;
368
+ color: string;
369
+ };
370
+ details: {
371
+ margin: string;
372
+ };
373
+ icon: {
374
+ width: number;
375
+ height: number;
376
+ color: string;
377
+ };
378
+ };
379
+ };
380
+ };
381
+ dropdown: {
382
+ borderRadius: string;
383
+ fontSize: string;
384
+ fontWeight: number;
385
+ lineHeight: string;
386
+ padding: string;
387
+ color: string;
388
+ fill: string;
389
+ options: {
390
+ borderColor: string;
391
+ color: string;
392
+ borderRadius: string;
393
+ };
394
+ };
395
+ modal: {
396
+ minWidth: string;
397
+ };
398
+ packSelector: {
399
+ borderRadius: string;
400
+ borderColor: string;
401
+ highlightColor: string;
402
+ selectedColor: string;
403
+ selectedContrast: string;
404
+ tagColor: string;
405
+ };
406
+ slideNavigation: {
407
+ slideDots: {
408
+ unselectedDotColor: string;
409
+ selectedDotColor: string;
410
+ dotsOpacity: number;
411
+ };
412
+ };
413
+ beforeAfter: {
414
+ size: {
415
+ small: {
416
+ image: {
417
+ minHeight: string;
418
+ minWidth: string;
419
+ mobile: {
420
+ minHeight: string;
421
+ minWidth: string;
422
+ };
423
+ };
424
+ imageContainer: {
425
+ maxWidth: string;
426
+ padding: string;
427
+ mobile: {
428
+ maxWidth: string;
429
+ };
430
+ };
431
+ userInfoText: {
432
+ fontSize: string;
433
+ mobile: {
434
+ fontSize: string;
435
+ };
436
+ };
437
+ };
438
+ medium: {
439
+ image: {
440
+ minHeight: string;
441
+ minWidth: string;
442
+ mobile: {
443
+ minHeight: string;
444
+ minWidth: string;
445
+ };
446
+ };
447
+ imageContainer: {
448
+ maxWidth: string;
449
+ padding: string;
450
+ mobile: {
451
+ maxWidth: string;
452
+ };
453
+ };
454
+ userInfoText: {
455
+ fontSize: string;
456
+ mobile: {
457
+ fontSize: string;
458
+ };
459
+ };
460
+ };
461
+ large: {
462
+ image: {
463
+ minHeight: string;
464
+ minWidth: string;
465
+ mobile: {
466
+ minHeight: string;
467
+ minWidth: string;
468
+ };
469
+ };
470
+ imageContainer: {
471
+ maxWidth: string;
472
+ padding: string;
473
+ mobile: {
474
+ maxWidth: string;
475
+ };
476
+ };
477
+ userInfoText: {
478
+ fontSize: string;
479
+ mobile: {
480
+ fontSize: string;
481
+ };
482
+ };
483
+ };
484
+ };
485
+ };
486
+ total: {
487
+ basicTotal: {
488
+ amount: {
489
+ color: string;
490
+ fontSize: string;
491
+ };
492
+ currency: {
493
+ color: string;
494
+ fontSize: string;
495
+ lineHeight: string;
496
+ alignSelf?: string;
497
+ };
498
+ savings: {
499
+ textFontSize: string;
500
+ textLineHeight: string;
501
+ amountFontSize: string;
502
+ amountFontWeight: number;
503
+ amountLineHeight: string;
504
+ color?: string;
505
+ };
506
+ };
507
+ };
508
+ subTotal: {
509
+ basicSubTotal: {
510
+ family: string;
511
+ size: string;
512
+ weight: number;
513
+ lineHeight: string;
514
+ color: string;
515
+ };
516
+ };
517
+ pricing: {
518
+ priceLabel: {
519
+ price: {
520
+ size: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
521
+ originalPriceColor: string;
522
+ actualPriceColor: string;
523
+ };
524
+ };
525
+ };
526
+ orderSummary: {
527
+ headingTextAlign: string;
528
+ backgroundColor: string;
529
+ maxWidth?: string;
530
+ padding?: string;
531
+ borderRadius?: string;
532
+ onMobile: {
533
+ maxWidth?: string;
534
+ padding?: string;
535
+ backgroundColor?: string;
536
+ };
537
+ };
538
+ expressCheckout: {
539
+ fontFamily: string;
540
+ fontWeight: number;
541
+ lineHeight: string;
542
+ };
543
+ copyrightText: {
544
+ fontSize: string;
545
+ fontWeight: number;
546
+ lineHeight: string;
547
+ color: string;
548
+ };
549
+ textButton: {
550
+ fontWeight: number;
551
+ lineHeight: string;
552
+ };
553
+ deliveryDetails: {
554
+ note: {
555
+ accentColor: string;
556
+ color: string;
557
+ backgroundColor: string;
558
+ };
559
+ SectionDetails?: {
560
+ marginLeft: string;
561
+ };
562
+ };
563
+ text: {
564
+ orderHeader: {
565
+ color: string;
566
+ };
567
+ };
568
+ };
569
+ declare type ThemeTypography = {
570
+ config: {
571
+ weight: {
572
+ heavy: number;
573
+ bold: number;
574
+ demi: number;
575
+ regular: number;
576
+ };
577
+ };
578
+ variants: Record<string, CSSProperties>;
579
+ };
580
+ declare type ThemeFonts = {
581
+ url: string;
582
+ config: Array<{
583
+ src: string;
584
+ family: string;
585
+ weight?: number | string;
586
+ style?: string;
587
+ stretch?: string;
588
+ }>;
589
+ };
590
+ declare type ThemeAssets = {
591
+ images: {
592
+ favicon: string;
593
+ logo: string;
594
+ logoSize?: {
595
+ width: string;
596
+ height: string;
597
+ };
598
+ logoMobile?: string;
599
+ };
600
+ [key: string]: any;
601
+ };
602
+
603
+ declare const revel: Theme;
604
+
605
+ export { revel as default };