@majoo-ui/react 1.61.23 → 1.61.25-rc.1

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 +24337 -26780
  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 -163
  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 -852
  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,852 +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
- };
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
- * If true, the close icon button is hidden
99
- */
100
- backgroundColor: string;
101
- };
102
- }>>;
103
- export declare const ModalDialogTitle: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
104
- sm: "(min-width: 359px)";
105
- md: "(min-width: 767px)";
106
- lg: "(min-width: 1023px)";
107
- xl: "(min-width: 1199px)";
108
- '2xl': "(min-width: 1399px)";
109
- '3xl': "(min-width: 1600px)";
110
- }, import("@stitches/react/types/css-util").CSS<{
111
- sm: "(min-width: 359px)";
112
- md: "(min-width: 767px)";
113
- lg: "(min-width: 1023px)";
114
- xl: "(min-width: 1199px)";
115
- '2xl': "(min-width: 1399px)";
116
- '3xl': "(min-width: 1600px)";
117
- }, {
118
- colors: unknown;
119
- space: unknown;
120
- shadows: unknown;
121
- fontSizes: unknown;
122
- fonts: unknown;
123
- lineHeights: unknown;
124
- letterSpacings: unknown;
125
- radii: unknown;
126
- sizes: unknown;
127
- zIndices: unknown;
128
- toastPosition: unknown;
129
- }, import("@stitches/react/types/config").DefaultThemeMap, {
130
- m: (value: {
131
- readonly [$$ScaleValue]: "space";
132
- }) => {
133
- margin: {
134
- readonly [$$ScaleValue]: "space";
135
- };
136
- };
137
- mt: (value: {
138
- readonly [$$ScaleValue]: "space";
139
- }) => {
140
- marginTop: {
141
- readonly [$$ScaleValue]: "space";
142
- };
143
- };
144
- mr: (value: {
145
- readonly [$$ScaleValue]: "space";
146
- }) => {
147
- marginRight: {
148
- readonly [$$ScaleValue]: "space";
149
- };
150
- };
151
- mb: (value: {
152
- readonly [$$ScaleValue]: "space";
153
- }) => {
154
- marginBottom: {
155
- readonly [$$ScaleValue]: "space";
156
- };
157
- };
158
- ml: (value: {
159
- readonly [$$ScaleValue]: "space";
160
- }) => {
161
- marginLeft: {
162
- readonly [$$ScaleValue]: "space";
163
- };
164
- };
165
- mx: (value: {
166
- readonly [$$ScaleValue]: "space";
167
- }) => {
168
- marginLeft: {
169
- readonly [$$ScaleValue]: "space";
170
- };
171
- marginRight: {
172
- readonly [$$ScaleValue]: "space";
173
- };
174
- };
175
- my: (value: {
176
- readonly [$$ScaleValue]: "space";
177
- }) => {
178
- marginTop: {
179
- readonly [$$ScaleValue]: "space";
180
- };
181
- marginBottom: {
182
- readonly [$$ScaleValue]: "space";
183
- };
184
- };
185
- size: (value: {
186
- readonly [$$PropertyValue]: "width";
187
- }) => {
188
- width: {
189
- readonly [$$PropertyValue]: "width";
190
- };
191
- height: {
192
- readonly [$$PropertyValue]: "width";
193
- };
194
- };
195
- subtleColor: (value: string) => {
196
- color: string; /**
197
- * If true, the close icon button is hidden
198
- */
199
- backgroundColor: string;
200
- };
201
- }>>;
202
- export declare const ModalDialogContent: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
203
- sm: "(min-width: 359px)";
204
- md: "(min-width: 767px)";
205
- lg: "(min-width: 1023px)";
206
- xl: "(min-width: 1199px)";
207
- '2xl': "(min-width: 1399px)";
208
- '3xl': "(min-width: 1600px)";
209
- }, import("@stitches/react/types/css-util").CSS<{
210
- sm: "(min-width: 359px)";
211
- md: "(min-width: 767px)";
212
- lg: "(min-width: 1023px)";
213
- xl: "(min-width: 1199px)";
214
- '2xl': "(min-width: 1399px)";
215
- '3xl': "(min-width: 1600px)";
216
- }, {
217
- colors: unknown;
218
- space: unknown;
219
- shadows: unknown;
220
- fontSizes: unknown;
221
- fonts: unknown;
222
- lineHeights: unknown;
223
- letterSpacings: unknown;
224
- radii: unknown;
225
- sizes: unknown;
226
- zIndices: unknown;
227
- toastPosition: unknown;
228
- }, import("@stitches/react/types/config").DefaultThemeMap, {
229
- m: (value: {
230
- readonly [$$ScaleValue]: "space";
231
- }) => {
232
- margin: {
233
- readonly [$$ScaleValue]: "space";
234
- };
235
- };
236
- mt: (value: {
237
- readonly [$$ScaleValue]: "space";
238
- }) => {
239
- marginTop: {
240
- readonly [$$ScaleValue]: "space";
241
- };
242
- };
243
- mr: (value: {
244
- readonly [$$ScaleValue]: "space";
245
- }) => {
246
- marginRight: {
247
- readonly [$$ScaleValue]: "space";
248
- };
249
- };
250
- mb: (value: {
251
- readonly [$$ScaleValue]: "space";
252
- }) => {
253
- marginBottom: {
254
- readonly [$$ScaleValue]: "space";
255
- };
256
- };
257
- ml: (value: {
258
- readonly [$$ScaleValue]: "space";
259
- }) => {
260
- marginLeft: {
261
- readonly [$$ScaleValue]: "space";
262
- };
263
- };
264
- mx: (value: {
265
- readonly [$$ScaleValue]: "space";
266
- }) => {
267
- marginLeft: {
268
- readonly [$$ScaleValue]: "space";
269
- };
270
- marginRight: {
271
- readonly [$$ScaleValue]: "space";
272
- };
273
- };
274
- my: (value: {
275
- readonly [$$ScaleValue]: "space";
276
- }) => {
277
- marginTop: {
278
- readonly [$$ScaleValue]: "space";
279
- };
280
- marginBottom: {
281
- readonly [$$ScaleValue]: "space";
282
- };
283
- };
284
- size: (value: {
285
- readonly [$$PropertyValue]: "width";
286
- }) => {
287
- width: {
288
- readonly [$$PropertyValue]: "width";
289
- };
290
- height: {
291
- readonly [$$PropertyValue]: "width";
292
- };
293
- };
294
- subtleColor: (value: string) => {
295
- color: string; /**
296
- * If true, the close icon button is hidden
297
- */
298
- backgroundColor: string;
299
- };
300
- }>>;
301
- export declare const ModalDialogTrigger: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
302
- sm: "(min-width: 359px)";
303
- md: "(min-width: 767px)";
304
- lg: "(min-width: 1023px)";
305
- xl: "(min-width: 1199px)";
306
- '2xl': "(min-width: 1399px)";
307
- '3xl': "(min-width: 1600px)";
308
- }, import("@stitches/react/types/css-util").CSS<{
309
- sm: "(min-width: 359px)";
310
- md: "(min-width: 767px)";
311
- lg: "(min-width: 1023px)";
312
- xl: "(min-width: 1199px)";
313
- '2xl': "(min-width: 1399px)";
314
- '3xl': "(min-width: 1600px)";
315
- }, {
316
- colors: unknown;
317
- space: unknown;
318
- shadows: unknown;
319
- fontSizes: unknown;
320
- fonts: unknown;
321
- lineHeights: unknown;
322
- letterSpacings: unknown;
323
- radii: unknown;
324
- sizes: unknown;
325
- zIndices: unknown;
326
- toastPosition: unknown;
327
- }, import("@stitches/react/types/config").DefaultThemeMap, {
328
- m: (value: {
329
- readonly [$$ScaleValue]: "space";
330
- }) => {
331
- margin: {
332
- readonly [$$ScaleValue]: "space";
333
- };
334
- };
335
- mt: (value: {
336
- readonly [$$ScaleValue]: "space";
337
- }) => {
338
- marginTop: {
339
- readonly [$$ScaleValue]: "space";
340
- };
341
- };
342
- mr: (value: {
343
- readonly [$$ScaleValue]: "space";
344
- }) => {
345
- marginRight: {
346
- readonly [$$ScaleValue]: "space";
347
- };
348
- };
349
- mb: (value: {
350
- readonly [$$ScaleValue]: "space";
351
- }) => {
352
- marginBottom: {
353
- readonly [$$ScaleValue]: "space";
354
- };
355
- };
356
- ml: (value: {
357
- readonly [$$ScaleValue]: "space";
358
- }) => {
359
- marginLeft: {
360
- readonly [$$ScaleValue]: "space";
361
- };
362
- };
363
- mx: (value: {
364
- readonly [$$ScaleValue]: "space";
365
- }) => {
366
- marginLeft: {
367
- readonly [$$ScaleValue]: "space";
368
- };
369
- marginRight: {
370
- readonly [$$ScaleValue]: "space";
371
- };
372
- };
373
- my: (value: {
374
- readonly [$$ScaleValue]: "space";
375
- }) => {
376
- marginTop: {
377
- readonly [$$ScaleValue]: "space";
378
- };
379
- marginBottom: {
380
- readonly [$$ScaleValue]: "space";
381
- };
382
- };
383
- size: (value: {
384
- readonly [$$PropertyValue]: "width";
385
- }) => {
386
- width: {
387
- readonly [$$PropertyValue]: "width";
388
- };
389
- height: {
390
- readonly [$$PropertyValue]: "width";
391
- };
392
- };
393
- subtleColor: (value: string) => {
394
- color: string; /**
395
- * If true, the close icon button is hidden
396
- */
397
- backgroundColor: string;
398
- };
399
- }>>;
400
- declare type IDialog = React.ComponentProps<typeof Dialog>;
401
- interface ModalDialogProps extends Omit<IDialog, 'children'>, DialogContentProps {
402
- /** set PageDialog zIndex, default is set to 1400 */
403
- layer?: number | string;
404
- /** Force to mobile view or desktop view, if undefined ModalDialog will be responsive according to current screen size */
405
- isMobile?: boolean | undefined;
406
- /**
407
- * @deprecated Use size or css props css={{width: width css property}} instead. This will be deleted in the future to limit unnecessary props.
408
- */
409
- width?: string | number;
410
- /** Set default behavior when opening dialog with form. Usually used with prevent default*/
411
- onOpenAutoFocus?: (event: Event) => void;
412
- /** Event handler called when a pointer event occurs outside the bounds of the component. It can be prevented by calling event.preventDefault.*/
413
- onPointerDownOutside?: (event: Event) => void;
414
- /**
415
- * If true, the close icon button is hidden
416
- */
417
- hideCloseButton?: boolean;
418
- /**
419
- * If true, the close icon button is disabled
420
- */
421
- disabledCloseButton?: boolean;
422
- /**
423
- * On dialog close click function
424
- */
425
- onCloseClick?: () => void;
426
- /**
427
- * Theme configuration for the component
428
- */
429
- theme?: string;
430
- }
431
- /**
432
- * 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.
433
- * https://react-majoo-ui.mangkujagat.com/?path=/story/core-components-pagedialog--default
434
- * @param size - default fullsize
435
- * @param layer - z-index default 1400
436
- * @param isMobile - force mobile/desktop view, default is responsive
437
- * @param onOpenAutoFocus - set default open behaviour
438
- *
439
- * @example
440
- * // Uncontrolled Example
441
- * <ModalDialog>
442
- * <ModalDialogTrigger>Button Trigger</ModalDialogTrigger>
443
- * <ModalDialogTitle>Title</ModalDialogTitle>
444
- * <ModalDialogContent>Content</ModalDialogContent>
445
- * <ModalDialogFooter>Footer</ModalDialogFooter>
446
- * </ModalDialog>
447
- * @component
448
- */
449
- declare const ModalDialog: {
450
- (props: ModalDialogProps): JSX.Element;
451
- Trigger: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
452
- sm: "(min-width: 359px)";
453
- md: "(min-width: 767px)";
454
- lg: "(min-width: 1023px)";
455
- xl: "(min-width: 1199px)";
456
- '2xl': "(min-width: 1399px)";
457
- '3xl': "(min-width: 1600px)";
458
- }, import("@stitches/react/types/css-util").CSS<{
459
- sm: "(min-width: 359px)";
460
- md: "(min-width: 767px)";
461
- lg: "(min-width: 1023px)";
462
- xl: "(min-width: 1199px)";
463
- '2xl': "(min-width: 1399px)";
464
- '3xl': "(min-width: 1600px)";
465
- }, {
466
- colors: unknown;
467
- space: unknown;
468
- shadows: unknown;
469
- fontSizes: unknown;
470
- fonts: unknown;
471
- lineHeights: unknown;
472
- letterSpacings: unknown;
473
- radii: unknown;
474
- sizes: unknown;
475
- zIndices: unknown;
476
- toastPosition: unknown;
477
- }, import("@stitches/react/types/config").DefaultThemeMap, {
478
- m: (value: {
479
- readonly [$$ScaleValue]: "space";
480
- }) => {
481
- margin: {
482
- readonly [$$ScaleValue]: "space";
483
- };
484
- };
485
- mt: (value: {
486
- readonly [$$ScaleValue]: "space";
487
- }) => {
488
- marginTop: {
489
- readonly [$$ScaleValue]: "space";
490
- };
491
- };
492
- mr: (value: {
493
- readonly [$$ScaleValue]: "space";
494
- }) => {
495
- marginRight: {
496
- readonly [$$ScaleValue]: "space";
497
- };
498
- };
499
- mb: (value: {
500
- readonly [$$ScaleValue]: "space";
501
- }) => {
502
- marginBottom: {
503
- readonly [$$ScaleValue]: "space";
504
- };
505
- };
506
- ml: (value: {
507
- readonly [$$ScaleValue]: "space";
508
- }) => {
509
- marginLeft: {
510
- readonly [$$ScaleValue]: "space";
511
- };
512
- };
513
- mx: (value: {
514
- readonly [$$ScaleValue]: "space";
515
- }) => {
516
- marginLeft: {
517
- readonly [$$ScaleValue]: "space";
518
- };
519
- marginRight: {
520
- readonly [$$ScaleValue]: "space";
521
- };
522
- };
523
- my: (value: {
524
- readonly [$$ScaleValue]: "space";
525
- }) => {
526
- marginTop: {
527
- readonly [$$ScaleValue]: "space";
528
- };
529
- marginBottom: {
530
- readonly [$$ScaleValue]: "space";
531
- };
532
- };
533
- size: (value: {
534
- readonly [$$PropertyValue]: "width";
535
- }) => {
536
- width: {
537
- readonly [$$PropertyValue]: "width";
538
- };
539
- height: {
540
- readonly [$$PropertyValue]: "width";
541
- };
542
- };
543
- subtleColor: (value: string) => {
544
- color: string; /**
545
- * If true, the close icon button is hidden
546
- */
547
- backgroundColor: string;
548
- };
549
- }>>;
550
- Title: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
551
- sm: "(min-width: 359px)";
552
- md: "(min-width: 767px)";
553
- lg: "(min-width: 1023px)";
554
- xl: "(min-width: 1199px)";
555
- '2xl': "(min-width: 1399px)";
556
- '3xl': "(min-width: 1600px)";
557
- }, import("@stitches/react/types/css-util").CSS<{
558
- sm: "(min-width: 359px)";
559
- md: "(min-width: 767px)";
560
- lg: "(min-width: 1023px)";
561
- xl: "(min-width: 1199px)";
562
- '2xl': "(min-width: 1399px)";
563
- '3xl': "(min-width: 1600px)";
564
- }, {
565
- colors: unknown;
566
- space: unknown;
567
- shadows: unknown;
568
- fontSizes: unknown;
569
- fonts: unknown;
570
- lineHeights: unknown;
571
- letterSpacings: unknown;
572
- radii: unknown;
573
- sizes: unknown;
574
- zIndices: unknown;
575
- toastPosition: unknown;
576
- }, import("@stitches/react/types/config").DefaultThemeMap, {
577
- m: (value: {
578
- readonly [$$ScaleValue]: "space";
579
- }) => {
580
- margin: {
581
- readonly [$$ScaleValue]: "space";
582
- };
583
- };
584
- mt: (value: {
585
- readonly [$$ScaleValue]: "space";
586
- }) => {
587
- marginTop: {
588
- readonly [$$ScaleValue]: "space";
589
- };
590
- };
591
- mr: (value: {
592
- readonly [$$ScaleValue]: "space";
593
- }) => {
594
- marginRight: {
595
- readonly [$$ScaleValue]: "space";
596
- };
597
- };
598
- mb: (value: {
599
- readonly [$$ScaleValue]: "space";
600
- }) => {
601
- marginBottom: {
602
- readonly [$$ScaleValue]: "space";
603
- };
604
- };
605
- ml: (value: {
606
- readonly [$$ScaleValue]: "space";
607
- }) => {
608
- marginLeft: {
609
- readonly [$$ScaleValue]: "space";
610
- };
611
- };
612
- mx: (value: {
613
- readonly [$$ScaleValue]: "space";
614
- }) => {
615
- marginLeft: {
616
- readonly [$$ScaleValue]: "space";
617
- };
618
- marginRight: {
619
- readonly [$$ScaleValue]: "space";
620
- };
621
- };
622
- my: (value: {
623
- readonly [$$ScaleValue]: "space";
624
- }) => {
625
- marginTop: {
626
- readonly [$$ScaleValue]: "space";
627
- };
628
- marginBottom: {
629
- readonly [$$ScaleValue]: "space";
630
- };
631
- };
632
- size: (value: {
633
- readonly [$$PropertyValue]: "width";
634
- }) => {
635
- width: {
636
- readonly [$$PropertyValue]: "width";
637
- };
638
- height: {
639
- readonly [$$PropertyValue]: "width";
640
- };
641
- };
642
- subtleColor: (value: string) => {
643
- color: string; /**
644
- * If true, the close icon button is hidden
645
- */
646
- backgroundColor: string;
647
- };
648
- }>>;
649
- Content: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
650
- sm: "(min-width: 359px)";
651
- md: "(min-width: 767px)";
652
- lg: "(min-width: 1023px)";
653
- xl: "(min-width: 1199px)";
654
- '2xl': "(min-width: 1399px)";
655
- '3xl': "(min-width: 1600px)";
656
- }, import("@stitches/react/types/css-util").CSS<{
657
- sm: "(min-width: 359px)";
658
- md: "(min-width: 767px)";
659
- lg: "(min-width: 1023px)";
660
- xl: "(min-width: 1199px)";
661
- '2xl': "(min-width: 1399px)";
662
- '3xl': "(min-width: 1600px)";
663
- }, {
664
- colors: unknown;
665
- space: unknown;
666
- shadows: unknown;
667
- fontSizes: unknown;
668
- fonts: unknown;
669
- lineHeights: unknown;
670
- letterSpacings: unknown;
671
- radii: unknown;
672
- sizes: unknown;
673
- zIndices: unknown;
674
- toastPosition: unknown;
675
- }, import("@stitches/react/types/config").DefaultThemeMap, {
676
- m: (value: {
677
- readonly [$$ScaleValue]: "space";
678
- }) => {
679
- margin: {
680
- readonly [$$ScaleValue]: "space";
681
- };
682
- };
683
- mt: (value: {
684
- readonly [$$ScaleValue]: "space";
685
- }) => {
686
- marginTop: {
687
- readonly [$$ScaleValue]: "space";
688
- };
689
- };
690
- mr: (value: {
691
- readonly [$$ScaleValue]: "space";
692
- }) => {
693
- marginRight: {
694
- readonly [$$ScaleValue]: "space";
695
- };
696
- };
697
- mb: (value: {
698
- readonly [$$ScaleValue]: "space";
699
- }) => {
700
- marginBottom: {
701
- readonly [$$ScaleValue]: "space";
702
- };
703
- };
704
- ml: (value: {
705
- readonly [$$ScaleValue]: "space";
706
- }) => {
707
- marginLeft: {
708
- readonly [$$ScaleValue]: "space";
709
- };
710
- };
711
- mx: (value: {
712
- readonly [$$ScaleValue]: "space";
713
- }) => {
714
- marginLeft: {
715
- readonly [$$ScaleValue]: "space";
716
- };
717
- marginRight: {
718
- readonly [$$ScaleValue]: "space";
719
- };
720
- };
721
- my: (value: {
722
- readonly [$$ScaleValue]: "space";
723
- }) => {
724
- marginTop: {
725
- readonly [$$ScaleValue]: "space";
726
- };
727
- marginBottom: {
728
- readonly [$$ScaleValue]: "space";
729
- };
730
- };
731
- size: (value: {
732
- readonly [$$PropertyValue]: "width";
733
- }) => {
734
- width: {
735
- readonly [$$PropertyValue]: "width";
736
- };
737
- height: {
738
- readonly [$$PropertyValue]: "width";
739
- };
740
- };
741
- subtleColor: (value: string) => {
742
- color: string; /**
743
- * If true, the close icon button is hidden
744
- */
745
- backgroundColor: string;
746
- };
747
- }>>;
748
- Footer: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
749
- sm: "(min-width: 359px)";
750
- md: "(min-width: 767px)";
751
- lg: "(min-width: 1023px)";
752
- xl: "(min-width: 1199px)";
753
- '2xl': "(min-width: 1399px)";
754
- '3xl': "(min-width: 1600px)";
755
- }, import("@stitches/react/types/css-util").CSS<{
756
- sm: "(min-width: 359px)";
757
- md: "(min-width: 767px)";
758
- lg: "(min-width: 1023px)";
759
- xl: "(min-width: 1199px)";
760
- '2xl': "(min-width: 1399px)";
761
- '3xl': "(min-width: 1600px)";
762
- }, {
763
- colors: unknown;
764
- space: unknown;
765
- shadows: unknown;
766
- fontSizes: unknown;
767
- fonts: unknown;
768
- lineHeights: unknown;
769
- letterSpacings: unknown;
770
- radii: unknown;
771
- sizes: unknown;
772
- zIndices: unknown;
773
- toastPosition: unknown;
774
- }, import("@stitches/react/types/config").DefaultThemeMap, {
775
- m: (value: {
776
- readonly [$$ScaleValue]: "space";
777
- }) => {
778
- margin: {
779
- readonly [$$ScaleValue]: "space";
780
- };
781
- };
782
- mt: (value: {
783
- readonly [$$ScaleValue]: "space";
784
- }) => {
785
- marginTop: {
786
- readonly [$$ScaleValue]: "space";
787
- };
788
- };
789
- mr: (value: {
790
- readonly [$$ScaleValue]: "space";
791
- }) => {
792
- marginRight: {
793
- readonly [$$ScaleValue]: "space";
794
- };
795
- };
796
- mb: (value: {
797
- readonly [$$ScaleValue]: "space";
798
- }) => {
799
- marginBottom: {
800
- readonly [$$ScaleValue]: "space";
801
- };
802
- };
803
- ml: (value: {
804
- readonly [$$ScaleValue]: "space";
805
- }) => {
806
- marginLeft: {
807
- readonly [$$ScaleValue]: "space";
808
- };
809
- };
810
- mx: (value: {
811
- readonly [$$ScaleValue]: "space";
812
- }) => {
813
- marginLeft: {
814
- readonly [$$ScaleValue]: "space";
815
- };
816
- marginRight: {
817
- readonly [$$ScaleValue]: "space";
818
- };
819
- };
820
- my: (value: {
821
- readonly [$$ScaleValue]: "space";
822
- }) => {
823
- marginTop: {
824
- readonly [$$ScaleValue]: "space";
825
- };
826
- marginBottom: {
827
- readonly [$$ScaleValue]: "space";
828
- };
829
- };
830
- size: (value: {
831
- readonly [$$PropertyValue]: "width";
832
- }) => {
833
- width: {
834
- readonly [$$PropertyValue]: "width";
835
- };
836
- height: {
837
- readonly [$$PropertyValue]: "width";
838
- };
839
- };
840
- subtleColor: (value: string) => {
841
- color: string; /**
842
- * If true, the close icon button is hidden
843
- */
844
- backgroundColor: string;
845
- };
846
- }>>;
847
- defaultProps: {
848
- size: string;
849
- layer: string;
850
- };
851
- };
852
- export default ModalDialog;