@oliasoft-open-source/react-ui-library 3.9.22 → 3.9.23
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.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16121,7 +16121,8 @@ const Drawer = ({
|
|
|
16121
16121
|
setActiveTab: setActiveTabProp,
|
|
16122
16122
|
testId,
|
|
16123
16123
|
onResize,
|
|
16124
|
-
getActiveTab
|
|
16124
|
+
getActiveTab,
|
|
16125
|
+
onClose
|
|
16125
16126
|
}) => {
|
|
16126
16127
|
const isStandardButton = button2 === true;
|
|
16127
16128
|
const isCustomButton = !isStandardButton && isValidElement(button2);
|
|
@@ -16132,6 +16133,7 @@ const Drawer = ({
|
|
|
16132
16133
|
const handleTabClick = (index2) => {
|
|
16133
16134
|
if (activeTab === index2 && open) {
|
|
16134
16135
|
setOpen(false);
|
|
16136
|
+
onClose(index2);
|
|
16135
16137
|
} else if (!open) {
|
|
16136
16138
|
setOpen(true);
|
|
16137
16139
|
if (onResize && width < MIN_OPEN_WIDTH) {
|
|
@@ -16210,7 +16212,8 @@ Drawer.defaultProps = {
|
|
|
16210
16212
|
setActiveTab: void 0,
|
|
16211
16213
|
testId: void 0,
|
|
16212
16214
|
onResize: null,
|
|
16213
|
-
getActiveTab: null
|
|
16215
|
+
getActiveTab: null,
|
|
16216
|
+
onClose: null
|
|
16214
16217
|
};
|
|
16215
16218
|
Drawer.propTypes = {
|
|
16216
16219
|
background: propTypes$1.exports.string,
|
|
@@ -16245,7 +16248,8 @@ Drawer.propTypes = {
|
|
|
16245
16248
|
activeTab: propTypes$1.exports.number,
|
|
16246
16249
|
setActiveTab: propTypes$1.exports.func,
|
|
16247
16250
|
onResize: propTypes$1.exports.func,
|
|
16248
|
-
getActiveTab: propTypes$1.exports.func
|
|
16251
|
+
getActiveTab: propTypes$1.exports.func,
|
|
16252
|
+
onClose: propTypes$1.exports.func
|
|
16249
16253
|
};
|
|
16250
16254
|
const empty$2 = "_empty_1pswm_335";
|
|
16251
16255
|
const text$2 = "_text_1pswm_345";
|