@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.
- package/dist/design.min.js +1 -1
- package/es/badge/IconBadge.d.ts +10 -0
- package/es/badge/IconBadge.js +37 -0
- package/es/badge/index.d.ts +11 -0
- package/es/badge/index.js +41 -1
- package/es/badge/style/index.d.ts +9 -0
- package/es/badge/style/index.js +33 -0
- package/es/badge/style/waiting.png +0 -0
- package/es/config-provider/index.d.ts +0 -1
- package/es/config-provider/index.js +5 -2
- package/es/form/FormItem.d.ts +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/spin/style/index.js +11 -11
- package/lib/badge/IconBadge.d.ts +10 -0
- package/lib/badge/IconBadge.js +53 -0
- package/lib/badge/index.d.ts +11 -0
- package/lib/badge/index.js +63 -1
- package/lib/badge/style/index.d.ts +9 -0
- package/lib/badge/style/index.js +69 -0
- package/lib/badge/style/waiting.png +0 -0
- package/lib/config-provider/index.d.ts +0 -1
- package/lib/config-provider/index.js +2 -2
- package/lib/form/FormItem.d.ts +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lib/spin/style/index.js +14 -11
- package/package.json +7 -8
package/lib/spin/style/index.js
CHANGED
|
@@ -29,13 +29,16 @@ var genSizeStyle = (spinDotSize, token) => {
|
|
|
29
29
|
const spinDotWidth = spinDotSize;
|
|
30
30
|
const spinDotHight = spinDotWidth * (295 / 397);
|
|
31
31
|
return {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
[
|
|
70
|
-
[`&-sm
|
|
71
|
-
[`&-lg
|
|
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.
|
|
3
|
+
"version": "0.2.17",
|
|
4
4
|
"description": "The Design System of OceanBase",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"
|
|
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.
|
|
41
|
-
"@oceanbase/util": "^0.2.
|
|
39
|
+
"@oceanbase/icons": "^0.2.6",
|
|
40
|
+
"@oceanbase/util": "^0.2.8",
|
|
42
41
|
"ahooks": "^2.10.14",
|
|
43
|
-
"antd": "^5.
|
|
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.
|
|
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": "
|
|
58
|
+
"gitHead": "6f801e95ba5ddc345f6d2c462bcf2af1abc74c84"
|
|
60
59
|
}
|