@trafilea/afrodita-components 5.0.0-beta.207 → 5.0.0-beta.209

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