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.
- package/README.md +52 -0
- package/components.json +21 -0
- package/eslint.config.js +28 -0
- package/index.html +13 -0
- package/package.json +55 -0
- package/postcss.config.js +6 -0
- package/public/vite.svg +1 -0
- package/src/App.css +5 -0
- package/src/App.tsx +14 -0
- package/src/assets/react.svg +1 -0
- package/src/components/ui/accordion.tsx +58 -0
- package/src/components/ui/alert-dialog.tsx +141 -0
- package/src/components/ui/alert.tsx +59 -0
- package/src/components/ui/aspect-ratio.tsx +7 -0
- package/src/components/ui/avatar.tsx +50 -0
- package/src/components/ui/badge.tsx +36 -0
- package/src/components/ui/breadcrumb.tsx +115 -0
- package/src/components/ui/button.tsx +57 -0
- package/src/components/ui/calendar.tsx +66 -0
- package/src/components/ui/card.tsx +79 -0
- package/src/components/ui/carousel.tsx +262 -0
- package/src/components/ui/chart.tsx +365 -0
- package/src/components/ui/checkbox.tsx +30 -0
- package/src/components/ui/collapsible.tsx +11 -0
- package/src/components/ui/command.tsx +155 -0
- package/src/components/ui/context-menu.tsx +200 -0
- package/src/components/ui/dialog.tsx +122 -0
- package/src/components/ui/drawer.tsx +118 -0
- package/src/components/ui/dropdown-menu.tsx +200 -0
- package/src/components/ui/form.tsx +178 -0
- package/src/components/ui/hover-card.tsx +29 -0
- package/src/components/ui/input-otp.tsx +71 -0
- package/src/components/ui/input.tsx +25 -0
- package/src/components/ui/label.tsx +26 -0
- package/src/components/ui/menubar.tsx +236 -0
- package/src/components/ui/navigation-menu.tsx +128 -0
- package/src/components/ui/pagination.tsx +67 -0
- package/src/components/ui/popover.tsx +31 -0
- package/src/components/ui/progress.tsx +28 -0
- package/src/components/ui/radio-group.tsx +44 -0
- package/src/components/ui/resizable.tsx +45 -0
- package/src/components/ui/scroll-area.tsx +48 -0
- package/src/components/ui/select.tsx +160 -0
- package/src/components/ui/separator.tsx +31 -0
- package/src/components/ui/sheet.tsx +140 -0
- package/src/components/ui/skeleton.tsx +15 -0
- package/src/components/ui/slider.tsx +28 -0
- package/src/components/ui/sonner.tsx +31 -0
- package/src/components/ui/switch.tsx +29 -0
- package/src/components/ui/table.tsx +117 -0
- package/src/components/ui/tabs.tsx +55 -0
- package/src/components/ui/textarea.tsx +24 -0
- package/src/components/ui/toast.tsx +129 -0
- package/src/components/ui/toaster.tsx +35 -0
- package/src/components/ui/toggle-group.tsx +61 -0
- package/src/components/ui/toggle.tsx +45 -0
- package/src/components/ui/tooltip.tsx +30 -0
- package/src/index.css +93 -0
- package/src/lib/utils.ts +6 -0
- package/src/main.tsx +10 -0
- package/src/vite-env.d.ts +1 -0
- package/tailwind.config.js +57 -0
- package/tsconfig.app.json +32 -0
- package/tsconfig.json +17 -0
- package/tsconfig.node.json +24 -0
- 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,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