@oceanbase/ui 1.0.0-alpha.1 → 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.js +11 -3
- 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.js +6 -3
- 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 +7 -10
- 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,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,17 +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 =
|
|
36
|
+
var import_react = require("react");
|
|
37
37
|
var import_LocaleWrapper = __toESM(require("../locale/LocaleWrapper"));
|
|
38
|
-
var
|
|
39
|
-
var import_index = require("./index.less");
|
|
38
|
+
var import_style = __toESM(require("./step/style"));
|
|
40
39
|
var import_zh_CN = __toESM(require("./locale/zh-CN"));
|
|
41
|
-
var
|
|
40
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
41
|
var WelcomeStep = (props) => {
|
|
43
42
|
const { title, description, operations, imgUrl, locale } = props;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}))
|
|
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
|
+
);
|
|
47
58
|
};
|
|
48
59
|
var step_default = (0, import_LocaleWrapper.default)({
|
|
49
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
|
+
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { ProAliasToken } from '@ant-design/pro-components';
|
|
2
|
-
import type { GenerateStyle } from '@oceanbase/design/es/theme';
|
|
3
1
|
import React from 'react';
|
|
4
|
-
|
|
2
|
+
import type { GenerateStyle } from '@oceanbase/design/es/theme';
|
|
3
|
+
import type { AliasToken } from '@oceanbase/design/es/theme/interface';
|
|
4
|
+
import type { ProAliasToken } from '@ant-design/pro-components';
|
|
5
|
+
export interface OBToken extends ProAliasToken, AliasToken {
|
|
5
6
|
/** Wrap component class with `.` prefix */
|
|
6
7
|
componentCls: string;
|
|
7
8
|
/** Origin prefix which do not have `.` prefix */
|
|
@@ -32,9 +32,9 @@ __export(genComponentStyleHook_exports, {
|
|
|
32
32
|
genComponentStyleHook: () => genComponentStyleHook
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(genComponentStyleHook_exports);
|
|
35
|
-
var import_pro_components = require("@ant-design/pro-components");
|
|
36
35
|
var import_react = __toESM(require("react"));
|
|
37
36
|
var import_design = require("@oceanbase/design");
|
|
37
|
+
var import_pro_components = require("@ant-design/pro-components");
|
|
38
38
|
function genComponentStyleHook(componentName, styleFn) {
|
|
39
39
|
return (prefixCls) => {
|
|
40
40
|
const { getPrefixCls, iconPrefixCls } = import_react.default.useContext(import_design.ConfigProvider.ConfigContext);
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import './index.less';
|
|
2
1
|
export * from '@ant-design/pro-components';
|
|
3
2
|
export { version } from '../package.json';
|
|
4
3
|
export * from './constant';
|
|
@@ -20,8 +19,6 @@ export { default as DocDialog } from './DocDialog';
|
|
|
20
19
|
export type { DocDialogProps } from './DocDialog';
|
|
21
20
|
export { default as FullscreenBox } from './FullscreenBox';
|
|
22
21
|
export type { FullscreenBoxProps } from './FullscreenBox';
|
|
23
|
-
export { default as GraphToolbar } from './GraphToolbar';
|
|
24
|
-
export type { GraphToolbarProps } from './GraphToolbar';
|
|
25
22
|
export { default as Highlight } from './Highlight';
|
|
26
23
|
export type { HighlightProps } from './Highlight';
|
|
27
24
|
export { default as IconFont } from './IconFont';
|
|
@@ -52,8 +49,6 @@ export { default as DateRanger } from './DateRanger';
|
|
|
52
49
|
export type { DateRangerProps } from './DateRanger';
|
|
53
50
|
export { default as SideTip } from './SideTip';
|
|
54
51
|
export type { SideTipProps } from './SideTip';
|
|
55
|
-
export { default as TaskGraph } from './TaskGraph';
|
|
56
|
-
export type { TaskGraphProps } from './TaskGraph';
|
|
57
52
|
export { default as TreeSearch } from './TreeSearch';
|
|
58
53
|
export type { TreeSearchProps, TreeSearchRef } from './TreeSearch';
|
|
59
54
|
export { default as Welcome } from './Welcome';
|
package/lib/index.js
CHANGED
|
@@ -43,7 +43,6 @@ __export(src_exports, {
|
|
|
43
43
|
DocDialog: () => import_DocDialog.default,
|
|
44
44
|
FooterToolbar: () => import_FooterToolbar.default,
|
|
45
45
|
FullscreenBox: () => import_FullscreenBox.default,
|
|
46
|
-
GraphToolbar: () => import_GraphToolbar.default,
|
|
47
46
|
Highlight: () => import_Highlight.default,
|
|
48
47
|
IconFont: () => import_IconFont.default,
|
|
49
48
|
LightFilter: () => import_LightFilter.default,
|
|
@@ -58,13 +57,11 @@ __export(src_exports, {
|
|
|
58
57
|
Ranger: () => import_Ranger.default,
|
|
59
58
|
SideTip: () => import_SideTip.default,
|
|
60
59
|
TagSelect: () => import_TagSelect.default,
|
|
61
|
-
TaskGraph: () => import_TaskGraph.default,
|
|
62
60
|
TreeSearch: () => import_TreeSearch.default,
|
|
63
61
|
Welcome: () => import_Welcome.default,
|
|
64
62
|
version: () => import_package.version
|
|
65
63
|
});
|
|
66
64
|
module.exports = __toCommonJS(src_exports);
|
|
67
|
-
var import_index = require("./index.less");
|
|
68
65
|
__reExport(src_exports, require("@ant-design/pro-components"), module.exports);
|
|
69
66
|
var import_package = require("../package.json");
|
|
70
67
|
__reExport(src_exports, require("./constant"), module.exports);
|
|
@@ -78,7 +75,6 @@ var import_ContentWithIcon = __toESM(require("./ContentWithIcon"));
|
|
|
78
75
|
var import_Dialog = __toESM(require("./Dialog"));
|
|
79
76
|
var import_DocDialog = __toESM(require("./DocDialog"));
|
|
80
77
|
var import_FullscreenBox = __toESM(require("./FullscreenBox"));
|
|
81
|
-
var import_GraphToolbar = __toESM(require("./GraphToolbar"));
|
|
82
78
|
var import_Highlight = __toESM(require("./Highlight"));
|
|
83
79
|
var import_IconFont = __toESM(require("./IconFont"));
|
|
84
80
|
var import_Login = __toESM(require("./Login"));
|
|
@@ -94,7 +90,6 @@ var import_Password = __toESM(require("./Password"));
|
|
|
94
90
|
var import_Ranger = __toESM(require("./Ranger"));
|
|
95
91
|
var import_DateRanger = __toESM(require("./DateRanger"));
|
|
96
92
|
var import_SideTip = __toESM(require("./SideTip"));
|
|
97
|
-
var import_TaskGraph = __toESM(require("./TaskGraph"));
|
|
98
93
|
var import_TreeSearch = __toESM(require("./TreeSearch"));
|
|
99
94
|
var import_Welcome = __toESM(require("./Welcome"));
|
|
100
95
|
var import_TagSelect = __toESM(require("./TagSelect"));
|
|
@@ -114,7 +109,6 @@ var import_BackgroundTaskManager = __toESM(require("./BackgroundTaskManager"));
|
|
|
114
109
|
DocDialog,
|
|
115
110
|
FooterToolbar,
|
|
116
111
|
FullscreenBox,
|
|
117
|
-
GraphToolbar,
|
|
118
112
|
Highlight,
|
|
119
113
|
IconFont,
|
|
120
114
|
LightFilter,
|
|
@@ -129,7 +123,6 @@ var import_BackgroundTaskManager = __toESM(require("./BackgroundTaskManager"));
|
|
|
129
123
|
Ranger,
|
|
130
124
|
SideTip,
|
|
131
125
|
TagSelect,
|
|
132
|
-
TaskGraph,
|
|
133
126
|
TreeSearch,
|
|
134
127
|
Welcome,
|
|
135
128
|
version,
|
|
@@ -35,6 +35,10 @@ module.exports = __toCommonJS(LocaleWrapper_exports);
|
|
|
35
35
|
var import_design = require("@oceanbase/design");
|
|
36
36
|
var import_hoist_non_react_statics = __toESM(require("hoist-non-react-statics"));
|
|
37
37
|
var import_react = __toESM(require("react"));
|
|
38
|
+
var import_jsx_runtime = (
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
require("react/jsx-runtime")
|
|
41
|
+
);
|
|
38
42
|
var LocaleWrapper_default = ({ componentName, defaultLocale }) => (BaseComponent) => {
|
|
39
43
|
class Hoc extends import_react.default.Component {
|
|
40
44
|
render() {
|
|
@@ -48,19 +52,16 @@ var LocaleWrapper_default = ({ componentName, defaultLocale }) => (BaseComponent
|
|
|
48
52
|
// 这里使用 antLocale,不能直接顶掉 locale 属性,有些组件内部会维护一个 locale 去做特殊判断
|
|
49
53
|
antLocale: (antLocale == null ? void 0 : antLocale.locale) || "zh-cn"
|
|
50
54
|
};
|
|
51
|
-
return (
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
{
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
...newProps
|
|
62
|
-
}
|
|
63
|
-
)
|
|
55
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
56
|
+
BaseComponent,
|
|
57
|
+
{
|
|
58
|
+
ref: forwardedRef,
|
|
59
|
+
theme: {
|
|
60
|
+
hashed: ((_a = process.env.NODE_ENV) == null ? void 0 : _a.toLowerCase()) !== "test"
|
|
61
|
+
},
|
|
62
|
+
locale: { ...localeData, ...customLocale },
|
|
63
|
+
...newProps
|
|
64
|
+
}
|
|
64
65
|
);
|
|
65
66
|
}
|
|
66
67
|
}
|
|
@@ -69,7 +70,7 @@ var LocaleWrapper_default = ({ componentName, defaultLocale }) => (BaseComponent
|
|
|
69
70
|
Hoc.contextType = import_design.ConfigProvider.ConfigContext;
|
|
70
71
|
const ForwardComponent = import_react.default.forwardRef(
|
|
71
72
|
// @ts-ignore
|
|
72
|
-
(props, ref) => /* @__PURE__ */
|
|
73
|
+
(props, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Hoc, { ...props, forwardedRef: ref })
|
|
73
74
|
);
|
|
74
75
|
return (0, import_hoist_non_react_statics.default)(ForwardComponent, BaseComponent);
|
|
75
76
|
};
|
package/lib/locale/en-US.js
CHANGED
|
@@ -39,33 +39,29 @@ var import_en_US4 = __toESM(require("../Boundary/locale/en-US"));
|
|
|
39
39
|
var import_en_US5 = __toESM(require("../Dialog/locale/en-US"));
|
|
40
40
|
var import_en_US6 = __toESM(require("../DocDialog/locale/en-US"));
|
|
41
41
|
var import_en_US7 = __toESM(require("../FullscreenBox/locale/en-US"));
|
|
42
|
-
var import_en_US8 = __toESM(require("../
|
|
43
|
-
var import_en_US9 = __toESM(require("../
|
|
44
|
-
var import_en_US10 = __toESM(require("../
|
|
45
|
-
var import_en_US11 = __toESM(require("../
|
|
46
|
-
var import_en_US12 = __toESM(require("../
|
|
47
|
-
var import_en_US13 = __toESM(require("../
|
|
48
|
-
var import_en_US14 = __toESM(require("../
|
|
49
|
-
var import_en_US15 = __toESM(require("../
|
|
50
|
-
var import_en_US16 = __toESM(require("../TaskGraph/locale/en-US"));
|
|
51
|
-
var import_en_US17 = __toESM(require("../Welcome/locale/en-US"));
|
|
42
|
+
var import_en_US8 = __toESM(require("../Highlight/locale/en-US"));
|
|
43
|
+
var import_en_US9 = __toESM(require("../Login/locale/en-US"));
|
|
44
|
+
var import_en_US10 = __toESM(require("../PageContainer/locale/en-US"));
|
|
45
|
+
var import_en_US11 = __toESM(require("../Password/locale/en-US"));
|
|
46
|
+
var import_en_US12 = __toESM(require("../Ranger/locale/en-US"));
|
|
47
|
+
var import_en_US13 = __toESM(require("../DateRanger/locale/en-US"));
|
|
48
|
+
var import_en_US14 = __toESM(require("../SideTip/locale/en-US"));
|
|
49
|
+
var import_en_US15 = __toESM(require("../Welcome/locale/en-US"));
|
|
52
50
|
var en_US_default = {
|
|
53
51
|
...import_en_US.default,
|
|
54
52
|
// 业务组件
|
|
55
53
|
BasicLayout: import_en_US2.default,
|
|
56
|
-
PageContainer:
|
|
57
|
-
Login:
|
|
58
|
-
Welcome:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
Ranger: import_en_US13.default,
|
|
62
|
-
Password: import_en_US12.default,
|
|
54
|
+
PageContainer: import_en_US10.default,
|
|
55
|
+
Login: import_en_US9.default,
|
|
56
|
+
Welcome: import_en_US15.default,
|
|
57
|
+
Ranger: import_en_US12.default,
|
|
58
|
+
Password: import_en_US11.default,
|
|
63
59
|
Boundary: import_en_US4.default,
|
|
64
60
|
Dialog: import_en_US5.default,
|
|
65
|
-
SideTip:
|
|
61
|
+
SideTip: import_en_US14.default,
|
|
66
62
|
DocDialog: import_en_US6.default,
|
|
67
|
-
Highlight:
|
|
63
|
+
Highlight: import_en_US8.default,
|
|
68
64
|
FullscreenBox: import_en_US7.default,
|
|
69
65
|
BatchOperationBar: import_en_US3.default,
|
|
70
|
-
DateRanger:
|
|
66
|
+
DateRanger: import_en_US13.default
|
|
71
67
|
};
|
|
@@ -0,0 +1,67 @@
|
|
|
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/locale/ja-JP.ts
|
|
30
|
+
var ja_JP_exports = {};
|
|
31
|
+
__export(ja_JP_exports, {
|
|
32
|
+
default: () => ja_JP_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(ja_JP_exports);
|
|
35
|
+
var import_ja_JP = __toESM(require("@oceanbase/design/es/locale/ja-JP"));
|
|
36
|
+
var import_ja_JP2 = __toESM(require("../BasicLayout/locale/ja-JP"));
|
|
37
|
+
var import_ja_JP3 = __toESM(require("../BatchOperationBar/locale/ja-JP"));
|
|
38
|
+
var import_ja_JP4 = __toESM(require("../Boundary/locale/ja-JP"));
|
|
39
|
+
var import_ja_JP5 = __toESM(require("../Dialog/locale/ja-JP"));
|
|
40
|
+
var import_ja_JP6 = __toESM(require("../DocDialog/locale/ja-JP"));
|
|
41
|
+
var import_ja_JP7 = __toESM(require("../FullscreenBox/locale/ja-JP"));
|
|
42
|
+
var import_ja_JP8 = __toESM(require("../Highlight/locale/ja-JP"));
|
|
43
|
+
var import_ja_JP9 = __toESM(require("../Login/locale/ja-JP"));
|
|
44
|
+
var import_ja_JP10 = __toESM(require("../PageContainer/locale/ja-JP"));
|
|
45
|
+
var import_ja_JP11 = __toESM(require("../Password/locale/ja-JP"));
|
|
46
|
+
var import_ja_JP12 = __toESM(require("../Ranger/locale/ja-JP"));
|
|
47
|
+
var import_ja_JP13 = __toESM(require("../DateRanger/locale/ja-JP"));
|
|
48
|
+
var import_ja_JP14 = __toESM(require("../SideTip/locale/ja-JP"));
|
|
49
|
+
var import_ja_JP15 = __toESM(require("../Welcome/locale/ja-JP"));
|
|
50
|
+
var ja_JP_default = {
|
|
51
|
+
...import_ja_JP.default,
|
|
52
|
+
// 业务组件
|
|
53
|
+
BasicLayout: import_ja_JP2.default,
|
|
54
|
+
PageContainer: import_ja_JP10.default,
|
|
55
|
+
Login: import_ja_JP9.default,
|
|
56
|
+
Welcome: import_ja_JP15.default,
|
|
57
|
+
Ranger: import_ja_JP12.default,
|
|
58
|
+
Password: import_ja_JP11.default,
|
|
59
|
+
Boundary: import_ja_JP4.default,
|
|
60
|
+
Dialog: import_ja_JP5.default,
|
|
61
|
+
SideTip: import_ja_JP14.default,
|
|
62
|
+
DocDialog: import_ja_JP6.default,
|
|
63
|
+
Highlight: import_ja_JP8.default,
|
|
64
|
+
FullscreenBox: import_ja_JP7.default,
|
|
65
|
+
BatchOperationBar: import_ja_JP3.default,
|
|
66
|
+
DateRanger: import_ja_JP13.default
|
|
67
|
+
};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -38,33 +38,29 @@ var import_zh_CN3 = __toESM(require("../BatchOperationBar/locale/zh-CN"));
|
|
|
38
38
|
var import_zh_CN4 = __toESM(require("../Dialog/locale/zh-CN"));
|
|
39
39
|
var import_zh_CN5 = __toESM(require("../DocDialog/locale/zh-CN"));
|
|
40
40
|
var import_zh_CN6 = __toESM(require("../FullscreenBox/locale/zh-CN"));
|
|
41
|
-
var import_zh_CN7 = __toESM(require("../
|
|
42
|
-
var import_zh_CN8 = __toESM(require("../
|
|
43
|
-
var import_zh_CN9 = __toESM(require("../
|
|
44
|
-
var import_zh_CN10 = __toESM(require("../
|
|
45
|
-
var import_zh_CN11 = __toESM(require("../
|
|
46
|
-
var import_zh_CN12 = __toESM(require("../
|
|
47
|
-
var import_zh_CN13 = __toESM(require("../
|
|
48
|
-
var import_zh_CN14 = __toESM(require("../
|
|
49
|
-
var import_zh_CN15 = __toESM(require("../TaskGraph/locale/zh-CN"));
|
|
50
|
-
var import_zh_CN16 = __toESM(require("../Welcome/locale/zh-CN"));
|
|
41
|
+
var import_zh_CN7 = __toESM(require("../Highlight/locale/zh-CN"));
|
|
42
|
+
var import_zh_CN8 = __toESM(require("../Login/locale/zh-CN"));
|
|
43
|
+
var import_zh_CN9 = __toESM(require("../PageContainer/locale/zh-CN"));
|
|
44
|
+
var import_zh_CN10 = __toESM(require("../Password/locale/zh-CN"));
|
|
45
|
+
var import_zh_CN11 = __toESM(require("../Ranger/locale/zh-CN"));
|
|
46
|
+
var import_zh_CN12 = __toESM(require("../DateRanger/locale/zh-CN"));
|
|
47
|
+
var import_zh_CN13 = __toESM(require("../SideTip/locale/zh-CN"));
|
|
48
|
+
var import_zh_CN14 = __toESM(require("../Welcome/locale/zh-CN"));
|
|
51
49
|
var zh_CN_default = {
|
|
52
50
|
...import_zh_CN.default,
|
|
53
51
|
// 业务组件
|
|
54
52
|
BasicLayout: import_zh_CN2.default,
|
|
55
|
-
PageContainer:
|
|
56
|
-
Login:
|
|
57
|
-
Welcome:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
Password: import_zh_CN11.default,
|
|
62
|
-
Boundary: import_zh_CN11.default,
|
|
53
|
+
PageContainer: import_zh_CN9.default,
|
|
54
|
+
Login: import_zh_CN8.default,
|
|
55
|
+
Welcome: import_zh_CN14.default,
|
|
56
|
+
Ranger: import_zh_CN11.default,
|
|
57
|
+
Password: import_zh_CN10.default,
|
|
58
|
+
Boundary: import_zh_CN10.default,
|
|
63
59
|
Dialog: import_zh_CN4.default,
|
|
64
|
-
SideTip:
|
|
60
|
+
SideTip: import_zh_CN13.default,
|
|
65
61
|
DocDialog: import_zh_CN5.default,
|
|
66
|
-
Highlight:
|
|
62
|
+
Highlight: import_zh_CN7.default,
|
|
67
63
|
FullscreenBox: import_zh_CN6.default,
|
|
68
64
|
BatchOperationBar: import_zh_CN3.default,
|
|
69
|
-
DateRanger:
|
|
65
|
+
DateRanger: import_zh_CN12.default
|
|
70
66
|
};
|