smoothui-cli 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.github.md +71 -0
- package/README.md +35 -427
- package/README.npm.md +71 -0
- package/package.json +3 -1
package/README.github.md
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# smoothui-cli
|
|
2
|
+
|
|
3
|
+
CLI to install [SmoothUI](https://smoothui.dev) components - beautifully designed React components with smooth animations.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx smoothui-cli add siri-orb
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
### Add components
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
# Add a single component
|
|
17
|
+
npx smoothui-cli add siri-orb
|
|
18
|
+
|
|
19
|
+
# Add multiple components
|
|
20
|
+
npx smoothui-cli add siri-orb grid-loader animated-tabs
|
|
21
|
+
|
|
22
|
+
# Interactive mode - browse and select
|
|
23
|
+
npx smoothui-cli add
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### List components
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# Show all available components
|
|
30
|
+
npx smoothui-cli list
|
|
31
|
+
|
|
32
|
+
# JSON output
|
|
33
|
+
npx smoothui-cli list --json
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Options
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
# Custom install path
|
|
40
|
+
npx smoothui-cli add siri-orb --path src/components/ui
|
|
41
|
+
|
|
42
|
+
# Force overwrite existing files
|
|
43
|
+
npx smoothui-cli add siri-orb --force
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Features
|
|
47
|
+
|
|
48
|
+
- Interactive component picker with search and categories
|
|
49
|
+
- Auto-detects package manager (npm, pnpm, yarn, bun)
|
|
50
|
+
- Auto-detects component paths and tsconfig aliases
|
|
51
|
+
- Shows dependency tree before installation
|
|
52
|
+
- Handles file conflicts with overwrite prompts
|
|
53
|
+
- Auto-installs npm dependencies
|
|
54
|
+
|
|
55
|
+
## Alternative: shadcn CLI
|
|
56
|
+
|
|
57
|
+
You can also use the shadcn CLI with the `@smoothui` registry:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
npx shadcn@latest add @smoothui/siri-orb
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Links
|
|
64
|
+
|
|
65
|
+
- [Documentation](https://smoothui.dev)
|
|
66
|
+
- [Components](https://smoothui.dev/docs/components)
|
|
67
|
+
- [GitHub](https://github.com/educlopez/smoothui)
|
|
68
|
+
|
|
69
|
+
## License
|
|
70
|
+
|
|
71
|
+
MIT
|
package/README.md
CHANGED
|
@@ -1,463 +1,71 @@
|
|
|
1
|
-
#
|
|
1
|
+
# smoothui-cli
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
<div align="center">
|
|
6
|
-
|
|
7
|
-

|
|
8
|
-

|
|
9
|
-

|
|
10
|
-
|
|
11
|
-
[](https://actions-badge.atrox.dev/educlopez/smoothui/goto?ref=main)
|
|
12
|
-

|
|
13
|
-

|
|
14
|
-

|
|
15
|
-

|
|
16
|
-
[](https://smoothui.dev)
|
|
17
|
-
|
|
18
|
-
</div>
|
|
19
|
-
|
|
20
|
-
SmoothUI is a collection of beautifully designed components with smooth animations built with React, Tailwind CSS, and Motion. This project aims to provide developers with a set of reusable UI components that enhance user experience through delightful animations and modern design patterns.
|
|
21
|
-
|
|
22
|
-
## Table of Contents
|
|
23
|
-
|
|
24
|
-
- [SmoothUI](#smoothui)
|
|
25
|
-
- [Table of Contents](#table-of-contents)
|
|
26
|
-
- [Features](#features)
|
|
27
|
-
- [Quick Start](#quick-start)
|
|
28
|
-
- [Installation](#installation)
|
|
29
|
-
- [Using shadcn CLI v3 (Recommended)](#using-shadcn-cli-v3-recommended)
|
|
30
|
-
- [Step 1: Configure the Registry](#step-1-configure-the-registry)
|
|
31
|
-
- [Step 2: Install Components](#step-2-install-components)
|
|
32
|
-
- [Step 3: Use Components](#step-3-use-components)
|
|
33
|
-
- [Available Commands](#available-commands)
|
|
34
|
-
- [Manual Installation](#manual-installation)
|
|
35
|
-
- [Usage](#usage)
|
|
36
|
-
- [Basic Usage](#basic-usage)
|
|
37
|
-
- [Advanced Usage](#advanced-usage)
|
|
38
|
-
- [Available Components](#available-components)
|
|
39
|
-
- [UI Components](#ui-components)
|
|
40
|
-
- [Interactive Components](#interactive-components)
|
|
41
|
-
- [Layout Components](#layout-components)
|
|
42
|
-
- [Utility Components](#utility-components)
|
|
43
|
-
- [MCP Support](#mcp-support)
|
|
44
|
-
- [🤖 AI Assistant Integration](#-ai-assistant-integration)
|
|
45
|
-
- [Quick MCP Setup](#quick-mcp-setup)
|
|
46
|
-
- [Registry System](#registry-system)
|
|
47
|
-
- [Automatic Dependencies](#automatic-dependencies)
|
|
48
|
-
- [Component Structure](#component-structure)
|
|
49
|
-
- [Registry Features](#registry-features)
|
|
50
|
-
- [Troubleshooting](#troubleshooting)
|
|
51
|
-
- [Common Issues](#common-issues)
|
|
52
|
-
- [1. Authentication Error (401)](#1-authentication-error-401)
|
|
53
|
-
- [2. Registry Not Found](#2-registry-not-found)
|
|
54
|
-
- [3. Import Path Issues](#3-import-path-issues)
|
|
55
|
-
- [4. Missing Dependencies](#4-missing-dependencies)
|
|
56
|
-
- [Getting Help](#getting-help)
|
|
57
|
-
- [Contributing](#contributing)
|
|
58
|
-
- [Development Setup](#development-setup)
|
|
59
|
-
- [License](#license)
|
|
60
|
-
|
|
61
|
-
## Features
|
|
62
|
-
|
|
63
|
-
- **Modern Design System**: A cohesive and contemporary design language with a new mascot called Smoothy
|
|
64
|
-
- **Smooth Animations**: Built-in animations powered by Motion for delightful user experiences
|
|
65
|
-
- **Responsive Design**: Fully responsive components designed with Tailwind CSS
|
|
66
|
-
- **Dark Mode Support**: Components support both light and dark themes out of the box
|
|
67
|
-
- **Color Customization**: Dynamic color switcher for easy theme customization
|
|
68
|
-
- **Documentation**: Comprehensive documentation with props, examples, and usage guidelines
|
|
69
|
-
- **Accessibility**: Enhanced accessibility features across all components
|
|
70
|
-
- **TypeScript Support**: Full TypeScript support with type definitions
|
|
71
|
-
- **Easy Integration**: Simple API for integrating components into your projects
|
|
72
|
-
- **shadcn CLI v3 Support**: Full compatibility with the new shadcn CLI v3 namespace system
|
|
73
|
-
|
|
74
|
-
## Quick Start
|
|
75
|
-
|
|
76
|
-
Get started with SmoothUI in just a few steps:
|
|
77
|
-
|
|
78
|
-
1. **Add the registry** to your `components.json`:
|
|
79
|
-
|
|
80
|
-
```json
|
|
81
|
-
{
|
|
82
|
-
"registries": {
|
|
83
|
-
"@smoothui": "https://smoothui.dev/r/{name}.json"
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
2. **Install a component**:
|
|
89
|
-
|
|
90
|
-
```bash
|
|
91
|
-
npx shadcn@latest add @smoothui/siri-orb
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
3. **Use the component**:
|
|
95
|
-
|
|
96
|
-
```tsx
|
|
97
|
-
import { SiriOrb } from "@/components/smoothui/ui/SiriOrb";
|
|
98
|
-
|
|
99
|
-
export default function App() {
|
|
100
|
-
return <SiriOrb size="200px" />;
|
|
101
|
-
}
|
|
102
|
-
```
|
|
3
|
+
CLI to install [SmoothUI](https://smoothui.dev) components - beautifully designed React components with smooth animations.
|
|
103
4
|
|
|
104
5
|
## Installation
|
|
105
6
|
|
|
106
|
-
### Using shadcn CLI v3 (Recommended)
|
|
107
|
-
|
|
108
|
-
SmoothUI is fully compatible with the new shadcn CLI v3 namespace system. This is the easiest way to install and manage SmoothUI components.
|
|
109
|
-
|
|
110
|
-
#### Step 1: Configure the Registry
|
|
111
|
-
|
|
112
|
-
Add the SmoothUI registry to your `components.json` file:
|
|
113
|
-
|
|
114
|
-
```json
|
|
115
|
-
{
|
|
116
|
-
"$schema": "https://ui.shadcn.com/schema.json",
|
|
117
|
-
"style": "new-york",
|
|
118
|
-
"rsc": true,
|
|
119
|
-
"tsx": true,
|
|
120
|
-
"tailwind": {
|
|
121
|
-
"config": "tailwind.config.js",
|
|
122
|
-
"css": "src/app/globals.css",
|
|
123
|
-
"baseColor": "neutral",
|
|
124
|
-
"cssVariables": true,
|
|
125
|
-
"prefix": ""
|
|
126
|
-
},
|
|
127
|
-
"aliases": {
|
|
128
|
-
"components": "@/components",
|
|
129
|
-
"utils": "@/lib/utils",
|
|
130
|
-
"ui": "@/components/ui"
|
|
131
|
-
},
|
|
132
|
-
"registries": {
|
|
133
|
-
"@smoothui": "https://smoothui.dev/r/{name}.json"
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
#### Step 2: Install Components
|
|
139
|
-
|
|
140
|
-
Install components using the namespace:
|
|
141
|
-
|
|
142
7
|
```bash
|
|
143
|
-
|
|
144
|
-
npx shadcn@latest add @smoothui/siri-orb
|
|
145
|
-
|
|
146
|
-
# Install multiple components
|
|
147
|
-
npx shadcn@latest add @smoothui/rich-popover @smoothui/animated-input
|
|
148
|
-
|
|
149
|
-
# Install components with dependencies
|
|
150
|
-
npx shadcn@latest add @smoothui/scrollable-card-stack
|
|
8
|
+
npx smoothui-cli add siri-orb
|
|
151
9
|
```
|
|
152
10
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
Import and use the installed components:
|
|
156
|
-
|
|
157
|
-
```tsx
|
|
158
|
-
import { RichPopover } from "@/components/smoothui/ui/RichPopover";
|
|
159
|
-
import { SiriOrb } from "@/components/smoothui/ui/SiriOrb";
|
|
160
|
-
|
|
161
|
-
export default function App() {
|
|
162
|
-
return (
|
|
163
|
-
<div>
|
|
164
|
-
<SiriOrb size="200px" />
|
|
165
|
-
<RichPopover />
|
|
166
|
-
</div>
|
|
167
|
-
);
|
|
168
|
-
}
|
|
169
|
-
```
|
|
11
|
+
## Usage
|
|
170
12
|
|
|
171
|
-
|
|
13
|
+
### Add components
|
|
172
14
|
|
|
173
15
|
```bash
|
|
174
|
-
#
|
|
175
|
-
npx
|
|
176
|
-
|
|
177
|
-
# View component details before installation
|
|
178
|
-
npx shadcn@latest view @smoothui/siri-orb
|
|
16
|
+
# Add a single component
|
|
17
|
+
npx smoothui-cli add siri-orb
|
|
179
18
|
|
|
180
|
-
#
|
|
181
|
-
npx
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
### Manual Installation
|
|
185
|
-
|
|
186
|
-
If you prefer to install components manually, you can copy the component files directly:
|
|
187
|
-
|
|
188
|
-
1. **Install dependencies**:
|
|
19
|
+
# Add multiple components
|
|
20
|
+
npx smoothui-cli add siri-orb grid-loader animated-tabs
|
|
189
21
|
|
|
190
|
-
|
|
191
|
-
|
|
22
|
+
# Interactive mode - browse and select
|
|
23
|
+
npx smoothui-cli add
|
|
192
24
|
```
|
|
193
25
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
3. **Set up utilities**:
|
|
26
|
+
### List components
|
|
197
27
|
|
|
198
28
|
```bash
|
|
199
|
-
#
|
|
200
|
-
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
```tsx
|
|
204
|
-
// lib/utils/cn.ts
|
|
205
|
-
import { clsx, type ClassValue } from "clsx";
|
|
206
|
-
import { twMerge } from "tailwind-merge";
|
|
207
|
-
|
|
208
|
-
export function cn(...inputs: ClassValue[]) {
|
|
209
|
-
return twMerge(clsx(inputs));
|
|
210
|
-
}
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
## Usage
|
|
214
|
-
|
|
215
|
-
### Basic Usage
|
|
216
|
-
|
|
217
|
-
```tsx
|
|
218
|
-
import { SiriOrb } from "@/components/smoothui/ui/SiriOrb";
|
|
219
|
-
|
|
220
|
-
export default function App() {
|
|
221
|
-
return (
|
|
222
|
-
<div className="flex min-h-screen items-center justify-center">
|
|
223
|
-
<SiriOrb
|
|
224
|
-
size="200px"
|
|
225
|
-
colors={{
|
|
226
|
-
bg: "oklch(95% 0.02 264.695)",
|
|
227
|
-
c1: "oklch(75% 0.15 350)",
|
|
228
|
-
c2: "oklch(80% 0.12 200)",
|
|
229
|
-
c3: "oklch(78% 0.14 280)",
|
|
230
|
-
}}
|
|
231
|
-
animationDuration={20}
|
|
232
|
-
/>
|
|
233
|
-
</div>
|
|
234
|
-
);
|
|
235
|
-
}
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
### Advanced Usage
|
|
239
|
-
|
|
240
|
-
```tsx
|
|
241
|
-
import { RichPopover } from "@/components/smoothui/ui/RichPopover";
|
|
242
|
-
import { ScrollableCardStack } from "@/components/smoothui/ui/ScrollableCardStack";
|
|
243
|
-
|
|
244
|
-
export default function Dashboard() {
|
|
245
|
-
const cards = [
|
|
246
|
-
{
|
|
247
|
-
id: "1",
|
|
248
|
-
name: "John Doe",
|
|
249
|
-
handle: "@johndoe",
|
|
250
|
-
avatar: "/avatars/john.jpg",
|
|
251
|
-
video: "/videos/john.mp4",
|
|
252
|
-
href: "https://twitter.com/johndoe",
|
|
253
|
-
},
|
|
254
|
-
// ... more cards
|
|
255
|
-
];
|
|
256
|
-
|
|
257
|
-
return (
|
|
258
|
-
<div className="space-y-8">
|
|
259
|
-
<RichPopover />
|
|
260
|
-
<ScrollableCardStack items={cards} />
|
|
261
|
-
</div>
|
|
262
|
-
);
|
|
263
|
-
}
|
|
264
|
-
```
|
|
265
|
-
|
|
266
|
-
## Available Components
|
|
267
|
-
|
|
268
|
-
SmoothUI includes a wide variety of components:
|
|
269
|
-
|
|
270
|
-
### UI Components
|
|
29
|
+
# Show all available components
|
|
30
|
+
npx smoothui-cli list
|
|
271
31
|
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
- **ScrollableCardStack** - Interactive card stack with smooth scrolling
|
|
275
|
-
- **AnimatedInput** - Input field with smooth animations
|
|
276
|
-
- **DynamicIsland** - iOS-style dynamic island component
|
|
277
|
-
- **FluidMorph** - Fluid morphing animations
|
|
278
|
-
- **MatrixCard** - Matrix-style card with particle effects
|
|
279
|
-
|
|
280
|
-
### Interactive Components
|
|
281
|
-
|
|
282
|
-
- **CursorFollow** - Custom cursor following component
|
|
283
|
-
- **ScrambleHover** - Text scramble effect on hover
|
|
284
|
-
- **WaveText** - Animated wave text effect
|
|
285
|
-
- **TypewriterText** - Typewriter text animation
|
|
286
|
-
|
|
287
|
-
### Layout Components
|
|
288
|
-
|
|
289
|
-
- **ExpandableCards** - Expandable card layout
|
|
290
|
-
- **ScrollableCardStack** - Stack of scrollable cards
|
|
291
|
-
- **AppDownloadStack** - App download showcase
|
|
292
|
-
|
|
293
|
-
### Utility Components
|
|
294
|
-
|
|
295
|
-
- **ButtonCopy** - Copy button with feedback
|
|
296
|
-
- **ClipCornersButton** - Button with clipped corners
|
|
297
|
-
- **DotMorphButton** - Button with morphing dot animation
|
|
298
|
-
|
|
299
|
-
[View all components →](https://smoothui.dev)
|
|
300
|
-
|
|
301
|
-
## MCP Support
|
|
302
|
-
|
|
303
|
-
SmoothUI is fully compatible with the **shadcn MCP server**, enabling AI assistants to discover and install components automatically.
|
|
304
|
-
|
|
305
|
-
### 🤖 AI Assistant Integration
|
|
306
|
-
|
|
307
|
-
With MCP support, AI assistants like **Claude**, **Cursor**, and **GitHub Copilot** can:
|
|
308
|
-
|
|
309
|
-
- **Discover Components**: Browse all available SmoothUI components
|
|
310
|
-
- **Install Components**: Automatically install components with dependencies
|
|
311
|
-
- **Provide Usage Examples**: Get code examples and integration help
|
|
312
|
-
- **Smart Suggestions**: Receive intelligent component recommendations
|
|
313
|
-
|
|
314
|
-
### Quick MCP Setup
|
|
315
|
-
|
|
316
|
-
1. **Configure your registry** in `components.json`:
|
|
317
|
-
|
|
318
|
-
```json
|
|
319
|
-
{
|
|
320
|
-
"registries": {
|
|
321
|
-
"@smoothui": "https://smoothui.dev/r/{name}.json"
|
|
322
|
-
}
|
|
323
|
-
}
|
|
32
|
+
# JSON output
|
|
33
|
+
npx smoothui-cli list --json
|
|
324
34
|
```
|
|
325
35
|
|
|
326
|
-
|
|
36
|
+
### Options
|
|
327
37
|
|
|
328
38
|
```bash
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
# or for VS Code: npx shadcn@latest mcp init --client vscode
|
|
332
|
-
```
|
|
333
|
-
|
|
334
|
-
3. **Try these prompts**:
|
|
335
|
-
|
|
336
|
-
- "Show me the components in the smoothui registry"
|
|
337
|
-
- "Install the SiriOrb component from smoothui"
|
|
338
|
-
- "Create a landing page using smoothui components"
|
|
339
|
-
|
|
340
|
-
[Learn more about MCP support →](https://smoothui.dev/doc/mcp)
|
|
341
|
-
|
|
342
|
-
## Registry System
|
|
343
|
-
|
|
344
|
-
SmoothUI uses a custom registry system compatible with shadcn CLI v3. Each component includes:
|
|
345
|
-
|
|
346
|
-
### Automatic Dependencies
|
|
347
|
-
|
|
348
|
-
- **Package Dependencies**: Required npm packages are automatically included
|
|
349
|
-
- **Utility Files**: Shared utilities like `cn` are automatically bundled
|
|
350
|
-
- **Import Paths**: All import paths are automatically resolved
|
|
351
|
-
|
|
352
|
-
### Component Structure
|
|
353
|
-
|
|
354
|
-
When you install a component, you get:
|
|
39
|
+
# Custom install path
|
|
40
|
+
npx smoothui-cli add siri-orb --path src/components/ui
|
|
355
41
|
|
|
42
|
+
# Force overwrite existing files
|
|
43
|
+
npx smoothui-cli add siri-orb --force
|
|
356
44
|
```
|
|
357
|
-
components/smoothui/ui/
|
|
358
|
-
├── ComponentName.tsx # Main component file
|
|
359
|
-
lib/utils/
|
|
360
|
-
└── cn.ts # Utility functions (if needed)
|
|
361
|
-
```
|
|
362
|
-
|
|
363
|
-
### Registry Features
|
|
364
|
-
|
|
365
|
-
- **Self-contained**: Each component includes all necessary dependencies
|
|
366
|
-
- **Type-safe**: Full TypeScript support with proper types
|
|
367
|
-
- **Optimized**: Components are optimized for performance
|
|
368
|
-
- **Accessible**: Built-in accessibility features
|
|
369
|
-
|
|
370
|
-
## Troubleshooting
|
|
371
|
-
|
|
372
|
-
### Common Issues
|
|
373
|
-
|
|
374
|
-
#### 1. Authentication Error (401)
|
|
375
|
-
|
|
376
|
-
**Error**: `You are not authorized to access the item`
|
|
377
|
-
|
|
378
|
-
**Solution**: This usually happens with Vercel preview deployments. Use the production URL:
|
|
379
45
|
|
|
380
|
-
|
|
381
|
-
{
|
|
382
|
-
"registries": {
|
|
383
|
-
"@smoothui": "https://smoothui.dev/r/{name}.json"
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
```
|
|
46
|
+
## Features
|
|
387
47
|
|
|
388
|
-
|
|
48
|
+
- Interactive component picker with search and categories
|
|
49
|
+
- Auto-detects package manager (npm, pnpm, yarn, bun)
|
|
50
|
+
- Auto-detects component paths and tsconfig aliases
|
|
51
|
+
- Shows dependency tree before installation
|
|
52
|
+
- Handles file conflicts with overwrite prompts
|
|
53
|
+
- Auto-installs npm dependencies
|
|
389
54
|
|
|
390
|
-
|
|
55
|
+
## Alternative: shadcn CLI
|
|
391
56
|
|
|
392
|
-
|
|
57
|
+
You can also use the shadcn CLI with the `@smoothui` registry:
|
|
393
58
|
|
|
394
59
|
```bash
|
|
395
60
|
npx shadcn@latest add @smoothui/siri-orb
|
|
396
61
|
```
|
|
397
62
|
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
**Error**: `Cannot find module '@/lib/utils/cn'`
|
|
401
|
-
|
|
402
|
-
**Solution**: Make sure your `tsconfig.json` includes the path alias:
|
|
403
|
-
|
|
404
|
-
```json
|
|
405
|
-
{
|
|
406
|
-
"compilerOptions": {
|
|
407
|
-
"paths": {
|
|
408
|
-
"@/*": ["./src/*"]
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
```
|
|
413
|
-
|
|
414
|
-
#### 4. Missing Dependencies
|
|
415
|
-
|
|
416
|
-
**Error**: `Cannot find module 'clsx'`
|
|
417
|
-
|
|
418
|
-
**Solution**: Install missing dependencies:
|
|
419
|
-
|
|
420
|
-
```bash
|
|
421
|
-
pnpm add clsx tailwind-merge motion
|
|
422
|
-
```
|
|
423
|
-
|
|
424
|
-
### Getting Help
|
|
425
|
-
|
|
426
|
-
- **Documentation**: Visit [smoothui.dev](https://smoothui.dev) for detailed documentation
|
|
427
|
-
- **Issues**: Report bugs on [GitHub Issues](https://github.com/educlopez/smoothui/issues)
|
|
428
|
-
- **Discussions**: Join discussions on [GitHub Discussions](https://github.com/educlopez/smoothui/discussions)
|
|
429
|
-
|
|
430
|
-
## Contributing
|
|
431
|
-
|
|
432
|
-
We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.
|
|
433
|
-
|
|
434
|
-
### Development Setup
|
|
435
|
-
|
|
436
|
-
1. **Clone the repository**:
|
|
437
|
-
|
|
438
|
-
```bash
|
|
439
|
-
git clone https://github.com/educlopez/smoothui.git
|
|
440
|
-
cd smoothui
|
|
441
|
-
```
|
|
442
|
-
|
|
443
|
-
2. **Install dependencies**:
|
|
444
|
-
|
|
445
|
-
```bash
|
|
446
|
-
pnpm install
|
|
447
|
-
```
|
|
448
|
-
|
|
449
|
-
3. **Start development server**:
|
|
450
|
-
|
|
451
|
-
```bash
|
|
452
|
-
pnpm dev
|
|
453
|
-
```
|
|
454
|
-
|
|
455
|
-
4. **Build registry**:
|
|
63
|
+
## Links
|
|
456
64
|
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
65
|
+
- [Documentation](https://smoothui.dev)
|
|
66
|
+
- [Components](https://smoothui.dev/docs/components)
|
|
67
|
+
- [GitHub](https://github.com/educlopez/smoothui)
|
|
460
68
|
|
|
461
69
|
## License
|
|
462
70
|
|
|
463
|
-
|
|
71
|
+
MIT
|
package/README.npm.md
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# smoothui-cli
|
|
2
|
+
|
|
3
|
+
CLI to install [SmoothUI](https://smoothui.dev) components - beautifully designed React components with smooth animations.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx smoothui-cli add siri-orb
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
### Add components
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
# Add a single component
|
|
17
|
+
npx smoothui-cli add siri-orb
|
|
18
|
+
|
|
19
|
+
# Add multiple components
|
|
20
|
+
npx smoothui-cli add siri-orb grid-loader animated-tabs
|
|
21
|
+
|
|
22
|
+
# Interactive mode - browse and select
|
|
23
|
+
npx smoothui-cli add
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### List components
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# Show all available components
|
|
30
|
+
npx smoothui-cli list
|
|
31
|
+
|
|
32
|
+
# JSON output
|
|
33
|
+
npx smoothui-cli list --json
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Options
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
# Custom install path
|
|
40
|
+
npx smoothui-cli add siri-orb --path src/components/ui
|
|
41
|
+
|
|
42
|
+
# Force overwrite existing files
|
|
43
|
+
npx smoothui-cli add siri-orb --force
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Features
|
|
47
|
+
|
|
48
|
+
- Interactive component picker with search and categories
|
|
49
|
+
- Auto-detects package manager (npm, pnpm, yarn, bun)
|
|
50
|
+
- Auto-detects component paths and tsconfig aliases
|
|
51
|
+
- Shows dependency tree before installation
|
|
52
|
+
- Handles file conflicts with overwrite prompts
|
|
53
|
+
- Auto-installs npm dependencies
|
|
54
|
+
|
|
55
|
+
## Alternative: shadcn CLI
|
|
56
|
+
|
|
57
|
+
You can also use the shadcn CLI with the `@smoothui` registry:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
npx shadcn@latest add @smoothui/siri-orb
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Links
|
|
64
|
+
|
|
65
|
+
- [Documentation](https://smoothui.dev)
|
|
66
|
+
- [Components](https://smoothui.dev/docs/components)
|
|
67
|
+
- [GitHub](https://github.com/educlopez/smoothui)
|
|
68
|
+
|
|
69
|
+
## License
|
|
70
|
+
|
|
71
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "smoothui-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"author": "educalvolpz",
|
|
5
5
|
"description": "CLI to install SmoothUI components - beautifully designed React components with smooth animations",
|
|
6
6
|
"private": false,
|
|
@@ -31,6 +31,8 @@
|
|
|
31
31
|
"dist/index.js"
|
|
32
32
|
],
|
|
33
33
|
"scripts": {
|
|
34
|
+
"prepublishOnly": "cp README.md README.github.md && cp README.npm.md README.md",
|
|
35
|
+
"postpublish": "cp README.github.md README.md && rm README.github.md",
|
|
34
36
|
"build": "turbo build",
|
|
35
37
|
"dev": "turbo dev",
|
|
36
38
|
"check": "ultracite check",
|