@lobehub/ui 1.156.1 → 1.156.2

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.
@@ -13,6 +13,7 @@ export declare const useStyles: (props?: unknown) => import("antd-style").Return
13
13
  mobileFlatGroup: import("antd-style").SerializedStyles;
14
14
  mobileGroupBody: import("antd-style").SerializedStyles;
15
15
  mobileGroupHeader: import("antd-style").SerializedStyles;
16
+ pure: import("antd-style").SerializedStyles;
16
17
  pureStyle: import("antd-style").SerializedStyles;
17
18
  pureTitle: import("antd-style").SerializedStyles;
18
19
  title: import("antd-style").SerializedStyles;
@@ -4,7 +4,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
5
  import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
6
6
  var _excluded = ["className", "icon", "title", "children", "extra", "variant", "defaultActive", "collapsible", "active", "keyValue", "onCollapse"];
7
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
7
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
8
8
  import { createStyles, useResponsive } from 'antd-style';
9
9
  import { isUndefined } from 'lodash-es';
10
10
  import { memo } from 'react';
@@ -14,7 +14,8 @@ import Icon from "../../Icon";
14
14
  import { jsx as _jsx } from "react/jsx-runtime";
15
15
  import { jsxs as _jsxs } from "react/jsx-runtime";
16
16
  export var useStyles = createStyles(function (_ref) {
17
- var css = _ref.css,
17
+ var prefixCls = _ref.prefixCls,
18
+ css = _ref.css,
18
19
  token = _ref.token,
19
20
  responsive = _ref.responsive;
20
21
  return {
@@ -26,9 +27,10 @@ export var useStyles = createStyles(function (_ref) {
26
27
  mobileFlatGroup: css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n border-radius: ", "px;\n "])), token.borderRadiusLG),
27
28
  mobileGroupBody: css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n padding-block: 0;\n padding-inline: 16px;\n background: ", ";\n "])), token.colorBgContainer),
28
29
  mobileGroupHeader: css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n padding: 16px;\n background: ", ";\n "])), token.colorBgLayout),
29
- pureStyle: css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n padding: 0;\n background: transparent;\n border: none;\n border-radius: 0;\n "]))),
30
- pureTitle: css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n font-size: 18px;\n font-weight: 700;\n line-height: 24px;\n "]))),
31
- title: css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n align-items: center;\n font-size: 16px;\n font-weight: 600;\n\n .anticon {\n color: ", ";\n }\n\n ", " {\n font-size: 14px;\n font-weight: 400;\n opacity: 0.5;\n }\n "])), token.colorPrimary, responsive.mobile)
30
+ pure: css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n .", "-collapse-content-box {\n .", "-form-item:first-child {\n border-block-start: 1px solid ", ";\n }\n }\n "])), prefixCls, prefixCls, token.colorFillSecondary),
31
+ pureStyle: css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n padding: 0;\n background: transparent;\n border: none;\n border-radius: 0;\n "]))),
32
+ pureTitle: css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n font-size: 18px;\n font-weight: 700;\n line-height: 24px;\n "]))),
33
+ title: css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n align-items: center;\n font-size: 16px;\n font-weight: 600;\n\n .anticon {\n color: ", ";\n }\n\n ", " {\n font-size: 14px;\n font-weight: 400;\n opacity: 0.5;\n }\n "])), token.colorPrimary, responsive.mobile)
32
34
  };
33
35
  });
34
36
  var FormGroup = /*#__PURE__*/memo(function (_ref2) {
@@ -80,7 +82,7 @@ var FormGroup = /*#__PURE__*/memo(function (_ref2) {
80
82
  });
81
83
  return /*#__PURE__*/_jsx(Collapse, _objectSpread({
82
84
  activeKey: isUndefined(active) ? undefined : active ? [keyValue] : [],
83
- className: cx(groupClassName, className),
85
+ className: cx(groupClassName, variant === 'pure' && styles.pure, className),
84
86
  collapsible: defaultCollapsible,
85
87
  defaultActiveKey: defaultActive ? [keyValue] : undefined,
86
88
  items: [{
package/es/Form/style.js CHANGED
@@ -9,6 +9,6 @@ export var useStyles = createStyles(function (_ref) {
9
9
  return {
10
10
  form: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n\n display: flex;\n flex-direction: column;\n gap: 16px;\n\n width: 100%;\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-row {\n align-items: center;\n ", " {\n align-items: stretch;\n }\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, responsive.mobile, prefixCls, prefixCls, token.borderRadius),
11
11
  mobile: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", " {\n gap: 0 !important;\n }\n "])), responsive.mobile),
12
- pure: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n gap: 64px;\n .", "-collapse-content-box {\n .", "-form-item:first-child {\n border-block-start: 1px solid ", ";\n }\n }\n ", " {\n border-block-start: unset;\n }\n "])), prefixCls, prefixCls, token.colorFillSecondary, responsive.mobile)
12
+ pure: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n gap: 64px;\n ", " {\n border-block-start: unset;\n }\n "])), responsive.mobile)
13
13
  };
14
14
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.156.1",
3
+ "version": "1.156.2",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",