@oceanbase/design 0.4.0 → 0.4.2
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.css +1 -1
- package/dist/design.min.js +1 -1
- package/dist/reset.css +1 -0
- package/es/_util/genComponentStyleHook.d.ts +0 -1
- package/es/_util/genComponentStyleHook.js +1 -25
- package/es/button/style/index.js +17 -3
- package/es/card/index.js +11 -19
- package/es/card/style/index.js +5 -3
- package/es/checkbox/index.d.ts +2 -0
- package/es/checkbox/index.js +40 -1
- package/es/checkbox/style/index.d.ts +9 -0
- package/es/checkbox/style/index.js +22 -0
- package/es/config-provider/index.d.ts +2 -0
- package/es/config-provider/index.js +6 -4
- package/es/descriptions/hooks/useItems.d.ts +4 -4
- package/es/empty/default.js +34 -55
- package/es/empty/style/index.js +13 -11
- package/es/global.css +48 -0
- package/es/index.d.ts +9 -1
- package/es/index.js +5 -1
- package/es/progress/index.d.ts +1 -0
- package/es/progress/index.js +1 -0
- package/es/progress/progress.d.ts +1 -0
- package/es/progress/progress.js +1 -0
- package/es/radio/index.d.ts +7 -0
- package/es/radio/index.js +41 -1
- package/es/radio/style/index.d.ts +9 -0
- package/es/radio/style/index.js +23 -0
- package/es/result/style/index.js +10 -2
- package/es/slider/index.d.ts +5 -0
- package/es/slider/index.js +36 -1
- package/es/slider/style/index.d.ts +9 -0
- package/es/slider/style/index.js +21 -0
- package/es/switch/index.d.ts +4 -0
- package/es/switch/index.js +40 -1
- package/es/switch/style/index.d.ts +9 -0
- package/es/switch/style/index.js +17 -0
- package/es/table/index.js +18 -3
- package/es/table/style/index.js +55 -40
- package/es/theme/default.js +13 -12
- package/es/theme/style/aliyun.less +5 -1
- package/es/theme/style/compact.less +7 -3
- package/es/theme/style/dark.less +5 -1
- package/es/theme/style/default.less +15 -11
- package/es/tooltip/MouseTooltip.js +3 -2
- package/es/tooltip/index.js +3 -2
- package/es/tooltip/style/index.js +11 -2
- package/es/typography/Link.js +9 -3
- package/es/typography/Paragraph.js +9 -3
- package/es/typography/Text.js +9 -3
- package/es/typography/Title.js +9 -3
- package/es/typography/hooks/useClassName.d.ts +3 -0
- package/es/typography/hooks/useClassName.js +11 -0
- package/es/typography/style/index.js +45 -3
- package/lib/_util/genComponentStyleHook.d.ts +0 -1
- package/lib/_util/genComponentStyleHook.js +3 -38
- package/lib/button/style/index.js +21 -1
- package/lib/card/index.js +10 -21
- package/lib/card/style/index.js +7 -2
- package/lib/checkbox/index.d.ts +2 -0
- package/lib/checkbox/index.js +49 -1
- package/lib/checkbox/style/index.d.ts +9 -0
- package/lib/checkbox/style/index.js +49 -0
- package/lib/config-provider/index.d.ts +2 -0
- package/lib/config-provider/index.js +2 -1
- package/lib/descriptions/hooks/useItems.d.ts +4 -4
- package/lib/empty/default.js +8 -39
- package/lib/empty/style/index.js +42 -46
- package/lib/global.css +48 -0
- package/lib/index.d.ts +9 -1
- package/lib/index.js +13 -1
- package/lib/progress/index.d.ts +1 -0
- package/lib/progress/index.js +2 -0
- package/lib/progress/progress.d.ts +1 -0
- package/lib/progress/progress.js +23 -0
- package/lib/radio/index.d.ts +7 -0
- package/lib/radio/index.js +42 -1
- package/lib/radio/style/index.d.ts +9 -0
- package/lib/radio/style/index.js +49 -0
- package/lib/result/style/index.js +10 -1
- package/lib/slider/index.d.ts +5 -0
- package/lib/slider/index.js +38 -1
- package/lib/slider/style/index.d.ts +9 -0
- package/lib/slider/style/index.js +51 -0
- package/lib/switch/index.d.ts +4 -0
- package/lib/switch/index.js +40 -1
- package/lib/switch/style/index.d.ts +9 -0
- package/lib/switch/style/index.js +44 -0
- package/lib/table/index.js +19 -3
- package/lib/table/style/index.js +94 -55
- package/lib/theme/default.js +13 -12
- package/lib/theme/style/aliyun.less +5 -1
- package/lib/theme/style/compact.less +7 -3
- package/lib/theme/style/dark.less +5 -1
- package/lib/theme/style/default.less +15 -11
- package/lib/tooltip/MouseTooltip.js +3 -2
- package/lib/tooltip/index.js +3 -2
- package/lib/tooltip/style/index.js +10 -1
- package/lib/typography/Link.js +14 -2
- package/lib/typography/Paragraph.js +14 -2
- package/lib/typography/Text.js +14 -2
- package/lib/typography/Title.js +14 -2
- package/lib/typography/hooks/useClassName.d.ts +3 -0
- package/lib/typography/hooks/useClassName.js +46 -0
- package/lib/typography/style/index.js +49 -1
- package/package.json +13 -13
- package/es/reset.css +0 -10
- package/lib/reset.css +0 -10
- /package/es/{_util/fonts → fonts}/Consolas.woff2 +0 -0
- /package/es/{_util/fonts → fonts}/HelveticaNeue.woff2 +0 -0
- /package/es/{_util/fonts → fonts}/Inter.woff2 +0 -0
- /package/lib/{_util/fonts → fonts}/Consolas.woff2 +0 -0
- /package/lib/{_util/fonts → fonts}/HelveticaNeue.woff2 +0 -0
- /package/lib/{_util/fonts → fonts}/Inter.woff2 +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { FullToken, GenerateStyle } from 'antd/es/theme/internal';
|
|
3
|
+
export type CheckboxToken = FullToken<'Checkbox'>;
|
|
4
|
+
export declare const genCheckboxStyle: GenerateStyle<CheckboxToken>;
|
|
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;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/checkbox/style/index.ts
|
|
20
|
+
var style_exports = {};
|
|
21
|
+
__export(style_exports, {
|
|
22
|
+
default: () => style_default,
|
|
23
|
+
genCheckboxStyle: () => genCheckboxStyle
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(style_exports);
|
|
26
|
+
var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
|
|
27
|
+
var genCheckboxStyle = (token) => {
|
|
28
|
+
const { componentCls, fontSize, fontSizeLG, lineHeight } = token;
|
|
29
|
+
return {
|
|
30
|
+
[`${componentCls}-wrapper`]: {
|
|
31
|
+
[`${componentCls}`]: {
|
|
32
|
+
alignSelf: "baseline",
|
|
33
|
+
[`${componentCls}-inner`]: {
|
|
34
|
+
transform: `translate(0px, ${(fontSize * lineHeight - fontSizeLG) / 2}px)`
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
var style_default = (prefixCls) => {
|
|
41
|
+
const useStyle = (0, import_genComponentStyleHook.genComponentStyleHook)("Checkbox", (token) => {
|
|
42
|
+
return [genCheckboxStyle(token)];
|
|
43
|
+
});
|
|
44
|
+
return useStyle(prefixCls);
|
|
45
|
+
};
|
|
46
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
47
|
+
0 && (module.exports = {
|
|
48
|
+
genCheckboxStyle
|
|
49
|
+
});
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { ConfigProvider as AntConfigProvider } from 'antd';
|
|
3
3
|
import type { ConfigProviderProps as AntConfigProviderProps, ConfigConsumerProps as AntConfigConsumerProps, ThemeConfig as AntThemeConfig } from 'antd/es/config-provider';
|
|
4
4
|
import type { ComponentStyleConfig } from 'antd/es/config-provider/context';
|
|
5
|
+
import type { AppProps } from 'antd/es/app';
|
|
5
6
|
import type { PaginationConfig } from 'antd/es/pagination';
|
|
6
7
|
import type { SpinIndicator } from 'antd/es/spin';
|
|
7
8
|
import type { StyleProviderProps } from '@ant-design/cssinjs';
|
|
@@ -41,6 +42,7 @@ export interface ConfigProviderProps extends AntConfigProviderProps {
|
|
|
41
42
|
table?: TableConfig;
|
|
42
43
|
injectStaticFunction?: boolean;
|
|
43
44
|
styleProviderProps?: StyleProviderProps;
|
|
45
|
+
appProps?: AppProps;
|
|
44
46
|
}
|
|
45
47
|
export interface ExtendedConfigConsumerProps {
|
|
46
48
|
navigate?: NavigateFunction;
|
|
@@ -65,6 +65,7 @@ var ConfigProvider = ({
|
|
|
65
65
|
tabs,
|
|
66
66
|
injectStaticFunction = true,
|
|
67
67
|
styleProviderProps,
|
|
68
|
+
appProps,
|
|
68
69
|
...restProps
|
|
69
70
|
}) => {
|
|
70
71
|
var _a, _b;
|
|
@@ -128,7 +129,7 @@ var ConfigProvider = ({
|
|
|
128
129
|
hideOnSinglePage: ((_b = parentContext.pagination) == null ? void 0 : _b.showSizeChanger) ? false : hideOnSinglePage !== void 0 ? hideOnSinglePage : parentExtendedContext.hideOnSinglePage
|
|
129
130
|
}
|
|
130
131
|
},
|
|
131
|
-
/* @__PURE__ */ import_react.default.createElement(import_cssinjs.StyleProvider, { ...mergedStyleProviderProps }, /* @__PURE__ */ import_react.default.createElement(import_antd.App, { component: false }, children, injectStaticFunction && /* @__PURE__ */ import_react.default.createElement(import_static_function.default, null)))
|
|
132
|
+
/* @__PURE__ */ import_react.default.createElement(import_cssinjs.StyleProvider, { ...mergedStyleProviderProps }, /* @__PURE__ */ import_react.default.createElement(import_antd.App, { component: false, ...appProps }, children, injectStaticFunction && /* @__PURE__ */ import_react.default.createElement(import_static_function.default, null)))
|
|
132
133
|
)
|
|
133
134
|
);
|
|
134
135
|
};
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { DescriptionsItemType } from '..';
|
|
3
3
|
export default function useItems(items?: DescriptionsItemType[], children?: React.ReactNode, bordered?: boolean): {
|
|
4
4
|
children: string | number | boolean | Iterable<React.ReactNode> | import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
5
|
-
span?: number | {
|
|
5
|
+
span?: number | "filled" | {
|
|
6
6
|
xxl?: number;
|
|
7
7
|
xl?: number;
|
|
8
8
|
lg?: number;
|
|
@@ -10,11 +10,11 @@ export default function useItems(items?: DescriptionsItemType[], children?: Reac
|
|
|
10
10
|
sm?: number;
|
|
11
11
|
xs?: number;
|
|
12
12
|
};
|
|
13
|
-
prefixCls?: string;
|
|
14
|
-
style?: React.CSSProperties;
|
|
15
13
|
className?: string;
|
|
16
|
-
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
prefixCls?: string;
|
|
17
16
|
key?: React.Key;
|
|
17
|
+
label?: React.ReactNode;
|
|
18
18
|
labelStyle?: React.CSSProperties;
|
|
19
19
|
contentStyle?: React.CSSProperties;
|
|
20
20
|
}[];
|
package/lib/empty/default.js
CHANGED
|
@@ -36,50 +36,19 @@ var import_react = __toESM(require("react"));
|
|
|
36
36
|
var DefaultEmptyImg = (props) => /* @__PURE__ */ import_react.default.createElement(
|
|
37
37
|
"svg",
|
|
38
38
|
{
|
|
39
|
-
width: "
|
|
40
|
-
height: "
|
|
41
|
-
viewBox: "0 0
|
|
39
|
+
width: "56px",
|
|
40
|
+
height: "56px",
|
|
41
|
+
viewBox: "0 0 56 56",
|
|
42
42
|
version: "1.1",
|
|
43
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
44
|
-
...props
|
|
43
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
45
44
|
},
|
|
46
|
-
/* @__PURE__ */ import_react.default.createElement("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd" }, /* @__PURE__ */ import_react.default.createElement("g", { transform: "translate(
|
|
47
|
-
"rect",
|
|
48
|
-
{
|
|
49
|
-
fill: "#E6E6E6",
|
|
50
|
-
x: "5.3055",
|
|
51
|
-
y: "0",
|
|
52
|
-
width: "35.79525",
|
|
53
|
-
height: "28.134",
|
|
54
|
-
rx: "2.72025"
|
|
55
|
-
}
|
|
56
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
|
57
|
-
"rect",
|
|
58
|
-
{
|
|
59
|
-
fill: "#F8F8F8",
|
|
60
|
-
x: "11.04975",
|
|
61
|
-
y: "5.0625",
|
|
62
|
-
width: "24.1515",
|
|
63
|
-
height: "1.593",
|
|
64
|
-
rx: "0.7965"
|
|
65
|
-
}
|
|
66
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
|
67
|
-
"rect",
|
|
68
|
-
{
|
|
69
|
-
fill: "#F8F8F8",
|
|
70
|
-
x: "11.04975",
|
|
71
|
-
y: "10.60425",
|
|
72
|
-
width: "16.08525",
|
|
73
|
-
height: "1.593",
|
|
74
|
-
rx: "0.7965"
|
|
75
|
-
}
|
|
76
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
|
45
|
+
/* @__PURE__ */ import_react.default.createElement("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd" }, /* @__PURE__ */ import_react.default.createElement("g", { transform: "translate(4.2, 4.2)", fillRule: "nonzero" }, /* @__PURE__ */ import_react.default.createElement("rect", { fill: "#CDD5E4", x: "5.495", y: "0", width: "37.121", height: "29.176", rx: "4.03" }), /* @__PURE__ */ import_react.default.createElement("rect", { fill: "#F8F8F8", x: "11.452", y: "5.257", width: "25.046", height: "1.652", rx: "0.826" }), /* @__PURE__ */ import_react.default.createElement("rect", { fill: "#F8F8F8", x: "11.452", y: "10.997", width: "16.681", height: "1.652", rx: "0.826" }), /* @__PURE__ */ import_react.default.createElement(
|
|
77
46
|
"path",
|
|
78
47
|
{
|
|
79
|
-
d: "
|
|
80
|
-
fill: "#
|
|
48
|
+
d: "M45.143,48.083 L2.821,48.083 C1.267,48.083 0,46.823 0,45.262 L0,21.028 C0,19.474 1.26,18.207 2.821,18.207 L19.264,18.207 C20.216,18.207 21.098,18.683 21.623,19.481 L23.149,21.798 C23.667,22.589 24.556,23.072 25.508,23.072 L45.15,23.072 C46.704,23.072 47.971,24.332 47.971,25.893 L47.971,45.262 C47.971,46.816 46.711,48.083 45.15,48.083 L45.143,48.083 Z",
|
|
49
|
+
fill: "#F3F6FC"
|
|
81
50
|
}
|
|
82
|
-
)))
|
|
51
|
+
)))
|
|
83
52
|
);
|
|
84
53
|
if (process.env.NODE_ENV !== "production") {
|
|
85
54
|
DefaultEmptyImg.displayName = "DefaultEmptyImg";
|
package/lib/empty/style/index.js
CHANGED
|
@@ -26,15 +26,7 @@ module.exports = __toCommonJS(style_exports);
|
|
|
26
26
|
var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
|
|
27
27
|
var import_genStyle = require("../../_util/genStyle");
|
|
28
28
|
var genEmptyStyle = (token) => {
|
|
29
|
-
const {
|
|
30
|
-
antCls,
|
|
31
|
-
componentCls,
|
|
32
|
-
colorTextTertiary,
|
|
33
|
-
colorBgLayout,
|
|
34
|
-
colorFill,
|
|
35
|
-
colorText,
|
|
36
|
-
colorTextSecondary
|
|
37
|
-
} = token;
|
|
29
|
+
const { antCls, componentCls, colorTextTertiary, colorText, colorTextSecondary } = token;
|
|
38
30
|
return {
|
|
39
31
|
[`${componentCls}`]: {
|
|
40
32
|
[`${componentCls}-image`]: {
|
|
@@ -47,54 +39,58 @@ var genEmptyStyle = (token) => {
|
|
|
47
39
|
[`${componentCls}-title`]: {
|
|
48
40
|
color: token.colorText,
|
|
49
41
|
fontWeight: token.fontWeightStrong,
|
|
50
|
-
fontSize: token.
|
|
51
|
-
lineHeight: token.
|
|
42
|
+
fontSize: token.fontSizeHeading4,
|
|
43
|
+
lineHeight: token.lineHeightHeading4,
|
|
52
44
|
marginTop: token.marginLG
|
|
53
45
|
},
|
|
54
46
|
[`${componentCls}-description-content`]: {
|
|
55
47
|
color: colorTextTertiary,
|
|
48
|
+
maxWidth: 600,
|
|
49
|
+
margin: "0px auto",
|
|
56
50
|
marginTop: token.marginXS
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
[`${antCls}-steps-item-icon`]: {
|
|
70
|
-
height: token.controlHeightSM,
|
|
71
|
-
width: token.controlHeightSM,
|
|
72
|
-
lineHeight: `${token.controlHeightSM}px`,
|
|
73
|
-
backgroundColor: token.colorFillSecondary,
|
|
74
|
-
// override default border color
|
|
75
|
-
borderColor: token.colorFillSecondary,
|
|
76
|
-
[`${antCls}-steps-icon`]: {
|
|
77
|
-
color: colorTextSecondary,
|
|
78
|
-
fontSize: token.fontSize
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
[`${antCls}-steps-item-content`]: {
|
|
82
|
-
[`${antCls}-steps-item-title`]: {
|
|
83
|
-
color: colorText,
|
|
84
|
-
fontSize: token.fontSize,
|
|
85
|
-
fontWeight: token.fontWeightStrong,
|
|
51
|
+
},
|
|
52
|
+
[`${antCls}-steps`]: {
|
|
53
|
+
maxWidth: 1e3,
|
|
54
|
+
margin: "0px auto",
|
|
55
|
+
marginTop: token.marginLG,
|
|
56
|
+
padding: token.paddingLG,
|
|
57
|
+
backgroundColor: token.colorFillQuaternary,
|
|
58
|
+
borderRadius: token.borderRadiusLG,
|
|
59
|
+
[`${antCls}-steps-item-container`]: {
|
|
60
|
+
[`${antCls}-steps-item-icon`]: {
|
|
61
|
+
height: token.controlHeightSM,
|
|
62
|
+
width: token.controlHeightSM,
|
|
86
63
|
lineHeight: `${token.controlHeightSM}px`,
|
|
87
|
-
|
|
88
|
-
|
|
64
|
+
backgroundColor: token.colorFillSecondary,
|
|
65
|
+
// override default border color
|
|
66
|
+
borderColor: token.colorFillSecondary,
|
|
67
|
+
[`${antCls}-steps-icon`]: {
|
|
68
|
+
color: colorTextSecondary,
|
|
69
|
+
fontSize: token.fontSize
|
|
89
70
|
}
|
|
90
71
|
},
|
|
91
|
-
[`${antCls}-steps-item-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
72
|
+
[`${antCls}-steps-item-content`]: {
|
|
73
|
+
[`${antCls}-steps-item-title`]: {
|
|
74
|
+
color: colorText,
|
|
75
|
+
fontSize: token.fontSize,
|
|
76
|
+
fontWeight: token.fontWeightStrong,
|
|
77
|
+
lineHeight: `${token.controlHeightSM}px`,
|
|
78
|
+
"&::after": {
|
|
79
|
+
top: token.controlHeightSM / 2
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
[`${antCls}-steps-item-description`]: {
|
|
83
|
+
color: colorTextTertiary,
|
|
84
|
+
fontSize: token.fontSizeSM,
|
|
85
|
+
marginTop: token.marginXS
|
|
86
|
+
}
|
|
95
87
|
}
|
|
96
88
|
}
|
|
97
89
|
}
|
|
90
|
+
},
|
|
91
|
+
[`${componentCls}-footer`]: {
|
|
92
|
+
marginTop: token.marginLG,
|
|
93
|
+
...(0, import_genStyle.genLargeStyle)(token)
|
|
98
94
|
}
|
|
99
95
|
},
|
|
100
96
|
[`${componentCls}-horizontal`]: {
|
package/lib/global.css
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
@import 'antd/dist/reset.css';
|
|
2
|
+
|
|
3
|
+
@font-face {
|
|
4
|
+
font-family: 'Inter';
|
|
5
|
+
/* load priority: local font > remote font > self-hosting font */
|
|
6
|
+
src:
|
|
7
|
+
local('Inter'),
|
|
8
|
+
url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*2aG4RJIdUGYAAAAAAAAAAAAADmfOAQ/Inter.woff2')
|
|
9
|
+
format('woff2'),
|
|
10
|
+
url('./fonts/Inter.woff2') format('woff2');
|
|
11
|
+
/* load strategy: use default font as fallback */
|
|
12
|
+
font-display: swap;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@font-face {
|
|
16
|
+
font-family: 'Consolas';
|
|
17
|
+
src:
|
|
18
|
+
local('Consolas'),
|
|
19
|
+
url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*R8bMTqAdGWgAAAAAAAAAAAAADmfOAQ/Consolas.woff2')
|
|
20
|
+
format('woff2'),
|
|
21
|
+
url('./fonts/Consolas.woff2') format('woff2');
|
|
22
|
+
font-display: swap;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@font-face {
|
|
26
|
+
font-family: 'Helvetica Neue';
|
|
27
|
+
src:
|
|
28
|
+
local('Helvetica Neue'),
|
|
29
|
+
url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*3EzqR6aYJMkAAAAAAAAAAAAADmfOAQ/HelveticaNeue.woff2')
|
|
30
|
+
format('woff2'),
|
|
31
|
+
url('./fonts/HelveticaNeue.woff2') format('woff2');
|
|
32
|
+
font-display: swap;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
pre,
|
|
36
|
+
code,
|
|
37
|
+
kbd,
|
|
38
|
+
samp {
|
|
39
|
+
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
* {
|
|
43
|
+
scrollbar-color: #e2e8f3 transparent;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.rc-virtual-list-scrollbar-thumb {
|
|
47
|
+
background: #e2e8f3 !important;
|
|
48
|
+
}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './global.css';
|
|
2
2
|
export * from 'antd';
|
|
3
3
|
export { version } from '../package.json';
|
|
4
4
|
export { default as Alert } from './alert';
|
|
@@ -38,10 +38,18 @@ export { default as Input } from './input';
|
|
|
38
38
|
export type { InputProps } from './input';
|
|
39
39
|
export { default as InputNumber } from './input-number';
|
|
40
40
|
export type { InputNumberProps } from './input-number';
|
|
41
|
+
export { default as Radio } from './radio';
|
|
42
|
+
export type { RadioProps } from './radio';
|
|
43
|
+
export { default as Checkbox } from './checkbox';
|
|
44
|
+
export type { CheckboxProps } from './checkbox';
|
|
45
|
+
export { default as Switch } from './switch';
|
|
46
|
+
export type { SwitchProps } from './switch';
|
|
41
47
|
export { default as Select } from './select';
|
|
42
48
|
export type { SelectProps } from './select';
|
|
43
49
|
export { default as TreeSelect } from './tree-select';
|
|
44
50
|
export type { TreeSelectProps } from './tree-select';
|
|
51
|
+
export { default as Slider } from './slider';
|
|
52
|
+
export type { SliderSingleProps, SliderRangeProps } from './slider';
|
|
45
53
|
export { default as Tooltip } from './tooltip';
|
|
46
54
|
export type { TooltipProps } from './tooltip';
|
|
47
55
|
export { default as Segmented } from './segmented';
|
package/lib/index.js
CHANGED
|
@@ -35,6 +35,7 @@ __export(src_exports, {
|
|
|
35
35
|
Breadcrumb: () => import_breadcrumb.default,
|
|
36
36
|
Button: () => import_button.default,
|
|
37
37
|
Card: () => import_card.default,
|
|
38
|
+
Checkbox: () => import_checkbox.default,
|
|
38
39
|
Col: () => import_grid.Col,
|
|
39
40
|
ConfigProvider: () => import_config_provider.default,
|
|
40
41
|
Descriptions: () => import_descriptions.default,
|
|
@@ -46,12 +47,15 @@ __export(src_exports, {
|
|
|
46
47
|
List: () => import_list.default,
|
|
47
48
|
Lottie: () => import_lottie.default,
|
|
48
49
|
Modal: () => import_modal.default,
|
|
50
|
+
Radio: () => import_radio.default,
|
|
49
51
|
Result: () => import_result.default,
|
|
50
52
|
Row: () => import_grid.Row,
|
|
51
53
|
Segmented: () => import_segmented.default,
|
|
52
54
|
Select: () => import_select.default,
|
|
55
|
+
Slider: () => import_slider.default,
|
|
53
56
|
Space: () => import_space.default,
|
|
54
57
|
Spin: () => import_spin.default,
|
|
58
|
+
Switch: () => import_switch.default,
|
|
55
59
|
Table: () => import_table.default,
|
|
56
60
|
Tabs: () => import_tabs.default,
|
|
57
61
|
Tag: () => import_tag.default,
|
|
@@ -67,7 +71,7 @@ __export(src_exports, {
|
|
|
67
71
|
version: () => import_package.version
|
|
68
72
|
});
|
|
69
73
|
module.exports = __toCommonJS(src_exports);
|
|
70
|
-
var
|
|
74
|
+
var import_global = require("./global.css");
|
|
71
75
|
__reExport(src_exports, require("antd"), module.exports);
|
|
72
76
|
var import_package = require("../package.json");
|
|
73
77
|
var import_alert = __toESM(require("./alert"));
|
|
@@ -89,8 +93,12 @@ var import_tabs = __toESM(require("./tabs"));
|
|
|
89
93
|
var import_tag = __toESM(require("./tag"));
|
|
90
94
|
var import_input = __toESM(require("./input"));
|
|
91
95
|
var import_input_number = __toESM(require("./input-number"));
|
|
96
|
+
var import_radio = __toESM(require("./radio"));
|
|
97
|
+
var import_checkbox = __toESM(require("./checkbox"));
|
|
98
|
+
var import_switch = __toESM(require("./switch"));
|
|
92
99
|
var import_select = __toESM(require("./select"));
|
|
93
100
|
var import_tree_select = __toESM(require("./tree-select"));
|
|
101
|
+
var import_slider = __toESM(require("./slider"));
|
|
94
102
|
var import_tooltip = __toESM(require("./tooltip"));
|
|
95
103
|
var import_segmented = __toESM(require("./segmented"));
|
|
96
104
|
var import_breadcrumb = __toESM(require("./breadcrumb"));
|
|
@@ -109,6 +117,7 @@ var { useToken } = import_theme2.default;
|
|
|
109
117
|
Breadcrumb,
|
|
110
118
|
Button,
|
|
111
119
|
Card,
|
|
120
|
+
Checkbox,
|
|
112
121
|
Col,
|
|
113
122
|
ConfigProvider,
|
|
114
123
|
Descriptions,
|
|
@@ -120,12 +129,15 @@ var { useToken } = import_theme2.default;
|
|
|
120
129
|
List,
|
|
121
130
|
Lottie,
|
|
122
131
|
Modal,
|
|
132
|
+
Radio,
|
|
123
133
|
Result,
|
|
124
134
|
Row,
|
|
125
135
|
Segmented,
|
|
126
136
|
Select,
|
|
137
|
+
Slider,
|
|
127
138
|
Space,
|
|
128
139
|
Spin,
|
|
140
|
+
Switch,
|
|
129
141
|
Table,
|
|
130
142
|
Tabs,
|
|
131
143
|
Tag,
|
package/lib/progress/index.d.ts
CHANGED
package/lib/progress/index.js
CHANGED
|
@@ -16,8 +16,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
16
16
|
// src/progress/index.ts
|
|
17
17
|
var progress_exports = {};
|
|
18
18
|
module.exports = __toCommonJS(progress_exports);
|
|
19
|
+
__reExport(progress_exports, require("antd/es/progress/progress"), module.exports);
|
|
19
20
|
__reExport(progress_exports, require("antd/es/progress"), module.exports);
|
|
20
21
|
// Annotate the CommonJS export names for ESM import in node:
|
|
21
22
|
0 && (module.exports = {
|
|
23
|
+
...require("antd/es/progress/progress"),
|
|
22
24
|
...require("antd/es/progress")
|
|
23
25
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/progress/progress';
|
|
@@ -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/progress/progress.ts
|
|
17
|
+
var progress_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(progress_exports);
|
|
19
|
+
__reExport(progress_exports, require("antd/es/progress/progress"), module.exports);
|
|
20
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
21
|
+
0 && (module.exports = {
|
|
22
|
+
...require("antd/es/progress/progress")
|
|
23
|
+
});
|
package/lib/radio/index.d.ts
CHANGED
|
@@ -1 +1,8 @@
|
|
|
1
|
+
import type { RadioProps as AntRadioProps, RadioRef } from 'antd/es/radio';
|
|
2
|
+
import React from 'react';
|
|
1
3
|
export * from 'antd/es/radio';
|
|
4
|
+
declare const Radio: React.ForwardRefExoticComponent<AntRadioProps & React.RefAttributes<RadioRef>> & {
|
|
5
|
+
Group: React.MemoExoticComponent<React.ForwardRefExoticComponent<import("antd").RadioGroupProps & React.RefAttributes<HTMLDivElement>>>;
|
|
6
|
+
Button: React.ForwardRefExoticComponent<import("antd/es/radio/radioButton").RadioButtonProps & React.RefAttributes<RadioRef>>;
|
|
7
|
+
};
|
|
8
|
+
export default Radio;
|
package/lib/radio/index.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
5
11
|
var __copyProps = (to, from, except, desc) => {
|
|
6
12
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
13
|
for (let key of __getOwnPropNames(from))
|
|
@@ -11,12 +17,47 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
11
17
|
return to;
|
|
12
18
|
};
|
|
13
19
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
14
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
29
|
|
|
16
|
-
// src/radio/index.
|
|
30
|
+
// src/radio/index.tsx
|
|
17
31
|
var radio_exports = {};
|
|
32
|
+
__export(radio_exports, {
|
|
33
|
+
default: () => radio_default
|
|
34
|
+
});
|
|
18
35
|
module.exports = __toCommonJS(radio_exports);
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_classnames = __toESM(require("classnames"));
|
|
38
|
+
var import_react = __toESM(require("react"));
|
|
39
|
+
var import_config_provider = __toESM(require("../config-provider"));
|
|
40
|
+
var import_style = __toESM(require("./style"));
|
|
19
41
|
__reExport(radio_exports, require("antd/es/radio"), module.exports);
|
|
42
|
+
var InternalRadio = import_react.default.forwardRef(
|
|
43
|
+
({ prefixCls: customizePrefixCls, className, ...restProps }, ref) => {
|
|
44
|
+
const { getPrefixCls } = (0, import_react.useContext)(import_config_provider.default.ConfigContext);
|
|
45
|
+
const prefixCls = getPrefixCls("radio", customizePrefixCls);
|
|
46
|
+
const { wrapSSR } = (0, import_style.default)(prefixCls);
|
|
47
|
+
const radioCls = (0, import_classnames.default)(className);
|
|
48
|
+
return wrapSSR(
|
|
49
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Radio, { ref, prefixCls: customizePrefixCls, className: radioCls, ...restProps })
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
var Radio = InternalRadio;
|
|
54
|
+
Radio.Button = import_antd.Radio.Button;
|
|
55
|
+
Radio.Group = import_antd.Radio.Group;
|
|
56
|
+
Radio.__ANT_RADIO = import_antd.Radio.__ANT_RADIO;
|
|
57
|
+
if (process.env.NODE_ENV !== "production") {
|
|
58
|
+
Radio.displayName = import_antd.Radio.displayName;
|
|
59
|
+
}
|
|
60
|
+
var radio_default = Radio;
|
|
20
61
|
// Annotate the CommonJS export names for ESM import in node:
|
|
21
62
|
0 && (module.exports = {
|
|
22
63
|
...require("antd/es/radio")
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { FullToken, GenerateStyle } from 'antd/es/theme/internal';
|
|
3
|
+
export type RadioToken = FullToken<'Radio'>;
|
|
4
|
+
export declare const genRadioStyle: GenerateStyle<RadioToken>;
|
|
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;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/radio/style/index.ts
|
|
20
|
+
var style_exports = {};
|
|
21
|
+
__export(style_exports, {
|
|
22
|
+
default: () => style_default,
|
|
23
|
+
genRadioStyle: () => genRadioStyle
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(style_exports);
|
|
26
|
+
var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
|
|
27
|
+
var genRadioStyle = (token) => {
|
|
28
|
+
const { componentCls, radioSize, fontSize, fontSizeLG, lineHeight } = token;
|
|
29
|
+
return {
|
|
30
|
+
[`${componentCls}-wrapper`]: {
|
|
31
|
+
[`${componentCls}`]: {
|
|
32
|
+
alignSelf: "baseline",
|
|
33
|
+
[`${componentCls}-inner`]: {
|
|
34
|
+
marginBottom: -(fontSize * lineHeight - (radioSize || fontSizeLG)) / 2
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
var style_default = (prefixCls) => {
|
|
41
|
+
const useStyle = (0, import_genComponentStyleHook.genComponentStyleHook)("Radio", (token) => {
|
|
42
|
+
return [genRadioStyle(token)];
|
|
43
|
+
});
|
|
44
|
+
return useStyle(prefixCls);
|
|
45
|
+
};
|
|
46
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
47
|
+
0 && (module.exports = {
|
|
48
|
+
genRadioStyle
|
|
49
|
+
});
|
|
@@ -30,12 +30,21 @@ var genResultStyle = (token) => {
|
|
|
30
30
|
return {
|
|
31
31
|
[`${componentCls}`]: {
|
|
32
32
|
[`${componentCls}-title`]: {
|
|
33
|
-
fontWeight: token.fontWeightStrong
|
|
33
|
+
fontWeight: token.fontWeightStrong,
|
|
34
|
+
fontSize: token.fontSizeHeading4,
|
|
35
|
+
lineHeight: token.lineHeightHeading4
|
|
36
|
+
},
|
|
37
|
+
[`${componentCls}-subtitle`]: {
|
|
38
|
+
maxWidth: 600,
|
|
39
|
+
margin: "0px auto"
|
|
34
40
|
},
|
|
35
41
|
[`${componentCls}-extra`]: {
|
|
36
42
|
...(0, import_genStyle.genLargeStyle)(token)
|
|
37
43
|
},
|
|
38
44
|
[`${componentCls}-content`]: {
|
|
45
|
+
maxWidth: 1e3,
|
|
46
|
+
margin: "0px auto",
|
|
47
|
+
marginTop: token.marginLG,
|
|
39
48
|
padding: token.paddingLG,
|
|
40
49
|
borderRadius: token.borderRadiusLG
|
|
41
50
|
}
|
package/lib/slider/index.d.ts
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
+
import type { SliderSingleProps as AntSliderSingleProps, SliderRangeProps as AntSliderRangeProps } from 'antd/es/slider';
|
|
2
|
+
import type { SliderRef } from 'rc-slider/lib/Slider';
|
|
3
|
+
import React from 'react';
|
|
1
4
|
export * from 'antd/es/slider';
|
|
5
|
+
declare const Slider: React.ForwardRefExoticComponent<(AntSliderSingleProps | AntSliderRangeProps) & React.RefAttributes<SliderRef>>;
|
|
6
|
+
export default Slider;
|