@majoo-ui/react 1.57.20 → 1.58.0

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,516 @@
1
+ import React from 'react';
2
+ import { CSS } from '../../config/stitches.config';
3
+ interface CardProps {
4
+ className?: string;
5
+ css?: CSS;
6
+ color?: 'green' | 'orange' | 'blue' | 'purple' | 'yellow' | 'red' | 'dark';
7
+ shadow?: boolean;
8
+ radius?: string;
9
+ padding?: string;
10
+ title?: JSX.Element | string;
11
+ label?: JSX.Element | string;
12
+ description?: JSX.Element | string;
13
+ width?: string;
14
+ textColor?: string;
15
+ icon?: JSX.Element;
16
+ showBottomLine?: boolean;
17
+ children?: React.ReactNode;
18
+ }
19
+ export declare const CardComponent: import("@stitches/react/types/styled-component").StyledComponent<"div", {
20
+ shadow?: boolean | "true" | undefined;
21
+ isTemplateFormat?: boolean | "true" | undefined;
22
+ }, {
23
+ sm: "(min-width: 359px)";
24
+ md: "(min-width: 767px)";
25
+ lg: "(min-width: 1023px)";
26
+ xl: "(min-width: 1199px)";
27
+ '2xl': "(min-width: 1399px)";
28
+ '3xl': "(min-width: 1600px)";
29
+ }, import("@stitches/react/types/css-util").CSS<{
30
+ sm: "(min-width: 359px)";
31
+ md: "(min-width: 767px)";
32
+ lg: "(min-width: 1023px)";
33
+ xl: "(min-width: 1199px)";
34
+ '2xl': "(min-width: 1399px)";
35
+ '3xl': "(min-width: 1600px)";
36
+ }, {
37
+ colors: unknown;
38
+ space: unknown;
39
+ shadows: unknown;
40
+ fontSizes: unknown;
41
+ fonts: unknown;
42
+ lineHeights: unknown;
43
+ letterSpacings: unknown;
44
+ radii: unknown;
45
+ sizes: unknown;
46
+ zIndices: unknown;
47
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
48
+ m: (value: {
49
+ readonly [$$ScaleValue]: "space";
50
+ }) => {
51
+ margin: {
52
+ readonly [$$ScaleValue]: "space";
53
+ };
54
+ };
55
+ mt: (value: {
56
+ readonly [$$ScaleValue]: "space";
57
+ }) => {
58
+ marginTop: {
59
+ readonly [$$ScaleValue]: "space";
60
+ };
61
+ };
62
+ mr: (value: {
63
+ readonly [$$ScaleValue]: "space";
64
+ }) => {
65
+ marginRight: {
66
+ readonly [$$ScaleValue]: "space";
67
+ };
68
+ };
69
+ mb: (value: {
70
+ readonly [$$ScaleValue]: "space";
71
+ }) => {
72
+ marginBottom: {
73
+ readonly [$$ScaleValue]: "space";
74
+ };
75
+ };
76
+ ml: (value: {
77
+ readonly [$$ScaleValue]: "space";
78
+ }) => {
79
+ marginLeft: {
80
+ readonly [$$ScaleValue]: "space";
81
+ };
82
+ };
83
+ mx: (value: {
84
+ readonly [$$ScaleValue]: "space";
85
+ }) => {
86
+ marginLeft: {
87
+ readonly [$$ScaleValue]: "space";
88
+ };
89
+ marginRight: {
90
+ readonly [$$ScaleValue]: "space";
91
+ };
92
+ };
93
+ my: (value: {
94
+ readonly [$$ScaleValue]: "space";
95
+ }) => {
96
+ marginTop: {
97
+ readonly [$$ScaleValue]: "space";
98
+ };
99
+ marginBottom: {
100
+ readonly [$$ScaleValue]: "space";
101
+ };
102
+ };
103
+ size: (value: {
104
+ readonly [$$PropertyValue]: "width";
105
+ }) => {
106
+ width: {
107
+ readonly [$$PropertyValue]: "width";
108
+ };
109
+ height: {
110
+ readonly [$$PropertyValue]: "width";
111
+ };
112
+ };
113
+ subtleColor: (value: string) => {
114
+ color: string;
115
+ backgroundColor: string;
116
+ };
117
+ }>>;
118
+ export declare const CardLineColor: import("@stitches/react/types/styled-component").StyledComponent<"span", {
119
+ color?: "dark" | "green" | "orange" | "blue" | "purple" | "yellow" | "red" | "lightBlue" | undefined;
120
+ }, {
121
+ sm: "(min-width: 359px)";
122
+ md: "(min-width: 767px)";
123
+ lg: "(min-width: 1023px)";
124
+ xl: "(min-width: 1199px)";
125
+ '2xl': "(min-width: 1399px)";
126
+ '3xl': "(min-width: 1600px)";
127
+ }, import("@stitches/react/types/css-util").CSS<{
128
+ sm: "(min-width: 359px)";
129
+ md: "(min-width: 767px)";
130
+ lg: "(min-width: 1023px)";
131
+ xl: "(min-width: 1199px)";
132
+ '2xl': "(min-width: 1399px)";
133
+ '3xl': "(min-width: 1600px)";
134
+ }, {
135
+ colors: unknown;
136
+ space: unknown;
137
+ shadows: unknown;
138
+ fontSizes: unknown;
139
+ fonts: unknown;
140
+ lineHeights: unknown;
141
+ letterSpacings: unknown;
142
+ radii: unknown;
143
+ sizes: unknown;
144
+ zIndices: unknown;
145
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
146
+ m: (value: {
147
+ readonly [$$ScaleValue]: "space";
148
+ }) => {
149
+ margin: {
150
+ readonly [$$ScaleValue]: "space";
151
+ };
152
+ };
153
+ mt: (value: {
154
+ readonly [$$ScaleValue]: "space";
155
+ }) => {
156
+ marginTop: {
157
+ readonly [$$ScaleValue]: "space";
158
+ };
159
+ };
160
+ mr: (value: {
161
+ readonly [$$ScaleValue]: "space";
162
+ }) => {
163
+ marginRight: {
164
+ readonly [$$ScaleValue]: "space";
165
+ };
166
+ };
167
+ mb: (value: {
168
+ readonly [$$ScaleValue]: "space";
169
+ }) => {
170
+ marginBottom: {
171
+ readonly [$$ScaleValue]: "space";
172
+ };
173
+ };
174
+ ml: (value: {
175
+ readonly [$$ScaleValue]: "space";
176
+ }) => {
177
+ marginLeft: {
178
+ readonly [$$ScaleValue]: "space";
179
+ };
180
+ };
181
+ mx: (value: {
182
+ readonly [$$ScaleValue]: "space";
183
+ }) => {
184
+ marginLeft: {
185
+ readonly [$$ScaleValue]: "space";
186
+ };
187
+ marginRight: {
188
+ readonly [$$ScaleValue]: "space";
189
+ };
190
+ };
191
+ my: (value: {
192
+ readonly [$$ScaleValue]: "space";
193
+ }) => {
194
+ marginTop: {
195
+ readonly [$$ScaleValue]: "space";
196
+ };
197
+ marginBottom: {
198
+ readonly [$$ScaleValue]: "space";
199
+ };
200
+ };
201
+ size: (value: {
202
+ readonly [$$PropertyValue]: "width";
203
+ }) => {
204
+ width: {
205
+ readonly [$$PropertyValue]: "width";
206
+ };
207
+ height: {
208
+ readonly [$$PropertyValue]: "width";
209
+ };
210
+ };
211
+ subtleColor: (value: string) => {
212
+ color: string;
213
+ backgroundColor: string;
214
+ };
215
+ }>>;
216
+ export declare const StyledTitle: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
217
+ sm: "(min-width: 359px)";
218
+ md: "(min-width: 767px)";
219
+ lg: "(min-width: 1023px)";
220
+ xl: "(min-width: 1199px)";
221
+ '2xl': "(min-width: 1399px)";
222
+ '3xl': "(min-width: 1600px)";
223
+ }, import("@stitches/react/types/css-util").CSS<{
224
+ sm: "(min-width: 359px)";
225
+ md: "(min-width: 767px)";
226
+ lg: "(min-width: 1023px)";
227
+ xl: "(min-width: 1199px)";
228
+ '2xl': "(min-width: 1399px)";
229
+ '3xl': "(min-width: 1600px)";
230
+ }, {
231
+ colors: unknown;
232
+ space: unknown;
233
+ shadows: unknown;
234
+ fontSizes: unknown;
235
+ fonts: unknown;
236
+ lineHeights: unknown;
237
+ letterSpacings: unknown;
238
+ radii: unknown;
239
+ sizes: unknown;
240
+ zIndices: unknown;
241
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
242
+ m: (value: {
243
+ readonly [$$ScaleValue]: "space";
244
+ }) => {
245
+ margin: {
246
+ readonly [$$ScaleValue]: "space";
247
+ };
248
+ };
249
+ mt: (value: {
250
+ readonly [$$ScaleValue]: "space";
251
+ }) => {
252
+ marginTop: {
253
+ readonly [$$ScaleValue]: "space";
254
+ };
255
+ };
256
+ mr: (value: {
257
+ readonly [$$ScaleValue]: "space";
258
+ }) => {
259
+ marginRight: {
260
+ readonly [$$ScaleValue]: "space";
261
+ };
262
+ };
263
+ mb: (value: {
264
+ readonly [$$ScaleValue]: "space";
265
+ }) => {
266
+ marginBottom: {
267
+ readonly [$$ScaleValue]: "space";
268
+ };
269
+ };
270
+ ml: (value: {
271
+ readonly [$$ScaleValue]: "space";
272
+ }) => {
273
+ marginLeft: {
274
+ readonly [$$ScaleValue]: "space";
275
+ };
276
+ };
277
+ mx: (value: {
278
+ readonly [$$ScaleValue]: "space";
279
+ }) => {
280
+ marginLeft: {
281
+ readonly [$$ScaleValue]: "space";
282
+ };
283
+ marginRight: {
284
+ readonly [$$ScaleValue]: "space";
285
+ };
286
+ };
287
+ my: (value: {
288
+ readonly [$$ScaleValue]: "space";
289
+ }) => {
290
+ marginTop: {
291
+ readonly [$$ScaleValue]: "space";
292
+ };
293
+ marginBottom: {
294
+ readonly [$$ScaleValue]: "space";
295
+ };
296
+ };
297
+ size: (value: {
298
+ readonly [$$PropertyValue]: "width";
299
+ }) => {
300
+ width: {
301
+ readonly [$$PropertyValue]: "width";
302
+ };
303
+ height: {
304
+ readonly [$$PropertyValue]: "width";
305
+ };
306
+ };
307
+ subtleColor: (value: string) => {
308
+ color: string;
309
+ backgroundColor: string;
310
+ };
311
+ }>>;
312
+ export declare const Card: {
313
+ ({ className, children, color, shadow, radius, padding, title, width, textColor, icon, showBottomLine, label, description, ...props }: CardProps): JSX.Element;
314
+ defaultProps: {
315
+ className: string;
316
+ color: string;
317
+ shadow: boolean;
318
+ radius: string;
319
+ padding: string;
320
+ title: string;
321
+ showBottomLine: boolean;
322
+ };
323
+ Label: import("@stitches/react/types/styled-component").StyledComponent<"h3", {}, {
324
+ sm: "(min-width: 359px)";
325
+ md: "(min-width: 767px)";
326
+ lg: "(min-width: 1023px)";
327
+ xl: "(min-width: 1199px)";
328
+ '2xl': "(min-width: 1399px)";
329
+ '3xl': "(min-width: 1600px)";
330
+ }, import("@stitches/react/types/css-util").CSS<{
331
+ sm: "(min-width: 359px)";
332
+ md: "(min-width: 767px)";
333
+ lg: "(min-width: 1023px)";
334
+ xl: "(min-width: 1199px)";
335
+ '2xl': "(min-width: 1399px)";
336
+ '3xl': "(min-width: 1600px)";
337
+ }, {
338
+ colors: unknown;
339
+ space: unknown;
340
+ shadows: unknown;
341
+ fontSizes: unknown;
342
+ fonts: unknown;
343
+ lineHeights: unknown;
344
+ letterSpacings: unknown;
345
+ radii: unknown;
346
+ sizes: unknown;
347
+ zIndices: unknown;
348
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
349
+ m: (value: {
350
+ readonly [$$ScaleValue]: "space";
351
+ }) => {
352
+ margin: {
353
+ readonly [$$ScaleValue]: "space";
354
+ };
355
+ };
356
+ mt: (value: {
357
+ readonly [$$ScaleValue]: "space";
358
+ }) => {
359
+ marginTop: {
360
+ readonly [$$ScaleValue]: "space";
361
+ };
362
+ };
363
+ mr: (value: {
364
+ readonly [$$ScaleValue]: "space";
365
+ }) => {
366
+ marginRight: {
367
+ readonly [$$ScaleValue]: "space";
368
+ };
369
+ };
370
+ mb: (value: {
371
+ readonly [$$ScaleValue]: "space";
372
+ }) => {
373
+ marginBottom: {
374
+ readonly [$$ScaleValue]: "space";
375
+ };
376
+ };
377
+ ml: (value: {
378
+ readonly [$$ScaleValue]: "space";
379
+ }) => {
380
+ marginLeft: {
381
+ readonly [$$ScaleValue]: "space";
382
+ };
383
+ };
384
+ mx: (value: {
385
+ readonly [$$ScaleValue]: "space";
386
+ }) => {
387
+ marginLeft: {
388
+ readonly [$$ScaleValue]: "space";
389
+ };
390
+ marginRight: {
391
+ readonly [$$ScaleValue]: "space";
392
+ };
393
+ };
394
+ my: (value: {
395
+ readonly [$$ScaleValue]: "space";
396
+ }) => {
397
+ marginTop: {
398
+ readonly [$$ScaleValue]: "space";
399
+ };
400
+ marginBottom: {
401
+ readonly [$$ScaleValue]: "space";
402
+ };
403
+ };
404
+ size: (value: {
405
+ readonly [$$PropertyValue]: "width";
406
+ }) => {
407
+ width: {
408
+ readonly [$$PropertyValue]: "width";
409
+ };
410
+ height: {
411
+ readonly [$$PropertyValue]: "width";
412
+ };
413
+ };
414
+ subtleColor: (value: string) => {
415
+ color: string;
416
+ backgroundColor: string;
417
+ };
418
+ }>>;
419
+ Description: import("@stitches/react/types/styled-component").StyledComponent<"p", {}, {
420
+ sm: "(min-width: 359px)";
421
+ md: "(min-width: 767px)";
422
+ lg: "(min-width: 1023px)";
423
+ xl: "(min-width: 1199px)";
424
+ '2xl': "(min-width: 1399px)";
425
+ '3xl': "(min-width: 1600px)";
426
+ }, import("@stitches/react/types/css-util").CSS<{
427
+ sm: "(min-width: 359px)";
428
+ md: "(min-width: 767px)";
429
+ lg: "(min-width: 1023px)";
430
+ xl: "(min-width: 1199px)";
431
+ '2xl': "(min-width: 1399px)";
432
+ '3xl': "(min-width: 1600px)";
433
+ }, {
434
+ colors: unknown;
435
+ space: unknown;
436
+ shadows: unknown;
437
+ fontSizes: unknown;
438
+ fonts: unknown;
439
+ lineHeights: unknown;
440
+ letterSpacings: unknown;
441
+ radii: unknown;
442
+ sizes: unknown;
443
+ zIndices: unknown;
444
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
445
+ m: (value: {
446
+ readonly [$$ScaleValue]: "space";
447
+ }) => {
448
+ margin: {
449
+ readonly [$$ScaleValue]: "space";
450
+ };
451
+ };
452
+ mt: (value: {
453
+ readonly [$$ScaleValue]: "space";
454
+ }) => {
455
+ marginTop: {
456
+ readonly [$$ScaleValue]: "space";
457
+ };
458
+ };
459
+ mr: (value: {
460
+ readonly [$$ScaleValue]: "space";
461
+ }) => {
462
+ marginRight: {
463
+ readonly [$$ScaleValue]: "space";
464
+ };
465
+ };
466
+ mb: (value: {
467
+ readonly [$$ScaleValue]: "space";
468
+ }) => {
469
+ marginBottom: {
470
+ readonly [$$ScaleValue]: "space";
471
+ };
472
+ };
473
+ ml: (value: {
474
+ readonly [$$ScaleValue]: "space";
475
+ }) => {
476
+ marginLeft: {
477
+ readonly [$$ScaleValue]: "space";
478
+ };
479
+ };
480
+ mx: (value: {
481
+ readonly [$$ScaleValue]: "space";
482
+ }) => {
483
+ marginLeft: {
484
+ readonly [$$ScaleValue]: "space";
485
+ };
486
+ marginRight: {
487
+ readonly [$$ScaleValue]: "space";
488
+ };
489
+ };
490
+ my: (value: {
491
+ readonly [$$ScaleValue]: "space";
492
+ }) => {
493
+ marginTop: {
494
+ readonly [$$ScaleValue]: "space";
495
+ };
496
+ marginBottom: {
497
+ readonly [$$ScaleValue]: "space";
498
+ };
499
+ };
500
+ size: (value: {
501
+ readonly [$$PropertyValue]: "width";
502
+ }) => {
503
+ width: {
504
+ readonly [$$PropertyValue]: "width";
505
+ };
506
+ height: {
507
+ readonly [$$PropertyValue]: "width";
508
+ };
509
+ };
510
+ subtleColor: (value: string) => {
511
+ color: string;
512
+ backgroundColor: string;
513
+ };
514
+ }>>;
515
+ };
516
+ export default Card;
@@ -0,0 +1,2 @@
1
+ export { default as Card } from './Card';
2
+ export * from './Card';
@@ -0,0 +1,38 @@
1
+ import * as React from 'react';
2
+ import { CSS } from '../../../../config/stitches.config';
3
+ interface InputDateRangeProps {
4
+ /**
5
+ * Specify the InputDateRange placeholder.
6
+ */
7
+ placeholder?: string;
8
+ /**
9
+ * Specify an `onChange` handler that is called whenever the InputDateRange value changes.
10
+ */
11
+ onChange?: (value: any) => void;
12
+ /**
13
+ * Specify the input size.
14
+ */
15
+ size?: 'sm' | 'lg';
16
+ /**
17
+ * If true, the component is disabled.
18
+ */
19
+ disabled?: boolean;
20
+ /**
21
+ * Specify the options view placement.
22
+ */
23
+ placement?: 'bottom' | 'top';
24
+ /**
25
+ * If true, the input will become read-only state.
26
+ */
27
+ readOnly?: boolean;
28
+ /**
29
+ * If true, the input will become invalid state.
30
+ */
31
+ isInvalid?: boolean;
32
+ /**
33
+ * Additional CSS InputDateRange styles
34
+ */
35
+ css?: CSS;
36
+ }
37
+ export declare const InputDateRange: React.ForwardRefExoticComponent<InputDateRangeProps & React.RefAttributes<HTMLInputElement>>;
38
+ export default InputDateRange;
@@ -0,0 +1,2 @@
1
+ export { default as InputDateRange } from './InputDateRange';
2
+ export * from './InputDateRange';
@@ -705,7 +705,7 @@ interface InputSelectProps extends Omit<DownshiftProps<Option>, 'initialSelected
705
705
  /**
706
706
  * Specify the InputSelect placeholder.
707
707
  */
708
- placeholder?: string;
708
+ placeholder?: string | null;
709
709
  /**
710
710
  * Specify the search input placeholder.
711
711
  */
@@ -809,6 +809,10 @@ interface InputSelectProps extends Omit<DownshiftProps<Option>, 'initialSelected
809
809
  * Render custom footer inside option. If onClick not working on mobile, you can using both onClick and onTouchStart.
810
810
  */
811
811
  renderFooter?: () => React.ReactNode;
812
+ /**
813
+ * Custom empty data message
814
+ */
815
+ emptyDataMessage?: string;
812
816
  }
813
817
  export declare const InputSelect: React.ForwardRefExoticComponent<InputSelectProps & React.RefAttributes<HTMLInputElement>>;
814
818
  export default InputSelect;
@@ -22,3 +22,4 @@ export { default as InputResourceList } from './InputResourceList/InputResourceL
22
22
  export * from './InputCombobox';
23
23
  export * from './InputOTP';
24
24
  export * from './InputCounter';
25
+ export * from './InputDateRange';