@lobehub/ui 1.133.8 → 1.133.9

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,7 +1,8 @@
1
- /// <reference types="react" />
2
1
  import { ThemeProviderProps as AntdThemeProviderProps, CustomStylishParams, CustomTokenParams } from 'antd-style';
2
+ import { CSSProperties } from 'react';
3
3
  import { NeutralColors, PrimaryColors } from "../styles";
4
4
  export interface ThemeProviderProps extends Omit<AntdThemeProviderProps<any>, 'theme'> {
5
+ className?: string;
5
6
  customStylish?: (theme: CustomStylishParams) => {
6
7
  [key: string]: any;
7
8
  };
@@ -17,6 +18,7 @@ export interface ThemeProviderProps extends Omit<AntdThemeProviderProps<any>, 't
17
18
  };
18
19
  enableGlobalStyle?: boolean;
19
20
  enableWebfonts?: boolean;
21
+ style?: CSSProperties;
20
22
  /**
21
23
  * @description Webfont loader css strings
22
24
  */
@@ -1,6 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
- var _excluded = ["children", "customStylish", "customToken", "enableWebfonts", "enableGlobalStyle", "webfonts", "customTheme"];
3
+ var _excluded = ["children", "customStylish", "customToken", "enableWebfonts", "enableGlobalStyle", "webfonts", "customTheme", "className", "style"];
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
6
  import { App } from 'antd';
@@ -25,6 +25,8 @@ var ThemeProvider = /*#__PURE__*/memo(function (_ref) {
25
25
  webfonts = _ref.webfonts,
26
26
  _ref$customTheme = _ref.customTheme,
27
27
  customTheme = _ref$customTheme === void 0 ? {} : _ref$customTheme,
28
+ className = _ref.className,
29
+ style = _ref.style,
28
30
  res = _objectWithoutProperties(_ref, _excluded);
29
31
  var genCdnUrl = useCdnFn();
30
32
  var webfontUrls = webfonts || [genCdnUrl({
@@ -70,10 +72,11 @@ var ThemeProvider = /*#__PURE__*/memo(function (_ref) {
70
72
  }, res), {}, {
71
73
  theme: theme,
72
74
  children: [enableGlobalStyle && /*#__PURE__*/_jsx(GlobalStyle, {}), /*#__PURE__*/_jsx(App, {
73
- style: {
75
+ className: className,
76
+ style: _objectSpread({
74
77
  minHeight: 'inherit',
75
78
  width: 'inherit'
76
- },
79
+ }, style),
77
80
  children: children
78
81
  })]
79
82
  }))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.133.8",
3
+ "version": "1.133.9",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",