@oliasoft-open-source/react-ui-library 3.10.0 → 3.10.1

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 CHANGED
@@ -16122,7 +16122,8 @@ const Drawer = ({
16122
16122
  testId,
16123
16123
  onResize,
16124
16124
  getActiveTab,
16125
- onClose
16125
+ onClose,
16126
+ onOpen
16126
16127
  }) => {
16127
16128
  const isStandardButton = button2 === true;
16128
16129
  const isCustomButton = !isStandardButton && isValidElement(button2);
@@ -16136,6 +16137,7 @@ const Drawer = ({
16136
16137
  onClose(index2);
16137
16138
  } else if (!open) {
16138
16139
  setOpen(true);
16140
+ onOpen(tabs2[index2]);
16139
16141
  if (onResize && width < MIN_OPEN_WIDTH) {
16140
16142
  onResize(MIN_OPEN_WIDTH);
16141
16143
  }
@@ -16213,7 +16215,8 @@ Drawer.defaultProps = {
16213
16215
  testId: void 0,
16214
16216
  onResize: null,
16215
16217
  getActiveTab: null,
16216
- onClose: null
16218
+ onClose: null,
16219
+ onOpen: null
16217
16220
  };
16218
16221
  Drawer.propTypes = {
16219
16222
  background: propTypes$1.exports.string,
@@ -16249,7 +16252,8 @@ Drawer.propTypes = {
16249
16252
  setActiveTab: propTypes$1.exports.func,
16250
16253
  onResize: propTypes$1.exports.func,
16251
16254
  getActiveTab: propTypes$1.exports.func,
16252
- onClose: propTypes$1.exports.func
16255
+ onClose: propTypes$1.exports.func,
16256
+ onOpen: propTypes$1.exports.func
16253
16257
  };
16254
16258
  const empty$2 = "_empty_1pswm_335";
16255
16259
  const text$2 = "_text_1pswm_345";