@majoo-ui/react 1.43.0 → 1.44.3

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.
Files changed (39) hide show
  1. package/README.md +2 -2
  2. package/components/accordion/Accordion.d.ts +33 -0
  3. package/components/accordion/index.d.ts +1 -0
  4. package/components/devicePreview/DevicePreview.d.ts +97 -1
  5. package/components/dialog/Dialog.d.ts +398 -0
  6. package/components/dialog/index.d.ts +2 -0
  7. package/components/editableTable/EditableMobile.d.ts +1 -0
  8. package/components/editableTable/EditableTable.d.ts +207 -1
  9. package/components/form/components/InputText/InputText.d.ts +103 -0
  10. package/components/form/components/InputText/index.d.ts +1 -0
  11. package/components/heading/Heading.d.ts +99 -0
  12. package/components/heading/index.d.ts +2 -0
  13. package/components/image/index.d.ts +2 -0
  14. package/components/index.d.ts +2 -1
  15. package/components/modalDialog/ModalDialog.d.ts +810 -0
  16. package/components/modalDialog/index.d.ts +2 -0
  17. package/components/pageDialog/PageDialog.d.ts +806 -0
  18. package/components/pageDialog/index.d.ts +1 -0
  19. package/components/progressIndicator/ProgressIndicator.d.ts +12 -0
  20. package/components/progressIndicator/index.d.ts +1 -0
  21. package/components/stepWizard/index.d.ts +1 -0
  22. package/components/table/MobileTable.d.ts +15 -0
  23. package/components/table/Table.d.ts +921 -0
  24. package/components/table/index.d.ts +4 -0
  25. package/components/upload/utils/canvasPreview.d.ts +2 -0
  26. package/components/upload/utils/imgPreview.d.ts +2 -0
  27. package/config/stitches.config.d.ts +625 -0
  28. package/index.d.ts +2 -2
  29. package/index.esm.css +244 -0
  30. package/index.esm.js +51204 -12999
  31. package/index.umd.css +244 -0
  32. package/index.umd.js +62928 -24619
  33. package/layout/box/index.d.ts +1 -0
  34. package/layout/flex/index.d.ts +2 -0
  35. package/layout/index.d.ts +4 -0
  36. package/package.json +7 -18
  37. package/type/base.types.d.ts +10 -0
  38. package/type/stitches.types.d.ts +1 -0
  39. package/utils/variant.d.ts +4 -0
@@ -0,0 +1,4 @@
1
+ export { default as Table } from './Table';
2
+ export * from './Table';
3
+ export * from './components';
4
+ export { default as MobileTable } from './MobileTable';
@@ -0,0 +1,2 @@
1
+ import { PixelCrop } from 'react-image-crop';
2
+ export declare function canvasPreview(image: HTMLImageElement, canvas: HTMLCanvasElement, crop: PixelCrop, scale?: number, rotate?: number): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { PixelCrop } from 'react-image-crop';
2
+ export declare function imgPreview(image: HTMLImageElement, crop: PixelCrop, scale?: number, rotate?: number): Promise<unknown>;
@@ -0,0 +1,625 @@
1
+ /// <reference types="react" />
2
+ import type * as Stitches from '@stitches/react';
3
+ export declare const styled: <Type extends import("@stitches/react/types/util").Function | keyof JSX.IntrinsicElements | import("react").ComponentType<any>, Composers extends (string | import("@stitches/react/types/util").Function | import("react").ComponentType<any> | {
4
+ [name: string]: unknown;
5
+ })[], CSS_1 = import("@stitches/react/types/css-util").CSS<{
6
+ sm: "(min-width: 359px)";
7
+ md: "(min-width: 767px)";
8
+ lg: "(min-width: 1023px)";
9
+ xl: "(min-width: 1199px)";
10
+ '2xl': "(min-width: 1399px)";
11
+ '3xl': "(min-width: 1600px)";
12
+ }, {
13
+ colors: unknown;
14
+ space: unknown;
15
+ shadows: unknown;
16
+ fontSizes: unknown;
17
+ fonts: unknown;
18
+ lineHeights: unknown;
19
+ letterSpacings: unknown;
20
+ radii: unknown;
21
+ sizes: unknown;
22
+ zIndices: unknown;
23
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
24
+ m: (value: Stitches.ScaleValue<'space'>) => {
25
+ margin: {
26
+ readonly [Stitches.$$ScaleValue]: "space";
27
+ };
28
+ };
29
+ mt: (value: Stitches.ScaleValue<'space'>) => {
30
+ marginTop: {
31
+ readonly [Stitches.$$ScaleValue]: "space";
32
+ };
33
+ };
34
+ mr: (value: Stitches.ScaleValue<'space'>) => {
35
+ marginRight: {
36
+ readonly [Stitches.$$ScaleValue]: "space";
37
+ };
38
+ };
39
+ mb: (value: Stitches.ScaleValue<'space'>) => {
40
+ marginBottom: {
41
+ readonly [Stitches.$$ScaleValue]: "space";
42
+ };
43
+ };
44
+ ml: (value: Stitches.ScaleValue<'space'>) => {
45
+ marginLeft: {
46
+ readonly [Stitches.$$ScaleValue]: "space";
47
+ };
48
+ };
49
+ mx: (value: Stitches.ScaleValue<'space'>) => {
50
+ marginLeft: {
51
+ readonly [Stitches.$$ScaleValue]: "space";
52
+ };
53
+ marginRight: {
54
+ readonly [Stitches.$$ScaleValue]: "space";
55
+ };
56
+ };
57
+ my: (value: Stitches.ScaleValue<'space'>) => {
58
+ marginTop: {
59
+ readonly [Stitches.$$ScaleValue]: "space";
60
+ };
61
+ marginBottom: {
62
+ readonly [Stitches.$$ScaleValue]: "space";
63
+ };
64
+ };
65
+ size: (value: Stitches.PropertyValue<'width'>) => {
66
+ width: {
67
+ readonly [Stitches.$$PropertyValue]: "width";
68
+ };
69
+ height: {
70
+ readonly [Stitches.$$PropertyValue]: "width";
71
+ };
72
+ };
73
+ subtleColor: (value: string) => {
74
+ color: string;
75
+ backgroundColor: string;
76
+ };
77
+ }>>(type: Type, ...composers: { [K in keyof Composers]: string extends Composers[K] ? Composers[K] : Composers[K] extends string | import("@stitches/react/types/util").Function | import("react").ComponentType<any> ? Composers[K] : import("@stitches/react/types/stitches").RemoveIndex<CSS_1> & {
78
+ variants?: {
79
+ [x: string]: {
80
+ [x: string]: CSS_1;
81
+ [x: number]: CSS_1;
82
+ };
83
+ } | undefined;
84
+ compoundVariants?: (("variants" extends keyof Composers[K] ? { [Name in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name]> | undefined; } : import("@stitches/react/types/util").WideObject) & {
85
+ css: CSS_1;
86
+ })[] | undefined;
87
+ defaultVariants?: ("variants" extends keyof Composers[K] ? { [Name_1 in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name_1]> | undefined; } : import("@stitches/react/types/util").WideObject) | undefined;
88
+ } & CSS_1 & { [K2 in keyof Composers[K]]: K2 extends "compoundVariants" | "defaultVariants" | "variants" ? unknown : K2 extends keyof CSS_1 ? CSS_1[K2] : unknown; }; }) => import("@stitches/react/types/styled-component").StyledComponent<Type, import("@stitches/react/types/styled-component").StyledComponentProps<Composers>, {
89
+ sm: "(min-width: 359px)";
90
+ md: "(min-width: 767px)";
91
+ lg: "(min-width: 1023px)";
92
+ xl: "(min-width: 1199px)";
93
+ '2xl': "(min-width: 1399px)";
94
+ '3xl': "(min-width: 1600px)";
95
+ }, import("@stitches/react/types/css-util").CSS<{
96
+ sm: "(min-width: 359px)";
97
+ md: "(min-width: 767px)";
98
+ lg: "(min-width: 1023px)";
99
+ xl: "(min-width: 1199px)";
100
+ '2xl': "(min-width: 1399px)";
101
+ '3xl': "(min-width: 1600px)";
102
+ }, {
103
+ colors: unknown;
104
+ space: unknown;
105
+ shadows: unknown;
106
+ fontSizes: unknown;
107
+ fonts: unknown;
108
+ lineHeights: unknown;
109
+ letterSpacings: unknown;
110
+ radii: unknown;
111
+ sizes: unknown;
112
+ zIndices: unknown;
113
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
114
+ m: (value: Stitches.ScaleValue<'space'>) => {
115
+ margin: {
116
+ readonly [Stitches.$$ScaleValue]: "space";
117
+ };
118
+ };
119
+ mt: (value: Stitches.ScaleValue<'space'>) => {
120
+ marginTop: {
121
+ readonly [Stitches.$$ScaleValue]: "space";
122
+ };
123
+ };
124
+ mr: (value: Stitches.ScaleValue<'space'>) => {
125
+ marginRight: {
126
+ readonly [Stitches.$$ScaleValue]: "space";
127
+ };
128
+ };
129
+ mb: (value: Stitches.ScaleValue<'space'>) => {
130
+ marginBottom: {
131
+ readonly [Stitches.$$ScaleValue]: "space";
132
+ };
133
+ };
134
+ ml: (value: Stitches.ScaleValue<'space'>) => {
135
+ marginLeft: {
136
+ readonly [Stitches.$$ScaleValue]: "space";
137
+ };
138
+ };
139
+ mx: (value: Stitches.ScaleValue<'space'>) => {
140
+ marginLeft: {
141
+ readonly [Stitches.$$ScaleValue]: "space";
142
+ };
143
+ marginRight: {
144
+ readonly [Stitches.$$ScaleValue]: "space";
145
+ };
146
+ };
147
+ my: (value: Stitches.ScaleValue<'space'>) => {
148
+ marginTop: {
149
+ readonly [Stitches.$$ScaleValue]: "space";
150
+ };
151
+ marginBottom: {
152
+ readonly [Stitches.$$ScaleValue]: "space";
153
+ };
154
+ };
155
+ size: (value: Stitches.PropertyValue<'width'>) => {
156
+ width: {
157
+ readonly [Stitches.$$PropertyValue]: "width";
158
+ };
159
+ height: {
160
+ readonly [Stitches.$$PropertyValue]: "width";
161
+ };
162
+ };
163
+ subtleColor: (value: string) => {
164
+ color: string;
165
+ backgroundColor: string;
166
+ };
167
+ }>>, css: <Composers extends (string | import("@stitches/react/types/util").Function | import("react").ExoticComponent<any> | import("react").JSXElementConstructor<any> | {
168
+ [name: string]: unknown;
169
+ })[], CSS_1 = import("@stitches/react/types/css-util").CSS<{
170
+ sm: "(min-width: 359px)";
171
+ md: "(min-width: 767px)";
172
+ lg: "(min-width: 1023px)";
173
+ xl: "(min-width: 1199px)";
174
+ '2xl': "(min-width: 1399px)";
175
+ '3xl': "(min-width: 1600px)";
176
+ }, {
177
+ colors: unknown;
178
+ space: unknown;
179
+ shadows: unknown;
180
+ fontSizes: unknown;
181
+ fonts: unknown;
182
+ lineHeights: unknown;
183
+ letterSpacings: unknown;
184
+ radii: unknown;
185
+ sizes: unknown;
186
+ zIndices: unknown;
187
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
188
+ m: (value: Stitches.ScaleValue<'space'>) => {
189
+ margin: {
190
+ readonly [Stitches.$$ScaleValue]: "space";
191
+ };
192
+ };
193
+ mt: (value: Stitches.ScaleValue<'space'>) => {
194
+ marginTop: {
195
+ readonly [Stitches.$$ScaleValue]: "space";
196
+ };
197
+ };
198
+ mr: (value: Stitches.ScaleValue<'space'>) => {
199
+ marginRight: {
200
+ readonly [Stitches.$$ScaleValue]: "space";
201
+ };
202
+ };
203
+ mb: (value: Stitches.ScaleValue<'space'>) => {
204
+ marginBottom: {
205
+ readonly [Stitches.$$ScaleValue]: "space";
206
+ };
207
+ };
208
+ ml: (value: Stitches.ScaleValue<'space'>) => {
209
+ marginLeft: {
210
+ readonly [Stitches.$$ScaleValue]: "space";
211
+ };
212
+ };
213
+ mx: (value: Stitches.ScaleValue<'space'>) => {
214
+ marginLeft: {
215
+ readonly [Stitches.$$ScaleValue]: "space";
216
+ };
217
+ marginRight: {
218
+ readonly [Stitches.$$ScaleValue]: "space";
219
+ };
220
+ };
221
+ my: (value: Stitches.ScaleValue<'space'>) => {
222
+ marginTop: {
223
+ readonly [Stitches.$$ScaleValue]: "space";
224
+ };
225
+ marginBottom: {
226
+ readonly [Stitches.$$ScaleValue]: "space";
227
+ };
228
+ };
229
+ size: (value: Stitches.PropertyValue<'width'>) => {
230
+ width: {
231
+ readonly [Stitches.$$PropertyValue]: "width";
232
+ };
233
+ height: {
234
+ readonly [Stitches.$$PropertyValue]: "width";
235
+ };
236
+ };
237
+ subtleColor: (value: string) => {
238
+ color: string;
239
+ backgroundColor: string;
240
+ };
241
+ }>>(...composers: { [K in keyof Composers]: string extends Composers[K] ? Composers[K] : Composers[K] extends string | import("@stitches/react/types/util").Function | import("react").ExoticComponent<any> | import("react").JSXElementConstructor<any> ? Composers[K] : import("@stitches/react/types/stitches").RemoveIndex<CSS_1> & {
242
+ variants?: {
243
+ [x: string]: {
244
+ [x: string]: CSS_1;
245
+ [x: number]: CSS_1;
246
+ };
247
+ } | undefined;
248
+ compoundVariants?: (("variants" extends keyof Composers[K] ? { [Name in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name]> | undefined; } : import("@stitches/react/types/util").WideObject) & {
249
+ css: CSS_1;
250
+ })[] | undefined;
251
+ defaultVariants?: ("variants" extends keyof Composers[K] ? { [Name_1 in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name_1]> | undefined; } : import("@stitches/react/types/util").WideObject) | undefined;
252
+ } & CSS_1 & { [K2 in keyof Composers[K]]: K2 extends "compoundVariants" | "defaultVariants" | "variants" ? unknown : K2 extends keyof CSS_1 ? CSS_1[K2] : unknown; }; }) => import("@stitches/react/types/styled-component").CssComponent<import("@stitches/react/types/styled-component").StyledComponentType<Composers>, import("@stitches/react/types/styled-component").StyledComponentProps<Composers>, {
253
+ sm: "(min-width: 359px)";
254
+ md: "(min-width: 767px)";
255
+ lg: "(min-width: 1023px)";
256
+ xl: "(min-width: 1199px)";
257
+ '2xl': "(min-width: 1399px)";
258
+ '3xl': "(min-width: 1600px)";
259
+ }, CSS_1>, globalCss: <Styles extends {
260
+ [K: string]: any;
261
+ }>(...styles: ({
262
+ '@import'?: unknown;
263
+ '@font-face'?: unknown;
264
+ } & { [K in keyof Styles]: K extends "@import" ? string | string[] : K extends "@font-face" ? import("@stitches/react/types/css").AtRule.FontFace | import("@stitches/react/types/css").AtRule.FontFace[] : K extends `@keyframes ${string}` ? {
265
+ [x: string]: import("@stitches/react/types/css-util").CSS<{
266
+ sm: "(min-width: 359px)";
267
+ md: "(min-width: 767px)";
268
+ lg: "(min-width: 1023px)";
269
+ xl: "(min-width: 1199px)";
270
+ '2xl': "(min-width: 1399px)";
271
+ '3xl': "(min-width: 1600px)";
272
+ }, {
273
+ colors: unknown;
274
+ space: unknown;
275
+ shadows: unknown;
276
+ fontSizes: unknown;
277
+ fonts: unknown;
278
+ lineHeights: unknown;
279
+ letterSpacings: unknown;
280
+ radii: unknown;
281
+ sizes: unknown;
282
+ zIndices: unknown;
283
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
284
+ m: (value: Stitches.ScaleValue<'space'>) => {
285
+ margin: {
286
+ readonly [Stitches.$$ScaleValue]: "space";
287
+ };
288
+ };
289
+ mt: (value: Stitches.ScaleValue<'space'>) => {
290
+ marginTop: {
291
+ readonly [Stitches.$$ScaleValue]: "space";
292
+ };
293
+ };
294
+ mr: (value: Stitches.ScaleValue<'space'>) => {
295
+ marginRight: {
296
+ readonly [Stitches.$$ScaleValue]: "space";
297
+ };
298
+ };
299
+ mb: (value: Stitches.ScaleValue<'space'>) => {
300
+ marginBottom: {
301
+ readonly [Stitches.$$ScaleValue]: "space";
302
+ };
303
+ };
304
+ ml: (value: Stitches.ScaleValue<'space'>) => {
305
+ marginLeft: {
306
+ readonly [Stitches.$$ScaleValue]: "space";
307
+ };
308
+ };
309
+ mx: (value: Stitches.ScaleValue<'space'>) => {
310
+ marginLeft: {
311
+ readonly [Stitches.$$ScaleValue]: "space";
312
+ };
313
+ marginRight: {
314
+ readonly [Stitches.$$ScaleValue]: "space";
315
+ };
316
+ };
317
+ my: (value: Stitches.ScaleValue<'space'>) => {
318
+ marginTop: {
319
+ readonly [Stitches.$$ScaleValue]: "space";
320
+ };
321
+ marginBottom: {
322
+ readonly [Stitches.$$ScaleValue]: "space";
323
+ };
324
+ };
325
+ size: (value: Stitches.PropertyValue<'width'>) => {
326
+ width: {
327
+ readonly [Stitches.$$PropertyValue]: "width";
328
+ };
329
+ height: {
330
+ readonly [Stitches.$$PropertyValue]: "width";
331
+ };
332
+ };
333
+ subtleColor: (value: string) => {
334
+ color: string;
335
+ backgroundColor: string;
336
+ };
337
+ }>;
338
+ } : K extends `@property ${string}` ? import("@stitches/react/types/css").AtRule.Property : import("@stitches/react/types/css-util").CSS<{
339
+ sm: "(min-width: 359px)";
340
+ md: "(min-width: 767px)";
341
+ lg: "(min-width: 1023px)";
342
+ xl: "(min-width: 1199px)";
343
+ '2xl': "(min-width: 1399px)";
344
+ '3xl': "(min-width: 1600px)";
345
+ }, {
346
+ colors: unknown;
347
+ space: unknown;
348
+ shadows: unknown;
349
+ fontSizes: unknown;
350
+ fonts: unknown;
351
+ lineHeights: unknown;
352
+ letterSpacings: unknown;
353
+ radii: unknown;
354
+ sizes: unknown;
355
+ zIndices: unknown;
356
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
357
+ m: (value: Stitches.ScaleValue<'space'>) => {
358
+ margin: {
359
+ readonly [Stitches.$$ScaleValue]: "space";
360
+ };
361
+ };
362
+ mt: (value: Stitches.ScaleValue<'space'>) => {
363
+ marginTop: {
364
+ readonly [Stitches.$$ScaleValue]: "space";
365
+ };
366
+ };
367
+ mr: (value: Stitches.ScaleValue<'space'>) => {
368
+ marginRight: {
369
+ readonly [Stitches.$$ScaleValue]: "space";
370
+ };
371
+ };
372
+ mb: (value: Stitches.ScaleValue<'space'>) => {
373
+ marginBottom: {
374
+ readonly [Stitches.$$ScaleValue]: "space";
375
+ };
376
+ };
377
+ ml: (value: Stitches.ScaleValue<'space'>) => {
378
+ marginLeft: {
379
+ readonly [Stitches.$$ScaleValue]: "space";
380
+ };
381
+ };
382
+ mx: (value: Stitches.ScaleValue<'space'>) => {
383
+ marginLeft: {
384
+ readonly [Stitches.$$ScaleValue]: "space";
385
+ };
386
+ marginRight: {
387
+ readonly [Stitches.$$ScaleValue]: "space";
388
+ };
389
+ };
390
+ my: (value: Stitches.ScaleValue<'space'>) => {
391
+ marginTop: {
392
+ readonly [Stitches.$$ScaleValue]: "space";
393
+ };
394
+ marginBottom: {
395
+ readonly [Stitches.$$ScaleValue]: "space";
396
+ };
397
+ };
398
+ size: (value: Stitches.PropertyValue<'width'>) => {
399
+ width: {
400
+ readonly [Stitches.$$PropertyValue]: "width";
401
+ };
402
+ height: {
403
+ readonly [Stitches.$$PropertyValue]: "width";
404
+ };
405
+ };
406
+ subtleColor: (value: string) => {
407
+ color: string;
408
+ backgroundColor: string;
409
+ };
410
+ }>; })[]) => () => string, keyframes: (style: {
411
+ [offset: string]: import("@stitches/react/types/css-util").CSS<{
412
+ sm: "(min-width: 359px)";
413
+ md: "(min-width: 767px)";
414
+ lg: "(min-width: 1023px)";
415
+ xl: "(min-width: 1199px)";
416
+ '2xl': "(min-width: 1399px)";
417
+ '3xl': "(min-width: 1600px)";
418
+ }, {
419
+ colors: unknown;
420
+ space: unknown;
421
+ shadows: unknown;
422
+ fontSizes: unknown;
423
+ fonts: unknown;
424
+ lineHeights: unknown;
425
+ letterSpacings: unknown;
426
+ radii: unknown;
427
+ sizes: unknown;
428
+ zIndices: unknown;
429
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
430
+ m: (value: Stitches.ScaleValue<'space'>) => {
431
+ margin: {
432
+ readonly [Stitches.$$ScaleValue]: "space";
433
+ };
434
+ };
435
+ mt: (value: Stitches.ScaleValue<'space'>) => {
436
+ marginTop: {
437
+ readonly [Stitches.$$ScaleValue]: "space";
438
+ };
439
+ };
440
+ mr: (value: Stitches.ScaleValue<'space'>) => {
441
+ marginRight: {
442
+ readonly [Stitches.$$ScaleValue]: "space";
443
+ };
444
+ };
445
+ mb: (value: Stitches.ScaleValue<'space'>) => {
446
+ marginBottom: {
447
+ readonly [Stitches.$$ScaleValue]: "space";
448
+ };
449
+ };
450
+ ml: (value: Stitches.ScaleValue<'space'>) => {
451
+ marginLeft: {
452
+ readonly [Stitches.$$ScaleValue]: "space";
453
+ };
454
+ };
455
+ mx: (value: Stitches.ScaleValue<'space'>) => {
456
+ marginLeft: {
457
+ readonly [Stitches.$$ScaleValue]: "space";
458
+ };
459
+ marginRight: {
460
+ readonly [Stitches.$$ScaleValue]: "space";
461
+ };
462
+ };
463
+ my: (value: Stitches.ScaleValue<'space'>) => {
464
+ marginTop: {
465
+ readonly [Stitches.$$ScaleValue]: "space";
466
+ };
467
+ marginBottom: {
468
+ readonly [Stitches.$$ScaleValue]: "space";
469
+ };
470
+ };
471
+ size: (value: Stitches.PropertyValue<'width'>) => {
472
+ width: {
473
+ readonly [Stitches.$$PropertyValue]: "width";
474
+ };
475
+ height: {
476
+ readonly [Stitches.$$PropertyValue]: "width";
477
+ };
478
+ };
479
+ subtleColor: (value: string) => {
480
+ color: string;
481
+ backgroundColor: string;
482
+ };
483
+ }>;
484
+ }) => {
485
+ (): string;
486
+ name: string;
487
+ }, getCssText: () => string, theme: string & {
488
+ className: string;
489
+ selector: string;
490
+ } & {
491
+ colors: {};
492
+ space: {};
493
+ shadows: {};
494
+ fontSizes: {};
495
+ fonts: {};
496
+ lineHeights: {};
497
+ letterSpacings: {};
498
+ radii: {};
499
+ sizes: {};
500
+ zIndices: {};
501
+ }, createTheme: <Argument0 extends string | ({
502
+ colors?: {} | undefined;
503
+ space?: {} | undefined;
504
+ shadows?: {} | undefined;
505
+ fontSizes?: {} | undefined;
506
+ fonts?: {} | undefined;
507
+ lineHeights?: {} | undefined;
508
+ letterSpacings?: {} | undefined;
509
+ radii?: {} | undefined;
510
+ sizes?: {} | undefined;
511
+ zIndices?: {} | undefined;
512
+ } & {
513
+ [x: string]: {
514
+ [x: string]: string | number | boolean;
515
+ [x: number]: string | number | boolean;
516
+ };
517
+ }), Argument1 extends string | ({
518
+ colors?: {} | undefined;
519
+ space?: {} | undefined;
520
+ shadows?: {} | undefined;
521
+ fontSizes?: {} | undefined;
522
+ fonts?: {} | undefined;
523
+ lineHeights?: {} | undefined;
524
+ letterSpacings?: {} | undefined;
525
+ radii?: {} | undefined;
526
+ sizes?: {} | undefined;
527
+ zIndices?: {} | undefined;
528
+ } & {
529
+ [x: string]: {
530
+ [x: string]: string | number | boolean;
531
+ [x: number]: string | number | boolean;
532
+ };
533
+ })>(nameOrScalesArg0: Argument0, nameOrScalesArg1?: Argument1 | undefined) => string & {
534
+ className: string;
535
+ selector: string;
536
+ } & (Argument0 extends string ? import("@stitches/react/types/stitches").ThemeTokens<Argument1, ""> : import("@stitches/react/types/stitches").ThemeTokens<Argument0, "">), config: {
537
+ prefix: "";
538
+ media: {
539
+ sm: "(min-width: 359px)";
540
+ md: "(min-width: 767px)";
541
+ lg: "(min-width: 1023px)";
542
+ xl: "(min-width: 1199px)";
543
+ '2xl': "(min-width: 1399px)";
544
+ '3xl': "(min-width: 1600px)";
545
+ };
546
+ theme: {
547
+ colors: unknown;
548
+ space: unknown;
549
+ shadows: unknown;
550
+ fontSizes: unknown;
551
+ fonts: unknown;
552
+ lineHeights: unknown;
553
+ letterSpacings: unknown;
554
+ radii: unknown;
555
+ sizes: unknown;
556
+ zIndices: unknown;
557
+ };
558
+ themeMap: import("@stitches/react/types/config").DefaultThemeMap;
559
+ utils: {
560
+ m: (value: Stitches.ScaleValue<'space'>) => {
561
+ margin: {
562
+ readonly [Stitches.$$ScaleValue]: "space";
563
+ };
564
+ };
565
+ mt: (value: Stitches.ScaleValue<'space'>) => {
566
+ marginTop: {
567
+ readonly [Stitches.$$ScaleValue]: "space";
568
+ };
569
+ };
570
+ mr: (value: Stitches.ScaleValue<'space'>) => {
571
+ marginRight: {
572
+ readonly [Stitches.$$ScaleValue]: "space";
573
+ };
574
+ };
575
+ mb: (value: Stitches.ScaleValue<'space'>) => {
576
+ marginBottom: {
577
+ readonly [Stitches.$$ScaleValue]: "space";
578
+ };
579
+ };
580
+ ml: (value: Stitches.ScaleValue<'space'>) => {
581
+ marginLeft: {
582
+ readonly [Stitches.$$ScaleValue]: "space";
583
+ };
584
+ };
585
+ mx: (value: Stitches.ScaleValue<'space'>) => {
586
+ marginLeft: {
587
+ readonly [Stitches.$$ScaleValue]: "space";
588
+ };
589
+ marginRight: {
590
+ readonly [Stitches.$$ScaleValue]: "space";
591
+ };
592
+ };
593
+ my: (value: Stitches.ScaleValue<'space'>) => {
594
+ marginTop: {
595
+ readonly [Stitches.$$ScaleValue]: "space";
596
+ };
597
+ marginBottom: {
598
+ readonly [Stitches.$$ScaleValue]: "space";
599
+ };
600
+ };
601
+ size: (value: Stitches.PropertyValue<'width'>) => {
602
+ width: {
603
+ readonly [Stitches.$$PropertyValue]: "width";
604
+ };
605
+ height: {
606
+ readonly [Stitches.$$PropertyValue]: "width";
607
+ };
608
+ };
609
+ subtleColor: (value: string) => {
610
+ color: string;
611
+ backgroundColor: string;
612
+ };
613
+ };
614
+ };
615
+ export declare const darkTheme: string & {
616
+ className: string;
617
+ selector: string;
618
+ } & import("@stitches/react/types/stitches").ThemeTokens<{
619
+ colors: {
620
+ bgWhite: string;
621
+ bgDark: string;
622
+ };
623
+ }, "">;
624
+ export declare const colors: any;
625
+ export declare type CSS = Stitches.CSS<typeof config>;
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export * from './majoo-provider';
2
- export * from './components';
3
- export * from './layout';
4
2
  export * from './colors';
3
+ export * from './layout';
4
+ export * from './components';