@majoo-ui/react 1.61.1-1.rc-1 → 1.61.1-6.rc-6
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.
- package/components/accordion/Accordion.d.ts +5 -7
- package/components/button/Button.d.ts +1 -0
- package/components/card/Card.d.ts +5 -0
- package/components/contextMenu/ContextMenu.d.ts +4 -0
- package/components/datePicker/components/DateNumber.d.ts +1 -0
- package/components/devicePreview/DevicePreview.d.ts +4 -4
- package/components/dialog/Dialog.d.ts +4 -0
- package/components/editableTable/EditableTable.d.ts +36 -3
- package/components/form/components/InputResourceList/InputResourceList.d.ts +6 -7
- package/components/form/components/InputSelect/InputSelect.d.ts +7 -0
- package/components/form/components/index.d.ts +1 -1
- package/components/heading/Heading.d.ts +1 -0
- package/components/link/Link.d.ts +1 -0
- package/components/modalDialog/ModalDialog.d.ts +10 -3
- package/components/pageDialog/PageDialog.d.ts +24 -12
- package/components/table/Table.d.ts +109 -0
- package/config/stitches.config.d.ts +20 -0
- package/foundations/typography/Typography.d.ts +4 -0
- package/index.esm.js +2619 -2331
- package/package.json +72 -62
- package/components/form/components/InputResourceList/ResourceList.d.ts +0 -4
- package/components/form/components/InputSelect/InputSelect.backup.d.ts +0 -713
- package/index.umd.css +0 -1296
- package/index.umd.js +0 -58465
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
3
|
-
import { PrimitiveButtonProps } from '@radix-ui/react-popover';
|
|
4
3
|
import { BaseRadixNoCss, BaseRadixProps } from '../../type/base.types';
|
|
5
|
-
declare type AccordionPrimitiveProps =
|
|
4
|
+
declare type AccordionPrimitiveProps = AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps;
|
|
6
5
|
declare type AccordionProps = {
|
|
7
6
|
/**
|
|
8
7
|
* Determines whether one or multiple items can be opened at the same time.
|
|
9
8
|
*/
|
|
10
|
-
type: string;
|
|
11
9
|
children: React.ReactNode;
|
|
12
10
|
} & AccordionPrimitiveProps & BaseRadixProps;
|
|
13
11
|
export declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
declare type AccordionTriggerPrimitiveProps = Omit<AccordionPrimitive.AccordionTriggerProps, keyof
|
|
12
|
+
declare type AccordionTriggerPrimitiveProps = Omit<AccordionPrimitive.AccordionTriggerProps, keyof ComponentPropsWithoutRef<'button'>>;
|
|
15
13
|
interface AccordionTriggerProps extends AccordionTriggerPrimitiveProps, BaseRadixProps {
|
|
16
14
|
/**
|
|
17
15
|
* If the value is 'false' then it will hide the arrow icon.
|
|
@@ -32,6 +30,6 @@ interface AccordionTriggerProps extends AccordionTriggerPrimitiveProps, BaseRadi
|
|
|
32
30
|
children: React.ReactNode;
|
|
33
31
|
}
|
|
34
32
|
export declare const AccordionTrigger: React.ForwardRefExoticComponent<AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
35
|
-
export declare const AccordionItem: React.FC<
|
|
36
|
-
export declare const AccordionContent: React.FC<
|
|
33
|
+
export declare const AccordionItem: React.FC<AccordionPrimitive.AccordionItemProps & BaseRadixNoCss>;
|
|
34
|
+
export declare const AccordionContent: React.FC<AccordionPrimitive.AccordionContentProps & BaseRadixNoCss>;
|
|
37
35
|
export {};
|
|
@@ -34,6 +34,7 @@ export declare const ButtonPrimitive: import("@stitches/react/types/styled-compo
|
|
|
34
34
|
radii: unknown;
|
|
35
35
|
sizes: unknown;
|
|
36
36
|
zIndices: unknown;
|
|
37
|
+
toastPosition: unknown;
|
|
37
38
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
38
39
|
m: (value: {
|
|
39
40
|
readonly [Stitches.$$ScaleValue]: "space";
|
|
@@ -54,6 +54,7 @@ export declare const CardComponent: import("@stitches/react/types/styled-compone
|
|
|
54
54
|
radii: unknown;
|
|
55
55
|
sizes: unknown;
|
|
56
56
|
zIndices: unknown;
|
|
57
|
+
toastPosition: unknown;
|
|
57
58
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
58
59
|
m: (value: {
|
|
59
60
|
readonly [$$ScaleValue]: "space";
|
|
@@ -152,6 +153,7 @@ export declare const CardLineColor: import("@stitches/react/types/styled-compone
|
|
|
152
153
|
radii: unknown;
|
|
153
154
|
sizes: unknown;
|
|
154
155
|
zIndices: unknown;
|
|
156
|
+
toastPosition: unknown;
|
|
155
157
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
156
158
|
m: (value: {
|
|
157
159
|
readonly [$$ScaleValue]: "space";
|
|
@@ -248,6 +250,7 @@ export declare const StyledTitle: import("@stitches/react/types/styled-component
|
|
|
248
250
|
radii: unknown;
|
|
249
251
|
sizes: unknown;
|
|
250
252
|
zIndices: unknown;
|
|
253
|
+
toastPosition: unknown;
|
|
251
254
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
252
255
|
m: (value: {
|
|
253
256
|
readonly [$$ScaleValue]: "space";
|
|
@@ -355,6 +358,7 @@ export declare const Card: {
|
|
|
355
358
|
radii: unknown;
|
|
356
359
|
sizes: unknown;
|
|
357
360
|
zIndices: unknown;
|
|
361
|
+
toastPosition: unknown;
|
|
358
362
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
359
363
|
m: (value: {
|
|
360
364
|
readonly [$$ScaleValue]: "space";
|
|
@@ -451,6 +455,7 @@ export declare const Card: {
|
|
|
451
455
|
radii: unknown;
|
|
452
456
|
sizes: unknown;
|
|
453
457
|
zIndices: unknown;
|
|
458
|
+
toastPosition: unknown;
|
|
454
459
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
455
460
|
m: (value: {
|
|
456
461
|
readonly [$$ScaleValue]: "space";
|
|
@@ -38,6 +38,7 @@ export declare const ContextMenuTrigger: import("@stitches/react/types/styled-co
|
|
|
38
38
|
radii: unknown;
|
|
39
39
|
sizes: unknown;
|
|
40
40
|
zIndices: unknown;
|
|
41
|
+
toastPosition: unknown;
|
|
41
42
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
42
43
|
m: (value: {
|
|
43
44
|
readonly [$$ScaleValue]: "space";
|
|
@@ -134,6 +135,7 @@ export declare const ContextMenu: import("@stitches/react/types/styled-component
|
|
|
134
135
|
radii: unknown;
|
|
135
136
|
sizes: unknown;
|
|
136
137
|
zIndices: unknown;
|
|
138
|
+
toastPosition: unknown;
|
|
137
139
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
138
140
|
m: (value: {
|
|
139
141
|
readonly [$$ScaleValue]: "space";
|
|
@@ -230,6 +232,7 @@ export declare const ContextMenuItem: import("@stitches/react/types/styled-compo
|
|
|
230
232
|
radii: unknown;
|
|
231
233
|
sizes: unknown;
|
|
232
234
|
zIndices: unknown;
|
|
235
|
+
toastPosition: unknown;
|
|
233
236
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
234
237
|
m: (value: {
|
|
235
238
|
readonly [$$ScaleValue]: "space";
|
|
@@ -326,6 +329,7 @@ export declare const ContextMenuSeparator: import("@stitches/react/types/styled-
|
|
|
326
329
|
radii: unknown;
|
|
327
330
|
sizes: unknown;
|
|
328
331
|
zIndices: unknown;
|
|
332
|
+
toastPosition: unknown;
|
|
329
333
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
330
334
|
m: (value: {
|
|
331
335
|
readonly [$$ScaleValue]: "space";
|
|
@@ -28,6 +28,7 @@ declare const DateNumber: import("@stitches/react/types/styled-component").Style
|
|
|
28
28
|
radii: unknown;
|
|
29
29
|
sizes: unknown;
|
|
30
30
|
zIndices: unknown;
|
|
31
|
+
toastPosition: unknown;
|
|
31
32
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
32
33
|
m: (value: {
|
|
33
34
|
readonly [Stitches.$$ScaleValue]: "space";
|
|
@@ -82,6 +82,7 @@ export declare const ImageDevicePreview: import("@stitches/react/types/styled-co
|
|
|
82
82
|
radii: unknown;
|
|
83
83
|
sizes: unknown;
|
|
84
84
|
zIndices: unknown;
|
|
85
|
+
toastPosition: unknown;
|
|
85
86
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
86
87
|
m: (value: {
|
|
87
88
|
readonly [Stitches.$$ScaleValue]: "space";
|
|
@@ -131,12 +132,11 @@ export declare const ImageDevicePreview: import("@stitches/react/types/styled-co
|
|
|
131
132
|
my: (value: {
|
|
132
133
|
readonly [Stitches.$$ScaleValue]: "space";
|
|
133
134
|
}) => {
|
|
134
|
-
/**
|
|
135
|
-
* alt prop when url image not found or invalid
|
|
136
|
-
*/
|
|
137
135
|
marginTop: {
|
|
138
136
|
readonly [Stitches.$$ScaleValue]: "space";
|
|
139
|
-
};
|
|
137
|
+
}; /**
|
|
138
|
+
* alt prop when url image not found or invalid
|
|
139
|
+
*/
|
|
140
140
|
marginBottom: {
|
|
141
141
|
readonly [Stitches.$$ScaleValue]: "space";
|
|
142
142
|
};
|
|
@@ -27,6 +27,7 @@ declare const StyledContent: import("@stitches/react/types/styled-component").St
|
|
|
27
27
|
radii: unknown;
|
|
28
28
|
sizes: unknown;
|
|
29
29
|
zIndices: unknown;
|
|
30
|
+
toastPosition: unknown;
|
|
30
31
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
31
32
|
m: (value: {
|
|
32
33
|
readonly [$$ScaleValue]: "space";
|
|
@@ -131,6 +132,7 @@ export declare const DialogTitle: import("@stitches/react/types/styled-component
|
|
|
131
132
|
radii: unknown;
|
|
132
133
|
sizes: unknown;
|
|
133
134
|
zIndices: unknown;
|
|
135
|
+
toastPosition: unknown;
|
|
134
136
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
135
137
|
m: (value: {
|
|
136
138
|
readonly [$$ScaleValue]: "space";
|
|
@@ -227,6 +229,7 @@ export declare const DialogDescription: import("@stitches/react/types/styled-com
|
|
|
227
229
|
radii: unknown;
|
|
228
230
|
sizes: unknown;
|
|
229
231
|
zIndices: unknown;
|
|
232
|
+
toastPosition: unknown;
|
|
230
233
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
231
234
|
m: (value: {
|
|
232
235
|
readonly [$$ScaleValue]: "space";
|
|
@@ -324,6 +327,7 @@ export declare const DialogOverlay: import("@stitches/react/types/styled-compone
|
|
|
324
327
|
radii: unknown;
|
|
325
328
|
sizes: unknown;
|
|
326
329
|
zIndices: unknown;
|
|
330
|
+
toastPosition: unknown;
|
|
327
331
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
328
332
|
m: (value: {
|
|
329
333
|
readonly [$$ScaleValue]: "space";
|
|
@@ -125,6 +125,7 @@ declare namespace EditableTable {
|
|
|
125
125
|
radii: unknown;
|
|
126
126
|
sizes: unknown;
|
|
127
127
|
zIndices: unknown;
|
|
128
|
+
toastPosition: unknown;
|
|
128
129
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
129
130
|
m: (value: {
|
|
130
131
|
readonly [$$ScaleValue]: "space";
|
|
@@ -138,7 +139,17 @@ declare namespace EditableTable {
|
|
|
138
139
|
}) => {
|
|
139
140
|
marginTop: {
|
|
140
141
|
readonly [$$ScaleValue]: "space";
|
|
141
|
-
};
|
|
142
|
+
}; /**
|
|
143
|
+
* Define custom empty data props.<br/>
|
|
144
|
+
* interface EmptyDataProps { <br/>
|
|
145
|
+
* (define the doodle image component)<br/>
|
|
146
|
+
* doodleImage?: React.ReactNode;<br/>
|
|
147
|
+
* (define the title)<br/>
|
|
148
|
+
* title?: string | React.ReactNode;<br/>
|
|
149
|
+
* (define the description)<br/>
|
|
150
|
+
* description?: string | React.ReactNode;<br/>
|
|
151
|
+
* }
|
|
152
|
+
*/
|
|
142
153
|
};
|
|
143
154
|
mr: (value: {
|
|
144
155
|
readonly [$$ScaleValue]: "space";
|
|
@@ -225,6 +236,7 @@ declare namespace EditableTable {
|
|
|
225
236
|
radii: unknown;
|
|
226
237
|
sizes: unknown;
|
|
227
238
|
zIndices: unknown;
|
|
239
|
+
toastPosition: unknown;
|
|
228
240
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
229
241
|
m: (value: {
|
|
230
242
|
readonly [$$ScaleValue]: "space";
|
|
@@ -238,7 +250,17 @@ declare namespace EditableTable {
|
|
|
238
250
|
}) => {
|
|
239
251
|
marginTop: {
|
|
240
252
|
readonly [$$ScaleValue]: "space";
|
|
241
|
-
};
|
|
253
|
+
}; /**
|
|
254
|
+
* Define custom empty data props.<br/>
|
|
255
|
+
* interface EmptyDataProps { <br/>
|
|
256
|
+
* (define the doodle image component)<br/>
|
|
257
|
+
* doodleImage?: React.ReactNode;<br/>
|
|
258
|
+
* (define the title)<br/>
|
|
259
|
+
* title?: string | React.ReactNode;<br/>
|
|
260
|
+
* (define the description)<br/>
|
|
261
|
+
* description?: string | React.ReactNode;<br/>
|
|
262
|
+
* }
|
|
263
|
+
*/
|
|
242
264
|
};
|
|
243
265
|
mr: (value: {
|
|
244
266
|
readonly [$$ScaleValue]: "space";
|
|
@@ -323,6 +345,7 @@ declare namespace EditableTable {
|
|
|
323
345
|
radii: unknown;
|
|
324
346
|
sizes: unknown;
|
|
325
347
|
zIndices: unknown;
|
|
348
|
+
toastPosition: unknown;
|
|
326
349
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
327
350
|
m: (value: {
|
|
328
351
|
readonly [$$ScaleValue]: "space";
|
|
@@ -336,7 +359,17 @@ declare namespace EditableTable {
|
|
|
336
359
|
}) => {
|
|
337
360
|
marginTop: {
|
|
338
361
|
readonly [$$ScaleValue]: "space";
|
|
339
|
-
};
|
|
362
|
+
}; /**
|
|
363
|
+
* Define custom empty data props.<br/>
|
|
364
|
+
* interface EmptyDataProps { <br/>
|
|
365
|
+
* (define the doodle image component)<br/>
|
|
366
|
+
* doodleImage?: React.ReactNode;<br/>
|
|
367
|
+
* (define the title)<br/>
|
|
368
|
+
* title?: string | React.ReactNode;<br/>
|
|
369
|
+
* (define the description)<br/>
|
|
370
|
+
* description?: string | React.ReactNode;<br/>
|
|
371
|
+
* }
|
|
372
|
+
*/
|
|
340
373
|
};
|
|
341
374
|
mr: (value: {
|
|
342
375
|
readonly [$$ScaleValue]: "space";
|
|
@@ -9,18 +9,17 @@ export interface IResource {
|
|
|
9
9
|
icon?: () => JSX.Element;
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export interface
|
|
12
|
+
export interface InputResourceListProps {
|
|
13
13
|
data: IResource[];
|
|
14
14
|
disabled: boolean;
|
|
15
|
-
|
|
16
|
-
onItemUncheck(checkedItem: IResource): void;
|
|
15
|
+
onChange(checkedItems: (string | IResource)[]): void;
|
|
17
16
|
searchPlaceholder?: string;
|
|
18
17
|
counterFooter?: boolean;
|
|
19
18
|
counterFooterText?: string;
|
|
20
19
|
isLoading: boolean;
|
|
21
|
-
|
|
20
|
+
disabledItems?: string[];
|
|
22
21
|
emptyDataMessage?: string;
|
|
23
|
-
value?: IResource[];
|
|
22
|
+
value?: (string | IResource)[];
|
|
24
23
|
fetchData?(props: {
|
|
25
24
|
query?: string;
|
|
26
25
|
pageIndex?: number;
|
|
@@ -34,7 +33,7 @@ export interface IInputResourceListProps {
|
|
|
34
33
|
renderSelectAll?: JSX.Element;
|
|
35
34
|
customHeader?: JSX.Element;
|
|
36
35
|
expandable?: boolean;
|
|
37
|
-
|
|
36
|
+
searchable?: boolean;
|
|
38
37
|
}
|
|
39
|
-
declare function InputResourceList({ data: dataProp, disabled,
|
|
38
|
+
declare function InputResourceList({ data: dataProp, disabled, onChange, searchPlaceholder, counterFooter, counterFooterText, isLoading, disabledItems, emptyDataMessage, value, fetchData, onQueryChange, css, wrapperCss, defaultSort, title, hideSelectAll, renderSelectAll, customHeader, expandable, searchable, }: InputResourceListProps): JSX.Element;
|
|
40
39
|
export default InputResourceList;
|
|
@@ -29,6 +29,7 @@ export declare const SelectContainer: import("@stitches/react/types/styled-compo
|
|
|
29
29
|
radii: unknown;
|
|
30
30
|
sizes: unknown;
|
|
31
31
|
zIndices: unknown;
|
|
32
|
+
toastPosition: unknown;
|
|
32
33
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
33
34
|
m: (value: {
|
|
34
35
|
readonly [$$ScaleValue]: "space";
|
|
@@ -130,6 +131,7 @@ export declare const SelectBox: import("@stitches/react/types/styled-component")
|
|
|
130
131
|
radii: unknown;
|
|
131
132
|
sizes: unknown;
|
|
132
133
|
zIndices: unknown;
|
|
134
|
+
toastPosition: unknown;
|
|
133
135
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
134
136
|
m: (value: {
|
|
135
137
|
readonly [$$ScaleValue]: "space";
|
|
@@ -228,6 +230,7 @@ export declare const Input: import("@stitches/react/types/styled-component").Sty
|
|
|
228
230
|
radii: unknown;
|
|
229
231
|
sizes: unknown;
|
|
230
232
|
zIndices: unknown;
|
|
233
|
+
toastPosition: unknown;
|
|
231
234
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
232
235
|
m: (value: {
|
|
233
236
|
readonly [$$ScaleValue]: "space";
|
|
@@ -326,6 +329,7 @@ export declare const IconContainer: import("@stitches/react/types/styled-compone
|
|
|
326
329
|
radii: unknown;
|
|
327
330
|
sizes: unknown;
|
|
328
331
|
zIndices: unknown;
|
|
332
|
+
toastPosition: unknown;
|
|
329
333
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
330
334
|
m: (value: {
|
|
331
335
|
readonly [$$ScaleValue]: "space";
|
|
@@ -426,6 +430,7 @@ export declare const OptionWrapper: import("@stitches/react/types/styled-compone
|
|
|
426
430
|
radii: unknown;
|
|
427
431
|
sizes: unknown;
|
|
428
432
|
zIndices: unknown;
|
|
433
|
+
toastPosition: unknown;
|
|
429
434
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
430
435
|
m: (value: {
|
|
431
436
|
readonly [$$ScaleValue]: "space";
|
|
@@ -522,6 +527,7 @@ export declare const SelectOption: import("@stitches/react/types/styled-componen
|
|
|
522
527
|
radii: unknown;
|
|
523
528
|
sizes: unknown;
|
|
524
529
|
zIndices: unknown;
|
|
530
|
+
toastPosition: unknown;
|
|
525
531
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
526
532
|
m: (value: {
|
|
527
533
|
readonly [$$ScaleValue]: "space";
|
|
@@ -621,6 +627,7 @@ export declare const SelectItem: import("@stitches/react/types/styled-component"
|
|
|
621
627
|
radii: unknown;
|
|
622
628
|
sizes: unknown;
|
|
623
629
|
zIndices: unknown;
|
|
630
|
+
toastPosition: unknown;
|
|
624
631
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
625
632
|
m: (value: {
|
|
626
633
|
readonly [$$ScaleValue]: "space";
|
|
@@ -18,7 +18,7 @@ export * from './InputSelect';
|
|
|
18
18
|
export { default as InputSelectCheck } from './InputSelectCheck/InputSelectCheck';
|
|
19
19
|
export { default as InputSelectTag } from './InputSelectTag/InputSelectTag';
|
|
20
20
|
export { default as InputCreatable } from './InputCreatable/InputCreatable';
|
|
21
|
-
export { default as InputResourceList } from './InputResourceList/
|
|
21
|
+
export { default as InputResourceList } from './InputResourceList/InputResourceList';
|
|
22
22
|
export * from './InputCombobox';
|
|
23
23
|
export * from './InputOTP';
|
|
24
24
|
export * from './InputCounter';
|
|
@@ -25,6 +25,7 @@ declare const Heading: import("@stitches/react/types/styled-component").StyledCo
|
|
|
25
25
|
radii: unknown;
|
|
26
26
|
sizes: unknown;
|
|
27
27
|
zIndices: unknown;
|
|
28
|
+
toastPosition: unknown;
|
|
28
29
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
29
30
|
m: (value: {
|
|
30
31
|
readonly [$$ScaleValue]: "space";
|
|
@@ -28,6 +28,7 @@ declare const StyledLink: import("@stitches/react/types/styled-component").Style
|
|
|
28
28
|
radii: unknown;
|
|
29
29
|
sizes: unknown;
|
|
30
30
|
zIndices: unknown;
|
|
31
|
+
toastPosition: unknown;
|
|
31
32
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
32
33
|
m: (value: {
|
|
33
34
|
readonly [Stitches.$$ScaleValue]: "space";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Dialog } from '../../';
|
|
3
|
-
import { FocusScopeProps } from '@radix-ui/react-dialog';
|
|
4
3
|
import type { DialogContentProps } from '..';
|
|
5
4
|
export declare const ModalDialogFooter: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
6
5
|
sm: "(min-width: 359px)";
|
|
@@ -27,6 +26,7 @@ export declare const ModalDialogFooter: import("@stitches/react/types/styled-com
|
|
|
27
26
|
radii: unknown;
|
|
28
27
|
sizes: unknown;
|
|
29
28
|
zIndices: unknown;
|
|
29
|
+
toastPosition: unknown;
|
|
30
30
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
31
31
|
m: (value: {
|
|
32
32
|
readonly [$$ScaleValue]: "space";
|
|
@@ -123,6 +123,7 @@ export declare const ModalDialogTitle: import("@stitches/react/types/styled-comp
|
|
|
123
123
|
radii: unknown;
|
|
124
124
|
sizes: unknown;
|
|
125
125
|
zIndices: unknown;
|
|
126
|
+
toastPosition: unknown;
|
|
126
127
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
127
128
|
m: (value: {
|
|
128
129
|
readonly [$$ScaleValue]: "space";
|
|
@@ -219,6 +220,7 @@ export declare const ModalDialogContent: import("@stitches/react/types/styled-co
|
|
|
219
220
|
radii: unknown;
|
|
220
221
|
sizes: unknown;
|
|
221
222
|
zIndices: unknown;
|
|
223
|
+
toastPosition: unknown;
|
|
222
224
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
223
225
|
m: (value: {
|
|
224
226
|
readonly [$$ScaleValue]: "space";
|
|
@@ -315,6 +317,7 @@ export declare const ModalDialogTrigger: import("@stitches/react/types/styled-co
|
|
|
315
317
|
radii: unknown;
|
|
316
318
|
sizes: unknown;
|
|
317
319
|
zIndices: unknown;
|
|
320
|
+
toastPosition: unknown;
|
|
318
321
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
319
322
|
m: (value: {
|
|
320
323
|
readonly [$$ScaleValue]: "space";
|
|
@@ -397,9 +400,9 @@ interface ModalDialogProps extends Omit<IDialog, 'children'>, DialogContentProps
|
|
|
397
400
|
*/
|
|
398
401
|
width?: string | number;
|
|
399
402
|
/** Set default behavior when opening dialog with form. Usually used with prevent default*/
|
|
400
|
-
onOpenAutoFocus?:
|
|
403
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
401
404
|
/** Event handler called when a pointer event occurs outside the bounds of the component. It can be prevented by calling event.preventDefault.*/
|
|
402
|
-
onPointerDownOutside?: (
|
|
405
|
+
onPointerDownOutside?: (event: Event) => void;
|
|
403
406
|
/**
|
|
404
407
|
* If true, the close icon button is hidden
|
|
405
408
|
*/
|
|
@@ -458,6 +461,7 @@ declare const ModalDialog: {
|
|
|
458
461
|
radii: unknown;
|
|
459
462
|
sizes: unknown;
|
|
460
463
|
zIndices: unknown;
|
|
464
|
+
toastPosition: unknown;
|
|
461
465
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
462
466
|
m: (value: {
|
|
463
467
|
readonly [$$ScaleValue]: "space";
|
|
@@ -554,6 +558,7 @@ declare const ModalDialog: {
|
|
|
554
558
|
radii: unknown;
|
|
555
559
|
sizes: unknown;
|
|
556
560
|
zIndices: unknown;
|
|
561
|
+
toastPosition: unknown;
|
|
557
562
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
558
563
|
m: (value: {
|
|
559
564
|
readonly [$$ScaleValue]: "space";
|
|
@@ -650,6 +655,7 @@ declare const ModalDialog: {
|
|
|
650
655
|
radii: unknown;
|
|
651
656
|
sizes: unknown;
|
|
652
657
|
zIndices: unknown;
|
|
658
|
+
toastPosition: unknown;
|
|
653
659
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
654
660
|
m: (value: {
|
|
655
661
|
readonly [$$ScaleValue]: "space";
|
|
@@ -746,6 +752,7 @@ declare const ModalDialog: {
|
|
|
746
752
|
radii: unknown;
|
|
747
753
|
sizes: unknown;
|
|
748
754
|
zIndices: unknown;
|
|
755
|
+
toastPosition: unknown;
|
|
749
756
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
750
757
|
m: (value: {
|
|
751
758
|
readonly [$$ScaleValue]: "space";
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Dialog } from '../../';
|
|
3
|
-
import { FocusScopeProps } from '@radix-ui/react-dialog';
|
|
4
|
-
import { PointerDownOutsideEvent, FocusOutsideEvent } from '@radix-ui/react-dismissable-layer';
|
|
5
3
|
import type { DialogContentProps } from '..';
|
|
4
|
+
declare type PointerDownOutsideEvent = CustomEvent<{
|
|
5
|
+
originalEvent: PointerEvent;
|
|
6
|
+
}>;
|
|
7
|
+
declare type FocusOutsideEvent = CustomEvent<{
|
|
8
|
+
originalEvent: FocusEvent;
|
|
9
|
+
}>;
|
|
6
10
|
export declare const PageDialogFooter: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
7
11
|
sm: "(min-width: 359px)";
|
|
8
12
|
md: "(min-width: 767px)";
|
|
@@ -28,6 +32,7 @@ export declare const PageDialogFooter: import("@stitches/react/types/styled-comp
|
|
|
28
32
|
radii: unknown;
|
|
29
33
|
sizes: unknown;
|
|
30
34
|
zIndices: unknown;
|
|
35
|
+
toastPosition: unknown;
|
|
31
36
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
32
37
|
m: (value: {
|
|
33
38
|
readonly [$$ScaleValue]: "space";
|
|
@@ -92,7 +97,7 @@ export declare const PageDialogFooter: import("@stitches/react/types/styled-comp
|
|
|
92
97
|
};
|
|
93
98
|
height: {
|
|
94
99
|
readonly [$$PropertyValue]: "width";
|
|
95
|
-
};
|
|
100
|
+
};
|
|
96
101
|
};
|
|
97
102
|
subtleColor: (value: string) => {
|
|
98
103
|
color: string;
|
|
@@ -124,6 +129,7 @@ export declare const PageDialogTitle: import("@stitches/react/types/styled-compo
|
|
|
124
129
|
radii: unknown;
|
|
125
130
|
sizes: unknown;
|
|
126
131
|
zIndices: unknown;
|
|
132
|
+
toastPosition: unknown;
|
|
127
133
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
128
134
|
m: (value: {
|
|
129
135
|
readonly [$$ScaleValue]: "space";
|
|
@@ -188,7 +194,7 @@ export declare const PageDialogTitle: import("@stitches/react/types/styled-compo
|
|
|
188
194
|
};
|
|
189
195
|
height: {
|
|
190
196
|
readonly [$$PropertyValue]: "width";
|
|
191
|
-
};
|
|
197
|
+
};
|
|
192
198
|
};
|
|
193
199
|
subtleColor: (value: string) => {
|
|
194
200
|
color: string;
|
|
@@ -220,6 +226,7 @@ export declare const PageDialogContent: import("@stitches/react/types/styled-com
|
|
|
220
226
|
radii: unknown;
|
|
221
227
|
sizes: unknown;
|
|
222
228
|
zIndices: unknown;
|
|
229
|
+
toastPosition: unknown;
|
|
223
230
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
224
231
|
m: (value: {
|
|
225
232
|
readonly [$$ScaleValue]: "space";
|
|
@@ -284,7 +291,7 @@ export declare const PageDialogContent: import("@stitches/react/types/styled-com
|
|
|
284
291
|
};
|
|
285
292
|
height: {
|
|
286
293
|
readonly [$$PropertyValue]: "width";
|
|
287
|
-
};
|
|
294
|
+
};
|
|
288
295
|
};
|
|
289
296
|
subtleColor: (value: string) => {
|
|
290
297
|
color: string;
|
|
@@ -316,6 +323,7 @@ export declare const PageDialogTrigger: import("@stitches/react/types/styled-com
|
|
|
316
323
|
radii: unknown;
|
|
317
324
|
sizes: unknown;
|
|
318
325
|
zIndices: unknown;
|
|
326
|
+
toastPosition: unknown;
|
|
319
327
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
320
328
|
m: (value: {
|
|
321
329
|
readonly [$$ScaleValue]: "space";
|
|
@@ -380,7 +388,7 @@ export declare const PageDialogTrigger: import("@stitches/react/types/styled-com
|
|
|
380
388
|
};
|
|
381
389
|
height: {
|
|
382
390
|
readonly [$$PropertyValue]: "width";
|
|
383
|
-
};
|
|
391
|
+
};
|
|
384
392
|
};
|
|
385
393
|
subtleColor: (value: string) => {
|
|
386
394
|
color: string;
|
|
@@ -394,8 +402,8 @@ interface PageDialogProps extends Omit<IDialog, 'children'>, DialogContentProps
|
|
|
394
402
|
/** Force to mobile view or desktop view, if undefined PageDialog will be responsive according to current screen size */
|
|
395
403
|
isMobile?: boolean | undefined;
|
|
396
404
|
/** Set default behavior when opening dialog with form. Usually used with prevent default*/
|
|
397
|
-
onOpenAutoFocus?:
|
|
398
|
-
onCloseAutoFocus?:
|
|
405
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
406
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
399
407
|
onPointerDownOutside?: (event: PointerDownOutsideEvent) => void;
|
|
400
408
|
onInteractOutside?: (event: PointerDownOutsideEvent | FocusOutsideEvent) => void;
|
|
401
409
|
/**
|
|
@@ -431,6 +439,7 @@ export declare const PageDialog: {
|
|
|
431
439
|
radii: unknown;
|
|
432
440
|
sizes: unknown;
|
|
433
441
|
zIndices: unknown;
|
|
442
|
+
toastPosition: unknown;
|
|
434
443
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
435
444
|
m: (value: {
|
|
436
445
|
readonly [$$ScaleValue]: "space";
|
|
@@ -495,7 +504,7 @@ export declare const PageDialog: {
|
|
|
495
504
|
};
|
|
496
505
|
height: {
|
|
497
506
|
readonly [$$PropertyValue]: "width";
|
|
498
|
-
};
|
|
507
|
+
};
|
|
499
508
|
};
|
|
500
509
|
subtleColor: (value: string) => {
|
|
501
510
|
color: string;
|
|
@@ -527,6 +536,7 @@ export declare const PageDialog: {
|
|
|
527
536
|
radii: unknown;
|
|
528
537
|
sizes: unknown;
|
|
529
538
|
zIndices: unknown;
|
|
539
|
+
toastPosition: unknown;
|
|
530
540
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
531
541
|
m: (value: {
|
|
532
542
|
readonly [$$ScaleValue]: "space";
|
|
@@ -591,7 +601,7 @@ export declare const PageDialog: {
|
|
|
591
601
|
};
|
|
592
602
|
height: {
|
|
593
603
|
readonly [$$PropertyValue]: "width";
|
|
594
|
-
};
|
|
604
|
+
};
|
|
595
605
|
};
|
|
596
606
|
subtleColor: (value: string) => {
|
|
597
607
|
color: string;
|
|
@@ -623,6 +633,7 @@ export declare const PageDialog: {
|
|
|
623
633
|
radii: unknown;
|
|
624
634
|
sizes: unknown;
|
|
625
635
|
zIndices: unknown;
|
|
636
|
+
toastPosition: unknown;
|
|
626
637
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
627
638
|
m: (value: {
|
|
628
639
|
readonly [$$ScaleValue]: "space";
|
|
@@ -687,7 +698,7 @@ export declare const PageDialog: {
|
|
|
687
698
|
};
|
|
688
699
|
height: {
|
|
689
700
|
readonly [$$PropertyValue]: "width";
|
|
690
|
-
};
|
|
701
|
+
};
|
|
691
702
|
};
|
|
692
703
|
subtleColor: (value: string) => {
|
|
693
704
|
color: string;
|
|
@@ -719,6 +730,7 @@ export declare const PageDialog: {
|
|
|
719
730
|
radii: unknown;
|
|
720
731
|
sizes: unknown;
|
|
721
732
|
zIndices: unknown;
|
|
733
|
+
toastPosition: unknown;
|
|
722
734
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
723
735
|
m: (value: {
|
|
724
736
|
readonly [$$ScaleValue]: "space";
|
|
@@ -783,7 +795,7 @@ export declare const PageDialog: {
|
|
|
783
795
|
};
|
|
784
796
|
height: {
|
|
785
797
|
readonly [$$PropertyValue]: "width";
|
|
786
|
-
};
|
|
798
|
+
};
|
|
787
799
|
};
|
|
788
800
|
subtleColor: (value: string) => {
|
|
789
801
|
color: string;
|