vite-shadcn-ui-cli 1.0.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.
Files changed (66) hide show
  1. package/README.md +52 -0
  2. package/components.json +21 -0
  3. package/eslint.config.js +28 -0
  4. package/index.html +13 -0
  5. package/package.json +55 -0
  6. package/postcss.config.js +6 -0
  7. package/public/vite.svg +1 -0
  8. package/src/App.css +5 -0
  9. package/src/App.tsx +14 -0
  10. package/src/assets/react.svg +1 -0
  11. package/src/components/ui/accordion.tsx +58 -0
  12. package/src/components/ui/alert-dialog.tsx +141 -0
  13. package/src/components/ui/alert.tsx +59 -0
  14. package/src/components/ui/aspect-ratio.tsx +7 -0
  15. package/src/components/ui/avatar.tsx +50 -0
  16. package/src/components/ui/badge.tsx +36 -0
  17. package/src/components/ui/breadcrumb.tsx +115 -0
  18. package/src/components/ui/button.tsx +57 -0
  19. package/src/components/ui/calendar.tsx +66 -0
  20. package/src/components/ui/card.tsx +79 -0
  21. package/src/components/ui/carousel.tsx +262 -0
  22. package/src/components/ui/chart.tsx +365 -0
  23. package/src/components/ui/checkbox.tsx +30 -0
  24. package/src/components/ui/collapsible.tsx +11 -0
  25. package/src/components/ui/command.tsx +155 -0
  26. package/src/components/ui/context-menu.tsx +200 -0
  27. package/src/components/ui/dialog.tsx +122 -0
  28. package/src/components/ui/drawer.tsx +118 -0
  29. package/src/components/ui/dropdown-menu.tsx +200 -0
  30. package/src/components/ui/form.tsx +178 -0
  31. package/src/components/ui/hover-card.tsx +29 -0
  32. package/src/components/ui/input-otp.tsx +71 -0
  33. package/src/components/ui/input.tsx +25 -0
  34. package/src/components/ui/label.tsx +26 -0
  35. package/src/components/ui/menubar.tsx +236 -0
  36. package/src/components/ui/navigation-menu.tsx +128 -0
  37. package/src/components/ui/pagination.tsx +67 -0
  38. package/src/components/ui/popover.tsx +31 -0
  39. package/src/components/ui/progress.tsx +28 -0
  40. package/src/components/ui/radio-group.tsx +44 -0
  41. package/src/components/ui/resizable.tsx +45 -0
  42. package/src/components/ui/scroll-area.tsx +48 -0
  43. package/src/components/ui/select.tsx +160 -0
  44. package/src/components/ui/separator.tsx +31 -0
  45. package/src/components/ui/sheet.tsx +140 -0
  46. package/src/components/ui/skeleton.tsx +15 -0
  47. package/src/components/ui/slider.tsx +28 -0
  48. package/src/components/ui/sonner.tsx +31 -0
  49. package/src/components/ui/switch.tsx +29 -0
  50. package/src/components/ui/table.tsx +117 -0
  51. package/src/components/ui/tabs.tsx +55 -0
  52. package/src/components/ui/textarea.tsx +24 -0
  53. package/src/components/ui/toast.tsx +129 -0
  54. package/src/components/ui/toaster.tsx +35 -0
  55. package/src/components/ui/toggle-group.tsx +61 -0
  56. package/src/components/ui/toggle.tsx +45 -0
  57. package/src/components/ui/tooltip.tsx +30 -0
  58. package/src/index.css +93 -0
  59. package/src/lib/utils.ts +6 -0
  60. package/src/main.tsx +10 -0
  61. package/src/vite-env.d.ts +1 -0
  62. package/tailwind.config.js +57 -0
  63. package/tsconfig.app.json +32 -0
  64. package/tsconfig.json +17 -0
  65. package/tsconfig.node.json +24 -0
  66. package/vite.config.ts +12 -0
@@ -0,0 +1,57 @@
1
+ /** @type {import('tailwindcss').Config} */
2
+ module.exports = {
3
+ darkMode: ['class'],
4
+ content: ['./index.html', './src/**/*.{ts,tsx,js,jsx}'],
5
+ theme: {
6
+ extend: {
7
+ borderRadius: {
8
+ lg: 'var(--radius)',
9
+ md: 'calc(var(--radius) - 2px)',
10
+ sm: 'calc(var(--radius) - 4px)'
11
+ },
12
+ colors: {
13
+ background: 'hsl(var(--background))',
14
+ foreground: 'hsl(var(--foreground))',
15
+ card: {
16
+ DEFAULT: 'hsl(var(--card))',
17
+ foreground: 'hsl(var(--card-foreground))'
18
+ },
19
+ popover: {
20
+ DEFAULT: 'hsl(var(--popover))',
21
+ foreground: 'hsl(var(--popover-foreground))'
22
+ },
23
+ primary: {
24
+ DEFAULT: 'hsl(var(--primary))',
25
+ foreground: 'hsl(var(--primary-foreground))'
26
+ },
27
+ secondary: {
28
+ DEFAULT: 'hsl(var(--secondary))',
29
+ foreground: 'hsl(var(--secondary-foreground))'
30
+ },
31
+ muted: {
32
+ DEFAULT: 'hsl(var(--muted))',
33
+ foreground: 'hsl(var(--muted-foreground))'
34
+ },
35
+ accent: {
36
+ DEFAULT: 'hsl(var(--accent))',
37
+ foreground: 'hsl(var(--accent-foreground))'
38
+ },
39
+ destructive: {
40
+ DEFAULT: 'hsl(var(--destructive))',
41
+ foreground: 'hsl(var(--destructive-foreground))'
42
+ },
43
+ border: 'hsl(var(--border))',
44
+ input: 'hsl(var(--input))',
45
+ ring: 'hsl(var(--ring))',
46
+ chart: {
47
+ '1': 'hsl(var(--chart-1))',
48
+ '2': 'hsl(var(--chart-2))',
49
+ '3': 'hsl(var(--chart-3))',
50
+ '4': 'hsl(var(--chart-4))',
51
+ '5': 'hsl(var(--chart-5))'
52
+ }
53
+ }
54
+ }
55
+ },
56
+ plugins: [require("tailwindcss-animate")],
57
+ };
@@ -0,0 +1,32 @@
1
+ {
2
+ "compilerOptions": {
3
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
4
+ "target": "ES2020",
5
+ "useDefineForClassFields": true,
6
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
7
+ "module": "ESNext",
8
+ "skipLibCheck": true,
9
+
10
+ /* Bundler mode */
11
+ "moduleResolution": "bundler",
12
+ "allowImportingTsExtensions": true,
13
+ "isolatedModules": true,
14
+ "moduleDetection": "force",
15
+ "noEmit": true,
16
+ "jsx": "react-jsx",
17
+
18
+ /* Linting */
19
+ "strict": true,
20
+ "noUnusedLocals": true,
21
+ "noUnusedParameters": true,
22
+ "noFallthroughCasesInSwitch": true,
23
+ "noUncheckedSideEffectImports": true,
24
+ "baseUrl": ".",
25
+ "paths": {
26
+ "@/*": [
27
+ "./src/*"
28
+ ]
29
+ }
30
+ },
31
+ "include": ["src"]
32
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "files": [],
3
+ "references": [
4
+ {
5
+ "path": "./tsconfig.app.json"
6
+ },
7
+ {
8
+ "path": "./tsconfig.node.json"
9
+ }
10
+ ],
11
+ "compilerOptions": {
12
+ "baseUrl": ".",
13
+ "paths": {
14
+ "@/*": ["./src/*"]
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "compilerOptions": {
3
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
4
+ "target": "ES2022",
5
+ "lib": ["ES2023"],
6
+ "module": "ESNext",
7
+ "skipLibCheck": true,
8
+
9
+ /* Bundler mode */
10
+ "moduleResolution": "bundler",
11
+ "allowImportingTsExtensions": true,
12
+ "isolatedModules": true,
13
+ "moduleDetection": "force",
14
+ "noEmit": true,
15
+
16
+ /* Linting */
17
+ "strict": true,
18
+ "noUnusedLocals": true,
19
+ "noUnusedParameters": true,
20
+ "noFallthroughCasesInSwitch": true,
21
+ "noUncheckedSideEffectImports": true
22
+ },
23
+ "include": ["vite.config.ts"]
24
+ }
package/vite.config.ts ADDED
@@ -0,0 +1,12 @@
1
+ import path from "path"
2
+ import react from "@vitejs/plugin-react"
3
+ import { defineConfig } from "vite"
4
+
5
+ export default defineConfig({
6
+ plugins: [react()],
7
+ resolve: {
8
+ alias: {
9
+ "@": path.resolve(__dirname, "./src"),
10
+ },
11
+ },
12
+ })