@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
@@ -1,8 +1,18 @@
1
1
  import React from 'react';
2
2
  import { Column } from 'react-table';
3
3
  interface EditableTableProps<Data extends object> {
4
+ /**
5
+ * Columns of table.
6
+ */
4
7
  columns: ReadonlyArray<Column<Data>>;
8
+ /**
9
+ * Data record array to be displayed.
10
+ */
5
11
  data: Data[];
12
+ /**
13
+ * Displayed message if data does not exist.
14
+ */
15
+ emptyDataMessage?: string;
6
16
  }
7
17
  interface RemoveProps {
8
18
  position?: 'leftBottom' | 'rightBottom' | 'leftTop' | 'rightTop';
@@ -15,7 +25,203 @@ declare namespace EditableTable {
15
25
  label: any;
16
26
  variants: any;
17
27
  }) => JSX.Element;
18
- var Input: any;
28
+ var Input: import("@stitches/react/types/styled-component").StyledComponent<import("@stitches/react/types/styled-component").StyledComponent<"input", {
29
+ readOnly?: boolean | "true" | undefined;
30
+ inputGroup?: boolean | "true" | undefined;
31
+ size?: "sm" | "lg" | undefined;
32
+ isInvalid?: boolean | "true" | undefined;
33
+ isPicker?: boolean | "true" | undefined;
34
+ }, {
35
+ sm: "(min-width: 359px)";
36
+ md: "(min-width: 767px)";
37
+ lg: "(min-width: 1023px)";
38
+ xl: "(min-width: 1199px)";
39
+ '2xl': "(min-width: 1399px)";
40
+ '3xl': "(min-width: 1600px)";
41
+ }, import("@stitches/react/types/css-util").CSS<{
42
+ sm: "(min-width: 359px)";
43
+ md: "(min-width: 767px)";
44
+ lg: "(min-width: 1023px)";
45
+ xl: "(min-width: 1199px)";
46
+ '2xl': "(min-width: 1399px)";
47
+ '3xl': "(min-width: 1600px)";
48
+ }, {
49
+ colors: unknown;
50
+ space: unknown;
51
+ shadows: unknown;
52
+ fontSizes: unknown;
53
+ fonts: unknown;
54
+ lineHeights: unknown;
55
+ letterSpacings: unknown;
56
+ radii: unknown;
57
+ sizes: unknown;
58
+ zIndices: unknown;
59
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
60
+ m: (value: {
61
+ readonly [$$ScaleValue]: "space";
62
+ }) => {
63
+ margin: {
64
+ readonly [$$ScaleValue]: "space";
65
+ };
66
+ };
67
+ mt: (value: {
68
+ readonly [$$ScaleValue]: "space";
69
+ }) => {
70
+ marginTop: {
71
+ readonly [$$ScaleValue]: "space";
72
+ };
73
+ };
74
+ mr: (value: {
75
+ readonly [$$ScaleValue]: "space";
76
+ }) => {
77
+ marginRight: {
78
+ readonly [$$ScaleValue]: "space";
79
+ };
80
+ };
81
+ mb: (value: {
82
+ readonly [$$ScaleValue]: "space";
83
+ }) => {
84
+ marginBottom: {
85
+ readonly [$$ScaleValue]: "space";
86
+ };
87
+ };
88
+ ml: (value: {
89
+ readonly [$$ScaleValue]: "space";
90
+ }) => {
91
+ marginLeft: {
92
+ readonly [$$ScaleValue]: "space";
93
+ };
94
+ };
95
+ mx: (value: {
96
+ readonly [$$ScaleValue]: "space";
97
+ }) => {
98
+ marginLeft: {
99
+ readonly [$$ScaleValue]: "space";
100
+ };
101
+ marginRight: {
102
+ readonly [$$ScaleValue]: "space";
103
+ };
104
+ };
105
+ my: (value: {
106
+ readonly [$$ScaleValue]: "space";
107
+ }) => {
108
+ marginTop: {
109
+ readonly [$$ScaleValue]: "space";
110
+ };
111
+ marginBottom: {
112
+ readonly [$$ScaleValue]: "space";
113
+ };
114
+ };
115
+ size: (value: {
116
+ readonly [$$PropertyValue]: "width";
117
+ }) => {
118
+ width: {
119
+ readonly [$$PropertyValue]: "width";
120
+ };
121
+ height: {
122
+ readonly [$$PropertyValue]: "width";
123
+ };
124
+ };
125
+ subtleColor: (value: string) => {
126
+ color: string;
127
+ backgroundColor: string;
128
+ };
129
+ }>>, {}, {
130
+ sm: "(min-width: 359px)";
131
+ md: "(min-width: 767px)";
132
+ lg: "(min-width: 1023px)";
133
+ xl: "(min-width: 1199px)";
134
+ '2xl': "(min-width: 1399px)";
135
+ '3xl': "(min-width: 1600px)";
136
+ }, import("@stitches/react/types/css-util").CSS<{
137
+ sm: "(min-width: 359px)";
138
+ md: "(min-width: 767px)";
139
+ lg: "(min-width: 1023px)";
140
+ xl: "(min-width: 1199px)";
141
+ '2xl': "(min-width: 1399px)";
142
+ '3xl': "(min-width: 1600px)";
143
+ }, {
144
+ colors: unknown;
145
+ space: unknown;
146
+ shadows: unknown;
147
+ fontSizes: unknown;
148
+ fonts: unknown;
149
+ lineHeights: unknown;
150
+ letterSpacings: unknown;
151
+ radii: unknown;
152
+ sizes: unknown;
153
+ zIndices: unknown;
154
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
155
+ m: (value: {
156
+ readonly [$$ScaleValue]: "space";
157
+ }) => {
158
+ margin: {
159
+ readonly [$$ScaleValue]: "space";
160
+ };
161
+ };
162
+ mt: (value: {
163
+ readonly [$$ScaleValue]: "space";
164
+ }) => {
165
+ marginTop: {
166
+ readonly [$$ScaleValue]: "space";
167
+ };
168
+ };
169
+ mr: (value: {
170
+ readonly [$$ScaleValue]: "space";
171
+ }) => {
172
+ marginRight: {
173
+ readonly [$$ScaleValue]: "space";
174
+ };
175
+ };
176
+ mb: (value: {
177
+ readonly [$$ScaleValue]: "space";
178
+ }) => {
179
+ marginBottom: {
180
+ readonly [$$ScaleValue]: "space";
181
+ };
182
+ };
183
+ ml: (value: {
184
+ readonly [$$ScaleValue]: "space";
185
+ }) => {
186
+ marginLeft: {
187
+ readonly [$$ScaleValue]: "space";
188
+ };
189
+ };
190
+ mx: (value: {
191
+ readonly [$$ScaleValue]: "space";
192
+ }) => {
193
+ marginLeft: {
194
+ readonly [$$ScaleValue]: "space";
195
+ };
196
+ marginRight: {
197
+ readonly [$$ScaleValue]: "space";
198
+ };
199
+ };
200
+ my: (value: {
201
+ readonly [$$ScaleValue]: "space";
202
+ }) => {
203
+ marginTop: {
204
+ readonly [$$ScaleValue]: "space";
205
+ };
206
+ marginBottom: {
207
+ readonly [$$ScaleValue]: "space";
208
+ };
209
+ };
210
+ size: (value: {
211
+ readonly [$$PropertyValue]: "width";
212
+ }) => {
213
+ width: {
214
+ readonly [$$PropertyValue]: "width";
215
+ };
216
+ height: {
217
+ readonly [$$PropertyValue]: "width";
218
+ };
219
+ };
220
+ subtleColor: (value: string) => {
221
+ color: string;
222
+ backgroundColor: string;
223
+ };
224
+ }>>;
19
225
  var Switch: (props: any) => JSX.Element;
20
226
  var Remove: (props: RemoveProps) => JSX.Element;
21
227
  }
@@ -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';
@@ -39,3 +39,4 @@ export * from './stepWizard';
39
39
  export * from './tableOfContent';
40
40
  export * from './editableTable';
41
41
  export * from './loadingBar';
42
+ export * from './progressIndicator';