@lobehub/ui 1.154.0 → 1.154.1

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,9 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { type ModalProps as AntModalProps } from 'antd';
3
- import { type ActionIconProps } from "../ActionIcon";
4
3
  export type ModalProps = AntModalProps & {
5
4
  allowFullscreen?: boolean;
6
- closeIconProps?: Omit<ActionIconProps, 'size'>;
7
5
  enableResponsive?: boolean;
8
6
  maxHeight?: string | number | false;
9
7
  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", "closeIconProps", "footer", "styles"],
7
+ var _excluded = ["allowFullscreen", "children", "title", "className", "wrapClassName", "width", "onCancel", "open", "destroyOnClose", "paddings", "maxHeight", "enableResponsive", "footer", "styles"],
8
8
  _excluded2 = ["body"];
9
9
  var _templateObject, _templateObject2, _templateObject3, _templateObject4;
10
10
  import { Modal as AntModal, ConfigProvider, Drawer } from 'antd';
@@ -48,7 +48,6 @@ 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,
52
51
  footer = _ref3.footer,
53
52
  _ref3$styles = _ref3.styles,
54
53
  stylesProps = _ref3$styles === void 0 ? {} : _ref3$styles,
@@ -104,12 +103,12 @@ var Modal = /*#__PURE__*/memo(function (_ref3) {
104
103
  children: /*#__PURE__*/_jsx(AntModal, _objectSpread(_objectSpread({
105
104
  className: cx(styles.content, className),
106
105
  closable: true,
107
- closeIcon: /*#__PURE__*/_jsx(Icon, _objectSpread({
106
+ closeIcon: /*#__PURE__*/_jsx(Icon, {
108
107
  icon: X,
109
108
  size: {
110
109
  fontSize: 20
111
110
  }
112
- }, closeIconProps)),
111
+ }),
113
112
  destroyOnClose: destroyOnClose,
114
113
  footer: footer,
115
114
  maskClosable: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.154.0",
3
+ "version": "1.154.1",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",