@oceanbase/design 1.0.0-alpha.2 → 1.0.0-alpha.4
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.
- package/dist/design.min.js +1 -1
- package/es/_util/genComponentStyleHook.d.ts +2 -2
- package/es/_util/genComponentStyleHook.js +15 -2
- package/es/alert/index.d.ts +2 -2
- package/es/alert/index.js +13 -4
- package/es/alert/style/index.d.ts +1 -1
- package/es/alert/style/index.js +152 -58
- package/es/app/index.d.ts +8 -0
- package/es/app/index.js +36 -1
- package/es/app/style/index.d.ts +9 -0
- package/es/{_util/genStyle.js → app/style/index.js} +10 -11
- package/es/badge/index.js +2 -3
- package/es/badge/style/index.d.ts +1 -1
- package/es/badge/style/index.js +1 -3
- package/es/button/style/index.d.ts +1 -1
- package/es/card/index.d.ts +4 -0
- package/es/card/index.js +64 -7
- package/es/card/style/index.d.ts +1 -1
- package/es/card/style/index.js +32 -8
- package/es/checkbox/style/index.d.ts +1 -1
- package/es/config-provider/context.d.ts +11 -0
- package/es/config-provider/context.js +2 -1
- package/es/config-provider/index.d.ts +2 -2
- package/es/config-provider/index.js +57 -34
- package/es/descriptions/style/index.d.ts +1 -1
- package/es/drawer/index.js +7 -5
- package/es/drawer/style/index.d.ts +1 -1
- package/es/drawer/style/index.js +31 -9
- package/es/empty/index.js +1 -1
- package/es/empty/style/index.d.ts +1 -1
- package/es/form/FormItem.d.ts +2 -1
- package/es/form/FormItem.js +14 -4
- package/es/form/style/index.d.ts +1 -1
- package/es/form/style/index.js +13 -2
- package/es/index.d.ts +4 -2
- package/es/index.js +1 -0
- package/es/input-number/index.d.ts +2 -1
- package/es/locale/ja-JP.d.ts +3 -0
- package/es/locale/ja-JP.js +28 -0
- package/es/modal/Modal.js +20 -6
- package/es/modal/style/index.d.ts +1 -1
- package/es/modal/style/index.js +62 -19
- package/es/radio/style/index.d.ts +1 -1
- package/es/result/index.d.ts +2 -2
- package/es/result/index.js +5 -4
- package/es/result/style/index.d.ts +1 -1
- package/es/select/style/index.d.ts +1 -1
- package/es/slider/style/index.d.ts +1 -1
- package/es/space/style/index.d.ts +1 -1
- package/es/spin/style/index.d.ts +1 -1
- package/es/static-function/index.js +13 -4
- package/es/switch/style/index.d.ts +1 -1
- package/es/table/style/index.d.ts +1 -1
- package/es/table/style/index.js +3 -4
- package/es/tabs/style/index.d.ts +1 -1
- package/es/tabs/style/index.js +4 -2
- package/es/tag/index.d.ts +1 -0
- package/es/tag/index.js +3 -2
- package/es/tag/style/index.d.ts +2 -4
- package/es/tag/style/index.js +20 -31
- package/es/theme/dark.d.ts +1 -48
- package/es/theme/default.d.ts +4 -2
- package/es/theme/default.js +59 -28
- package/es/theme/index.d.ts +20 -57
- package/es/theme/interface.d.ts +66 -0
- package/es/theme/interface.js +4 -1
- package/es/theme/style/aliyun.less +40 -40
- package/es/theme/style/compact.less +79 -72
- package/es/theme/style/dark.less +53 -53
- package/es/theme/style/default.less +79 -72
- package/es/tooltip/style/index.d.ts +1 -1
- package/es/tree-select/style/index.d.ts +1 -1
- package/lib/_util/genComponentStyleHook.d.ts +2 -2
- package/lib/_util/genComponentStyleHook.js +20 -4
- package/lib/alert/index.d.ts +2 -2
- package/lib/alert/index.js +18 -9
- package/lib/alert/style/index.d.ts +1 -1
- package/lib/alert/style/index.js +170 -71
- package/lib/app/index.d.ts +8 -0
- package/lib/app/index.js +36 -1
- package/lib/app/style/index.d.ts +9 -0
- package/lib/{_util/getWeakenBorderColor.js → app/style/index.js} +20 -10
- package/lib/badge/index.js +23 -20
- package/lib/badge/style/index.d.ts +1 -1
- package/lib/badge/style/index.js +1 -3
- package/lib/button/index.js +2 -1
- package/lib/button/style/index.d.ts +1 -1
- package/lib/card/index.d.ts +4 -0
- package/lib/card/index.js +70 -9
- package/lib/card/style/index.d.ts +1 -1
- package/lib/card/style/index.js +56 -10
- package/lib/checkbox/index.js +2 -1
- package/lib/checkbox/style/index.d.ts +1 -1
- package/lib/config-provider/DefaultRenderEmpty.js +4 -3
- package/lib/config-provider/context.d.ts +11 -0
- package/lib/config-provider/index.d.ts +2 -2
- package/lib/config-provider/index.js +70 -26
- package/lib/descriptions/hooks/useItems.js +5 -4
- package/lib/descriptions/index.js +3 -2
- package/lib/descriptions/style/index.d.ts +1 -1
- package/lib/drawer/index.js +44 -33
- package/lib/drawer/style/index.d.ts +1 -1
- package/lib/drawer/style/index.js +33 -6
- package/lib/dropdown/dropdown-button.js +3 -13
- package/lib/dropdown/index.js +2 -2
- package/lib/empty/colored.js +413 -327
- package/lib/empty/database.js +267 -222
- package/lib/empty/default.js +16 -21
- package/lib/empty/guide.js +201 -184
- package/lib/empty/index.js +23 -18
- package/lib/empty/style/index.d.ts +1 -1
- package/lib/form/FormItem.d.ts +2 -1
- package/lib/form/FormItem.js +18 -6
- package/lib/form/index.js +6 -3
- package/lib/form/style/index.d.ts +1 -1
- package/lib/form/style/index.js +19 -0
- package/lib/grid/col.js +2 -1
- package/lib/grid/row.js +2 -1
- package/lib/index.d.ts +4 -2
- package/lib/index.js +3 -0
- package/lib/input/Input.js +3 -2
- package/lib/input/Password.js +3 -2
- package/lib/input/Search.js +3 -2
- package/lib/input/TextArea.js +3 -2
- package/lib/input-number/index.d.ts +2 -1
- package/lib/input-number/index.js +2 -1
- package/lib/list/index.js +3 -2
- package/lib/locale/ja-JP.d.ts +3 -0
- package/lib/locale/ja-JP.js +60 -0
- package/lib/lottie/index.js +2 -1
- package/lib/modal/Modal.js +33 -9
- package/lib/modal/Progress.js +9 -5
- package/lib/modal/style/index.d.ts +1 -1
- package/lib/modal/style/index.js +76 -17
- package/lib/radio/index.js +2 -1
- package/lib/radio/style/index.d.ts +1 -1
- package/lib/result/403.js +156 -121
- package/lib/result/404.js +328 -267
- package/lib/result/500.js +295 -257
- package/lib/result/Error.js +127 -99
- package/lib/result/Processing.js +246 -213
- package/lib/result/Success.js +233 -169
- package/lib/result/Warning.js +611 -515
- package/lib/result/index.d.ts +2 -2
- package/lib/result/index.js +12 -11
- package/lib/result/style/index.d.ts +1 -1
- package/lib/segmented/index.js +8 -4
- package/lib/select/index.js +2 -1
- package/lib/select/style/index.d.ts +1 -1
- package/lib/slider/index.js +2 -1
- package/lib/slider/style/index.d.ts +1 -1
- package/lib/space/index.js +2 -1
- package/lib/space/style/index.d.ts +1 -1
- package/lib/spin/index.js +5 -4
- package/lib/spin/style/index.d.ts +1 -1
- package/lib/static-function/index.js +7 -1
- package/lib/switch/index.js +2 -1
- package/lib/switch/style/index.d.ts +1 -1
- package/lib/table/index.js +44 -31
- package/lib/table/style/index.d.ts +1 -1
- package/lib/table/style/index.js +3 -4
- package/lib/tabs/index.js +10 -5
- package/lib/tabs/style/index.d.ts +1 -1
- package/lib/tabs/style/index.js +5 -0
- package/lib/tag/index.d.ts +1 -0
- package/lib/tag/index.js +12 -6
- package/lib/tag/style/index.d.ts +2 -4
- package/lib/tag/style/index.js +20 -27
- package/lib/theme/dark.d.ts +1 -48
- package/lib/theme/default.d.ts +4 -2
- package/lib/theme/default.js +67 -27
- package/lib/theme/index.d.ts +20 -57
- package/lib/theme/interface.d.ts +66 -0
- package/lib/theme/style/aliyun.less +40 -40
- package/lib/theme/style/compact.less +79 -72
- package/lib/theme/style/dark.less +53 -53
- package/lib/theme/style/default.less +79 -72
- package/lib/tooltip/MouseTooltip.js +43 -39
- package/lib/tooltip/ReactStickyMouseTooltip.js +5 -4
- package/lib/tooltip/index.js +14 -10
- package/lib/tooltip/style/index.d.ts +1 -1
- package/lib/tree-select/index.js +2 -1
- package/lib/tree-select/style/index.d.ts +1 -1
- package/lib/typography/Link.js +5 -4
- package/lib/typography/Paragraph.js +5 -4
- package/lib/typography/Text.js +5 -4
- package/lib/typography/Title.js +5 -4
- package/package.json +7 -6
- package/es/_util/genStyle.d.ts +0 -2
- package/es/_util/getWeakenBorderColor.d.ts +0 -1
- package/es/_util/getWeakenBorderColor.js +0 -4
- package/lib/_util/genStyle.d.ts +0 -2
- package/lib/_util/genStyle.js +0 -43
- package/lib/_util/getWeakenBorderColor.d.ts +0 -1
package/lib/result/index.d.ts
CHANGED
|
@@ -8,10 +8,10 @@ export type ResultStatusType = AntResultStatusType | 'processing';
|
|
|
8
8
|
export interface ResultProps extends Omit<AntResultProps, 'status'> {
|
|
9
9
|
status?: ResultStatusType;
|
|
10
10
|
}
|
|
11
|
-
export
|
|
11
|
+
export type ResultType = React.FC<ResultProps> & {
|
|
12
12
|
PRESENTED_IMAGE_403: typeof Image403;
|
|
13
13
|
PRESENTED_IMAGE_404: typeof Image404;
|
|
14
14
|
PRESENTED_IMAGE_500: typeof Image500;
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
16
|
declare const Result: ResultType;
|
|
17
17
|
export default Result;
|
package/lib/result/index.js
CHANGED
|
@@ -33,7 +33,7 @@ __export(result_exports, {
|
|
|
33
33
|
default: () => result_default
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(result_exports);
|
|
36
|
-
var import_react =
|
|
36
|
+
var import_react = require("react");
|
|
37
37
|
var import_antd = require("antd");
|
|
38
38
|
var import_classnames = __toESM(require("classnames"));
|
|
39
39
|
var import_config_provider = __toESM(require("../config-provider"));
|
|
@@ -46,22 +46,23 @@ var import__2 = __toESM(require("./404"));
|
|
|
46
46
|
var import__3 = __toESM(require("./500"));
|
|
47
47
|
var import_style = __toESM(require("./style"));
|
|
48
48
|
__reExport(result_exports, require("antd/es/result"), module.exports);
|
|
49
|
-
var
|
|
49
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
50
|
+
var Result = ({ prefixCls: customizePrefixCls, className, status, ...restProps }) => {
|
|
50
51
|
const { getPrefixCls } = (0, import_react.useContext)(import_config_provider.default.ConfigContext);
|
|
51
52
|
const prefixCls = getPrefixCls("result", customizePrefixCls);
|
|
52
53
|
const { wrapSSR } = (0, import_style.default)(prefixCls);
|
|
53
|
-
const resultCls = (0, import_classnames.default)(
|
|
54
|
+
const resultCls = (0, import_classnames.default)(className);
|
|
54
55
|
const statusMap = {
|
|
55
|
-
success: /* @__PURE__ */
|
|
56
|
-
error: /* @__PURE__ */
|
|
57
|
-
warning: /* @__PURE__ */
|
|
58
|
-
processing: /* @__PURE__ */
|
|
59
|
-
403: /* @__PURE__ */
|
|
60
|
-
404: /* @__PURE__ */
|
|
61
|
-
500: /* @__PURE__ */
|
|
56
|
+
success: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Success.default, {}),
|
|
57
|
+
error: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Error.default, {}),
|
|
58
|
+
warning: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Warning.default, {}),
|
|
59
|
+
processing: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Processing.default, {}),
|
|
60
|
+
403: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, {}),
|
|
61
|
+
404: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.default, {}),
|
|
62
|
+
500: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__3.default, {})
|
|
62
63
|
};
|
|
63
64
|
return wrapSSR(
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
65
66
|
import_antd.Result,
|
|
66
67
|
{
|
|
67
68
|
icon: statusMap[status],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { FullToken, GenerateStyle } from '
|
|
2
|
+
import type { FullToken, GenerateStyle } from '../../theme/interface';
|
|
3
3
|
export type ResultToken = FullToken<'Result'>;
|
|
4
4
|
export declare const genResultStyle: GenerateStyle<ResultToken>;
|
|
5
5
|
declare const _default: (prefixCls: string) => {
|
package/lib/segmented/index.js
CHANGED
|
@@ -40,6 +40,7 @@ var import_typography = __toESM(require("../typography"));
|
|
|
40
40
|
var import_badge = __toESM(require("../badge"));
|
|
41
41
|
var import_style = __toESM(require("./style"));
|
|
42
42
|
__reExport(segmented_exports, require("antd/es/segmented"), module.exports);
|
|
43
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
43
44
|
var isReactNode = (item) => {
|
|
44
45
|
return import_react.default.isValidElement(item);
|
|
45
46
|
};
|
|
@@ -50,21 +51,24 @@ var Segmented = import_react.default.forwardRef(
|
|
|
50
51
|
const { wrapSSR } = (0, import_style.default)(prefixCls);
|
|
51
52
|
const renderBadge = (0, import_react.useCallback)((badge) => {
|
|
52
53
|
if (typeof badge === "object" && !isReactNode(badge)) {
|
|
53
|
-
return /* @__PURE__ */
|
|
54
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_badge.default, { ...badge });
|
|
54
55
|
}
|
|
55
|
-
return /* @__PURE__ */
|
|
56
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_badge.default, { count: badge });
|
|
56
57
|
}, []);
|
|
57
58
|
const newOptions = options == null ? void 0 : options.map((item) => {
|
|
58
59
|
if (typeof item === "object") {
|
|
59
60
|
const { label, badge, ...restItem } = item;
|
|
60
61
|
return {
|
|
61
62
|
...restItem,
|
|
62
|
-
label: /* @__PURE__ */
|
|
63
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_antd.Flex, { gap: 4, align: "center", justify: "center", children: [
|
|
64
|
+
(item == null ? void 0 : item.ellipsis) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_typography.default.Text, { ellipsis: item.ellipsis, children: label }) : label,
|
|
65
|
+
badge && renderBadge(badge)
|
|
66
|
+
] })
|
|
63
67
|
};
|
|
64
68
|
}
|
|
65
69
|
return item;
|
|
66
70
|
});
|
|
67
|
-
return wrapSSR(/* @__PURE__ */
|
|
71
|
+
return wrapSSR(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd.Segmented, { ref, options: newOptions, ...restProps }));
|
|
68
72
|
}
|
|
69
73
|
);
|
|
70
74
|
if (process.env.NODE_ENV !== "production") {
|
package/lib/select/index.js
CHANGED
|
@@ -40,6 +40,7 @@ var import_config_provider = __toESM(require("../config-provider"));
|
|
|
40
40
|
var import_en_US = __toESM(require("../locale/en-US"));
|
|
41
41
|
var import_style = __toESM(require("./style"));
|
|
42
42
|
__reExport(select_exports, require("antd/es/select"), module.exports);
|
|
43
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
43
44
|
var InternalSelect = import_react.default.forwardRef(
|
|
44
45
|
({ locale: customLocale, prefixCls: customizePrefixCls, className, ...restProps }, ref) => {
|
|
45
46
|
const { locale: contextLocale, getPrefixCls } = (0, import_react.useContext)(
|
|
@@ -56,7 +57,7 @@ var InternalSelect = import_react.default.forwardRef(
|
|
|
56
57
|
const { wrapSSR } = (0, import_style.default)(prefixCls);
|
|
57
58
|
const selectCls = (0, import_classnames.default)(className);
|
|
58
59
|
return wrapSSR(
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
60
61
|
import_antd.Select,
|
|
61
62
|
{
|
|
62
63
|
ref,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { FullToken, GenerateStyle } from '
|
|
2
|
+
import type { FullToken, GenerateStyle } from '../../theme/interface';
|
|
3
3
|
export type SelectToken = FullToken<'Select'>;
|
|
4
4
|
export declare const genSelectStyle: GenerateStyle<SelectToken>;
|
|
5
5
|
declare const _default: (prefixCls: string) => {
|
package/lib/slider/index.js
CHANGED
|
@@ -39,6 +39,7 @@ var import_react = __toESM(require("react"));
|
|
|
39
39
|
var import_config_provider = __toESM(require("../config-provider"));
|
|
40
40
|
var import_style = __toESM(require("./style"));
|
|
41
41
|
__reExport(slider_exports, require("antd/es/slider"), module.exports);
|
|
42
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
43
|
var Slider = import_react.default.forwardRef(
|
|
43
44
|
({ prefixCls: customizePrefixCls, className, ...restProps }, ref) => {
|
|
44
45
|
const { getPrefixCls } = (0, import_react.useContext)(import_config_provider.default.ConfigContext);
|
|
@@ -46,7 +47,7 @@ var Slider = import_react.default.forwardRef(
|
|
|
46
47
|
const { wrapSSR } = (0, import_style.default)(prefixCls);
|
|
47
48
|
const sliderCls = (0, import_classnames.default)(className);
|
|
48
49
|
return wrapSSR(
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd.Slider, { ref, prefixCls: customizePrefixCls, className: sliderCls, ...restProps })
|
|
50
51
|
);
|
|
51
52
|
}
|
|
52
53
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { FullToken, GenerateStyle } from '
|
|
2
|
+
import type { FullToken, GenerateStyle } from '../../theme/interface';
|
|
3
3
|
export type SliderToken = FullToken<'Slider'>;
|
|
4
4
|
export declare const genSliderStyle: GenerateStyle<SliderToken>;
|
|
5
5
|
declare const _default: (prefixCls: string) => {
|
package/lib/space/index.js
CHANGED
|
@@ -43,6 +43,7 @@ var import_antd = require("antd");
|
|
|
43
43
|
var import_style = __toESM(require("./style"));
|
|
44
44
|
__reExport(space_exports, require("antd/es/space"), module.exports);
|
|
45
45
|
var import_context = require("antd/es/space/context");
|
|
46
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
46
47
|
var Space = React.forwardRef(
|
|
47
48
|
({ prefixCls: customizePrefixCls, className, ...restProps }, ref) => {
|
|
48
49
|
const { getPrefixCls } = React.useContext(import_config_provider.ConfigContext);
|
|
@@ -56,7 +57,7 @@ var Space = React.forwardRef(
|
|
|
56
57
|
},
|
|
57
58
|
className
|
|
58
59
|
);
|
|
59
|
-
return wrapSSR(/* @__PURE__ */
|
|
60
|
+
return wrapSSR(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd.Space, { ref, className: spaceCls, ...restProps }));
|
|
60
61
|
}
|
|
61
62
|
);
|
|
62
63
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import type { FullToken, GenerateStyle } from '../../theme/interface';
|
|
3
3
|
export type SpaceToken = FullToken<'Space'>;
|
|
4
4
|
export declare const genSpaceStyle: GenerateStyle<SpaceToken>;
|
|
5
5
|
declare const _default: (prefixCls: string) => {
|
package/lib/spin/index.js
CHANGED
|
@@ -35,13 +35,14 @@ __export(spin_exports, {
|
|
|
35
35
|
module.exports = __toCommonJS(spin_exports);
|
|
36
36
|
var import_antd = require("antd");
|
|
37
37
|
var import_classnames = __toESM(require("classnames"));
|
|
38
|
-
var import_react =
|
|
38
|
+
var import_react = require("react");
|
|
39
39
|
var import_config_provider = __toESM(require("../config-provider"));
|
|
40
40
|
var import_lottie = __toESM(require("../lottie"));
|
|
41
41
|
var import_spin = __toESM(require("./assets/spin.json"));
|
|
42
42
|
var import_spin_gray = __toESM(require("./assets/spin-gray.json"));
|
|
43
43
|
var import_style = __toESM(require("./style"));
|
|
44
44
|
__reExport(spin_exports, require("antd/es/spin"), module.exports);
|
|
45
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
45
46
|
var Spin = ({
|
|
46
47
|
prefixCls: customizePrefixCls,
|
|
47
48
|
className,
|
|
@@ -50,7 +51,7 @@ var Spin = ({
|
|
|
50
51
|
...restProps
|
|
51
52
|
}) => {
|
|
52
53
|
const { getPrefixCls, spin } = (0, import_react.useContext)(import_config_provider.default.ConfigContext);
|
|
53
|
-
const indicator = customizeIndicator || (spin == null ? void 0 : spin.indicator) || (gray ? /* @__PURE__ */
|
|
54
|
+
const indicator = customizeIndicator || (spin == null ? void 0 : spin.indicator) || (gray ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lottie.default, { animationData: import_spin_gray.default }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lottie.default, { animationData: import_spin.default }));
|
|
54
55
|
const isDefaultIndicator = !(customizeIndicator || (spin == null ? void 0 : spin.indicator));
|
|
55
56
|
const isGrayIndicator = isDefaultIndicator && gray;
|
|
56
57
|
const prefixCls = getPrefixCls("spin", customizePrefixCls);
|
|
@@ -63,7 +64,7 @@ var Spin = ({
|
|
|
63
64
|
className
|
|
64
65
|
);
|
|
65
66
|
return wrapSSR(
|
|
66
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
67
68
|
import_antd.Spin,
|
|
68
69
|
{
|
|
69
70
|
prefixCls: customizePrefixCls,
|
|
@@ -75,7 +76,7 @@ var Spin = ({
|
|
|
75
76
|
);
|
|
76
77
|
};
|
|
77
78
|
Spin.setDefaultIndicator = import_antd.Spin.setDefaultIndicator;
|
|
78
|
-
Spin.setDefaultIndicator(/* @__PURE__ */
|
|
79
|
+
Spin.setDefaultIndicator(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spin, {}));
|
|
79
80
|
if (process.env.NODE_ENV !== "production") {
|
|
80
81
|
Spin.displayName = import_antd.Spin.displayName;
|
|
81
82
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { FullToken, GenerateStyle } from '
|
|
2
|
+
import type { FullToken, GenerateStyle } from '../../theme/interface';
|
|
3
3
|
export type SpinToken = FullToken<'Spin'> & {
|
|
4
4
|
spinDotSize: number;
|
|
5
5
|
spinDotSizeSM: number;
|
|
@@ -36,8 +36,11 @@ __export(static_function_exports, {
|
|
|
36
36
|
token: () => token
|
|
37
37
|
});
|
|
38
38
|
module.exports = __toCommonJS(static_function_exports);
|
|
39
|
+
var import_react = require("react");
|
|
39
40
|
var import_antd = require("antd");
|
|
40
41
|
var import_alias = __toESM(require("antd/lib/theme/util/alias"));
|
|
42
|
+
var import_config_provider = __toESM(require("../config-provider"));
|
|
43
|
+
var import_style = __toESM(require("../modal/style"));
|
|
41
44
|
var import_theme = __toESM(require("../theme"));
|
|
42
45
|
var import_default = __toESM(require("../theme/default"));
|
|
43
46
|
var { defaultAlgorithm, defaultSeed, useToken } = import_theme.default;
|
|
@@ -45,7 +48,7 @@ var _a, _b, _c;
|
|
|
45
48
|
var mapToken = {
|
|
46
49
|
...defaultAlgorithm(defaultSeed),
|
|
47
50
|
...import_default.default.token,
|
|
48
|
-
//
|
|
51
|
+
// need to override some Alias Token values
|
|
49
52
|
override: {
|
|
50
53
|
boxShadow: (_a = import_default.default.token) == null ? void 0 : _a.boxShadow,
|
|
51
54
|
boxShadowSecondary: (_b = import_default.default.token) == null ? void 0 : _b.boxShadowSecondary,
|
|
@@ -58,6 +61,9 @@ var notification = import_antd.notification;
|
|
|
58
61
|
var modal = import_antd.Modal;
|
|
59
62
|
var static_function_default = () => {
|
|
60
63
|
token = useToken().token;
|
|
64
|
+
const { getPrefixCls } = (0, import_react.useContext)(import_config_provider.default.ConfigContext);
|
|
65
|
+
const prefixCls = getPrefixCls("modal");
|
|
66
|
+
(0, import_style.default)(prefixCls);
|
|
61
67
|
const staticFunction = import_antd.App.useApp();
|
|
62
68
|
message = {
|
|
63
69
|
...staticFunction.message,
|
package/lib/switch/index.js
CHANGED
|
@@ -39,6 +39,7 @@ var import_react = __toESM(require("react"));
|
|
|
39
39
|
var import_config_provider = __toESM(require("../config-provider"));
|
|
40
40
|
var import_style = __toESM(require("./style"));
|
|
41
41
|
__reExport(switch_exports, require("antd/es/switch"), module.exports);
|
|
42
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
43
|
var InternalSwitch = import_react.default.forwardRef(
|
|
43
44
|
({ prefixCls: customizePrefixCls, className, ...restProps }, ref) => {
|
|
44
45
|
const { getPrefixCls } = (0, import_react.useContext)(import_config_provider.default.ConfigContext);
|
|
@@ -46,7 +47,7 @@ var InternalSwitch = import_react.default.forwardRef(
|
|
|
46
47
|
const { wrapSSR } = (0, import_style.default)(prefixCls);
|
|
47
48
|
const switchCls = (0, import_classnames.default)(className);
|
|
48
49
|
return wrapSSR(
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd.Switch, { ref, prefixCls: customizePrefixCls, className: switchCls, ...restProps })
|
|
50
51
|
);
|
|
51
52
|
}
|
|
52
53
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { FullToken, GenerateStyle } from '
|
|
2
|
+
import type { FullToken, GenerateStyle } from '../../theme/interface';
|
|
3
3
|
export type SwitchToken = FullToken<'Switch'>;
|
|
4
4
|
export declare const genSwitchStyle: GenerateStyle<SwitchToken>;
|
|
5
5
|
declare const _default: (prefixCls: string) => {
|
package/lib/table/index.js
CHANGED
|
@@ -45,6 +45,7 @@ var import_useDefaultPagination = __toESM(require("./hooks/useDefaultPagination"
|
|
|
45
45
|
var import_useMergedState = __toESM(require("rc-util/lib/hooks/useMergedState"));
|
|
46
46
|
var import_en_US = __toESM(require("../locale/en-US"));
|
|
47
47
|
__reExport(table_exports, require("antd/es/table"), module.exports);
|
|
48
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
48
49
|
function Table(props, ref) {
|
|
49
50
|
var _a, _b;
|
|
50
51
|
const {
|
|
@@ -73,7 +74,7 @@ function Table(props, ref) {
|
|
|
73
74
|
const { getPrefixCls, locale, table } = (0, import_react.useContext)(import_config_provider.default.ConfigContext);
|
|
74
75
|
const {
|
|
75
76
|
batchOperationBar,
|
|
76
|
-
emptyText = /* @__PURE__ */
|
|
77
|
+
emptyText = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_empty.default, { image: import_empty.default.PRESENTED_IMAGE_SIMPLE }),
|
|
77
78
|
...restLocale
|
|
78
79
|
} = {
|
|
79
80
|
...customLocale,
|
|
@@ -112,7 +113,7 @@ function Table(props, ref) {
|
|
|
112
113
|
render: (text, record, index) => {
|
|
113
114
|
const element = item.render ? item.render(text, record, index) : record[item.dataIndex];
|
|
114
115
|
const elementType = element == null ? void 0 : element.type;
|
|
115
|
-
return (elementType == null ? void 0 : elementType.__ANT_TOOLTIP) === true ? element : /* @__PURE__ */
|
|
116
|
+
return (elementType == null ? void 0 : elementType.__ANT_TOOLTIP) === true ? element : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
116
117
|
import_typography.default.Text,
|
|
117
118
|
{
|
|
118
119
|
ellipsis: {
|
|
@@ -120,9 +121,9 @@ function Table(props, ref) {
|
|
|
120
121
|
placement: "topLeft",
|
|
121
122
|
title: element
|
|
122
123
|
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
},
|
|
125
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: element })
|
|
126
|
+
}
|
|
126
127
|
);
|
|
127
128
|
}
|
|
128
129
|
};
|
|
@@ -148,35 +149,47 @@ function Table(props, ref) {
|
|
|
148
149
|
if ((0, import_lodash.isEmpty)(rowSelection) || (0, import_lodash.isEmpty)(currentSelectedRowKeys)) {
|
|
149
150
|
return (
|
|
150
151
|
// @ts-ignore
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: pagination && (pagination == null ? void 0 : pagination.showTotal) && (pagination == null ? void 0 : pagination.showTotal(total, range)) })
|
|
152
153
|
);
|
|
153
154
|
}
|
|
154
|
-
return /* @__PURE__ */
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
155
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
|
|
156
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: `${prefixCls}-batch-operation-bar`, children: [
|
|
157
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
158
|
+
import_antd.Space,
|
|
159
|
+
{
|
|
160
|
+
size: 8,
|
|
161
|
+
style: {
|
|
162
|
+
marginRight: 24
|
|
163
|
+
},
|
|
164
|
+
children: [
|
|
165
|
+
toolAlertRender && toolAlertRender(currentSelectedRowKeys, currentSelectedRows),
|
|
166
|
+
!toolAlertRender && toolAlertRender !== false && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: `${prefixCls}-batch-operation-selection`, children: [
|
|
167
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: batchOperationBar == null ? void 0 : batchOperationBar.selected }),
|
|
168
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: `${prefixCls}-batch-operation-selection-count`, children: (currentSelectedRowKeys == null ? void 0 : currentSelectedRowKeys.length) || 0 }),
|
|
169
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: batchOperationBar == null ? void 0 : batchOperationBar.object })
|
|
170
|
+
] }),
|
|
171
|
+
!hiddenCancelBtn && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", { onClick: handleOptionsCancel, children: cancelText ?? (batchOperationBar == null ? void 0 : batchOperationBar.cancel) }),
|
|
172
|
+
toolSelectedContent && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
173
|
+
import_antd.Popover,
|
|
174
|
+
{
|
|
175
|
+
placement: "top",
|
|
176
|
+
overlayClassName: `${prefixCls}-batch-operation-selection-popover`,
|
|
177
|
+
content: toolSelectedContent == null ? void 0 : toolSelectedContent(currentSelectedRowKeys, currentSelectedRows),
|
|
178
|
+
trigger: "click",
|
|
179
|
+
open: openPopover,
|
|
180
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", { onClick: () => setOpenPopover(!openPopover), children: openPopover ? collapseText ?? (batchOperationBar == null ? void 0 : batchOperationBar.collapse) : openText ?? (batchOperationBar == null ? void 0 : batchOperationBar.open) })
|
|
181
|
+
}
|
|
182
|
+
)
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
),
|
|
186
|
+
toolOptionsRender && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd.Space, { size: 8, children: toolOptionsRender == null ? void 0 : toolOptionsRender(currentSelectedRowKeys, currentSelectedRows) })
|
|
187
|
+
] }),
|
|
188
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: pagination && (pagination == null ? void 0 : pagination.showTotal) && (pagination == null ? void 0 : pagination.showTotal(total, range)) })
|
|
189
|
+
] });
|
|
177
190
|
};
|
|
178
191
|
return wrapSSR(
|
|
179
|
-
/* @__PURE__ */
|
|
192
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
180
193
|
import_antd.Table,
|
|
181
194
|
{
|
|
182
195
|
...props,
|
|
@@ -185,7 +198,7 @@ function Table(props, ref) {
|
|
|
185
198
|
className: tableCls,
|
|
186
199
|
locale: {
|
|
187
200
|
...restLocale,
|
|
188
|
-
emptyText: /* @__PURE__ */
|
|
201
|
+
emptyText: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefixCls}-empty-wrapper`, children: typeof emptyText === "function" ? emptyText() : emptyText })
|
|
189
202
|
},
|
|
190
203
|
size,
|
|
191
204
|
bordered: bordered || innerBordered,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { CSSObject } from '@ant-design/cssinjs';
|
|
3
|
-
import type { FullToken } from '
|
|
3
|
+
import type { FullToken } from '../../theme/interface';
|
|
4
4
|
export type TableToken = FullToken<'Table'>;
|
|
5
5
|
export declare const genTableStyle: (token: TableToken) => CSSObject;
|
|
6
6
|
declare const _default: (prefixCls: string) => {
|
package/lib/table/style/index.js
CHANGED
|
@@ -40,6 +40,7 @@ var genTableStyle = (token) => {
|
|
|
40
40
|
marginLG,
|
|
41
41
|
marginXS
|
|
42
42
|
} = token;
|
|
43
|
+
console.log(token.fontWeight);
|
|
43
44
|
return {
|
|
44
45
|
// 表格通用样式
|
|
45
46
|
[`${componentCls}-wrapper ${componentCls}`]: {
|
|
@@ -53,9 +54,8 @@ var genTableStyle = (token) => {
|
|
|
53
54
|
// head 样式
|
|
54
55
|
[`${componentCls}-thead > tr`]: {
|
|
55
56
|
["th"]: {
|
|
56
|
-
// 弱化列标题
|
|
57
57
|
color: colorTextSecondary,
|
|
58
|
-
fontWeight:
|
|
58
|
+
fontWeight: token.fontWeight,
|
|
59
59
|
backgroundColor: colorBgBase
|
|
60
60
|
},
|
|
61
61
|
// 去掉排序列表头的灰色背景
|
|
@@ -159,7 +159,6 @@ var genTableStyle = (token) => {
|
|
|
159
159
|
[`${componentCls}-thead, ${componentCls}-tbody`]: {
|
|
160
160
|
["td, th"]: {
|
|
161
161
|
[`&${componentCls}-row-expand-icon-cell`]: {
|
|
162
|
-
backgroundColor: colorBgBase,
|
|
163
162
|
// 设置 paddingRight 即可
|
|
164
163
|
paddingRight: token.paddingXS
|
|
165
164
|
},
|
|
@@ -275,7 +274,7 @@ var genTableStyle = (token) => {
|
|
|
275
274
|
marginRight: marginLG,
|
|
276
275
|
[`${componentCls}-batch-operation-selection`]: {
|
|
277
276
|
color: colorTextSecondary,
|
|
278
|
-
fontWeight:
|
|
277
|
+
fontWeight: token.fontWeightStrong,
|
|
279
278
|
[`${componentCls}-batch-operation-selection-count`]: {
|
|
280
279
|
margin: `0 ${marginXS}px`,
|
|
281
280
|
color: colorLink
|
package/lib/tabs/index.js
CHANGED
|
@@ -43,6 +43,7 @@ var import_useLegacyItems = __toESM(require("./hooks/useLegacyItems"));
|
|
|
43
43
|
var import_style = __toESM(require("./style"));
|
|
44
44
|
var import_TabPane = __toESM(require("./TabPane"));
|
|
45
45
|
__reExport(tabs_exports, require("antd/es/tabs"), module.exports);
|
|
46
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
46
47
|
var isReactNode = (item) => {
|
|
47
48
|
return import_react.default.isValidElement(item);
|
|
48
49
|
};
|
|
@@ -68,9 +69,9 @@ var Tabs = import_react.default.forwardRef(
|
|
|
68
69
|
const renderBadge = (0, import_react.useCallback)(
|
|
69
70
|
(badge) => {
|
|
70
71
|
if (typeof badge === "object" && !isReactNode(badge)) {
|
|
71
|
-
return /* @__PURE__ */
|
|
72
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_badge.default, { ...badge, className: (0, import_classnames.default)(`${prefixCls}-tab-badge`, badge.className) });
|
|
72
73
|
}
|
|
73
|
-
return /* @__PURE__ */
|
|
74
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_badge.default, { className: `${prefixCls}-tab-badge`, count: badge });
|
|
74
75
|
},
|
|
75
76
|
[prefixCls]
|
|
76
77
|
);
|
|
@@ -80,7 +81,7 @@ var Tabs = import_react.default.forwardRef(
|
|
|
80
81
|
return {
|
|
81
82
|
...item,
|
|
82
83
|
key: `divider-${dividerList == null ? void 0 : dividerList.indexOf(item)}`,
|
|
83
|
-
label: /* @__PURE__ */
|
|
84
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
84
85
|
import_antd.Divider,
|
|
85
86
|
{
|
|
86
87
|
type: isHorizontal ? "vertical" : "horizontal",
|
|
@@ -92,13 +93,17 @@ var Tabs = import_react.default.forwardRef(
|
|
|
92
93
|
} else if (!(0, import_util.isNullValue)(item.tag) || !(0, import_util.isNullValue)(item.badge)) {
|
|
93
94
|
return {
|
|
94
95
|
...item,
|
|
95
|
-
label: /* @__PURE__ */
|
|
96
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_antd.Space, { size: 4, children: [
|
|
97
|
+
item.label,
|
|
98
|
+
item.badge && renderBadge(item.badge),
|
|
99
|
+
!(0, import_util.isNullValue)(item.tag) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd.Tag, { bordered: false, className: `${prefixCls}-tab-tag`, children: item.tag })
|
|
100
|
+
] })
|
|
96
101
|
};
|
|
97
102
|
}
|
|
98
103
|
return item;
|
|
99
104
|
});
|
|
100
105
|
return wrapSSR(
|
|
101
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
102
107
|
import_antd.Tabs,
|
|
103
108
|
{
|
|
104
109
|
ref,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { CSSObject } from '@ant-design/cssinjs';
|
|
3
|
-
import type { FullToken } from '
|
|
3
|
+
import type { FullToken } from '../../theme/interface';
|
|
4
4
|
export type TabsToken = FullToken<'Tabs'>;
|
|
5
5
|
export declare const genTabsStyle: (token: Partial<TabsToken>) => CSSObject;
|
|
6
6
|
declare const _default: (prefixCls: string) => {
|
package/lib/tabs/style/index.js
CHANGED
|
@@ -36,6 +36,11 @@ var genTabsStyle = (token) => {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
+
[`&${componentCls}-left, &${componentCls}-right`]: {
|
|
40
|
+
[`${componentCls}-tab[data-node-key^=divider-]`]: {
|
|
41
|
+
paddingBlock: 0
|
|
42
|
+
}
|
|
43
|
+
},
|
|
39
44
|
[`${componentCls}-tab`]: {
|
|
40
45
|
/** @deprecated */
|
|
41
46
|
[`${componentCls}-tab-tag`]: {
|
package/lib/tag/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type { Ellipsis } from '../_util/getEllipsisConfig';
|
|
|
4
4
|
export * from 'antd/es/tag';
|
|
5
5
|
export interface TagProps extends AntTagProps {
|
|
6
6
|
ellipsis?: Ellipsis;
|
|
7
|
+
pill?: boolean;
|
|
7
8
|
}
|
|
8
9
|
declare const _default: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLSpanElement>> & {
|
|
9
10
|
CheckableTag: React.ForwardRefExoticComponent<import("antd/es/tag").CheckableTagProps & React.RefAttributes<HTMLSpanElement>>;
|
package/lib/tag/index.js
CHANGED
|
@@ -41,6 +41,7 @@ var import_typography = __toESM(require("../typography"));
|
|
|
41
41
|
var import_style = __toESM(require("./style"));
|
|
42
42
|
var import_getEllipsisConfig = require("../_util/getEllipsisConfig");
|
|
43
43
|
__reExport(tag_exports, require("antd/es/tag"), module.exports);
|
|
44
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
44
45
|
var Tag = import_react.default.forwardRef(
|
|
45
46
|
({
|
|
46
47
|
children,
|
|
@@ -52,6 +53,7 @@ var Tag = import_react.default.forwardRef(
|
|
|
52
53
|
title: children
|
|
53
54
|
}
|
|
54
55
|
},
|
|
56
|
+
pill,
|
|
55
57
|
...restProps
|
|
56
58
|
}, ref) => {
|
|
57
59
|
const { getPrefixCls } = (0, import_react.useContext)(import_config_provider.default.ConfigContext);
|
|
@@ -60,22 +62,26 @@ var Tag = import_react.default.forwardRef(
|
|
|
60
62
|
const ellipsisConfig = (0, import_getEllipsisConfig.getEllipsisConfig)(ellipsis, children);
|
|
61
63
|
const tagCls = (0, import_classnames.default)(
|
|
62
64
|
{
|
|
63
|
-
[`${prefixCls}-ellipsis`]: !!ellipsisConfig
|
|
65
|
+
[`${prefixCls}-ellipsis`]: !!ellipsisConfig,
|
|
66
|
+
[`${prefixCls}-pill`]: pill
|
|
64
67
|
},
|
|
65
68
|
className
|
|
66
69
|
);
|
|
67
|
-
const realIcon = icon ? /* @__PURE__ */
|
|
70
|
+
const realIcon = icon ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: `${prefixCls}-icon`, children: icon }) : null;
|
|
68
71
|
return wrapSSR(
|
|
69
|
-
/* @__PURE__ */
|
|
72
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
70
73
|
import_antd.Tag,
|
|
71
74
|
{
|
|
72
75
|
ref,
|
|
73
76
|
prefixCls: customizePrefixCls,
|
|
74
77
|
className: tagCls,
|
|
75
78
|
icon: ellipsisConfig ? null : icon,
|
|
76
|
-
...restProps
|
|
77
|
-
|
|
78
|
-
|
|
79
|
+
...restProps,
|
|
80
|
+
children: ellipsisConfig ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_typography.default.Text, { ellipsis: ellipsisConfig, children: [
|
|
81
|
+
realIcon,
|
|
82
|
+
children
|
|
83
|
+
] }) : children
|
|
84
|
+
}
|
|
79
85
|
)
|
|
80
86
|
);
|
|
81
87
|
}
|
package/lib/tag/style/index.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type FullToken } from 'antd/es/theme/internal';
|
|
3
2
|
import type { CSSObject } from '@ant-design/cssinjs';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
3
|
+
import type { FullToken } from '../../theme/interface';
|
|
4
|
+
export type TagToken = FullToken<'Tag'>;
|
|
7
5
|
export declare const genTagStyle: (token: TagToken) => CSSObject;
|
|
8
6
|
declare const _default: (prefixCls: string) => {
|
|
9
7
|
wrapSSR: (node: import("react").ReactNode) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|