@lobehub/ui 1.155.4 → 1.155.6

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,6 +1,6 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
- var _excluded = ["classNames", "className", "style", "closable", "styles", "allowFullscreen", "title", "wrapClassName", "afterOpenChange", "width", "onCancel", "centered", "open", "afterClose", "destroyOnClose", "closeIcon", "paddings", "maxHeight", "enableResponsive", "zIndex", "mask", "getContainer", "keyboard", "focusTriggerAfterClose", "forceRender", "loading", "footer", "submitButtonProps", "submitLoading", "onFinish", "submitText", "variant", "gap", "onSubmit"],
3
+ var _excluded = ["classNames", "className", "style", "closable", "styles", "allowFullscreen", "title", "wrapClassName", "afterOpenChange", "width", "onCancel", "centered", "open", "afterClose", "destroyOnClose", "closeIcon", "paddings", "maxHeight", "enableResponsive", "zIndex", "mask", "getContainer", "keyboard", "focusTriggerAfterClose", "forceRender", "loading", "footer", "submitButtonProps", "submitLoading", "onFinish", "submitText", "variant", "gap", "onSubmit", "children"],
4
4
  _excluded2 = ["form", "footer"],
5
5
  _excluded3 = ["form", "footer"];
6
6
  import { Button } from 'antd';
@@ -48,6 +48,7 @@ var FormModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
48
48
  variant = _ref$variant === void 0 ? 'pure' : _ref$variant,
49
49
  gap = _ref.gap,
50
50
  onSubmit = _ref.onSubmit,
51
+ children = _ref.children,
51
52
  rest = _objectWithoutProperties(_ref, _excluded);
52
53
  var _useResponsive = useResponsive(),
53
54
  mobile = _useResponsive.mobile;
@@ -93,7 +94,7 @@ var FormModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
93
94
  width: width,
94
95
  wrapClassName: wrapClassName,
95
96
  zIndex: zIndex,
96
- children: /*#__PURE__*/_jsx(Form, _objectSpread({
97
+ children: /*#__PURE__*/_jsx(Form, _objectSpread(_objectSpread({
97
98
  className: cx(s.form, formClassName),
98
99
  classNames: {
99
100
  footer: cx(s.footer, footerClassName)
@@ -114,12 +115,16 @@ var FormModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
114
115
  gap: gap || (variant === 'pure' ? 24 : gap),
115
116
  onFinish: onFinish,
116
117
  ref: ref,
117
- style: formStyle,
118
+ style: _objectSpread({
119
+ paddingBottom: 68
120
+ }, formStyle),
118
121
  styles: {
119
122
  footer: footerStyle
120
123
  },
121
124
  variant: variant
122
- }, rest))
125
+ }, rest), {}, {
126
+ children: children
127
+ }))
123
128
  });
124
129
  });
125
130
  export default FormModal;
@@ -7,7 +7,7 @@ export var useStyles = createStyles(function (_ref) {
7
7
  prefixCls = _ref.prefixCls,
8
8
  responsive = _ref.responsive;
9
9
  return {
10
- footer: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: calc(100% + 32px);\n margin: -16px;\n padding: 16px;\n background: ", ";\n ", " {\n position: fixed;\n inset-block-end: 0;\n inset-inline: 0;\n\n width: 100%;\n margin: 0;\n }\n "])), token.colorBgContainer, responsive.mobile),
11
- form: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .", "-form-group-title {\n font-size: 15px;\n font-weight: 500;\n }\n\n ", " {\n .", "-form-group-title {\n font-size: 14px;\n }\n\n .", "-form-group {\n width: calc(100% + 32px);\n margin-inline: -16px;\n background: transparent;\n }\n }\n "])), prefixCls, responsive.mobile, prefixCls, prefixCls)
10
+ footer: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n inset-block-end: 0;\n inset-inline: 0;\n\n width: calc(100% + 32px);\n margin: -16px;\n padding: 16px;\n\n background: ", ";\n ", " {\n position: fixed;\n width: 100%;\n margin: 0;\n }\n "])), token.colorBgContainer, responsive.mobile),
11
+ form: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .", "-form-group-title {\n font-size: 15px;\n font-weight: 500;\n }\n\n ", " {\n .", "-form-group-title {\n font-size: 14px;\n font-weight: normal;\n }\n\n .", "-form-group {\n width: calc(100% + 32px);\n margin-inline: -16px;\n background: transparent;\n }\n }\n "])), prefixCls, responsive.mobile, prefixCls, prefixCls)
12
12
  };
13
13
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.155.4",
3
+ "version": "1.155.6",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",