howone 0.0.3 → 0.0.6
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/package.json +1 -1
- package/templates/nextjs/.prettierignore +7 -0
- package/templates/nextjs/.prettierrc +11 -0
- package/templates/nextjs/README.md +12 -27
- package/templates/nextjs/app/globals.css +123 -40
- package/templates/nextjs/app/layout.tsx +19 -19
- package/templates/nextjs/app/page.tsx +13 -60
- package/templates/nextjs/bun.lock +925 -53
- package/templates/nextjs/components/.gitkeep +0 -0
- package/templates/nextjs/components/theme-provider.tsx +71 -0
- package/templates/nextjs/components/ui/accordion.tsx +81 -0
- package/templates/nextjs/components/ui/alert-dialog.tsx +199 -0
- package/templates/nextjs/components/ui/alert.tsx +76 -0
- package/templates/nextjs/components/ui/aspect-ratio.tsx +11 -0
- package/templates/nextjs/components/ui/avatar.tsx +112 -0
- package/templates/nextjs/components/ui/badge.tsx +49 -0
- package/templates/nextjs/components/ui/breadcrumb.tsx +122 -0
- package/templates/nextjs/components/ui/button-group.tsx +83 -0
- package/templates/nextjs/components/ui/button.tsx +67 -0
- package/templates/nextjs/components/ui/calendar.tsx +222 -0
- package/templates/nextjs/components/ui/card.tsx +103 -0
- package/templates/nextjs/components/ui/carousel.tsx +242 -0
- package/templates/nextjs/components/ui/chart.tsx +373 -0
- package/templates/nextjs/components/ui/checkbox.tsx +33 -0
- package/templates/nextjs/components/ui/collapsible.tsx +33 -0
- package/templates/nextjs/components/ui/combobox.tsx +299 -0
- package/templates/nextjs/components/ui/command.tsx +195 -0
- package/templates/nextjs/components/ui/context-menu.tsx +263 -0
- package/templates/nextjs/components/ui/dialog.tsx +168 -0
- package/templates/nextjs/components/ui/direction.tsx +22 -0
- package/templates/nextjs/components/ui/drawer.tsx +134 -0
- package/templates/nextjs/components/ui/dropdown-menu.tsx +269 -0
- package/templates/nextjs/components/ui/empty.tsx +104 -0
- package/templates/nextjs/components/ui/field.tsx +238 -0
- package/templates/nextjs/components/ui/hover-card.tsx +44 -0
- package/templates/nextjs/components/ui/input-group.tsx +156 -0
- package/templates/nextjs/components/ui/input-otp.tsx +87 -0
- package/templates/nextjs/components/ui/input.tsx +19 -0
- package/templates/nextjs/components/ui/item.tsx +196 -0
- package/templates/nextjs/components/ui/kbd.tsx +26 -0
- package/templates/nextjs/components/ui/label.tsx +24 -0
- package/templates/nextjs/components/ui/menubar.tsx +280 -0
- package/templates/nextjs/components/ui/native-select.tsx +61 -0
- package/templates/nextjs/components/ui/navigation-menu.tsx +164 -0
- package/templates/nextjs/components/ui/pagination.tsx +129 -0
- package/templates/nextjs/components/ui/popover.tsx +89 -0
- package/templates/nextjs/components/ui/progress.tsx +31 -0
- package/templates/nextjs/components/ui/radio-group.tsx +44 -0
- package/templates/nextjs/components/ui/resizable.tsx +50 -0
- package/templates/nextjs/components/ui/scroll-area.tsx +55 -0
- package/templates/nextjs/components/ui/select.tsx +192 -0
- package/templates/nextjs/components/ui/separator.tsx +28 -0
- package/templates/nextjs/components/ui/sheet.tsx +147 -0
- package/templates/nextjs/components/ui/sidebar.tsx +702 -0
- package/templates/nextjs/components/ui/skeleton.tsx +13 -0
- package/templates/nextjs/components/ui/slider.tsx +59 -0
- package/templates/nextjs/components/ui/sonner.tsx +49 -0
- package/templates/nextjs/components/ui/spinner.tsx +10 -0
- package/templates/nextjs/components/ui/switch.tsx +33 -0
- package/templates/nextjs/components/ui/table.tsx +116 -0
- package/templates/nextjs/components/ui/tabs.tsx +90 -0
- package/templates/nextjs/components/ui/textarea.tsx +18 -0
- package/templates/nextjs/components/ui/toggle-group.tsx +89 -0
- package/templates/nextjs/components/ui/toggle.tsx +47 -0
- package/templates/nextjs/components/ui/tooltip.tsx +57 -0
- package/templates/nextjs/components.json +25 -0
- package/templates/nextjs/hooks/.gitkeep +0 -0
- package/templates/nextjs/hooks/use-mobile.ts +19 -0
- package/templates/nextjs/lib/.gitkeep +0 -0
- package/templates/nextjs/lib/sdk.ts +7 -0
- package/templates/nextjs/lib/utils.ts +6 -0
- package/templates/nextjs/next.config.mjs +4 -0
- package/templates/vite/.prettierignore +7 -0
- package/templates/vite/.prettierrc +11 -0
- package/templates/vite/AGENTS.md +0 -0
- package/templates/vite/README.md +12 -64
- package/templates/vite/bun.lock +1478 -0
- package/templates/vite/components.json +25 -0
- package/templates/vite/eslint.config.js +1 -0
- package/templates/vite/index.html +2 -2
- package/templates/vite/package.json +39 -13
- package/templates/vite/public/vite.svg +1 -0
- package/templates/vite/src/App.tsx +6 -115
- package/templates/vite/src/components/theme-provider.tsx +230 -0
- package/templates/vite/src/components/ui/accordion.tsx +79 -0
- package/templates/vite/src/components/ui/alert-dialog.tsx +197 -0
- package/templates/vite/src/components/ui/alert.tsx +76 -0
- package/templates/vite/src/components/ui/aspect-ratio.tsx +11 -0
- package/templates/vite/src/components/ui/avatar.tsx +110 -0
- package/templates/vite/src/components/ui/badge.tsx +49 -0
- package/templates/vite/src/components/ui/breadcrumb.tsx +122 -0
- package/templates/vite/src/components/ui/button-group.tsx +83 -0
- package/templates/vite/src/components/ui/button.tsx +67 -0
- package/templates/vite/src/components/ui/calendar.tsx +222 -0
- package/templates/vite/src/components/ui/card.tsx +103 -0
- package/templates/vite/src/components/ui/carousel.tsx +240 -0
- package/templates/vite/src/components/ui/chart.tsx +373 -0
- package/templates/vite/src/components/ui/checkbox.tsx +31 -0
- package/templates/vite/src/components/ui/collapsible.tsx +33 -0
- package/templates/vite/src/components/ui/combobox.tsx +299 -0
- package/templates/vite/src/components/ui/command.tsx +193 -0
- package/templates/vite/src/components/ui/context-menu.tsx +261 -0
- package/templates/vite/src/components/ui/dialog.tsx +168 -0
- package/templates/vite/src/components/ui/direction.tsx +22 -0
- package/templates/vite/src/components/ui/drawer.tsx +132 -0
- package/templates/vite/src/components/ui/dropdown-menu.tsx +269 -0
- package/templates/vite/src/components/ui/empty.tsx +104 -0
- package/templates/vite/src/components/ui/field.tsx +238 -0
- package/templates/vite/src/components/ui/hover-card.tsx +42 -0
- package/templates/vite/src/components/ui/input-group.tsx +154 -0
- package/templates/vite/src/components/ui/input-otp.tsx +87 -0
- package/templates/vite/src/components/ui/input.tsx +19 -0
- package/templates/vite/src/components/ui/item.tsx +196 -0
- package/templates/vite/src/components/ui/kbd.tsx +26 -0
- package/templates/vite/src/components/ui/label.tsx +22 -0
- package/templates/vite/src/components/ui/menubar.tsx +280 -0
- package/templates/vite/src/components/ui/native-select.tsx +61 -0
- package/templates/vite/src/components/ui/navigation-menu.tsx +164 -0
- package/templates/vite/src/components/ui/pagination.tsx +129 -0
- package/templates/vite/src/components/ui/popover.tsx +87 -0
- package/templates/vite/src/components/ui/progress.tsx +31 -0
- package/templates/vite/src/components/ui/radio-group.tsx +42 -0
- package/templates/vite/src/components/ui/resizable.tsx +50 -0
- package/templates/vite/src/components/ui/scroll-area.tsx +53 -0
- package/templates/vite/src/components/ui/select.tsx +192 -0
- package/templates/vite/src/components/ui/separator.tsx +26 -0
- package/templates/vite/src/components/ui/sheet.tsx +145 -0
- package/templates/vite/src/components/ui/sidebar.tsx +700 -0
- package/templates/vite/src/components/ui/skeleton.tsx +13 -0
- package/templates/vite/src/components/ui/slider.tsx +59 -0
- package/templates/vite/src/components/ui/sonner.tsx +47 -0
- package/templates/vite/src/components/ui/spinner.tsx +10 -0
- package/templates/vite/src/components/ui/switch.tsx +33 -0
- package/templates/vite/src/components/ui/table.tsx +114 -0
- package/templates/vite/src/components/ui/tabs.tsx +90 -0
- package/templates/vite/src/components/ui/textarea.tsx +18 -0
- package/templates/vite/src/components/ui/toggle-group.tsx +89 -0
- package/templates/vite/src/components/ui/toggle.tsx +45 -0
- package/templates/vite/src/components/ui/tooltip.tsx +57 -0
- package/templates/vite/src/hooks/use-mobile.ts +19 -0
- package/templates/vite/src/index.css +125 -103
- package/templates/vite/src/lib/sdk.ts +7 -0
- package/templates/vite/src/lib/utils.ts +6 -0
- package/templates/vite/src/main.tsx +11 -7
- package/templates/vite/tsconfig.app.json +11 -4
- package/templates/vite/tsconfig.json +7 -1
- package/templates/vite/tsconfig.node.json +5 -3
- package/templates/vite/vite.config.ts +10 -3
- package/templates/nextjs/AGENTS.md +0 -5
- package/templates/nextjs/CLAUDE.md +0 -1
- package/templates/nextjs/app/page.module.css +0 -142
- package/templates/nextjs/gitignore +0 -41
- package/templates/nextjs/next-env.d.ts +0 -6
- package/templates/nextjs/next.config.ts +0 -7
- package/templates/nextjs/package.json +0 -32
- package/templates/nextjs/public/file.svg +0 -1
- package/templates/nextjs/public/globe.svg +0 -1
- package/templates/nextjs/public/next.svg +0 -1
- package/templates/nextjs/public/vercel.svg +0 -1
- package/templates/nextjs/public/window.svg +0 -1
- package/templates/nextjs/tsconfig.json +0 -34
- package/templates/vite/gitignore +0 -24
- package/templates/vite/public/favicon.svg +0 -1
- package/templates/vite/public/icons.svg +0 -24
- package/templates/vite/src/App.css +0 -184
- package/templates/vite/src/assets/hero.png +0 -0
- package/templates/vite/src/assets/vite.svg +0 -1
package/templates/vite/README.md
CHANGED
|
@@ -1,73 +1,21 @@
|
|
|
1
|
-
# React + TypeScript + Vite
|
|
1
|
+
# React + TypeScript + Vite + shadcn/ui
|
|
2
2
|
|
|
3
|
-
This template
|
|
3
|
+
This is a template for a new Vite project with React, TypeScript, and shadcn/ui.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Adding components
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/)
|
|
7
|
+
To add components to your app, run the following command:
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
|
|
13
|
-
|
|
14
|
-
## Expanding the ESLint configuration
|
|
15
|
-
|
|
16
|
-
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
|
|
17
|
-
|
|
18
|
-
```js
|
|
19
|
-
export default defineConfig([
|
|
20
|
-
globalIgnores(['dist']),
|
|
21
|
-
{
|
|
22
|
-
files: ['**/*.{ts,tsx}'],
|
|
23
|
-
extends: [
|
|
24
|
-
// Other configs...
|
|
25
|
-
|
|
26
|
-
// Remove tseslint.configs.recommended and replace with this
|
|
27
|
-
tseslint.configs.recommendedTypeChecked,
|
|
28
|
-
// Alternatively, use this for stricter rules
|
|
29
|
-
tseslint.configs.strictTypeChecked,
|
|
30
|
-
// Optionally, add this for stylistic rules
|
|
31
|
-
tseslint.configs.stylisticTypeChecked,
|
|
32
|
-
|
|
33
|
-
// Other configs...
|
|
34
|
-
],
|
|
35
|
-
languageOptions: {
|
|
36
|
-
parserOptions: {
|
|
37
|
-
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
38
|
-
tsconfigRootDir: import.meta.dirname,
|
|
39
|
-
},
|
|
40
|
-
// other options...
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
])
|
|
9
|
+
```bash
|
|
10
|
+
npx shadcn@latest add button
|
|
44
11
|
```
|
|
45
12
|
|
|
46
|
-
|
|
13
|
+
This will place the ui components in the `src/components` directory.
|
|
14
|
+
|
|
15
|
+
## Using components
|
|
47
16
|
|
|
48
|
-
|
|
49
|
-
// eslint.config.js
|
|
50
|
-
import reactX from 'eslint-plugin-react-x'
|
|
51
|
-
import reactDom from 'eslint-plugin-react-dom'
|
|
17
|
+
To use the components in your app, import them as follows:
|
|
52
18
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
{
|
|
56
|
-
files: ['**/*.{ts,tsx}'],
|
|
57
|
-
extends: [
|
|
58
|
-
// Other configs...
|
|
59
|
-
// Enable lint rules for React
|
|
60
|
-
reactX.configs['recommended-typescript'],
|
|
61
|
-
// Enable lint rules for React DOM
|
|
62
|
-
reactDom.configs.recommended,
|
|
63
|
-
],
|
|
64
|
-
languageOptions: {
|
|
65
|
-
parserOptions: {
|
|
66
|
-
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
67
|
-
tsconfigRootDir: import.meta.dirname,
|
|
68
|
-
},
|
|
69
|
-
// other options...
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
])
|
|
19
|
+
```tsx
|
|
20
|
+
import { Button } from "@/components/ui/button"
|
|
73
21
|
```
|