@lobehub/ui 1.100.0 → 1.101.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.
package/es/Form/style.js CHANGED
@@ -4,9 +4,10 @@ import { createStyles } from 'antd-style';
4
4
  export var useStyles = createStyles(function (_ref) {
5
5
  var css = _ref.css,
6
6
  token = _ref.token,
7
- prefixCls = _ref.prefixCls;
7
+ prefixCls = _ref.prefixCls,
8
+ responsive = _ref.responsive;
8
9
  return {
9
10
  footer: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n "]))),
10
- form: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n gap: 16px;\n\n .", "-form-item {\n margin: 0 !important;\n }\n\n .", "-form-item .", "-form-item-label > label {\n height: unset;\n }\n\n .", "-row {\n position: relative;\n flex-wrap: nowrap;\n }\n\n .", "-form-item-label {\n position: relative;\n flex: 1;\n max-width: 100%;\n }\n\n .", "-form-item-control {\n position: relative;\n flex: 0;\n min-width: unset !important;\n }\n\n .", "-collapse-item {\n overflow: hidden !important;\n border-radius: ", "px !important;\n }\n "])), prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, token.borderRadius)
11
+ form: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n gap: 16px;\n\n ", " {\n gap: 0;\n }\n\n .", "-form-item {\n margin: 0 !important;\n }\n\n .", "-form-item .", "-form-item-label > label {\n height: unset;\n }\n\n .", "-row {\n position: relative;\n flex-wrap: nowrap;\n }\n\n .", "-form-item-label {\n position: relative;\n flex: 1;\n max-width: 100%;\n }\n\n .", "-form-item-control {\n position: relative;\n flex: 0;\n min-width: unset !important;\n }\n\n .", "-collapse-item {\n overflow: hidden !important;\n border-radius: ", "px !important;\n }\n "])), responsive.mobile, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, token.borderRadius)
11
12
  };
12
13
  });
package/es/Modal/index.js CHANGED
@@ -5,10 +5,11 @@ var _excluded = ["children", "title", "className", "wrapClassName", "width", "on
5
5
  var _templateObject, _templateObject2;
6
6
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7
7
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
8
- import { Modal as AntModal } from 'antd';
8
+ import { Modal as AntModal, ConfigProvider } from 'antd';
9
9
  import { Drawer } from 'antd';
10
10
  import { createStyles, useResponsive } from 'antd-style';
11
11
  import { X } from 'lucide-react';
12
+ import { lighten } from 'polished';
12
13
  import { memo } from 'react';
13
14
  import ActionIcon from "../ActionIcon";
14
15
  import Icon from "../Icon";
@@ -69,24 +70,31 @@ var Modal = /*#__PURE__*/memo(function (_ref2) {
69
70
  position: 'bottom'
70
71
  })]
71
72
  });
72
- return /*#__PURE__*/_jsx(AntModal, _objectSpread(_objectSpread({
73
- className: cx(styles.content, className),
74
- closable: true,
75
- closeIcon: /*#__PURE__*/_jsx(Icon, {
76
- icon: X,
77
- size: {
78
- fontSize: 20
73
+ return /*#__PURE__*/_jsx(ConfigProvider, {
74
+ theme: {
75
+ token: {
76
+ colorBgElevated: lighten(0.005, theme.colorBgContainer)
79
77
  }
80
- }),
81
- destroyOnClose: destroyOnClose,
82
- maskClosable: true,
83
- onCancel: onCancel,
84
- open: open,
85
- title: title,
86
- width: width,
87
- wrapClassName: cx(styles.wrap, wrapClassName)
88
- }, props), {}, {
89
- children: children
90
- }));
78
+ },
79
+ children: /*#__PURE__*/_jsx(AntModal, _objectSpread(_objectSpread({
80
+ className: cx(styles.content, className),
81
+ closable: true,
82
+ closeIcon: /*#__PURE__*/_jsx(Icon, {
83
+ icon: X,
84
+ size: {
85
+ fontSize: 20
86
+ }
87
+ }),
88
+ destroyOnClose: destroyOnClose,
89
+ maskClosable: true,
90
+ onCancel: onCancel,
91
+ open: open,
92
+ title: title,
93
+ width: width,
94
+ wrapClassName: cx(styles.wrap, wrapClassName)
95
+ }, props), {}, {
96
+ children: children
97
+ }))
98
+ });
91
99
  });
92
100
  export default Modal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.100.0",
3
+ "version": "1.101.1",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",