@oceanbase/design 0.2.9 → 0.2.11

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.
Files changed (74) hide show
  1. package/LICENSE +22 -0
  2. package/dist/design.min.js +1 -1
  3. package/es/_util/genComponentStyleHook.d.ts +9 -0
  4. package/es/alert/index.d.ts +13 -0
  5. package/es/alert/style/index.d.ts +8 -0
  6. package/es/button/index.d.ts +11 -0
  7. package/es/button/style/index.d.ts +9 -0
  8. package/es/config-provider/index.d.ts +10 -4
  9. package/es/config-provider/index.js +26 -5
  10. package/es/descriptions/Item.d.ts +8 -0
  11. package/es/descriptions/index.d.ts +11 -0
  12. package/es/descriptions/style/index.d.ts +11 -0
  13. package/es/form/FormItem.d.ts +16 -0
  14. package/es/form/index.d.ts +3 -0
  15. package/es/form/interface.d.ts +1 -0
  16. package/es/index.js +1 -1
  17. package/es/locale/index.d.ts +5 -0
  18. package/es/message/index.d.ts +1 -0
  19. package/es/message/index.js +1 -0
  20. package/es/message/interface.d.ts +1 -0
  21. package/es/modal/interface.d.ts +1 -0
  22. package/es/notification/index.d.ts +1 -0
  23. package/es/notification/index.js +1 -0
  24. package/es/notification/interface.d.ts +1 -0
  25. package/es/static-function/index.d.ts +7 -2
  26. package/es/static-function/index.js +7 -8
  27. package/es/table/interface.d.ts +1 -0
  28. package/es/tabs/TabPane.d.ts +7 -0
  29. package/es/tabs/hooks/useInkBar.d.ts +12 -0
  30. package/es/tabs/hooks/useLegacyItems.d.ts +4 -0
  31. package/es/tabs/index.d.ts +3 -3
  32. package/es/tabs/index.js +10 -1
  33. package/es/tabs/style/index.d.ts +8 -0
  34. package/es/theme/default.d.ts +74 -0
  35. package/es/theme/default.js +73 -0
  36. package/es/theme/index.d.ts +49 -117
  37. package/es/theme/index.js +2 -78
  38. package/es/tooltip/index.d.ts +19 -0
  39. package/lib/_util/genComponentStyleHook.d.ts +9 -0
  40. package/lib/alert/index.d.ts +13 -0
  41. package/lib/alert/style/index.d.ts +8 -0
  42. package/lib/button/index.d.ts +11 -0
  43. package/lib/button/style/index.d.ts +9 -0
  44. package/lib/config-provider/index.d.ts +10 -4
  45. package/lib/config-provider/index.js +33 -2
  46. package/lib/descriptions/Item.d.ts +8 -0
  47. package/lib/descriptions/index.d.ts +11 -0
  48. package/lib/descriptions/style/index.d.ts +11 -0
  49. package/lib/form/FormItem.d.ts +16 -0
  50. package/lib/form/index.d.ts +3 -0
  51. package/lib/form/interface.d.ts +1 -0
  52. package/lib/locale/index.d.ts +5 -0
  53. package/lib/message/index.d.ts +1 -0
  54. package/lib/message/index.js +23 -0
  55. package/lib/message/interface.d.ts +1 -0
  56. package/lib/modal/interface.d.ts +1 -0
  57. package/lib/notification/index.d.ts +1 -0
  58. package/lib/notification/index.js +23 -0
  59. package/lib/notification/interface.d.ts +1 -0
  60. package/lib/static-function/index.d.ts +7 -2
  61. package/lib/static-function/index.js +6 -8
  62. package/lib/table/interface.d.ts +1 -0
  63. package/lib/tabs/TabPane.d.ts +7 -0
  64. package/lib/tabs/hooks/useInkBar.d.ts +12 -0
  65. package/lib/tabs/hooks/useLegacyItems.d.ts +4 -0
  66. package/lib/tabs/index.d.ts +3 -3
  67. package/lib/tabs/index.js +7 -1
  68. package/lib/tabs/style/index.d.ts +8 -0
  69. package/lib/theme/default.d.ts +74 -0
  70. package/lib/theme/default.js +97 -0
  71. package/lib/theme/index.d.ts +49 -117
  72. package/lib/theme/index.js +3 -79
  73. package/lib/tooltip/index.d.ts +19 -0
  74. package/package.json +16 -16
@@ -47,130 +47,62 @@ declare const _default: {
47
47
  lime: string;
48
48
  gold: string;
49
49
  };
50
- token: {
51
- colorPrimaryBg: string;
52
- colorPrimary: string;
53
- colorPrimaryBgHover: string;
54
- colorPrimaryBorder: string;
55
- colorPrimaryBorderHover: string;
56
- colorPrimaryHover: string;
57
- colorPrimaryTextHover: string;
58
- colorPrimaryText: string;
59
- colorPrimaryTextActive: string;
60
- colorSuccess: string;
61
- colorSuccessBg: string;
62
- colorSuccessBgHover: string;
63
- colorSuccessBorder: string;
64
- colorSuccessBorderHover: string;
65
- colorSuccessHover: string;
66
- colorSuccessActive: string;
67
- colorSuccessTextHover: string;
68
- colorSuccessText: string;
69
- colorSuccessTextActive: string;
70
- colorWarning: string;
71
- colorWarningBg: string;
72
- colorWarningBgHover: string;
73
- colorWarningBorder: string;
74
- colorWarningBorderHover: string;
75
- colorWarningHover: string;
76
- colorWarningActive: string;
77
- colorWarningTextHover: string;
78
- colorWarningText: string;
79
- colorWarningTextActive: string;
80
- colorErrorBg: string;
81
- colorErrorBgHover: string;
82
- colorErrorBorder: string;
83
- colorErrorBorderHover: string;
84
- colorErrorHover: string;
85
- colorErrorActive: string;
86
- colorErrorTextHover: string;
87
- colorErrorText: string;
88
- colorErrorTextActive: string;
89
- colorError: string;
90
- colorInfo: string;
91
- colorInfoBg: string;
92
- colorInfoBgHover: string;
93
- colorInfoBorder: string;
94
- colorInfoBorderHover: string;
95
- colorInfoHover: string;
96
- colorInfoActive: string;
97
- colorInfoTextHover: string;
98
- colorInfoText: string;
99
- colorInfoTextActive: string;
100
- colorTextBase: string;
101
- colorBgBase: string;
102
- colorText: string;
103
- colorTextSecondary: string;
104
- colorTextQuaternary: string;
105
- colorTextTertiary: string;
106
- colorBgContainer: string;
107
- colorBgLayout: string;
108
- colorBgSpotlight: string;
109
- colorBgMask: string;
110
- colorBorder: string;
111
- colorBorderSecondary: string;
112
- colorFillQuaternary: string;
113
- colorFillTertiary: string;
114
- colorFillSecondary: string;
115
- colorFill: string;
116
- colorIcon: string;
117
- boxShadowSecondary: string;
118
- boxShadow: string;
119
- borderRadius: number;
120
- wireframe: boolean;
121
- colorPrimaryActive: string;
122
- blue: string;
123
- green: string;
124
- yellow: string;
125
- red: string;
126
- fontFamily: string;
127
- fontFamilyCode: string;
128
- fontSize: number;
129
- lineWidth: number;
130
- lineType: string;
131
- sizeUnit: number;
132
- sizeStep: number;
133
- sizePopupArrow: number;
134
- controlHeight: number;
135
- zIndexBase: number;
136
- zIndexPopupBase: number;
137
- opacityImage: number;
138
- motionUnit: number;
139
- motionBase: number;
140
- motionEaseOutCirc: string;
141
- motionEaseInOutCirc: string;
142
- motionEaseInOut: string;
143
- motionEaseOutBack: string;
144
- motionEaseInBack: string;
145
- motionEaseInQuint: string;
146
- motionEaseOutQuint: string;
147
- motionEaseOut: string;
148
- motion: boolean;
149
- purple: string;
150
- cyan: string;
151
- magenta: string;
152
- pink: string;
153
- orange: string;
154
- volcano: string;
155
- geekblue: string;
156
- lime: string;
157
- gold: string;
158
- };
159
- components: {
160
- Dropdown: {
50
+ defaultConfig: {
51
+ defaultSeed: {
52
+ colorPrimary: string;
53
+ colorInfo: string;
54
+ colorSuccess: string;
55
+ colorWarning: string;
161
56
  colorError: string;
162
- };
163
- Button: {
164
57
  borderRadius: number;
58
+ blue: string;
59
+ green: string;
60
+ yellow: string;
61
+ red: string;
62
+ colorTextBase: string;
63
+ colorBgBase: string;
64
+ fontFamily: string;
65
+ fontFamilyCode: string;
66
+ fontSize: number;
67
+ lineWidth: number;
68
+ lineType: string;
69
+ sizeUnit: number;
70
+ sizeStep: number;
71
+ sizePopupArrow: number;
72
+ controlHeight: number;
73
+ zIndexBase: number;
74
+ zIndexPopupBase: number;
75
+ opacityImage: number;
76
+ motionUnit: number;
77
+ motionBase: number;
78
+ motionEaseOutCirc: string;
79
+ motionEaseInOutCirc: string;
80
+ motionEaseInOut: string;
81
+ motionEaseOutBack: string;
82
+ motionEaseInBack: string;
83
+ motionEaseInQuint: string;
84
+ motionEaseOutQuint: string;
85
+ motionEaseOut: string;
86
+ wireframe: boolean;
87
+ motion: boolean;
88
+ purple: string;
89
+ cyan: string;
90
+ magenta: string;
91
+ pink: string;
92
+ orange: string;
93
+ volcano: string;
94
+ geekblue: string;
95
+ lime: string;
96
+ gold: string;
165
97
  };
98
+ token: import("antd/es/theme/internal").SeedToken;
99
+ hashed: boolean;
100
+ };
101
+ components: {
166
102
  InputNumber: {
167
103
  handleVisible: boolean;
168
104
  };
169
105
  };
170
- defaultConfig: {
171
- token: import("antd/es/theme/internal").SeedToken;
172
- hashed: boolean;
173
- };
174
106
  useToken: () => {
175
107
  theme: import("@ant-design/cssinjs").Theme<import("antd/es/theme/internal").SeedToken, import("antd/es/theme/interface").MapToken>;
176
108
  token: import("antd").GlobalToken;
package/es/theme/index.js CHANGED
@@ -21,86 +21,10 @@ var defaultSeed = _objectSpread(_objectSpread({}, theme.defaultSeed), {}, {
21
21
  });
22
22
  export default _objectSpread(_objectSpread({}, theme), {}, {
23
23
  defaultSeed: defaultSeed,
24
- token: _objectSpread(_objectSpread({}, defaultSeed), {}, {
25
- colorPrimaryBg: '#EAF1FF',
26
- colorPrimary: '#006AFF',
27
- colorPrimaryBgHover: '#EAF1FF',
28
- colorPrimaryBorder: '#B3CCFF',
29
- colorPrimaryBorderHover: '#5189FB',
30
- colorPrimaryHover: '#004CE6',
31
- colorPrimaryTextHover: '#5189FB',
32
- colorPrimaryText: '#006AFF',
33
- colorPrimaryTextActive: '#004CE6',
34
- colorSuccess: '#0ac185',
35
- colorSuccessBg: '#EEF8F5',
36
- colorSuccessBgHover: '#B3E6D5',
37
- colorSuccessBorder: '#B3E6D5',
38
- colorSuccessBorderHover: '#4DCCA2',
39
- colorSuccessHover: '#4DCCA2',
40
- colorSuccessActive: '#00B378',
41
- colorSuccessTextHover: '#4DCCA2',
42
- colorSuccessText: '#0AC185',
43
- colorSuccessTextActive: '#00B378',
44
- colorWarning: '#ffac33',
45
- colorWarningBg: '#FFF5E5',
46
- colorWarningBgHover: '#FFD699',
47
- colorWarningBorder: '#FFD699',
48
- colorWarningBorderHover: '#FFC166',
49
- colorWarningHover: '#FFC166',
50
- colorWarningActive: '#FF9700',
51
- colorWarningTextHover: '#FFC166',
52
- colorWarningText: '#FFAC33',
53
- colorWarningTextActive: '#FF9700',
54
- colorErrorBg: '#FFEBEB',
55
- colorErrorBgHover: '#FFB3B3',
56
- colorErrorBorder: '#FFB3B3',
57
- colorErrorBorderHover: '#FF8080',
58
- colorErrorHover: '#FF8080',
59
- colorErrorActive: '#EC1313',
60
- colorErrorTextHover: '#FF8080',
61
- colorErrorText: '#FF4B4B',
62
- colorErrorTextActive: '#EC1313',
63
- colorError: '#ff4b4b',
64
- colorInfo: '#006aff',
65
- colorInfoBg: '#EAF1FF',
66
- colorInfoBgHover: '#EAF1FF',
67
- colorInfoBorder: '#B3CCFF',
68
- colorInfoBorderHover: '#5189FB',
69
- colorInfoHover: '#5189FB',
70
- colorInfoActive: '#004CE6',
71
- colorInfoTextHover: '#5189FB',
72
- colorInfoText: '#006AFF',
73
- colorInfoTextActive: '#004CE6',
74
- colorTextBase: '#132039',
75
- colorBgBase: '#ffffff',
76
- colorText: '#132039',
77
- colorTextSecondary: '#364563',
78
- colorTextQuaternary: '#CDD5E4',
79
- colorTextTertiary: '#8592AD',
80
- colorBgContainer: '#ffffff',
81
- colorBgLayout: '#F5F8FE',
82
- colorBgSpotlight: 'rgba(19, 32, 57, 0.85)',
83
- colorBgMask: 'rgba(19, 32, 57, 0.65)',
84
- colorBorder: '#CDD5E4',
85
- colorBorderSecondary: '#E2E8F3',
86
- colorFillQuaternary: '#F8FAFE',
87
- colorFillTertiary: '#F5F8FE',
88
- colorFillSecondary: '#F5F8FE',
89
- colorFill: '#F5F8FE',
90
- colorIcon: '#8592AD',
91
- boxShadowSecondary: '0 6px 16px 0 rgba(54, 69, 99, 0.08), 0 3px 6px -4px rgba(54, 69, 99, 0.12), 0 9px 28px 8px rgba(54, 69, 99, 0.05)',
92
- boxShadow: '0 1px 2px 0 rgba(54, 69, 99, 0.03), 0 1px 6px -1px rgba(54, 69, 99, 0.02), 0 2px 4px 0 rgba(54, 69, 99, 0.02)',
93
- borderRadius: 6,
94
- wireframe: false,
95
- colorPrimaryActive: '#004CE6'
24
+ defaultConfig: _objectSpread(_objectSpread({}, theme.defaultConfig), {}, {
25
+ defaultSeed: defaultSeed
96
26
  }),
97
27
  components: {
98
- Dropdown: {
99
- colorError: '#FF4B4B'
100
- },
101
- Button: {
102
- borderRadius: 6
103
- },
104
28
  InputNumber: {
105
29
  handleVisible: true
106
30
  }
@@ -0,0 +1,19 @@
1
+ import type { TooltipPropsWithTitle as AntTooltipPropsWithTitle } from 'antd/es/tooltip';
2
+ import React from 'react';
3
+ export * from 'antd/es/tooltip';
4
+ export declare type TooltipType = 'default' | 'light' | 'success' | 'info' | 'warning' | 'error';
5
+ export interface TooltipProps extends AntTooltipPropsWithTitle {
6
+ type?: TooltipType;
7
+ mouseFollow?: boolean;
8
+ }
9
+ export declare const getTooltipTypeList: () => {
10
+ type: string;
11
+ color: string;
12
+ backgroundColor: string;
13
+ }[];
14
+ declare type CompoundedComponent = React.FC<TooltipProps> & {
15
+ /** @internal */
16
+ __ANT_TOOLTIP: boolean;
17
+ };
18
+ declare const Tooltip: CompoundedComponent;
19
+ export default Tooltip;
@@ -0,0 +1,9 @@
1
+ import type { CSSObject } from '@ant-design/cssinjs';
2
+ import type { ComponentTokenMap } from 'antd/es/theme/interface';
3
+ import type { FullToken, GenerateStyle } from 'antd/es/theme/internal';
4
+ export declare type ComponentName = keyof ComponentTokenMap;
5
+ export declare function genComponentStyleHook(componentName: ComponentName, styleFn: GenerateStyle<FullToken<ComponentName>>): (prefixCls: string) => {
6
+ wrapSSR: (node: import("react").ReactNode) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
7
+ hashId: string;
8
+ };
9
+ export type { CSSObject, FullToken, GenerateStyle };
@@ -0,0 +1,13 @@
1
+ import type { AlertProps as AntAlertProps } from 'antd/es/alert';
2
+ import React from 'react';
3
+ export * from 'antd/es/alert';
4
+ export interface AlertProps extends AntAlertProps {
5
+ ghost?: boolean;
6
+ colored?: boolean;
7
+ }
8
+ declare const Alert: {
9
+ ({ ghost, colored, prefixCls: customizePrefixCls, className, ...restProps }: AlertProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
10
+ ErrorBoundary: typeof import("antd/es/alert/ErrorBoundary").default;
11
+ displayName: string;
12
+ };
13
+ export default Alert;
@@ -0,0 +1,8 @@
1
+ import type { FullToken, GenerateStyle } from 'antd/es/theme/internal';
2
+ export declare type AlertToken = FullToken<'Alert'>;
3
+ export declare const genAlertStyle: GenerateStyle<AlertToken>;
4
+ declare const _default: (prefixCls: string) => {
5
+ wrapSSR: (node: import("react").ReactNode) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
6
+ hashId: string;
7
+ };
8
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import type { ButtonProps as AntButtonProps } from 'antd/es/button';
2
+ import React from 'react';
3
+ export * from 'antd/es/button';
4
+ export declare type ButtonProps = AntButtonProps;
5
+ declare const Button: {
6
+ ({ prefixCls: customizePrefixCls, className, ...restProps }: ButtonProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
7
+ Group: React.FC<import("antd/es/button").ButtonGroupProps>;
8
+ __ANT_BUTTON: any;
9
+ displayName: string;
10
+ };
11
+ export default Button;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { FullToken, GenerateStyle } from 'antd/es/theme/internal';
3
+ export declare type ButtonToken = FullToken<'Button'>;
4
+ export declare const genButtonStyle: GenerateStyle<ButtonToken>;
5
+ declare const _default: (prefixCls: string) => {
6
+ wrapSSR: (node: import("react").ReactNode) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
7
+ hashId: string;
8
+ };
9
+ export default _default;
@@ -1,12 +1,18 @@
1
1
  import React from 'react';
2
- import type { ConfigProviderProps } from 'antd/es/config-provider';
2
+ import type { ConfigProviderProps as AntConfigProviderProps, ThemeConfig as AntThemeConfig } from 'antd/es/config-provider';
3
3
  export * from 'antd/es/config-provider';
4
+ export interface ThemeConfig extends AntThemeConfig {
5
+ isDark?: boolean;
6
+ }
7
+ export interface ConfigProviderProps extends AntConfigProviderProps {
8
+ theme?: ThemeConfig;
9
+ }
4
10
  declare const ConfigProvider: {
5
- ({ children, ...restProps }: ConfigProviderProps): React.JSX.Element;
11
+ ({ children, theme, ...restProps }: ConfigProviderProps): React.JSX.Element;
6
12
  ConfigContext: React.Context<import("antd/es/config-provider").ConfigConsumerProps>;
7
13
  SizeContext: React.Context<import("antd/es/button").ButtonSize>;
8
- config: ({ prefixCls, iconPrefixCls, theme, }: Pick<ConfigProviderProps, "prefixCls" | "iconPrefixCls"> & {
9
- theme?: import("antd").ThemeConfig | import("antd/es/config-provider/context").Theme;
14
+ config: ({ prefixCls, iconPrefixCls, theme, }: Pick<AntConfigProviderProps, "prefixCls" | "iconPrefixCls"> & {
15
+ theme?: AntThemeConfig | import("antd/es/config-provider/context").Theme;
10
16
  }) => void;
11
17
  useConfig: typeof import("antd/es/config-provider/hooks/useConfig").default;
12
18
  displayName: string;
@@ -36,9 +36,40 @@ module.exports = __toCommonJS(config_provider_exports);
36
36
  var import_react = __toESM(require("react"));
37
37
  var import_antd = require("antd");
38
38
  var import_static_function = __toESM(require("../static-function"));
39
+ var import_theme = __toESM(require("../theme"));
40
+ var import_default = __toESM(require("../theme/default"));
39
41
  __reExport(config_provider_exports, require("antd/es/config-provider"), module.exports);
40
- var ConfigProvider = ({ children, ...restProps }) => {
41
- return /* @__PURE__ */ import_react.default.createElement(import_antd.ConfigProvider, { ...restProps }, /* @__PURE__ */ import_react.default.createElement(import_antd.App, null, children, /* @__PURE__ */ import_react.default.createElement(import_static_function.default, null)));
42
+ var { defaultSeed, components } = import_theme.default;
43
+ var ConfigProvider = ({ children, theme, ...restProps }) => {
44
+ var _a;
45
+ return /* @__PURE__ */ import_react.default.createElement(
46
+ import_antd.ConfigProvider,
47
+ {
48
+ theme: {
49
+ ...theme,
50
+ // Only set seed token for dark theme
51
+ // Because defaultThemeToken is designed for light theme
52
+ token: (theme == null ? void 0 : theme.isDark) ? {
53
+ ...defaultSeed,
54
+ ...theme == null ? void 0 : theme.token
55
+ } : {
56
+ ...defaultSeed,
57
+ ...import_default.default,
58
+ ...theme == null ? void 0 : theme.token
59
+ },
60
+ components: {
61
+ ...components,
62
+ ...theme == null ? void 0 : theme.components,
63
+ InputNumber: {
64
+ ...components == null ? void 0 : components.InputNumber,
65
+ ...(_a = theme == null ? void 0 : theme.components) == null ? void 0 : _a.InputNumber
66
+ }
67
+ }
68
+ },
69
+ ...restProps
70
+ },
71
+ /* @__PURE__ */ import_react.default.createElement(import_antd.App, null, children, /* @__PURE__ */ import_react.default.createElement(import_static_function.default, null))
72
+ );
42
73
  };
43
74
  ConfigProvider.ConfigContext = import_antd.ConfigProvider.ConfigContext;
44
75
  ConfigProvider.SizeContext = import_antd.ConfigProvider.SizeContext;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import type { DescriptionsItemProps as AntDescriptionsItemProps } from 'antd/es/descriptions/Item';
3
+ import type { TextProps } from 'antd/es/typography/Text';
4
+ export interface DescriptionsItemProps extends AntDescriptionsItemProps {
5
+ contentProps?: TextProps;
6
+ }
7
+ declare const _default: import("react").FC<AntDescriptionsItemProps>;
8
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import type { DescriptionsProps as AntDescriptionsProps } from 'antd/es/descriptions';
2
+ import type { ReactElement } from 'react';
3
+ import React from 'react';
4
+ export * from 'antd/es/descriptions';
5
+ export declare type DescriptionsProps = AntDescriptionsProps;
6
+ declare const Descriptions: {
7
+ ({ children, bordered, prefixCls: customizePrefixCls, className, ...restProps }: DescriptionsProps): ReactElement<any, string | React.JSXElementConstructor<any>>;
8
+ displayName: string;
9
+ Item: React.FC<import("antd/es/descriptions/Item").DescriptionsItemProps>;
10
+ };
11
+ export default Descriptions;
@@ -0,0 +1,11 @@
1
+ import type { FullToken, GenerateStyle } from 'antd/es/theme/internal';
2
+ export declare type DescriptionsToken = FullToken<'Alert'> & {
3
+ typographyPrefixCls: string;
4
+ typographyComponentCls: string;
5
+ };
6
+ export declare const genDescriptionsStyle: GenerateStyle<DescriptionsToken>;
7
+ declare const _default: (prefixCls: string, typographyPrefixCls: string) => {
8
+ wrapSSR: (node: import("react").ReactNode) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
9
+ hashId: string;
10
+ };
11
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import type { FormItemProps as AntFormItemProps } from 'antd/es/form';
2
+ import type { ReactNode } from 'react';
3
+ import React from 'react';
4
+ import type { TooltipProps } from '../tooltip';
5
+ export declare type WrapperTooltipProps = Omit<TooltipProps, 'mouseFollow'> & {
6
+ icon?: React.ReactElement;
7
+ };
8
+ export declare type LabelTooltipType = WrapperTooltipProps | React.ReactNode;
9
+ declare const FormItem: (<Values = any>(props: AntFormItemProps<Values>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
10
+ useStatus: () => {
11
+ status?: "" | "success" | "error" | "warning" | "validating";
12
+ errors: ReactNode[];
13
+ warnings: ReactNode[];
14
+ };
15
+ };
16
+ export default FormItem;
@@ -0,0 +1,3 @@
1
+ import { Form } from 'antd';
2
+ export * from 'antd/es/form';
3
+ export default Form;
@@ -0,0 +1 @@
1
+ export * from 'antd/es/form/interface';
@@ -0,0 +1,5 @@
1
+ import type { Locale as AntLocale } from 'antd/es/locale';
2
+ import type { TableLocale } from '../table';
3
+ export interface Locale extends AntLocale {
4
+ Table?: TableLocale;
5
+ }
@@ -0,0 +1 @@
1
+ export * from 'antd/es/message';
@@ -0,0 +1,23 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/message/index.ts
17
+ var message_exports = {};
18
+ module.exports = __toCommonJS(message_exports);
19
+ __reExport(message_exports, require("antd/es/message"), module.exports);
20
+ // Annotate the CommonJS export names for ESM import in node:
21
+ 0 && (module.exports = {
22
+ ...require("antd/es/message")
23
+ });
@@ -0,0 +1 @@
1
+ export * from 'antd/es/message/interface';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/modal/interface';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/notification';
@@ -0,0 +1,23 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/notification/index.ts
17
+ var notification_exports = {};
18
+ module.exports = __toCommonJS(notification_exports);
19
+ __reExport(notification_exports, require("antd/es/notification"), module.exports);
20
+ // Annotate the CommonJS export names for ESM import in node:
21
+ 0 && (module.exports = {
22
+ ...require("antd/es/notification")
23
+ });
@@ -0,0 +1 @@
1
+ export * from 'antd/es/notification/interface';
@@ -1,9 +1,14 @@
1
+ import { message as antMessage, notification as antNotification } from 'antd';
1
2
  import type { MessageInstance } from 'antd/es/message/interface';
2
3
  import type { ModalStaticFunctions } from 'antd/es/modal/confirm';
3
4
  import type { NotificationInstance } from 'antd/es/notification/interface';
4
5
  declare let token: import("antd/lib/theme/internal").AliasToken;
5
- declare let message: MessageInstance;
6
- declare let notification: NotificationInstance;
6
+ declare let message: MessageInstance & {
7
+ useMessage: typeof antMessage.useMessage;
8
+ };
9
+ declare let notification: NotificationInstance & {
10
+ useNotification: typeof antNotification.useNotification;
11
+ };
7
12
  declare let modal: Omit<ModalStaticFunctions, 'warn'>;
8
13
  declare const _default: () => any;
9
14
  export default _default;
@@ -39,28 +39,26 @@ module.exports = __toCommonJS(static_function_exports);
39
39
  var import_antd = require("antd");
40
40
  var import_alias = __toESM(require("antd/lib/theme/util/alias"));
41
41
  var import_theme = __toESM(require("../theme"));
42
+ var import_default = __toESM(require("../theme/default"));
42
43
  var { defaultAlgorithm, defaultSeed, useToken } = import_theme.default;
43
44
  var mapToken = {
44
45
  ...defaultAlgorithm(defaultSeed),
45
- ...import_theme.default.token,
46
+ ...import_default.default,
46
47
  override: {}
47
48
  };
48
49
  var token = (0, import_alias.default)(mapToken);
49
50
  var message = import_antd.message;
50
51
  var notification = import_antd.notification;
51
- var modal = {
52
- info: import_antd.Modal.info,
53
- success: import_antd.Modal.success,
54
- error: import_antd.Modal.error,
55
- warning: import_antd.Modal.warning,
56
- confirm: import_antd.Modal.confirm
57
- };
52
+ var modal = import_antd.Modal;
58
53
  var static_function_default = () => {
59
54
  token = useToken().token;
60
55
  const staticFunction = import_antd.App.useApp();
61
56
  message = staticFunction.message;
57
+ message.useMessage = import_antd.message.useMessage;
62
58
  notification = staticFunction.notification;
59
+ notification.useNotification = import_antd.notification.useNotification;
63
60
  modal = staticFunction.modal;
61
+ modal.useModal = import_antd.Modal.useModal;
64
62
  return null;
65
63
  };
66
64
  // Annotate the CommonJS export names for ESM import in node:
@@ -0,0 +1 @@
1
+ export * from 'antd/es/table/interface';
@@ -0,0 +1,7 @@
1
+ import type { TabPaneProps as AntTabPaneProps } from 'antd/es/tabs/TabPane';
2
+ import type React from 'react';
3
+ export interface TabPaneProps extends AntTabPaneProps {
4
+ tag?: React.ReactNode;
5
+ }
6
+ declare const _default: React.FC<AntTabPaneProps>;
7
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import type { SizeType } from 'antd/es/config-provider/SizeContext';
2
+ import type { TabsPosition, TabsType } from 'antd/es/tabs';
3
+ import type { MutableRefObject } from 'react';
4
+ declare const _default: ({ prefixCls, activeKey, size, type, tabPosition, containerRef, }: {
5
+ prefixCls: string;
6
+ activeKey: string;
7
+ size: SizeType;
8
+ type: TabsType;
9
+ tabPosition: TabsPosition;
10
+ containerRef: MutableRefObject<HTMLDivElement>;
11
+ }) => void;
12
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import type { Tab } from 'rc-tabs/lib/interface';
2
+ import * as React from 'react';
3
+ import type { TabsProps } from '..';
4
+ export default function useLegacyItems(items?: TabsProps['items'], children?: React.ReactNode, prefixCls?: string): Tab[];
@@ -1,6 +1,6 @@
1
- import type { TabsPosition as AntTabsPosition, TabsProps as AntTabsProps } from 'antd/es/tabs';
2
- import type { Tab as AntTab } from 'rc-tabs/es/interface';
3
1
  import React from 'react';
2
+ import type { TabsProps as AntTabsProps, TabsPosition as AntTabsPosition } from 'antd/es/tabs';
3
+ import type { Tab as AntTab } from 'rc-tabs/es/interface';
4
4
  export * from 'antd/es/tabs';
5
5
  export type { TabPaneProps } from './TabPane';
6
6
  export interface Tab extends AntTab {
@@ -12,7 +12,7 @@ export interface TabsProps extends AntTabsProps {
12
12
  export declare type TabsPosition = AntTabsPosition;
13
13
  declare const Tabs: {
14
14
  ({ children, items, defaultActiveKey, activeKey: activeKeyProp, onChange, size, type, tabPosition, prefixCls: customizePrefixCls, className, ...restProps }: TabsProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
15
- TabPane: React.FC<TabPaneProps>;
15
+ TabPane: React.FC<import("antd").TabPaneProps>;
16
16
  displayName: string;
17
17
  };
18
18
  export default Tabs;