@oceanbase/design 0.2.15 → 0.2.17

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.
@@ -29,13 +29,16 @@ var genSizeStyle = (spinDotSize, token) => {
29
29
  const spinDotWidth = spinDotSize;
30
30
  const spinDotHight = spinDotWidth * (295 / 397);
31
31
  return {
32
- [`${componentCls}-dot`]: {
33
- width: spinDotWidth,
34
- height: spinDotHight
35
- },
36
- [`${componentCls}-text`]: {
37
- width: spinDotWidth,
38
- color: colorText
32
+ // only work for oceanbase indicator
33
+ [`&${componentCls}-oceanbase`]: {
34
+ [`${componentCls}-dot`]: {
35
+ width: spinDotWidth,
36
+ height: spinDotHight
37
+ },
38
+ [`${componentCls}-text`]: {
39
+ width: spinDotWidth,
40
+ color: colorText
41
+ }
39
42
  }
40
43
  };
41
44
  };
@@ -47,6 +50,7 @@ var genNestedSizeStyle = (spinDotSize, token) => {
47
50
  const dotMarginTop = -spinDotHight / 2;
48
51
  const textPaddingTop = (spinDotHight - fontSize) / 2 + 2;
49
52
  return {
53
+ // only work for oceanbase indicator
50
54
  [`&${componentCls}-oceanbase`]: {
51
55
  [`${componentCls}-dot`]: {
52
56
  marginLeft: dotMarginLeft,
@@ -64,11 +68,10 @@ var genNestedSizeStyle = (spinDotSize, token) => {
64
68
  var genSpinStyle = (token) => {
65
69
  const { componentCls, spinDotSize, spinDotSizeSM, spinDotSizeLG } = token;
66
70
  return {
67
- // only work for oceanbase indicator
68
71
  [`${componentCls}`]: {
69
- [`&-oceanbase`]: genSizeStyle(spinDotSize, token),
70
- [`&-sm&-oceanbase`]: genSizeStyle(spinDotSizeSM, token),
71
- [`&-lg&-oceanbase`]: genSizeStyle(spinDotSizeLG, token)
72
+ [`&`]: genSizeStyle(spinDotSize, token),
73
+ [`&-sm`]: genSizeStyle(spinDotSizeSM, token),
74
+ [`&-lg`]: genSizeStyle(spinDotSizeLG, token)
72
75
  },
73
76
  [`${componentCls}-nested-loading`]: {
74
77
  [`> div > ${componentCls}`]: {
package/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "@oceanbase/design",
3
- "version": "0.2.15",
3
+ "version": "0.2.17",
4
4
  "description": "The Design System of OceanBase",
5
5
  "keywords": [
6
- "OceanBase",
7
- "database",
6
+ "oceanbase",
8
7
  "design",
9
8
  "ui",
10
9
  "react",
@@ -37,10 +36,10 @@
37
36
  },
38
37
  "dependencies": {
39
38
  "@ant-design/cssinjs": "^1.17.0",
40
- "@oceanbase/icons": "^0.2.5",
41
- "@oceanbase/util": "^0.2.7",
39
+ "@oceanbase/icons": "^0.2.6",
40
+ "@oceanbase/util": "^0.2.8",
42
41
  "ahooks": "^2.10.14",
43
- "antd": "^5.8.6",
42
+ "antd": "^5.9.0",
44
43
  "classnames": "^2.3.2",
45
44
  "lodash": "^4.17.21",
46
45
  "lottie-web": "^5.12.2",
@@ -49,12 +48,12 @@
49
48
  },
50
49
  "devDependencies": {
51
50
  "@babel/cli": "^7.22.15",
52
- "@babel/preset-env": "^7.22.15",
51
+ "@babel/preset-env": "^7.22.20",
53
52
  "antd-token-previewer": "^1.1.0"
54
53
  },
55
54
  "peerDependencies": {
56
55
  "react": "^16.9.0",
57
56
  "react-dom": "^16.9.0"
58
57
  },
59
- "gitHead": "32a30c6e5c9a3d01a0e3052d37c29b8124967247"
58
+ "gitHead": "6f801e95ba5ddc345f6d2c462bcf2af1abc74c84"
60
59
  }