@tachybase/plugin-theme-editor 0.23.18 → 0.23.22

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,3 +1,2 @@
1
- import React from 'react';
2
- declare const _default: () => React.JSX.Element;
1
+ declare const _default: () => import("react/jsx-runtime").JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const menu: React.JSX.Element;
1
+ declare const menu: import("react/jsx-runtime").JSX.Element;
3
2
  export default menu;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const _default: () => React.JSX.Element;
1
+ declare const _default: () => import("react/jsx-runtime").JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import type { ComponentDemo, MutableTheme, TokenName } from '../interface';
3
2
  export type ComponentFullDemosProps = {
4
3
  demos: ComponentDemo[];
@@ -10,5 +9,5 @@ export type ComponentTokenDrawerProps = {
10
9
  theme: MutableTheme;
11
10
  onTokenClick?: (token: TokenName) => void;
12
11
  };
13
- declare const _default: ({ ...props }: ComponentTokenDrawerProps) => React.JSX.Element;
12
+ declare const _default: ({ ...props }: ComponentTokenDrawerProps) => import("react/jsx-runtime").JSX.Element;
14
13
  export default _default;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const Error: () => React.JSX.Element;
1
+ export declare const Error: () => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  export declare const Primary: {
3
2
  ({ id }: {
4
3
  id?: string;
5
- }): React.JSX.Element;
4
+ }): import("react/jsx-runtime").JSX.Element;
6
5
  displayName: string;
7
6
  };
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const Success: () => React.JSX.Element;
1
+ export declare const Success: () => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const Warning: () => React.JSX.Element;
1
+ export declare const Warning: () => import("react/jsx-runtime").JSX.Element;
@@ -9,5 +9,5 @@ export type ComponentDemoProProps = {
9
9
  componentDrawer?: boolean;
10
10
  showAll?: boolean;
11
11
  };
12
- declare const _default: (props: ComponentDemoProProps) => React.JSX.Element;
12
+ declare const _default: (props: ComponentDemoProProps) => import("react/jsx-runtime").JSX.Element;
13
13
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import type { TokenValue } from '../interface';
2
- export declare const TOKEN_SORTS: ("colorSplit" | "motion" | "colorText" | "colorFill" | "line" | "font" | "space" | "seed" | "colorCommon" | "colorBg" | "radius" | "screen" | "control" | "others")[];
2
+ export declare const TOKEN_SORTS: ("colorSplit" | "motion" | "colorText" | "colorFill" | "font" | "space" | "line" | "seed" | "colorCommon" | "colorBg" | "radius" | "screen" | "control" | "others")[];
3
3
  export type TokenType = (typeof TOKEN_SORTS)[number];
4
4
  export declare function getTypeOfToken(tokenName: string): TokenType;
5
5
  export declare const classifyToken: (token: Record<string, TokenValue>) => Record<string, string[]>;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  export declare const useThemeId: () => {
3
2
  currentThemeId: number;
4
3
  defaultThemeId: number;
@@ -9,7 +8,7 @@ export declare const useThemeId: () => {
9
8
  declare const InitializeTheme: {
10
9
  ({ children }: {
11
10
  children: any;
12
- }): React.JSX.Element;
11
+ }): import("react/jsx-runtime").JSX.Element;
13
12
  displayName: string;
14
13
  };
15
14
  export default InitializeTheme;
@@ -13,7 +13,7 @@ interface Props {
13
13
  }) => void;
14
14
  }
15
15
  declare const ThemeCard: {
16
- (props: Props): React.JSX.Element;
16
+ (props: Props): import("react/jsx-runtime").JSX.Element;
17
17
  displayName: string;
18
18
  };
19
19
  export default ThemeCard;
@@ -8,6 +8,6 @@ export declare const ThemeEditorProvider: {
8
8
  children: any;
9
9
  open: any;
10
10
  setOpen: any;
11
- }): React.JSX.Element;
11
+ }): import("react/jsx-runtime").JSX.Element;
12
12
  displayName: string;
13
13
  };
@@ -1,6 +1,5 @@
1
- import React from 'react';
2
1
  declare const ThemeList: {
3
- (): React.JSX.Element;
2
+ (): import("react/jsx-runtime").JSX.Element;
4
3
  displayName: string;
5
4
  };
6
5
  export default ThemeList;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { ReturnTypeOfUseRequest } from '@tachybase/client';
3
2
  import { ThemeItem } from '../../types';
4
3
  interface TData extends Pick<ReturnTypeOfUseRequest, 'data' | 'error' | 'run' | 'refresh' | 'loading'> {
@@ -8,7 +7,7 @@ export declare const useThemeListContext: () => TData;
8
7
  export declare const ThemeListProvider: {
9
8
  ({ children }: {
10
9
  children: any;
11
- }): React.JSX.Element;
10
+ }): import("react/jsx-runtime").JSX.Element;
12
11
  displayName: string;
13
12
  };
14
13
  export {};
@@ -1,6 +1,5 @@
1
- import React from 'react';
2
1
  declare const ToEditTheme: {
3
- (): React.JSX.Element;
2
+ (): import("react/jsx-runtime").JSX.Element;
4
3
  displayName: string;
5
4
  };
6
5
  export default ToEditTheme;
@@ -1,6 +1,5 @@
1
- import React from 'react';
2
1
  import { ThemeConfig } from '../../../types';
3
2
  declare const CustomTheme: ({ onThemeChange }: {
4
3
  onThemeChange?: (theme: ThemeConfig) => void;
5
- }) => React.JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default CustomTheme;
@@ -1,12 +1,12 @@
1
1
  module.exports = {
2
2
  "react": "18.3.1",
3
- "@tachybase/client": "0.23.18",
3
+ "@tachybase/client": "0.23.22",
4
4
  "antd": "5.22.5",
5
5
  "lodash": "4.17.21",
6
- "@tachybase/server": "0.23.18",
6
+ "@tachybase/server": "0.23.22",
7
7
  "@ant-design/cssinjs": "1.22.1",
8
8
  "@ant-design/icons": "5.3.7",
9
- "@tachybase/utils": "0.23.18",
9
+ "@tachybase/utils": "0.23.22",
10
10
  "react-i18next": "15.2.0",
11
- "@tachybase/database": "0.23.18"
11
+ "@tachybase/database": "0.23.22"
12
12
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tachybase/plugin-theme-editor",
3
3
  "displayName": "Theme editor",
4
- "version": "0.23.18",
4
+ "version": "0.23.22",
5
5
  "description": "Customize UI colors, sizes, etc. and save the result as a theme to switch between multiple themes.",
6
6
  "keywords": [
7
7
  "System management"
@@ -25,12 +25,12 @@
25
25
  "vanilla-jsoneditor": "^0.17.10"
26
26
  },
27
27
  "peerDependencies": {
28
- "@tachybase/actions": "0.23.18",
29
- "@tachybase/client": "0.23.18",
30
- "@tachybase/database": "0.23.18",
31
- "@tachybase/test": "0.23.18",
32
- "@tachybase/server": "0.23.18",
33
- "@tachybase/utils": "0.23.18"
28
+ "@tachybase/actions": "0.23.22",
29
+ "@tachybase/client": "0.23.22",
30
+ "@tachybase/server": "0.23.22",
31
+ "@tachybase/database": "0.23.22",
32
+ "@tachybase/utils": "0.23.22",
33
+ "@tachybase/test": "0.23.22"
34
34
  },
35
35
  "description.zh-CN": "自定义 UI 的颜色、尺寸等,并将结果保存为主题,可在多个主题间切换。",
36
36
  "displayName.zh-CN": "主题编辑器",