@uni-design-system/uni-react 3.0.0 → 3.0.1
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/README.md +6 -5
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -32,10 +32,7 @@ import { Button } from '@uni-design-system/uni-react';
|
|
|
32
32
|
|
|
33
33
|
export const MyComponent = () => {
|
|
34
34
|
return (
|
|
35
|
-
<Button
|
|
36
|
-
type="primary"
|
|
37
|
-
onClick={() => console.log('Clicked!')}
|
|
38
|
-
>
|
|
35
|
+
<Button type="primary" onClick={() => console.log('Clicked!')}>
|
|
39
36
|
Click Me
|
|
40
37
|
</Button>
|
|
41
38
|
);
|
|
@@ -43,7 +40,11 @@ export const MyComponent = () => {
|
|
|
43
40
|
```
|
|
44
41
|
|
|
45
42
|
## 🛠️ Architecture Profile
|
|
43
|
+
|
|
46
44
|
- **Framework Support:** React `>=18`
|
|
47
|
-
- **Pre-bundled Internals:** Complex third-party layout engines (like `@dnd-kit` and `framer-motion`) are completely compiled
|
|
45
|
+
- **Pre-bundled Internals:** Complex third-party layout engines (like `@dnd-kit` and `framer-motion`) are completely compiled _inside_ this package to simplify your build trees.
|
|
48
46
|
- **Peer Dependencies:** React and `@uni-design-system/uni-core` are kept external to maintain minimal, lightweight bundle weights.
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
|
|
49
50
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uni-design-system/uni-react",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/uni-design-system/uni",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dist"
|
|
27
27
|
],
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@uni-design-system/uni-core": ">=3.0.
|
|
29
|
+
"@uni-design-system/uni-core": ">=3.0.1",
|
|
30
30
|
"react": ">=18"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"vite-plugin-dts": "^4.5.4",
|
|
60
60
|
"vitest": "^4.1.5",
|
|
61
61
|
"@uni-design-system/tsconfig": "0.0.0",
|
|
62
|
-
"@uni-design-system/uni-core": "3.0.
|
|
62
|
+
"@uni-design-system/uni-core": "3.0.1"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"dev": "vite build --watch",
|