@trafilea/afrodita-components 5.0.0-beta.19 → 5.0.0-beta.191

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