@oceanbase/design 0.2.25 → 0.2.27
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/type.d.ts +4 -0
- package/es/_util/type.js +1 -0
- package/es/badge/index.d.ts +3 -4
- package/es/badge/index.js +7 -3
- package/es/button/index.d.ts +2 -4
- package/es/button/index.js +7 -5
- package/es/card/index.d.ts +2 -4
- package/es/card/index.js +7 -5
- package/es/config-provider/index.js +9 -11
- package/es/drawer/Drawer.d.ts +18 -0
- package/es/drawer/Drawer.js +69 -0
- package/es/drawer/index.d.ts +2 -0
- package/es/drawer/index.js +3 -1
- package/es/drawer/style/index.d.ts +9 -0
- package/es/drawer/style/index.js +31 -0
- package/es/index.d.ts +2 -1
- package/es/index.js +1 -0
- package/es/modal/style/index.js +3 -2
- package/es/select/index.d.ts +8 -2
- package/es/select/index.js +6 -6
- package/es/spin/index.js +1 -0
- package/es/static-function/index.d.ts +1 -1
- package/es/static-function/index.js +2 -2
- package/es/table/index.d.ts +17 -12
- package/es/table/index.js +19 -16
- package/es/tag/index.d.ts +2 -4
- package/es/tag/index.js +7 -5
- package/es/theme/dark.d.ts +56 -0
- package/es/theme/dark.js +10 -0
- package/es/theme/default.d.ts +94 -72
- package/es/theme/default.js +95 -72
- package/es/theme/index.d.ts +8 -13
- package/es/theme/index.js +15 -20
- package/es/theme/style/compact.less +211 -186
- package/es/theme/style/dark.less +194 -169
- package/es/theme/style/default.less +208 -183
- package/es/tooltip/index.d.ts +2 -2
- package/es/tooltip/index.js +3 -2
- package/lib/_util/type.d.ts +4 -0
- package/lib/_util/type.js +17 -0
- package/lib/badge/index.d.ts +3 -4
- package/lib/badge/index.js +56 -51
- package/lib/button/index.d.ts +2 -4
- package/lib/button/index.js +15 -10
- package/lib/card/index.d.ts +2 -4
- package/lib/card/index.js +40 -34
- package/lib/config-provider/index.js +8 -15
- package/lib/drawer/Drawer.d.ts +18 -0
- package/lib/drawer/Drawer.js +85 -0
- package/lib/drawer/index.d.ts +2 -0
- package/lib/drawer/index.js +19 -0
- package/lib/drawer/style/index.d.ts +9 -0
- package/lib/drawer/style/index.js +60 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +3 -0
- package/lib/modal/style/index.js +3 -2
- package/lib/select/index.d.ts +8 -2
- package/lib/select/index.js +14 -10
- package/lib/spin/index.js +1 -0
- package/lib/static-function/index.d.ts +1 -1
- package/lib/static-function/index.js +1 -1
- package/lib/table/index.d.ts +17 -12
- package/lib/table/index.js +17 -14
- package/lib/tag/index.d.ts +2 -4
- package/lib/tag/index.js +25 -28
- package/lib/theme/dark.d.ts +56 -0
- package/lib/theme/dark.js +44 -0
- package/lib/theme/default.d.ts +94 -72
- package/lib/theme/default.js +94 -71
- package/lib/theme/index.d.ts +8 -13
- package/lib/theme/index.js +27 -21
- package/lib/theme/style/compact.less +211 -186
- package/lib/theme/style/dark.less +194 -169
- package/lib/theme/style/default.less +208 -183
- package/lib/tooltip/index.d.ts +2 -2
- package/lib/tooltip/index.js +83 -80
- package/package.json +6 -4
package/lib/select/index.js
CHANGED
|
@@ -39,16 +39,20 @@ 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(select_exports, require("antd/es/select"), module.exports);
|
|
42
|
-
var
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
42
|
+
var InternalSelect = 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("select", customizePrefixCls);
|
|
46
|
+
const { wrapSSR } = (0, import_style.default)(prefixCls);
|
|
47
|
+
const selectCls = (0, import_classnames.default)(className);
|
|
48
|
+
return wrapSSR(
|
|
49
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Select, { ref, prefixCls: customizePrefixCls, className: selectCls, ...restProps })
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
var Select = InternalSelect;
|
|
54
|
+
Select.Option = import_antd.Select.Option;
|
|
55
|
+
Select.OptGroup = import_antd.Select.OptGroup;
|
|
52
56
|
if (process.env.NODE_ENV !== "production") {
|
|
53
57
|
Select.displayName = import_antd.Select.displayName;
|
|
54
58
|
}
|
package/lib/spin/index.js
CHANGED
|
@@ -75,6 +75,7 @@ var Spin = ({
|
|
|
75
75
|
);
|
|
76
76
|
};
|
|
77
77
|
Spin.setDefaultIndicator = import_antd.Spin.setDefaultIndicator;
|
|
78
|
+
Spin.setDefaultIndicator(/* @__PURE__ */ import_react.default.createElement(Spin, null));
|
|
78
79
|
if (process.env.NODE_ENV !== "production") {
|
|
79
80
|
Spin.displayName = import_antd.Spin.displayName;
|
|
80
81
|
}
|
|
@@ -2,7 +2,7 @@ import { message as antMessage, Modal as AntModal, notification as antNotificati
|
|
|
2
2
|
import type { MessageInstance } from 'antd/es/message/interface';
|
|
3
3
|
import type { ModalStaticFunctions } from 'antd/es/modal/confirm';
|
|
4
4
|
import type { NotificationInstance } from 'antd/es/notification/interface';
|
|
5
|
-
declare let token: import("antd/lib/theme/interface").AliasToken;
|
|
5
|
+
declare let token: import("antd/lib/theme/interface/alias").AliasToken;
|
|
6
6
|
declare let message: MessageInstance & {
|
|
7
7
|
useMessage: typeof antMessage.useMessage;
|
|
8
8
|
};
|
|
@@ -43,7 +43,7 @@ var import_default = __toESM(require("../theme/default"));
|
|
|
43
43
|
var { defaultAlgorithm, defaultSeed, useToken } = import_theme.default;
|
|
44
44
|
var mapToken = {
|
|
45
45
|
...defaultAlgorithm(defaultSeed),
|
|
46
|
-
...import_default.default,
|
|
46
|
+
...import_default.default.token,
|
|
47
47
|
override: {}
|
|
48
48
|
};
|
|
49
49
|
var token = (0, import_alias.default)(mapToken);
|
package/lib/table/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { TableProps as AntTableProps } from 'antd';
|
|
2
2
|
import type { ColumnsType } from 'antd/es/table';
|
|
3
3
|
import type { TableLocale as AntTableLocale } from 'antd/es/table/interface';
|
|
4
|
+
import type { Reference } from 'rc-table';
|
|
4
5
|
import type { ReactElement, ReactNode } from 'react';
|
|
5
6
|
import React from 'react';
|
|
7
|
+
import type { AnyObject } from '../_util/type';
|
|
6
8
|
export * from 'antd/es/table';
|
|
7
9
|
export interface TableLocale extends AntTableLocale {
|
|
8
10
|
batchOperationBar?: {
|
|
@@ -21,15 +23,18 @@ export interface TableProps<T> extends AntTableProps<T> {
|
|
|
21
23
|
toolSelectedContent?: (selectedRowKeys: any, selectedRows: any) => ReactNode;
|
|
22
24
|
locale?: TableLocale;
|
|
23
25
|
}
|
|
24
|
-
declare
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
declare const _default: (<RecordType extends AnyObject = AnyObject>(props: TableProps<RecordType> & {
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
} & {
|
|
29
|
+
ref?: React.Ref<Reference>;
|
|
30
|
+
}) => ReactElement<any, string | React.JSXElementConstructor<any>>) & {
|
|
31
|
+
SELECTION_COLUMN: {};
|
|
32
|
+
EXPAND_COLUMN: {};
|
|
33
|
+
SELECTION_ALL: "SELECT_ALL";
|
|
34
|
+
SELECTION_INVERT: "SELECT_INVERT";
|
|
35
|
+
SELECTION_NONE: "SELECT_NONE";
|
|
36
|
+
Column: typeof import("antd/es/table/Column").default;
|
|
37
|
+
ColumnGroup: typeof import("antd/es/table/ColumnGroup").default;
|
|
38
|
+
Summary: typeof import("rc-table/lib/Footer/Summary").default;
|
|
39
|
+
};
|
|
40
|
+
export default _default;
|
package/lib/table/index.js
CHANGED
|
@@ -41,7 +41,7 @@ var import_config_provider = __toESM(require("../config-provider"));
|
|
|
41
41
|
var import_en_US = __toESM(require("../locale/en-US"));
|
|
42
42
|
var import_style = __toESM(require("./style"));
|
|
43
43
|
__reExport(table_exports, require("antd/es/table"), module.exports);
|
|
44
|
-
function Table(props) {
|
|
44
|
+
function Table(props, ref) {
|
|
45
45
|
var _a;
|
|
46
46
|
const {
|
|
47
47
|
locale: customLocale,
|
|
@@ -72,7 +72,7 @@ function Table(props) {
|
|
|
72
72
|
},
|
|
73
73
|
className
|
|
74
74
|
);
|
|
75
|
-
const [
|
|
75
|
+
const [openPopover, setOpenPopover] = (0, import_react.useState)(false);
|
|
76
76
|
const [currentSelectedRowKeys, setCurrentSelectedRowKeys] = (0, import_react.useState)();
|
|
77
77
|
const [currentSelectedRows, setCurrentSelectedRows] = (0, import_react.useState)([]);
|
|
78
78
|
const [currentSelectedInfo, setCurrentSelectedInfo] = (0, import_react.useState)({});
|
|
@@ -115,7 +115,7 @@ function Table(props) {
|
|
|
115
115
|
};
|
|
116
116
|
(0, import_react.useEffect)(() => {
|
|
117
117
|
if ((0, import_lodash.isEmpty)(currentSelectedRows) && toolSelectedContent) {
|
|
118
|
-
|
|
118
|
+
setOpenPopover(false);
|
|
119
119
|
}
|
|
120
120
|
}, [currentSelectedRows]);
|
|
121
121
|
const renderOptionsBar = (total, range) => {
|
|
@@ -143,9 +143,9 @@ function Table(props) {
|
|
|
143
143
|
overlayClassName: `${prefixCls}-batch-operation-selection-popover`,
|
|
144
144
|
content: toolSelectedContent == null ? void 0 : toolSelectedContent(currentSelectedRowKeys, currentSelectedRows),
|
|
145
145
|
trigger: "click",
|
|
146
|
-
open:
|
|
146
|
+
open: openPopover
|
|
147
147
|
},
|
|
148
|
-
/* @__PURE__ */ import_react.default.createElement("a", { onClick: () =>
|
|
148
|
+
/* @__PURE__ */ import_react.default.createElement("a", { onClick: () => setOpenPopover(!openPopover) }, openPopover ? batchOperationBar == null ? void 0 : batchOperationBar.collapse : batchOperationBar == null ? void 0 : batchOperationBar.open)
|
|
149
149
|
)
|
|
150
150
|
), toolOptionsRender && /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { size: 8 }, toolOptionsRender == null ? void 0 : toolOptionsRender(currentSelectedRowKeys, currentSelectedRows))), /* @__PURE__ */ import_react.default.createElement("span", null, pagination && (pagination == null ? void 0 : pagination.showTotal) && (pagination == null ? void 0 : pagination.showTotal(total, range))));
|
|
151
151
|
};
|
|
@@ -154,6 +154,7 @@ function Table(props) {
|
|
|
154
154
|
import_antd.Table,
|
|
155
155
|
{
|
|
156
156
|
...props,
|
|
157
|
+
ref,
|
|
157
158
|
prefixCls: customizePrefixCls,
|
|
158
159
|
className: tableCls,
|
|
159
160
|
locale: restLocale,
|
|
@@ -174,15 +175,17 @@ function Table(props) {
|
|
|
174
175
|
)
|
|
175
176
|
);
|
|
176
177
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
178
|
+
var ForwardTable = import_react.default.forwardRef(Table);
|
|
179
|
+
var table_default = Object.assign(ForwardTable, {
|
|
180
|
+
SELECTION_COLUMN: import_antd.Table.SELECTION_COLUMN,
|
|
181
|
+
EXPAND_COLUMN: import_antd.Table.EXPAND_COLUMN,
|
|
182
|
+
SELECTION_ALL: import_antd.Table.SELECTION_ALL,
|
|
183
|
+
SELECTION_INVERT: import_antd.Table.SELECTION_INVERT,
|
|
184
|
+
SELECTION_NONE: import_antd.Table.SELECTION_NONE,
|
|
185
|
+
Column: import_antd.Table.Column,
|
|
186
|
+
ColumnGroup: import_antd.Table.ColumnGroup,
|
|
187
|
+
Summary: import_antd.Table.Summary
|
|
188
|
+
});
|
|
186
189
|
// Annotate the CommonJS export names for ESM import in node:
|
|
187
190
|
0 && (module.exports = {
|
|
188
191
|
...require("antd/es/table")
|
package/lib/tag/index.d.ts
CHANGED
|
@@ -4,9 +4,7 @@ export * from 'antd/es/tag';
|
|
|
4
4
|
export interface TagProps extends AntTagProps {
|
|
5
5
|
ellipsis?: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare const
|
|
8
|
-
({ prefixCls: customizePrefixCls, className, ellipsis, ...restProps }: TagProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
9
|
-
displayName: string;
|
|
7
|
+
declare const _default: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLSpanElement>> & {
|
|
10
8
|
CheckableTag: React.ForwardRefExoticComponent<import("antd/es/tag").CheckableTagProps & React.RefAttributes<HTMLSpanElement>>;
|
|
11
9
|
};
|
|
12
|
-
export default
|
|
10
|
+
export default _default;
|
package/lib/tag/index.js
CHANGED
|
@@ -40,37 +40,34 @@ var import_react = __toESM(require("react"));
|
|
|
40
40
|
var import_config_provider = __toESM(require("../config-provider"));
|
|
41
41
|
var import_style = __toESM(require("./style"));
|
|
42
42
|
__reExport(tag_exports, require("antd/es/tag"), module.exports);
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return ellipsis ? wrapSSR(
|
|
66
|
-
/* @__PURE__ */ import_react.default.createElement(import_design.Typography.Text, { ellipsis: { ...ellipsisConfig } }, /* @__PURE__ */ import_react.default.createElement(import_antd.Tag, { prefixCls: customizePrefixCls, className: tagCls, ...restProps }))
|
|
67
|
-
) : /* @__PURE__ */ import_react.default.createElement(import_antd.Tag, { prefixCls: customizePrefixCls, className: tagCls, ...restProps });
|
|
68
|
-
};
|
|
43
|
+
var Tag = import_react.default.forwardRef(
|
|
44
|
+
({ prefixCls: customizePrefixCls, className, ellipsis = true, ...restProps }, ref) => {
|
|
45
|
+
var _a, _b;
|
|
46
|
+
const { getPrefixCls } = (0, import_react.useContext)(import_config_provider.default.ConfigContext);
|
|
47
|
+
const prefixCls = getPrefixCls("tag", customizePrefixCls);
|
|
48
|
+
const { wrapSSR } = (0, import_style.default)(prefixCls);
|
|
49
|
+
const tagCls = (0, import_classnames.default)(
|
|
50
|
+
{
|
|
51
|
+
[`${prefixCls}-ellipsis`]: ellipsis
|
|
52
|
+
},
|
|
53
|
+
className
|
|
54
|
+
);
|
|
55
|
+
const childrenType = (_a = restProps.children) == null ? void 0 : _a.type;
|
|
56
|
+
const { ellipsis: defalutEllipsis, children: defaultChildren } = ((_b = restProps.children) == null ? void 0 : _b.props) || {};
|
|
57
|
+
const ellipsisConfig = typeof defalutEllipsis === "object" ? defalutEllipsis : {
|
|
58
|
+
tooltip: (childrenType == null ? void 0 : childrenType.__ANT_TOOLTIP) ? false : defaultChildren || restProps.children
|
|
59
|
+
};
|
|
60
|
+
return ellipsis ? wrapSSR(
|
|
61
|
+
/* @__PURE__ */ import_react.default.createElement(import_design.Typography.Text, { ellipsis: { ...ellipsisConfig } }, /* @__PURE__ */ import_react.default.createElement(import_antd.Tag, { ref, prefixCls: customizePrefixCls, className: tagCls, ...restProps }))
|
|
62
|
+
) : /* @__PURE__ */ import_react.default.createElement(import_antd.Tag, { ref, prefixCls: customizePrefixCls, className: tagCls, ...restProps });
|
|
63
|
+
}
|
|
64
|
+
);
|
|
69
65
|
if (process.env.NODE_ENV !== "production") {
|
|
70
66
|
Tag.displayName = import_antd.Tag.displayName;
|
|
71
67
|
}
|
|
72
|
-
|
|
73
|
-
|
|
68
|
+
var tag_default = Object.assign(Tag, {
|
|
69
|
+
CheckableTag: import_antd.Tag.CheckableTag
|
|
70
|
+
});
|
|
74
71
|
// Annotate the CommonJS export names for ESM import in node:
|
|
75
72
|
0 && (module.exports = {
|
|
76
73
|
...require("antd/es/tag")
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
declare const darkTheme: {
|
|
2
|
+
token: {
|
|
3
|
+
colorPrimary: string;
|
|
4
|
+
colorSuccess: string;
|
|
5
|
+
colorWarning: string;
|
|
6
|
+
colorError: string;
|
|
7
|
+
colorInfo: string;
|
|
8
|
+
colorTextBase: string;
|
|
9
|
+
colorBgBase: string;
|
|
10
|
+
colorLink: string;
|
|
11
|
+
fontFamily: string;
|
|
12
|
+
fontFamilyCode: string;
|
|
13
|
+
fontSize: number;
|
|
14
|
+
lineWidth: number;
|
|
15
|
+
lineType: string;
|
|
16
|
+
borderRadius: number;
|
|
17
|
+
sizeUnit: number;
|
|
18
|
+
sizeStep: number;
|
|
19
|
+
sizePopupArrow: number;
|
|
20
|
+
controlHeight: number;
|
|
21
|
+
zIndexBase: number;
|
|
22
|
+
zIndexPopupBase: number;
|
|
23
|
+
opacityImage: number;
|
|
24
|
+
motionUnit: number;
|
|
25
|
+
motionBase: number;
|
|
26
|
+
motionEaseOutCirc: string;
|
|
27
|
+
motionEaseInOutCirc: string;
|
|
28
|
+
motionEaseInOut: string;
|
|
29
|
+
motionEaseOutBack: string;
|
|
30
|
+
motionEaseInBack: string;
|
|
31
|
+
motionEaseInQuint: string;
|
|
32
|
+
motionEaseOutQuint: string;
|
|
33
|
+
motionEaseOut: string;
|
|
34
|
+
wireframe: boolean;
|
|
35
|
+
motion: boolean;
|
|
36
|
+
blue: string;
|
|
37
|
+
purple: string;
|
|
38
|
+
cyan: string;
|
|
39
|
+
green: string;
|
|
40
|
+
magenta: string;
|
|
41
|
+
pink: string;
|
|
42
|
+
red: string;
|
|
43
|
+
orange: string;
|
|
44
|
+
yellow: string;
|
|
45
|
+
volcano: string;
|
|
46
|
+
geekblue: string;
|
|
47
|
+
lime: string;
|
|
48
|
+
gold: string;
|
|
49
|
+
};
|
|
50
|
+
components: {
|
|
51
|
+
InputNumber: {
|
|
52
|
+
handleVisible: boolean;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export default darkTheme;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
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
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/theme/dark.ts
|
|
30
|
+
var dark_exports = {};
|
|
31
|
+
__export(dark_exports, {
|
|
32
|
+
default: () => dark_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(dark_exports);
|
|
35
|
+
var import_index = __toESM(require("./index"));
|
|
36
|
+
var darkTheme = {
|
|
37
|
+
token: import_index.default.defaultSeed,
|
|
38
|
+
components: {
|
|
39
|
+
InputNumber: {
|
|
40
|
+
handleVisible: true
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
var dark_default = darkTheme;
|
package/lib/theme/default.d.ts
CHANGED
|
@@ -1,73 +1,95 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
1
|
+
declare const defaultTheme: {
|
|
2
|
+
token: {
|
|
3
|
+
colorPrimaryBg: string;
|
|
4
|
+
colorPrimary: string;
|
|
5
|
+
colorPrimaryBgHover: string;
|
|
6
|
+
colorPrimaryBorder: string;
|
|
7
|
+
colorPrimaryBorderHover: string;
|
|
8
|
+
colorPrimaryHover: string;
|
|
9
|
+
colorPrimaryTextHover: string;
|
|
10
|
+
colorPrimaryText: string;
|
|
11
|
+
colorPrimaryTextActive: string;
|
|
12
|
+
colorSuccess: string;
|
|
13
|
+
colorSuccessBg: string;
|
|
14
|
+
colorSuccessBgHover: string;
|
|
15
|
+
colorSuccessBorder: string;
|
|
16
|
+
colorSuccessBorderHover: string;
|
|
17
|
+
colorSuccessHover: string;
|
|
18
|
+
colorSuccessActive: string;
|
|
19
|
+
colorSuccessTextHover: string;
|
|
20
|
+
colorSuccessText: string;
|
|
21
|
+
colorSuccessTextActive: string;
|
|
22
|
+
colorWarning: string;
|
|
23
|
+
colorWarningBg: string;
|
|
24
|
+
colorWarningBgHover: string;
|
|
25
|
+
colorWarningBorder: string;
|
|
26
|
+
colorWarningBorderHover: string;
|
|
27
|
+
colorWarningHover: string;
|
|
28
|
+
colorWarningActive: string;
|
|
29
|
+
colorWarningTextHover: string;
|
|
30
|
+
colorWarningText: string;
|
|
31
|
+
colorWarningTextActive: string;
|
|
32
|
+
colorErrorBg: string;
|
|
33
|
+
colorErrorBgHover: string;
|
|
34
|
+
colorErrorBorder: string;
|
|
35
|
+
colorErrorBorderHover: string;
|
|
36
|
+
colorErrorHover: string;
|
|
37
|
+
colorErrorActive: string;
|
|
38
|
+
colorErrorTextHover: string;
|
|
39
|
+
colorErrorText: string;
|
|
40
|
+
colorErrorTextActive: string;
|
|
41
|
+
colorError: string;
|
|
42
|
+
colorInfo: string;
|
|
43
|
+
colorInfoBg: string;
|
|
44
|
+
colorInfoBgHover: string;
|
|
45
|
+
colorInfoBorder: string;
|
|
46
|
+
colorInfoBorderHover: string;
|
|
47
|
+
colorInfoHover: string;
|
|
48
|
+
colorInfoActive: string;
|
|
49
|
+
colorInfoTextHover: string;
|
|
50
|
+
colorInfoText: string;
|
|
51
|
+
colorInfoTextActive: string;
|
|
52
|
+
colorTextBase: string;
|
|
53
|
+
colorBgBase: string;
|
|
54
|
+
colorText: string;
|
|
55
|
+
colorTextSecondary: string;
|
|
56
|
+
colorTextQuaternary: string;
|
|
57
|
+
colorTextTertiary: string;
|
|
58
|
+
colorBgContainer: string;
|
|
59
|
+
colorBgLayout: string;
|
|
60
|
+
colorBgSpotlight: string;
|
|
61
|
+
colorBgMask: string;
|
|
62
|
+
colorBorder: string;
|
|
63
|
+
colorBorderSecondary: string;
|
|
64
|
+
colorFillQuaternary: string;
|
|
65
|
+
colorFillTertiary: string;
|
|
66
|
+
colorFillSecondary: string;
|
|
67
|
+
colorFill: string;
|
|
68
|
+
boxShadowSecondary: string;
|
|
69
|
+
boxShadow: string;
|
|
70
|
+
borderRadius: number;
|
|
71
|
+
wireframe: boolean;
|
|
72
|
+
colorPrimaryActive: string;
|
|
73
|
+
};
|
|
74
|
+
components: {
|
|
75
|
+
Dropdown: {
|
|
76
|
+
colorError: string;
|
|
77
|
+
};
|
|
78
|
+
Button: {
|
|
79
|
+
borderRadius: number;
|
|
80
|
+
};
|
|
81
|
+
Segmented: {
|
|
82
|
+
itemColor: string;
|
|
83
|
+
itemHoverColor: string;
|
|
84
|
+
itemHoverBg: string;
|
|
85
|
+
};
|
|
86
|
+
Rate: {
|
|
87
|
+
colorFillContent: string;
|
|
88
|
+
colorText: string;
|
|
89
|
+
};
|
|
90
|
+
InputNumber: {
|
|
91
|
+
handleVisible: boolean;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
72
94
|
};
|
|
73
|
-
export default
|
|
95
|
+
export default defaultTheme;
|