@lobehub/ui 1.138.16 → 1.138.17
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,8 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { FlexboxProps } from 'react-layout-kit';
|
|
3
3
|
import { type GridBackgroundProps } from './index';
|
|
4
|
-
export interface GridShowcaseProps extends
|
|
4
|
+
export interface GridShowcaseProps extends FlexboxProps {
|
|
5
5
|
backgroundColor?: GridBackgroundProps['backgroundColor'];
|
|
6
|
+
innerProps?: FlexboxProps;
|
|
6
7
|
}
|
|
7
8
|
declare const GridShowcase: import("react").NamedExoticComponent<GridShowcaseProps>;
|
|
8
9
|
export default GridShowcase;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
-
var _excluded = ["style", "children", "backgroundColor"];
|
|
5
|
+
var _excluded = ["style", "children", "backgroundColor", "innerProps"];
|
|
6
6
|
import { useTheme } from 'antd-style';
|
|
7
7
|
import { rgba } from 'polished';
|
|
8
8
|
import { memo } from 'react';
|
|
@@ -15,9 +15,10 @@ var GridShowcase = /*#__PURE__*/memo(function (_ref) {
|
|
|
15
15
|
children = _ref.children,
|
|
16
16
|
_ref$backgroundColor = _ref.backgroundColor,
|
|
17
17
|
backgroundColor = _ref$backgroundColor === void 0 ? '#001dff' : _ref$backgroundColor,
|
|
18
|
+
innerProps = _ref.innerProps,
|
|
18
19
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
19
20
|
var theme = useTheme();
|
|
20
|
-
return /*#__PURE__*/_jsxs(
|
|
21
|
+
return /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
|
|
21
22
|
style: _objectSpread({
|
|
22
23
|
position: 'relative'
|
|
23
24
|
}, style)
|
|
@@ -27,13 +28,14 @@ var GridShowcase = /*#__PURE__*/memo(function (_ref) {
|
|
|
27
28
|
colorBack: rgba(theme.colorText, 0.12),
|
|
28
29
|
colorFront: rgba(theme.colorText, 0.6),
|
|
29
30
|
flip: true
|
|
30
|
-
}), /*#__PURE__*/_jsx(Flexbox, {
|
|
31
|
-
align: 'center'
|
|
32
|
-
|
|
31
|
+
}), /*#__PURE__*/_jsx(Flexbox, _objectSpread(_objectSpread({
|
|
32
|
+
align: 'center'
|
|
33
|
+
}, innerProps), {}, {
|
|
34
|
+
style: _objectSpread({
|
|
33
35
|
zIndex: 4
|
|
34
|
-
},
|
|
36
|
+
}, innerProps === null || innerProps === void 0 ? void 0 : innerProps.style),
|
|
35
37
|
children: children
|
|
36
|
-
}), /*#__PURE__*/_jsx(GridBackground, {
|
|
38
|
+
})), /*#__PURE__*/_jsx(GridBackground, {
|
|
37
39
|
animation: true,
|
|
38
40
|
backgroundColor: backgroundColor,
|
|
39
41
|
colorBack: rgba(theme.colorText, 0.24),
|