@cloudtower/eagle 0.23.3 → 0.24.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.
- package/dist/components/TableForm/types.d.ts +1 -1
- package/dist/esm/index.js +27 -21
- package/dist/esm/stats1.html +1 -1
- package/dist/hooks/useParrotTranslation.d.ts +2 -0
- package/dist/spec/base.d.ts +1 -1
- package/dist/style.css +464 -464
- package/dist/umd/index.js +28 -22
- package/dist/umd/stats1.html +1 -1
- package/dist/utils/tower.d.ts +4 -1
- package/package.json +5 -5
- package/README.md +0 -58
package/dist/utils/tower.d.ts
CHANGED
|
@@ -47,7 +47,10 @@ export declare const GBps: number;
|
|
|
47
47
|
export declare const TBps: number;
|
|
48
48
|
export declare function formatBps(input: number, decimals?: number): FormattedResult;
|
|
49
49
|
export declare function formatBytes(bytes: number, decimals?: number): FormattedResult;
|
|
50
|
-
export declare function formatPercent(input: number, decimals?: number):
|
|
50
|
+
export declare function formatPercent(input: number, decimals?: number): {
|
|
51
|
+
value: string;
|
|
52
|
+
unit: string;
|
|
53
|
+
};
|
|
51
54
|
export declare const KbE = 1000;
|
|
52
55
|
export declare const MbE: number;
|
|
53
56
|
export declare const GbE: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudtower/eagle",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"main": "dist/umd/index.js",
|
|
5
5
|
"module": "./dist/esm/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"build-storybook": "build-storybook"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@cloudtower/parrot": "0.
|
|
29
|
+
"@cloudtower/parrot": "0.24.0",
|
|
30
30
|
"@linaria/core": "^4.2.2",
|
|
31
31
|
"@linaria/react": "^4.3.0",
|
|
32
32
|
"antd": "4.5.0",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@babel/core": "^7.20.12",
|
|
43
|
-
"@cloudtower/icons": "0.
|
|
44
|
-
"@cloudtower/icons-react": "0.
|
|
43
|
+
"@cloudtower/icons": "0.24.0",
|
|
44
|
+
"@cloudtower/icons-react": "0.24.0",
|
|
45
45
|
"@linaria/babel-preset": "4.4.1",
|
|
46
46
|
"@linaria/rollup": "^4.1.5",
|
|
47
47
|
"@linaria/vite": "^4.2.5",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"vite": "^3.1.7",
|
|
95
95
|
"vitest": "^0.24.1"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "6c907fc1bed385f0d1a616e6d87753d91d4bb36b"
|
|
98
98
|
}
|
package/README.md
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# CloudTower UI KIT
|
|
2
|
-
|
|
3
|
-
[storybook]: https://cloudtower-ui-kit.vercel.app
|
|
4
|
-
[贡献代码]: ./CONTRIBUTE.md
|
|
5
|
-
|
|
6
|
-
## [StoryBook]
|
|
7
|
-
|
|
8
|
-
## 使用
|
|
9
|
-
|
|
10
|
-
```tsx
|
|
11
|
-
import { antdKit } from "@cloudtower/eagle";
|
|
12
|
-
import { initParrotI18n } from "@cloudtower/eagle";
|
|
13
|
-
// Set Up Style
|
|
14
|
-
import "@cloudtower/eagle/dist/style.css";
|
|
15
|
-
|
|
16
|
-
initParrotI18n();
|
|
17
|
-
// Set Up Providers
|
|
18
|
-
ReactDOM.render(
|
|
19
|
-
<React.StrictMode>
|
|
20
|
-
<KitStoreProvider>
|
|
21
|
-
<App />
|
|
22
|
-
</KitStoreProvider>
|
|
23
|
-
</React.StrictMode>,
|
|
24
|
-
document.getElementById("root") as HTMLElement
|
|
25
|
-
);
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
```tsx
|
|
29
|
-
import { useUIKit } from "@cloudtower/eagle";
|
|
30
|
-
import React, { useContext } from "react";
|
|
31
|
-
|
|
32
|
-
const App = () => {
|
|
33
|
-
// Use Component
|
|
34
|
-
const kit = useUIKit();
|
|
35
|
-
return (
|
|
36
|
-
<div>
|
|
37
|
-
<kit.button
|
|
38
|
-
onClick={() => {
|
|
39
|
-
alert("hello");
|
|
40
|
-
}}
|
|
41
|
-
>
|
|
42
|
-
say hello
|
|
43
|
-
</kit.button>
|
|
44
|
-
</div>
|
|
45
|
-
);
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export default App;
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
## 如何 [贡献代码]
|
|
52
|
-
|
|
53
|
-
- 快速开始
|
|
54
|
-
```
|
|
55
|
-
yarn && cd packages/eagle && yarn storybook
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
详细参考 [贡献代码]
|