@oceanbase/ui 1.0.0-alpha.4 → 1.0.0-alpha.5
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/ui.min.css +1 -1
- package/dist/ui.min.js +1 -1
- package/es/Action/Item.d.ts +6 -15
- package/es/Action/Item.js +85 -128
- package/es/Action/index.d.ts +6 -3
- package/es/BasicLayout/style/index.js +30 -18
- package/es/BatchOperationBar/index.d.ts +0 -1
- package/es/BatchOperationBar/index.js +17 -13
- package/es/BatchOperationBar/style/index.d.ts +10 -0
- package/es/BatchOperationBar/style/index.js +51 -0
- package/es/Boundary/Components/Code.js +11 -5
- package/es/Boundary/Components/Exception.js +85 -74
- package/es/Boundary/Components/Function.js +11 -5
- package/es/Boundary/index.d.ts +0 -1
- package/es/Boundary/index.js +0 -1
- package/es/Boundary/style/index.d.ts +10 -0
- package/es/Boundary/style/index.js +46 -0
- package/es/ContentWithIcon/index.d.ts +0 -1
- package/es/ContentWithIcon/index.js +29 -29
- package/es/ContentWithIcon/style/index.d.ts +10 -0
- package/es/ContentWithIcon/style/index.js +26 -0
- package/es/DateRanger/PickerPanel.js +5 -4
- package/es/DateRanger/Ranger.d.ts +0 -1
- package/es/DateRanger/Ranger.js +13 -8
- package/es/DateRanger/style/index.d.ts +10 -0
- package/es/DateRanger/style/index.js +126 -0
- package/es/Dialog/Anchor.d.ts +2 -10
- package/es/Dialog/Anchor.js +67 -96
- package/es/Dialog/index.d.ts +0 -1
- package/es/Dialog/index.js +537 -578
- package/es/Dialog/style/index.d.ts +10 -0
- package/es/Dialog/style/index.js +97 -0
- package/es/FullscreenBox/index.d.ts +0 -1
- package/es/FullscreenBox/index.js +46 -37
- package/es/FullscreenBox/style/index.d.ts +10 -0
- package/es/FullscreenBox/style/index.js +53 -0
- package/es/GraphToolbar/index.d.ts +0 -1
- package/es/GraphToolbar/index.js +19 -16
- package/es/GraphToolbar/style/index.d.ts +10 -0
- package/es/GraphToolbar/style/index.js +60 -0
- package/es/Highlight/DiffView/index.d.ts +0 -1
- package/es/Highlight/DiffView/index.js +5 -5
- package/es/Highlight/JsonView.d.ts +0 -1
- package/es/Highlight/JsonView.js +5 -5
- package/es/Highlight/index.d.ts +0 -1
- package/es/Highlight/index.js +23 -23
- package/es/Highlight/style/index.d.ts +10 -0
- package/es/Highlight/style/index.js +213 -0
- package/es/Login/ActivateForm.d.ts +0 -1
- package/es/Login/ActivateForm.js +12 -9
- package/es/Login/LoginForm.d.ts +0 -1
- package/es/Login/LoginForm.js +20 -15
- package/es/Login/RegisterForm.d.ts +0 -1
- package/es/Login/RegisterForm.js +14 -11
- package/es/Login/index.d.ts +0 -1
- package/es/Login/index.js +24 -22
- package/es/Login/style/index.d.ts +10 -0
- package/es/Login/style/index.js +182 -0
- package/es/NavMenu/index.d.ts +1 -2
- package/es/NavMenu/index.js +11 -8
- package/es/NavMenu/style/index.d.ts +10 -0
- package/es/NavMenu/style/index.js +47 -0
- package/es/Ranger/QuickPicker.js +8 -4
- package/es/Ranger/Ranger.d.ts +0 -1
- package/es/Ranger/Ranger.js +12 -9
- package/es/Ranger/style/index.d.ts +10 -0
- package/es/Ranger/style/index.js +44 -0
- package/es/SideTip/index.d.ts +0 -1
- package/es/SideTip/index.js +24 -22
- package/es/SideTip/style/index.d.ts +10 -0
- package/es/SideTip/style/index.js +162 -0
- package/es/TagSelect/Group.d.ts +6 -6
- package/es/TagSelect/Group.js +5 -3
- package/es/TagSelect/Item.js +5 -3
- package/es/TaskGraph/Graph/style/index.d.ts +10 -0
- package/es/TaskGraph/Graph/style/index.js +28 -0
- package/es/TaskGraph/Graph.d.ts +0 -1
- package/es/TaskGraph/Graph.js +26 -10
- package/es/TaskGraph/index.d.ts +0 -1
- package/es/TaskGraph/index.js +10 -7
- package/es/TaskGraph/style/index.d.ts +10 -0
- package/es/TaskGraph/style/index.js +102 -0
- package/es/Welcome/index.d.ts +0 -1
- package/es/Welcome/index.js +30 -26
- package/es/Welcome/step/style/index.d.ts +10 -0
- package/es/Welcome/step/style/index.js +44 -0
- package/es/Welcome/step.d.ts +0 -1
- package/es/Welcome/step.js +17 -14
- package/es/Welcome/style/index.d.ts +10 -0
- package/es/Welcome/style/index.js +141 -0
- package/es/index.d.ts +0 -1
- package/es/index.js +0 -1
- package/lib/Action/Item.d.ts +6 -15
- package/lib/Action/Item.js +66 -81
- package/lib/Action/index.d.ts +6 -3
- package/lib/BasicLayout/style/index.js +27 -18
- package/lib/BatchOperationBar/index.d.ts +0 -1
- package/lib/BatchOperationBar/index.js +54 -50
- package/lib/BatchOperationBar/style/index.d.ts +10 -0
- package/lib/BatchOperationBar/style/index.js +82 -0
- package/lib/Boundary/Components/Code.js +23 -17
- package/lib/Boundary/Components/Exception.js +40 -29
- package/lib/Boundary/Components/Function.js +18 -12
- package/lib/Boundary/index.d.ts +0 -1
- package/lib/Boundary/index.js +0 -1
- package/lib/Boundary/style/index.d.ts +10 -0
- package/lib/Boundary/style/index.js +74 -0
- package/lib/ContentWithIcon/index.d.ts +0 -1
- package/lib/ContentWithIcon/index.js +35 -32
- package/lib/ContentWithIcon/style/index.d.ts +10 -0
- package/lib/ContentWithIcon/style/index.js +57 -0
- package/lib/DateRanger/PickerPanel.js +2 -2
- package/lib/DateRanger/Ranger.d.ts +0 -1
- package/lib/DateRanger/Ranger.js +353 -348
- package/lib/DateRanger/style/index.d.ts +10 -0
- package/lib/DateRanger/style/index.js +195 -0
- package/lib/Dialog/Anchor.d.ts +2 -10
- package/lib/Dialog/Anchor.js +58 -60
- package/lib/Dialog/index.d.ts +0 -1
- package/lib/Dialog/index.js +446 -422
- package/lib/Dialog/style/index.d.ts +10 -0
- package/lib/Dialog/style/index.js +135 -0
- package/lib/FullscreenBox/index.d.ts +0 -1
- package/lib/FullscreenBox/index.js +47 -38
- package/lib/FullscreenBox/style/index.d.ts +10 -0
- package/lib/FullscreenBox/style/index.js +86 -0
- package/lib/GraphToolbar/index.d.ts +0 -1
- package/lib/GraphToolbar/index.js +69 -66
- package/lib/GraphToolbar/style/index.d.ts +10 -0
- package/lib/GraphToolbar/style/index.js +91 -0
- package/lib/Highlight/DiffView/index.d.ts +0 -1
- package/lib/Highlight/DiffView/index.js +3 -3
- package/lib/Highlight/JsonView.d.ts +0 -1
- package/lib/Highlight/JsonView.js +3 -3
- package/lib/Highlight/index.d.ts +0 -1
- package/lib/Highlight/index.js +32 -29
- package/lib/Highlight/style/index.d.ts +10 -0
- package/lib/Highlight/style/index.js +293 -0
- package/lib/Login/ActivateForm.d.ts +0 -1
- package/lib/Login/ActivateForm.js +17 -9
- package/lib/Login/LoginForm.d.ts +0 -1
- package/lib/Login/LoginForm.js +25 -13
- package/lib/Login/RegisterForm.d.ts +0 -1
- package/lib/Login/RegisterForm.js +17 -9
- package/lib/Login/index.d.ts +0 -1
- package/lib/Login/index.js +96 -94
- package/lib/Login/style/index.d.ts +10 -0
- package/lib/Login/style/index.js +267 -0
- package/lib/NavMenu/index.d.ts +1 -2
- package/lib/NavMenu/index.js +20 -17
- package/lib/NavMenu/style/index.d.ts +10 -0
- package/lib/NavMenu/style/index.js +78 -0
- package/lib/Ranger/QuickPicker.js +4 -2
- package/lib/Ranger/Ranger.d.ts +0 -1
- package/lib/Ranger/Ranger.js +48 -45
- package/lib/Ranger/style/index.d.ts +10 -0
- package/lib/Ranger/style/index.js +82 -0
- package/lib/SideTip/index.d.ts +0 -1
- package/lib/SideTip/index.js +46 -38
- package/lib/SideTip/style/index.d.ts +10 -0
- package/lib/SideTip/style/index.js +211 -0
- package/lib/TagSelect/Group.d.ts +6 -6
- package/lib/TagSelect/Group.js +3 -2
- package/lib/TagSelect/Item.js +3 -2
- package/lib/TaskGraph/Graph/style/index.d.ts +10 -0
- package/lib/TaskGraph/Graph/style/index.js +56 -0
- package/lib/TaskGraph/Graph.d.ts +0 -1
- package/lib/TaskGraph/Graph.js +16 -7
- package/lib/TaskGraph/index.d.ts +0 -1
- package/lib/TaskGraph/index.js +6 -5
- package/lib/TaskGraph/style/index.d.ts +10 -0
- package/lib/TaskGraph/style/index.js +143 -0
- package/lib/Welcome/index.d.ts +0 -1
- package/lib/Welcome/index.js +64 -59
- package/lib/Welcome/step/style/index.d.ts +10 -0
- package/lib/Welcome/step/style/index.js +74 -0
- package/lib/Welcome/step.d.ts +0 -1
- package/lib/Welcome/step.js +17 -13
- package/lib/Welcome/style/index.d.ts +10 -0
- package/lib/Welcome/style/index.js +188 -0
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -1
- package/package.json +4 -7
- package/es/BatchOperationBar/index.less +0 -46
- package/es/BatchOperationBar/index.less.d.ts +0 -15
- package/es/Boundary/index.less +0 -36
- package/es/ContentWithIcon/index.less +0 -21
- package/es/DateRanger/index.less +0 -180
- package/es/Dialog/index.less +0 -116
- package/es/FullscreenBox/index.less +0 -51
- package/es/GraphToolbar/index.less +0 -65
- package/es/Highlight/index.less +0 -381
- package/es/Login/index.less +0 -268
- package/es/NavMenu/index.less +0 -50
- package/es/Ranger/index.less +0 -57
- package/es/SideTip/index.less +0 -180
- package/es/TaskGraph/graph.less +0 -23
- package/es/TaskGraph/index.less +0 -117
- package/es/Welcome/index.less +0 -185
- package/es/index.less +0 -1
- package/es/variable.less +0 -54
- package/lib/BatchOperationBar/index.less +0 -46
- package/lib/BatchOperationBar/index.less.d.ts +0 -15
- package/lib/Boundary/index.less +0 -36
- package/lib/ContentWithIcon/index.less +0 -21
- package/lib/DateRanger/index.less +0 -180
- package/lib/Dialog/index.less +0 -116
- package/lib/FullscreenBox/index.less +0 -51
- package/lib/GraphToolbar/index.less +0 -65
- package/lib/Highlight/index.less +0 -381
- package/lib/Login/index.less +0 -268
- package/lib/NavMenu/index.less +0 -50
- package/lib/Ranger/index.less +0 -57
- package/lib/SideTip/index.less +0 -180
- package/lib/TaskGraph/graph.less +0 -23
- package/lib/TaskGraph/index.less +0 -117
- package/lib/Welcome/index.less +0 -185
- package/lib/index.less +0 -1
- package/lib/variable.less +0 -54
|
@@ -0,0 +1,143 @@
|
|
|
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/TaskGraph/style/index.ts
|
|
20
|
+
var style_exports = {};
|
|
21
|
+
__export(style_exports, {
|
|
22
|
+
default: () => style_default,
|
|
23
|
+
genTaskGraphStyle: () => genTaskGraphStyle
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(style_exports);
|
|
26
|
+
var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
|
|
27
|
+
var genTaskGraphStyle = (token) => {
|
|
28
|
+
const {
|
|
29
|
+
componentCls,
|
|
30
|
+
proComponentsCls,
|
|
31
|
+
antCls,
|
|
32
|
+
colorText,
|
|
33
|
+
colorTextSecondary,
|
|
34
|
+
fontWeightStrong
|
|
35
|
+
} = token;
|
|
36
|
+
return {
|
|
37
|
+
"#container": {
|
|
38
|
+
position: "relative",
|
|
39
|
+
paddingBottom: "0 !important",
|
|
40
|
+
[`${antCls}-page-header`]: {
|
|
41
|
+
paddingTop: 12,
|
|
42
|
+
paddingBottom: 12
|
|
43
|
+
},
|
|
44
|
+
[`${proComponentsCls}-page-container-header-inner`]: {
|
|
45
|
+
backgroundColor: "#fafbff",
|
|
46
|
+
[`${antCls}-page-header-heading ${antCls}-page-header-heading-title`]: {
|
|
47
|
+
fontSize: 16
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
[`${componentCls}-split-pane`]: {
|
|
51
|
+
top: "auto !important",
|
|
52
|
+
height: "calc(100% - 36px) !important",
|
|
53
|
+
minHeight: "calc(100% - 36px) !important",
|
|
54
|
+
margin: -24,
|
|
55
|
+
[`${componentCls}-tabs-wrapper`]: {
|
|
56
|
+
width: "100%"
|
|
57
|
+
},
|
|
58
|
+
[`${antCls}-tabs`]: {
|
|
59
|
+
height: "100%",
|
|
60
|
+
[`${antCls}-tabs-nav-container`]: {
|
|
61
|
+
height: 32,
|
|
62
|
+
paddingTop: 4
|
|
63
|
+
},
|
|
64
|
+
[`${antCls}-tabs-bar`]: {
|
|
65
|
+
marginBottom: 0,
|
|
66
|
+
backgroundColor: "#fff",
|
|
67
|
+
borderBottom: "none"
|
|
68
|
+
},
|
|
69
|
+
[`${antCls}-tabs-tab`]: {
|
|
70
|
+
minWidth: 120,
|
|
71
|
+
height: 28,
|
|
72
|
+
margin: 0,
|
|
73
|
+
padding: 0,
|
|
74
|
+
fontSize: 12,
|
|
75
|
+
lineHeight: 28,
|
|
76
|
+
backgroundColor: "#fff",
|
|
77
|
+
border: "none",
|
|
78
|
+
borderBottom: "1px solid #e8e8e8",
|
|
79
|
+
borderRadius: 0,
|
|
80
|
+
transition: "none",
|
|
81
|
+
"&:hover": {
|
|
82
|
+
color: colorTextSecondary
|
|
83
|
+
},
|
|
84
|
+
div: {
|
|
85
|
+
display: "flex",
|
|
86
|
+
alignItems: "center",
|
|
87
|
+
justifyContent: "space-between",
|
|
88
|
+
height: 20,
|
|
89
|
+
marginTop: 4,
|
|
90
|
+
padding: "0 8px",
|
|
91
|
+
borderLeft: "1px solid #e8e8e8"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
[`${antCls}-tabs-tab:last-child`]: {
|
|
95
|
+
div: {
|
|
96
|
+
borderLeft: "none"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
[`${antCls}-tabs-tab-active`]: {
|
|
100
|
+
color: colorText,
|
|
101
|
+
fontWeight: fontWeightStrong,
|
|
102
|
+
backgroundColor: "#f7f8fc",
|
|
103
|
+
borderBottom: "none",
|
|
104
|
+
borderLeft: "none",
|
|
105
|
+
borderRadius: 2,
|
|
106
|
+
div: {
|
|
107
|
+
borderLeft: "none"
|
|
108
|
+
},
|
|
109
|
+
[`& + ${antCls}-tabs-tab`]: {
|
|
110
|
+
div: {
|
|
111
|
+
borderLeft: "none"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
[`${antCls}-tabs-extra-content`]: {
|
|
116
|
+
marginRight: 16,
|
|
117
|
+
lineHeight: 32
|
|
118
|
+
},
|
|
119
|
+
[`${antCls}-tabs-content`]: {
|
|
120
|
+
height: "calc(100% - 64px)",
|
|
121
|
+
padding: 16,
|
|
122
|
+
overflow: "scroll",
|
|
123
|
+
color: colorTextSecondary,
|
|
124
|
+
lineHeight: 22,
|
|
125
|
+
whiteSpace: "pre-wrap",
|
|
126
|
+
wordBreak: "break-all",
|
|
127
|
+
backgroundColor: "#f7f8fc"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
var style_default = (prefixCls) => {
|
|
135
|
+
const useStyle = (0, import_genComponentStyleHook.genComponentStyleHook)("TaskGraph", (token) => {
|
|
136
|
+
return [genTaskGraphStyle(token)];
|
|
137
|
+
});
|
|
138
|
+
return useStyle(prefixCls);
|
|
139
|
+
};
|
|
140
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
141
|
+
0 && (module.exports = {
|
|
142
|
+
genTaskGraphStyle
|
|
143
|
+
});
|
package/lib/Welcome/index.d.ts
CHANGED
package/lib/Welcome/index.js
CHANGED
|
@@ -35,13 +35,13 @@ module.exports = __toCommonJS(Welcome_exports);
|
|
|
35
35
|
var import_icons = require("@oceanbase/icons");
|
|
36
36
|
var import_design = require("@oceanbase/design");
|
|
37
37
|
var import_classnames = __toESM(require("classnames"));
|
|
38
|
+
var import_react = require("react");
|
|
38
39
|
var import_LocaleWrapper = __toESM(require("../locale/LocaleWrapper"));
|
|
39
40
|
var import_util = require("../_util");
|
|
40
|
-
var
|
|
41
|
+
var import_style = __toESM(require("./style"));
|
|
41
42
|
var import_zh_CN = __toESM(require("./locale/zh-CN"));
|
|
42
43
|
var import_step = __toESM(require("./step"));
|
|
43
44
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
44
|
-
var prefix = (0, import_util.getPrefix)("welcome");
|
|
45
45
|
var Welcome = ({
|
|
46
46
|
title,
|
|
47
47
|
description,
|
|
@@ -56,13 +56,16 @@ var Welcome = ({
|
|
|
56
56
|
className,
|
|
57
57
|
...restProps
|
|
58
58
|
}) => {
|
|
59
|
+
const { getPrefixCls } = (0, import_react.useContext)(import_design.ConfigProvider.ConfigContext);
|
|
60
|
+
const prefixCls = getPrefixCls("welcome");
|
|
61
|
+
const { wrapSSR } = (0, import_style.default)(prefixCls);
|
|
59
62
|
const isDefault = stepType === "default";
|
|
60
63
|
const renderStep = (item, index) => {
|
|
61
|
-
const DefaultStep = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Col, { span: 12, "data-testid": "steps", className: `${
|
|
62
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${
|
|
64
|
+
const DefaultStep = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Col, { span: 12, "data-testid": "steps", className: `${prefixCls}-item`, children: [
|
|
65
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefixCls}-order-wrapper`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefixCls}-order`, children: index + 1 }) }),
|
|
63
66
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [
|
|
64
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: `${
|
|
65
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: `${
|
|
67
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: `${prefixCls}-title`, children: item.title }),
|
|
68
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: `${prefixCls}-description`, children: item.description })
|
|
66
69
|
] })
|
|
67
70
|
] }, item.title);
|
|
68
71
|
const StepProps = {
|
|
@@ -76,62 +79,64 @@ var Welcome = ({
|
|
|
76
79
|
const StepItem = isDefault ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DefaultStep, {}, item.title) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_step.default, { "data-testid": "steps", ...StepProps }, item.title);
|
|
77
80
|
return StepItem;
|
|
78
81
|
};
|
|
79
|
-
return
|
|
80
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
children: [
|
|
88
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Col, { span: 24, className: `${prefix}-title`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: title }) }),
|
|
89
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Col, { span: 16, className: `${prefix}-description`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: description }) })
|
|
90
|
-
]
|
|
91
|
-
}
|
|
92
|
-
),
|
|
93
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Card, { bordered: false, className: `${prefix}-introduce`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Row, { gutter: 78, children: introduces.map((item) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Col, { span: 8, className: `${prefix}-item`, "data-testid": "introduces", children: [
|
|
94
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { src: item.image, alt: "", height: 80 }),
|
|
95
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [
|
|
96
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: `${prefix}-title`, children: item.title }),
|
|
97
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: `${prefix}-description`, children: item.description })
|
|
98
|
-
] })
|
|
99
|
-
] }, item.image)) }) }),
|
|
100
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Row, { className: `${prefix}-content`, children: [
|
|
101
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Col, { span: 14, className: isDefault ? `${prefix}-left` : `${prefix}-border-right`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Row, { justify: "space-around", children: [
|
|
102
|
-
steps.map((item, index) => renderStep(item, index)),
|
|
103
|
-
isDefault && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Col, { span: 24, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefix}-btn-wrapper`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
104
|
-
import_design.Button,
|
|
105
|
-
{
|
|
106
|
-
size: "large",
|
|
107
|
-
type: "primary",
|
|
108
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.PlusOutlined, {}),
|
|
109
|
-
block: true,
|
|
110
|
-
...buttonProps,
|
|
111
|
-
children: buttonText
|
|
112
|
-
}
|
|
113
|
-
) }) })
|
|
114
|
-
] }) }),
|
|
115
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Col, { span: 10, className: `${prefix}-right`, children: [
|
|
116
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: `${prefix}-title`, children: locale.helpTitle }),
|
|
117
|
-
helps.map((item) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
118
|
-
import_design.Button,
|
|
119
|
-
{
|
|
120
|
-
shape: "round",
|
|
121
|
-
onClick: () => {
|
|
122
|
-
(0, import_util.directTo)(item.link);
|
|
123
|
-
},
|
|
124
|
-
className: (0, import_classnames.default)({
|
|
125
|
-
[`${prefix}-more`]: !!item.isMore
|
|
126
|
-
}),
|
|
127
|
-
"data-testid": "helps",
|
|
128
|
-
children: item.title
|
|
82
|
+
return wrapSSR(
|
|
83
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: `${prefixCls}-container ${className || ""}`, ...restProps, children: [
|
|
84
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
85
|
+
import_design.Row,
|
|
86
|
+
{
|
|
87
|
+
className: `${prefixCls}-page-header`,
|
|
88
|
+
style: {
|
|
89
|
+
backgroundImage: `url("${bgImage}")`
|
|
129
90
|
},
|
|
130
|
-
|
|
131
|
-
|
|
91
|
+
children: [
|
|
92
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Col, { span: 24, className: `${prefixCls}-title`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: title }) }),
|
|
93
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Col, { span: 16, className: `${prefixCls}-description`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: description }) })
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
),
|
|
97
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Card, { bordered: false, className: `${prefixCls}-introduce`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Row, { gutter: 78, children: introduces.map((item) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Col, { span: 8, className: `${prefixCls}-item`, "data-testid": "introduces", children: [
|
|
98
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { src: item.image, alt: "", height: 80 }),
|
|
99
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [
|
|
100
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: `${prefixCls}-title`, children: item.title }),
|
|
101
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: `${prefixCls}-description`, children: item.description })
|
|
102
|
+
] })
|
|
103
|
+
] }, item.image)) }) }),
|
|
104
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Row, { className: `${prefixCls}-content`, children: [
|
|
105
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Col, { span: 14, className: isDefault ? `${prefixCls}-left` : "borderRight", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Row, { justify: "space-around", children: [
|
|
106
|
+
steps.map((item, index) => renderStep(item, index)),
|
|
107
|
+
isDefault && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Col, { span: 24, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefixCls}-btn-wrapper`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
108
|
+
import_design.Button,
|
|
109
|
+
{
|
|
110
|
+
size: "large",
|
|
111
|
+
type: "primary",
|
|
112
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.PlusOutlined, {}),
|
|
113
|
+
block: true,
|
|
114
|
+
...buttonProps,
|
|
115
|
+
children: buttonText
|
|
116
|
+
}
|
|
117
|
+
) }) })
|
|
118
|
+
] }) }),
|
|
119
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Col, { span: 10, className: `${prefixCls}-right`, children: [
|
|
120
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: `${prefixCls}-title`, children: locale.helpTitle }),
|
|
121
|
+
helps.map((item) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
122
|
+
import_design.Button,
|
|
123
|
+
{
|
|
124
|
+
shape: "round",
|
|
125
|
+
onClick: () => {
|
|
126
|
+
(0, import_util.directTo)(item.link);
|
|
127
|
+
},
|
|
128
|
+
className: (0, import_classnames.default)({
|
|
129
|
+
[`${prefixCls}-more`]: !!item.isMore
|
|
130
|
+
}),
|
|
131
|
+
"data-testid": "helps",
|
|
132
|
+
children: item.title
|
|
133
|
+
},
|
|
134
|
+
item.title
|
|
135
|
+
))
|
|
136
|
+
] })
|
|
132
137
|
] })
|
|
133
138
|
] })
|
|
134
|
-
|
|
139
|
+
);
|
|
135
140
|
};
|
|
136
141
|
var Welcome_default = (0, import_LocaleWrapper.default)({
|
|
137
142
|
componentName: "Welcome",
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { GenerateStyle } from '@oceanbase/design/es/theme';
|
|
3
|
+
import type { OBToken } from '../../../_util/genComponentStyleHook';
|
|
4
|
+
export type WelcomeStepToken = OBToken;
|
|
5
|
+
export declare const genWelcomeStepStyle: GenerateStyle<WelcomeStepToken>;
|
|
6
|
+
declare const _default: (prefixCls: string) => {
|
|
7
|
+
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
8
|
+
hashId: string;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,74 @@
|
|
|
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/Welcome/step/style/index.ts
|
|
20
|
+
var style_exports = {};
|
|
21
|
+
__export(style_exports, {
|
|
22
|
+
default: () => style_default,
|
|
23
|
+
genWelcomeStepStyle: () => genWelcomeStepStyle
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(style_exports);
|
|
26
|
+
var import_genComponentStyleHook = require("../../../_util/genComponentStyleHook");
|
|
27
|
+
var genWelcomeStepStyle = (token) => {
|
|
28
|
+
const { componentCls, colorText, colorTextTertiary, colorPrimary } = token;
|
|
29
|
+
return {
|
|
30
|
+
[`${componentCls}`]: {
|
|
31
|
+
display: "flex",
|
|
32
|
+
marginBottom: 30,
|
|
33
|
+
padding: "20px 30px 20px 0",
|
|
34
|
+
background: token.colorBgContainer,
|
|
35
|
+
border: "1px solid rgba(0, 0, 0, 0.06)",
|
|
36
|
+
borderRadius: 2,
|
|
37
|
+
"&:hover": {
|
|
38
|
+
boxShadow: "0 4px 16px 0",
|
|
39
|
+
cursor: "pointer"
|
|
40
|
+
},
|
|
41
|
+
"&:nth-child(even)": {
|
|
42
|
+
marginRight: 0
|
|
43
|
+
},
|
|
44
|
+
[`${componentCls}-left`]: {
|
|
45
|
+
padding: "0 20px"
|
|
46
|
+
},
|
|
47
|
+
[`${componentCls}-right`]: {
|
|
48
|
+
[`${componentCls}-title`]: {
|
|
49
|
+
color: colorText,
|
|
50
|
+
fontSize: 16,
|
|
51
|
+
lineHeight: 24
|
|
52
|
+
},
|
|
53
|
+
[`${componentCls}-description`]: {
|
|
54
|
+
color: colorTextTertiary
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
[`${componentCls}-operations`]: {
|
|
58
|
+
color: colorPrimary,
|
|
59
|
+
fontSize: 14,
|
|
60
|
+
lineHeight: 22
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
var style_default = (prefixCls) => {
|
|
66
|
+
const useStyle = (0, import_genComponentStyleHook.genComponentStyleHook)("WelcomeStep", (token) => {
|
|
67
|
+
return [genWelcomeStepStyle(token)];
|
|
68
|
+
});
|
|
69
|
+
return useStyle(prefixCls);
|
|
70
|
+
};
|
|
71
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
72
|
+
0 && (module.exports = {
|
|
73
|
+
genWelcomeStepStyle
|
|
74
|
+
});
|
package/lib/Welcome/step.d.ts
CHANGED
package/lib/Welcome/step.js
CHANGED
|
@@ -33,24 +33,28 @@ __export(step_exports, {
|
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(step_exports);
|
|
35
35
|
var import_design = require("@oceanbase/design");
|
|
36
|
+
var import_react = require("react");
|
|
36
37
|
var import_LocaleWrapper = __toESM(require("../locale/LocaleWrapper"));
|
|
37
|
-
var
|
|
38
|
-
var import_index = require("./index.less");
|
|
38
|
+
var import_style = __toESM(require("./step/style"));
|
|
39
39
|
var import_zh_CN = __toESM(require("./locale/zh-CN"));
|
|
40
40
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
41
|
-
var prefix = (0, import_util.getPrefix)("welcome-step");
|
|
42
41
|
var WelcomeStep = (props) => {
|
|
43
42
|
const { title, description, operations, imgUrl, locale } = props;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
43
|
+
const { getPrefixCls } = (0, import_react.useContext)(import_design.ConfigProvider.ConfigContext);
|
|
44
|
+
const prefixCls = getPrefixCls("welcome-step");
|
|
45
|
+
const { wrapSSR } = (0, import_style.default)(prefixCls);
|
|
46
|
+
return wrapSSR(
|
|
47
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Col, { span: 11, className: prefixCls, children: [
|
|
48
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefixCls}-left`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { src: imgUrl, alt: "", width: "60" }) }),
|
|
49
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: `${prefixCls}-right`, children: [
|
|
50
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: `${prefixCls}-title`, children: title }),
|
|
51
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: `${prefixCls}-description`, children: description }),
|
|
52
|
+
operations && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefixCls}-operations`, children: operations == null ? void 0 : operations.map((operation, index) => {
|
|
53
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { onClick: operation.onClick, className: `${prefixCls}-operation`, children: operation.text || locale.defaultOperation }, index);
|
|
54
|
+
}) })
|
|
55
|
+
] })
|
|
56
|
+
] }, title)
|
|
57
|
+
);
|
|
54
58
|
};
|
|
55
59
|
var step_default = (0, import_LocaleWrapper.default)({
|
|
56
60
|
componentName: "WelcomeStep",
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { GenerateStyle } from '@oceanbase/design/es/theme';
|
|
3
|
+
import type { OBToken } from '../../_util/genComponentStyleHook';
|
|
4
|
+
export type WelcomeToken = OBToken;
|
|
5
|
+
export declare const genWelcomeStyle: GenerateStyle<WelcomeToken>;
|
|
6
|
+
declare const _default: (prefixCls: string) => {
|
|
7
|
+
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
8
|
+
hashId: string;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,188 @@
|
|
|
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/Welcome/style/index.ts
|
|
20
|
+
var style_exports = {};
|
|
21
|
+
__export(style_exports, {
|
|
22
|
+
default: () => style_default,
|
|
23
|
+
genWelcomeStyle: () => genWelcomeStyle
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(style_exports);
|
|
26
|
+
var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
|
|
27
|
+
var genWelcomeStyle = (token) => {
|
|
28
|
+
const { componentCls, antCls, colorBgContainer, colorText, colorTextSecondary, colorTextTertiary, colorTextQuaternary, colorPrimary } = token;
|
|
29
|
+
return {
|
|
30
|
+
[`${componentCls}-container`]: {
|
|
31
|
+
height: "100%",
|
|
32
|
+
paddingBottom: "0 !important",
|
|
33
|
+
backgroundColor: colorBgContainer,
|
|
34
|
+
".tech-page-container-content": {
|
|
35
|
+
padding: "0 !important"
|
|
36
|
+
},
|
|
37
|
+
[`${componentCls}-page-header`]: {
|
|
38
|
+
height: 272,
|
|
39
|
+
paddingTop: 72,
|
|
40
|
+
paddingLeft: 100,
|
|
41
|
+
color: colorBgContainer,
|
|
42
|
+
backgroundRepeat: "no-repeat",
|
|
43
|
+
backgroundSize: "100% 100%",
|
|
44
|
+
p: {
|
|
45
|
+
textAlign: "justify"
|
|
46
|
+
},
|
|
47
|
+
img: {
|
|
48
|
+
width: 80
|
|
49
|
+
},
|
|
50
|
+
[`${componentCls}-title`]: {
|
|
51
|
+
fontSize: 32,
|
|
52
|
+
fontFamily: "SFProText-Medium"
|
|
53
|
+
},
|
|
54
|
+
[`${componentCls}-description`]: {
|
|
55
|
+
marginTop: 16,
|
|
56
|
+
marginBottom: 32,
|
|
57
|
+
fontFamily: "SFProText-Regular",
|
|
58
|
+
opacity: 0.85
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
[`${componentCls}-introduce`]: {
|
|
62
|
+
margin: "0 32px",
|
|
63
|
+
marginTop: -48,
|
|
64
|
+
marginBottom: 40,
|
|
65
|
+
[`${antCls}-card-body`]: {
|
|
66
|
+
padding: "48px 68px",
|
|
67
|
+
boxShadow: "0 1px 40px 2px rgba(28, 116, 230, 0.1)"
|
|
68
|
+
},
|
|
69
|
+
[`${componentCls}-item`]: {
|
|
70
|
+
display: "flex",
|
|
71
|
+
img: {
|
|
72
|
+
marginRight: 12
|
|
73
|
+
},
|
|
74
|
+
".title": {
|
|
75
|
+
color: colorText,
|
|
76
|
+
fontSize: 16,
|
|
77
|
+
fontFamily: "PingFangSC-Medium"
|
|
78
|
+
},
|
|
79
|
+
".description": {
|
|
80
|
+
marginTop: 4,
|
|
81
|
+
color: colorTextSecondary,
|
|
82
|
+
fontFamily: "SFProText-Regular"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
[`${componentCls}-content`]: {
|
|
87
|
+
padding: "0 32px",
|
|
88
|
+
paddingBottom: 90,
|
|
89
|
+
[`${componentCls}-left`]: {
|
|
90
|
+
padding: "0 36px",
|
|
91
|
+
borderRight: "1px solid #e8e8e8",
|
|
92
|
+
[`${componentCls}-item`]: {
|
|
93
|
+
display: "flex",
|
|
94
|
+
padding: "24px 24px",
|
|
95
|
+
[`${componentCls}-order-wrapper`]: {
|
|
96
|
+
[`${componentCls}-order`]: {
|
|
97
|
+
width: 24,
|
|
98
|
+
height: 24,
|
|
99
|
+
marginRight: 12,
|
|
100
|
+
color: colorTextQuaternary,
|
|
101
|
+
textAlign: "center",
|
|
102
|
+
border: `1px solid ${colorTextQuaternary}`,
|
|
103
|
+
borderRadius: 24
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
[`${componentCls}-title`]: {
|
|
107
|
+
marginTop: 0,
|
|
108
|
+
color: colorText,
|
|
109
|
+
fontSize: 16
|
|
110
|
+
},
|
|
111
|
+
[`${componentCls}-description`]: {
|
|
112
|
+
marginTop: 8,
|
|
113
|
+
color: colorTextTertiary
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
[`${componentCls}-btn-wrapper`]: {
|
|
117
|
+
marginRight: 24,
|
|
118
|
+
marginLeft: 60
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
[`${componentCls}-right`]: {
|
|
122
|
+
padding: "24px 64px",
|
|
123
|
+
[`${componentCls}-title`]: {
|
|
124
|
+
marginBottom: 16,
|
|
125
|
+
color: colorText,
|
|
126
|
+
fontSize: 16,
|
|
127
|
+
fontFamily: "PingFangSC-Medium"
|
|
128
|
+
},
|
|
129
|
+
[`${antCls}-btn`]: {
|
|
130
|
+
marginRight: 12,
|
|
131
|
+
marginBottom: 12,
|
|
132
|
+
background: "rgba(24, 144, 255, 0.06)",
|
|
133
|
+
border: "none"
|
|
134
|
+
},
|
|
135
|
+
[`${componentCls}-more`]: {
|
|
136
|
+
background: "rgba(0, 0, 0, 0.04)"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
[`${componentCls}-step`]: {
|
|
142
|
+
display: "flex",
|
|
143
|
+
marginBottom: 30,
|
|
144
|
+
padding: "20px 30px 20px 0",
|
|
145
|
+
background: colorBgContainer,
|
|
146
|
+
border: "1px solid rgba(0, 0, 0, 0.06)",
|
|
147
|
+
borderRadius: 2,
|
|
148
|
+
"&:hover": {
|
|
149
|
+
boxShadow: "0 4px 16px 0",
|
|
150
|
+
cursor: "pointer"
|
|
151
|
+
},
|
|
152
|
+
"&:nth-child(even)": {
|
|
153
|
+
marginRight: 0
|
|
154
|
+
},
|
|
155
|
+
[`${componentCls}-step-left`]: {
|
|
156
|
+
padding: "0 20px"
|
|
157
|
+
},
|
|
158
|
+
[`${componentCls}-step-right`]: {
|
|
159
|
+
[`${componentCls}-step-title`]: {
|
|
160
|
+
color: colorText,
|
|
161
|
+
fontSize: 16,
|
|
162
|
+
lineHeight: 24
|
|
163
|
+
},
|
|
164
|
+
[`${componentCls}-step-description`]: {
|
|
165
|
+
color: colorTextTertiary
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
[`${componentCls}-step-operations`]: {
|
|
169
|
+
color: colorPrimary,
|
|
170
|
+
fontSize: 14,
|
|
171
|
+
lineHeight: 22
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
".borderRight": {
|
|
175
|
+
borderRight: "1px solid #e8e8e8"
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
var style_default = (prefixCls) => {
|
|
180
|
+
const useStyle = (0, import_genComponentStyleHook.genComponentStyleHook)("Welcome", (token) => {
|
|
181
|
+
return [genWelcomeStyle(token)];
|
|
182
|
+
});
|
|
183
|
+
return useStyle(prefixCls);
|
|
184
|
+
};
|
|
185
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
186
|
+
0 && (module.exports = {
|
|
187
|
+
genWelcomeStyle
|
|
188
|
+
});
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -64,7 +64,6 @@ __export(src_exports, {
|
|
|
64
64
|
version: () => import_package.version
|
|
65
65
|
});
|
|
66
66
|
module.exports = __toCommonJS(src_exports);
|
|
67
|
-
var import_index = require("./index.less");
|
|
68
67
|
__reExport(src_exports, require("@ant-design/pro-components"), module.exports);
|
|
69
68
|
var import_package = require("../package.json");
|
|
70
69
|
__reExport(src_exports, require("./constant"), module.exports);
|