@vendure-io/ui 1.0.0 → 1.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 +36 -0
- package/package.json +12 -3
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# @vendure-io/ui
|
|
2
|
+
|
|
3
|
+
React component library for Vendure, built on [shadcn/ui](https://ui.shadcn.com/) and [Tailwind CSS v4](https://tailwindcss.com/).
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @vendure-io/ui
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Peer dependencies
|
|
12
|
+
|
|
13
|
+
- `react` >= 19
|
|
14
|
+
- `react-dom` >= 19
|
|
15
|
+
|
|
16
|
+
Optional peers: `next`, `next-themes`, `react-hook-form`
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
```tsx
|
|
21
|
+
import { Button } from "@vendure-io/ui/components/ui/button";
|
|
22
|
+
import { cn } from "@vendure-io/ui/lib/utils";
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Exports
|
|
26
|
+
|
|
27
|
+
| Export | Description |
|
|
28
|
+
|--------|-------------|
|
|
29
|
+
| `@vendure-io/ui/components/ui/*` | shadcn/ui primitives (button, dialog, input, etc.) |
|
|
30
|
+
| `@vendure-io/ui/components/custom/*` | Vendure-specific components |
|
|
31
|
+
| `@vendure-io/ui/lib/*` | Utilities (`cn`, etc.) |
|
|
32
|
+
| `@vendure-io/ui/hooks/*` | Shared React hooks |
|
|
33
|
+
|
|
34
|
+
## License
|
|
35
|
+
|
|
36
|
+
See [LICENSE.md](../../LICENSE.md) for details.
|
package/package.json
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vendure-io/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "React component library for Vendure, built on shadcn/ui and Tailwind v4",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
|
+
"homepage": "https://github.com/vendurehq/design/tree/main/packages/ui",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/vendurehq/design.git",
|
|
10
|
+
"directory": "packages/ui"
|
|
11
|
+
},
|
|
4
12
|
"type": "module",
|
|
5
13
|
"exports": {
|
|
6
14
|
"./components/ui/*": "./src/components/ui/*.tsx",
|
|
@@ -9,7 +17,8 @@
|
|
|
9
17
|
"./hooks/*": "./src/hooks/*.ts"
|
|
10
18
|
},
|
|
11
19
|
"files": [
|
|
12
|
-
"src"
|
|
20
|
+
"src",
|
|
21
|
+
"README.md"
|
|
13
22
|
],
|
|
14
23
|
"scripts": {
|
|
15
24
|
"lint": "biome check src/",
|
|
@@ -35,7 +44,7 @@
|
|
|
35
44
|
},
|
|
36
45
|
"dependencies": {
|
|
37
46
|
"@base-ui/react": "^1.2.0",
|
|
38
|
-
"@vendure-io/design-tokens": "
|
|
47
|
+
"@vendure-io/design-tokens": "^1.0.1",
|
|
39
48
|
"class-variance-authority": "^0.7.1",
|
|
40
49
|
"clsx": "^2.1.1",
|
|
41
50
|
"cmdk": "^1.1.1",
|