@chlp-tech/rpa-ui 0.0.3 → 0.0.4

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.
@@ -18,6 +18,7 @@ interface DrawerTaskProps {
18
18
  icon2?: React.ReactNode;
19
19
  }[];
20
20
  };
21
+ hideLeftTab?: boolean;
21
22
  width?: number;
22
23
  onClose?: () => void;
23
24
  onOpen?: () => void;
@@ -103,7 +103,7 @@ var DrawerTask = /*#__PURE__*/forwardRef(function (props, ref) {
103
103
  className: styles["drawer_wrap"]
104
104
  }, /*#__PURE__*/React.createElement("div", {
105
105
  className: styles["drawer_wrap__left"]
106
- }, props.back && renderBack(), (_props$menu4 = props.menu) === null || _props$menu4 === void 0 || (_props$menu4 = _props$menu4.items) === null || _props$menu4 === void 0 ? void 0 : _props$menu4.map(function (item) {
106
+ }, props.back && renderBack(), !props.hideLeftTab && ((_props$menu4 = props.menu) === null || _props$menu4 === void 0 || (_props$menu4 = _props$menu4.items) === null || _props$menu4 === void 0 ? void 0 : _props$menu4.map(function (item) {
107
107
  return /*#__PURE__*/React.createElement(ActivateTab, {
108
108
  key: item.key,
109
109
  id: item.key,
@@ -115,7 +115,7 @@ var DrawerTask = /*#__PURE__*/forwardRef(function (props, ref) {
115
115
  return setActiveItem(key);
116
116
  }
117
117
  });
118
- })), /*#__PURE__*/React.createElement("div", {
118
+ }))), /*#__PURE__*/React.createElement("div", {
119
119
  className: styles["drawer_wrap__right"]
120
120
  }, /*#__PURE__*/React.createElement("div", {
121
121
  className: styles["drawer_wrap__right__title"]
@@ -9,6 +9,8 @@
9
9
  }
10
10
 
11
11
  &__right {
12
+ display: flex;
13
+ flex-direction: column;
12
14
  flex: 1;
13
15
  min-width: 0;
14
16
  transition: width 0.3s ease-in-out;
@@ -28,6 +30,9 @@
28
30
  }
29
31
 
30
32
  &__body {
33
+ flex: 1;
34
+ min-height: 0;
35
+ overflow: auto;
31
36
  padding: 24px;
32
37
  transition: padding 0.3s ease-in-out;
33
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chlp-tech/rpa-ui",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "rpa-ui",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",