@smg-automotive/components 25.11.0-ST-1552-migrate-drawer.1 → 25.11.0-ST-1552-migrate-drawer.2
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/cjs/components/drawer/index.d.ts +6 -2
- package/dist/cjs/components/drawer/index.d.ts.map +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/drawer/index.d.ts +6 -2
- package/dist/esm/components/drawer/index.d.ts.map +1 -1
- package/dist/esm/components/drawer/index.js +2 -2
- package/dist/esm/components/drawer/index.js.map +1 -1
- package/dist/index.d.ts +8 -4
- package/package.json +1 -1
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { DrawerRootProps as DrawerProps } from '@chakra-ui/react';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
interface DrawerComponentProps extends Omit<DrawerProps, 'open' | 'onOpenChange'> {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const Drawer: FC<PropsWithChildren<DrawerComponentProps>>;
|
|
8
|
+
export type { DrawerComponentProps };
|
|
5
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/index.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAEL,eAAe,IAAI,WAAW,EAE/B,MAAM,kBAAkB,CAAC;AAE1B,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/index.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAEL,eAAe,IAAI,WAAW,EAE/B,MAAM,kBAAkB,CAAC;AAE1B,UAAU,oBACR,SAAQ,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc,CAAC;IAClD,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,CAQ9D,CAAC;AAEF,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -5656,8 +5656,8 @@ var Dialog = function (_a) {
|
|
|
5656
5656
|
};
|
|
5657
5657
|
|
|
5658
5658
|
var Drawer = function (props) {
|
|
5659
|
-
var children = props.children, drawerProps = __rest(props, ["children"]);
|
|
5660
|
-
return (React.createElement(react$1.Drawer.Root, __assign({}, drawerProps),
|
|
5659
|
+
var children = props.children, isOpen = props.isOpen, onClose = props.onClose, drawerProps = __rest(props, ["children", "isOpen", "onClose"]);
|
|
5660
|
+
return (React.createElement(react$1.Drawer.Root, __assign({ open: isOpen, onOpenChange: onClose }, drawerProps),
|
|
5661
5661
|
React.createElement(react$1.Portal, null, children)));
|
|
5662
5662
|
};
|
|
5663
5663
|
|