@majoo-ui/react 1.42.3 → 1.44.2

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 (40) hide show
  1. package/README.md +7 -7
  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 +198 -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 +3 -1
  15. package/components/loadingBar/LoadingBar.d.ts +12 -0
  16. package/components/loadingBar/index.d.ts +1 -0
  17. package/components/modalDialog/ModalDialog.d.ts +810 -0
  18. package/components/modalDialog/index.d.ts +2 -0
  19. package/components/pageDialog/PageDialog.d.ts +806 -0
  20. package/components/pageDialog/index.d.ts +1 -0
  21. package/components/progressIndicator/ProgressIndicator.d.ts +12 -0
  22. package/components/progressIndicator/index.d.ts +1 -0
  23. package/components/table/MobileTable.d.ts +15 -0
  24. package/components/table/Table.d.ts +920 -0
  25. package/components/table/index.d.ts +4 -0
  26. package/components/upload/utils/canvasPreview.d.ts +2 -0
  27. package/components/upload/utils/imgPreview.d.ts +2 -0
  28. package/config/stitches.config.d.ts +625 -0
  29. package/index.d.ts +2 -2
  30. package/index.esm.css +244 -0
  31. package/index.esm.js +6261 -4657
  32. package/index.umd.css +244 -0
  33. package/index.umd.js +5541 -3811
  34. package/layout/box/index.d.ts +1 -0
  35. package/layout/flex/index.d.ts +2 -0
  36. package/layout/index.d.ts +4 -0
  37. package/package.json +6 -5
  38. package/type/base.types.d.ts +10 -0
  39. package/type/stitches.types.d.ts +1 -0
  40. package/utils/variant.d.ts +4 -0
@@ -3,6 +3,7 @@ import { Column } from 'react-table';
3
3
  interface EditableTableProps<Data extends object> {
4
4
  columns: ReadonlyArray<Column<Data>>;
5
5
  data: Data[];
6
+ emptyDataMessage?: string;
6
7
  }
7
8
  interface RemoveProps {
8
9
  position?: 'leftBottom' | 'rightBottom' | 'leftTop' | 'rightTop';
@@ -15,7 +16,203 @@ declare namespace EditableTable {
15
16
  label: any;
16
17
  variants: any;
17
18
  }) => JSX.Element;
18
- var Input: any;
19
+ var Input: import("@stitches/react/types/styled-component").StyledComponent<import("@stitches/react/types/styled-component").StyledComponent<"input", {
20
+ readOnly?: boolean | "true" | undefined;
21
+ inputGroup?: boolean | "true" | undefined;
22
+ size?: "sm" | "lg" | undefined;
23
+ isInvalid?: boolean | "true" | undefined;
24
+ isPicker?: boolean | "true" | undefined;
25
+ }, {
26
+ sm: "(min-width: 359px)";
27
+ md: "(min-width: 767px)";
28
+ lg: "(min-width: 1023px)";
29
+ xl: "(min-width: 1199px)";
30
+ '2xl': "(min-width: 1399px)";
31
+ '3xl': "(min-width: 1600px)";
32
+ }, import("@stitches/react/types/css-util").CSS<{
33
+ sm: "(min-width: 359px)";
34
+ md: "(min-width: 767px)";
35
+ lg: "(min-width: 1023px)";
36
+ xl: "(min-width: 1199px)";
37
+ '2xl': "(min-width: 1399px)";
38
+ '3xl': "(min-width: 1600px)";
39
+ }, {
40
+ colors: unknown;
41
+ space: unknown;
42
+ shadows: unknown;
43
+ fontSizes: unknown;
44
+ fonts: unknown;
45
+ lineHeights: unknown;
46
+ letterSpacings: unknown;
47
+ radii: unknown;
48
+ sizes: unknown;
49
+ zIndices: unknown;
50
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
51
+ m: (value: {
52
+ readonly [$$ScaleValue]: "space";
53
+ }) => {
54
+ margin: {
55
+ readonly [$$ScaleValue]: "space";
56
+ };
57
+ };
58
+ mt: (value: {
59
+ readonly [$$ScaleValue]: "space";
60
+ }) => {
61
+ marginTop: {
62
+ readonly [$$ScaleValue]: "space";
63
+ };
64
+ };
65
+ mr: (value: {
66
+ readonly [$$ScaleValue]: "space";
67
+ }) => {
68
+ marginRight: {
69
+ readonly [$$ScaleValue]: "space";
70
+ };
71
+ };
72
+ mb: (value: {
73
+ readonly [$$ScaleValue]: "space";
74
+ }) => {
75
+ marginBottom: {
76
+ readonly [$$ScaleValue]: "space";
77
+ };
78
+ };
79
+ ml: (value: {
80
+ readonly [$$ScaleValue]: "space";
81
+ }) => {
82
+ marginLeft: {
83
+ readonly [$$ScaleValue]: "space";
84
+ };
85
+ };
86
+ mx: (value: {
87
+ readonly [$$ScaleValue]: "space";
88
+ }) => {
89
+ marginLeft: {
90
+ readonly [$$ScaleValue]: "space";
91
+ };
92
+ marginRight: {
93
+ readonly [$$ScaleValue]: "space";
94
+ };
95
+ };
96
+ my: (value: {
97
+ readonly [$$ScaleValue]: "space";
98
+ }) => {
99
+ marginTop: {
100
+ readonly [$$ScaleValue]: "space";
101
+ };
102
+ marginBottom: {
103
+ readonly [$$ScaleValue]: "space";
104
+ };
105
+ };
106
+ size: (value: {
107
+ readonly [$$PropertyValue]: "width";
108
+ }) => {
109
+ width: {
110
+ readonly [$$PropertyValue]: "width";
111
+ };
112
+ height: {
113
+ readonly [$$PropertyValue]: "width";
114
+ };
115
+ };
116
+ subtleColor: (value: string) => {
117
+ color: string;
118
+ backgroundColor: string;
119
+ };
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
+ }>>;
19
216
  var Switch: (props: any) => JSX.Element;
20
217
  var Remove: (props: RemoveProps) => JSX.Element;
21
218
  }
@@ -0,0 +1,103 @@
1
+ declare const InputText: import("@stitches/react/types/styled-component").StyledComponent<"input", {
2
+ readOnly?: boolean | "true" | undefined;
3
+ inputGroup?: boolean | "true" | undefined;
4
+ size?: "sm" | "lg" | undefined;
5
+ isInvalid?: boolean | "true" | undefined;
6
+ isPicker?: boolean | "true" | undefined;
7
+ }, {
8
+ sm: "(min-width: 359px)";
9
+ md: "(min-width: 767px)";
10
+ lg: "(min-width: 1023px)";
11
+ xl: "(min-width: 1199px)";
12
+ '2xl': "(min-width: 1399px)";
13
+ '3xl': "(min-width: 1600px)";
14
+ }, import("@stitches/react/types/css-util").CSS<{
15
+ sm: "(min-width: 359px)";
16
+ md: "(min-width: 767px)";
17
+ lg: "(min-width: 1023px)";
18
+ xl: "(min-width: 1199px)";
19
+ '2xl': "(min-width: 1399px)";
20
+ '3xl': "(min-width: 1600px)";
21
+ }, {
22
+ colors: unknown;
23
+ space: unknown;
24
+ shadows: unknown;
25
+ fontSizes: unknown;
26
+ fonts: unknown;
27
+ lineHeights: unknown;
28
+ letterSpacings: unknown;
29
+ radii: unknown;
30
+ sizes: unknown;
31
+ zIndices: unknown;
32
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
33
+ m: (value: {
34
+ readonly [$$ScaleValue]: "space";
35
+ }) => {
36
+ margin: {
37
+ readonly [$$ScaleValue]: "space";
38
+ };
39
+ };
40
+ mt: (value: {
41
+ readonly [$$ScaleValue]: "space";
42
+ }) => {
43
+ marginTop: {
44
+ readonly [$$ScaleValue]: "space";
45
+ };
46
+ };
47
+ mr: (value: {
48
+ readonly [$$ScaleValue]: "space";
49
+ }) => {
50
+ marginRight: {
51
+ readonly [$$ScaleValue]: "space";
52
+ };
53
+ };
54
+ mb: (value: {
55
+ readonly [$$ScaleValue]: "space";
56
+ }) => {
57
+ marginBottom: {
58
+ readonly [$$ScaleValue]: "space";
59
+ };
60
+ };
61
+ ml: (value: {
62
+ readonly [$$ScaleValue]: "space";
63
+ }) => {
64
+ marginLeft: {
65
+ readonly [$$ScaleValue]: "space";
66
+ };
67
+ };
68
+ mx: (value: {
69
+ readonly [$$ScaleValue]: "space";
70
+ }) => {
71
+ marginLeft: {
72
+ readonly [$$ScaleValue]: "space";
73
+ };
74
+ marginRight: {
75
+ readonly [$$ScaleValue]: "space";
76
+ };
77
+ };
78
+ my: (value: {
79
+ readonly [$$ScaleValue]: "space";
80
+ }) => {
81
+ marginTop: {
82
+ readonly [$$ScaleValue]: "space";
83
+ };
84
+ marginBottom: {
85
+ readonly [$$ScaleValue]: "space";
86
+ };
87
+ };
88
+ size: (value: {
89
+ readonly [$$PropertyValue]: "width";
90
+ }) => {
91
+ width: {
92
+ readonly [$$PropertyValue]: "width";
93
+ };
94
+ height: {
95
+ readonly [$$PropertyValue]: "width";
96
+ };
97
+ };
98
+ subtleColor: (value: string) => {
99
+ color: string;
100
+ backgroundColor: string;
101
+ };
102
+ }>>;
103
+ export { InputText };
@@ -0,0 +1 @@
1
+ export { InputText } from './InputText';
@@ -0,0 +1,99 @@
1
+ declare const Heading: import("@stitches/react/types/styled-component").StyledComponent<any, {
2
+ heading?: "h1" | "h2" | "h3" | "pageTitle" | "sectionTitle" | "sectionSubTitle" | "headerTabs" | "headerTable" | undefined;
3
+ }, {
4
+ sm: "(min-width: 359px)";
5
+ md: "(min-width: 767px)";
6
+ lg: "(min-width: 1023px)";
7
+ xl: "(min-width: 1199px)";
8
+ '2xl': "(min-width: 1399px)";
9
+ '3xl': "(min-width: 1600px)";
10
+ }, import("@stitches/react/types/css-util").CSS<{
11
+ sm: "(min-width: 359px)";
12
+ md: "(min-width: 767px)";
13
+ lg: "(min-width: 1023px)";
14
+ xl: "(min-width: 1199px)";
15
+ '2xl': "(min-width: 1399px)";
16
+ '3xl': "(min-width: 1600px)";
17
+ }, {
18
+ colors: unknown;
19
+ space: unknown;
20
+ shadows: unknown;
21
+ fontSizes: unknown;
22
+ fonts: unknown;
23
+ lineHeights: unknown;
24
+ letterSpacings: unknown;
25
+ radii: unknown;
26
+ sizes: unknown;
27
+ zIndices: unknown;
28
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
29
+ m: (value: {
30
+ readonly [$$ScaleValue]: "space";
31
+ }) => {
32
+ margin: {
33
+ readonly [$$ScaleValue]: "space";
34
+ };
35
+ };
36
+ mt: (value: {
37
+ readonly [$$ScaleValue]: "space";
38
+ }) => {
39
+ marginTop: {
40
+ readonly [$$ScaleValue]: "space";
41
+ };
42
+ };
43
+ mr: (value: {
44
+ readonly [$$ScaleValue]: "space";
45
+ }) => {
46
+ marginRight: {
47
+ readonly [$$ScaleValue]: "space";
48
+ };
49
+ };
50
+ mb: (value: {
51
+ readonly [$$ScaleValue]: "space";
52
+ }) => {
53
+ marginBottom: {
54
+ readonly [$$ScaleValue]: "space";
55
+ };
56
+ };
57
+ ml: (value: {
58
+ readonly [$$ScaleValue]: "space";
59
+ }) => {
60
+ marginLeft: {
61
+ readonly [$$ScaleValue]: "space";
62
+ };
63
+ };
64
+ mx: (value: {
65
+ readonly [$$ScaleValue]: "space";
66
+ }) => {
67
+ marginLeft: {
68
+ readonly [$$ScaleValue]: "space";
69
+ };
70
+ marginRight: {
71
+ readonly [$$ScaleValue]: "space";
72
+ };
73
+ };
74
+ my: (value: {
75
+ readonly [$$ScaleValue]: "space";
76
+ }) => {
77
+ marginTop: {
78
+ readonly [$$ScaleValue]: "space";
79
+ };
80
+ marginBottom: {
81
+ readonly [$$ScaleValue]: "space";
82
+ };
83
+ };
84
+ size: (value: {
85
+ readonly [$$PropertyValue]: "width";
86
+ }) => {
87
+ width: {
88
+ readonly [$$PropertyValue]: "width";
89
+ };
90
+ height: {
91
+ readonly [$$PropertyValue]: "width";
92
+ };
93
+ };
94
+ subtleColor: (value: string) => {
95
+ color: string;
96
+ backgroundColor: string;
97
+ };
98
+ }>>;
99
+ export default Heading;
@@ -0,0 +1,2 @@
1
+ export * from './Heading';
2
+ export { default as Heading } from './Heading';
@@ -0,0 +1,2 @@
1
+ export { default as Image } from './Image';
2
+ export * from './Image';
@@ -22,6 +22,7 @@ export * from './buttonGroup';
22
22
  export * from './notificationBadge';
23
23
  export * from './paper';
24
24
  export * from './iconButton';
25
+ export * from './dialog';
25
26
  export * from './modalDialog';
26
27
  export * from './drawer';
27
28
  export * from './accordion';
@@ -29,7 +30,6 @@ export * from './datePicker';
29
30
  export * from './table';
30
31
  export * from './pagination';
31
32
  export * from './pageDialog';
32
- export * from './dialog';
33
33
  export * from './alertDialog';
34
34
  export * from './dropdownMenu';
35
35
  export * from './upload';
@@ -38,3 +38,5 @@ export * from './colorPicker';
38
38
  export * from './stepWizard';
39
39
  export * from './tableOfContent';
40
40
  export * from './editableTable';
41
+ export * from './loadingBar';
42
+ export * from './progressIndicator';
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import type * as Stitches from '@stitches/react';
3
+ interface LoadingBarProps {
4
+ progress: number;
5
+ description?: string;
6
+ css?: Stitches.CSS;
7
+ showProgressOnly?: boolean;
8
+ show?: boolean;
9
+ isAuto?: boolean;
10
+ }
11
+ export default function LoadingBar(props: LoadingBarProps): JSX.Element;
12
+ export {};
@@ -0,0 +1 @@
1
+ export { default as LoadingBar } from './LoadingBar';