@sinco/react 1.0.11-rc.2 → 1.0.11-rc.3
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +2 -2
- package/package.json +1 -1
- package/src/lib/Components/Drawer.d.ts +2 -2
package/index.js
CHANGED
@@ -17195,7 +17195,7 @@ const stylesDrawerActions = {
|
|
17195
17195
|
};
|
17196
17196
|
const DrawerComponent = ({
|
17197
17197
|
title,
|
17198
|
-
|
17198
|
+
children,
|
17199
17199
|
actions,
|
17200
17200
|
position,
|
17201
17201
|
open,
|
@@ -17225,7 +17225,7 @@ const DrawerComponent = ({
|
|
17225
17225
|
})))), /*#__PURE__*/React__default.createElement(Box$2, {
|
17226
17226
|
onClick: handleDrawerAcciones,
|
17227
17227
|
sx: stylesDrawerContent
|
17228
|
-
},
|
17228
|
+
}, children), stateActions && /*#__PURE__*/React__default.createElement(Box$2, {
|
17229
17229
|
sx: stylesDrawerActions
|
17230
17230
|
}, actions))));
|
17231
17231
|
};
|
package/package.json
CHANGED
@@ -2,10 +2,10 @@ import { ReactNode } from 'react';
|
|
2
2
|
export type handleDrawerPosition = 'left' | 'right';
|
3
3
|
export interface DrawerComponentProperties {
|
4
4
|
title: string;
|
5
|
-
|
5
|
+
children: ReactNode;
|
6
6
|
actions: ReactNode;
|
7
7
|
position?: handleDrawerPosition;
|
8
8
|
open: boolean;
|
9
9
|
onClose: () => void;
|
10
10
|
}
|
11
|
-
export declare const DrawerComponent: ({ title,
|
11
|
+
export declare const DrawerComponent: ({ title, children, actions, position, open, onClose, }: DrawerComponentProperties) => JSX.Element;
|