@oceanbase/ui 0.2.35 → 0.2.36
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.js +1 -1
- package/es/FooterToolbar/style/index.d.ts +3 -1
- package/es/FooterToolbar/style/index.js +30 -13
- package/es/Highlight/index.d.ts +1 -1
- package/es/Highlight/index.js +1 -4
- package/es/PageContainer/style/index.js +10 -21
- package/es/Password/index.js +1 -4
- package/es/locale/en-US.js +2 -0
- package/es/locale/zh-TW.js +2 -0
- package/lib/FooterToolbar/style/index.d.ts +3 -1
- package/lib/FooterToolbar/style/index.js +36 -13
- package/lib/Highlight/index.d.ts +1 -1
- package/lib/Highlight/index.js +1 -1
- package/lib/PageContainer/style/index.js +2 -15
- package/lib/Password/index.js +1 -3
- package/lib/locale/en-US.js +16 -14
- package/lib/locale/zh-TW.js +15 -13
- package/package.json +3 -3
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import type { CSSObject } from '@ant-design/cssinjs';
|
|
2
3
|
import type { FooterToolBarToken } from '@ant-design/pro-layout/es/components/FooterToolbar/style';
|
|
3
|
-
import type { GenerateStyle } from '@oceanbase/design/es/theme';
|
|
4
|
+
import type { FullToken, GenerateStyle } from '@oceanbase/design/es/theme';
|
|
5
|
+
export declare const genOperationStyle: (token: FullToken<any>) => CSSObject;
|
|
4
6
|
export declare const genFooterToolbarStyle: GenerateStyle<FooterToolBarToken>;
|
|
5
7
|
declare const _default: (prefixCls: string) => {
|
|
6
8
|
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
@@ -1,31 +1,48 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
4
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
5
7
|
import { genComponentStyleHook } from "../../_util/genComponentStyleHook";
|
|
6
|
-
export var
|
|
7
|
-
var
|
|
8
|
+
export var genOperationStyle = function genOperationStyle(token) {
|
|
9
|
+
var _ref;
|
|
8
10
|
var antCls = token.antCls,
|
|
9
|
-
|
|
11
|
+
fontSize = token.fontSize,
|
|
12
|
+
controlHeightLG = token.controlHeightLG;
|
|
13
|
+
var height = controlHeightLG;
|
|
14
|
+
var lineHeight = "".concat(controlHeightLG, "px");
|
|
15
|
+
return _ref = {}, _defineProperty(_ref, "".concat(antCls, "-btn"), {
|
|
16
|
+
minWidth: controlHeightLG,
|
|
17
|
+
height: height,
|
|
18
|
+
fontSize: fontSize
|
|
19
|
+
}), _defineProperty(_ref, "".concat(antCls, "-radio-button-wrapper"), {
|
|
20
|
+
height: height,
|
|
21
|
+
lineHeight: lineHeight,
|
|
22
|
+
fontSize: fontSize
|
|
23
|
+
}), _defineProperty(_ref, "".concat(antCls, "-input-wrapper"), {
|
|
24
|
+
lineHeight: lineHeight
|
|
25
|
+
}), _defineProperty(_ref, "".concat(antCls, "-input"), {
|
|
26
|
+
height: height,
|
|
27
|
+
fontSize: fontSize
|
|
28
|
+
}), _defineProperty(_ref, "".concat(antCls, "-input-search-button"), {
|
|
29
|
+
height: height,
|
|
30
|
+
lineHeight: lineHeight
|
|
31
|
+
}), _ref;
|
|
32
|
+
};
|
|
33
|
+
export var genFooterToolbarStyle = function genFooterToolbarStyle(token) {
|
|
34
|
+
var componentCls = token.componentCls,
|
|
10
35
|
colorBgBase = token.colorBgBase,
|
|
11
36
|
borderRadius = token.borderRadius,
|
|
12
37
|
boxShadowSecondary = token.boxShadowSecondary,
|
|
13
38
|
controlHeightLG = token.controlHeightLG;
|
|
14
|
-
|
|
15
|
-
var lineHeight = "".concat(controlHeightLG, "px");
|
|
16
|
-
return _defineProperty({}, "".concat(componentCls), (_$concat = {
|
|
39
|
+
return _defineProperty({}, "".concat(componentCls), _objectSpread({
|
|
17
40
|
width: '100%',
|
|
18
41
|
backgroundColor: colorBgBase,
|
|
19
42
|
borderRadius: borderRadius,
|
|
20
43
|
boxShadow: boxShadowSecondary,
|
|
21
44
|
borderBlockStart: 'none'
|
|
22
|
-
},
|
|
23
|
-
minWidth: 68,
|
|
24
|
-
height: height
|
|
25
|
-
}), _defineProperty(_$concat, "".concat(antCls, "-radio-button-wrapper"), {
|
|
26
|
-
height: height,
|
|
27
|
-
lineHeight: lineHeight
|
|
28
|
-
}), _$concat));
|
|
45
|
+
}, genOperationStyle(token)));
|
|
29
46
|
};
|
|
30
47
|
export default (function (prefixCls) {
|
|
31
48
|
var useStyle = genComponentStyleHook('FooterToolbar', function (token) {
|
package/es/Highlight/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare const THEME_DARK = "dark";
|
|
|
29
29
|
export declare const THEME_LIGHT = "light";
|
|
30
30
|
declare const ThemeTypes: ["dark", "light"];
|
|
31
31
|
export type ThemeType = (typeof ThemeTypes)[number];
|
|
32
|
-
declare const supportedLanguages: ("ruby" | "css" | "
|
|
32
|
+
declare const supportedLanguages: ("ruby" | "css" | "javascript" | "typescript" | "groovy" | "java" | "python" | "bash" | "json" | "cpp" | "http" | "markdown" | "nginx" | "sql" | "xml" | "dockerfile" | "go" | "yaml" | "solidity" | "tsx" | "jsx")[];
|
|
33
33
|
export type LanguageType = (typeof supportedLanguages)[number] | 'html';
|
|
34
34
|
export interface HighlightProps extends LocaleWrapperProps {
|
|
35
35
|
/**
|
package/es/Highlight/index.js
CHANGED
|
@@ -262,10 +262,7 @@ var HighlightWrapper = function HighlightWrapper(props) {
|
|
|
262
262
|
return /*#__PURE__*/_jsx(Highlight, _objectSpread({}, props));
|
|
263
263
|
};
|
|
264
264
|
HighlightWrapper.Diff = DiffView;
|
|
265
|
-
|
|
266
|
-
// export default HighlightWrapper;
|
|
267
|
-
|
|
268
265
|
export default LocaleWrapper({
|
|
269
|
-
componentName: '
|
|
266
|
+
componentName: 'Highlight',
|
|
270
267
|
defaultLocale: zhCN
|
|
271
268
|
})(HighlightWrapper);
|
|
@@ -5,28 +5,25 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
5
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
7
|
import { genComponentStyleHook } from "../../_util/genComponentStyleHook";
|
|
8
|
-
import { genFooterToolbarStyle } from "../../FooterToolbar/style";
|
|
8
|
+
import { genOperationStyle, genFooterToolbarStyle } from "../../FooterToolbar/style";
|
|
9
9
|
export var genPageContainerStyle = function genPageContainerStyle(token) {
|
|
10
|
-
var _$concat
|
|
10
|
+
var _$concat$concat, _$concat, _objectSpread2;
|
|
11
11
|
var antCls = token.antCls,
|
|
12
12
|
proComponentsCls = token.proComponentsCls,
|
|
13
13
|
componentCls = token.componentCls,
|
|
14
14
|
colorBgLayout = token.colorBgLayout,
|
|
15
|
-
colorBgBase = token.colorBgBase,
|
|
16
|
-
borderRadius = token.borderRadius,
|
|
17
|
-
boxShadowSecondary = token.boxShadowSecondary,
|
|
18
15
|
fontSizeHeading3 = token.fontSizeHeading3,
|
|
19
16
|
controlHeightLG = token.controlHeightLG,
|
|
20
17
|
padding = token.padding,
|
|
21
18
|
paddingLG = token.paddingLG;
|
|
22
19
|
var height = controlHeightLG;
|
|
23
20
|
var lineHeight = "".concat(controlHeightLG, "px");
|
|
24
|
-
return _objectSpread((_objectSpread2 = {}, _defineProperty(_objectSpread2, "".concat(componentCls), (_$
|
|
21
|
+
return _objectSpread((_objectSpread2 = {}, _defineProperty(_objectSpread2, "".concat(componentCls), (_$concat = {
|
|
25
22
|
minHeight: '100vh',
|
|
26
23
|
backgroundColor: colorBgLayout
|
|
27
|
-
}, _defineProperty(_$
|
|
24
|
+
}, _defineProperty(_$concat, "".concat(proComponentsCls, "-grid-content"), {
|
|
28
25
|
minHeight: 'auto'
|
|
29
|
-
}), _defineProperty(_$
|
|
26
|
+
}), _defineProperty(_$concat, "".concat(componentCls, "-warp-page-header,").concat(componentCls, "-wrap-page-header"), (_$concat$concat = {
|
|
30
27
|
// 减小内容区左右两侧间距
|
|
31
28
|
paddingInlineStart: "".concat(paddingLG, "px !important"),
|
|
32
29
|
paddingInlineEnd: "".concat(paddingLG, "px !important"),
|
|
@@ -39,27 +36,19 @@ export var genPageContainerStyle = function genPageContainerStyle(token) {
|
|
|
39
36
|
fontSize: fontSizeHeading3
|
|
40
37
|
}), _defineProperty(_$concat$concat, "".concat(antCls, "-page-header-heading-reload"), {
|
|
41
38
|
cursor: 'pointer'
|
|
42
|
-
}), _defineProperty(_$concat$concat, "".concat(antCls, "-page-header-heading-extra"), (
|
|
39
|
+
}), _defineProperty(_$concat$concat, "".concat(antCls, "-page-header-heading-extra"), _objectSpread({
|
|
43
40
|
height: height,
|
|
44
41
|
lineHeight: lineHeight,
|
|
45
42
|
marginBlock: 0
|
|
46
|
-
}, _defineProperty(_$concat
|
|
47
|
-
minWidth: controlHeightLG,
|
|
48
|
-
height: height
|
|
49
|
-
}), _defineProperty(_$concat, "".concat(antCls, "-radio-button-wrapper"), {
|
|
50
|
-
height: height,
|
|
51
|
-
lineHeight: lineHeight
|
|
52
|
-
}), _defineProperty(_$concat, "".concat(antCls, "-input-wrapper"), {
|
|
53
|
-
lineHeight: lineHeight
|
|
54
|
-
}), _$concat)), _defineProperty(_$concat$concat, "".concat(antCls, "-page-header-footer"), {
|
|
43
|
+
}, genOperationStyle(token))), _defineProperty(_$concat$concat, "".concat(antCls, "-page-header-footer"), {
|
|
55
44
|
marginBlockStart: 0
|
|
56
|
-
}), _$concat$concat)), _defineProperty(_$
|
|
45
|
+
}), _$concat$concat)), _defineProperty(_$concat, "".concat(componentCls, "-children-container"), {
|
|
57
46
|
paddingInline: paddingLG,
|
|
58
47
|
paddingBlockStart: 0,
|
|
59
48
|
paddingBlockEnd: paddingLG
|
|
60
|
-
}), _defineProperty(_$
|
|
49
|
+
}), _defineProperty(_$concat, "".concat(antCls, "-page-header:not(").concat(antCls, "-page-header-has-breadcrumb)"), _defineProperty({}, "".concat(antCls, "-page-header-heading"), {
|
|
61
50
|
paddingBlockStart: 0
|
|
62
|
-
})), _$
|
|
51
|
+
})), _$concat)), _defineProperty(_objectSpread2, "".concat(componentCls, "-no-page-header"), _defineProperty({}, "".concat(componentCls, "-children-container"), {
|
|
63
52
|
paddingBlockStart: paddingLG
|
|
64
53
|
})), _defineProperty(_objectSpread2, "".concat(componentCls, "-with-footer "), {
|
|
65
54
|
paddingBottom: 64
|
package/es/Password/index.js
CHANGED
|
@@ -81,10 +81,7 @@ var Password = function Password(_ref) {
|
|
|
81
81
|
setIsValidating(false);
|
|
82
82
|
setFieldError(newFieldError);
|
|
83
83
|
onValidate === null || onValidate === void 0 || onValidate(newFieldError.length === 0);
|
|
84
|
-
|
|
85
|
-
setTimeout(function () {
|
|
86
|
-
onChange === null || onChange === void 0 || onChange(newValue);
|
|
87
|
-
}, 0);
|
|
84
|
+
onChange === null || onChange === void 0 || onChange(newValue);
|
|
88
85
|
};
|
|
89
86
|
|
|
90
87
|
// 根据正则表达式获取符合要求的随机密码
|
package/es/locale/en-US.js
CHANGED
|
@@ -12,6 +12,7 @@ import Dialog from "../Dialog/locale/en-US";
|
|
|
12
12
|
import DocDialog from "../DocDialog/locale/en-US";
|
|
13
13
|
import FullscreenBox from "../FullscreenBox/locale/en-US";
|
|
14
14
|
import GraphToolbar from "../GraphToolbar/locale/en-US";
|
|
15
|
+
import Highlight from "../Highlight/locale/en-US";
|
|
15
16
|
import Login from "../Login/locale/en-US";
|
|
16
17
|
import PageContainer from "../PageContainer/locale/en-US";
|
|
17
18
|
import Password from "../Password/locale/en-US";
|
|
@@ -33,6 +34,7 @@ export default _objectSpread(_objectSpread({}, enUS), {}, {
|
|
|
33
34
|
Dialog: Dialog,
|
|
34
35
|
SideTip: SideTip,
|
|
35
36
|
DocDialog: DocDialog,
|
|
37
|
+
Highlight: Highlight,
|
|
36
38
|
FullscreenBox: FullscreenBox,
|
|
37
39
|
BatchOperationBar: BatchOperationBar
|
|
38
40
|
});
|
package/es/locale/zh-TW.js
CHANGED
|
@@ -10,6 +10,7 @@ import BatchOperationBar from "../BatchOperationBar/locale/zh-TW";
|
|
|
10
10
|
import Dialog from "../Dialog/locale/zh-TW";
|
|
11
11
|
import DocDialog from "../DocDialog/locale/zh-TW";
|
|
12
12
|
import GraphToolbar from "../GraphToolbar/locale/zh-TW";
|
|
13
|
+
import Highlight from "../Highlight/locale/zh-TW";
|
|
13
14
|
import Login from "../Login/locale/zh-TW";
|
|
14
15
|
import PageContainer from "../PageContainer/locale/zh-TW";
|
|
15
16
|
import { default as Boundary, default as Password } from "../Password/locale/zh-TW";
|
|
@@ -28,6 +29,7 @@ export default _objectSpread(_objectSpread({}, zhTW), {}, {
|
|
|
28
29
|
Password: Password,
|
|
29
30
|
Boundary: Boundary,
|
|
30
31
|
Dialog: Dialog,
|
|
32
|
+
Highlight: Highlight,
|
|
31
33
|
DocDialog: DocDialog,
|
|
32
34
|
BatchOperationBar: BatchOperationBar
|
|
33
35
|
});
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import type { CSSObject } from '@ant-design/cssinjs';
|
|
2
3
|
import type { FooterToolBarToken } from '@ant-design/pro-layout/es/components/FooterToolbar/style';
|
|
3
|
-
import type { GenerateStyle } from '@oceanbase/design/es/theme';
|
|
4
|
+
import type { FullToken, GenerateStyle } from '@oceanbase/design/es/theme';
|
|
5
|
+
export declare const genOperationStyle: (token: FullToken<any>) => CSSObject;
|
|
4
6
|
export declare const genFooterToolbarStyle: GenerateStyle<FooterToolBarToken>;
|
|
5
7
|
declare const _default: (prefixCls: string) => {
|
|
6
8
|
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
@@ -20,14 +20,44 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
var style_exports = {};
|
|
21
21
|
__export(style_exports, {
|
|
22
22
|
default: () => style_default,
|
|
23
|
-
genFooterToolbarStyle: () => genFooterToolbarStyle
|
|
23
|
+
genFooterToolbarStyle: () => genFooterToolbarStyle,
|
|
24
|
+
genOperationStyle: () => genOperationStyle
|
|
24
25
|
});
|
|
25
26
|
module.exports = __toCommonJS(style_exports);
|
|
26
27
|
var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
|
|
27
|
-
var
|
|
28
|
-
const { antCls,
|
|
28
|
+
var genOperationStyle = (token) => {
|
|
29
|
+
const { antCls, fontSize, controlHeightLG } = token;
|
|
29
30
|
const height = controlHeightLG;
|
|
30
31
|
const lineHeight = `${controlHeightLG}px`;
|
|
32
|
+
return {
|
|
33
|
+
// Button
|
|
34
|
+
[`${antCls}-btn`]: {
|
|
35
|
+
minWidth: controlHeightLG,
|
|
36
|
+
height,
|
|
37
|
+
fontSize
|
|
38
|
+
},
|
|
39
|
+
// Radio.Button
|
|
40
|
+
[`${antCls}-radio-button-wrapper`]: {
|
|
41
|
+
height,
|
|
42
|
+
lineHeight,
|
|
43
|
+
fontSize
|
|
44
|
+
},
|
|
45
|
+
// Input
|
|
46
|
+
[`${antCls}-input-wrapper`]: {
|
|
47
|
+
lineHeight
|
|
48
|
+
},
|
|
49
|
+
[`${antCls}-input`]: {
|
|
50
|
+
height,
|
|
51
|
+
fontSize
|
|
52
|
+
},
|
|
53
|
+
[`${antCls}-input-search-button`]: {
|
|
54
|
+
height,
|
|
55
|
+
lineHeight
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
var genFooterToolbarStyle = (token) => {
|
|
60
|
+
const { componentCls, colorBgBase, borderRadius, boxShadowSecondary, controlHeightLG } = token;
|
|
31
61
|
return {
|
|
32
62
|
[`${componentCls}`]: {
|
|
33
63
|
width: "100%",
|
|
@@ -35,15 +65,7 @@ var genFooterToolbarStyle = (token) => {
|
|
|
35
65
|
borderRadius,
|
|
36
66
|
boxShadow: boxShadowSecondary,
|
|
37
67
|
borderBlockStart: "none",
|
|
38
|
-
|
|
39
|
-
[`${antCls}-btn:not(${antCls}-input-search-button)`]: {
|
|
40
|
-
minWidth: 68,
|
|
41
|
-
height
|
|
42
|
-
},
|
|
43
|
-
[`${antCls}-radio-button-wrapper`]: {
|
|
44
|
-
height,
|
|
45
|
-
lineHeight
|
|
46
|
-
}
|
|
68
|
+
...genOperationStyle(token)
|
|
47
69
|
}
|
|
48
70
|
};
|
|
49
71
|
};
|
|
@@ -55,5 +77,6 @@ var style_default = (prefixCls) => {
|
|
|
55
77
|
};
|
|
56
78
|
// Annotate the CommonJS export names for ESM import in node:
|
|
57
79
|
0 && (module.exports = {
|
|
58
|
-
genFooterToolbarStyle
|
|
80
|
+
genFooterToolbarStyle,
|
|
81
|
+
genOperationStyle
|
|
59
82
|
});
|
package/lib/Highlight/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare const THEME_DARK = "dark";
|
|
|
29
29
|
export declare const THEME_LIGHT = "light";
|
|
30
30
|
declare const ThemeTypes: ["dark", "light"];
|
|
31
31
|
export type ThemeType = (typeof ThemeTypes)[number];
|
|
32
|
-
declare const supportedLanguages: ("ruby" | "css" | "
|
|
32
|
+
declare const supportedLanguages: ("ruby" | "css" | "javascript" | "typescript" | "groovy" | "java" | "python" | "bash" | "json" | "cpp" | "http" | "markdown" | "nginx" | "sql" | "xml" | "dockerfile" | "go" | "yaml" | "solidity" | "tsx" | "jsx")[];
|
|
33
33
|
export type LanguageType = (typeof supportedLanguages)[number] | 'html';
|
|
34
34
|
export interface HighlightProps extends LocaleWrapperProps {
|
|
35
35
|
/**
|
package/lib/Highlight/index.js
CHANGED
|
@@ -252,7 +252,7 @@ var HighlightWrapper = (props) => {
|
|
|
252
252
|
};
|
|
253
253
|
HighlightWrapper.Diff = import_DiffView.default;
|
|
254
254
|
var Highlight_default = (0, import_LocaleWrapper.default)({
|
|
255
|
-
componentName: "
|
|
255
|
+
componentName: "Highlight",
|
|
256
256
|
defaultLocale: import_zh_CN.default
|
|
257
257
|
})(HighlightWrapper);
|
|
258
258
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -31,9 +31,6 @@ var genPageContainerStyle = (token) => {
|
|
|
31
31
|
proComponentsCls,
|
|
32
32
|
componentCls,
|
|
33
33
|
colorBgLayout,
|
|
34
|
-
colorBgBase,
|
|
35
|
-
borderRadius,
|
|
36
|
-
boxShadowSecondary,
|
|
37
34
|
fontSizeHeading3,
|
|
38
35
|
controlHeightLG,
|
|
39
36
|
padding,
|
|
@@ -68,18 +65,8 @@ var genPageContainerStyle = (token) => {
|
|
|
68
65
|
height,
|
|
69
66
|
lineHeight,
|
|
70
67
|
marginBlock: 0,
|
|
71
|
-
//
|
|
72
|
-
|
|
73
|
-
minWidth: controlHeightLG,
|
|
74
|
-
height
|
|
75
|
-
},
|
|
76
|
-
[`${antCls}-radio-button-wrapper`]: {
|
|
77
|
-
height,
|
|
78
|
-
lineHeight
|
|
79
|
-
},
|
|
80
|
-
[`${antCls}-input-wrapper`]: {
|
|
81
|
-
lineHeight
|
|
82
|
-
}
|
|
68
|
+
// extra operation style
|
|
69
|
+
...(0, import_style.genOperationStyle)(token)
|
|
83
70
|
},
|
|
84
71
|
[`${antCls}-page-header-footer`]: {
|
|
85
72
|
marginBlockStart: 0
|
package/lib/Password/index.js
CHANGED
|
@@ -84,9 +84,7 @@ var Password = ({
|
|
|
84
84
|
setIsValidating(false);
|
|
85
85
|
setFieldError(newFieldError);
|
|
86
86
|
onValidate == null ? void 0 : onValidate(newFieldError.length === 0);
|
|
87
|
-
|
|
88
|
-
onChange == null ? void 0 : onChange(newValue);
|
|
89
|
-
}, 0);
|
|
87
|
+
onChange == null ? void 0 : onChange(newValue);
|
|
90
88
|
};
|
|
91
89
|
const getRandomPassword = () => {
|
|
92
90
|
const newValue = new import_randexp.default(generatePasswordRegex).gen();
|
package/lib/locale/en-US.js
CHANGED
|
@@ -40,28 +40,30 @@ 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
42
|
var import_en_US8 = __toESM(require("../GraphToolbar/locale/en-US"));
|
|
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("../
|
|
43
|
+
var import_en_US9 = __toESM(require("../Highlight/locale/en-US"));
|
|
44
|
+
var import_en_US10 = __toESM(require("../Login/locale/en-US"));
|
|
45
|
+
var import_en_US11 = __toESM(require("../PageContainer/locale/en-US"));
|
|
46
|
+
var import_en_US12 = __toESM(require("../Password/locale/en-US"));
|
|
47
|
+
var import_en_US13 = __toESM(require("../Ranger/locale/en-US"));
|
|
48
|
+
var import_en_US14 = __toESM(require("../SideTip/locale/en-US"));
|
|
49
|
+
var import_en_US15 = __toESM(require("../TaskGraph/locale/en-US"));
|
|
50
|
+
var import_en_US16 = __toESM(require("../Welcome/locale/en-US"));
|
|
50
51
|
var en_US_default = {
|
|
51
52
|
...import_en_US.default,
|
|
52
53
|
// 业务组件
|
|
53
54
|
BasicLayout: import_en_US2.default,
|
|
54
|
-
PageContainer:
|
|
55
|
-
Login:
|
|
56
|
-
Welcome:
|
|
55
|
+
PageContainer: import_en_US11.default,
|
|
56
|
+
Login: import_en_US10.default,
|
|
57
|
+
Welcome: import_en_US16.default,
|
|
57
58
|
GraphToolbar: import_en_US8.default,
|
|
58
|
-
TaskGraph:
|
|
59
|
-
Ranger:
|
|
60
|
-
Password:
|
|
59
|
+
TaskGraph: import_en_US15.default,
|
|
60
|
+
Ranger: import_en_US13.default,
|
|
61
|
+
Password: import_en_US12.default,
|
|
61
62
|
Boundary: import_en_US4.default,
|
|
62
63
|
Dialog: import_en_US5.default,
|
|
63
|
-
SideTip:
|
|
64
|
+
SideTip: import_en_US14.default,
|
|
64
65
|
DocDialog: import_en_US6.default,
|
|
66
|
+
Highlight: import_en_US9.default,
|
|
65
67
|
FullscreenBox: import_en_US7.default,
|
|
66
68
|
BatchOperationBar: import_en_US3.default
|
|
67
69
|
};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -38,25 +38,27 @@ var import_zh_TW3 = __toESM(require("../BatchOperationBar/locale/zh-TW"));
|
|
|
38
38
|
var import_zh_TW4 = __toESM(require("../Dialog/locale/zh-TW"));
|
|
39
39
|
var import_zh_TW5 = __toESM(require("../DocDialog/locale/zh-TW"));
|
|
40
40
|
var import_zh_TW6 = __toESM(require("../GraphToolbar/locale/zh-TW"));
|
|
41
|
-
var import_zh_TW7 = __toESM(require("../
|
|
42
|
-
var import_zh_TW8 = __toESM(require("../
|
|
43
|
-
var import_zh_TW9 = __toESM(require("../
|
|
44
|
-
var import_zh_TW10 = __toESM(require("../
|
|
45
|
-
var import_zh_TW11 = __toESM(require("../
|
|
46
|
-
var import_zh_TW12 = __toESM(require("../
|
|
41
|
+
var import_zh_TW7 = __toESM(require("../Highlight/locale/zh-TW"));
|
|
42
|
+
var import_zh_TW8 = __toESM(require("../Login/locale/zh-TW"));
|
|
43
|
+
var import_zh_TW9 = __toESM(require("../PageContainer/locale/zh-TW"));
|
|
44
|
+
var import_zh_TW10 = __toESM(require("../Password/locale/zh-TW"));
|
|
45
|
+
var import_zh_TW11 = __toESM(require("../Ranger/locale/zh-TW"));
|
|
46
|
+
var import_zh_TW12 = __toESM(require("../TaskGraph/locale/zh-TW"));
|
|
47
|
+
var import_zh_TW13 = __toESM(require("../Welcome/locale/zh-TW"));
|
|
47
48
|
var zh_TW_default = {
|
|
48
49
|
...import_zh_TW.default,
|
|
49
50
|
// 业务组件
|
|
50
51
|
BasicLayout: import_zh_TW2.default,
|
|
51
|
-
PageContainer:
|
|
52
|
-
Login:
|
|
53
|
-
Welcome:
|
|
52
|
+
PageContainer: import_zh_TW9.default,
|
|
53
|
+
Login: import_zh_TW8.default,
|
|
54
|
+
Welcome: import_zh_TW13.default,
|
|
54
55
|
GraphToolbar: import_zh_TW6.default,
|
|
55
|
-
TaskGraph:
|
|
56
|
-
Ranger:
|
|
57
|
-
Password:
|
|
58
|
-
Boundary:
|
|
56
|
+
TaskGraph: import_zh_TW12.default,
|
|
57
|
+
Ranger: import_zh_TW11.default,
|
|
58
|
+
Password: import_zh_TW10.default,
|
|
59
|
+
Boundary: import_zh_TW10.default,
|
|
59
60
|
Dialog: import_zh_TW4.default,
|
|
61
|
+
Highlight: import_zh_TW7.default,
|
|
60
62
|
DocDialog: import_zh_TW5.default,
|
|
61
63
|
BatchOperationBar: import_zh_TW3.default
|
|
62
64
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oceanbase/ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.36",
|
|
4
4
|
"description": "The UI library based on OceanBase Design",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oceanbase",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@ant-design/cssinjs": "^1.17.2",
|
|
38
38
|
"@ant-design/pro-components": "^2.6.43",
|
|
39
39
|
"@ant-design/pro-layout": "^7.17.16",
|
|
40
|
-
"@oceanbase/design": "^0.2.
|
|
40
|
+
"@oceanbase/design": "^0.2.35",
|
|
41
41
|
"@oceanbase/icons": "^0.2.10",
|
|
42
42
|
"@oceanbase/util": "^0.2.13",
|
|
43
43
|
"ahooks": "^2.10.14",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"react": ">=16.9.0",
|
|
66
66
|
"react-dom": ">=16.9.0"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "fba4db2117ba5b298781da29aaeb987480681217"
|
|
69
69
|
}
|