@lobehub/ui 1.153.7 → 1.153.8

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.
@@ -3,7 +3,7 @@ import { type ModalProps as AntModalProps } from 'antd';
3
3
  import { type ActionIconProps } from "../ActionIcon";
4
4
  export type ModalProps = AntModalProps & {
5
5
  allowFullscreen?: boolean;
6
- closeIconProps?: ActionIconProps;
6
+ closeIconProps?: Omit<ActionIconProps, 'size'>;
7
7
  enableResponsive?: boolean;
8
8
  maxHeight?: string | number | false;
9
9
  paddings?: {
package/es/Modal/index.js CHANGED
@@ -69,9 +69,9 @@ var Modal = /*#__PURE__*/memo(function (_ref3) {
69
69
  restStyles = _objectWithoutProperties(stylesProps, _excluded2);
70
70
  if (enableResponsive && mobile) return /*#__PURE__*/_jsx(Drawer, _objectSpread(_objectSpread({
71
71
  className: cx(styles.drawerContent, className),
72
- closeIcon: /*#__PURE__*/_jsx(ActionIcon, _objectSpread({
72
+ closeIcon: /*#__PURE__*/_jsx(ActionIcon, {
73
73
  icon: X
74
- }, closeIconProps)),
74
+ }),
75
75
  destroyOnClose: destroyOnClose,
76
76
  extra: allowFullscreen && /*#__PURE__*/_jsx(ActionIcon, {
77
77
  icon: fullscreen ? Minimize2 : Maximize2,
@@ -104,12 +104,12 @@ var Modal = /*#__PURE__*/memo(function (_ref3) {
104
104
  children: /*#__PURE__*/_jsx(AntModal, _objectSpread(_objectSpread({
105
105
  className: cx(styles.content, className),
106
106
  closable: true,
107
- closeIcon: /*#__PURE__*/_jsx(Icon, {
107
+ closeIcon: /*#__PURE__*/_jsx(Icon, _objectSpread({
108
108
  icon: X,
109
109
  size: {
110
110
  fontSize: 20
111
111
  }
112
- }),
112
+ }, closeIconProps)),
113
113
  destroyOnClose: destroyOnClose,
114
114
  footer: footer,
115
115
  maskClosable: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.153.7",
3
+ "version": "1.153.8",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",