@bodyhc/blazeui 0.1.4 → 0.2.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/README.md +29 -15
- package/dist/style.css +1 -0
- package/package.json +8 -9
package/README.md
CHANGED
|
@@ -27,23 +27,37 @@ A beautiful, modern, and accessible component library for React built with Radix
|
|
|
27
27
|
|
|
28
28
|
### Installation
|
|
29
29
|
|
|
30
|
-
1.
|
|
30
|
+
#### 1. NPM (Recommended)
|
|
31
|
+
|
|
32
|
+
Install the package:
|
|
31
33
|
```bash
|
|
32
|
-
|
|
33
|
-
cd blazeui
|
|
34
|
+
npm install @bodyhc/blazeui
|
|
34
35
|
```
|
|
35
36
|
|
|
36
|
-
|
|
37
|
-
```
|
|
38
|
-
|
|
37
|
+
**Usage:**
|
|
38
|
+
```tsx
|
|
39
|
+
import { Button } from "@bodyhc/blazeui"
|
|
39
40
|
```
|
|
41
|
+
> [!IMPORTANT]
|
|
42
|
+
> Use `@bodyhc/blazeui` (no hyphen). Import directly from the root; do not use subpaths like `/components/ui/button`.
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
#### 2. Manual
|
|
46
|
+
|
|
47
|
+
For manual installation (copy/paste), see our [Installation Guide](https://blazeui.com/docs/installation?tab=manual).
|
|
48
|
+
|
|
49
|
+
### Framework Guides
|
|
50
|
+
|
|
51
|
+
- [Vite Setup](https://blazeui.com/docs/installation?tab=npm-vite)
|
|
52
|
+
- [Next.js Setup](https://blazeui.com/docs/installation?tab=npm-next)
|
|
53
|
+
|
|
54
|
+
#### Peer Dependencies
|
|
40
55
|
|
|
41
|
-
3. Start the development server:
|
|
42
56
|
```bash
|
|
43
|
-
npm
|
|
57
|
+
npm install framer-motion lucide-react clsx tailwind-merge tailwindcss-animate
|
|
44
58
|
```
|
|
45
59
|
|
|
46
|
-
|
|
60
|
+
|
|
47
61
|
|
|
48
62
|
## 📦 Available Components
|
|
49
63
|
|
|
@@ -134,7 +148,7 @@ blazeui/
|
|
|
134
148
|
### Example
|
|
135
149
|
|
|
136
150
|
```tsx
|
|
137
|
-
import { Button } from "
|
|
151
|
+
import { Button } from "@bodyhc/blazeui";
|
|
138
152
|
|
|
139
153
|
function App() {
|
|
140
154
|
return (
|
|
@@ -147,15 +161,15 @@ function App() {
|
|
|
147
161
|
|
|
148
162
|
### Theme Setup
|
|
149
163
|
|
|
150
|
-
BlazeUI uses a theme provider for dark/light mode support. Wrap your app with the ThemeProvider
|
|
164
|
+
BlazeUI uses a theme provider for dark/light mode support. Wrap your app with the `ThemeProvider`:
|
|
151
165
|
|
|
152
166
|
```tsx
|
|
153
|
-
import { ThemeProvider } from "
|
|
167
|
+
import { ThemeProvider } from "@bodyhc/blazeui";
|
|
154
168
|
|
|
155
|
-
function App() {
|
|
169
|
+
function App({ children }) {
|
|
156
170
|
return (
|
|
157
|
-
<ThemeProvider defaultTheme="dark" storageKey="
|
|
158
|
-
{
|
|
171
|
+
<ThemeProvider defaultTheme="dark" storageKey="blaze-ui-theme">
|
|
172
|
+
{children}
|
|
159
173
|
</ThemeProvider>
|
|
160
174
|
);
|
|
161
175
|
}
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--background: 0 0% 100%;--foreground: 240 10% 3.9%;--card: 0 0% 100%;--card-foreground: 240 10% 3.9%;--popover: 0 0% 100%;--popover-foreground: 240 10% 3.9%;--primary: 259 95% 63%;--primary-foreground: 0 0% 98%;--secondary: 222 47% 11%;--secondary-foreground: 0 0% 98%;--muted: 240 4.8% 95.9%;--muted-foreground: 240 3.8% 46.1%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 240 5.9% 90%;--input: 240 5.9% 90%;--ring: 259 95% 63%;--radius: .75rem}.dark{--background: 222 47% 11%;--foreground: 0 0% 98%;--card: 222 47% 11%;--card-foreground: 0 0% 98%;--popover: 222 47% 11%;--popover-foreground: 0 0% 98%;--primary: 259 95% 63%;--primary-foreground: 0 0% 98%;--secondary: 240 3.7% 15.9%;--secondary-foreground: 0 0% 98%;--muted: 240 3.7% 15.9%;--muted-foreground: 240 5% 64.9%;--accent: 240 3.7% 15.9%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 0% 98%;--border: 240 3.7% 15.9%;--input: 240 3.7% 15.9%;--ring: 259 95% 73%}*{border-color:hsl(var(--border))}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bodyhc/blazeui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"exports": {
|
|
18
18
|
".": {
|
|
19
|
+
"types": "./dist/types/index.d.ts",
|
|
19
20
|
"import": "./dist/blaze-ui.es.js",
|
|
20
|
-
"require": "./dist/blaze-ui.umd.js"
|
|
21
|
-
"types": "./dist/types/index.d.ts"
|
|
21
|
+
"require": "./dist/blaze-ui.umd.js"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
@@ -46,7 +46,11 @@
|
|
|
46
46
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
47
47
|
"@radix-ui/react-toast": "^1.2.15",
|
|
48
48
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
49
|
+
"class-variance-authority": "^0.7.0",
|
|
50
|
+
"clsx": "^2.1.1",
|
|
49
51
|
"cmdk": "^1.1.1",
|
|
52
|
+
"framer-motion": "^11.18.2",
|
|
53
|
+
"lucide-react": "^0.379.0",
|
|
50
54
|
"react-router-dom": "^6.23.1",
|
|
51
55
|
"simplex-noise": "^4.0.3",
|
|
52
56
|
"tailwind-merge": "^2.3.0",
|
|
@@ -64,18 +68,13 @@
|
|
|
64
68
|
"@typescript-eslint/parser": "^7.2.0",
|
|
65
69
|
"@vitejs/plugin-react": "^4.2.1",
|
|
66
70
|
"autoprefixer": "^10.4.19",
|
|
67
|
-
"class-variance-authority": "^0.7.0",
|
|
68
|
-
"clsx": "^2.1.1",
|
|
69
71
|
"eslint": "^8.57.0",
|
|
70
72
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
71
73
|
"eslint-plugin-react-refresh": "^0.4.6",
|
|
72
|
-
"framer-motion": "^11.18.2",
|
|
73
|
-
"lucide-react": "^0.379.0",
|
|
74
74
|
"postcss": "^8.4.38",
|
|
75
75
|
"tailwindcss": "^3.4.3",
|
|
76
|
-
"react": "^18.2.0",
|
|
77
|
-
"react-dom": "^18.2.0",
|
|
78
76
|
"typescript": "^5.2.2",
|
|
79
77
|
"vite": "^5.2.0"
|
|
80
78
|
}
|
|
81
79
|
}
|
|
80
|
+
|