@sellgar/kit 0.0.135 → 0.0.137

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sellgar/kit",
3
3
  "type": "module",
4
- "version": "0.0.135",
4
+ "version": "0.0.137",
5
5
  "description": "Sellgar kit",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -1,11 +1,13 @@
1
1
  import { default as React } from 'react';
2
2
  interface IProps {
3
+ isClosable?: boolean;
4
+ isOverlayClosable?: boolean;
3
5
  open?: boolean;
4
6
  initialOpen?: boolean;
5
7
  onOpen?(): void;
6
8
  onClose?(): void;
7
9
  }
8
- export declare function useDrawer({ initialOpen, open: controlledOpen, onOpen, onClose }?: IProps): {
10
+ export declare function useDrawer({ initialOpen, isClosable, isOverlayClosable, open: controlledOpen, onOpen, onClose }?: IProps): {
9
11
  placement: import('@floating-ui/utils').Placement;
10
12
  strategy: import('@floating-ui/utils').Strategy;
11
13
  middlewareData: import('@floating-ui/core').MiddlewareData;
@@ -51,6 +53,7 @@ export declare function useDrawer({ initialOpen, open: controlledOpen, onOpen, o
51
53
  open: boolean;
52
54
  onOpen: (() => void) | undefined;
53
55
  onClose: (() => void) | undefined;
56
+ isClosable: boolean;
54
57
  };
55
58
  export declare const useDrawerContext: () => {
56
59
  placement: import('@floating-ui/utils').Placement;
@@ -98,6 +101,7 @@ export declare const useDrawerContext: () => {
98
101
  open: boolean;
99
102
  onOpen: (() => void) | undefined;
100
103
  onClose: (() => void) | undefined;
104
+ isClosable: boolean;
101
105
  };
102
106
  export declare const Dialog: React.FC<React.PropsWithChildren<IProps>>;
103
107
  export declare const DialogContent: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  interface IProps extends React.HTMLAttributes<HTMLDivElement> {
3
- ref?: React.RefObject<HTMLDivElement> | React.RefCallback<HTMLDivElement>;
3
+ ref?: any;
4
4
  }
5
5
  export declare const Scrollbar: React.FC<React.PropsWithChildren<IProps>>;
6
6
  export {};