one-design-next 0.0.22 → 0.0.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.
@@ -155,14 +155,17 @@ var Drawer = function Drawer(_ref) {
155
155
  return /*#__PURE__*/React.createElement(ModalRoot, {
156
156
  open: visible,
157
157
  onOpenChange: onVisibleChange,
158
- disablePointerDismissal: !maskVisible || !maskClosable
158
+ disablePointerDismissal: true
159
159
  }, /*#__PURE__*/React.createElement(ModalPortal, {
160
160
  container: container
161
161
  }, maskVisible && /*#__PURE__*/React.createElement(ModalOverlay, {
162
162
  visible: visible,
163
163
  "data-odn-modal-overlay": "drawer",
164
164
  style: maskStyle,
165
- className: maskClassName
165
+ className: maskClassName,
166
+ onClick: maskClosable ? function () {
167
+ return onVisibleChange === null || onVisibleChange === void 0 ? void 0 : onVisibleChange(false);
168
+ } : undefined
166
169
  }), /*#__PURE__*/React.createElement(ModalContent, {
167
170
  "data-odn-drawer-content": true,
168
171
  "data-odn-drawer-placement": placement,
@@ -84,10 +84,12 @@ export function InvocationParamPopover(_ref) {
84
84
  position: 'absolute',
85
85
  left: pos.left,
86
86
  top: pos.top,
87
- width: pos.width,
88
- zIndex: 1000
87
+ width: pos.width
89
88
  },
90
- "data-odn-popup": true
89
+ "data-odn-popup": true,
90
+ onPointerDown: function onPointerDown(e) {
91
+ return e.stopPropagation();
92
+ }
91
93
  }, /*#__PURE__*/React.createElement("div", {
92
94
  "data-odn-invocation-param-popover-body": true
93
95
  }, /*#__PURE__*/React.createElement("div", {
@@ -85,6 +85,7 @@
85
85
  * InvocationParamPopover · 参数编辑浮层壳
86
86
  * ----------------------------------------------------------------- */
87
87
  [data-odn-invocation-param-popover] {
88
+ z-index: var(--odn-z-index-popup);
88
89
  width: auto;
89
90
  min-width: 0;
90
91
  max-width: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "one-design-next",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "description": "One Design Next from TAD@tencent.com",
5
5
  "packageManager": "pnpm@10.33.0",
6
6
  "module": "dist/index.js",