@lobehub/ui 2.8.4 → 2.8.5

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.
@@ -114,8 +114,8 @@ var Collapse = /*#__PURE__*/memo(function (_ref) {
114
114
  theme: {
115
115
  components: {
116
116
  Collapse: {
117
- contentPadding: _typeof(padding) === 'object' ? getPadding(padding === null || padding === void 0 ? void 0 : padding.body) : padding,
118
- headerPadding: _typeof(padding) === 'object' ? getPadding(padding === null || padding === void 0 ? void 0 : padding.header) : padding
117
+ contentPadding: getPadding(_typeof(padding) === 'object' ? padding === null || padding === void 0 ? void 0 : padding.body : padding),
118
+ headerPadding: getPadding(_typeof(padding) === 'object' ? padding === null || padding === void 0 ? void 0 : padding.header : padding)
119
119
  }
120
120
  }
121
121
  },
@@ -1,5 +1,5 @@
1
1
  export declare const DEFAULT_PADDING = "12px 16px";
2
- export declare const getPadding: (padding?: number | string) => string | number;
2
+ export declare const getPadding: (padding?: number | string) => string;
3
3
  export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
4
4
  borderless: import("antd-style").SerializedStyles;
5
5
  desc: import("antd-style").SerializedStyles;
@@ -3,7 +3,7 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
3
3
  import { createStyles } from 'antd-style';
4
4
  export var DEFAULT_PADDING = '12px 16px';
5
5
  export var getPadding = function getPadding(padding) {
6
- return !padding && padding !== 0 ? DEFAULT_PADDING : padding;
6
+ return !padding && padding !== 0 ? DEFAULT_PADDING : "".concat(typeof padding === 'string' ? padding : "".concat(padding, "px"), " !important");
7
7
  };
8
8
  export var useStyles = createStyles(function (_ref) {
9
9
  var css = _ref.css,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "2.8.4",
3
+ "version": "2.8.5",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",