@majoo-ui/react 1.61.24 → 1.61.25-rc.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 (133) hide show
  1. package/index.d.ts +1 -5
  2. package/index.esm.js +24546 -26967
  3. package/package.json +4 -4
  4. package/{colors → src/colors}/index.d.ts +1 -1
  5. package/{components → src/components}/accordion/Accordion.d.ts +35 -35
  6. package/{components → src/components}/accordion/index.d.ts +1 -1
  7. package/{components → src/components}/barChart/BarChart.d.ts +82 -82
  8. package/{components → src/components}/barChart/index.d.ts +1 -1
  9. package/{components → src/components}/breadcrumb/index.d.ts +7 -7
  10. package/{components → src/components}/button/index.d.ts +2 -2
  11. package/{components → src/components}/card/index.d.ts +2 -2
  12. package/{components → src/components}/chart/index.d.ts +1 -1
  13. package/{components → src/components}/chart/lineChart/LineChart.d.ts +80 -80
  14. package/{components → src/components}/chart/lineChart/components/Comparator.d.ts +16 -16
  15. package/{components → src/components}/chart/lineChart/components/ComparatorController.d.ts +8 -8
  16. package/{components → src/components}/chart/lineChart/components/ComparatorItem.d.ts +10 -10
  17. package/{components → src/components}/chart/lineChart/components/ProductList.d.ts +10 -10
  18. package/{components → src/components}/chart/lineChart/components/TitleLegend.d.ts +19 -19
  19. package/{components → src/components}/chart/lineChart/components/Tooltip.d.ts +21 -21
  20. package/{components → src/components}/chart/lineChart/index.d.ts +1 -1
  21. package/{components → src/components}/chart/utils/index.d.ts +18 -18
  22. package/{components → src/components}/checkboxTable/CheckboxTable.d.ts +29 -29
  23. package/{components → src/components}/checkboxTable/index.d.ts +1 -1
  24. package/{components → src/components}/checkboxTable/transition.d.ts +11 -11
  25. package/{components → src/components}/contentEditor/ContentEditor.d.ts +44 -44
  26. package/{components → src/components}/contentEditor/index.d.ts +1 -1
  27. package/{components → src/components}/contextMenu/index.d.ts +1 -1
  28. package/{components → src/components}/datePicker/AdvancedOption.d.ts +12 -12
  29. package/{components → src/components}/datePicker/CustomDatePicker.d.ts +63 -63
  30. package/{components → src/components}/datePicker/DatePicker.d.ts +10 -10
  31. package/{components → src/components}/datePicker/DatePickerMulti.d.ts +11 -11
  32. package/{components → src/components}/datePicker/InputDatePicker.d.ts +170 -170
  33. package/{components → src/components}/datePicker/InputDateRangePicker.d.ts +26 -26
  34. package/{components → src/components}/datePicker/components/Calendar.d.ts +32 -32
  35. package/{components → src/components}/datePicker/components/CalendarMulti.d.ts +21 -21
  36. package/{components → src/components}/datePicker/components/CalendarTimePicker.d.ts +11 -11
  37. package/{components → src/components}/datePicker/components/MobileCalendar.d.ts +4 -4
  38. package/{components → src/components}/datePicker/components/index.d.ts +6 -6
  39. package/{components → src/components}/datePicker/index.d.ts +7 -7
  40. package/{components → src/components}/datePicker/state/reducer.d.ts +26 -26
  41. package/{components → src/components}/datePicker/timePicker/index.d.ts +4 -4
  42. package/{components → src/components}/devicePreview/index.d.ts +2 -2
  43. package/{components → src/components}/dialog/index.d.ts +2 -2
  44. package/{components → src/components}/editableTable/Columns.d.ts +59 -59
  45. package/{components → src/components}/editableTable/EditableMobile.d.ts +23 -23
  46. package/{components → src/components}/editableTable/EditableTable.d.ts +432 -432
  47. package/{components → src/components}/editableTable/faker.d.ts +16 -16
  48. package/{components → src/components}/editableTable/index.d.ts +2 -2
  49. package/{components → src/components}/form/components/InputCombobox/InputCombobox.d.ts +43 -43
  50. package/{components → src/components}/form/components/InputCombobox/index.d.ts +1 -1
  51. package/{components → src/components}/form/components/InputCounter/InputCounter.d.ts +58 -58
  52. package/{components → src/components}/form/components/InputCounter/index.d.ts +2 -2
  53. package/{components → src/components}/form/components/InputDateRange/InputDateRange.d.ts +39 -39
  54. package/{components → src/components}/form/components/InputDateRange/index.d.ts +2 -2
  55. package/{components → src/components}/form/components/InputElement/index.d.ts +1 -1
  56. package/{components → src/components}/form/components/InputGroup/index.d.ts +1 -1
  57. package/{components → src/components}/form/components/InputOTP/InputOTP.d.ts +108 -108
  58. package/{components → src/components}/form/components/InputOTP/index.d.ts +2 -2
  59. package/{components → src/components}/form/components/InputResourceList/InputResourceList.d.ts +39 -39
  60. package/{components → src/components}/form/components/InputSelect/index.d.ts +2 -2
  61. package/{components → src/components}/form/components/InputSelectCheck/OptionGroupItem.d.ts +5 -5
  62. package/{components → src/components}/form/components/InputSignature/InputSignature.d.ts +12 -12
  63. package/{components → src/components}/form/components/InputSignature/SignatureModal.d.ts +11 -11
  64. package/{components → src/components}/form/components/InputSignature/index.d.ts +2 -2
  65. package/{components → src/components}/form/components/InputText/index.d.ts +1 -1
  66. package/{components → src/components}/form/components/index.d.ts +27 -27
  67. package/{components → src/components}/form/index.d.ts +1 -1
  68. package/{components → src/components}/heading/index.d.ts +2 -2
  69. package/{components → src/components}/image/index.d.ts +2 -2
  70. package/{components → src/components}/index.d.ts +53 -53
  71. package/{components → src/components}/link/index.d.ts +1 -1
  72. package/{components → src/components}/loadingBar/LoadingBar.d.ts +51 -51
  73. package/{components → src/components}/loadingBar/index.d.ts +1 -1
  74. package/{components → src/components}/mapPicker/InputMapPicker.d.ts +4 -4
  75. package/{components → src/components}/mapPicker/MapPicker.d.ts +17 -17
  76. package/{components → src/components}/mapPicker/index.d.ts +2 -2
  77. package/{components → src/components}/mapPicker/types/index.d.ts +103 -103
  78. package/{components → src/components}/modalDialog/index.d.ts +2 -2
  79. package/{components → src/components}/pageDialog/index.d.ts +1 -1
  80. package/{components → src/components}/paragraph/index.d.ts +2 -2
  81. package/{components → src/components}/pieChart/PieChart.d.ts +100 -100
  82. package/{components → src/components}/pieChart/index.d.ts +1 -1
  83. package/{components → src/components}/progressIndicator/ProgressIndicator.d.ts +17 -17
  84. package/{components → src/components}/progressIndicator/index.d.ts +1 -1
  85. package/{components → src/components}/scrollSync/ScrollSync.d.ts +45 -45
  86. package/{components → src/components}/scrollSync/ScrollSyncNode.d.ts +32 -32
  87. package/{components → src/components}/scrollSync/index.d.ts +2 -2
  88. package/{components → src/components}/scrollSync/utils.d.ts +3 -3
  89. package/{components → src/components}/separator/index.d.ts +2 -2
  90. package/{components → src/components}/skeleton/Skeleton.d.ts +19 -19
  91. package/{components → src/components}/skeleton/index.d.ts +1 -1
  92. package/{components → src/components}/stepWizard/index.d.ts +45 -45
  93. package/{components → src/components}/table/MobileTable.d.ts +39 -39
  94. package/{components → src/components}/table/index.d.ts +3 -3
  95. package/{components → src/components}/tableOfContent/index.d.ts +57 -57
  96. package/{components → src/components}/tagList/TagList.d.ts +21 -21
  97. package/{components → src/components}/tagList/index.d.ts +1 -1
  98. package/{components → src/components}/text/index.d.ts +2 -2
  99. package/{components → src/components}/upload/utils/canvasPreview.d.ts +2 -2
  100. package/{components → src/components}/upload/utils/imgPreview.d.ts +2 -2
  101. package/{foundations → src/foundations}/indices/Indices.d.ts +2 -2
  102. package/{foundations → src/foundations}/radii/Radii.d.ts +2 -2
  103. package/{foundations → src/foundations}/space/Space.d.ts +2 -2
  104. package/{hooks → src/hooks}/index.d.ts +2 -2
  105. package/{hooks → src/hooks}/useListOption/useListOption.d.ts +8 -8
  106. package/{hooks → src/hooks}/useToggle/useToggle.d.ts +1 -1
  107. package/src/index.d.ts +5 -0
  108. package/{layout → src/layout}/box/index.d.ts +1 -1
  109. package/{layout → src/layout}/flex/index.d.ts +2 -2
  110. package/{layout → src/layout}/grid/index.d.ts +2 -2
  111. package/{layout → src/layout}/index.d.ts +4 -4
  112. package/{type → src/type}/base.types.d.ts +11 -11
  113. package/src/type/stitches.types.d.ts +1 -0
  114. package/{utils → src/utils}/request.d.ts +14 -14
  115. package/{utils → src/utils}/useNavigatorOnline.d.ts +2 -2
  116. package/{utils → src/utils}/variant.d.ts +4 -4
  117. package/components/alert-backup/index.backup.d.ts +0 -1
  118. package/components/button/Button.d.ts +0 -163
  119. package/components/card/Card.d.ts +0 -531
  120. package/components/contextMenu/ContextMenu.d.ts +0 -404
  121. package/components/datePicker/components/DateNumber.d.ts +0 -104
  122. package/components/devicePreview/DevicePreview.d.ts +0 -161
  123. package/components/dialog/Dialog.d.ts +0 -402
  124. package/components/form/components/InputCombobox/InputCombobox.backup.d.ts +0 -43
  125. package/components/form/components/InputSelect/InputSelect.d.ts +0 -862
  126. package/components/heading/Heading.d.ts +0 -100
  127. package/components/link/Link.d.ts +0 -109
  128. package/components/modalDialog/ModalDialog.d.ts +0 -836
  129. package/components/pageDialog/PageDialog.d.ts +0 -810
  130. package/components/table/Table.d.ts +0 -1529
  131. package/config/stitches.config.d.ts +0 -645
  132. package/foundations/typography/Typography.d.ts +0 -396
  133. package/type/stitches.types.d.ts +0 -1
@@ -1,836 +0,0 @@
1
- import React from 'react';
2
- import { Dialog } from '../../';
3
- import type { DialogContentProps } from '..';
4
- export declare const ModalDialogFooter: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
5
- sm: "(min-width: 359px)";
6
- md: "(min-width: 767px)";
7
- lg: "(min-width: 1023px)";
8
- xl: "(min-width: 1199px)";
9
- '2xl': "(min-width: 1399px)";
10
- '3xl': "(min-width: 1600px)";
11
- }, import("@stitches/react/types/css-util").CSS<{
12
- sm: "(min-width: 359px)";
13
- md: "(min-width: 767px)";
14
- lg: "(min-width: 1023px)";
15
- xl: "(min-width: 1199px)";
16
- '2xl': "(min-width: 1399px)";
17
- '3xl': "(min-width: 1600px)";
18
- }, {
19
- colors: unknown;
20
- space: unknown;
21
- shadows: unknown;
22
- fontSizes: unknown;
23
- fonts: unknown;
24
- lineHeights: unknown;
25
- letterSpacings: unknown;
26
- radii: unknown;
27
- sizes: unknown;
28
- zIndices: unknown;
29
- toastPosition: unknown;
30
- }, import("@stitches/react/types/config").DefaultThemeMap, {
31
- m: (value: {
32
- readonly [$$ScaleValue]: "space";
33
- }) => {
34
- margin: {
35
- readonly [$$ScaleValue]: "space";
36
- };
37
- };
38
- mt: (value: {
39
- readonly [$$ScaleValue]: "space";
40
- }) => {
41
- marginTop: {
42
- readonly [$$ScaleValue]: "space";
43
- };
44
- };
45
- mr: (value: {
46
- readonly [$$ScaleValue]: "space";
47
- }) => {
48
- marginRight: {
49
- readonly [$$ScaleValue]: "space";
50
- };
51
- };
52
- mb: (value: {
53
- readonly [$$ScaleValue]: "space";
54
- }) => {
55
- marginBottom: {
56
- readonly [$$ScaleValue]: "space";
57
- };
58
- };
59
- ml: (value: {
60
- readonly [$$ScaleValue]: "space";
61
- }) => {
62
- marginLeft: {
63
- readonly [$$ScaleValue]: "space";
64
- };
65
- };
66
- mx: (value: {
67
- readonly [$$ScaleValue]: "space";
68
- }) => {
69
- marginLeft: {
70
- readonly [$$ScaleValue]: "space";
71
- };
72
- marginRight: {
73
- readonly [$$ScaleValue]: "space";
74
- };
75
- };
76
- my: (value: {
77
- readonly [$$ScaleValue]: "space";
78
- }) => {
79
- marginTop: {
80
- readonly [$$ScaleValue]: "space";
81
- }; /** Event handler called when a pointer event occurs outside the bounds of the component. It can be prevented by calling event.preventDefault.*/
82
- marginBottom: {
83
- readonly [$$ScaleValue]: "space";
84
- };
85
- };
86
- size: (value: {
87
- readonly [$$PropertyValue]: "width";
88
- }) => {
89
- width: {
90
- readonly [$$PropertyValue]: "width";
91
- };
92
- height: {
93
- readonly [$$PropertyValue]: "width";
94
- };
95
- };
96
- subtleColor: (value: string) => {
97
- color: string;
98
- backgroundColor: string;
99
- };
100
- }>>;
101
- export declare const ModalDialogTitle: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
102
- sm: "(min-width: 359px)";
103
- md: "(min-width: 767px)";
104
- lg: "(min-width: 1023px)";
105
- xl: "(min-width: 1199px)";
106
- '2xl': "(min-width: 1399px)";
107
- '3xl': "(min-width: 1600px)";
108
- }, import("@stitches/react/types/css-util").CSS<{
109
- sm: "(min-width: 359px)";
110
- md: "(min-width: 767px)";
111
- lg: "(min-width: 1023px)";
112
- xl: "(min-width: 1199px)";
113
- '2xl': "(min-width: 1399px)";
114
- '3xl': "(min-width: 1600px)";
115
- }, {
116
- colors: unknown;
117
- space: unknown;
118
- shadows: unknown;
119
- fontSizes: unknown;
120
- fonts: unknown;
121
- lineHeights: unknown;
122
- letterSpacings: unknown;
123
- radii: unknown;
124
- sizes: unknown;
125
- zIndices: unknown;
126
- toastPosition: unknown;
127
- }, import("@stitches/react/types/config").DefaultThemeMap, {
128
- m: (value: {
129
- readonly [$$ScaleValue]: "space";
130
- }) => {
131
- margin: {
132
- readonly [$$ScaleValue]: "space";
133
- };
134
- };
135
- mt: (value: {
136
- readonly [$$ScaleValue]: "space";
137
- }) => {
138
- marginTop: {
139
- readonly [$$ScaleValue]: "space";
140
- };
141
- };
142
- mr: (value: {
143
- readonly [$$ScaleValue]: "space";
144
- }) => {
145
- marginRight: {
146
- readonly [$$ScaleValue]: "space";
147
- };
148
- };
149
- mb: (value: {
150
- readonly [$$ScaleValue]: "space";
151
- }) => {
152
- marginBottom: {
153
- readonly [$$ScaleValue]: "space";
154
- };
155
- };
156
- ml: (value: {
157
- readonly [$$ScaleValue]: "space";
158
- }) => {
159
- marginLeft: {
160
- readonly [$$ScaleValue]: "space";
161
- };
162
- };
163
- mx: (value: {
164
- readonly [$$ScaleValue]: "space";
165
- }) => {
166
- marginLeft: {
167
- readonly [$$ScaleValue]: "space";
168
- };
169
- marginRight: {
170
- readonly [$$ScaleValue]: "space";
171
- };
172
- };
173
- my: (value: {
174
- readonly [$$ScaleValue]: "space";
175
- }) => {
176
- marginTop: {
177
- readonly [$$ScaleValue]: "space";
178
- }; /** Event handler called when a pointer event occurs outside the bounds of the component. It can be prevented by calling event.preventDefault.*/
179
- marginBottom: {
180
- readonly [$$ScaleValue]: "space";
181
- };
182
- };
183
- size: (value: {
184
- readonly [$$PropertyValue]: "width";
185
- }) => {
186
- width: {
187
- readonly [$$PropertyValue]: "width";
188
- };
189
- height: {
190
- readonly [$$PropertyValue]: "width";
191
- };
192
- };
193
- subtleColor: (value: string) => {
194
- color: string;
195
- backgroundColor: string;
196
- };
197
- }>>;
198
- export declare const ModalDialogContent: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
199
- sm: "(min-width: 359px)";
200
- md: "(min-width: 767px)";
201
- lg: "(min-width: 1023px)";
202
- xl: "(min-width: 1199px)";
203
- '2xl': "(min-width: 1399px)";
204
- '3xl': "(min-width: 1600px)";
205
- }, import("@stitches/react/types/css-util").CSS<{
206
- sm: "(min-width: 359px)";
207
- md: "(min-width: 767px)";
208
- lg: "(min-width: 1023px)";
209
- xl: "(min-width: 1199px)";
210
- '2xl': "(min-width: 1399px)";
211
- '3xl': "(min-width: 1600px)";
212
- }, {
213
- colors: unknown;
214
- space: unknown;
215
- shadows: unknown;
216
- fontSizes: unknown;
217
- fonts: unknown;
218
- lineHeights: unknown;
219
- letterSpacings: unknown;
220
- radii: unknown;
221
- sizes: unknown;
222
- zIndices: unknown;
223
- toastPosition: unknown;
224
- }, import("@stitches/react/types/config").DefaultThemeMap, {
225
- m: (value: {
226
- readonly [$$ScaleValue]: "space";
227
- }) => {
228
- margin: {
229
- readonly [$$ScaleValue]: "space";
230
- };
231
- };
232
- mt: (value: {
233
- readonly [$$ScaleValue]: "space";
234
- }) => {
235
- marginTop: {
236
- readonly [$$ScaleValue]: "space";
237
- };
238
- };
239
- mr: (value: {
240
- readonly [$$ScaleValue]: "space";
241
- }) => {
242
- marginRight: {
243
- readonly [$$ScaleValue]: "space";
244
- };
245
- };
246
- mb: (value: {
247
- readonly [$$ScaleValue]: "space";
248
- }) => {
249
- marginBottom: {
250
- readonly [$$ScaleValue]: "space";
251
- };
252
- };
253
- ml: (value: {
254
- readonly [$$ScaleValue]: "space";
255
- }) => {
256
- marginLeft: {
257
- readonly [$$ScaleValue]: "space";
258
- };
259
- };
260
- mx: (value: {
261
- readonly [$$ScaleValue]: "space";
262
- }) => {
263
- marginLeft: {
264
- readonly [$$ScaleValue]: "space";
265
- };
266
- marginRight: {
267
- readonly [$$ScaleValue]: "space";
268
- };
269
- };
270
- my: (value: {
271
- readonly [$$ScaleValue]: "space";
272
- }) => {
273
- marginTop: {
274
- readonly [$$ScaleValue]: "space";
275
- }; /** Event handler called when a pointer event occurs outside the bounds of the component. It can be prevented by calling event.preventDefault.*/
276
- marginBottom: {
277
- readonly [$$ScaleValue]: "space";
278
- };
279
- };
280
- size: (value: {
281
- readonly [$$PropertyValue]: "width";
282
- }) => {
283
- width: {
284
- readonly [$$PropertyValue]: "width";
285
- };
286
- height: {
287
- readonly [$$PropertyValue]: "width";
288
- };
289
- };
290
- subtleColor: (value: string) => {
291
- color: string;
292
- backgroundColor: string;
293
- };
294
- }>>;
295
- export declare const ModalDialogTrigger: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
296
- sm: "(min-width: 359px)";
297
- md: "(min-width: 767px)";
298
- lg: "(min-width: 1023px)";
299
- xl: "(min-width: 1199px)";
300
- '2xl': "(min-width: 1399px)";
301
- '3xl': "(min-width: 1600px)";
302
- }, import("@stitches/react/types/css-util").CSS<{
303
- sm: "(min-width: 359px)";
304
- md: "(min-width: 767px)";
305
- lg: "(min-width: 1023px)";
306
- xl: "(min-width: 1199px)";
307
- '2xl': "(min-width: 1399px)";
308
- '3xl': "(min-width: 1600px)";
309
- }, {
310
- colors: unknown;
311
- space: unknown;
312
- shadows: unknown;
313
- fontSizes: unknown;
314
- fonts: unknown;
315
- lineHeights: unknown;
316
- letterSpacings: unknown;
317
- radii: unknown;
318
- sizes: unknown;
319
- zIndices: unknown;
320
- toastPosition: unknown;
321
- }, import("@stitches/react/types/config").DefaultThemeMap, {
322
- m: (value: {
323
- readonly [$$ScaleValue]: "space";
324
- }) => {
325
- margin: {
326
- readonly [$$ScaleValue]: "space";
327
- };
328
- };
329
- mt: (value: {
330
- readonly [$$ScaleValue]: "space";
331
- }) => {
332
- marginTop: {
333
- readonly [$$ScaleValue]: "space";
334
- };
335
- };
336
- mr: (value: {
337
- readonly [$$ScaleValue]: "space";
338
- }) => {
339
- marginRight: {
340
- readonly [$$ScaleValue]: "space";
341
- };
342
- };
343
- mb: (value: {
344
- readonly [$$ScaleValue]: "space";
345
- }) => {
346
- marginBottom: {
347
- readonly [$$ScaleValue]: "space";
348
- };
349
- };
350
- ml: (value: {
351
- readonly [$$ScaleValue]: "space";
352
- }) => {
353
- marginLeft: {
354
- readonly [$$ScaleValue]: "space";
355
- };
356
- };
357
- mx: (value: {
358
- readonly [$$ScaleValue]: "space";
359
- }) => {
360
- marginLeft: {
361
- readonly [$$ScaleValue]: "space";
362
- };
363
- marginRight: {
364
- readonly [$$ScaleValue]: "space";
365
- };
366
- };
367
- my: (value: {
368
- readonly [$$ScaleValue]: "space";
369
- }) => {
370
- marginTop: {
371
- readonly [$$ScaleValue]: "space";
372
- }; /** Event handler called when a pointer event occurs outside the bounds of the component. It can be prevented by calling event.preventDefault.*/
373
- marginBottom: {
374
- readonly [$$ScaleValue]: "space";
375
- };
376
- };
377
- size: (value: {
378
- readonly [$$PropertyValue]: "width";
379
- }) => {
380
- width: {
381
- readonly [$$PropertyValue]: "width";
382
- };
383
- height: {
384
- readonly [$$PropertyValue]: "width";
385
- };
386
- };
387
- subtleColor: (value: string) => {
388
- color: string;
389
- backgroundColor: string;
390
- };
391
- }>>;
392
- declare type IDialog = React.ComponentProps<typeof Dialog>;
393
- interface ModalDialogProps extends Omit<IDialog, 'children'>, DialogContentProps {
394
- /** set PageDialog zIndex, default is set to 1400 */
395
- layer?: number | string;
396
- /** Force to mobile view or desktop view, if undefined ModalDialog will be responsive according to current screen size */
397
- isMobile?: boolean | undefined;
398
- /**
399
- * @deprecated Use size or css props css={{width: width css property}} instead. This will be deleted in the future to limit unnecessary props.
400
- */
401
- width?: string | number;
402
- /** Set default behavior when opening dialog with form. Usually used with prevent default*/
403
- onOpenAutoFocus?: (event: Event) => void;
404
- /** Event handler called when a pointer event occurs outside the bounds of the component. It can be prevented by calling event.preventDefault.*/
405
- onPointerDownOutside?: (event: Event) => void;
406
- /**
407
- * If true, the close icon button is hidden
408
- */
409
- hideCloseButton?: boolean;
410
- /**
411
- * If true, the close icon button is disabled
412
- */
413
- disabledCloseButton?: boolean;
414
- /**
415
- * On dialog close click function
416
- */
417
- onCloseClick?: () => void;
418
- /**
419
- * Theme configuration for the component
420
- */
421
- theme?: string;
422
- }
423
- /**
424
- * ModalDialog are used to focus and display content that contains one specific task that requires interaction from the user and is separate from the main page.
425
- * https://react-majoo-ui.mangkujagat.com/?path=/story/core-components-pagedialog--default
426
- * @param size - default fullsize
427
- * @param layer - z-index default 1400
428
- * @param isMobile - force mobile/desktop view, default is responsive
429
- * @param onOpenAutoFocus - set default open behaviour
430
- *
431
- * @example
432
- * // Uncontrolled Example
433
- * <ModalDialog>
434
- * <ModalDialogTrigger>Button Trigger</ModalDialogTrigger>
435
- * <ModalDialogTitle>Title</ModalDialogTitle>
436
- * <ModalDialogContent>Content</ModalDialogContent>
437
- * <ModalDialogFooter>Footer</ModalDialogFooter>
438
- * </ModalDialog>
439
- * @component
440
- */
441
- declare const ModalDialog: {
442
- (props: ModalDialogProps): JSX.Element;
443
- Trigger: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
444
- sm: "(min-width: 359px)";
445
- md: "(min-width: 767px)";
446
- lg: "(min-width: 1023px)";
447
- xl: "(min-width: 1199px)";
448
- '2xl': "(min-width: 1399px)";
449
- '3xl': "(min-width: 1600px)";
450
- }, import("@stitches/react/types/css-util").CSS<{
451
- sm: "(min-width: 359px)";
452
- md: "(min-width: 767px)";
453
- lg: "(min-width: 1023px)";
454
- xl: "(min-width: 1199px)";
455
- '2xl': "(min-width: 1399px)";
456
- '3xl': "(min-width: 1600px)";
457
- }, {
458
- colors: unknown;
459
- space: unknown;
460
- shadows: unknown;
461
- fontSizes: unknown;
462
- fonts: unknown;
463
- lineHeights: unknown;
464
- letterSpacings: unknown;
465
- radii: unknown;
466
- sizes: unknown;
467
- zIndices: unknown;
468
- toastPosition: unknown;
469
- }, import("@stitches/react/types/config").DefaultThemeMap, {
470
- m: (value: {
471
- readonly [$$ScaleValue]: "space";
472
- }) => {
473
- margin: {
474
- readonly [$$ScaleValue]: "space";
475
- };
476
- };
477
- mt: (value: {
478
- readonly [$$ScaleValue]: "space";
479
- }) => {
480
- marginTop: {
481
- readonly [$$ScaleValue]: "space";
482
- };
483
- };
484
- mr: (value: {
485
- readonly [$$ScaleValue]: "space";
486
- }) => {
487
- marginRight: {
488
- readonly [$$ScaleValue]: "space";
489
- };
490
- };
491
- mb: (value: {
492
- readonly [$$ScaleValue]: "space";
493
- }) => {
494
- marginBottom: {
495
- readonly [$$ScaleValue]: "space";
496
- };
497
- };
498
- ml: (value: {
499
- readonly [$$ScaleValue]: "space";
500
- }) => {
501
- marginLeft: {
502
- readonly [$$ScaleValue]: "space";
503
- };
504
- };
505
- mx: (value: {
506
- readonly [$$ScaleValue]: "space";
507
- }) => {
508
- marginLeft: {
509
- readonly [$$ScaleValue]: "space";
510
- };
511
- marginRight: {
512
- readonly [$$ScaleValue]: "space";
513
- };
514
- };
515
- my: (value: {
516
- readonly [$$ScaleValue]: "space";
517
- }) => {
518
- marginTop: {
519
- readonly [$$ScaleValue]: "space";
520
- }; /** Event handler called when a pointer event occurs outside the bounds of the component. It can be prevented by calling event.preventDefault.*/
521
- marginBottom: {
522
- readonly [$$ScaleValue]: "space";
523
- };
524
- };
525
- size: (value: {
526
- readonly [$$PropertyValue]: "width";
527
- }) => {
528
- width: {
529
- readonly [$$PropertyValue]: "width";
530
- };
531
- height: {
532
- readonly [$$PropertyValue]: "width";
533
- };
534
- };
535
- subtleColor: (value: string) => {
536
- color: string;
537
- backgroundColor: string;
538
- };
539
- }>>;
540
- Title: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
541
- sm: "(min-width: 359px)";
542
- md: "(min-width: 767px)";
543
- lg: "(min-width: 1023px)";
544
- xl: "(min-width: 1199px)";
545
- '2xl': "(min-width: 1399px)";
546
- '3xl': "(min-width: 1600px)";
547
- }, import("@stitches/react/types/css-util").CSS<{
548
- sm: "(min-width: 359px)";
549
- md: "(min-width: 767px)";
550
- lg: "(min-width: 1023px)";
551
- xl: "(min-width: 1199px)";
552
- '2xl': "(min-width: 1399px)";
553
- '3xl': "(min-width: 1600px)";
554
- }, {
555
- colors: unknown;
556
- space: unknown;
557
- shadows: unknown;
558
- fontSizes: unknown;
559
- fonts: unknown;
560
- lineHeights: unknown;
561
- letterSpacings: unknown;
562
- radii: unknown;
563
- sizes: unknown;
564
- zIndices: unknown;
565
- toastPosition: unknown;
566
- }, import("@stitches/react/types/config").DefaultThemeMap, {
567
- m: (value: {
568
- readonly [$$ScaleValue]: "space";
569
- }) => {
570
- margin: {
571
- readonly [$$ScaleValue]: "space";
572
- };
573
- };
574
- mt: (value: {
575
- readonly [$$ScaleValue]: "space";
576
- }) => {
577
- marginTop: {
578
- readonly [$$ScaleValue]: "space";
579
- };
580
- };
581
- mr: (value: {
582
- readonly [$$ScaleValue]: "space";
583
- }) => {
584
- marginRight: {
585
- readonly [$$ScaleValue]: "space";
586
- };
587
- };
588
- mb: (value: {
589
- readonly [$$ScaleValue]: "space";
590
- }) => {
591
- marginBottom: {
592
- readonly [$$ScaleValue]: "space";
593
- };
594
- };
595
- ml: (value: {
596
- readonly [$$ScaleValue]: "space";
597
- }) => {
598
- marginLeft: {
599
- readonly [$$ScaleValue]: "space";
600
- };
601
- };
602
- mx: (value: {
603
- readonly [$$ScaleValue]: "space";
604
- }) => {
605
- marginLeft: {
606
- readonly [$$ScaleValue]: "space";
607
- };
608
- marginRight: {
609
- readonly [$$ScaleValue]: "space";
610
- };
611
- };
612
- my: (value: {
613
- readonly [$$ScaleValue]: "space";
614
- }) => {
615
- marginTop: {
616
- readonly [$$ScaleValue]: "space";
617
- }; /** Event handler called when a pointer event occurs outside the bounds of the component. It can be prevented by calling event.preventDefault.*/
618
- marginBottom: {
619
- readonly [$$ScaleValue]: "space";
620
- };
621
- };
622
- size: (value: {
623
- readonly [$$PropertyValue]: "width";
624
- }) => {
625
- width: {
626
- readonly [$$PropertyValue]: "width";
627
- };
628
- height: {
629
- readonly [$$PropertyValue]: "width";
630
- };
631
- };
632
- subtleColor: (value: string) => {
633
- color: string;
634
- backgroundColor: string;
635
- };
636
- }>>;
637
- Content: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
638
- sm: "(min-width: 359px)";
639
- md: "(min-width: 767px)";
640
- lg: "(min-width: 1023px)";
641
- xl: "(min-width: 1199px)";
642
- '2xl': "(min-width: 1399px)";
643
- '3xl': "(min-width: 1600px)";
644
- }, import("@stitches/react/types/css-util").CSS<{
645
- sm: "(min-width: 359px)";
646
- md: "(min-width: 767px)";
647
- lg: "(min-width: 1023px)";
648
- xl: "(min-width: 1199px)";
649
- '2xl': "(min-width: 1399px)";
650
- '3xl': "(min-width: 1600px)";
651
- }, {
652
- colors: unknown;
653
- space: unknown;
654
- shadows: unknown;
655
- fontSizes: unknown;
656
- fonts: unknown;
657
- lineHeights: unknown;
658
- letterSpacings: unknown;
659
- radii: unknown;
660
- sizes: unknown;
661
- zIndices: unknown;
662
- toastPosition: unknown;
663
- }, import("@stitches/react/types/config").DefaultThemeMap, {
664
- m: (value: {
665
- readonly [$$ScaleValue]: "space";
666
- }) => {
667
- margin: {
668
- readonly [$$ScaleValue]: "space";
669
- };
670
- };
671
- mt: (value: {
672
- readonly [$$ScaleValue]: "space";
673
- }) => {
674
- marginTop: {
675
- readonly [$$ScaleValue]: "space";
676
- };
677
- };
678
- mr: (value: {
679
- readonly [$$ScaleValue]: "space";
680
- }) => {
681
- marginRight: {
682
- readonly [$$ScaleValue]: "space";
683
- };
684
- };
685
- mb: (value: {
686
- readonly [$$ScaleValue]: "space";
687
- }) => {
688
- marginBottom: {
689
- readonly [$$ScaleValue]: "space";
690
- };
691
- };
692
- ml: (value: {
693
- readonly [$$ScaleValue]: "space";
694
- }) => {
695
- marginLeft: {
696
- readonly [$$ScaleValue]: "space";
697
- };
698
- };
699
- mx: (value: {
700
- readonly [$$ScaleValue]: "space";
701
- }) => {
702
- marginLeft: {
703
- readonly [$$ScaleValue]: "space";
704
- };
705
- marginRight: {
706
- readonly [$$ScaleValue]: "space";
707
- };
708
- };
709
- my: (value: {
710
- readonly [$$ScaleValue]: "space";
711
- }) => {
712
- marginTop: {
713
- readonly [$$ScaleValue]: "space";
714
- }; /** Event handler called when a pointer event occurs outside the bounds of the component. It can be prevented by calling event.preventDefault.*/
715
- marginBottom: {
716
- readonly [$$ScaleValue]: "space";
717
- };
718
- };
719
- size: (value: {
720
- readonly [$$PropertyValue]: "width";
721
- }) => {
722
- width: {
723
- readonly [$$PropertyValue]: "width";
724
- };
725
- height: {
726
- readonly [$$PropertyValue]: "width";
727
- };
728
- };
729
- subtleColor: (value: string) => {
730
- color: string;
731
- backgroundColor: string;
732
- };
733
- }>>;
734
- Footer: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
735
- sm: "(min-width: 359px)";
736
- md: "(min-width: 767px)";
737
- lg: "(min-width: 1023px)";
738
- xl: "(min-width: 1199px)";
739
- '2xl': "(min-width: 1399px)";
740
- '3xl': "(min-width: 1600px)";
741
- }, import("@stitches/react/types/css-util").CSS<{
742
- sm: "(min-width: 359px)";
743
- md: "(min-width: 767px)";
744
- lg: "(min-width: 1023px)";
745
- xl: "(min-width: 1199px)";
746
- '2xl': "(min-width: 1399px)";
747
- '3xl': "(min-width: 1600px)";
748
- }, {
749
- colors: unknown;
750
- space: unknown;
751
- shadows: unknown;
752
- fontSizes: unknown;
753
- fonts: unknown;
754
- lineHeights: unknown;
755
- letterSpacings: unknown;
756
- radii: unknown;
757
- sizes: unknown;
758
- zIndices: unknown;
759
- toastPosition: unknown;
760
- }, import("@stitches/react/types/config").DefaultThemeMap, {
761
- m: (value: {
762
- readonly [$$ScaleValue]: "space";
763
- }) => {
764
- margin: {
765
- readonly [$$ScaleValue]: "space";
766
- };
767
- };
768
- mt: (value: {
769
- readonly [$$ScaleValue]: "space";
770
- }) => {
771
- marginTop: {
772
- readonly [$$ScaleValue]: "space";
773
- };
774
- };
775
- mr: (value: {
776
- readonly [$$ScaleValue]: "space";
777
- }) => {
778
- marginRight: {
779
- readonly [$$ScaleValue]: "space";
780
- };
781
- };
782
- mb: (value: {
783
- readonly [$$ScaleValue]: "space";
784
- }) => {
785
- marginBottom: {
786
- readonly [$$ScaleValue]: "space";
787
- };
788
- };
789
- ml: (value: {
790
- readonly [$$ScaleValue]: "space";
791
- }) => {
792
- marginLeft: {
793
- readonly [$$ScaleValue]: "space";
794
- };
795
- };
796
- mx: (value: {
797
- readonly [$$ScaleValue]: "space";
798
- }) => {
799
- marginLeft: {
800
- readonly [$$ScaleValue]: "space";
801
- };
802
- marginRight: {
803
- readonly [$$ScaleValue]: "space";
804
- };
805
- };
806
- my: (value: {
807
- readonly [$$ScaleValue]: "space";
808
- }) => {
809
- marginTop: {
810
- readonly [$$ScaleValue]: "space";
811
- }; /** Event handler called when a pointer event occurs outside the bounds of the component. It can be prevented by calling event.preventDefault.*/
812
- marginBottom: {
813
- readonly [$$ScaleValue]: "space";
814
- };
815
- };
816
- size: (value: {
817
- readonly [$$PropertyValue]: "width";
818
- }) => {
819
- width: {
820
- readonly [$$PropertyValue]: "width";
821
- };
822
- height: {
823
- readonly [$$PropertyValue]: "width";
824
- };
825
- };
826
- subtleColor: (value: string) => {
827
- color: string;
828
- backgroundColor: string;
829
- };
830
- }>>;
831
- defaultProps: {
832
- size: string;
833
- layer: string;
834
- };
835
- };
836
- export default ModalDialog;