@aloudata/aloudata-design 0.4.1 → 0.4.3
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.
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.ant-menu-item,
|
|
11
|
+
.ant-menu-submenu,
|
|
11
12
|
.ant-menu-item-selected {
|
|
12
13
|
margin: 0;
|
|
13
14
|
height: initial;
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
&:not(.ant-menu-item-selected):active {
|
|
33
|
-
background-color
|
|
34
|
+
background-color: @BG90;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
&.ant-menu-item-disabled {
|
|
@@ -39,5 +40,31 @@
|
|
|
39
40
|
background-color: @BG100 !important;
|
|
40
41
|
cursor: default;
|
|
41
42
|
}
|
|
43
|
+
|
|
44
|
+
.ant-menu-submenu-title {
|
|
45
|
+
line-height: 20px;
|
|
46
|
+
font-size: 13px;
|
|
47
|
+
width: 100%;
|
|
48
|
+
padding:0;
|
|
49
|
+
height: initial;
|
|
50
|
+
margin:0;
|
|
51
|
+
|
|
52
|
+
&:hover{
|
|
53
|
+
background: none;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.ant-menu-title-content{
|
|
59
|
+
line-height: 20px;
|
|
60
|
+
font-size: 13px;
|
|
61
|
+
width: 100%;
|
|
62
|
+
padding:0;
|
|
63
|
+
height: initial;
|
|
64
|
+
margin:0;
|
|
65
|
+
|
|
66
|
+
&:hover{
|
|
67
|
+
background: none;
|
|
68
|
+
}
|
|
42
69
|
}
|
|
43
70
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Button, notification } from "../..";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export default (function () {
|
|
4
|
+
var notices = function notices() {
|
|
5
|
+
notification.error({
|
|
6
|
+
message: 'Notification Title'
|
|
7
|
+
});
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
11
|
+
onClick: notices
|
|
12
|
+
}, "Notification error"));
|
|
13
|
+
});
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export default _default;
|
|
1
|
+
import { notification } from 'antd';
|
|
2
|
+
export default notification;
|
package/package.json
CHANGED
|
@@ -1,33 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aloudata/aloudata-design",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "",
|
|
5
|
+
"license": "MIT",
|
|
5
6
|
"module": "dist/index.js",
|
|
6
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
7
11
|
"scripts": {
|
|
8
|
-
"start": "npm run dev",
|
|
9
|
-
"dev": "dumi dev",
|
|
10
12
|
"build": "father build",
|
|
11
13
|
"build:watch": "father dev",
|
|
14
|
+
"cmt": "zx ./scripts/createComponentTemplate.mjs",
|
|
15
|
+
"dev": "dumi dev",
|
|
12
16
|
"docs:build": "dumi build",
|
|
13
|
-
"prepare": "husky install && dumi setup",
|
|
14
17
|
"doctor": "father doctor",
|
|
18
|
+
"jest": "jest",
|
|
19
|
+
"jest:watch": "jest --watch",
|
|
15
20
|
"lint": "npm run lint:es && npm run lint:css",
|
|
16
21
|
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
|
17
22
|
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
18
|
-
"
|
|
19
|
-
"jest:watch": "jest --watch",
|
|
20
|
-
"cmt": "zx ./scripts/createComponentTemplate.mjs",
|
|
21
|
-
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
|
23
|
+
"prepare": "husky install && dumi setup",
|
|
22
24
|
"prepublishOnly": "npm run build",
|
|
25
|
+
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
|
26
|
+
"postpublish": "PACKAGE_VERSION=$(cat package.json | grep \\\"version\\\" | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag v$PACKAGE_VERSION && git push --tags",
|
|
23
27
|
"release": "npm publish --access public",
|
|
24
|
-
"
|
|
28
|
+
"start": "npm run dev"
|
|
25
29
|
},
|
|
26
|
-
"authors": [],
|
|
27
|
-
"license": "MIT",
|
|
28
|
-
"files": [
|
|
29
|
-
"dist"
|
|
30
|
-
],
|
|
31
30
|
"commitlint": {
|
|
32
31
|
"extends": [
|
|
33
32
|
"@commitlint/config-conventional"
|
|
@@ -50,12 +49,14 @@
|
|
|
50
49
|
"prettier --parser=typescript --write"
|
|
51
50
|
]
|
|
52
51
|
},
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
"
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"@aloudata/icons-react": "^0.1.3",
|
|
54
|
+
"@aloudata/icons-svg": "^0.1.3",
|
|
55
|
+
"antd": "5.2.0",
|
|
56
|
+
"memoize-one": "^6.0.0",
|
|
57
|
+
"rc-menu": "^9.8.0",
|
|
58
|
+
"react-table": "^7.8.0",
|
|
59
|
+
"zx": "^7.1.1"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
|
61
62
|
"@babel/preset-env": "^7.20.2",
|
|
@@ -86,13 +87,12 @@
|
|
|
86
87
|
"stylelint": "^14.9.1",
|
|
87
88
|
"ts-jest": "^29.0.5"
|
|
88
89
|
},
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
90
|
+
"peerDependencies": {
|
|
91
|
+
"react": ">=16.9.0",
|
|
92
|
+
"react-dom": ">=16.9.0"
|
|
93
|
+
},
|
|
94
|
+
"publishConfig": {
|
|
95
|
+
"access": "public"
|
|
96
|
+
},
|
|
97
|
+
"authors": []
|
|
98
98
|
}
|