@sellgar/kit 0.0.174 → 0.0.175
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/dist/index.css +1 -1
- package/dist/index.js +1767 -1733
- package/package.json +1 -1
- package/types/components/drawer/drawer.d.ts +12 -7
package/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { Close } from './close';
|
|
2
3
|
interface IProps {
|
|
3
4
|
isClosable?: boolean;
|
|
5
|
+
isEscapeClosable?: boolean;
|
|
4
6
|
isOverlayClosable?: boolean;
|
|
5
7
|
open?: boolean;
|
|
6
8
|
initialOpen?: boolean;
|
|
7
9
|
onOpen?(): void;
|
|
8
10
|
onClose?(): void;
|
|
9
11
|
}
|
|
10
|
-
export declare function useDrawer({ initialOpen, isClosable, isOverlayClosable, open: controlledOpen, onOpen, onClose }?: IProps): {
|
|
12
|
+
export declare function useDrawer({ initialOpen, isClosable, isEscapeClosable, isOverlayClosable, open: controlledOpen, onOpen, onClose, }?: IProps): {
|
|
11
13
|
placement: import('@floating-ui/utils').Placement;
|
|
12
14
|
strategy: import('@floating-ui/utils').Strategy;
|
|
13
15
|
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
@@ -50,10 +52,10 @@ export declare function useDrawer({ initialOpen, isClosable, isOverlayClosable,
|
|
|
50
52
|
active?: boolean;
|
|
51
53
|
selected?: boolean;
|
|
52
54
|
}) => Record<string, unknown>;
|
|
53
|
-
open: boolean;
|
|
55
|
+
open: boolean | undefined;
|
|
54
56
|
onOpen: (() => void) | undefined;
|
|
55
57
|
onClose: (() => void) | undefined;
|
|
56
|
-
isClosable: boolean;
|
|
58
|
+
isClosable: boolean | undefined;
|
|
57
59
|
};
|
|
58
60
|
export declare const useDrawerContext: () => {
|
|
59
61
|
placement: import('@floating-ui/utils').Placement;
|
|
@@ -98,13 +100,16 @@ export declare const useDrawerContext: () => {
|
|
|
98
100
|
active?: boolean;
|
|
99
101
|
selected?: boolean;
|
|
100
102
|
}) => Record<string, unknown>;
|
|
101
|
-
open: boolean;
|
|
103
|
+
open: boolean | undefined;
|
|
102
104
|
onOpen: (() => void) | undefined;
|
|
103
105
|
onClose: (() => void) | undefined;
|
|
104
|
-
isClosable: boolean;
|
|
106
|
+
isClosable: boolean | undefined;
|
|
105
107
|
};
|
|
106
108
|
export declare const Dialog: React.FC<React.PropsWithChildren<IProps>>;
|
|
107
109
|
export declare const DialogContent: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
108
|
-
export declare const
|
|
109
|
-
|
|
110
|
+
export declare const DrawerComponent: React.FC<React.PropsWithChildren<IProps>>;
|
|
111
|
+
type TDrawer = typeof DrawerComponent & {
|
|
112
|
+
Close: typeof Close;
|
|
113
|
+
};
|
|
114
|
+
export declare const Drawer: TDrawer;
|
|
110
115
|
export {};
|