@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.
Files changed (71) hide show
  1. package/dist/design.min.css +1 -1
  2. package/dist/design.min.js +1 -1
  3. package/es/_util/genStyle.d.ts +0 -2
  4. package/es/_util/genStyle.js +0 -77
  5. package/es/badge/style/index.js +0 -1
  6. package/es/button/style/index.js +1 -30
  7. package/es/card/style/index.js +4 -2
  8. package/es/config-provider/index.js +1 -5
  9. package/es/descriptions/hooks/useItems.js +3 -2
  10. package/es/descriptions/style/index.js +1 -3
  11. package/es/empty/style/index.js +2 -7
  12. package/es/form/FormItem.d.ts +2 -1
  13. package/es/form/FormItem.js +1 -0
  14. package/es/global.css +7 -7
  15. package/es/index.d.ts +0 -1
  16. package/es/index.js +1 -2
  17. package/es/result/style/index.js +2 -5
  18. package/es/table/index.d.ts +2 -2
  19. package/es/table/style/index.js +8 -31
  20. package/es/tabs/index.d.ts +8 -6
  21. package/es/tabs/index.js +10 -7
  22. package/es/tabs/style/index.js +2 -3
  23. package/es/theme/default.js +62 -39
  24. package/es/theme/style/aliyun.less +125 -125
  25. package/es/theme/style/compact.less +135 -135
  26. package/es/theme/style/dark.less +136 -136
  27. package/es/theme/style/default.less +135 -135
  28. package/es/typography/Link.d.ts +5 -1
  29. package/es/typography/Link.js +1 -0
  30. package/es/typography/Paragraph.d.ts +5 -1
  31. package/es/typography/Paragraph.js +1 -0
  32. package/es/typography/Text.d.ts +5 -1
  33. package/es/typography/Text.js +1 -0
  34. package/es/typography/Title.d.ts +5 -1
  35. package/es/typography/Title.js +1 -0
  36. package/es/typography/style/index.js +2 -6
  37. package/lib/_util/genStyle.d.ts +0 -2
  38. package/lib/_util/genStyle.js +2 -118
  39. package/lib/badge/style/index.js +0 -1
  40. package/lib/button/style/index.js +1 -37
  41. package/lib/card/style/index.js +9 -1
  42. package/lib/config-provider/index.js +1 -8
  43. package/lib/descriptions/hooks/useItems.js +3 -2
  44. package/lib/descriptions/style/index.js +0 -2
  45. package/lib/empty/style/index.js +0 -5
  46. package/lib/form/FormItem.d.ts +2 -1
  47. package/lib/form/FormItem.js +6 -0
  48. package/lib/global.css +7 -7
  49. package/lib/index.d.ts +0 -1
  50. package/lib/index.js +0 -3
  51. package/lib/result/style/index.js +0 -4
  52. package/lib/table/index.d.ts +2 -2
  53. package/lib/table/style/index.js +1 -58
  54. package/lib/tabs/index.d.ts +8 -6
  55. package/lib/tabs/index.js +68 -62
  56. package/lib/tabs/style/index.js +6 -4
  57. package/lib/theme/default.js +62 -38
  58. package/lib/theme/style/aliyun.less +125 -125
  59. package/lib/theme/style/compact.less +135 -135
  60. package/lib/theme/style/dark.less +136 -136
  61. package/lib/theme/style/default.less +135 -135
  62. package/lib/typography/Link.d.ts +5 -1
  63. package/lib/typography/Link.js +1 -0
  64. package/lib/typography/Paragraph.d.ts +5 -1
  65. package/lib/typography/Paragraph.js +1 -0
  66. package/lib/typography/Text.d.ts +5 -1
  67. package/lib/typography/Text.js +1 -0
  68. package/lib/typography/Title.d.ts +5 -1
  69. package/lib/typography/Title.js +1 -0
  70. package/lib/typography/style/index.js +2 -9
  71. package/package.json +5 -6
@@ -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
- declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLElement>>;
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;
@@ -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
- declare const Paragraph: React.ForwardRefExoticComponent<ParagraphProps & React.RefAttributes<HTMLElement>>;
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 = {
@@ -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
- declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLSpanElement>>;
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;
@@ -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
- declare const Title: React.ForwardRefExoticComponent<TitleProps & React.RefAttributes<HTMLElement>>;
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;
@@ -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
- [`span${componentCls}`]: {
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.4.15",
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.0",
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.51.1",
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": "b88518b0f25b30d616d829813ba50eff7830499a"
68
+ "gitHead": "1aff1c2acc2b9494ff83a86ed597b9f46a08f59c"
70
69
  }