@trackunit/react-drawer 1.7.124 → 1.7.129
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-drawer",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.129",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"react": "19.0.0",
|
|
11
11
|
"react-swipeable": "^7.0.1",
|
|
12
|
-
"@trackunit/react-components": "1.10.
|
|
13
|
-
"@trackunit/css-class-variance-utilities": "1.7.
|
|
14
|
-
"@trackunit/ui-icons": "1.7.
|
|
15
|
-
"@trackunit/i18n-library-translation": "1.7.
|
|
12
|
+
"@trackunit/react-components": "1.10.68",
|
|
13
|
+
"@trackunit/css-class-variance-utilities": "1.7.93",
|
|
14
|
+
"@trackunit/ui-icons": "1.7.94",
|
|
15
|
+
"@trackunit/i18n-library-translation": "1.7.111"
|
|
16
16
|
},
|
|
17
17
|
"module": "./index.esm.js",
|
|
18
18
|
"main": "./index.cjs.js",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { CommonProps } from "@trackunit/react-components";
|
|
2
|
-
import { Ref } from "react";
|
|
2
|
+
import { ReactNode, Ref, RefObject } from "react";
|
|
3
3
|
import type { DrawerPosition } from "../../types";
|
|
4
4
|
export declare const TRANSITION_DURATION = 100;
|
|
5
5
|
export interface DrawerRefsHandle {
|
|
6
|
-
dialogRef:
|
|
7
|
-
dialogContentRef:
|
|
6
|
+
dialogRef: RefObject<HTMLDivElement>;
|
|
7
|
+
dialogContentRef: RefObject<HTMLDivElement>;
|
|
8
8
|
}
|
|
9
9
|
export interface DrawerProps extends CommonProps {
|
|
10
10
|
/**
|
|
@@ -31,7 +31,7 @@ export interface DrawerProps extends CommonProps {
|
|
|
31
31
|
/**
|
|
32
32
|
* The child node that will be rendered inside the drawer.
|
|
33
33
|
*/
|
|
34
|
-
children?:
|
|
34
|
+
children?: ReactNode;
|
|
35
35
|
/**
|
|
36
36
|
* Determines whether the drawer component should remain mounted in the DOM when it is closed.
|
|
37
37
|
* If set to true, the drawer will not be unmounted when closed
|