@oceanbase/design 0.4.15 → 1.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/design.min.css +1 -1
- package/dist/design.min.js +1 -1
- package/es/_util/genStyle.d.ts +0 -2
- package/es/_util/genStyle.js +0 -77
- package/es/badge/style/index.js +0 -1
- package/es/button/style/index.js +1 -30
- package/es/card/style/index.js +4 -2
- package/es/config-provider/index.js +1 -5
- package/es/descriptions/hooks/useItems.js +3 -2
- package/es/descriptions/style/index.js +1 -3
- package/es/empty/style/index.js +2 -7
- package/es/form/FormItem.d.ts +2 -1
- package/es/form/FormItem.js +1 -0
- package/es/global.css +7 -7
- package/es/index.d.ts +0 -1
- package/es/index.js +1 -2
- package/es/result/style/index.js +2 -5
- package/es/table/index.d.ts +2 -2
- package/es/table/style/index.js +8 -31
- package/es/tabs/index.d.ts +8 -6
- package/es/tabs/index.js +10 -7
- package/es/tabs/style/index.js +2 -3
- package/es/theme/default.js +62 -39
- package/es/theme/style/aliyun.less +125 -125
- package/es/theme/style/compact.less +135 -135
- package/es/theme/style/dark.less +136 -136
- package/es/theme/style/default.less +135 -135
- package/es/typography/Link.d.ts +5 -1
- package/es/typography/Link.js +1 -0
- package/es/typography/Paragraph.d.ts +5 -1
- package/es/typography/Paragraph.js +1 -0
- package/es/typography/Text.d.ts +5 -1
- package/es/typography/Text.js +1 -0
- package/es/typography/Title.d.ts +5 -1
- package/es/typography/Title.js +1 -0
- package/es/typography/style/index.js +2 -6
- package/lib/_util/genStyle.d.ts +0 -2
- package/lib/_util/genStyle.js +2 -118
- package/lib/badge/style/index.js +0 -1
- package/lib/button/style/index.js +1 -37
- package/lib/card/style/index.js +9 -1
- package/lib/config-provider/index.js +1 -8
- package/lib/descriptions/hooks/useItems.js +3 -2
- package/lib/descriptions/style/index.js +0 -2
- package/lib/empty/style/index.js +0 -5
- package/lib/form/FormItem.d.ts +2 -1
- package/lib/form/FormItem.js +6 -0
- package/lib/global.css +7 -7
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -3
- package/lib/result/style/index.js +0 -4
- package/lib/table/index.d.ts +2 -2
- package/lib/table/style/index.js +1 -58
- package/lib/tabs/index.d.ts +8 -6
- package/lib/tabs/index.js +68 -62
- package/lib/tabs/style/index.js +6 -4
- package/lib/theme/default.js +62 -38
- package/lib/theme/style/aliyun.less +125 -125
- package/lib/theme/style/compact.less +135 -135
- package/lib/theme/style/dark.less +136 -136
- package/lib/theme/style/default.less +135 -135
- package/lib/typography/Link.d.ts +5 -1
- package/lib/typography/Link.js +1 -0
- package/lib/typography/Paragraph.d.ts +5 -1
- package/lib/typography/Paragraph.js +1 -0
- package/lib/typography/Text.d.ts +5 -1
- package/lib/typography/Text.js +1 -0
- package/lib/typography/Title.d.ts +5 -1
- package/lib/typography/Title.js +1 -0
- package/lib/typography/style/index.js +2 -9
- package/package.json +5 -6
package/lib/typography/Link.d.ts
CHANGED
|
@@ -3,5 +3,9 @@ import type { LinkProps as AntLinkProps } from 'antd/es/typography/Link';
|
|
|
3
3
|
export * from 'antd/es/typography/Link';
|
|
4
4
|
export interface LinkProps extends AntLinkProps {
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
type CompoundedComponent = React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLElement>> & {
|
|
7
|
+
/** @internal */
|
|
8
|
+
__ANT_TYPOGRAPHY: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const Link: CompoundedComponent;
|
|
7
11
|
export default Link;
|
package/lib/typography/Link.js
CHANGED
|
@@ -64,6 +64,7 @@ var Link = import_react.default.forwardRef(
|
|
|
64
64
|
if (process.env.NODE_ENV !== "production") {
|
|
65
65
|
Link.displayName = AntLink.displayName;
|
|
66
66
|
}
|
|
67
|
+
Link.__ANT_TYPOGRAPHY = true;
|
|
67
68
|
var Link_default = Link;
|
|
68
69
|
// Annotate the CommonJS export names for ESM import in node:
|
|
69
70
|
0 && (module.exports = {
|
|
@@ -3,5 +3,9 @@ import type { ParagraphProps as AntParagraphProps } from 'antd/es/typography/Par
|
|
|
3
3
|
export * from 'antd/es/typography/Paragraph';
|
|
4
4
|
export interface ParagraphProps extends AntParagraphProps {
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
type CompoundedComponent = React.ForwardRefExoticComponent<ParagraphProps & React.RefAttributes<HTMLElement>> & {
|
|
7
|
+
/** @internal */
|
|
8
|
+
__ANT_TYPOGRAPHY: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const Paragraph: CompoundedComponent;
|
|
7
11
|
export default Paragraph;
|
|
@@ -64,6 +64,7 @@ var Paragraph = import_react.default.forwardRef(
|
|
|
64
64
|
if (process.env.NODE_ENV !== "production") {
|
|
65
65
|
Paragraph.displayName = AntParagraph.displayName;
|
|
66
66
|
}
|
|
67
|
+
Paragraph.__ANT_TYPOGRAPHY = true;
|
|
67
68
|
var Paragraph_default = Paragraph;
|
|
68
69
|
// Annotate the CommonJS export names for ESM import in node:
|
|
69
70
|
0 && (module.exports = {
|
package/lib/typography/Text.d.ts
CHANGED
|
@@ -3,5 +3,9 @@ import type { TextProps as AntTextProps } from 'antd/es/typography/Text';
|
|
|
3
3
|
export * from 'antd/es/typography/Text';
|
|
4
4
|
export interface TextProps extends AntTextProps {
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
type CompoundedComponent = React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLSpanElement>> & {
|
|
7
|
+
/** @internal */
|
|
8
|
+
__ANT_TYPOGRAPHY: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const Text: CompoundedComponent;
|
|
7
11
|
export default Text;
|
package/lib/typography/Text.js
CHANGED
|
@@ -64,6 +64,7 @@ var Text = import_react.default.forwardRef(
|
|
|
64
64
|
if (process.env.NODE_ENV !== "production") {
|
|
65
65
|
Text.displayName = AntText.displayName;
|
|
66
66
|
}
|
|
67
|
+
Text.__ANT_TYPOGRAPHY = true;
|
|
67
68
|
var Text_default = Text;
|
|
68
69
|
// Annotate the CommonJS export names for ESM import in node:
|
|
69
70
|
0 && (module.exports = {
|
|
@@ -3,5 +3,9 @@ import type { TitleProps as AntTitleProps } from 'antd/es/typography/Title';
|
|
|
3
3
|
export * from 'antd/es/typography/Title';
|
|
4
4
|
export interface TitleProps extends AntTitleProps {
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
type CompoundedComponent = React.ForwardRefExoticComponent<TitleProps & React.RefAttributes<HTMLElement>> & {
|
|
7
|
+
/** @internal */
|
|
8
|
+
__ANT_TYPOGRAPHY: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const Title: CompoundedComponent;
|
|
7
11
|
export default Title;
|
package/lib/typography/Title.js
CHANGED
|
@@ -64,6 +64,7 @@ var Title = import_react.default.forwardRef(
|
|
|
64
64
|
if (process.env.NODE_ENV !== "production") {
|
|
65
65
|
Title.displayName = AntTitle.displayName;
|
|
66
66
|
}
|
|
67
|
+
Title.__ANT_TYPOGRAPHY = true;
|
|
67
68
|
var Title_default = Title;
|
|
68
69
|
// Annotate the CommonJS export names for ESM import in node:
|
|
69
70
|
0 && (module.exports = {
|
|
@@ -29,17 +29,10 @@ var genTypographyStyle = (token) => {
|
|
|
29
29
|
const marginOffset = (controlHeight - fontSize * lineHeight) / 2;
|
|
30
30
|
return {
|
|
31
31
|
// inherit color and lineHeight from parent instead of fixed colorText
|
|
32
|
-
[
|
|
33
|
-
lineHeight: "inherit",
|
|
34
|
-
color: "inherit",
|
|
35
|
-
fontSize: "inherit"
|
|
36
|
-
},
|
|
37
|
-
[`div${componentCls}`]: {
|
|
32
|
+
[`${componentCls}`]: {
|
|
38
33
|
lineHeight: "inherit",
|
|
39
34
|
color: "inherit",
|
|
40
|
-
fontSize: "inherit"
|
|
41
|
-
},
|
|
42
|
-
[`${componentCls}`]: {
|
|
35
|
+
fontSize: "inherit",
|
|
43
36
|
[`${componentCls}-edit`]: {
|
|
44
37
|
fontSize: token.fontSize
|
|
45
38
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oceanbase/design",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-alpha.0",
|
|
4
4
|
"description": "The Design System of OceanBase",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oceanbase",
|
|
@@ -32,8 +32,7 @@
|
|
|
32
32
|
],
|
|
33
33
|
"sideEffects": [
|
|
34
34
|
"**/*.less",
|
|
35
|
-
"**/*.css"
|
|
36
|
-
"es/index.js"
|
|
35
|
+
"**/*.css"
|
|
37
36
|
],
|
|
38
37
|
"scripts": {
|
|
39
38
|
"build": "father build && cp src/style/reset.css dist/"
|
|
@@ -46,7 +45,7 @@
|
|
|
46
45
|
"@oceanbase/icons": "^0.4.7",
|
|
47
46
|
"@oceanbase/util": "^0.4.4",
|
|
48
47
|
"ahooks": "^2.10.14",
|
|
49
|
-
"antd": "^5.27.
|
|
48
|
+
"antd": "^5.27.2",
|
|
50
49
|
"classnames": "^2.5.1",
|
|
51
50
|
"lodash": "^4.17.21",
|
|
52
51
|
"lottie-web": "^5.13.0",
|
|
@@ -59,12 +58,12 @@
|
|
|
59
58
|
"antd-token-previewer": "^2.0.8",
|
|
60
59
|
"rc-select": "^14.16.8",
|
|
61
60
|
"rc-slider": "^11.1.8",
|
|
62
|
-
"rc-table": "^7.
|
|
61
|
+
"rc-table": "^7.52.5",
|
|
63
62
|
"rc-tree-select": "^5.27.0"
|
|
64
63
|
},
|
|
65
64
|
"peerDependencies": {
|
|
66
65
|
"react": ">=16.9.0",
|
|
67
66
|
"react-dom": ">=16.9.0"
|
|
68
67
|
},
|
|
69
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "1aff1c2acc2b9494ff83a86ed597b9f46a08f59c"
|
|
70
69
|
}
|