@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.
package/es/Collapse/Collapse.js
CHANGED
|
@@ -114,8 +114,8 @@ var Collapse = /*#__PURE__*/memo(function (_ref) {
|
|
|
114
114
|
theme: {
|
|
115
115
|
components: {
|
|
116
116
|
Collapse: {
|
|
117
|
-
contentPadding: _typeof(padding) === 'object' ?
|
|
118
|
-
headerPadding: _typeof(padding) === 'object' ?
|
|
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
|
},
|
package/es/Collapse/style.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const DEFAULT_PADDING = "12px 16px";
|
|
2
|
-
export declare const getPadding: (padding?: number | string) => string
|
|
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;
|
package/es/Collapse/style.js
CHANGED
|
@@ -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,
|