rc-drawer
Advanced tools
Comparing version 7.2.0 to 8.0.0
@@ -21,3 +21,3 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
return /*#__PURE__*/React.createElement("div", _extends({ | ||
className: classNames("".concat(prefixCls, "-content"), className), | ||
className: classNames("".concat(prefixCls, "-section"), className), | ||
role: "dialog", | ||
@@ -24,0 +24,0 @@ ref: mergedRef |
@@ -224,4 +224,4 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; | ||
prefixCls: prefixCls, | ||
className: classNames(className, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.content), | ||
style: _objectSpread(_objectSpread({}, style), styles === null || styles === void 0 ? void 0 : styles.content) | ||
className: classNames(className, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.section), | ||
style: _objectSpread(_objectSpread({}, style), styles === null || styles === void 0 ? void 0 : styles.section) | ||
}, pickAttrs(props, { | ||
@@ -228,0 +228,0 @@ aria: true |
@@ -5,3 +5,3 @@ /// <reference types="react" /> | ||
wrapper?: string; | ||
content?: string; | ||
section?: string; | ||
} | ||
@@ -11,3 +11,3 @@ export interface DrawerStyles { | ||
wrapper?: React.CSSProperties; | ||
content?: React.CSSProperties; | ||
section?: React.CSSProperties; | ||
} |
@@ -29,3 +29,3 @@ "use strict"; | ||
return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({ | ||
className: (0, _classnames.default)("".concat(prefixCls, "-content"), className), | ||
className: (0, _classnames.default)("".concat(prefixCls, "-section"), className), | ||
role: "dialog", | ||
@@ -32,0 +32,0 @@ ref: mergedRef |
@@ -232,4 +232,4 @@ "use strict"; | ||
prefixCls: prefixCls, | ||
className: (0, _classnames.default)(className, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.content), | ||
style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, style), styles === null || styles === void 0 ? void 0 : styles.content) | ||
className: (0, _classnames.default)(className, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.section), | ||
style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, style), styles === null || styles === void 0 ? void 0 : styles.section) | ||
}, (0, _pickAttrs.default)(props, { | ||
@@ -236,0 +236,0 @@ aria: true |
@@ -5,3 +5,3 @@ /// <reference types="react" /> | ||
wrapper?: string; | ||
content?: string; | ||
section?: string; | ||
} | ||
@@ -11,3 +11,3 @@ export interface DrawerStyles { | ||
wrapper?: React.CSSProperties; | ||
content?: React.CSSProperties; | ||
section?: React.CSSProperties; | ||
} |
{ | ||
"name": "rc-drawer", | ||
"version": "7.2.0", | ||
"version": "8.0.0", | ||
"description": "drawer component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -63,3 +63,3 @@ # rc-drawer | ||
| maskStyle | CSSProperties | null | mask style | | ||
| afterVisibleChange | func | null | transition end callback(open) | | ||
| afterOpenChange | func | null | transition end callback(open) | | ||
| onClose | func | null | close click function | | ||
@@ -66,0 +66,0 @@ | keyboard | boolean | true | Whether support press esc to close | |