@lobehub/ui 1.153.6 → 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.
@@ -1,7 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { type ModalProps as AntModalProps } from 'antd';
3
+ import { type ActionIconProps } from "../ActionIcon";
3
4
  export type ModalProps = AntModalProps & {
4
5
  allowFullscreen?: boolean;
6
+ closeIconProps?: Omit<ActionIconProps, 'size'>;
5
7
  enableResponsive?: boolean;
6
8
  maxHeight?: string | number | false;
7
9
  paddings?: {
package/es/Modal/index.js CHANGED
@@ -4,7 +4,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
4
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
5
5
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
6
6
  import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
7
- var _excluded = ["allowFullscreen", "children", "title", "className", "wrapClassName", "width", "onCancel", "open", "destroyOnClose", "paddings", "maxHeight", "enableResponsive", "footer", "styles"],
7
+ var _excluded = ["allowFullscreen", "children", "title", "className", "wrapClassName", "width", "onCancel", "open", "destroyOnClose", "paddings", "maxHeight", "enableResponsive", "closeIconProps", "footer", "styles"],
8
8
  _excluded2 = ["body"];
9
9
  var _templateObject, _templateObject2, _templateObject3, _templateObject4;
10
10
  import { Modal as AntModal, ConfigProvider, Drawer } from 'antd';
@@ -48,6 +48,7 @@ var Modal = /*#__PURE__*/memo(function (_ref3) {
48
48
  maxHeight = _ref3$maxHeight === void 0 ? '75dvh' : _ref3$maxHeight,
49
49
  _ref3$enableResponsiv = _ref3.enableResponsive,
50
50
  enableResponsive = _ref3$enableResponsiv === void 0 ? true : _ref3$enableResponsiv,
51
+ closeIconProps = _ref3.closeIconProps,
51
52
  footer = _ref3.footer,
52
53
  _ref3$styles = _ref3.styles,
53
54
  stylesProps = _ref3$styles === void 0 ? {} : _ref3$styles,
@@ -103,12 +104,12 @@ var Modal = /*#__PURE__*/memo(function (_ref3) {
103
104
  children: /*#__PURE__*/_jsx(AntModal, _objectSpread(_objectSpread({
104
105
  className: cx(styles.content, className),
105
106
  closable: true,
106
- closeIcon: /*#__PURE__*/_jsx(Icon, {
107
+ closeIcon: /*#__PURE__*/_jsx(Icon, _objectSpread({
107
108
  icon: X,
108
109
  size: {
109
110
  fontSize: 20
110
111
  }
111
- }),
112
+ }, closeIconProps)),
112
113
  destroyOnClose: destroyOnClose,
113
114
  footer: footer,
114
115
  maskClosable: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.153.6",
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",