@lobehub/ui 1.138.15 → 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 { DivProps } from "../types";
2
+ import { FlexboxProps } from 'react-layout-kit';
3
3
  import { type GridBackgroundProps } from './index';
4
- export interface GridShowcaseProps extends DivProps {
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;
@@ -1,6 +1,8 @@
1
+ 'use client';
2
+
1
3
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
- var _excluded = ["style", "children", "backgroundColor"];
5
+ var _excluded = ["style", "children", "backgroundColor", "innerProps"];
4
6
  import { useTheme } from 'antd-style';
5
7
  import { rgba } from 'polished';
6
8
  import { memo } from 'react';
@@ -13,9 +15,10 @@ var GridShowcase = /*#__PURE__*/memo(function (_ref) {
13
15
  children = _ref.children,
14
16
  _ref$backgroundColor = _ref.backgroundColor,
15
17
  backgroundColor = _ref$backgroundColor === void 0 ? '#001dff' : _ref$backgroundColor,
18
+ innerProps = _ref.innerProps,
16
19
  rest = _objectWithoutProperties(_ref, _excluded);
17
20
  var theme = useTheme();
18
- return /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({
21
+ return /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
19
22
  style: _objectSpread({
20
23
  position: 'relative'
21
24
  }, style)
@@ -25,13 +28,14 @@ var GridShowcase = /*#__PURE__*/memo(function (_ref) {
25
28
  colorBack: rgba(theme.colorText, 0.12),
26
29
  colorFront: rgba(theme.colorText, 0.6),
27
30
  flip: true
28
- }), /*#__PURE__*/_jsx(Flexbox, {
29
- align: 'center',
30
- style: {
31
+ }), /*#__PURE__*/_jsx(Flexbox, _objectSpread(_objectSpread({
32
+ align: 'center'
33
+ }, innerProps), {}, {
34
+ style: _objectSpread({
31
35
  zIndex: 4
32
- },
36
+ }, innerProps === null || innerProps === void 0 ? void 0 : innerProps.style),
33
37
  children: children
34
- }), /*#__PURE__*/_jsx(GridBackground, {
38
+ })), /*#__PURE__*/_jsx(GridBackground, {
35
39
  animation: true,
36
40
  backgroundColor: backgroundColor,
37
41
  colorBack: rgba(theme.colorText, 0.24),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.138.15",
3
+ "version": "1.138.17",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",