@rc-component/dialog 1.8.4 → 1.9.0

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.
@@ -96,8 +96,9 @@ const Panel = /*#__PURE__*/React.forwardRef((props, ref) => {
96
96
  onClick: onClose,
97
97
  "aria-label": "Close"
98
98
  }, ariaProps, {
99
- className: `${prefixCls}-close`,
100
- disabled: closeBtnIsDisabled
99
+ className: clsx(`${prefixCls}-close`, modalClassNames?.close),
100
+ disabled: closeBtnIsDisabled,
101
+ style: modalStyles?.close
101
102
  }), closableObj.closeIcon) : null;
102
103
  const content = /*#__PURE__*/React.createElement("div", {
103
104
  className: clsx(`${prefixCls}-container`, modalClassNames?.container),
@@ -1,6 +1,6 @@
1
1
  import type { GetContainer } from '@rc-component/util/lib/PortalWrapper';
2
2
  import type { CSSProperties, ReactNode, SyntheticEvent } from 'react';
3
- export type SemanticName = 'header' | 'body' | 'footer' | 'container' | 'title' | 'wrapper' | 'mask';
3
+ export type SemanticName = 'header' | 'body' | 'footer' | 'container' | 'title' | 'wrapper' | 'mask' | 'close';
4
4
  export type ModalClassNames = Partial<Record<SemanticName, string>>;
5
5
  export type ModalStyles = Partial<Record<SemanticName, CSSProperties>>;
6
6
  export type ClosableType = {
@@ -105,8 +105,9 @@ const Panel = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
105
105
  onClick: onClose,
106
106
  "aria-label": "Close"
107
107
  }, ariaProps, {
108
- className: `${prefixCls}-close`,
109
- disabled: closeBtnIsDisabled
108
+ className: (0, _clsx.clsx)(`${prefixCls}-close`, modalClassNames?.close),
109
+ disabled: closeBtnIsDisabled,
110
+ style: modalStyles?.close
110
111
  }), closableObj.closeIcon) : null;
111
112
  const content = /*#__PURE__*/_react.default.createElement("div", {
112
113
  className: (0, _clsx.clsx)(`${prefixCls}-container`, modalClassNames?.container),
@@ -1,6 +1,6 @@
1
1
  import type { GetContainer } from '@rc-component/util/lib/PortalWrapper';
2
2
  import type { CSSProperties, ReactNode, SyntheticEvent } from 'react';
3
- export type SemanticName = 'header' | 'body' | 'footer' | 'container' | 'title' | 'wrapper' | 'mask';
3
+ export type SemanticName = 'header' | 'body' | 'footer' | 'container' | 'title' | 'wrapper' | 'mask' | 'close';
4
4
  export type ModalClassNames = Partial<Record<SemanticName, string>>;
5
5
  export type ModalStyles = Partial<Record<SemanticName, CSSProperties>>;
6
6
  export type ClosableType = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rc-component/dialog",
3
- "version": "1.8.4",
3
+ "version": "1.9.0",
4
4
  "description": "dialog ui component for react",
5
5
  "keywords": [
6
6
  "react",