@oceanbase/design 0.4.16 → 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 (46) hide show
  1. package/dist/design.min.js +1 -1
  2. package/es/_util/genStyle.d.ts +0 -2
  3. package/es/_util/genStyle.js +0 -77
  4. package/es/badge/style/index.js +0 -1
  5. package/es/button/style/index.js +1 -30
  6. package/es/card/style/index.js +4 -2
  7. package/es/config-provider/index.js +1 -5
  8. package/es/empty/style/index.js +2 -7
  9. package/es/form/FormItem.d.ts +2 -1
  10. package/es/form/FormItem.js +1 -0
  11. package/es/index.d.ts +0 -1
  12. package/es/index.js +1 -2
  13. package/es/result/style/index.js +2 -5
  14. package/es/table/style/index.js +8 -31
  15. package/es/tabs/index.d.ts +8 -6
  16. package/es/tabs/index.js +10 -7
  17. package/es/tabs/style/index.js +2 -3
  18. package/es/theme/default.js +62 -39
  19. package/es/theme/style/aliyun.less +125 -125
  20. package/es/theme/style/compact.less +135 -135
  21. package/es/theme/style/dark.less +136 -136
  22. package/es/theme/style/default.less +135 -135
  23. package/es/typography/style/index.js +2 -6
  24. package/lib/_util/genStyle.d.ts +0 -2
  25. package/lib/_util/genStyle.js +2 -118
  26. package/lib/badge/style/index.js +0 -1
  27. package/lib/button/style/index.js +1 -37
  28. package/lib/card/style/index.js +9 -1
  29. package/lib/config-provider/index.js +1 -8
  30. package/lib/empty/style/index.js +0 -5
  31. package/lib/form/FormItem.d.ts +2 -1
  32. package/lib/form/FormItem.js +6 -0
  33. package/lib/index.d.ts +0 -1
  34. package/lib/index.js +0 -3
  35. package/lib/result/style/index.js +0 -4
  36. package/lib/table/style/index.js +1 -58
  37. package/lib/tabs/index.d.ts +8 -6
  38. package/lib/tabs/index.js +68 -62
  39. package/lib/tabs/style/index.js +6 -4
  40. package/lib/theme/default.js +62 -38
  41. package/lib/theme/style/aliyun.less +125 -125
  42. package/lib/theme/style/compact.less +135 -135
  43. package/lib/theme/style/dark.less +136 -136
  44. package/lib/theme/style/default.less +135 -135
  45. package/lib/typography/style/index.js +2 -9
  46. package/package.json +4 -4
@@ -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.16",
3
+ "version": "1.0.0-alpha.0",
4
4
  "description": "The Design System of OceanBase",
5
5
  "keywords": [
6
6
  "oceanbase",
@@ -45,7 +45,7 @@
45
45
  "@oceanbase/icons": "^0.4.7",
46
46
  "@oceanbase/util": "^0.4.4",
47
47
  "ahooks": "^2.10.14",
48
- "antd": "^5.27.0",
48
+ "antd": "^5.27.2",
49
49
  "classnames": "^2.5.1",
50
50
  "lodash": "^4.17.21",
51
51
  "lottie-web": "^5.13.0",
@@ -58,12 +58,12 @@
58
58
  "antd-token-previewer": "^2.0.8",
59
59
  "rc-select": "^14.16.8",
60
60
  "rc-slider": "^11.1.8",
61
- "rc-table": "^7.51.1",
61
+ "rc-table": "^7.52.5",
62
62
  "rc-tree-select": "^5.27.0"
63
63
  },
64
64
  "peerDependencies": {
65
65
  "react": ">=16.9.0",
66
66
  "react-dom": ">=16.9.0"
67
67
  },
68
- "gitHead": "42879f277f4c72e7254f121861f9e8b8a8e024ce"
68
+ "gitHead": "1aff1c2acc2b9494ff83a86ed597b9f46a08f59c"
69
69
  }