@oceanbase/ui 1.0.0-alpha.0 → 1.0.0-alpha.10
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/static/Inter-Medium.ea234620.woff2 +0 -0
- package/dist/static/Inter-Regular.34ba43c9.woff2 +0 -0
- package/dist/static/Inter-SemiBold.95439fb4.woff2 +0 -0
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +1 -1
- package/es/Action/Group.js +121 -15
- 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/Action/style/index.d.ts +2 -2
- package/es/Action/style/index.js +8 -4
- package/es/BasicLayout/locale/ja-JP.d.ts +13 -0
- package/es/BasicLayout/locale/ja-JP.js +12 -0
- package/es/BasicLayout/style/index.js +35 -23
- package/es/BatchOperationBar/index.d.ts +0 -1
- package/es/BatchOperationBar/index.js +17 -13
- package/es/BatchOperationBar/locale/ja-JP.d.ts +7 -0
- package/es/BatchOperationBar/locale/ja-JP.js +6 -0
- 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/locale/en-US.js +1 -1
- package/es/Boundary/locale/ja-JP.d.ts +11 -0
- package/es/Boundary/locale/ja-JP.js +10 -0
- package/es/Boundary/locale/zh-CN.js +1 -1
- package/es/Boundary/locale/zh-TW.js +1 -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 +4 -1
- package/es/DateRanger/Ranger.js +168 -19
- package/es/DateRanger/constant/index.js +1 -1
- package/es/DateRanger/locale/ja-JP.d.ts +56 -0
- package/es/DateRanger/locale/ja-JP.js +20 -0
- 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/locale/ja-JP.d.ts +5 -0
- package/es/Dialog/locale/ja-JP.js +4 -0
- package/es/Dialog/locale/zh-CN.js +1 -1
- package/es/Dialog/locale/zh-TW.js +1 -1
- package/es/Dialog/style/index.d.ts +10 -0
- package/es/Dialog/style/index.js +97 -0
- package/es/DocDialog/locale/ja-JP.d.ts +2 -0
- package/es/DocDialog/locale/ja-JP.js +1 -0
- package/es/FooterToolbar/style/index.d.ts +0 -2
- package/es/FooterToolbar/style/index.js +7 -13
- package/es/FullscreenBox/index.d.ts +0 -1
- package/es/FullscreenBox/index.js +46 -37
- package/es/FullscreenBox/locale/ja-JP.d.ts +2 -0
- package/es/FullscreenBox/locale/ja-JP.js +1 -0
- package/es/FullscreenBox/style/index.d.ts +10 -0
- package/es/FullscreenBox/style/index.js +53 -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/locale/ja-JP.d.ts +4 -0
- package/es/Highlight/locale/ja-JP.js +3 -0
- package/es/Highlight/style/index.d.ts +10 -0
- package/es/Highlight/style/index.js +213 -0
- package/es/LocaleDropdown/index.js +4 -2
- 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/locale/ja-JP.d.ts +28 -0
- package/es/Login/locale/ja-JP.js +27 -0
- package/es/Login/locale/zh-CN.js +2 -2
- 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/PageContainer/index.d.ts +2 -0
- package/es/PageContainer/index.js +102 -25
- package/es/PageContainer/locale/en-US.d.ts +1 -0
- package/es/PageContainer/locale/en-US.js +2 -1
- package/es/PageContainer/locale/ja-JP.d.ts +5 -0
- package/es/PageContainer/locale/ja-JP.js +4 -0
- package/es/PageContainer/locale/zh-CN.d.ts +1 -0
- package/es/PageContainer/locale/zh-CN.js +2 -1
- package/es/PageContainer/locale/zh-TW.d.ts +1 -0
- package/es/PageContainer/locale/zh-TW.js +2 -1
- package/es/PageContainer/style/index.js +41 -16
- package/es/Password/index.js +1 -1
- package/es/Password/locale/ja-JP.d.ts +13 -0
- package/es/Password/locale/ja-JP.js +12 -0
- package/es/ProCard/index.d.ts +2 -1
- package/es/ProCard/index.js +20 -8
- package/es/ProCard/style/index.d.ts +2 -2
- package/es/ProCard/style/index.js +13 -5
- package/es/ProTable/index.d.ts +1 -1
- package/es/ProTable/index.js +23 -8
- package/es/ProTable/style/index.d.ts +2 -2
- package/es/ProTable/style/index.js +12 -5
- 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/locale/ja-JP.d.ts +28 -0
- package/es/Ranger/locale/ja-JP.js +29 -0
- 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/locale/ja-JP.d.ts +2 -0
- package/es/SideTip/locale/ja-JP.js +1 -0
- 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/Welcome/index.d.ts +0 -1
- package/es/Welcome/index.js +30 -26
- package/es/Welcome/locale/ja-JP.d.ts +5 -0
- package/es/Welcome/locale/ja-JP.js +4 -0
- 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/_util/genComponentStyleHook.d.ts +4 -3
- package/es/_util/genComponentStyleHook.js +1 -1
- package/es/index.d.ts +0 -5
- package/es/index.js +0 -3
- package/es/locale/en-US.js +0 -4
- package/es/locale/ja-JP.d.ts +3 -0
- package/es/locale/ja-JP.js +38 -0
- package/es/locale/zh-CN.js +0 -4
- package/es/locale/zh-TW.js +0 -4
- package/lib/Action/Group.js +122 -46
- package/lib/Action/Item.d.ts +6 -15
- package/lib/Action/Item.js +66 -76
- package/lib/Action/index.d.ts +6 -3
- package/lib/Action/style/index.d.ts +2 -2
- package/lib/Action/style/index.js +16 -1
- package/lib/BackgroundTaskManager/RefreshMan.js +3 -12
- package/lib/BackgroundTaskManager/index.js +3 -12
- package/lib/BasicLayout/Header.js +120 -62
- package/lib/BasicLayout/index.js +166 -143
- package/lib/BasicLayout/locale/ja-JP.d.ts +13 -0
- package/lib/BasicLayout/locale/ja-JP.js +36 -0
- package/lib/BasicLayout/style/index.js +32 -23
- package/lib/BatchOperationBar/index.d.ts +0 -1
- package/lib/BatchOperationBar/index.js +70 -51
- package/lib/BatchOperationBar/locale/ja-JP.d.ts +7 -0
- package/lib/{TaskGraph/locale/en-US.js → BatchOperationBar/locale/ja-JP.js} +10 -16
- package/lib/BatchOperationBar/style/index.d.ts +10 -0
- package/lib/BatchOperationBar/style/index.js +82 -0
- package/lib/Boundary/Components/Code.js +25 -13
- package/lib/Boundary/Components/Exception.js +70 -49
- package/lib/Boundary/Components/Function.js +20 -8
- package/lib/Boundary/index.d.ts +0 -1
- package/lib/Boundary/index.js +0 -1
- package/lib/Boundary/locale/en-US.js +1 -1
- package/lib/Boundary/locale/ja-JP.d.ts +11 -0
- package/lib/Boundary/locale/ja-JP.js +34 -0
- package/lib/Boundary/locale/zh-CN.js +1 -1
- package/lib/Boundary/locale/zh-TW.js +1 -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 +44 -33
- package/lib/ContentWithIcon/style/index.d.ts +10 -0
- package/lib/ContentWithIcon/style/index.js +57 -0
- package/lib/ContentWithQuestion/index.js +8 -3
- package/lib/DateRanger/PickerPanel.js +237 -219
- package/lib/DateRanger/Ranger.d.ts +4 -1
- package/lib/DateRanger/Ranger.js +413 -239
- package/lib/DateRanger/constant/index.js +1 -1
- package/lib/DateRanger/locale/ja-JP.d.ts +56 -0
- package/lib/DateRanger/locale/ja-JP.js +49 -0
- 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 +59 -58
- package/lib/Dialog/EventProxy.js +3 -12
- package/lib/Dialog/index.d.ts +0 -1
- package/lib/Dialog/index.js +514 -466
- package/lib/Dialog/locale/ja-JP.d.ts +5 -0
- package/lib/{GraphToolbar/locale/en-US.js → Dialog/locale/ja-JP.js} +8 -12
- package/lib/Dialog/locale/zh-CN.js +1 -1
- package/lib/Dialog/locale/zh-TW.js +1 -1
- package/lib/Dialog/style/index.d.ts +10 -0
- package/lib/Dialog/style/index.js +135 -0
- package/lib/DocDialog/index.js +3 -2
- package/lib/DocDialog/locale/ja-JP.d.ts +2 -0
- package/lib/DocDialog/locale/ja-JP.js +25 -0
- package/lib/FooterToolbar/index.js +3 -2
- package/lib/FooterToolbar/style/index.d.ts +0 -2
- package/lib/FooterToolbar/style/index.js +7 -18
- package/lib/FullscreenBox/index.d.ts +0 -1
- package/lib/FullscreenBox/index.js +51 -33
- package/lib/FullscreenBox/locale/ja-JP.d.ts +2 -0
- package/lib/FullscreenBox/locale/ja-JP.js +25 -0
- package/lib/FullscreenBox/style/index.d.ts +10 -0
- package/lib/FullscreenBox/style/index.js +86 -0
- package/lib/Highlight/DiffView/DiffCells.js +17 -10
- package/lib/Highlight/DiffView/index.d.ts +0 -1
- package/lib/Highlight/DiffView/index.js +38 -34
- package/lib/Highlight/HighlightCell.js +13 -10
- package/lib/Highlight/JsonView.d.ts +0 -1
- package/lib/Highlight/JsonView.js +18 -17
- package/lib/Highlight/index.d.ts +0 -1
- package/lib/Highlight/index.js +60 -52
- package/lib/Highlight/locale/ja-JP.d.ts +4 -0
- package/lib/{GraphToolbar/locale/zh-CN.js → Highlight/locale/ja-JP.js} +7 -12
- package/lib/Highlight/style/index.d.ts +10 -0
- package/lib/Highlight/style/index.js +293 -0
- package/lib/IconFont/index.js +2 -12
- package/lib/LightFilter/index.js +3 -2
- package/lib/LocaleDropdown/index.js +15 -21
- package/lib/Login/ActivateForm.d.ts +0 -1
- package/lib/Login/ActivateForm.js +65 -64
- package/lib/Login/LoginForm.d.ts +0 -1
- package/lib/Login/LoginForm.js +134 -113
- package/lib/Login/RegisterForm.d.ts +0 -1
- package/lib/Login/RegisterForm.js +90 -89
- package/lib/Login/index.d.ts +0 -1
- package/lib/Login/index.js +102 -72
- package/lib/Login/locale/ja-JP.d.ts +28 -0
- package/lib/Login/locale/ja-JP.js +51 -0
- package/lib/Login/locale/zh-CN.js +2 -2
- 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 +22 -18
- package/lib/NavMenu/style/index.d.ts +10 -0
- package/lib/NavMenu/style/index.js +78 -0
- package/lib/PageContainer/ItemRender.js +5 -5
- package/lib/PageContainer/index.d.ts +2 -0
- package/lib/PageContainer/index.js +86 -10
- package/lib/PageContainer/locale/en-US.d.ts +1 -0
- package/lib/PageContainer/locale/en-US.js +2 -1
- package/lib/PageContainer/locale/ja-JP.d.ts +5 -0
- package/lib/{GraphToolbar/locale/zh-TW.js → PageContainer/locale/ja-JP.js} +8 -12
- package/lib/PageContainer/locale/zh-CN.d.ts +1 -0
- package/lib/PageContainer/locale/zh-CN.js +2 -1
- package/lib/PageContainer/locale/zh-TW.d.ts +1 -0
- package/lib/PageContainer/locale/zh-TW.js +2 -1
- package/lib/PageContainer/style/index.js +44 -13
- package/lib/PageLoading/index.js +6 -16
- package/lib/Password/Content.js +38 -42
- package/lib/Password/index.js +83 -68
- package/lib/Password/locale/ja-JP.d.ts +13 -0
- package/lib/Password/locale/ja-JP.js +36 -0
- package/lib/ProCard/index.d.ts +2 -1
- package/lib/ProCard/index.js +22 -8
- package/lib/ProCard/style/index.d.ts +2 -2
- package/lib/ProCard/style/index.js +18 -3
- package/lib/ProTable/index.d.ts +1 -1
- package/lib/ProTable/index.js +22 -10
- package/lib/ProTable/style/index.d.ts +2 -2
- package/lib/ProTable/style/index.js +18 -2
- package/lib/Ranger/QuickPicker.js +28 -17
- package/lib/Ranger/Ranger.d.ts +0 -1
- package/lib/Ranger/Ranger.js +49 -43
- package/lib/Ranger/locale/ja-JP.d.ts +28 -0
- package/lib/Ranger/locale/ja-JP.js +53 -0
- package/lib/Ranger/style/index.d.ts +10 -0
- package/lib/Ranger/style/index.js +82 -0
- package/lib/SideTip/Dragger.js +5 -4
- package/lib/SideTip/IconLoading.js +25 -25
- package/lib/SideTip/index.d.ts +0 -1
- package/lib/SideTip/index.js +55 -38
- package/lib/SideTip/locale/ja-JP.d.ts +2 -0
- package/lib/SideTip/locale/ja-JP.js +25 -0
- 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 +12 -7
- package/lib/TagSelect/Item.js +25 -20
- package/lib/TreeSearch/index.js +30 -35
- package/lib/Welcome/index.d.ts +0 -1
- package/lib/Welcome/index.js +72 -40
- package/lib/Welcome/locale/ja-JP.d.ts +5 -0
- package/lib/Welcome/locale/ja-JP.js +28 -0
- 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 +18 -7
- package/lib/Welcome/style/index.d.ts +10 -0
- package/lib/Welcome/style/index.js +188 -0
- package/lib/_util/genComponentStyleHook.d.ts +4 -3
- package/lib/_util/genComponentStyleHook.js +1 -1
- package/lib/index.d.ts +0 -5
- package/lib/index.js +0 -7
- package/lib/locale/LocaleWrapper.js +15 -14
- package/lib/locale/en-US.js +16 -20
- package/lib/locale/ja-JP.d.ts +3 -0
- package/lib/locale/ja-JP.js +67 -0
- package/lib/locale/zh-CN.js +17 -21
- package/lib/locale/zh-TW.js +15 -19
- package/package.json +8 -11
- package/dist/static/Inter.f6bcdfb6.woff2 +0 -0
- 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 -157
- package/es/Dialog/index.less +0 -116
- package/es/FullscreenBox/index.less +0 -49
- package/es/GraphToolbar/index.d.ts +0 -26
- package/es/GraphToolbar/index.js +0 -146
- package/es/GraphToolbar/index.less +0 -65
- package/es/GraphToolbar/locale/en-US.d.ts +0 -9
- package/es/GraphToolbar/locale/en-US.js +0 -8
- package/es/GraphToolbar/locale/zh-CN.d.ts +0 -9
- package/es/GraphToolbar/locale/zh-CN.js +0 -8
- package/es/GraphToolbar/locale/zh-TW.d.ts +0 -9
- package/es/GraphToolbar/locale/zh-TW.js +0 -8
- 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.d.ts +0 -24
- package/es/TaskGraph/Graph.js +0 -271
- package/es/TaskGraph/graph.less +0 -23
- package/es/TaskGraph/index.d.ts +0 -16
- package/es/TaskGraph/index.js +0 -178
- package/es/TaskGraph/index.less +0 -117
- package/es/TaskGraph/locale/en-US.d.ts +0 -13
- package/es/TaskGraph/locale/en-US.js +0 -12
- package/es/TaskGraph/locale/zh-CN.d.ts +0 -13
- package/es/TaskGraph/locale/zh-CN.js +0 -12
- package/es/TaskGraph/locale/zh-TW.d.ts +0 -13
- package/es/TaskGraph/locale/zh-TW.js +0 -12
- package/es/TaskGraph/register.d.ts +0 -7
- package/es/TaskGraph/register.js +0 -200
- 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 -157
- package/lib/Dialog/index.less +0 -116
- package/lib/FullscreenBox/index.less +0 -49
- package/lib/GraphToolbar/index.d.ts +0 -26
- package/lib/GraphToolbar/index.js +0 -154
- package/lib/GraphToolbar/index.less +0 -65
- package/lib/GraphToolbar/locale/en-US.d.ts +0 -9
- package/lib/GraphToolbar/locale/zh-CN.d.ts +0 -9
- package/lib/GraphToolbar/locale/zh-TW.d.ts +0 -9
- 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.d.ts +0 -24
- package/lib/TaskGraph/Graph.js +0 -261
- package/lib/TaskGraph/graph.less +0 -23
- package/lib/TaskGraph/index.d.ts +0 -16
- package/lib/TaskGraph/index.js +0 -164
- package/lib/TaskGraph/index.less +0 -117
- package/lib/TaskGraph/locale/en-US.d.ts +0 -13
- package/lib/TaskGraph/locale/zh-CN.d.ts +0 -13
- package/lib/TaskGraph/locale/zh-CN.js +0 -36
- package/lib/TaskGraph/locale/zh-TW.d.ts +0 -13
- package/lib/TaskGraph/locale/zh-TW.js +0 -36
- package/lib/TaskGraph/register.d.ts +0 -7
- package/lib/TaskGraph/register.js +0 -205
- package/lib/Welcome/index.less +0 -185
- package/lib/index.less +0 -1
- package/lib/variable.less +0 -54
|
@@ -0,0 +1,211 @@
|
|
|
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/SideTip/style/index.ts
|
|
20
|
+
var style_exports = {};
|
|
21
|
+
__export(style_exports, {
|
|
22
|
+
default: () => style_default,
|
|
23
|
+
genSideTipStyle: () => genSideTipStyle
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(style_exports);
|
|
26
|
+
var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
|
|
27
|
+
var genSideTipStyle = (token) => {
|
|
28
|
+
const { componentCls, boxShadowSecondary, colorTextQuaternary, colorTextSecondary } = token;
|
|
29
|
+
return {
|
|
30
|
+
[`${componentCls}-container`]: {
|
|
31
|
+
position: "fixed",
|
|
32
|
+
zIndex: 0,
|
|
33
|
+
fontSize: 14,
|
|
34
|
+
cursor: "pointer",
|
|
35
|
+
insetInlineEnd: 24,
|
|
36
|
+
insetBlockEnd: 24,
|
|
37
|
+
[`&.${componentCls}-container-dragged`]: {
|
|
38
|
+
cursor: "grab"
|
|
39
|
+
},
|
|
40
|
+
[`&.${componentCls}-container-disabled`]: {
|
|
41
|
+
cursor: "not-allowed"
|
|
42
|
+
},
|
|
43
|
+
[`&.${componentCls}-container-hide`]: {
|
|
44
|
+
transition: "all 0.3s"
|
|
45
|
+
},
|
|
46
|
+
"@media screen and (max-width: 768px)": {
|
|
47
|
+
display: "none"
|
|
48
|
+
},
|
|
49
|
+
[`&.${componentCls}-container-hide-not-dragged:hover`]: {
|
|
50
|
+
insetInlineEnd: "0 !important"
|
|
51
|
+
},
|
|
52
|
+
[`${componentCls}-hide`]: {
|
|
53
|
+
position: "absolute",
|
|
54
|
+
zIndex: 0,
|
|
55
|
+
display: "flex",
|
|
56
|
+
alignItems: "center",
|
|
57
|
+
justifyContent: "center",
|
|
58
|
+
width: 20,
|
|
59
|
+
height: 20,
|
|
60
|
+
background: "rgba(0, 0, 0, 0.15)",
|
|
61
|
+
borderRadius: 20,
|
|
62
|
+
transform: "scale(0)",
|
|
63
|
+
cursor: "pointer",
|
|
64
|
+
opacity: 0,
|
|
65
|
+
transition: "all 0.18s ease-out 0.18s",
|
|
66
|
+
insetBlockStart: 0,
|
|
67
|
+
insetInlineEnd: -22,
|
|
68
|
+
"&:hover": {
|
|
69
|
+
background: "rgba(0, 0, 0, 0.35)"
|
|
70
|
+
},
|
|
71
|
+
[`${componentCls}-hide-icon`]: {
|
|
72
|
+
width: 6,
|
|
73
|
+
height: 2,
|
|
74
|
+
background: "#fff",
|
|
75
|
+
borderRadius: 4
|
|
76
|
+
},
|
|
77
|
+
[`&.${componentCls}-hide-hovered`]: {
|
|
78
|
+
transform: "scale(1)",
|
|
79
|
+
opacity: 1
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
[`${componentCls}-button`]: {
|
|
83
|
+
position: "relative",
|
|
84
|
+
display: "flex",
|
|
85
|
+
alignItems: "center",
|
|
86
|
+
justifyContent: "center",
|
|
87
|
+
width: 56,
|
|
88
|
+
height: 56,
|
|
89
|
+
backgroundColor: "#fff",
|
|
90
|
+
borderRadius: "50%",
|
|
91
|
+
boxShadow: boxShadowSecondary,
|
|
92
|
+
cursor: "pointer",
|
|
93
|
+
transition: "background-color 0.2s ease 0.1s, opacity 0.2s ease 0s, transform 0.2s ease 0.1s",
|
|
94
|
+
userSelect: "none",
|
|
95
|
+
[`&${componentCls}-button-primary`]: {
|
|
96
|
+
backgroundColor: `${token.colorPrimary} !important`
|
|
97
|
+
},
|
|
98
|
+
[`&${componentCls}-button-small`]: {
|
|
99
|
+
width: 40,
|
|
100
|
+
height: 40
|
|
101
|
+
},
|
|
102
|
+
[`&${componentCls}-button-disabled`]: {
|
|
103
|
+
backgroundColor: `${colorTextQuaternary} !important`,
|
|
104
|
+
cursor: "not-allowed"
|
|
105
|
+
},
|
|
106
|
+
"&:hover": {
|
|
107
|
+
opacity: 1
|
|
108
|
+
},
|
|
109
|
+
[`${componentCls}-button-loading`]: {
|
|
110
|
+
position: "absolute",
|
|
111
|
+
width: 56,
|
|
112
|
+
height: 56,
|
|
113
|
+
color: token.colorPrimary,
|
|
114
|
+
fontSize: 56,
|
|
115
|
+
insetBlockStart: 0,
|
|
116
|
+
insetInlineEnd: 0,
|
|
117
|
+
[`&${componentCls}-button-loading-primary`]: {
|
|
118
|
+
color: "#fff"
|
|
119
|
+
},
|
|
120
|
+
[`&${componentCls}-button-loading-small`]: {
|
|
121
|
+
width: 40,
|
|
122
|
+
height: 40,
|
|
123
|
+
fontSize: 40,
|
|
124
|
+
lineHeight: 40
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
[`${componentCls}-button-close`]: {
|
|
128
|
+
position: "absolute",
|
|
129
|
+
width: 24,
|
|
130
|
+
height: 24,
|
|
131
|
+
color: colorTextSecondary,
|
|
132
|
+
fontSize: 24,
|
|
133
|
+
transform: "translate(-50%, -50%) scale(0.4) rotate(-45deg)",
|
|
134
|
+
opacity: 0,
|
|
135
|
+
transition: "all 0.3s linear",
|
|
136
|
+
userSelect: "none",
|
|
137
|
+
insetBlockStart: "50%",
|
|
138
|
+
insetInlineStart: "50%",
|
|
139
|
+
[`&.${componentCls}-button-close-primary`]: {
|
|
140
|
+
color: "#fff"
|
|
141
|
+
},
|
|
142
|
+
[`&.${componentCls}-button-close-show`]: {
|
|
143
|
+
transform: "translate(-50%, -50%)",
|
|
144
|
+
opacity: 1
|
|
145
|
+
},
|
|
146
|
+
[`&.${componentCls}-button-close-small`]: {
|
|
147
|
+
width: 16,
|
|
148
|
+
height: 16,
|
|
149
|
+
fontSize: 16,
|
|
150
|
+
lineHeight: 16
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
[`${componentCls}-button-icon`]: {
|
|
154
|
+
position: "absolute",
|
|
155
|
+
display: "flex",
|
|
156
|
+
alignItems: "center",
|
|
157
|
+
justifyContent: "center",
|
|
158
|
+
width: 24,
|
|
159
|
+
height: 24,
|
|
160
|
+
color: colorTextSecondary,
|
|
161
|
+
fontSize: 24,
|
|
162
|
+
lineHeight: 24,
|
|
163
|
+
transform: "translate(-50%, -50%)",
|
|
164
|
+
opacity: 1,
|
|
165
|
+
transition: "all 0.3s linear",
|
|
166
|
+
userSelect: "none",
|
|
167
|
+
insetBlockStart: "50%",
|
|
168
|
+
insetInlineStart: "50%",
|
|
169
|
+
"> *": {
|
|
170
|
+
fontSize: "inherit",
|
|
171
|
+
color: "inherit"
|
|
172
|
+
},
|
|
173
|
+
img: {
|
|
174
|
+
width: "100%",
|
|
175
|
+
height: "100%",
|
|
176
|
+
objectFit: "contain"
|
|
177
|
+
},
|
|
178
|
+
[`&.${componentCls}-button-icon-open`]: {
|
|
179
|
+
transform: "translate(-50%, -50%) scale(0.4) rotate(45deg)",
|
|
180
|
+
opacity: 0
|
|
181
|
+
},
|
|
182
|
+
[`&.${componentCls}-button-icon-disabled`]: {
|
|
183
|
+
color: colorTextQuaternary
|
|
184
|
+
},
|
|
185
|
+
[`&${componentCls}-button-icon-primary`]: {
|
|
186
|
+
color: "#fff !important",
|
|
187
|
+
"> *": {
|
|
188
|
+
color: "#fff !important"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
[`&${componentCls}-button-icon-small`]: {
|
|
192
|
+
width: 16,
|
|
193
|
+
height: 16,
|
|
194
|
+
fontSize: 16,
|
|
195
|
+
lineHeight: 16
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
var style_default = (prefixCls) => {
|
|
203
|
+
const useStyle = (0, import_genComponentStyleHook.genComponentStyleHook)("SideTip", (token) => {
|
|
204
|
+
return [genSideTipStyle(token)];
|
|
205
|
+
});
|
|
206
|
+
return useStyle(prefixCls);
|
|
207
|
+
};
|
|
208
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
209
|
+
0 && (module.exports = {
|
|
210
|
+
genSideTipStyle
|
|
211
|
+
});
|
package/lib/TagSelect/Group.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export type TagSelectValueType = string | number | readonly string[];
|
|
3
3
|
export interface TagSelectOptionType {
|
|
4
4
|
label: React.ReactNode;
|
|
@@ -9,15 +9,15 @@ export interface TagSelectOptionType {
|
|
|
9
9
|
}
|
|
10
10
|
export interface TagSelectGroupProps {
|
|
11
11
|
title?: string;
|
|
12
|
-
children?: ReactNode;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
className?: string;
|
|
15
15
|
multiple?: boolean;
|
|
16
|
-
defaultValue?: TagSelectValueType |
|
|
17
|
-
value?: TagSelectValueType |
|
|
16
|
+
defaultValue?: TagSelectValueType | TagSelectValueType[];
|
|
17
|
+
value?: TagSelectValueType | TagSelectValueType[];
|
|
18
18
|
size?: string;
|
|
19
|
-
options?:
|
|
20
|
-
onChange?: (value:
|
|
19
|
+
options?: (TagSelectOptionType | string | number)[];
|
|
20
|
+
onChange?: (value: TagSelectValueType[] | TagSelectValueType) => void;
|
|
21
21
|
}
|
|
22
22
|
declare const Group: React.FC<TagSelectGroupProps>;
|
|
23
23
|
export default Group;
|
package/lib/TagSelect/Group.js
CHANGED
|
@@ -33,11 +33,12 @@ __export(Group_exports, {
|
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(Group_exports);
|
|
35
35
|
var import_classnames = __toESM(require("classnames"));
|
|
36
|
-
var
|
|
36
|
+
var import_design = require("@oceanbase/design");
|
|
37
37
|
var import_react = __toESM(require("react"));
|
|
38
38
|
var import_TagSelectContext = __toESM(require("./TagSelectContext"));
|
|
39
39
|
var import_Item = __toESM(require("./Item"));
|
|
40
40
|
var import_style = __toESM(require("./style"));
|
|
41
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
41
42
|
function toArray(value) {
|
|
42
43
|
let res = value;
|
|
43
44
|
if (value === void 0) {
|
|
@@ -57,7 +58,8 @@ var Group = ({
|
|
|
57
58
|
className,
|
|
58
59
|
...restProps
|
|
59
60
|
}) => {
|
|
60
|
-
const
|
|
61
|
+
const { getPrefixCls } = (0, import_react.useContext)(import_design.ConfigProvider.ConfigContext);
|
|
62
|
+
const prefix = getPrefixCls("tag-select");
|
|
61
63
|
const { wrapSSR, hashId } = (0, import_style.default)(prefix);
|
|
62
64
|
const [value, setValue] = (0, import_react.useState)(
|
|
63
65
|
toArray(defaultValue || restProps.value)
|
|
@@ -106,21 +108,24 @@ var Group = ({
|
|
|
106
108
|
return option;
|
|
107
109
|
});
|
|
108
110
|
}, [options]);
|
|
109
|
-
const childrenNode = options.length ? memoOptions.map((option) => /* @__PURE__ */
|
|
111
|
+
const childrenNode = options.length ? memoOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
110
112
|
import_Item.default,
|
|
111
113
|
{
|
|
112
|
-
key: option.value.toString(),
|
|
113
114
|
disabled: "disabled" in option ? option.disabled : restProps.disabled,
|
|
114
115
|
value: option.value,
|
|
115
116
|
onChange: option.onChange,
|
|
116
117
|
style: option.style,
|
|
117
|
-
checked: value == null ? void 0 : value.includes(option.value)
|
|
118
|
+
checked: value == null ? void 0 : value.includes(option.value),
|
|
119
|
+
children: option.label
|
|
118
120
|
},
|
|
119
|
-
option.
|
|
121
|
+
option.value.toString()
|
|
120
122
|
)) : children;
|
|
121
123
|
const groupCls = (0, import_classnames.default)(`${prefix}-container`, hashId, className);
|
|
122
124
|
return wrapSSR(
|
|
123
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_TagSelectContext.default.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: groupCls, children: [
|
|
126
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefix}-title`, children: title }),
|
|
127
|
+
childrenNode
|
|
128
|
+
] }) })
|
|
124
129
|
);
|
|
125
130
|
};
|
|
126
131
|
var Group_default = Group;
|
package/lib/TagSelect/Item.js
CHANGED
|
@@ -36,9 +36,10 @@ var import_rc_checkbox = __toESM(require("rc-checkbox"));
|
|
|
36
36
|
var import_classnames = __toESM(require("classnames"));
|
|
37
37
|
var import_lodash = require("lodash");
|
|
38
38
|
var import_react = __toESM(require("react"));
|
|
39
|
+
var import_design = require("@oceanbase/design");
|
|
39
40
|
var import_style = __toESM(require("./style"));
|
|
40
|
-
var import_util = require("../_util");
|
|
41
41
|
var import_TagSelectContext = __toESM(require("./TagSelectContext"));
|
|
42
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
43
|
var Item = ({
|
|
43
44
|
children,
|
|
44
45
|
handleChange,
|
|
@@ -48,7 +49,8 @@ var Item = ({
|
|
|
48
49
|
}) => {
|
|
49
50
|
const [checked, setChecked] = (0, import_react.useState)(restProps.defaultChecked);
|
|
50
51
|
const coverType = typeof cover;
|
|
51
|
-
const
|
|
52
|
+
const { getPrefixCls } = (0, import_react.useContext)(import_design.ConfigProvider.ConfigContext);
|
|
53
|
+
const prefixCls = getPrefixCls("tag-select");
|
|
52
54
|
const { wrapSSR, hashId } = (0, import_style.default)(prefixCls);
|
|
53
55
|
const tagSelectGroup = import_react.default.useContext(import_TagSelectContext.default);
|
|
54
56
|
const wrapperClassName = (0, import_classnames.default)(
|
|
@@ -81,28 +83,31 @@ var Item = ({
|
|
|
81
83
|
}
|
|
82
84
|
}, [tagSelectGroup.value, restProps.value]);
|
|
83
85
|
const renderCover = () => {
|
|
84
|
-
return coverType === "string" ? /* @__PURE__ */
|
|
86
|
+
return coverType === "string" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefixCls}-cover`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { src: cover, alt: "tagselect" }) }) : cover;
|
|
85
87
|
};
|
|
86
88
|
return wrapSSR(
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
onChange
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
tagSelectGroup.handleValueChange
|
|
89
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("label", { className: wrapperClassName, style: restProps.style, children: [
|
|
90
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
91
|
+
import_rc_checkbox.default,
|
|
92
|
+
{
|
|
93
|
+
...restProps,
|
|
94
|
+
checked,
|
|
95
|
+
prefixCls,
|
|
96
|
+
onChange: (e) => {
|
|
97
|
+
if (!("checked" in restProps) && !Object.keys(tagSelectGroup).length) {
|
|
98
|
+
setChecked(e.target.checked);
|
|
99
|
+
}
|
|
100
|
+
if (onChange) {
|
|
101
|
+
onChange(e);
|
|
102
|
+
}
|
|
103
|
+
if (tagSelectGroup.handleValueChange) {
|
|
104
|
+
tagSelectGroup.handleValueChange(e.target.value);
|
|
105
|
+
}
|
|
102
106
|
}
|
|
103
107
|
}
|
|
104
|
-
|
|
105
|
-
|
|
108
|
+
),
|
|
109
|
+
cover ? renderCover() : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children })
|
|
110
|
+
] })
|
|
106
111
|
);
|
|
107
112
|
};
|
|
108
113
|
var Item_default = Item;
|
package/lib/TreeSearch/index.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
5
|
var __export = (target, all) => {
|
|
8
6
|
for (var name in all)
|
|
@@ -16,14 +14,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
14
|
}
|
|
17
15
|
return to;
|
|
18
16
|
};
|
|
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
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
18
|
|
|
29
19
|
// src/TreeSearch/index.tsx
|
|
@@ -34,8 +24,9 @@ __export(TreeSearch_exports, {
|
|
|
34
24
|
module.exports = __toCommonJS(TreeSearch_exports);
|
|
35
25
|
var import_icons = require("@oceanbase/icons");
|
|
36
26
|
var import_design = require("@oceanbase/design");
|
|
37
|
-
var import_react =
|
|
27
|
+
var import_react = require("react");
|
|
38
28
|
var import_util = require("./util");
|
|
29
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
39
30
|
var TreeSearch_default = (0, import_react.forwardRef)(
|
|
40
31
|
({
|
|
41
32
|
treeData = [],
|
|
@@ -107,29 +98,33 @@ var TreeSearch_default = (0, import_react.forwardRef)(
|
|
|
107
98
|
};
|
|
108
99
|
const treeHeight = innerHeight ? innerHeight - (32 + 12 * 2 + 1) : 0;
|
|
109
100
|
const defaultSearchStyle = { padding: "0 12px" };
|
|
110
|
-
return /* @__PURE__ */
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
{
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref: treeWrapperDOM, style: { width, height: height ?? "100%" }, children: [
|
|
102
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
103
|
+
import_design.Form,
|
|
104
|
+
{
|
|
105
|
+
form,
|
|
106
|
+
onValuesChange: onSearch,
|
|
107
|
+
style: Object.assign(defaultSearchStyle, searchStyle),
|
|
108
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Form.Item, { noStyle: true, name: "searchKey", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Input, { "data-testid": "search", prefix: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.SearchOutlined, {}) }) })
|
|
109
|
+
}
|
|
110
|
+
),
|
|
111
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Divider, { style: { margin: "12px 0" } }),
|
|
112
|
+
searchData.length !== 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
113
|
+
import_design.Tree,
|
|
114
|
+
{
|
|
115
|
+
height: treeHeight,
|
|
116
|
+
showIcon: true,
|
|
117
|
+
checkable,
|
|
118
|
+
blockNode: true,
|
|
119
|
+
selectable: false,
|
|
120
|
+
checkedKeys,
|
|
121
|
+
onCheck,
|
|
122
|
+
titleRender,
|
|
123
|
+
defaultExpandAll,
|
|
124
|
+
treeData: form.getFieldValue("searchKey") ? searchData : memoTreeData,
|
|
125
|
+
loadData
|
|
126
|
+
}
|
|
127
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Empty, { image: import_design.Empty.PRESENTED_IMAGE_SIMPLE })
|
|
128
|
+
] });
|
|
134
129
|
}
|
|
135
130
|
);
|
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 =
|
|
38
|
+
var import_react = require("react");
|
|
39
39
|
var import_LocaleWrapper = __toESM(require("../locale/LocaleWrapper"));
|
|
40
40
|
var import_util = require("../_util");
|
|
41
|
-
var
|
|
41
|
+
var import_style = __toESM(require("./style"));
|
|
42
42
|
var import_zh_CN = __toESM(require("./locale/zh-CN"));
|
|
43
43
|
var import_step = __toESM(require("./step"));
|
|
44
|
-
var
|
|
44
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
45
45
|
var Welcome = ({
|
|
46
46
|
title,
|
|
47
47
|
description,
|
|
@@ -56,9 +56,18 @@ 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__ */
|
|
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 }) }),
|
|
66
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [
|
|
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 })
|
|
69
|
+
] })
|
|
70
|
+
] }, item.title);
|
|
62
71
|
const StepProps = {
|
|
63
72
|
title: item.title,
|
|
64
73
|
description: item.description,
|
|
@@ -67,44 +76,67 @@ var Welcome = ({
|
|
|
67
76
|
operations: item.operations,
|
|
68
77
|
locale
|
|
69
78
|
};
|
|
70
|
-
const StepItem = isDefault ? /* @__PURE__ */
|
|
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);
|
|
71
80
|
return StepItem;
|
|
72
81
|
};
|
|
73
|
-
return
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
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}")`
|
|
90
|
+
},
|
|
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
|
+
] })
|
|
137
|
+
] })
|
|
138
|
+
] })
|
|
139
|
+
);
|
|
108
140
|
};
|
|
109
141
|
var Welcome_default = (0, import_LocaleWrapper.default)({
|
|
110
142
|
componentName: "Welcome",
|
|
@@ -0,0 +1,28 @@
|
|
|
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/locale/ja-JP.ts
|
|
20
|
+
var ja_JP_exports = {};
|
|
21
|
+
__export(ja_JP_exports, {
|
|
22
|
+
default: () => ja_JP_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(ja_JP_exports);
|
|
25
|
+
var ja_JP_default = {
|
|
26
|
+
helpTitle: "クイックスタート",
|
|
27
|
+
defaultOperation: "デフォルト操作"
|
|
28
|
+
};
|