@trafilea/afrodita-components 5.0.0-beta.1 → 5.0.0-beta.100

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