create-huenei-template 0.2.6 → 0.2.7
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/dist/templates/README.md +156 -0
- package/dist/templates/backend/README.md +108 -0
- package/dist/templates/backend/nestjs-api-mysql/package.json +106 -106
- package/dist/templates/backend/nestjs-api-postgres/package.json +106 -106
- package/dist/templates/backend/nestjs-api-sqlite/package.json +104 -104
- package/dist/templates/frontend/README.md +69 -0
- package/dist/templates/frontend/angular-base/README.md +188 -192
- package/dist/templates/frontend/angular-base/package.json +92 -92
- package/dist/templates/frontend/angular-nx/package.json +102 -102
- package/dist/templates/frontend/react-vite/.cursor/agents/frontend-senior.agent.md +49 -0
- package/dist/templates/frontend/react-vite/.cursor/agents/qa-test-expert.agent.md +49 -0
- package/dist/templates/frontend/react-vite/.cursor/agents/security-expert.agent.md +39 -0
- package/dist/templates/frontend/react-vite/.cursor/agents/ux-ui-expert.agent.md +45 -0
- package/dist/templates/frontend/react-vite/.cursor/hooks/ensureTestsExist.ts +220 -0
- package/dist/templates/frontend/react-vite/.cursor/hooks.json +10 -0
- package/dist/templates/frontend/react-vite/.cursor/rules/architech.mdc +35 -20
- package/dist/templates/frontend/react-vite/.cursor/settings.json +13 -0
- package/dist/templates/frontend/react-vite/.husky/pre-commit +1 -0
- package/dist/templates/frontend/react-vite/.vscode/settings.json +31 -0
- package/dist/templates/frontend/react-vite/README.md +238 -61
- package/dist/templates/frontend/react-vite/package.json +82 -62
- package/dist/templates/frontend/react-vite/pnpm-lock.yaml +2877 -789
- package/dist/templates/frontend/react-vite/pnpm-workspace.yaml +5 -2
- package/dist/templates/frontend/react-vite/src/components/layout/navbar.tsx +38 -0
- package/dist/templates/frontend/react-vite/src/components/ui/avatar.tsx +42 -0
- package/dist/templates/frontend/react-vite/src/components/ui/dialog.tsx +122 -0
- package/dist/templates/frontend/react-vite/src/components/ui/table.tsx +244 -0
- package/dist/templates/frontend/react-vite/src/hooks/useLocalStorage.ts +32 -0
- package/dist/templates/frontend/react-vite/src/index.css +27 -27
- package/dist/templates/frontend/react-vite/src/routes/__root.tsx +21 -55
- package/dist/templates/frontend/react-vite/src/routes/ui-components.tsx +1031 -0
- package/dist/templates/frontend/react-vite/src/test/setup.ts +61 -1
- package/dist/templates/frontend/react-vite/vite.config.ts +6 -1
- package/dist/templates/frontend/react-vite/vitest.config.ts +27 -0
- package/dist/templates/frontend/react-vite-help/.cursor/agents/frontend-senior.agent.md +49 -0
- package/dist/templates/frontend/react-vite-help/.cursor/agents/qa-test-expert.agent.md +49 -0
- package/dist/templates/frontend/react-vite-help/.cursor/agents/security-expert.agent.md +39 -0
- package/dist/templates/frontend/react-vite-help/.cursor/agents/ux-ui-expert.agent.md +45 -0
- package/dist/templates/frontend/react-vite-help/.cursor/hooks/ensureTestsExist.ts +220 -0
- package/dist/templates/frontend/react-vite-help/.cursor/hooks.json +10 -0
- package/dist/templates/frontend/react-vite-help/.cursor/mcp.json +1 -1
- package/dist/templates/frontend/react-vite-help/.cursor/rules/architech.mdc +33 -23
- package/dist/templates/frontend/react-vite-help/.cursor/settings.json +13 -0
- package/dist/templates/frontend/react-vite-help/.husky/pre-commit +1 -0
- package/dist/templates/frontend/react-vite-help/README.md +287 -61
- package/dist/templates/frontend/react-vite-help/package.json +82 -62
- package/dist/templates/frontend/react-vite-help/pnpm-lock.yaml +6319 -4487
- package/dist/templates/frontend/react-vite-help/pnpm-workspace.yaml +5 -2
- package/dist/templates/frontend/react-vite-help/src/__tests__/components/documentacion/tabs.test.tsx +95 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/components/layout/navbar.test.tsx +96 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/components/layout/sidebar.test.tsx +68 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/avatar.test.tsx +53 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/badge.test.tsx +50 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/breadcrumb.test.tsx +95 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/button.test.tsx +76 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/card.test.tsx +95 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/dialog.test.tsx +83 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/form.test.tsx +130 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/input.test.tsx +39 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/label.test.tsx +25 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/password-input.test.tsx +45 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/separator.test.tsx +35 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/table.test.tsx +126 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/tabs.test.tsx +66 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/textarea.test.tsx +34 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/data/dashboard.test.ts +100 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/data/proyectos-seed.test.ts +51 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/hooks/useAuth.test.tsx +135 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/hooks/useLocalStorage.test.ts +89 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/lib/auth.test.ts +102 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/lib/queryClient.test.ts +24 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/lib/utils.test.ts +31 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/routes/__root.test.tsx +72 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/routes/_authenticated/dashboard.test.tsx +106 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/routes/_authenticated/perfil.test.tsx +54 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/routes/_authenticated/proyectos-crud.test.tsx +272 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/routes/_authenticated/ui-components.test.tsx +150 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/routes/_authenticated.test.tsx +58 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/routes/auth/iniciar-sesion.test.tsx +107 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/routes/auth/recuperar-password.test.tsx +56 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/routes/auth/registro.test.tsx +106 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/routes/contacto.test.tsx +219 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/routes/documentacion.test.tsx +81 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/routes/index.test.tsx +69 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/routes/proyectos-detalle.test.tsx +90 -0
- package/dist/templates/frontend/react-vite-help/src/__tests__/routes/proyectos.test.tsx +74 -0
- package/dist/templates/frontend/react-vite-help/src/components/documentacion/inicio.tsx +1 -0
- package/dist/templates/frontend/react-vite-help/src/components/documentacion/stack.tsx +100 -1
- package/dist/templates/frontend/react-vite-help/src/components/layout/navbar.tsx +75 -0
- package/dist/templates/frontend/react-vite-help/src/components/layout/sidebar.tsx +101 -0
- package/dist/templates/frontend/react-vite-help/src/components/ui/avatar.tsx +42 -0
- package/dist/templates/frontend/react-vite-help/src/components/ui/breadcrumb.tsx +106 -106
- package/dist/templates/frontend/react-vite-help/src/components/ui/dialog.tsx +122 -0
- package/dist/templates/frontend/react-vite-help/src/components/ui/table.tsx +244 -0
- package/dist/templates/frontend/react-vite-help/src/data/dashboard.ts +255 -0
- package/dist/templates/frontend/react-vite-help/src/data/proyectos-seed.ts +87 -0
- package/dist/templates/frontend/react-vite-help/src/hooks/useAuth.tsx +73 -0
- package/dist/templates/frontend/react-vite-help/src/hooks/useLocalStorage.ts +32 -0
- package/dist/templates/frontend/react-vite-help/src/index.css +104 -104
- package/dist/templates/frontend/react-vite-help/src/lib/auth.ts +126 -0
- package/dist/templates/frontend/react-vite-help/src/main.tsx +54 -33
- package/dist/templates/frontend/react-vite-help/src/router.tsx +8 -0
- package/dist/templates/frontend/react-vite-help/src/routes/__root.tsx +21 -59
- package/dist/templates/frontend/react-vite-help/src/routes/_authenticated/dashboard.tsx +413 -0
- package/dist/templates/frontend/react-vite-help/src/routes/_authenticated/perfil.tsx +71 -0
- package/dist/templates/frontend/react-vite-help/src/routes/_authenticated/proyectos-crud.tsx +559 -0
- package/dist/templates/frontend/react-vite-help/src/routes/_authenticated/ui-components.tsx +1054 -0
- package/dist/templates/frontend/react-vite-help/src/routes/_authenticated.tsx +39 -0
- package/dist/templates/frontend/react-vite-help/src/routes/auth/iniciar-sesion.tsx +50 -26
- package/dist/templates/frontend/react-vite-help/src/routes/auth/recuperar-password.tsx +107 -0
- package/dist/templates/frontend/react-vite-help/src/routes/contacto.tsx +839 -37
- package/dist/templates/frontend/react-vite-help/src/routes/index.tsx +16 -13
- package/dist/templates/frontend/react-vite-help/src/routes/proyectos.$proyectoId.tsx +11 -14
- package/dist/templates/frontend/react-vite-help/src/routes/proyectos.tsx +16 -20
- package/dist/templates/frontend/react-vite-help/src/test/mocks/recharts.tsx +35 -0
- package/dist/templates/frontend/react-vite-help/src/test/mocks/router.ts +27 -0
- package/dist/templates/frontend/react-vite-help/src/test/setup.ts +61 -1
- package/dist/templates/frontend/react-vite-help/src/test/utils.tsx +57 -0
- package/dist/templates/frontend/react-vite-help/vite.config.ts +30 -22
- package/dist/templates/frontend/react-vite-help/vitest.config.ts +44 -9
- package/dist/templates/mobile/README.md +83 -0
- package/dist/templates/mobile/expo-base/.cursor/agents/api-integration.md +139 -0
- package/dist/templates/mobile/expo-base/.cursor/agents/feature-architect.md +131 -0
- package/dist/templates/mobile/expo-base/.cursor/agents/i18n-manager.md +147 -0
- package/dist/templates/mobile/expo-base/.cursor/agents/quality-reviewer.md +137 -0
- package/dist/templates/mobile/expo-base/.cursor/agents/testing-specialist.md +123 -0
- package/dist/templates/mobile/expo-base/.cursor/agents/theme-engineer.md +106 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/accessibility-compliance/SKILL.md +420 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/accessibility-compliance/references/aria-patterns.md +567 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/accessibility-compliance/references/mobile-accessibility.md +538 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/accessibility-compliance/references/wcag-guidelines.md +645 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/auth-implementation-patterns/SKILL.md +647 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/code-review-excellence/SKILL.md +538 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/design-system-patterns/SKILL.md +337 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/design-system-patterns/references/component-architecture.md +617 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/design-system-patterns/references/design-tokens.md +420 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/design-system-patterns/references/theming-architecture.md +521 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/error-handling-patterns/SKILL.md +641 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/eslint-prettier-config/SKILL.md +540 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/expo-deployment/SKILL.md +190 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/expo-deployment/references/app-store-metadata.md +479 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/expo-deployment/references/ios-app-store.md +355 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/expo-deployment/references/play-store.md +246 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/expo-deployment/references/testflight.md +58 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/expo-deployment/references/workflows.md +200 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/github-actions-templates/SKILL.md +334 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/i18n-localization/SKILL.md +154 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/i18n-localization/scripts/i18n_checker.py +241 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/jest-typescript/SKILL.md +1092 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/maestro-mobile-testing/SKILL.md +982 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/mobile-security-coder/SKILL.md +184 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/GENERATION.md +5 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/SKILL.md +42 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/best-practices-ci.md +285 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/best-practices-migration.md +291 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/best-practices-performance.md +284 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/core-cli.md +229 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/core-config.md +188 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/core-store.md +179 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/core-workspaces.md +205 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/features-aliases.md +168 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/features-catalogs.md +159 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/features-hooks.md +233 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/features-overrides.md +184 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/features-patches.md +201 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/features-peer-deps.md +250 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/react-native-architecture/SKILL.md +673 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/react-native-design/SKILL.md +440 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/react-native-design/references/navigation-patterns.md +832 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/react-native-design/references/reanimated-patterns.md +775 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/react-native-design/references/styling-patterns.md +871 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/react-state-management/SKILL.md +437 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/reanimated-skia-performance/SKILL.md +190 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/reanimated-skia-performance/references/dev-tuning.md +167 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/reanimated-skia-performance/references/perf-checklist.md +40 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/reanimated-skia-performance/references/reanimated-v4.md +108 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/reanimated-skia-performance/references/skia-shaders.md +66 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/systematic-debugging/CREATION-LOG.md +119 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/systematic-debugging/SKILL.md +296 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/systematic-debugging/condition-based-waiting.md +115 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/systematic-debugging/defense-in-depth.md +122 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/systematic-debugging/find-polluter.sh +63 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/systematic-debugging/root-cause-tracing.md +169 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/systematic-debugging/test-academic.md +14 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/systematic-debugging/test-pressure-1.md +58 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/systematic-debugging/test-pressure-2.md +68 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/systematic-debugging/test-pressure-3.md +69 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/tanstack-query/.claude-plugin/plugin.json +12 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/tanstack-query/README.md +228 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/tanstack-query/SKILL.md +1585 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/test-driven-development/SKILL.md +371 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/test-driven-development/testing-anti-patterns.md +299 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/typescript-advanced-types/SKILL.md +724 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/AGENTS.md +946 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/SKILL.md +89 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/architecture-avoid-boolean-props.md +100 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/architecture-compound-components.md +112 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/patterns-children-over-render-props.md +87 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/patterns-explicit-variants.md +100 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/react19-no-forwardref.md +42 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/state-context-interface.md +191 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/state-decouple-implementation.md +113 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/state-lift-state.md +125 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/AGENTS.md +2897 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/README.md +165 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/SKILL.md +121 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/animation-derived-value.md +53 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/animation-gesture-detector-press.md +95 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/animation-gpu-properties.md +65 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/design-system-compound-components.md +66 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/fonts-config-plugin.md +71 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/imports-design-system-folder.md +68 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/js-hoist-intl.md +61 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-callbacks.md +44 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-function-references.md +132 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-images.md +53 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-inline-objects.md +97 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-item-expensive.md +94 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-item-memo.md +82 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-item-types.md +104 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-virtualize.md +67 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/monorepo-native-deps-in-app.md +46 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/monorepo-single-dependency-versions.md +63 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/navigation-native-navigators.md +188 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/react-compiler-destructure-functions.md +50 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/react-compiler-reanimated-shared-values.md +48 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/react-state-dispatcher.md +91 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/react-state-fallback.md +56 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/react-state-minimize.md +65 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/rendering-no-falsy-and.md +74 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/rendering-text-in-text-component.md +36 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/scroll-position-no-state.md +82 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/state-ground-truth.md +80 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-expo-image.md +66 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-image-gallery.md +104 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-measure-views.md +78 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-menus.md +174 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-native-modals.md +77 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-pressable.md +61 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-safe-area-scroll.md +65 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-scrollview-content-inset.md +45 -0
- package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-styling.md +87 -0
- package/dist/templates/mobile/expo-base/README.md +112 -2
- package/dist/templates/mobile/expo-base/package.json +74 -74
- package/dist/templates/mobile/expo-base/pnpm-workspace.yaml +7 -4
- package/package.json +26 -25
- package/templates/README.md +156 -0
- package/templates/backend/README.md +108 -0
- package/templates/backend/nestjs-api-mysql/package.json +106 -106
- package/templates/backend/nestjs-api-postgres/package.json +106 -106
- package/templates/backend/nestjs-api-sqlite/package.json +104 -104
- package/templates/frontend/README.md +69 -0
- package/templates/frontend/angular-base/README.md +188 -192
- package/templates/frontend/angular-base/package.json +92 -92
- package/templates/frontend/angular-nx/package.json +102 -102
- package/templates/frontend/react-vite/.cursor/agents/frontend-senior.agent.md +49 -0
- package/templates/frontend/react-vite/.cursor/agents/qa-test-expert.agent.md +49 -0
- package/templates/frontend/react-vite/.cursor/agents/security-expert.agent.md +39 -0
- package/templates/frontend/react-vite/.cursor/agents/ux-ui-expert.agent.md +45 -0
- package/templates/frontend/react-vite/.cursor/hooks/ensureTestsExist.ts +220 -0
- package/templates/frontend/react-vite/.cursor/hooks.json +10 -0
- package/templates/frontend/react-vite/.cursor/rules/architech.mdc +35 -20
- package/templates/frontend/react-vite/.cursor/settings.json +13 -0
- package/templates/frontend/react-vite/.husky/pre-commit +1 -0
- package/templates/frontend/react-vite/.vscode/settings.json +31 -0
- package/templates/frontend/react-vite/README.md +238 -61
- package/templates/frontend/react-vite/package.json +82 -62
- package/templates/frontend/react-vite/pnpm-lock.yaml +2877 -789
- package/templates/frontend/react-vite/pnpm-workspace.yaml +5 -2
- package/templates/frontend/react-vite/src/components/layout/navbar.tsx +38 -0
- package/templates/frontend/react-vite/src/components/ui/avatar.tsx +42 -0
- package/templates/frontend/react-vite/src/components/ui/dialog.tsx +122 -0
- package/templates/frontend/react-vite/src/components/ui/table.tsx +244 -0
- package/templates/frontend/react-vite/src/hooks/useLocalStorage.ts +32 -0
- package/templates/frontend/react-vite/src/index.css +27 -27
- package/templates/frontend/react-vite/src/routes/__root.tsx +21 -55
- package/templates/frontend/react-vite/src/routes/ui-components.tsx +1031 -0
- package/templates/frontend/react-vite/src/test/setup.ts +61 -1
- package/templates/frontend/react-vite/vite.config.ts +6 -1
- package/templates/frontend/react-vite/vitest.config.ts +27 -0
- package/templates/frontend/react-vite-help/.cursor/agents/frontend-senior.agent.md +49 -0
- package/templates/frontend/react-vite-help/.cursor/agents/qa-test-expert.agent.md +49 -0
- package/templates/frontend/react-vite-help/.cursor/agents/security-expert.agent.md +39 -0
- package/templates/frontend/react-vite-help/.cursor/agents/ux-ui-expert.agent.md +45 -0
- package/templates/frontend/react-vite-help/.cursor/hooks/ensureTestsExist.ts +220 -0
- package/templates/frontend/react-vite-help/.cursor/hooks.json +10 -0
- package/templates/frontend/react-vite-help/.cursor/mcp.json +1 -1
- package/templates/frontend/react-vite-help/.cursor/rules/architech.mdc +33 -23
- package/templates/frontend/react-vite-help/.cursor/settings.json +13 -0
- package/templates/frontend/react-vite-help/.husky/pre-commit +1 -0
- package/templates/frontend/react-vite-help/README.md +287 -61
- package/templates/frontend/react-vite-help/package.json +82 -62
- package/templates/frontend/react-vite-help/pnpm-lock.yaml +6319 -4487
- package/templates/frontend/react-vite-help/pnpm-workspace.yaml +5 -2
- package/templates/frontend/react-vite-help/src/__tests__/components/documentacion/tabs.test.tsx +95 -0
- package/templates/frontend/react-vite-help/src/__tests__/components/layout/navbar.test.tsx +96 -0
- package/templates/frontend/react-vite-help/src/__tests__/components/layout/sidebar.test.tsx +68 -0
- package/templates/frontend/react-vite-help/src/__tests__/components/ui/avatar.test.tsx +53 -0
- package/templates/frontend/react-vite-help/src/__tests__/components/ui/badge.test.tsx +50 -0
- package/templates/frontend/react-vite-help/src/__tests__/components/ui/breadcrumb.test.tsx +95 -0
- package/templates/frontend/react-vite-help/src/__tests__/components/ui/button.test.tsx +76 -0
- package/templates/frontend/react-vite-help/src/__tests__/components/ui/card.test.tsx +95 -0
- package/templates/frontend/react-vite-help/src/__tests__/components/ui/dialog.test.tsx +83 -0
- package/templates/frontend/react-vite-help/src/__tests__/components/ui/form.test.tsx +130 -0
- package/templates/frontend/react-vite-help/src/__tests__/components/ui/input.test.tsx +39 -0
- package/templates/frontend/react-vite-help/src/__tests__/components/ui/label.test.tsx +25 -0
- package/templates/frontend/react-vite-help/src/__tests__/components/ui/password-input.test.tsx +45 -0
- package/templates/frontend/react-vite-help/src/__tests__/components/ui/separator.test.tsx +35 -0
- package/templates/frontend/react-vite-help/src/__tests__/components/ui/table.test.tsx +126 -0
- package/templates/frontend/react-vite-help/src/__tests__/components/ui/tabs.test.tsx +66 -0
- package/templates/frontend/react-vite-help/src/__tests__/components/ui/textarea.test.tsx +34 -0
- package/templates/frontend/react-vite-help/src/__tests__/data/dashboard.test.ts +100 -0
- package/templates/frontend/react-vite-help/src/__tests__/data/proyectos-seed.test.ts +51 -0
- package/templates/frontend/react-vite-help/src/__tests__/hooks/useAuth.test.tsx +135 -0
- package/templates/frontend/react-vite-help/src/__tests__/hooks/useLocalStorage.test.ts +89 -0
- package/templates/frontend/react-vite-help/src/__tests__/lib/auth.test.ts +102 -0
- package/templates/frontend/react-vite-help/src/__tests__/lib/queryClient.test.ts +24 -0
- package/templates/frontend/react-vite-help/src/__tests__/lib/utils.test.ts +31 -0
- package/templates/frontend/react-vite-help/src/__tests__/routes/__root.test.tsx +72 -0
- package/templates/frontend/react-vite-help/src/__tests__/routes/_authenticated/dashboard.test.tsx +106 -0
- package/templates/frontend/react-vite-help/src/__tests__/routes/_authenticated/perfil.test.tsx +54 -0
- package/templates/frontend/react-vite-help/src/__tests__/routes/_authenticated/proyectos-crud.test.tsx +272 -0
- package/templates/frontend/react-vite-help/src/__tests__/routes/_authenticated/ui-components.test.tsx +150 -0
- package/templates/frontend/react-vite-help/src/__tests__/routes/_authenticated.test.tsx +58 -0
- package/templates/frontend/react-vite-help/src/__tests__/routes/auth/iniciar-sesion.test.tsx +107 -0
- package/templates/frontend/react-vite-help/src/__tests__/routes/auth/recuperar-password.test.tsx +56 -0
- package/templates/frontend/react-vite-help/src/__tests__/routes/auth/registro.test.tsx +106 -0
- package/templates/frontend/react-vite-help/src/__tests__/routes/contacto.test.tsx +219 -0
- package/templates/frontend/react-vite-help/src/__tests__/routes/documentacion.test.tsx +81 -0
- package/templates/frontend/react-vite-help/src/__tests__/routes/index.test.tsx +69 -0
- package/templates/frontend/react-vite-help/src/__tests__/routes/proyectos-detalle.test.tsx +90 -0
- package/templates/frontend/react-vite-help/src/__tests__/routes/proyectos.test.tsx +74 -0
- package/templates/frontend/react-vite-help/src/components/documentacion/inicio.tsx +1 -0
- package/templates/frontend/react-vite-help/src/components/documentacion/stack.tsx +100 -1
- package/templates/frontend/react-vite-help/src/components/layout/navbar.tsx +75 -0
- package/templates/frontend/react-vite-help/src/components/layout/sidebar.tsx +101 -0
- package/templates/frontend/react-vite-help/src/components/ui/avatar.tsx +42 -0
- package/templates/frontend/react-vite-help/src/components/ui/breadcrumb.tsx +106 -106
- package/templates/frontend/react-vite-help/src/components/ui/dialog.tsx +122 -0
- package/templates/frontend/react-vite-help/src/components/ui/table.tsx +244 -0
- package/templates/frontend/react-vite-help/src/data/dashboard.ts +255 -0
- package/templates/frontend/react-vite-help/src/data/proyectos-seed.ts +87 -0
- package/templates/frontend/react-vite-help/src/hooks/useAuth.tsx +73 -0
- package/templates/frontend/react-vite-help/src/hooks/useLocalStorage.ts +32 -0
- package/templates/frontend/react-vite-help/src/index.css +104 -104
- package/templates/frontend/react-vite-help/src/lib/auth.ts +126 -0
- package/templates/frontend/react-vite-help/src/main.tsx +54 -33
- package/templates/frontend/react-vite-help/src/router.tsx +8 -0
- package/templates/frontend/react-vite-help/src/routes/__root.tsx +21 -59
- package/templates/frontend/react-vite-help/src/routes/_authenticated/dashboard.tsx +413 -0
- package/templates/frontend/react-vite-help/src/routes/_authenticated/perfil.tsx +71 -0
- package/templates/frontend/react-vite-help/src/routes/_authenticated/proyectos-crud.tsx +559 -0
- package/templates/frontend/react-vite-help/src/routes/_authenticated/ui-components.tsx +1054 -0
- package/templates/frontend/react-vite-help/src/routes/_authenticated.tsx +39 -0
- package/templates/frontend/react-vite-help/src/routes/auth/iniciar-sesion.tsx +50 -26
- package/templates/frontend/react-vite-help/src/routes/auth/recuperar-password.tsx +107 -0
- package/templates/frontend/react-vite-help/src/routes/contacto.tsx +839 -37
- package/templates/frontend/react-vite-help/src/routes/index.tsx +16 -13
- package/templates/frontend/react-vite-help/src/routes/proyectos.$proyectoId.tsx +11 -14
- package/templates/frontend/react-vite-help/src/routes/proyectos.tsx +16 -20
- package/templates/frontend/react-vite-help/src/test/mocks/recharts.tsx +35 -0
- package/templates/frontend/react-vite-help/src/test/mocks/router.ts +27 -0
- package/templates/frontend/react-vite-help/src/test/setup.ts +61 -1
- package/templates/frontend/react-vite-help/src/test/utils.tsx +57 -0
- package/templates/frontend/react-vite-help/vite.config.ts +30 -22
- package/templates/frontend/react-vite-help/vitest.config.ts +44 -9
- package/templates/mobile/README.md +83 -0
- package/templates/mobile/expo-base/.cursor/agents/api-integration.md +139 -0
- package/templates/mobile/expo-base/.cursor/agents/feature-architect.md +131 -0
- package/templates/mobile/expo-base/.cursor/agents/i18n-manager.md +147 -0
- package/templates/mobile/expo-base/.cursor/agents/quality-reviewer.md +137 -0
- package/templates/mobile/expo-base/.cursor/agents/testing-specialist.md +123 -0
- package/templates/mobile/expo-base/.cursor/agents/theme-engineer.md +106 -0
- package/templates/mobile/expo-base/.cursor/skills/accessibility-compliance/SKILL.md +420 -0
- package/templates/mobile/expo-base/.cursor/skills/accessibility-compliance/references/aria-patterns.md +567 -0
- package/templates/mobile/expo-base/.cursor/skills/accessibility-compliance/references/mobile-accessibility.md +538 -0
- package/templates/mobile/expo-base/.cursor/skills/accessibility-compliance/references/wcag-guidelines.md +645 -0
- package/templates/mobile/expo-base/.cursor/skills/auth-implementation-patterns/SKILL.md +647 -0
- package/templates/mobile/expo-base/.cursor/skills/code-review-excellence/SKILL.md +538 -0
- package/templates/mobile/expo-base/.cursor/skills/design-system-patterns/SKILL.md +337 -0
- package/templates/mobile/expo-base/.cursor/skills/design-system-patterns/references/component-architecture.md +617 -0
- package/templates/mobile/expo-base/.cursor/skills/design-system-patterns/references/design-tokens.md +420 -0
- package/templates/mobile/expo-base/.cursor/skills/design-system-patterns/references/theming-architecture.md +521 -0
- package/templates/mobile/expo-base/.cursor/skills/error-handling-patterns/SKILL.md +641 -0
- package/templates/mobile/expo-base/.cursor/skills/eslint-prettier-config/SKILL.md +540 -0
- package/templates/mobile/expo-base/.cursor/skills/expo-deployment/SKILL.md +190 -0
- package/templates/mobile/expo-base/.cursor/skills/expo-deployment/references/app-store-metadata.md +479 -0
- package/templates/mobile/expo-base/.cursor/skills/expo-deployment/references/ios-app-store.md +355 -0
- package/templates/mobile/expo-base/.cursor/skills/expo-deployment/references/play-store.md +246 -0
- package/templates/mobile/expo-base/.cursor/skills/expo-deployment/references/testflight.md +58 -0
- package/templates/mobile/expo-base/.cursor/skills/expo-deployment/references/workflows.md +200 -0
- package/templates/mobile/expo-base/.cursor/skills/github-actions-templates/SKILL.md +334 -0
- package/templates/mobile/expo-base/.cursor/skills/i18n-localization/SKILL.md +154 -0
- package/templates/mobile/expo-base/.cursor/skills/i18n-localization/scripts/i18n_checker.py +241 -0
- package/templates/mobile/expo-base/.cursor/skills/jest-typescript/SKILL.md +1092 -0
- package/templates/mobile/expo-base/.cursor/skills/maestro-mobile-testing/SKILL.md +982 -0
- package/templates/mobile/expo-base/.cursor/skills/mobile-security-coder/SKILL.md +184 -0
- package/templates/mobile/expo-base/.cursor/skills/pnpm/GENERATION.md +5 -0
- package/templates/mobile/expo-base/.cursor/skills/pnpm/SKILL.md +42 -0
- package/templates/mobile/expo-base/.cursor/skills/pnpm/references/best-practices-ci.md +285 -0
- package/templates/mobile/expo-base/.cursor/skills/pnpm/references/best-practices-migration.md +291 -0
- package/templates/mobile/expo-base/.cursor/skills/pnpm/references/best-practices-performance.md +284 -0
- package/templates/mobile/expo-base/.cursor/skills/pnpm/references/core-cli.md +229 -0
- package/templates/mobile/expo-base/.cursor/skills/pnpm/references/core-config.md +188 -0
- package/templates/mobile/expo-base/.cursor/skills/pnpm/references/core-store.md +179 -0
- package/templates/mobile/expo-base/.cursor/skills/pnpm/references/core-workspaces.md +205 -0
- package/templates/mobile/expo-base/.cursor/skills/pnpm/references/features-aliases.md +168 -0
- package/templates/mobile/expo-base/.cursor/skills/pnpm/references/features-catalogs.md +159 -0
- package/templates/mobile/expo-base/.cursor/skills/pnpm/references/features-hooks.md +233 -0
- package/templates/mobile/expo-base/.cursor/skills/pnpm/references/features-overrides.md +184 -0
- package/templates/mobile/expo-base/.cursor/skills/pnpm/references/features-patches.md +201 -0
- package/templates/mobile/expo-base/.cursor/skills/pnpm/references/features-peer-deps.md +250 -0
- package/templates/mobile/expo-base/.cursor/skills/react-native-architecture/SKILL.md +673 -0
- package/templates/mobile/expo-base/.cursor/skills/react-native-design/SKILL.md +440 -0
- package/templates/mobile/expo-base/.cursor/skills/react-native-design/references/navigation-patterns.md +832 -0
- package/templates/mobile/expo-base/.cursor/skills/react-native-design/references/reanimated-patterns.md +775 -0
- package/templates/mobile/expo-base/.cursor/skills/react-native-design/references/styling-patterns.md +871 -0
- package/templates/mobile/expo-base/.cursor/skills/react-state-management/SKILL.md +437 -0
- package/templates/mobile/expo-base/.cursor/skills/reanimated-skia-performance/SKILL.md +190 -0
- package/templates/mobile/expo-base/.cursor/skills/reanimated-skia-performance/references/dev-tuning.md +167 -0
- package/templates/mobile/expo-base/.cursor/skills/reanimated-skia-performance/references/perf-checklist.md +40 -0
- package/templates/mobile/expo-base/.cursor/skills/reanimated-skia-performance/references/reanimated-v4.md +108 -0
- package/templates/mobile/expo-base/.cursor/skills/reanimated-skia-performance/references/skia-shaders.md +66 -0
- package/templates/mobile/expo-base/.cursor/skills/systematic-debugging/CREATION-LOG.md +119 -0
- package/templates/mobile/expo-base/.cursor/skills/systematic-debugging/SKILL.md +296 -0
- package/templates/mobile/expo-base/.cursor/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
- package/templates/mobile/expo-base/.cursor/skills/systematic-debugging/condition-based-waiting.md +115 -0
- package/templates/mobile/expo-base/.cursor/skills/systematic-debugging/defense-in-depth.md +122 -0
- package/templates/mobile/expo-base/.cursor/skills/systematic-debugging/find-polluter.sh +63 -0
- package/templates/mobile/expo-base/.cursor/skills/systematic-debugging/root-cause-tracing.md +169 -0
- package/templates/mobile/expo-base/.cursor/skills/systematic-debugging/test-academic.md +14 -0
- package/templates/mobile/expo-base/.cursor/skills/systematic-debugging/test-pressure-1.md +58 -0
- package/templates/mobile/expo-base/.cursor/skills/systematic-debugging/test-pressure-2.md +68 -0
- package/templates/mobile/expo-base/.cursor/skills/systematic-debugging/test-pressure-3.md +69 -0
- package/templates/mobile/expo-base/.cursor/skills/tanstack-query/.claude-plugin/plugin.json +12 -0
- package/templates/mobile/expo-base/.cursor/skills/tanstack-query/README.md +228 -0
- package/templates/mobile/expo-base/.cursor/skills/tanstack-query/SKILL.md +1585 -0
- package/templates/mobile/expo-base/.cursor/skills/test-driven-development/SKILL.md +371 -0
- package/templates/mobile/expo-base/.cursor/skills/test-driven-development/testing-anti-patterns.md +299 -0
- package/templates/mobile/expo-base/.cursor/skills/typescript-advanced-types/SKILL.md +724 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/AGENTS.md +946 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/SKILL.md +89 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/architecture-avoid-boolean-props.md +100 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/architecture-compound-components.md +112 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/patterns-children-over-render-props.md +87 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/patterns-explicit-variants.md +100 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/react19-no-forwardref.md +42 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/state-context-interface.md +191 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/state-decouple-implementation.md +113 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/state-lift-state.md +125 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/AGENTS.md +2897 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/README.md +165 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/SKILL.md +121 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/animation-derived-value.md +53 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/animation-gesture-detector-press.md +95 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/animation-gpu-properties.md +65 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/design-system-compound-components.md +66 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/fonts-config-plugin.md +71 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/imports-design-system-folder.md +68 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/js-hoist-intl.md +61 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-callbacks.md +44 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-function-references.md +132 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-images.md +53 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-inline-objects.md +97 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-item-expensive.md +94 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-item-memo.md +82 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-item-types.md +104 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-virtualize.md +67 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/monorepo-native-deps-in-app.md +46 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/monorepo-single-dependency-versions.md +63 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/navigation-native-navigators.md +188 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/react-compiler-destructure-functions.md +50 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/react-compiler-reanimated-shared-values.md +48 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/react-state-dispatcher.md +91 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/react-state-fallback.md +56 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/react-state-minimize.md +65 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/rendering-no-falsy-and.md +74 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/rendering-text-in-text-component.md +36 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/scroll-position-no-state.md +82 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/state-ground-truth.md +80 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-expo-image.md +66 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-image-gallery.md +104 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-measure-views.md +78 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-menus.md +174 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-native-modals.md +77 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-pressable.md +61 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-safe-area-scroll.md +65 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-scrollview-content-inset.md +45 -0
- package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-styling.md +87 -0
- package/templates/mobile/expo-base/README.md +112 -2
- package/templates/mobile/expo-base/package.json +74 -74
- package/templates/mobile/expo-base/pnpm-workspace.yaml +7 -4
- package/dist/templates/frontend/angular-base/.agents/skills/angular-component/SKILL.md +0 -288
- package/dist/templates/frontend/angular-base/.agents/skills/angular-component/references/component-patterns.md +0 -358
- package/dist/templates/frontend/angular-base/.agents/skills/angular-di/SKILL.md +0 -387
- package/dist/templates/frontend/angular-base/.agents/skills/angular-di/references/di-patterns.md +0 -519
- package/dist/templates/frontend/angular-base/.agents/skills/angular-directives/SKILL.md +0 -437
- package/dist/templates/frontend/angular-base/.agents/skills/angular-directives/references/directive-patterns.md +0 -570
- package/dist/templates/frontend/angular-base/.agents/skills/angular-forms/SKILL.md +0 -434
- package/dist/templates/frontend/angular-base/.agents/skills/angular-forms/references/form-patterns.md +0 -398
- package/dist/templates/frontend/angular-base/.agents/skills/angular-http/SKILL.md +0 -366
- package/dist/templates/frontend/angular-base/.agents/skills/angular-http/references/http-patterns.md +0 -448
- package/dist/templates/frontend/angular-base/.agents/skills/angular-routing/SKILL.md +0 -395
- package/dist/templates/frontend/angular-base/.agents/skills/angular-routing/references/routing-patterns.md +0 -472
- package/dist/templates/frontend/angular-base/.agents/skills/angular-signals/SKILL.md +0 -302
- package/dist/templates/frontend/angular-base/.agents/skills/angular-signals/references/signal-patterns.md +0 -404
- package/dist/templates/frontend/angular-base/.agents/skills/angular-ssr/SKILL.md +0 -435
- package/dist/templates/frontend/angular-base/.agents/skills/angular-ssr/references/ssr-patterns.md +0 -497
- package/dist/templates/frontend/angular-base/.agents/skills/angular-testing/SKILL.md +0 -660
- package/dist/templates/frontend/angular-base/.agents/skills/angular-testing/references/testing-patterns.md +0 -707
- package/dist/templates/frontend/angular-base/.agents/skills/angular-tooling/SKILL.md +0 -352
- package/dist/templates/frontend/angular-base/.agents/skills/angular-tooling/references/tooling-patterns.md +0 -448
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-accessibility/SKILL.md +0 -780
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-components/SKILL.md +0 -718
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-design-systems/SKILL.md +0 -612
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-layouts/SKILL.md +0 -594
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-animations/SKILL.md +0 -432
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-animations/references/animation-patterns.md +0 -427
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-debugging/SKILL.md +0 -354
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-debugging/references/troubleshooting-guide.md +0 -306
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-framework-integration/SKILL.md +0 -578
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-framework-integration/references/react-patterns.md +0 -353
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/SKILL.md +0 -608
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/references/advanced-theme-patterns.md +0 -215
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/references/custom-utilities-guide.md +0 -281
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-mobile-first/SKILL.md +0 -768
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-performance/SKILL.md +0 -374
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-performance/references/bundle-optimization.md +0 -244
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-plugins/SKILL.md +0 -505
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-responsive-darkmode/SKILL.md +0 -601
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-responsive-darkmode/references/advanced-responsive-patterns.md +0 -485
- package/dist/templates/frontend/angular-base/.agents/skills/web-design-guidelines/SKILL.md +0 -39
- package/dist/templates/frontend/angular-nx/.agents/skills/angular-component/SKILL.md +0 -288
- package/dist/templates/frontend/angular-nx/.agents/skills/angular-component/references/component-patterns.md +0 -358
- package/dist/templates/frontend/angular-nx/.agents/skills/angular-di/SKILL.md +0 -387
- package/dist/templates/frontend/angular-nx/.agents/skills/angular-di/references/di-patterns.md +0 -519
- package/dist/templates/frontend/angular-nx/.agents/skills/angular-directives/SKILL.md +0 -437
- package/dist/templates/frontend/angular-nx/.agents/skills/angular-directives/references/directive-patterns.md +0 -570
- package/dist/templates/frontend/angular-nx/.agents/skills/angular-forms/SKILL.md +0 -434
- package/dist/templates/frontend/angular-nx/.agents/skills/angular-forms/references/form-patterns.md +0 -398
- package/dist/templates/frontend/angular-nx/.agents/skills/angular-http/SKILL.md +0 -366
- package/dist/templates/frontend/angular-nx/.agents/skills/angular-http/references/http-patterns.md +0 -448
- package/dist/templates/frontend/angular-nx/.agents/skills/angular-routing/SKILL.md +0 -395
- package/dist/templates/frontend/angular-nx/.agents/skills/angular-routing/references/routing-patterns.md +0 -472
- package/dist/templates/frontend/angular-nx/.agents/skills/angular-signals/SKILL.md +0 -302
- package/dist/templates/frontend/angular-nx/.agents/skills/angular-signals/references/signal-patterns.md +0 -404
- package/dist/templates/frontend/angular-nx/.agents/skills/angular-ssr/SKILL.md +0 -435
- package/dist/templates/frontend/angular-nx/.agents/skills/angular-ssr/references/ssr-patterns.md +0 -497
- package/dist/templates/frontend/angular-nx/.agents/skills/angular-testing/SKILL.md +0 -660
- package/dist/templates/frontend/angular-nx/.agents/skills/angular-testing/references/testing-patterns.md +0 -707
- package/dist/templates/frontend/angular-nx/.agents/skills/angular-tooling/SKILL.md +0 -352
- package/dist/templates/frontend/angular-nx/.agents/skills/angular-tooling/references/tooling-patterns.md +0 -448
- package/dist/templates/frontend/angular-nx/.agents/skills/nx-workspace-patterns/SKILL.md +0 -457
- package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-accessibility/SKILL.md +0 -780
- package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-advanced-components/SKILL.md +0 -718
- package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-advanced-design-systems/SKILL.md +0 -612
- package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-advanced-layouts/SKILL.md +0 -594
- package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-animations/SKILL.md +0 -432
- package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-animations/references/animation-patterns.md +0 -427
- package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-debugging/SKILL.md +0 -354
- package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-debugging/references/troubleshooting-guide.md +0 -306
- package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-framework-integration/SKILL.md +0 -578
- package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-framework-integration/references/react-patterns.md +0 -353
- package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-fundamentals-v4/SKILL.md +0 -608
- package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-fundamentals-v4/references/advanced-theme-patterns.md +0 -215
- package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-fundamentals-v4/references/custom-utilities-guide.md +0 -281
- package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-mobile-first/SKILL.md +0 -768
- package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-performance/SKILL.md +0 -374
- package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-performance/references/bundle-optimization.md +0 -244
- package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-plugins/SKILL.md +0 -505
- package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-responsive-darkmode/SKILL.md +0 -601
- package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-responsive-darkmode/references/advanced-responsive-patterns.md +0 -485
- package/dist/templates/frontend/angular-nx/.agents/skills/web-design-guidelines/SKILL.md +0 -39
- package/dist/templates/frontend/react-vite/.agents/skills/daisyui/SKILL.md +0 -1374
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/AGENTS.md +0 -97
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/SKILL.md +0 -116
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/adv-devtools-performance.md +0 -69
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/adv-formprovider-memo.md +0 -78
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/adv-testing-wrapper.md +0 -63
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-complete-default-objects.md +0 -66
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-separate-crud-operations.md +0 -76
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-unique-fieldarray-per-name.md +0 -58
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-use-field-id-as-key.md +0 -54
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-virtualization-formprovider.md +0 -64
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-avoid-double-registration.md +0 -46
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-controller-field-props.md +0 -56
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-local-state-combination.md +0 -69
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-single-usecontroller-per-component.md +0 -62
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-usecontroller-isolation.md +0 -64
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-async-default-values.md +0 -69
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-default-values.md +0 -57
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-revalidate-mode.md +0 -48
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-should-unregister.md +0 -62
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-useeffect-dependency.md +0 -54
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-validation-mode.md +0 -51
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-avoid-isvalid-with-onsubmit.md +0 -58
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-destructure-formstate.md +0 -48
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-getfieldstate-for-single-field.md +0 -49
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-subscribe-to-specific-fields.md +0 -54
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-useformstate-isolation.md +0 -62
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/integ-mui-controller-pattern.md +0 -59
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/integ-shadcn-form-import.md +0 -64
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/integ-shadcn-select-wiring.md +0 -64
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/integ-value-transform.md +0 -59
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-avoid-watch-in-render.md +0 -48
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-deep-subscription.md +0 -62
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-useformcontext-sparingly.md +0 -58
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-usewatch-default-value.md +0 -50
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-usewatch-over-watch.md +0 -58
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-usewatch-with-getvalues.md +0 -54
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-watch-specific-fields.md +0 -54
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-delay-error.md +0 -52
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-dynamic-schema-factory.md +0 -57
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-error-message-strategy.md +0 -65
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-inline-vs-resolver.md +0 -63
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-native-validation.md +0 -60
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-resolver-caching.md +0 -58
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/.claude-plugin/plugin.json +0 -12
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/SKILL.md +0 -412
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/accessibility.md +0 -359
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/error-handling.md +0 -255
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/links-to-official-docs.md +0 -197
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/performance-optimization.md +0 -355
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/rhf-api-reference.md +0 -420
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/shadcn-integration.md +0 -390
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/top-errors.md +0 -381
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/zod-schemas-guide.md +0 -396
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/rules/react-hook-form-zod.md +0 -138
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/scripts/check-versions.sh +0 -51
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/advanced-form.tsx +0 -427
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/async-validation.tsx +0 -402
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/basic-form.tsx +0 -285
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/custom-error-display.tsx +0 -303
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/dynamic-fields.tsx +0 -308
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/multi-step-form.tsx +0 -367
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/package.json +0 -35
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/server-validation.ts +0 -313
- package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/shadcn-form.tsx +0 -351
- package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/.claude-plugin/plugin.json +0 -12
- package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/SKILL.md +0 -412
- package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/references/aspect-ratio.md +0 -513
- package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/references/lazy-loading.md +0 -397
- package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/references/modern-formats.md +0 -526
- package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/references/picture-element.md +0 -593
- package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/references/srcset-sizes.md +0 -295
- package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/rules/responsive-images.md +0 -418
- package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/templates/image-component.tsx +0 -231
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/.claude-plugin/plugin.json +0 -13
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/SKILL.md +0 -487
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/agents/seo-generator.md +0 -290
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/references/canonical-urls.md +0 -429
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/references/json-ld.md +0 -599
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/references/meta-description.md +0 -426
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/references/open-graph.md +0 -443
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/references/title-patterns.md +0 -333
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/references/twitter-cards.md +0 -423
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/rules/seo-meta.md +0 -157
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/templates/json-ld-schemas/faq.json +0 -46
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/templates/json-ld-schemas/local-business.json +0 -58
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/templates/json-ld-schemas/service.json +0 -41
- package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/templates/meta-component.tsx +0 -275
- package/dist/templates/frontend/react-vite/.agents/skills/shadcn-ui/SKILL.md +0 -1677
- package/dist/templates/frontend/react-vite/.agents/skills/shadcn-ui/references/learn.md +0 -145
- package/dist/templates/frontend/react-vite/.agents/skills/shadcn-ui/references/official-ui-reference.md +0 -1725
- package/dist/templates/frontend/react-vite/.agents/skills/shadcn-ui/references/reference.md +0 -586
- package/dist/templates/frontend/react-vite/.agents/skills/shadcn-ui/references/ui-reference.md +0 -1578
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/.claude-plugin/plugin.json +0 -12
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/SKILL.md +0 -508
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/button-patterns.md +0 -234
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/card-patterns.md +0 -533
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/dark-mode-patterns.md +0 -309
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/form-patterns.md +0 -403
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/layout-patterns.md +0 -542
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/navigation-patterns.md +0 -634
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/typography-patterns.md +0 -338
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/rules/tailwind-patterns.md +0 -371
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/templates/components/contact-form.tsx +0 -265
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/templates/components/feature-grid.tsx +0 -141
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/templates/components/footer.tsx +0 -258
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/templates/components/hero-section.tsx +0 -105
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/.claude-plugin/plugin.json +0 -13
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/SKILL.md +0 -665
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/commands/setup.md +0 -200
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/references/architecture.md +0 -206
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/references/common-gotchas.md +0 -469
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/references/dark-mode.md +0 -239
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/references/migration-guide.md +0 -313
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/rules/tailwind-v4-shadcn.md +0 -118
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/components.json +0 -20
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/index.css +0 -140
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/theme-provider.tsx +0 -92
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/tsconfig.app.json +0 -31
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/utils.ts +0 -6
- package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/vite.config.ts +0 -17
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/.claude-plugin/plugin.json +0 -12
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/SKILL.md +0 -1058
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/rules/tanstack-query.md +0 -126
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-router/.claude-plugin/plugin.json +0 -12
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-router/SKILL.md +0 -663
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-router/references/common-errors.md +0 -77
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-router/rules/tanstack-router.md +0 -125
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-router/templates/package.json +0 -26
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-router/templates/route-examples.tsx +0 -126
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-router/templates/vite.config.ts +0 -16
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-start/.claude-plugin/plugin.json +0 -12
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-start/REVIEW_REPORT.md +0 -299
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-start/SKILL.md +0 -781
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-start/planning/stability-tracker.md +0 -49
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/.claude-plugin/plugin.json +0 -12
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/SKILL.md +0 -573
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/references/cloudflare-d1-examples.md +0 -131
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/references/common-errors.md +0 -208
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/references/performance-virtualization.md +0 -106
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/references/query-integration.md +0 -195
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/references/server-side-patterns.md +0 -357
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/rules/tanstack-table.md +0 -151
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/basic-client-table.tsx +0 -101
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/column-configuration.tsx +0 -177
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/d1-database-example.tsx +0 -336
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/package.json +0 -25
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/server-paginated-table.tsx +0 -218
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/shadcn-styled-table.tsx +0 -123
- package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/virtualized-large-dataset.tsx +0 -164
- package/dist/templates/frontend/react-vite/.agents/skills/testing-library/.claude-plugin/plugin.json +0 -12
- package/dist/templates/frontend/react-vite/.agents/skills/testing-library/SKILL.md +0 -504
- package/dist/templates/frontend/react-vite/.agents/skills/testing-library/rules/testing-library-patterns.md +0 -97
- package/dist/templates/frontend/react-vite/.agents/skills/testing-library/templates/msw-handlers.ts +0 -117
- package/dist/templates/frontend/react-vite/.agents/skills/testing-library/templates/setup.ts +0 -57
- package/dist/templates/frontend/react-vite/.agents/skills/testing-patterns/.claude-plugin/plugin.json +0 -13
- package/dist/templates/frontend/react-vite/.agents/skills/testing-patterns/SKILL.md +0 -400
- package/dist/templates/frontend/react-vite/.agents/skills/testing-patterns/commands/coverage.md +0 -458
- package/dist/templates/frontend/react-vite/.agents/skills/testing-patterns/commands/create-tests.md +0 -362
- package/dist/templates/frontend/react-vite/.agents/skills/testing-patterns/commands/run-tests.md +0 -336
- package/dist/templates/frontend/react-vite/.agents/skills/testing-patterns/references/validation-rules.md +0 -222
- package/dist/templates/frontend/react-vite/.agents/skills/testing-patterns/templates/test-agent.md +0 -132
- package/dist/templates/frontend/react-vite/.agents/skills/testing-patterns/templates/test-spec.yaml +0 -69
- package/dist/templates/frontend/react-vite/.agents/skills/vitest/.claude-plugin/plugin.json +0 -12
- package/dist/templates/frontend/react-vite/.agents/skills/vitest/SKILL.md +0 -493
- package/dist/templates/frontend/react-vite/.agents/skills/vitest/rules/vitest-patterns.md +0 -100
- package/dist/templates/frontend/react-vite/.agents/skills/vitest/templates/test-utils.ts +0 -86
- package/dist/templates/frontend/react-vite/.agents/skills/vitest/templates/vitest.config.ts +0 -39
- package/dist/templates/frontend/react-vite/.agents/skills/zod/AGENTS.md +0 -97
- package/dist/templates/frontend/react-vite/.agents/skills/zod/SKILL.md +0 -127
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/compose-intersection.md +0 -144
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/compose-lazy-recursive.md +0 -143
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/compose-pipe.md +0 -113
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/compose-preprocess.md +0 -142
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/compose-shared-schemas.md +0 -137
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/error-avoid-throwing-in-refine.md +0 -127
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/error-custom-messages.md +0 -118
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/error-i18n.md +0 -145
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/error-path-for-nested.md +0 -130
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/error-use-flatten.md +0 -131
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/object-discriminated-unions.md +0 -138
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/object-extend-for-composition.md +0 -147
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/object-optional-vs-nullable.md +0 -117
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/object-partial-for-updates.md +0 -123
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/object-pick-omit.md +0 -146
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/object-strict-vs-strip.md +0 -109
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/parse-async-for-async-refinements.md +0 -118
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/parse-avoid-double-validation.md +0 -129
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/parse-handle-all-issues.md +0 -125
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/parse-never-trust-json.md +0 -113
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/parse-use-safeparse.md +0 -102
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/parse-validate-early.md +0 -120
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/perf-arrays.md +0 -153
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/perf-avoid-dynamic-creation.md +0 -139
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/perf-cache-schemas.md +0 -138
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/perf-lazy-loading.md +0 -135
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/perf-zod-mini.md +0 -117
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/refine-add-path.md +0 -141
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/refine-catch.md +0 -143
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/refine-defaults.md +0 -131
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/refine-transform-coerce.md +0 -105
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/refine-vs-superrefine.md +0 -152
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/schema-avoid-optional-abuse.md +0 -93
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/schema-coercion-for-form-data.md +0 -88
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/schema-string-validations.md +0 -90
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/schema-use-enums.md +0 -107
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/schema-use-primitives-correctly.md +0 -61
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/schema-use-unknown-not-any.md +0 -88
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/type-branded-types.md +0 -102
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/type-enable-strict-mode.md +0 -130
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/type-export-schemas-and-types.md +0 -116
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/type-input-vs-output.md +0 -116
- package/dist/templates/frontend/react-vite/.agents/skills/zod/references/type-use-z-infer.md +0 -110
- package/dist/templates/frontend/react-vite/.tanstack/tmp/c28007bb-2319511cf318e28129c8d8eb723db5fd +0 -9
- package/dist/templates/frontend/react-vite/.tanstack/tmp/c28007bb-bcef89e9e4593777e1c15ec4b4f32eea +0 -9
- package/dist/templates/frontend/react-vite/src/routeTree.gen.ts +0 -77
- package/dist/templates/frontend/react-vite-help/.tanstack/tmp/c28007bb-2319511cf318e28129c8d8eb723db5fd +0 -9
- package/dist/templates/frontend/react-vite-help/.tanstack/tmp/c28007bb-bcef89e9e4593777e1c15ec4b4f32eea +0 -9
- package/dist/templates/frontend/react-vite-help/src/routeTree.gen.ts +0 -241
- package/templates/backend/nestjs-api-mysql/DOCKER-VALIDATION.md +0 -275
- package/templates/frontend/angular-base/.agents/skills/angular-component/SKILL.md +0 -288
- package/templates/frontend/angular-base/.agents/skills/angular-component/references/component-patterns.md +0 -358
- package/templates/frontend/angular-base/.agents/skills/angular-di/SKILL.md +0 -387
- package/templates/frontend/angular-base/.agents/skills/angular-di/references/di-patterns.md +0 -519
- package/templates/frontend/angular-base/.agents/skills/angular-directives/SKILL.md +0 -437
- package/templates/frontend/angular-base/.agents/skills/angular-directives/references/directive-patterns.md +0 -570
- package/templates/frontend/angular-base/.agents/skills/angular-forms/SKILL.md +0 -434
- package/templates/frontend/angular-base/.agents/skills/angular-forms/references/form-patterns.md +0 -398
- package/templates/frontend/angular-base/.agents/skills/angular-http/SKILL.md +0 -366
- package/templates/frontend/angular-base/.agents/skills/angular-http/references/http-patterns.md +0 -448
- package/templates/frontend/angular-base/.agents/skills/angular-routing/SKILL.md +0 -395
- package/templates/frontend/angular-base/.agents/skills/angular-routing/references/routing-patterns.md +0 -472
- package/templates/frontend/angular-base/.agents/skills/angular-signals/SKILL.md +0 -302
- package/templates/frontend/angular-base/.agents/skills/angular-signals/references/signal-patterns.md +0 -404
- package/templates/frontend/angular-base/.agents/skills/angular-ssr/SKILL.md +0 -435
- package/templates/frontend/angular-base/.agents/skills/angular-ssr/references/ssr-patterns.md +0 -497
- package/templates/frontend/angular-base/.agents/skills/angular-testing/SKILL.md +0 -660
- package/templates/frontend/angular-base/.agents/skills/angular-testing/references/testing-patterns.md +0 -707
- package/templates/frontend/angular-base/.agents/skills/angular-tooling/SKILL.md +0 -352
- package/templates/frontend/angular-base/.agents/skills/angular-tooling/references/tooling-patterns.md +0 -448
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-accessibility/SKILL.md +0 -780
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-components/SKILL.md +0 -718
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-design-systems/SKILL.md +0 -612
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-layouts/SKILL.md +0 -594
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-animations/SKILL.md +0 -432
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-animations/references/animation-patterns.md +0 -427
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-debugging/SKILL.md +0 -354
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-debugging/references/troubleshooting-guide.md +0 -306
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-framework-integration/SKILL.md +0 -578
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-framework-integration/references/react-patterns.md +0 -353
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/SKILL.md +0 -608
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/references/advanced-theme-patterns.md +0 -215
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/references/custom-utilities-guide.md +0 -281
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-mobile-first/SKILL.md +0 -768
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-performance/SKILL.md +0 -374
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-performance/references/bundle-optimization.md +0 -244
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-plugins/SKILL.md +0 -505
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-responsive-darkmode/SKILL.md +0 -601
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-responsive-darkmode/references/advanced-responsive-patterns.md +0 -485
- package/templates/frontend/angular-base/.agents/skills/web-design-guidelines/SKILL.md +0 -39
- package/templates/frontend/angular-nx/.agents/skills/angular-component/SKILL.md +0 -288
- package/templates/frontend/angular-nx/.agents/skills/angular-component/references/component-patterns.md +0 -358
- package/templates/frontend/angular-nx/.agents/skills/angular-di/SKILL.md +0 -387
- package/templates/frontend/angular-nx/.agents/skills/angular-di/references/di-patterns.md +0 -519
- package/templates/frontend/angular-nx/.agents/skills/angular-directives/SKILL.md +0 -437
- package/templates/frontend/angular-nx/.agents/skills/angular-directives/references/directive-patterns.md +0 -570
- package/templates/frontend/angular-nx/.agents/skills/angular-forms/SKILL.md +0 -434
- package/templates/frontend/angular-nx/.agents/skills/angular-forms/references/form-patterns.md +0 -398
- package/templates/frontend/angular-nx/.agents/skills/angular-http/SKILL.md +0 -366
- package/templates/frontend/angular-nx/.agents/skills/angular-http/references/http-patterns.md +0 -448
- package/templates/frontend/angular-nx/.agents/skills/angular-routing/SKILL.md +0 -395
- package/templates/frontend/angular-nx/.agents/skills/angular-routing/references/routing-patterns.md +0 -472
- package/templates/frontend/angular-nx/.agents/skills/angular-signals/SKILL.md +0 -302
- package/templates/frontend/angular-nx/.agents/skills/angular-signals/references/signal-patterns.md +0 -404
- package/templates/frontend/angular-nx/.agents/skills/angular-ssr/SKILL.md +0 -435
- package/templates/frontend/angular-nx/.agents/skills/angular-ssr/references/ssr-patterns.md +0 -497
- package/templates/frontend/angular-nx/.agents/skills/angular-testing/SKILL.md +0 -660
- package/templates/frontend/angular-nx/.agents/skills/angular-testing/references/testing-patterns.md +0 -707
- package/templates/frontend/angular-nx/.agents/skills/angular-tooling/SKILL.md +0 -352
- package/templates/frontend/angular-nx/.agents/skills/angular-tooling/references/tooling-patterns.md +0 -448
- package/templates/frontend/angular-nx/.agents/skills/nx-workspace-patterns/SKILL.md +0 -457
- package/templates/frontend/angular-nx/.agents/skills/tailwindcss-accessibility/SKILL.md +0 -780
- package/templates/frontend/angular-nx/.agents/skills/tailwindcss-advanced-components/SKILL.md +0 -718
- package/templates/frontend/angular-nx/.agents/skills/tailwindcss-advanced-design-systems/SKILL.md +0 -612
- package/templates/frontend/angular-nx/.agents/skills/tailwindcss-advanced-layouts/SKILL.md +0 -594
- package/templates/frontend/angular-nx/.agents/skills/tailwindcss-animations/SKILL.md +0 -432
- package/templates/frontend/angular-nx/.agents/skills/tailwindcss-animations/references/animation-patterns.md +0 -427
- package/templates/frontend/angular-nx/.agents/skills/tailwindcss-debugging/SKILL.md +0 -354
- package/templates/frontend/angular-nx/.agents/skills/tailwindcss-debugging/references/troubleshooting-guide.md +0 -306
- package/templates/frontend/angular-nx/.agents/skills/tailwindcss-framework-integration/SKILL.md +0 -578
- package/templates/frontend/angular-nx/.agents/skills/tailwindcss-framework-integration/references/react-patterns.md +0 -353
- package/templates/frontend/angular-nx/.agents/skills/tailwindcss-fundamentals-v4/SKILL.md +0 -608
- package/templates/frontend/angular-nx/.agents/skills/tailwindcss-fundamentals-v4/references/advanced-theme-patterns.md +0 -215
- package/templates/frontend/angular-nx/.agents/skills/tailwindcss-fundamentals-v4/references/custom-utilities-guide.md +0 -281
- package/templates/frontend/angular-nx/.agents/skills/tailwindcss-mobile-first/SKILL.md +0 -768
- package/templates/frontend/angular-nx/.agents/skills/tailwindcss-performance/SKILL.md +0 -374
- package/templates/frontend/angular-nx/.agents/skills/tailwindcss-performance/references/bundle-optimization.md +0 -244
- package/templates/frontend/angular-nx/.agents/skills/tailwindcss-plugins/SKILL.md +0 -505
- package/templates/frontend/angular-nx/.agents/skills/tailwindcss-responsive-darkmode/SKILL.md +0 -601
- package/templates/frontend/angular-nx/.agents/skills/tailwindcss-responsive-darkmode/references/advanced-responsive-patterns.md +0 -485
- package/templates/frontend/angular-nx/.agents/skills/web-design-guidelines/SKILL.md +0 -39
- package/templates/frontend/react-vite/.agents/skills/daisyui/SKILL.md +0 -1374
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/AGENTS.md +0 -97
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/SKILL.md +0 -116
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/adv-devtools-performance.md +0 -69
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/adv-formprovider-memo.md +0 -78
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/adv-testing-wrapper.md +0 -63
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-complete-default-objects.md +0 -66
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-separate-crud-operations.md +0 -76
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-unique-fieldarray-per-name.md +0 -58
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-use-field-id-as-key.md +0 -54
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-virtualization-formprovider.md +0 -64
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-avoid-double-registration.md +0 -46
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-controller-field-props.md +0 -56
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-local-state-combination.md +0 -69
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-single-usecontroller-per-component.md +0 -62
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-usecontroller-isolation.md +0 -64
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-async-default-values.md +0 -69
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-default-values.md +0 -57
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-revalidate-mode.md +0 -48
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-should-unregister.md +0 -62
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-useeffect-dependency.md +0 -54
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-validation-mode.md +0 -51
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-avoid-isvalid-with-onsubmit.md +0 -58
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-destructure-formstate.md +0 -48
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-getfieldstate-for-single-field.md +0 -49
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-subscribe-to-specific-fields.md +0 -54
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-useformstate-isolation.md +0 -62
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/integ-mui-controller-pattern.md +0 -59
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/integ-shadcn-form-import.md +0 -64
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/integ-shadcn-select-wiring.md +0 -64
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/integ-value-transform.md +0 -59
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-avoid-watch-in-render.md +0 -48
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-deep-subscription.md +0 -62
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-useformcontext-sparingly.md +0 -58
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-usewatch-default-value.md +0 -50
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-usewatch-over-watch.md +0 -58
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-usewatch-with-getvalues.md +0 -54
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-watch-specific-fields.md +0 -54
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-delay-error.md +0 -52
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-dynamic-schema-factory.md +0 -57
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-error-message-strategy.md +0 -65
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-inline-vs-resolver.md +0 -63
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-native-validation.md +0 -60
- package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-resolver-caching.md +0 -58
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/.claude-plugin/plugin.json +0 -12
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/SKILL.md +0 -412
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/accessibility.md +0 -359
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/error-handling.md +0 -255
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/links-to-official-docs.md +0 -197
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/performance-optimization.md +0 -355
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/rhf-api-reference.md +0 -420
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/shadcn-integration.md +0 -390
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/top-errors.md +0 -381
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/zod-schemas-guide.md +0 -396
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/rules/react-hook-form-zod.md +0 -138
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/scripts/check-versions.sh +0 -51
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/advanced-form.tsx +0 -427
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/async-validation.tsx +0 -402
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/basic-form.tsx +0 -285
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/custom-error-display.tsx +0 -303
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/dynamic-fields.tsx +0 -308
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/multi-step-form.tsx +0 -367
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/package.json +0 -35
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/server-validation.ts +0 -313
- package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/shadcn-form.tsx +0 -351
- package/templates/frontend/react-vite/.agents/skills/responsive-images/.claude-plugin/plugin.json +0 -12
- package/templates/frontend/react-vite/.agents/skills/responsive-images/SKILL.md +0 -412
- package/templates/frontend/react-vite/.agents/skills/responsive-images/references/aspect-ratio.md +0 -513
- package/templates/frontend/react-vite/.agents/skills/responsive-images/references/lazy-loading.md +0 -397
- package/templates/frontend/react-vite/.agents/skills/responsive-images/references/modern-formats.md +0 -526
- package/templates/frontend/react-vite/.agents/skills/responsive-images/references/picture-element.md +0 -593
- package/templates/frontend/react-vite/.agents/skills/responsive-images/references/srcset-sizes.md +0 -295
- package/templates/frontend/react-vite/.agents/skills/responsive-images/rules/responsive-images.md +0 -418
- package/templates/frontend/react-vite/.agents/skills/responsive-images/templates/image-component.tsx +0 -231
- package/templates/frontend/react-vite/.agents/skills/seo-meta/.claude-plugin/plugin.json +0 -13
- package/templates/frontend/react-vite/.agents/skills/seo-meta/SKILL.md +0 -487
- package/templates/frontend/react-vite/.agents/skills/seo-meta/agents/seo-generator.md +0 -290
- package/templates/frontend/react-vite/.agents/skills/seo-meta/references/canonical-urls.md +0 -429
- package/templates/frontend/react-vite/.agents/skills/seo-meta/references/json-ld.md +0 -599
- package/templates/frontend/react-vite/.agents/skills/seo-meta/references/meta-description.md +0 -426
- package/templates/frontend/react-vite/.agents/skills/seo-meta/references/open-graph.md +0 -443
- package/templates/frontend/react-vite/.agents/skills/seo-meta/references/title-patterns.md +0 -333
- package/templates/frontend/react-vite/.agents/skills/seo-meta/references/twitter-cards.md +0 -423
- package/templates/frontend/react-vite/.agents/skills/seo-meta/rules/seo-meta.md +0 -157
- package/templates/frontend/react-vite/.agents/skills/seo-meta/templates/json-ld-schemas/faq.json +0 -46
- package/templates/frontend/react-vite/.agents/skills/seo-meta/templates/json-ld-schemas/local-business.json +0 -58
- package/templates/frontend/react-vite/.agents/skills/seo-meta/templates/json-ld-schemas/service.json +0 -41
- package/templates/frontend/react-vite/.agents/skills/seo-meta/templates/meta-component.tsx +0 -275
- package/templates/frontend/react-vite/.agents/skills/shadcn-ui/SKILL.md +0 -1677
- package/templates/frontend/react-vite/.agents/skills/shadcn-ui/references/learn.md +0 -145
- package/templates/frontend/react-vite/.agents/skills/shadcn-ui/references/official-ui-reference.md +0 -1725
- package/templates/frontend/react-vite/.agents/skills/shadcn-ui/references/reference.md +0 -586
- package/templates/frontend/react-vite/.agents/skills/shadcn-ui/references/ui-reference.md +0 -1578
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/.claude-plugin/plugin.json +0 -12
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/SKILL.md +0 -508
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/button-patterns.md +0 -234
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/card-patterns.md +0 -533
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/dark-mode-patterns.md +0 -309
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/form-patterns.md +0 -403
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/layout-patterns.md +0 -542
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/navigation-patterns.md +0 -634
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/typography-patterns.md +0 -338
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/rules/tailwind-patterns.md +0 -371
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/templates/components/contact-form.tsx +0 -265
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/templates/components/feature-grid.tsx +0 -141
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/templates/components/footer.tsx +0 -258
- package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/templates/components/hero-section.tsx +0 -105
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/.claude-plugin/plugin.json +0 -13
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/SKILL.md +0 -665
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/commands/setup.md +0 -200
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/references/architecture.md +0 -206
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/references/common-gotchas.md +0 -469
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/references/dark-mode.md +0 -239
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/references/migration-guide.md +0 -313
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/rules/tailwind-v4-shadcn.md +0 -118
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/components.json +0 -20
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/index.css +0 -140
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/theme-provider.tsx +0 -92
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/tsconfig.app.json +0 -31
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/utils.ts +0 -6
- package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/vite.config.ts +0 -17
- package/templates/frontend/react-vite/.agents/skills/tanstack-query/.claude-plugin/plugin.json +0 -12
- package/templates/frontend/react-vite/.agents/skills/tanstack-query/SKILL.md +0 -1058
- package/templates/frontend/react-vite/.agents/skills/tanstack-query/rules/tanstack-query.md +0 -126
- package/templates/frontend/react-vite/.agents/skills/tanstack-router/.claude-plugin/plugin.json +0 -12
- package/templates/frontend/react-vite/.agents/skills/tanstack-router/SKILL.md +0 -663
- package/templates/frontend/react-vite/.agents/skills/tanstack-router/references/common-errors.md +0 -77
- package/templates/frontend/react-vite/.agents/skills/tanstack-router/rules/tanstack-router.md +0 -125
- package/templates/frontend/react-vite/.agents/skills/tanstack-router/templates/package.json +0 -26
- package/templates/frontend/react-vite/.agents/skills/tanstack-router/templates/route-examples.tsx +0 -126
- package/templates/frontend/react-vite/.agents/skills/tanstack-router/templates/vite.config.ts +0 -16
- package/templates/frontend/react-vite/.agents/skills/tanstack-start/.claude-plugin/plugin.json +0 -12
- package/templates/frontend/react-vite/.agents/skills/tanstack-start/REVIEW_REPORT.md +0 -299
- package/templates/frontend/react-vite/.agents/skills/tanstack-start/SKILL.md +0 -781
- package/templates/frontend/react-vite/.agents/skills/tanstack-start/planning/stability-tracker.md +0 -49
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/.claude-plugin/plugin.json +0 -12
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/SKILL.md +0 -573
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/references/cloudflare-d1-examples.md +0 -131
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/references/common-errors.md +0 -208
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/references/performance-virtualization.md +0 -106
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/references/query-integration.md +0 -195
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/references/server-side-patterns.md +0 -357
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/rules/tanstack-table.md +0 -151
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/basic-client-table.tsx +0 -101
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/column-configuration.tsx +0 -177
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/d1-database-example.tsx +0 -336
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/package.json +0 -25
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/server-paginated-table.tsx +0 -218
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/shadcn-styled-table.tsx +0 -123
- package/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/virtualized-large-dataset.tsx +0 -164
- package/templates/frontend/react-vite/.agents/skills/testing-library/.claude-plugin/plugin.json +0 -12
- package/templates/frontend/react-vite/.agents/skills/testing-library/SKILL.md +0 -504
- package/templates/frontend/react-vite/.agents/skills/testing-library/rules/testing-library-patterns.md +0 -97
- package/templates/frontend/react-vite/.agents/skills/testing-library/templates/msw-handlers.ts +0 -117
- package/templates/frontend/react-vite/.agents/skills/testing-library/templates/setup.ts +0 -57
- package/templates/frontend/react-vite/.agents/skills/testing-patterns/.claude-plugin/plugin.json +0 -13
- package/templates/frontend/react-vite/.agents/skills/testing-patterns/SKILL.md +0 -400
- package/templates/frontend/react-vite/.agents/skills/testing-patterns/commands/coverage.md +0 -458
- package/templates/frontend/react-vite/.agents/skills/testing-patterns/commands/create-tests.md +0 -362
- package/templates/frontend/react-vite/.agents/skills/testing-patterns/commands/run-tests.md +0 -336
- package/templates/frontend/react-vite/.agents/skills/testing-patterns/references/validation-rules.md +0 -222
- package/templates/frontend/react-vite/.agents/skills/testing-patterns/templates/test-agent.md +0 -132
- package/templates/frontend/react-vite/.agents/skills/testing-patterns/templates/test-spec.yaml +0 -69
- package/templates/frontend/react-vite/.agents/skills/vitest/.claude-plugin/plugin.json +0 -12
- package/templates/frontend/react-vite/.agents/skills/vitest/SKILL.md +0 -493
- package/templates/frontend/react-vite/.agents/skills/vitest/rules/vitest-patterns.md +0 -100
- package/templates/frontend/react-vite/.agents/skills/vitest/templates/test-utils.ts +0 -86
- package/templates/frontend/react-vite/.agents/skills/vitest/templates/vitest.config.ts +0 -39
- package/templates/frontend/react-vite/.agents/skills/zod/AGENTS.md +0 -97
- package/templates/frontend/react-vite/.agents/skills/zod/SKILL.md +0 -127
- package/templates/frontend/react-vite/.agents/skills/zod/references/compose-intersection.md +0 -144
- package/templates/frontend/react-vite/.agents/skills/zod/references/compose-lazy-recursive.md +0 -143
- package/templates/frontend/react-vite/.agents/skills/zod/references/compose-pipe.md +0 -113
- package/templates/frontend/react-vite/.agents/skills/zod/references/compose-preprocess.md +0 -142
- package/templates/frontend/react-vite/.agents/skills/zod/references/compose-shared-schemas.md +0 -137
- package/templates/frontend/react-vite/.agents/skills/zod/references/error-avoid-throwing-in-refine.md +0 -127
- package/templates/frontend/react-vite/.agents/skills/zod/references/error-custom-messages.md +0 -118
- package/templates/frontend/react-vite/.agents/skills/zod/references/error-i18n.md +0 -145
- package/templates/frontend/react-vite/.agents/skills/zod/references/error-path-for-nested.md +0 -130
- package/templates/frontend/react-vite/.agents/skills/zod/references/error-use-flatten.md +0 -131
- package/templates/frontend/react-vite/.agents/skills/zod/references/object-discriminated-unions.md +0 -138
- package/templates/frontend/react-vite/.agents/skills/zod/references/object-extend-for-composition.md +0 -147
- package/templates/frontend/react-vite/.agents/skills/zod/references/object-optional-vs-nullable.md +0 -117
- package/templates/frontend/react-vite/.agents/skills/zod/references/object-partial-for-updates.md +0 -123
- package/templates/frontend/react-vite/.agents/skills/zod/references/object-pick-omit.md +0 -146
- package/templates/frontend/react-vite/.agents/skills/zod/references/object-strict-vs-strip.md +0 -109
- package/templates/frontend/react-vite/.agents/skills/zod/references/parse-async-for-async-refinements.md +0 -118
- package/templates/frontend/react-vite/.agents/skills/zod/references/parse-avoid-double-validation.md +0 -129
- package/templates/frontend/react-vite/.agents/skills/zod/references/parse-handle-all-issues.md +0 -125
- package/templates/frontend/react-vite/.agents/skills/zod/references/parse-never-trust-json.md +0 -113
- package/templates/frontend/react-vite/.agents/skills/zod/references/parse-use-safeparse.md +0 -102
- package/templates/frontend/react-vite/.agents/skills/zod/references/parse-validate-early.md +0 -120
- package/templates/frontend/react-vite/.agents/skills/zod/references/perf-arrays.md +0 -153
- package/templates/frontend/react-vite/.agents/skills/zod/references/perf-avoid-dynamic-creation.md +0 -139
- package/templates/frontend/react-vite/.agents/skills/zod/references/perf-cache-schemas.md +0 -138
- package/templates/frontend/react-vite/.agents/skills/zod/references/perf-lazy-loading.md +0 -135
- package/templates/frontend/react-vite/.agents/skills/zod/references/perf-zod-mini.md +0 -117
- package/templates/frontend/react-vite/.agents/skills/zod/references/refine-add-path.md +0 -141
- package/templates/frontend/react-vite/.agents/skills/zod/references/refine-catch.md +0 -143
- package/templates/frontend/react-vite/.agents/skills/zod/references/refine-defaults.md +0 -131
- package/templates/frontend/react-vite/.agents/skills/zod/references/refine-transform-coerce.md +0 -105
- package/templates/frontend/react-vite/.agents/skills/zod/references/refine-vs-superrefine.md +0 -152
- package/templates/frontend/react-vite/.agents/skills/zod/references/schema-avoid-optional-abuse.md +0 -93
- package/templates/frontend/react-vite/.agents/skills/zod/references/schema-coercion-for-form-data.md +0 -88
- package/templates/frontend/react-vite/.agents/skills/zod/references/schema-string-validations.md +0 -90
- package/templates/frontend/react-vite/.agents/skills/zod/references/schema-use-enums.md +0 -107
- package/templates/frontend/react-vite/.agents/skills/zod/references/schema-use-primitives-correctly.md +0 -61
- package/templates/frontend/react-vite/.agents/skills/zod/references/schema-use-unknown-not-any.md +0 -88
- package/templates/frontend/react-vite/.agents/skills/zod/references/type-branded-types.md +0 -102
- package/templates/frontend/react-vite/.agents/skills/zod/references/type-enable-strict-mode.md +0 -130
- package/templates/frontend/react-vite/.agents/skills/zod/references/type-export-schemas-and-types.md +0 -116
- package/templates/frontend/react-vite/.agents/skills/zod/references/type-input-vs-output.md +0 -116
- package/templates/frontend/react-vite/.agents/skills/zod/references/type-use-z-infer.md +0 -110
- package/templates/frontend/react-vite/.tanstack/tmp/c28007bb-2319511cf318e28129c8d8eb723db5fd +0 -9
- package/templates/frontend/react-vite/.tanstack/tmp/c28007bb-bcef89e9e4593777e1c15ec4b4f32eea +0 -9
- package/templates/frontend/react-vite/src/routeTree.gen.ts +0 -77
- package/templates/frontend/react-vite-help/.tanstack/tmp/c28007bb-2319511cf318e28129c8d8eb723db5fd +0 -9
- package/templates/frontend/react-vite-help/.tanstack/tmp/c28007bb-bcef89e9e4593777e1c15ec4b4f32eea +0 -9
- package/templates/frontend/react-vite-help/src/routeTree.gen.ts +0 -241
- package/templates/frontend/react-vite-help/src/routes/dashbord.tsx +0 -9
- package/templates/frontend/react-vite-help/src/routes/index.test.tsx +0 -42
- package/templates/frontend/react-vite-help/src/routes/perfil.tsx +0 -9
- package/templates/mobile/expo-base/IMPLEMENTATION_SUMMARY.md +0 -413
- package/templates/mobile/expo-base/SETUP_NOTES.md +0 -233
- package/templates/mobile/expo-base/TEMPLATE_USAGE.md +0 -623
- package/templates/mobile/expo-base/WARP.md +0 -123
- package/templates/mobile/expo-base/docs/ARCHITECTURE.md +0 -565
- package/templates/mobile/expo-base/docs/CI_CD.md +0 -461
- package/templates/mobile/expo-base/docs/COMPONENTS.md +0 -1103
- package/templates/mobile/expo-base/docs/CONTRIBUTING.md +0 -733
- package/templates/mobile/expo-base/docs/DESIGN_TOKENS.md +0 -832
- package/templates/mobile/expo-base/docs/GIT_CONVENTIONS.md +0 -411
- package/templates/mobile/expo-base/docs/I18N.md +0 -701
- package/templates/mobile/expo-base/docs/TESTING.md +0 -565
- package/templates/mobile/expo-base/docs/THEMING.md +0 -753
- package/templates/mobile/expo-base/docs/VERSIONING.md +0 -518
- /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/assets/example-template.txt +0 -0
- /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/best-practices.md +0 -0
- /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/common-patterns.md +0 -0
- /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/example-reference.md +0 -0
- /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/testing.md +0 -0
- /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/top-errors.md +0 -0
- /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/typescript-patterns.md +0 -0
- /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/v4-to-v5-migration.md +0 -0
- /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/scripts/example-script.sh +0 -0
- /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/custom-hooks-pattern.tsx +0 -0
- /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/devtools-setup.tsx +0 -0
- /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/error-boundary.tsx +0 -0
- /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/package.json +0 -0
- /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/provider-setup.tsx +0 -0
- /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/query-client-config.ts +0 -0
- /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/use-infinite-query.tsx +0 -0
- /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/use-mutation-basic.tsx +0 -0
- /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/use-mutation-optimistic.tsx +0 -0
- /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/use-query-basic.tsx +0 -0
- /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/assets/example-template.txt +0 -0
- /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/best-practices.md +0 -0
- /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/common-patterns.md +0 -0
- /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/example-reference.md +0 -0
- /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/testing.md +0 -0
- /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/top-errors.md +0 -0
- /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/typescript-patterns.md +0 -0
- /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/v4-to-v5-migration.md +0 -0
- /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/scripts/example-script.sh +0 -0
- /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/custom-hooks-pattern.tsx +0 -0
- /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/devtools-setup.tsx +0 -0
- /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/error-boundary.tsx +0 -0
- /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/package.json +0 -0
- /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/provider-setup.tsx +0 -0
- /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/query-client-config.ts +0 -0
- /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/use-infinite-query.tsx +0 -0
- /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/use-mutation-basic.tsx +0 -0
- /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/use-mutation-optimistic.tsx +0 -0
- /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/use-query-basic.tsx +0 -0
|
@@ -1,1677 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: shadcn-ui
|
|
3
|
-
description: Provides complete shadcn/ui component library patterns including installation, configuration, and implementation of accessible React components. Use when setting up shadcn/ui, installing components, building forms with React Hook Form and Zod, customizing themes with Tailwind CSS, or implementing UI patterns like buttons, dialogs, dropdowns, tables, and complex form layouts.
|
|
4
|
-
allowed-tools: Read, Write, Bash, Edit, Glob
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# shadcn/ui Component Patterns
|
|
8
|
-
|
|
9
|
-
## Overview
|
|
10
|
-
|
|
11
|
-
Expert guide for building accessible, customizable UI components with shadcn/ui, Radix UI, and Tailwind CSS. This skill provides comprehensive patterns for implementing production-ready components with full accessibility support.
|
|
12
|
-
|
|
13
|
-
## Table of Contents
|
|
14
|
-
|
|
15
|
-
- [When to Use](#when-to-use)
|
|
16
|
-
- [Quick Start](#quick-start)
|
|
17
|
-
- [Installation & Setup](#installation--setup)
|
|
18
|
-
- [Project Configuration](#project-configuration)
|
|
19
|
-
- [Core Components](#core-components)
|
|
20
|
-
- [Button](#button-component)
|
|
21
|
-
- [Input & Form Fields](#input--form-fields)
|
|
22
|
-
- [Forms with Validation](#forms-with-validation)
|
|
23
|
-
- [Card](#card-component)
|
|
24
|
-
- [Dialog (Modal)](#dialog-modal-component)
|
|
25
|
-
- [Select (Dropdown)](#select-dropdown-component)
|
|
26
|
-
- [Sheet (Slide-over)](#sheet-slide-over-component)
|
|
27
|
-
- [Menubar & Navigation](#menubar--navigation)
|
|
28
|
-
- [Table](#table-component)
|
|
29
|
-
- [Toast Notifications](#toast-notifications)
|
|
30
|
-
- [Advanced Patterns](#advanced-patterns)
|
|
31
|
-
- [Customization](#customization)
|
|
32
|
-
- [Next.js Integration](#nextjs-integration)
|
|
33
|
-
- [Best Practices](#best-practices)
|
|
34
|
-
- [Common Component Combinations](#common-component-combinations)
|
|
35
|
-
|
|
36
|
-
## When to Use
|
|
37
|
-
|
|
38
|
-
- Setting up a new project with shadcn/ui
|
|
39
|
-
- Installing or configuring individual components
|
|
40
|
-
- Building forms with React Hook Form and Zod validation
|
|
41
|
-
- Creating accessible UI components (buttons, dialogs, dropdowns, sheets)
|
|
42
|
-
- Customizing component styling with Tailwind CSS
|
|
43
|
-
- Implementing design systems with shadcn/ui
|
|
44
|
-
- Building Next.js applications with TypeScript
|
|
45
|
-
- Creating complex layouts and data displays
|
|
46
|
-
|
|
47
|
-
## Instructions
|
|
48
|
-
|
|
49
|
-
1. **Initialize Project**: Run `npx shadcn@latest init` to configure shadcn/ui
|
|
50
|
-
2. **Install Components**: Add components with `npx shadcn@latest add <component>`
|
|
51
|
-
3. **Configure Theme**: Customize CSS variables in globals.css for theming
|
|
52
|
-
4. **Import Components**: Use components from `@/components/ui/` directory
|
|
53
|
-
5. **Customize as Needed**: Modify component code directly in your project
|
|
54
|
-
6. **Add Form Validation**: Integrate React Hook Form with Zod schemas
|
|
55
|
-
7. **Test Accessibility**: Verify ARIA attributes and keyboard navigation
|
|
56
|
-
|
|
57
|
-
## Examples
|
|
58
|
-
|
|
59
|
-
### Complete Form with Validation
|
|
60
|
-
|
|
61
|
-
```tsx
|
|
62
|
-
"use client"
|
|
63
|
-
|
|
64
|
-
import { zodResolver } from "@hookform/resolvers/zod"
|
|
65
|
-
import { useForm } from "react-hook-form"
|
|
66
|
-
import { z } from "zod"
|
|
67
|
-
import { Button } from "@/components/ui/button"
|
|
68
|
-
import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from "@/components/ui/form"
|
|
69
|
-
import { Input } from "@/components/ui/input"
|
|
70
|
-
|
|
71
|
-
const formSchema = z.object({
|
|
72
|
-
email: z.string().email("Invalid email"),
|
|
73
|
-
password: z.string().min(8, "Password must be at least 8 characters"),
|
|
74
|
-
})
|
|
75
|
-
|
|
76
|
-
export function LoginForm() {
|
|
77
|
-
const form = useForm<z.infer<typeof formSchema>>({
|
|
78
|
-
resolver: zodResolver(formSchema),
|
|
79
|
-
defaultValues: { email: "", password: "" },
|
|
80
|
-
})
|
|
81
|
-
|
|
82
|
-
return (
|
|
83
|
-
<Form {...form}>
|
|
84
|
-
<form onSubmit={form.handleSubmit(console.log)} className="space-y-4">
|
|
85
|
-
<FormField name="email" render={({ field }) => (
|
|
86
|
-
<FormItem>
|
|
87
|
-
<FormLabel>Email</FormLabel>
|
|
88
|
-
<FormControl><Input type="email" {...field} /></FormControl>
|
|
89
|
-
<FormMessage />
|
|
90
|
-
</FormItem>
|
|
91
|
-
)} />
|
|
92
|
-
<Button type="submit">Login</Button>
|
|
93
|
-
</form>
|
|
94
|
-
</Form>
|
|
95
|
-
)
|
|
96
|
-
}
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
## Constraints and Warnings
|
|
100
|
-
|
|
101
|
-
- **Not an NPM Package**: Components are copied to your project; you own the code
|
|
102
|
-
- **Client Components**: Most components require "use client" directive
|
|
103
|
-
- **Radix Dependencies**: Ensure all @radix-ui packages are installed
|
|
104
|
-
- **Tailwind Required**: Components rely on Tailwind CSS utilities
|
|
105
|
-
- **TypeScript**: Designed for TypeScript projects; type definitions included
|
|
106
|
-
- **Path Aliases**: Configure @ alias in tsconfig.json for imports
|
|
107
|
-
- **Dark Mode**: Set up dark mode with CSS variables or class strategy
|
|
108
|
-
|
|
109
|
-
## Quick Start
|
|
110
|
-
|
|
111
|
-
For new projects, use the automated setup:
|
|
112
|
-
|
|
113
|
-
```bash
|
|
114
|
-
# Create Next.js project with shadcn/ui
|
|
115
|
-
npx create-next-app@latest my-app --typescript --tailwind --eslint --app
|
|
116
|
-
cd my-app
|
|
117
|
-
npx shadcn@latest init
|
|
118
|
-
|
|
119
|
-
# Install essential components
|
|
120
|
-
npx shadcn@latest add button input form card dialog select
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
For existing projects:
|
|
124
|
-
|
|
125
|
-
```bash
|
|
126
|
-
# Install dependencies
|
|
127
|
-
npm install tailwindcss-animate class-variance-authority clsx tailwind-merge lucide-react
|
|
128
|
-
|
|
129
|
-
# Initialize shadcn/ui
|
|
130
|
-
npx shadcn@latest init
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
## What is shadcn/ui?
|
|
134
|
-
|
|
135
|
-
shadcn/ui is **not** a traditional component library or npm package. Instead:
|
|
136
|
-
|
|
137
|
-
- It's a **collection of reusable components** that you can copy into your project
|
|
138
|
-
- Components are **yours to customize** - you own the code
|
|
139
|
-
- Built with **Radix UI** primitives for accessibility
|
|
140
|
-
- Styled with **Tailwind CSS** utilities
|
|
141
|
-
- Includes CLI tool for easy component installation
|
|
142
|
-
|
|
143
|
-
## Installation & Setup
|
|
144
|
-
|
|
145
|
-
### Initial Setup
|
|
146
|
-
|
|
147
|
-
```bash
|
|
148
|
-
# Initialize shadcn/ui in your project
|
|
149
|
-
npx shadcn@latest init
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
During setup, you'll configure:
|
|
153
|
-
- TypeScript or JavaScript
|
|
154
|
-
- Style (Default, New York, etc.)
|
|
155
|
-
- Base color theme
|
|
156
|
-
- CSS variables or Tailwind CSS classes
|
|
157
|
-
- Component installation path
|
|
158
|
-
|
|
159
|
-
### Installing Individual Components
|
|
160
|
-
|
|
161
|
-
```bash
|
|
162
|
-
# Install a single component
|
|
163
|
-
npx shadcn@latest add button
|
|
164
|
-
|
|
165
|
-
# Install multiple components
|
|
166
|
-
npx shadcn@latest add button input form
|
|
167
|
-
|
|
168
|
-
# Install all components
|
|
169
|
-
npx shadcn@latest add --all
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
### Manual Installation
|
|
173
|
-
|
|
174
|
-
If you prefer manual setup:
|
|
175
|
-
|
|
176
|
-
```bash
|
|
177
|
-
# Install dependencies for a specific component
|
|
178
|
-
npm install @radix-ui/react-slot
|
|
179
|
-
|
|
180
|
-
# Copy component code from ui.shadcn.com
|
|
181
|
-
# Place in src/components/ui/
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
## Project Configuration
|
|
185
|
-
|
|
186
|
-
### Required Dependencies
|
|
187
|
-
|
|
188
|
-
```json
|
|
189
|
-
{
|
|
190
|
-
"dependencies": {
|
|
191
|
-
"@radix-ui/react-accordion": "^1.1.2",
|
|
192
|
-
"@radix-ui/react-alert-dialog": "^1.0.5",
|
|
193
|
-
"@radix-ui/react-dialog": "^1.0.5",
|
|
194
|
-
"@radix-ui/react-dropdown-menu": "^2.0.6",
|
|
195
|
-
"@radix-ui/react-label": "^2.0.2",
|
|
196
|
-
"@radix-ui/react-select": "^2.0.0",
|
|
197
|
-
"@radix-ui/react-separator": "^1.0.3",
|
|
198
|
-
"@radix-ui/react-slot": "^1.0.2",
|
|
199
|
-
"@radix-ui/react-toast": "^1.1.5",
|
|
200
|
-
"class-variance-authority": "^0.7.0",
|
|
201
|
-
"clsx": "^2.0.0",
|
|
202
|
-
"lucide-react": "^0.294.0",
|
|
203
|
-
"tailwind-merge": "^2.0.0",
|
|
204
|
-
"tailwindcss-animate": "^1.0.7"
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
```
|
|
208
|
-
|
|
209
|
-
### TSConfig Configuration
|
|
210
|
-
|
|
211
|
-
```json
|
|
212
|
-
{
|
|
213
|
-
"compilerOptions": {
|
|
214
|
-
"target": "es5",
|
|
215
|
-
"lib": ["dom", "dom.iterable", "es6"],
|
|
216
|
-
"allowJs": true,
|
|
217
|
-
"skipLibCheck": true,
|
|
218
|
-
"strict": true,
|
|
219
|
-
"forceConsistentCasingInFileNames": true,
|
|
220
|
-
"noEmit": true,
|
|
221
|
-
"esModuleInterop": true,
|
|
222
|
-
"module": "esnext",
|
|
223
|
-
"moduleResolution": "node",
|
|
224
|
-
"resolveJsonModule": true,
|
|
225
|
-
"isolatedModules": true,
|
|
226
|
-
"jsx": "preserve",
|
|
227
|
-
"incremental": true,
|
|
228
|
-
"plugins": [
|
|
229
|
-
{
|
|
230
|
-
"name": "next"
|
|
231
|
-
}
|
|
232
|
-
],
|
|
233
|
-
"baseUrl": ".",
|
|
234
|
-
"paths": {
|
|
235
|
-
"@/components/*": ["./src/components/*"],
|
|
236
|
-
"@/lib/*": ["./src/lib/*"]
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
|
-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
240
|
-
"exclude": ["node_modules"]
|
|
241
|
-
}
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
### Tailwind Configuration
|
|
245
|
-
|
|
246
|
-
```js
|
|
247
|
-
// tailwind.config.js
|
|
248
|
-
/** @type {import('tailwindcss').Config} */
|
|
249
|
-
module.exports = {
|
|
250
|
-
darkMode: ["class"],
|
|
251
|
-
content: [
|
|
252
|
-
'./pages/**/*.{ts,tsx}',
|
|
253
|
-
'./components/**/*.{ts,tsx}',
|
|
254
|
-
'./app/**/*.{ts,tsx}',
|
|
255
|
-
'./src/**/*.{ts,tsx}',
|
|
256
|
-
],
|
|
257
|
-
prefix: "",
|
|
258
|
-
theme: {
|
|
259
|
-
container: {
|
|
260
|
-
center: true,
|
|
261
|
-
padding: "2rem",
|
|
262
|
-
screens: {
|
|
263
|
-
"2xl": "1400px",
|
|
264
|
-
},
|
|
265
|
-
},
|
|
266
|
-
extend: {
|
|
267
|
-
colors: {
|
|
268
|
-
border: "hsl(var(--border))",
|
|
269
|
-
input: "hsl(var(--input))",
|
|
270
|
-
ring: "hsl(var(--ring))",
|
|
271
|
-
background: "hsl(var(--background))",
|
|
272
|
-
foreground: "hsl(var(--foreground))",
|
|
273
|
-
primary: {
|
|
274
|
-
DEFAULT: "hsl(var(--primary))",
|
|
275
|
-
foreground: "hsl(var(--primary-foreground))",
|
|
276
|
-
},
|
|
277
|
-
secondary: {
|
|
278
|
-
DEFAULT: "hsl(var(--secondary))",
|
|
279
|
-
foreground: "hsl(var(--secondary-foreground))",
|
|
280
|
-
},
|
|
281
|
-
destructive: {
|
|
282
|
-
DEFAULT: "hsl(var(--destructive))",
|
|
283
|
-
foreground: "hsl(var(--destructive-foreground))",
|
|
284
|
-
},
|
|
285
|
-
muted: {
|
|
286
|
-
DEFAULT: "hsl(var(--muted))",
|
|
287
|
-
foreground: "hsl(var(--muted-foreground))",
|
|
288
|
-
},
|
|
289
|
-
accent: {
|
|
290
|
-
DEFAULT: "hsl(var(--accent))",
|
|
291
|
-
foreground: "hsl(var(--accent-foreground))",
|
|
292
|
-
},
|
|
293
|
-
popover: {
|
|
294
|
-
DEFAULT: "hsl(var(--popover))",
|
|
295
|
-
foreground: "hsl(var(--popover-foreground))",
|
|
296
|
-
},
|
|
297
|
-
card: {
|
|
298
|
-
DEFAULT: "hsl(var(--card))",
|
|
299
|
-
foreground: "hsl(var(--card-foreground))",
|
|
300
|
-
},
|
|
301
|
-
},
|
|
302
|
-
borderRadius: {
|
|
303
|
-
lg: "var(--radius)",
|
|
304
|
-
md: "calc(var(--radius) - 2px)",
|
|
305
|
-
sm: "calc(var(--radius) - 4px)",
|
|
306
|
-
},
|
|
307
|
-
keyframes: {
|
|
308
|
-
"accordion-down": {
|
|
309
|
-
from: { height: "0" },
|
|
310
|
-
to: { height: "var(--radix-accordion-content-height)" },
|
|
311
|
-
},
|
|
312
|
-
"accordion-up": {
|
|
313
|
-
from: { height: "var(--radix-accordion-content-height)" },
|
|
314
|
-
to: { height: "0" },
|
|
315
|
-
},
|
|
316
|
-
},
|
|
317
|
-
animation: {
|
|
318
|
-
"accordion-down": "accordion-down 0.2s ease-out",
|
|
319
|
-
"accordion-up": "accordion-up 0.2s ease-out",
|
|
320
|
-
},
|
|
321
|
-
},
|
|
322
|
-
},
|
|
323
|
-
plugins: [require("tailwindcss-animate")],
|
|
324
|
-
}
|
|
325
|
-
```
|
|
326
|
-
|
|
327
|
-
### CSS Variables (globals.css)
|
|
328
|
-
|
|
329
|
-
```css
|
|
330
|
-
@tailwind base;
|
|
331
|
-
@tailwind components;
|
|
332
|
-
@tailwind utilities;
|
|
333
|
-
|
|
334
|
-
@layer base {
|
|
335
|
-
:root {
|
|
336
|
-
--background: 0 0% 100%;
|
|
337
|
-
--foreground: 222.2 84% 4.9%;
|
|
338
|
-
--card: 0 0% 100%;
|
|
339
|
-
--card-foreground: 222.2 84% 4.9%;
|
|
340
|
-
--popover: 0 0% 100%;
|
|
341
|
-
--popover-foreground: 222.2 84% 4.9%;
|
|
342
|
-
--primary: 222.2 47.4% 11.2%;
|
|
343
|
-
--primary-foreground: 210 40% 98%;
|
|
344
|
-
--secondary: 210 40% 96.1%;
|
|
345
|
-
--secondary-foreground: 222.2 47.4% 11.2%;
|
|
346
|
-
--muted: 210 40% 96.1%;
|
|
347
|
-
--muted-foreground: 215.4 16.3% 46.9%;
|
|
348
|
-
--accent: 210 40% 96.1%;
|
|
349
|
-
--accent-foreground: 222.2 47.4% 11.2%;
|
|
350
|
-
--destructive: 0 84.2% 60.2%;
|
|
351
|
-
--destructive-foreground: 210 40% 98%;
|
|
352
|
-
--border: 214.3 31.8% 91.4%;
|
|
353
|
-
--input: 214.3 31.8% 91.4%;
|
|
354
|
-
--ring: 222.2 84% 4.9%;
|
|
355
|
-
--radius: 0.5rem;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
.dark {
|
|
359
|
-
--background: 222.2 84% 4.9%;
|
|
360
|
-
--foreground: 210 40% 98%;
|
|
361
|
-
--card: 222.2 84% 4.9%;
|
|
362
|
-
--card-foreground: 210 40% 98%;
|
|
363
|
-
--popover: 222.2 84% 4.9%;
|
|
364
|
-
--popover-foreground: 210 40% 98%;
|
|
365
|
-
--primary: 210 40% 98%;
|
|
366
|
-
--primary-foreground: 222.2 47.4% 11.2%;
|
|
367
|
-
--secondary: 217.2 32.6% 17.5%;
|
|
368
|
-
--secondary-foreground: 210 40% 98%;
|
|
369
|
-
--muted: 217.2 32.6% 17.5%;
|
|
370
|
-
--muted-foreground: 215 20.2% 65.1%;
|
|
371
|
-
--accent: 217.2 32.6% 17.5%;
|
|
372
|
-
--accent-foreground: 210 40% 98%;
|
|
373
|
-
--destructive: 0 62.8% 30.6%;
|
|
374
|
-
--destructive-foreground: 210 40% 98%;
|
|
375
|
-
--border: 217.2 32.6% 17.5%;
|
|
376
|
-
--input: 217.2 32.6% 17.5%;
|
|
377
|
-
--ring: 212.7 26.8% 83.9%;
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
@layer base {
|
|
382
|
-
* {
|
|
383
|
-
@apply border-border;
|
|
384
|
-
}
|
|
385
|
-
body {
|
|
386
|
-
@apply bg-background text-foreground;
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
```
|
|
390
|
-
|
|
391
|
-
## Core Components
|
|
392
|
-
|
|
393
|
-
### Button Component
|
|
394
|
-
|
|
395
|
-
Installation:
|
|
396
|
-
|
|
397
|
-
```bash
|
|
398
|
-
npx shadcn@latest add button
|
|
399
|
-
```
|
|
400
|
-
|
|
401
|
-
Basic usage:
|
|
402
|
-
|
|
403
|
-
```tsx
|
|
404
|
-
import { Button } from "@/components/ui/button";
|
|
405
|
-
|
|
406
|
-
export function ButtonDemo() {
|
|
407
|
-
return <Button>Click me</Button>;
|
|
408
|
-
}
|
|
409
|
-
```
|
|
410
|
-
|
|
411
|
-
Button variants:
|
|
412
|
-
|
|
413
|
-
```tsx
|
|
414
|
-
import { Button } from "@/components/ui/button";
|
|
415
|
-
|
|
416
|
-
export function ButtonVariants() {
|
|
417
|
-
return (
|
|
418
|
-
<div className="flex gap-4">
|
|
419
|
-
<Button variant="default">Default</Button>
|
|
420
|
-
<Button variant="destructive">Destructive</Button>
|
|
421
|
-
<Button variant="outline">Outline</Button>
|
|
422
|
-
<Button variant="secondary">Secondary</Button>
|
|
423
|
-
<Button variant="ghost">Ghost</Button>
|
|
424
|
-
<Button variant="link">Link</Button>
|
|
425
|
-
</div>
|
|
426
|
-
);
|
|
427
|
-
}
|
|
428
|
-
```
|
|
429
|
-
|
|
430
|
-
Button sizes:
|
|
431
|
-
|
|
432
|
-
```tsx
|
|
433
|
-
<div className="flex gap-4 items-center">
|
|
434
|
-
<Button size="default">Default</Button>
|
|
435
|
-
<Button size="sm">Small</Button>
|
|
436
|
-
<Button size="lg">Large</Button>
|
|
437
|
-
<Button size="icon">
|
|
438
|
-
<Icon className="h-4 w-4" />
|
|
439
|
-
</Button>
|
|
440
|
-
</div>
|
|
441
|
-
```
|
|
442
|
-
|
|
443
|
-
With loading state:
|
|
444
|
-
|
|
445
|
-
```tsx
|
|
446
|
-
import { Button } from "@/components/ui/button";
|
|
447
|
-
import { Loader2 } from "lucide-react";
|
|
448
|
-
|
|
449
|
-
export function ButtonLoading() {
|
|
450
|
-
return (
|
|
451
|
-
<Button disabled>
|
|
452
|
-
<Loader2 className="mr-2 h-4 w-4 animate-spin" />
|
|
453
|
-
Please wait
|
|
454
|
-
</Button>
|
|
455
|
-
);
|
|
456
|
-
}
|
|
457
|
-
```
|
|
458
|
-
|
|
459
|
-
### Input & Form Fields
|
|
460
|
-
|
|
461
|
-
#### Input Component
|
|
462
|
-
|
|
463
|
-
Installation:
|
|
464
|
-
|
|
465
|
-
```bash
|
|
466
|
-
npx shadcn@latest add input
|
|
467
|
-
```
|
|
468
|
-
|
|
469
|
-
Basic input:
|
|
470
|
-
|
|
471
|
-
```tsx
|
|
472
|
-
import { Input } from "@/components/ui/input";
|
|
473
|
-
|
|
474
|
-
export function InputDemo() {
|
|
475
|
-
return <Input type="email" placeholder="Email" />;
|
|
476
|
-
}
|
|
477
|
-
```
|
|
478
|
-
|
|
479
|
-
Input with label:
|
|
480
|
-
|
|
481
|
-
```tsx
|
|
482
|
-
import { Input } from "@/components/ui/input";
|
|
483
|
-
import { Label } from "@/components/ui/label";
|
|
484
|
-
|
|
485
|
-
export function InputWithLabel() {
|
|
486
|
-
return (
|
|
487
|
-
<div className="grid w-full max-w-sm items-center gap-1.5">
|
|
488
|
-
<Label htmlFor="email">Email</Label>
|
|
489
|
-
<Input type="email" id="email" placeholder="Email" />
|
|
490
|
-
</div>
|
|
491
|
-
);
|
|
492
|
-
}
|
|
493
|
-
```
|
|
494
|
-
|
|
495
|
-
Input with button:
|
|
496
|
-
|
|
497
|
-
```tsx
|
|
498
|
-
import { Button } from "@/components/ui/button";
|
|
499
|
-
import { Input } from "@/components/ui/input";
|
|
500
|
-
|
|
501
|
-
export function InputWithButton() {
|
|
502
|
-
return (
|
|
503
|
-
<div className="flex w-full max-w-sm items-center gap-2">
|
|
504
|
-
<Input type="email" placeholder="Email" />
|
|
505
|
-
<Button type="submit" variant="outline">Subscribe</Button>
|
|
506
|
-
</div>
|
|
507
|
-
);
|
|
508
|
-
}
|
|
509
|
-
```
|
|
510
|
-
|
|
511
|
-
### Forms with Validation
|
|
512
|
-
|
|
513
|
-
Installation:
|
|
514
|
-
|
|
515
|
-
```bash
|
|
516
|
-
npx shadcn@latest add form
|
|
517
|
-
```
|
|
518
|
-
|
|
519
|
-
This installs React Hook Form, Zod, and form components.
|
|
520
|
-
|
|
521
|
-
Complete form example:
|
|
522
|
-
|
|
523
|
-
```tsx
|
|
524
|
-
"use client"
|
|
525
|
-
|
|
526
|
-
import { zodResolver } from "@hookform/resolvers/zod"
|
|
527
|
-
import { useForm } from "react-hook-form"
|
|
528
|
-
import * as z from "zod"
|
|
529
|
-
|
|
530
|
-
import { Button } from "@/components/ui/button"
|
|
531
|
-
import {
|
|
532
|
-
Form,
|
|
533
|
-
FormControl,
|
|
534
|
-
FormDescription,
|
|
535
|
-
FormField,
|
|
536
|
-
FormItem,
|
|
537
|
-
FormLabel,
|
|
538
|
-
FormMessage,
|
|
539
|
-
} from "@/components/ui/form"
|
|
540
|
-
import { Input } from "@/components/ui/input"
|
|
541
|
-
import { toast } from "@/components/ui/use-toast"
|
|
542
|
-
|
|
543
|
-
const formSchema = z.object({
|
|
544
|
-
username: z.string().min(2, {
|
|
545
|
-
message: "Username must be at least 2 characters.",
|
|
546
|
-
}),
|
|
547
|
-
email: z.string().email({
|
|
548
|
-
message: "Please enter a valid email address.",
|
|
549
|
-
}),
|
|
550
|
-
})
|
|
551
|
-
|
|
552
|
-
export function ProfileForm() {
|
|
553
|
-
const form = useForm<z.infer<typeof formSchema>>({
|
|
554
|
-
resolver: zodResolver(formSchema),
|
|
555
|
-
defaultValues: {
|
|
556
|
-
username: "",
|
|
557
|
-
email: "",
|
|
558
|
-
},
|
|
559
|
-
})
|
|
560
|
-
|
|
561
|
-
function onSubmit(values: z.infer<typeof formSchema>) {
|
|
562
|
-
toast({
|
|
563
|
-
title: "You submitted the following values:",
|
|
564
|
-
description: (
|
|
565
|
-
<pre className="mt-2 w-[340px] rounded-md bg-slate-950 p-4">
|
|
566
|
-
<code className="text-white">{JSON.stringify(values, null, 2)}</code>
|
|
567
|
-
</pre>
|
|
568
|
-
),
|
|
569
|
-
})
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
return (
|
|
573
|
-
<Form {...form}>
|
|
574
|
-
<form onSubmit={form.handleSubmit(onSubmit)} className="space-y-8">
|
|
575
|
-
<FormField
|
|
576
|
-
control={form.control}
|
|
577
|
-
name="username"
|
|
578
|
-
render={({ field }) => (
|
|
579
|
-
<FormItem>
|
|
580
|
-
<FormLabel>Username</FormLabel>
|
|
581
|
-
<FormControl>
|
|
582
|
-
<Input placeholder="shadcn" {...field} />
|
|
583
|
-
</FormControl>
|
|
584
|
-
<FormDescription>
|
|
585
|
-
This is your public display name.
|
|
586
|
-
</FormDescription>
|
|
587
|
-
<FormMessage />
|
|
588
|
-
</FormItem>
|
|
589
|
-
)}
|
|
590
|
-
/>
|
|
591
|
-
|
|
592
|
-
<FormField
|
|
593
|
-
control={form.control}
|
|
594
|
-
name="email"
|
|
595
|
-
render={({ field }) => (
|
|
596
|
-
<FormItem>
|
|
597
|
-
<FormLabel>Email</FormLabel>
|
|
598
|
-
<FormControl>
|
|
599
|
-
<Input type="email" placeholder="you@example.com" {...field} />
|
|
600
|
-
</FormControl>
|
|
601
|
-
<FormMessage />
|
|
602
|
-
</FormItem>
|
|
603
|
-
)}
|
|
604
|
-
/>
|
|
605
|
-
|
|
606
|
-
<Button type="submit">Submit</Button>
|
|
607
|
-
</form>
|
|
608
|
-
</Form>
|
|
609
|
-
)
|
|
610
|
-
}
|
|
611
|
-
```
|
|
612
|
-
|
|
613
|
-
### Card Component
|
|
614
|
-
|
|
615
|
-
Installation:
|
|
616
|
-
|
|
617
|
-
```bash
|
|
618
|
-
npx shadcn@latest add card
|
|
619
|
-
```
|
|
620
|
-
|
|
621
|
-
Basic card:
|
|
622
|
-
|
|
623
|
-
```tsx
|
|
624
|
-
import {
|
|
625
|
-
Card,
|
|
626
|
-
CardContent,
|
|
627
|
-
CardDescription,
|
|
628
|
-
CardFooter,
|
|
629
|
-
CardHeader,
|
|
630
|
-
CardTitle,
|
|
631
|
-
} from "@/components/ui/card"
|
|
632
|
-
|
|
633
|
-
export function CardDemo() {
|
|
634
|
-
return (
|
|
635
|
-
<Card>
|
|
636
|
-
<CardHeader>
|
|
637
|
-
<CardTitle>Card Title</CardTitle>
|
|
638
|
-
<CardDescription>Card Description</CardDescription>
|
|
639
|
-
</CardHeader>
|
|
640
|
-
<CardContent>
|
|
641
|
-
<p>Card Content</p>
|
|
642
|
-
</CardContent>
|
|
643
|
-
<CardFooter>
|
|
644
|
-
<p>Card Footer</p>
|
|
645
|
-
</CardFooter>
|
|
646
|
-
</Card>
|
|
647
|
-
)
|
|
648
|
-
}
|
|
649
|
-
```
|
|
650
|
-
|
|
651
|
-
Card with form:
|
|
652
|
-
|
|
653
|
-
```tsx
|
|
654
|
-
import { Button } from "@/components/ui/button"
|
|
655
|
-
import {
|
|
656
|
-
Card,
|
|
657
|
-
CardContent,
|
|
658
|
-
CardDescription,
|
|
659
|
-
CardFooter,
|
|
660
|
-
CardHeader,
|
|
661
|
-
CardTitle,
|
|
662
|
-
} from "@/components/ui/card"
|
|
663
|
-
import { Input } from "@/components/ui/input"
|
|
664
|
-
import { Label } from "@/components/ui/label"
|
|
665
|
-
|
|
666
|
-
export function CardWithForm() {
|
|
667
|
-
return (
|
|
668
|
-
<Card className="w-[350px]">
|
|
669
|
-
<CardHeader>
|
|
670
|
-
<CardTitle>Create project</CardTitle>
|
|
671
|
-
<CardDescription>Deploy your new project in one-click.</CardDescription>
|
|
672
|
-
</CardHeader>
|
|
673
|
-
<CardContent>
|
|
674
|
-
<form>
|
|
675
|
-
<div className="grid w-full items-center gap-4">
|
|
676
|
-
<div className="flex flex-col space-y-1.5">
|
|
677
|
-
<Label htmlFor="name">Name</Label>
|
|
678
|
-
<Input id="name" placeholder="Name of your project" />
|
|
679
|
-
</div>
|
|
680
|
-
</div>
|
|
681
|
-
</form>
|
|
682
|
-
</CardContent>
|
|
683
|
-
<CardFooter className="flex justify-between">
|
|
684
|
-
<Button variant="outline">Cancel</Button>
|
|
685
|
-
<Button>Deploy</Button>
|
|
686
|
-
</CardFooter>
|
|
687
|
-
</Card>
|
|
688
|
-
)
|
|
689
|
-
}
|
|
690
|
-
```
|
|
691
|
-
|
|
692
|
-
### Dialog (Modal) Component
|
|
693
|
-
|
|
694
|
-
Installation:
|
|
695
|
-
|
|
696
|
-
```bash
|
|
697
|
-
npx shadcn@latest add dialog
|
|
698
|
-
```
|
|
699
|
-
|
|
700
|
-
Basic dialog:
|
|
701
|
-
|
|
702
|
-
```tsx
|
|
703
|
-
import { Button } from "@/components/ui/button"
|
|
704
|
-
import {
|
|
705
|
-
Dialog,
|
|
706
|
-
DialogContent,
|
|
707
|
-
DialogDescription,
|
|
708
|
-
DialogFooter,
|
|
709
|
-
DialogHeader,
|
|
710
|
-
DialogTitle,
|
|
711
|
-
DialogTrigger,
|
|
712
|
-
} from "@/components/ui/dialog"
|
|
713
|
-
|
|
714
|
-
export function DialogDemo() {
|
|
715
|
-
return (
|
|
716
|
-
<Dialog>
|
|
717
|
-
<DialogTrigger asChild>
|
|
718
|
-
<Button variant="outline">Open Dialog</Button>
|
|
719
|
-
</DialogTrigger>
|
|
720
|
-
<DialogContent className="sm:max-w-[425px]">
|
|
721
|
-
<DialogHeader>
|
|
722
|
-
<DialogTitle>Edit profile</DialogTitle>
|
|
723
|
-
<DialogDescription>
|
|
724
|
-
Make changes to your profile here. Click save when you're done.
|
|
725
|
-
</DialogDescription>
|
|
726
|
-
</DialogHeader>
|
|
727
|
-
<div className="grid gap-4 py-4">
|
|
728
|
-
<div className="grid grid-cols-4 items-center gap-4">
|
|
729
|
-
<Label htmlFor="name" className="text-right">
|
|
730
|
-
Name
|
|
731
|
-
</Label>
|
|
732
|
-
<Input id="name" value="Pedro Duarte" className="col-span-3" />
|
|
733
|
-
</div>
|
|
734
|
-
</div>
|
|
735
|
-
<DialogFooter>
|
|
736
|
-
<Button type="submit">Save changes</Button>
|
|
737
|
-
</DialogFooter>
|
|
738
|
-
</DialogContent>
|
|
739
|
-
</Dialog>
|
|
740
|
-
)
|
|
741
|
-
}
|
|
742
|
-
```
|
|
743
|
-
|
|
744
|
-
### Sheet (Slide-over) Component
|
|
745
|
-
|
|
746
|
-
Installation:
|
|
747
|
-
|
|
748
|
-
```bash
|
|
749
|
-
npx shadcn@latest add sheet
|
|
750
|
-
```
|
|
751
|
-
|
|
752
|
-
Basic sheet:
|
|
753
|
-
|
|
754
|
-
```tsx
|
|
755
|
-
import { Button } from "@/components/ui/button"
|
|
756
|
-
import {
|
|
757
|
-
Sheet,
|
|
758
|
-
SheetContent,
|
|
759
|
-
SheetDescription,
|
|
760
|
-
SheetHeader,
|
|
761
|
-
SheetTitle,
|
|
762
|
-
SheetTrigger,
|
|
763
|
-
} from "@/components/ui/sheet"
|
|
764
|
-
|
|
765
|
-
export function SheetDemo() {
|
|
766
|
-
return (
|
|
767
|
-
<Sheet>
|
|
768
|
-
<SheetTrigger asChild>
|
|
769
|
-
<Button variant="outline">Open Sheet</Button>
|
|
770
|
-
</SheetTrigger>
|
|
771
|
-
<SheetContent>
|
|
772
|
-
<SheetHeader>
|
|
773
|
-
<SheetTitle>Edit profile</SheetTitle>
|
|
774
|
-
<SheetDescription>
|
|
775
|
-
Make changes to your profile here. Click save when you're done.
|
|
776
|
-
</SheetDescription>
|
|
777
|
-
</SheetHeader>
|
|
778
|
-
<div className="grid gap-4 py-4">
|
|
779
|
-
<div className="grid grid-cols-4 items-center gap-4">
|
|
780
|
-
<Label htmlFor="name" className="text-right">
|
|
781
|
-
Name
|
|
782
|
-
</Label>
|
|
783
|
-
<Input id="name" value="Pedro Duarte" className="col-span-3" />
|
|
784
|
-
</div>
|
|
785
|
-
<div className="grid grid-cols-4 items-center gap-4">
|
|
786
|
-
<Label htmlFor="username" className="text-right">
|
|
787
|
-
Username
|
|
788
|
-
</Label>
|
|
789
|
-
<Input id="username" value="@peduarte" className="col-span-3" />
|
|
790
|
-
</div>
|
|
791
|
-
</div>
|
|
792
|
-
</SheetContent>
|
|
793
|
-
</Sheet>
|
|
794
|
-
)
|
|
795
|
-
}
|
|
796
|
-
```
|
|
797
|
-
|
|
798
|
-
Sheet with side placement:
|
|
799
|
-
|
|
800
|
-
```tsx
|
|
801
|
-
<Sheet>
|
|
802
|
-
<SheetTrigger asChild>
|
|
803
|
-
<Button variant="outline">Open Right Sheet</Button>
|
|
804
|
-
</SheetTrigger>
|
|
805
|
-
<SheetContent side="right">
|
|
806
|
-
<SheetHeader>
|
|
807
|
-
<SheetTitle>Settings</SheetTitle>
|
|
808
|
-
<SheetDescription>
|
|
809
|
-
Configure your application settings here.
|
|
810
|
-
</SheetDescription>
|
|
811
|
-
</SheetHeader>
|
|
812
|
-
{/* Settings content */}
|
|
813
|
-
</SheetContent>
|
|
814
|
-
</Sheet>
|
|
815
|
-
```
|
|
816
|
-
|
|
817
|
-
### Menubar & Navigation
|
|
818
|
-
|
|
819
|
-
#### Menubar Component
|
|
820
|
-
|
|
821
|
-
Installation:
|
|
822
|
-
|
|
823
|
-
```bash
|
|
824
|
-
npx shadcn@latest add menubar
|
|
825
|
-
```
|
|
826
|
-
|
|
827
|
-
Basic menubar:
|
|
828
|
-
|
|
829
|
-
```tsx
|
|
830
|
-
import {
|
|
831
|
-
Menubar,
|
|
832
|
-
MenubarContent,
|
|
833
|
-
MenubarItem,
|
|
834
|
-
MenubarMenu,
|
|
835
|
-
MenubarSeparator,
|
|
836
|
-
MenubarShortcut,
|
|
837
|
-
MenubarSub,
|
|
838
|
-
MenubarSubContent,
|
|
839
|
-
MenubarSubTrigger,
|
|
840
|
-
MenubarTrigger,
|
|
841
|
-
} from "@/components/ui/menubar"
|
|
842
|
-
|
|
843
|
-
export function MenubarDemo() {
|
|
844
|
-
return (
|
|
845
|
-
<Menubar>
|
|
846
|
-
<MenubarMenu>
|
|
847
|
-
<MenubarTrigger>File</MenubarTrigger>
|
|
848
|
-
<MenubarContent>
|
|
849
|
-
<MenubarItem>
|
|
850
|
-
New Tab <MenubarShortcut>⌘T</MenubarShortcut>
|
|
851
|
-
</MenubarItem>
|
|
852
|
-
<MenubarItem>
|
|
853
|
-
New Window <MenubarShortcut>⌘N</MenubarShortcut>
|
|
854
|
-
</MenubarItem>
|
|
855
|
-
<MenubarSeparator />
|
|
856
|
-
<MenubarItem>Share</MenubarItem>
|
|
857
|
-
<MenubarSeparator />
|
|
858
|
-
<MenubarItem>Print</MenubarItem>
|
|
859
|
-
</MenubarContent>
|
|
860
|
-
</MenubarMenu>
|
|
861
|
-
<MenubarMenu>
|
|
862
|
-
<MenubarTrigger>Edit</MenubarTrigger>
|
|
863
|
-
<MenubarContent>
|
|
864
|
-
<MenubarItem>
|
|
865
|
-
Undo <MenubarShortcut>⌘Z</MenubarShortcut>
|
|
866
|
-
</MenubarItem>
|
|
867
|
-
<MenubarItem>
|
|
868
|
-
Redo <MenubarShortcut>⌘Y</MenubarShortcut>
|
|
869
|
-
</MenubarItem>
|
|
870
|
-
<MenubarSeparator />
|
|
871
|
-
<MenubarSub>
|
|
872
|
-
<MenubarSubTrigger>Find</MenubarSubTrigger>
|
|
873
|
-
<MenubarSubContent>
|
|
874
|
-
<MenubarItem>Search the web</MenubarItem>
|
|
875
|
-
<MenubarItem>Find...</MenubarItem>
|
|
876
|
-
<MenubarItem>Find Next</MenubarItem>
|
|
877
|
-
<MenubarItem>Find Previous</MenubarItem>
|
|
878
|
-
</MenubarSubContent>
|
|
879
|
-
</MenubarSub>
|
|
880
|
-
</MenubarContent>
|
|
881
|
-
</MenubarMenu>
|
|
882
|
-
</Menubar>
|
|
883
|
-
)
|
|
884
|
-
}
|
|
885
|
-
```
|
|
886
|
-
|
|
887
|
-
### Select (Dropdown) Component
|
|
888
|
-
|
|
889
|
-
Installation:
|
|
890
|
-
|
|
891
|
-
```bash
|
|
892
|
-
npx shadcn@latest add select
|
|
893
|
-
```
|
|
894
|
-
|
|
895
|
-
Basic select:
|
|
896
|
-
|
|
897
|
-
```tsx
|
|
898
|
-
import {
|
|
899
|
-
Select,
|
|
900
|
-
SelectContent,
|
|
901
|
-
SelectItem,
|
|
902
|
-
SelectTrigger,
|
|
903
|
-
SelectValue,
|
|
904
|
-
} from "@/components/ui/select"
|
|
905
|
-
|
|
906
|
-
export function SelectDemo() {
|
|
907
|
-
return (
|
|
908
|
-
<Select>
|
|
909
|
-
<SelectTrigger className="w-[180px]">
|
|
910
|
-
<SelectValue placeholder="Select a fruit" />
|
|
911
|
-
</SelectTrigger>
|
|
912
|
-
<SelectContent>
|
|
913
|
-
<SelectItem value="apple">Apple</SelectItem>
|
|
914
|
-
<SelectItem value="banana">Banana</SelectItem>
|
|
915
|
-
<SelectItem value="orange">Orange</SelectItem>
|
|
916
|
-
</SelectContent>
|
|
917
|
-
</Select>
|
|
918
|
-
)
|
|
919
|
-
}
|
|
920
|
-
```
|
|
921
|
-
|
|
922
|
-
Select in form:
|
|
923
|
-
|
|
924
|
-
```tsx
|
|
925
|
-
<FormField
|
|
926
|
-
control={form.control}
|
|
927
|
-
name="role"
|
|
928
|
-
render={({ field }) => (
|
|
929
|
-
<FormItem>
|
|
930
|
-
<FormLabel>Role</FormLabel>
|
|
931
|
-
<Select onValueChange={field.onChange} defaultValue={field.value}>
|
|
932
|
-
<FormControl>
|
|
933
|
-
<SelectTrigger>
|
|
934
|
-
<SelectValue placeholder="Select a role" />
|
|
935
|
-
</SelectTrigger>
|
|
936
|
-
</FormControl>
|
|
937
|
-
<SelectContent>
|
|
938
|
-
<SelectItem value="admin">Admin</SelectItem>
|
|
939
|
-
<SelectItem value="user">User</SelectItem>
|
|
940
|
-
<SelectItem value="guest">Guest</SelectItem>
|
|
941
|
-
</SelectContent>
|
|
942
|
-
</Select>
|
|
943
|
-
<FormMessage />
|
|
944
|
-
</FormItem>
|
|
945
|
-
)}
|
|
946
|
-
/>
|
|
947
|
-
```
|
|
948
|
-
|
|
949
|
-
### Toast Notifications
|
|
950
|
-
|
|
951
|
-
Installation:
|
|
952
|
-
|
|
953
|
-
```bash
|
|
954
|
-
npx shadcn@latest add toast
|
|
955
|
-
```
|
|
956
|
-
|
|
957
|
-
Setup toast provider in root layout:
|
|
958
|
-
|
|
959
|
-
```tsx
|
|
960
|
-
import { Toaster } from "@/components/ui/toaster"
|
|
961
|
-
|
|
962
|
-
export default function RootLayout({ children }) {
|
|
963
|
-
return (
|
|
964
|
-
<html lang="en">
|
|
965
|
-
<body>
|
|
966
|
-
{children}
|
|
967
|
-
<Toaster />
|
|
968
|
-
</body>
|
|
969
|
-
</html>
|
|
970
|
-
)
|
|
971
|
-
}
|
|
972
|
-
```
|
|
973
|
-
|
|
974
|
-
Using toast:
|
|
975
|
-
|
|
976
|
-
```tsx
|
|
977
|
-
import { useToast } from "@/components/ui/use-toast"
|
|
978
|
-
import { Button } from "@/components/ui/button"
|
|
979
|
-
|
|
980
|
-
export function ToastDemo() {
|
|
981
|
-
const { toast } = useToast()
|
|
982
|
-
|
|
983
|
-
return (
|
|
984
|
-
<Button
|
|
985
|
-
onClick={() => {
|
|
986
|
-
toast({
|
|
987
|
-
title: "Scheduled: Catch up",
|
|
988
|
-
description: "Friday, February 10, 2023 at 5:57 PM",
|
|
989
|
-
})
|
|
990
|
-
}}
|
|
991
|
-
>
|
|
992
|
-
Show Toast
|
|
993
|
-
</Button>
|
|
994
|
-
)
|
|
995
|
-
}
|
|
996
|
-
```
|
|
997
|
-
|
|
998
|
-
Toast variants:
|
|
999
|
-
|
|
1000
|
-
```tsx
|
|
1001
|
-
// Success
|
|
1002
|
-
toast({
|
|
1003
|
-
title: "Success",
|
|
1004
|
-
description: "Your changes have been saved.",
|
|
1005
|
-
})
|
|
1006
|
-
|
|
1007
|
-
// Error
|
|
1008
|
-
toast({
|
|
1009
|
-
variant: "destructive",
|
|
1010
|
-
title: "Error",
|
|
1011
|
-
description: "Something went wrong.",
|
|
1012
|
-
})
|
|
1013
|
-
|
|
1014
|
-
// With action
|
|
1015
|
-
toast({
|
|
1016
|
-
title: "Uh oh! Something went wrong.",
|
|
1017
|
-
description: "There was a problem with your request.",
|
|
1018
|
-
action: <ToastAction altText="Try again">Try again</ToastAction>,
|
|
1019
|
-
})
|
|
1020
|
-
```
|
|
1021
|
-
|
|
1022
|
-
### Table Component
|
|
1023
|
-
|
|
1024
|
-
Installation:
|
|
1025
|
-
|
|
1026
|
-
```bash
|
|
1027
|
-
npx shadcn@latest add table
|
|
1028
|
-
```
|
|
1029
|
-
|
|
1030
|
-
Basic table:
|
|
1031
|
-
|
|
1032
|
-
```tsx
|
|
1033
|
-
import {
|
|
1034
|
-
Table,
|
|
1035
|
-
TableBody,
|
|
1036
|
-
TableCaption,
|
|
1037
|
-
TableCell,
|
|
1038
|
-
TableHead,
|
|
1039
|
-
TableHeader,
|
|
1040
|
-
TableRow,
|
|
1041
|
-
} from "@/components/ui/table"
|
|
1042
|
-
|
|
1043
|
-
const invoices = [
|
|
1044
|
-
{ invoice: "INV001", status: "Paid", method: "Credit Card", amount: "$250.00" },
|
|
1045
|
-
{ invoice: "INV002", status: "Pending", method: "PayPal", amount: "$150.00" },
|
|
1046
|
-
]
|
|
1047
|
-
|
|
1048
|
-
export function TableDemo() {
|
|
1049
|
-
return (
|
|
1050
|
-
<Table>
|
|
1051
|
-
<TableCaption>A list of your recent invoices.</TableCaption>
|
|
1052
|
-
<TableHeader>
|
|
1053
|
-
<TableRow>
|
|
1054
|
-
<TableHead>Invoice</TableHead>
|
|
1055
|
-
<TableHead>Status</TableHead>
|
|
1056
|
-
<TableHead>Method</TableHead>
|
|
1057
|
-
<TableHead className="text-right">Amount</TableHead>
|
|
1058
|
-
</TableRow>
|
|
1059
|
-
</TableHeader>
|
|
1060
|
-
<TableBody>
|
|
1061
|
-
{invoices.map((invoice) => (
|
|
1062
|
-
<TableRow key={invoice.invoice}>
|
|
1063
|
-
<TableCell className="font-medium">{invoice.invoice}</TableCell>
|
|
1064
|
-
<TableCell>{invoice.status}</TableCell>
|
|
1065
|
-
<TableCell>{invoice.method}</TableCell>
|
|
1066
|
-
<TableCell className="text-right">{invoice.amount}</TableCell>
|
|
1067
|
-
</TableRow>
|
|
1068
|
-
))}
|
|
1069
|
-
</TableBody>
|
|
1070
|
-
</Table>
|
|
1071
|
-
)
|
|
1072
|
-
}
|
|
1073
|
-
```
|
|
1074
|
-
|
|
1075
|
-
## Customization
|
|
1076
|
-
|
|
1077
|
-
### Theming with CSS Variables
|
|
1078
|
-
|
|
1079
|
-
shadcn/ui uses CSS variables for theming. Configure in `globals.css`:
|
|
1080
|
-
|
|
1081
|
-
```css
|
|
1082
|
-
@layer base {
|
|
1083
|
-
:root {
|
|
1084
|
-
--background: 0 0% 100%;
|
|
1085
|
-
--foreground: 222.2 84% 4.9%;
|
|
1086
|
-
--primary: 222.2 47.4% 11.2%;
|
|
1087
|
-
--primary-foreground: 210 40% 98%;
|
|
1088
|
-
--secondary: 210 40% 96.1%;
|
|
1089
|
-
--secondary-foreground: 222.2 47.4% 11.2%;
|
|
1090
|
-
--muted: 210 40% 96.1%;
|
|
1091
|
-
--muted-foreground: 215.4 16.3% 46.9%;
|
|
1092
|
-
--accent: 210 40% 96.1%;
|
|
1093
|
-
--accent-foreground: 222.2 47.4% 11.2%;
|
|
1094
|
-
--destructive: 0 84.2% 60.2%;
|
|
1095
|
-
--destructive-foreground: 210 40% 98%;
|
|
1096
|
-
--border: 214.3 31.8% 91.4%;
|
|
1097
|
-
--input: 214.3 31.8% 91.4%;
|
|
1098
|
-
--ring: 222.2 84% 4.9%;
|
|
1099
|
-
--radius: 0.5rem;
|
|
1100
|
-
}
|
|
1101
|
-
|
|
1102
|
-
.dark {
|
|
1103
|
-
--background: 222.2 84% 4.9%;
|
|
1104
|
-
--foreground: 210 40% 98%;
|
|
1105
|
-
--primary: 210 40% 98%;
|
|
1106
|
-
--primary-foreground: 222.2 47.4% 11.2%;
|
|
1107
|
-
/* ... other dark mode variables */
|
|
1108
|
-
}
|
|
1109
|
-
}
|
|
1110
|
-
```
|
|
1111
|
-
|
|
1112
|
-
### Customizing Components
|
|
1113
|
-
|
|
1114
|
-
Since you own the code, customize directly:
|
|
1115
|
-
|
|
1116
|
-
```tsx
|
|
1117
|
-
// components/ui/button.tsx
|
|
1118
|
-
import * as React from "react"
|
|
1119
|
-
import { Slot } from "@radix-ui/react-slot"
|
|
1120
|
-
import { cva, type VariantProps } from "class-variance-authority"
|
|
1121
|
-
import { cn } from "@/lib/utils"
|
|
1122
|
-
|
|
1123
|
-
const buttonVariants = cva(
|
|
1124
|
-
"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors",
|
|
1125
|
-
{
|
|
1126
|
-
variants: {
|
|
1127
|
-
variant: {
|
|
1128
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
1129
|
-
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
1130
|
-
outline: "border border-input bg-background hover:bg-accent",
|
|
1131
|
-
// Add custom variant
|
|
1132
|
-
custom: "bg-gradient-to-r from-purple-500 to-pink-500 text-white",
|
|
1133
|
-
},
|
|
1134
|
-
size: {
|
|
1135
|
-
default: "h-10 px-4 py-2",
|
|
1136
|
-
sm: "h-9 rounded-md px-3",
|
|
1137
|
-
lg: "h-11 rounded-md px-8",
|
|
1138
|
-
// Add custom size
|
|
1139
|
-
xl: "h-14 rounded-md px-10 text-lg",
|
|
1140
|
-
},
|
|
1141
|
-
},
|
|
1142
|
-
defaultVariants: {
|
|
1143
|
-
variant: "default",
|
|
1144
|
-
size: "default",
|
|
1145
|
-
},
|
|
1146
|
-
}
|
|
1147
|
-
)
|
|
1148
|
-
|
|
1149
|
-
export interface ButtonProps
|
|
1150
|
-
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
1151
|
-
VariantProps<typeof buttonVariants> {
|
|
1152
|
-
asChild?: boolean
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
1156
|
-
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
1157
|
-
const Comp = asChild ? Slot : "button"
|
|
1158
|
-
return (
|
|
1159
|
-
<Comp
|
|
1160
|
-
className={cn(buttonVariants({ variant, size, className }))}
|
|
1161
|
-
ref={ref}
|
|
1162
|
-
{...props}
|
|
1163
|
-
/>
|
|
1164
|
-
)
|
|
1165
|
-
}
|
|
1166
|
-
)
|
|
1167
|
-
Button.displayName = "Button"
|
|
1168
|
-
|
|
1169
|
-
export { Button, buttonVariants }
|
|
1170
|
-
```
|
|
1171
|
-
|
|
1172
|
-
## Next.js Integration
|
|
1173
|
-
|
|
1174
|
-
### App Router Setup
|
|
1175
|
-
|
|
1176
|
-
For Next.js 13+ with App Router, ensure components use `"use client"` directive:
|
|
1177
|
-
|
|
1178
|
-
```tsx
|
|
1179
|
-
// src/components/ui/button.tsx
|
|
1180
|
-
"use client"
|
|
1181
|
-
|
|
1182
|
-
import * as React from "react"
|
|
1183
|
-
import { Slot } from "@radix-ui/react-slot"
|
|
1184
|
-
import { cva, type VariantProps } from "class-variance-authority"
|
|
1185
|
-
import { cn } from "@/lib/utils"
|
|
1186
|
-
|
|
1187
|
-
// ... rest of component
|
|
1188
|
-
```
|
|
1189
|
-
|
|
1190
|
-
### Layout Integration
|
|
1191
|
-
|
|
1192
|
-
Add the Toaster to your root layout:
|
|
1193
|
-
|
|
1194
|
-
```tsx
|
|
1195
|
-
// app/layout.tsx
|
|
1196
|
-
import { Toaster } from "@/components/ui/toaster"
|
|
1197
|
-
import "./globals.css"
|
|
1198
|
-
|
|
1199
|
-
export default function RootLayout({
|
|
1200
|
-
children,
|
|
1201
|
-
}: {
|
|
1202
|
-
children: React.ReactNode
|
|
1203
|
-
}) {
|
|
1204
|
-
return (
|
|
1205
|
-
<html lang="en" suppressHydrationWarning>
|
|
1206
|
-
<body className="min-h-screen bg-background font-sans antialiased">
|
|
1207
|
-
{children}
|
|
1208
|
-
<Toaster />
|
|
1209
|
-
</body>
|
|
1210
|
-
</html>
|
|
1211
|
-
)
|
|
1212
|
-
}
|
|
1213
|
-
```
|
|
1214
|
-
|
|
1215
|
-
### Server Components
|
|
1216
|
-
|
|
1217
|
-
When using shadcn/ui components in Server Components, wrap them in a Client Component:
|
|
1218
|
-
|
|
1219
|
-
```tsx
|
|
1220
|
-
// app/dashboard/page.tsx
|
|
1221
|
-
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
|
|
1222
|
-
import { ButtonClient } from "@/components/ui/button-client"
|
|
1223
|
-
|
|
1224
|
-
export default function DashboardPage() {
|
|
1225
|
-
return (
|
|
1226
|
-
<div className="container mx-auto p-6">
|
|
1227
|
-
<Card>
|
|
1228
|
-
<CardHeader>
|
|
1229
|
-
<CardTitle>Dashboard</CardTitle>
|
|
1230
|
-
</CardHeader>
|
|
1231
|
-
<CardContent>
|
|
1232
|
-
<ButtonClient>Interactive Button</ButtonClient>
|
|
1233
|
-
</CardContent>
|
|
1234
|
-
</Card>
|
|
1235
|
-
</div>
|
|
1236
|
-
)
|
|
1237
|
-
}
|
|
1238
|
-
```
|
|
1239
|
-
|
|
1240
|
-
```tsx
|
|
1241
|
-
// src/components/ui/button-client.tsx
|
|
1242
|
-
"use client"
|
|
1243
|
-
|
|
1244
|
-
import { Button } from "./button"
|
|
1245
|
-
|
|
1246
|
-
export function ButtonClient(props: React.ComponentProps<typeof Button>) {
|
|
1247
|
-
return <Button {...props} />
|
|
1248
|
-
}
|
|
1249
|
-
```
|
|
1250
|
-
|
|
1251
|
-
### Route Handlers with Forms
|
|
1252
|
-
|
|
1253
|
-
Create API routes for form submissions:
|
|
1254
|
-
|
|
1255
|
-
```tsx
|
|
1256
|
-
// app/api/contact/route.ts
|
|
1257
|
-
import { NextRequest, NextResponse } from "next/server"
|
|
1258
|
-
import { z } from "zod"
|
|
1259
|
-
|
|
1260
|
-
const contactSchema = z.object({
|
|
1261
|
-
name: z.string().min(2),
|
|
1262
|
-
email: z.string().email(),
|
|
1263
|
-
message: z.string().min(10),
|
|
1264
|
-
})
|
|
1265
|
-
|
|
1266
|
-
export async function POST(request: NextRequest) {
|
|
1267
|
-
try {
|
|
1268
|
-
const body = await request.json()
|
|
1269
|
-
const validated = contactSchema.parse(body)
|
|
1270
|
-
|
|
1271
|
-
// Process form data
|
|
1272
|
-
console.log("Form submission:", validated)
|
|
1273
|
-
|
|
1274
|
-
return NextResponse.json({ success: true })
|
|
1275
|
-
} catch (error) {
|
|
1276
|
-
if (error instanceof z.ZodError) {
|
|
1277
|
-
return NextResponse.json(
|
|
1278
|
-
{ errors: error.errors },
|
|
1279
|
-
{ status: 400 }
|
|
1280
|
-
)
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
|
-
return NextResponse.json(
|
|
1284
|
-
{ error: "Internal server error" },
|
|
1285
|
-
{ status: 500 }
|
|
1286
|
-
)
|
|
1287
|
-
}
|
|
1288
|
-
}
|
|
1289
|
-
```
|
|
1290
|
-
|
|
1291
|
-
### Form with Server Action
|
|
1292
|
-
|
|
1293
|
-
Using Next.js 14+ Server Actions:
|
|
1294
|
-
|
|
1295
|
-
```tsx
|
|
1296
|
-
// app/contact/page.tsx
|
|
1297
|
-
"use client"
|
|
1298
|
-
|
|
1299
|
-
import { zodResolver } from "@hookform/resolvers/zod"
|
|
1300
|
-
import { useForm } from "react-hook-form"
|
|
1301
|
-
import * as z from "zod"
|
|
1302
|
-
import { Button } from "@/components/ui/button"
|
|
1303
|
-
import {
|
|
1304
|
-
Form,
|
|
1305
|
-
FormControl,
|
|
1306
|
-
FormField,
|
|
1307
|
-
FormItem,
|
|
1308
|
-
FormLabel,
|
|
1309
|
-
FormMessage,
|
|
1310
|
-
} from "@/components/ui/form"
|
|
1311
|
-
import { Input } from "@/components/ui/input"
|
|
1312
|
-
import { Textarea } from "@/components/ui/textarea"
|
|
1313
|
-
import { toast } from "@/components/ui/use-toast"
|
|
1314
|
-
|
|
1315
|
-
const formSchema = z.object({
|
|
1316
|
-
name: z.string().min(2),
|
|
1317
|
-
email: z.string().email(),
|
|
1318
|
-
message: z.string().min(10),
|
|
1319
|
-
})
|
|
1320
|
-
|
|
1321
|
-
async function onSubmit(values: z.infer<typeof formSchema>) {
|
|
1322
|
-
try {
|
|
1323
|
-
const response = await fetch("/api/contact", {
|
|
1324
|
-
method: "POST",
|
|
1325
|
-
headers: { "Content-Type": "application/json" },
|
|
1326
|
-
body: JSON.stringify(values),
|
|
1327
|
-
})
|
|
1328
|
-
|
|
1329
|
-
if (!response.ok) throw new Error("Failed to submit")
|
|
1330
|
-
|
|
1331
|
-
toast({
|
|
1332
|
-
title: "Success!",
|
|
1333
|
-
description: "Your message has been sent.",
|
|
1334
|
-
})
|
|
1335
|
-
} catch (error) {
|
|
1336
|
-
toast({
|
|
1337
|
-
variant: "destructive",
|
|
1338
|
-
title: "Error",
|
|
1339
|
-
description: "Failed to send message. Please try again.",
|
|
1340
|
-
})
|
|
1341
|
-
}
|
|
1342
|
-
}
|
|
1343
|
-
|
|
1344
|
-
export default function ContactPage() {
|
|
1345
|
-
const form = useForm<z.infer<typeof formSchema>>({
|
|
1346
|
-
resolver: zodResolver(formSchema),
|
|
1347
|
-
})
|
|
1348
|
-
|
|
1349
|
-
return (
|
|
1350
|
-
<div className="container mx-auto max-w-2xl py-8">
|
|
1351
|
-
<Form {...form}>
|
|
1352
|
-
<form onSubmit={form.handleSubmit(onSubmit)} className="space-y-6">
|
|
1353
|
-
<FormField
|
|
1354
|
-
control={form.control}
|
|
1355
|
-
name="name"
|
|
1356
|
-
render={({ field }) => (
|
|
1357
|
-
<FormItem>
|
|
1358
|
-
<FormLabel>Name</FormLabel>
|
|
1359
|
-
<FormControl>
|
|
1360
|
-
<Input placeholder="Your name" {...field} />
|
|
1361
|
-
</FormControl>
|
|
1362
|
-
<FormMessage />
|
|
1363
|
-
</FormItem>
|
|
1364
|
-
)}
|
|
1365
|
-
/>
|
|
1366
|
-
|
|
1367
|
-
<FormField
|
|
1368
|
-
control={form.control}
|
|
1369
|
-
name="email"
|
|
1370
|
-
render={({ field }) => (
|
|
1371
|
-
<FormItem>
|
|
1372
|
-
<FormLabel>Email</FormLabel>
|
|
1373
|
-
<FormControl>
|
|
1374
|
-
<Input type="email" placeholder="your@email.com" {...field} />
|
|
1375
|
-
</FormControl>
|
|
1376
|
-
<FormMessage />
|
|
1377
|
-
</FormItem>
|
|
1378
|
-
)}
|
|
1379
|
-
/>
|
|
1380
|
-
|
|
1381
|
-
<FormField
|
|
1382
|
-
control={form.control}
|
|
1383
|
-
name="message"
|
|
1384
|
-
render={({ field }) => (
|
|
1385
|
-
<FormItem>
|
|
1386
|
-
<FormLabel>Message</FormLabel>
|
|
1387
|
-
<FormControl>
|
|
1388
|
-
<Textarea
|
|
1389
|
-
placeholder="Your message..."
|
|
1390
|
-
className="resize-none"
|
|
1391
|
-
{...field}
|
|
1392
|
-
/>
|
|
1393
|
-
</FormControl>
|
|
1394
|
-
<FormMessage />
|
|
1395
|
-
</FormItem>
|
|
1396
|
-
)}
|
|
1397
|
-
/>
|
|
1398
|
-
|
|
1399
|
-
<Button type="submit" className="w-full">
|
|
1400
|
-
Send Message
|
|
1401
|
-
</Button>
|
|
1402
|
-
</form>
|
|
1403
|
-
</Form>
|
|
1404
|
-
</div>
|
|
1405
|
-
)
|
|
1406
|
-
}
|
|
1407
|
-
```
|
|
1408
|
-
|
|
1409
|
-
### Metadata with shadcn/ui
|
|
1410
|
-
|
|
1411
|
-
Using shadcn/ui components in metadata:
|
|
1412
|
-
|
|
1413
|
-
```tsx
|
|
1414
|
-
// app/layout.tsx
|
|
1415
|
-
import { Metadata } from "next"
|
|
1416
|
-
|
|
1417
|
-
export const metadata: Metadata = {
|
|
1418
|
-
title: {
|
|
1419
|
-
default: "My App",
|
|
1420
|
-
template: "%s | My App",
|
|
1421
|
-
},
|
|
1422
|
-
description: "Built with shadcn/ui and Next.js",
|
|
1423
|
-
}
|
|
1424
|
-
|
|
1425
|
-
// app/about/page.tsx
|
|
1426
|
-
import { Metadata } from "next"
|
|
1427
|
-
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
|
|
1428
|
-
|
|
1429
|
-
export const metadata: Metadata = {
|
|
1430
|
-
title: "About Us",
|
|
1431
|
-
description: "Learn more about our company",
|
|
1432
|
-
}
|
|
1433
|
-
|
|
1434
|
-
export default function AboutPage() {
|
|
1435
|
-
return (
|
|
1436
|
-
<div className="container mx-auto py-8">
|
|
1437
|
-
<Card>
|
|
1438
|
-
<CardHeader>
|
|
1439
|
-
<CardTitle>About Our Company</CardTitle>
|
|
1440
|
-
</CardHeader>
|
|
1441
|
-
<CardContent>
|
|
1442
|
-
<p>We build amazing products with modern web technologies.</p>
|
|
1443
|
-
</CardContent>
|
|
1444
|
-
</Card>
|
|
1445
|
-
</div>
|
|
1446
|
-
)
|
|
1447
|
-
}
|
|
1448
|
-
```
|
|
1449
|
-
|
|
1450
|
-
### Font Optimization
|
|
1451
|
-
|
|
1452
|
-
Optimize fonts with next/font:
|
|
1453
|
-
|
|
1454
|
-
```tsx
|
|
1455
|
-
// app/layout.tsx
|
|
1456
|
-
import { Inter } from "next/font/google"
|
|
1457
|
-
import { Toaster } from "@/components/ui/toaster"
|
|
1458
|
-
import { cn } from "@/lib/utils"
|
|
1459
|
-
import "./globals.css"
|
|
1460
|
-
|
|
1461
|
-
const inter = Inter({ subsets: ["latin"] })
|
|
1462
|
-
|
|
1463
|
-
export default function RootLayout({
|
|
1464
|
-
children,
|
|
1465
|
-
}: {
|
|
1466
|
-
children: React.ReactNode
|
|
1467
|
-
}) {
|
|
1468
|
-
return (
|
|
1469
|
-
<html lang="en" suppressHydrationWarning>
|
|
1470
|
-
<body className={cn("min-h-screen bg-background font-sans antialiased", inter.className)}>
|
|
1471
|
-
{children}
|
|
1472
|
-
<Toaster />
|
|
1473
|
-
</body>
|
|
1474
|
-
</html>
|
|
1475
|
-
)
|
|
1476
|
-
}
|
|
1477
|
-
```
|
|
1478
|
-
|
|
1479
|
-
## Advanced Patterns
|
|
1480
|
-
|
|
1481
|
-
### Form with Multiple Fields
|
|
1482
|
-
|
|
1483
|
-
```tsx
|
|
1484
|
-
const formSchema = z.object({
|
|
1485
|
-
username: z.string().min(2).max(50),
|
|
1486
|
-
email: z.string().email(),
|
|
1487
|
-
bio: z.string().max(160).min(4),
|
|
1488
|
-
role: z.enum(["admin", "user", "guest"]),
|
|
1489
|
-
notifications: z.boolean().default(false),
|
|
1490
|
-
})
|
|
1491
|
-
|
|
1492
|
-
export function AdvancedForm() {
|
|
1493
|
-
const form = useForm<z.infer<typeof formSchema>>({
|
|
1494
|
-
resolver: zodResolver(formSchema),
|
|
1495
|
-
defaultValues: {
|
|
1496
|
-
username: "",
|
|
1497
|
-
email: "",
|
|
1498
|
-
bio: "",
|
|
1499
|
-
role: "user",
|
|
1500
|
-
notifications: false,
|
|
1501
|
-
},
|
|
1502
|
-
})
|
|
1503
|
-
|
|
1504
|
-
function onSubmit(values: z.infer<typeof formSchema>) {
|
|
1505
|
-
console.log(values)
|
|
1506
|
-
}
|
|
1507
|
-
|
|
1508
|
-
return (
|
|
1509
|
-
<Form {...form}>
|
|
1510
|
-
<form onSubmit={form.handleSubmit(onSubmit)} className="space-y-8">
|
|
1511
|
-
{/* Username field */}
|
|
1512
|
-
<FormField
|
|
1513
|
-
control={form.control}
|
|
1514
|
-
name="username"
|
|
1515
|
-
render={({ field }) => (
|
|
1516
|
-
<FormItem>
|
|
1517
|
-
<FormLabel>Username</FormLabel>
|
|
1518
|
-
<FormControl>
|
|
1519
|
-
<Input placeholder="johndoe" {...field} />
|
|
1520
|
-
</FormControl>
|
|
1521
|
-
<FormMessage />
|
|
1522
|
-
</FormItem>
|
|
1523
|
-
)}
|
|
1524
|
-
/>
|
|
1525
|
-
|
|
1526
|
-
{/* Email field */}
|
|
1527
|
-
<FormField
|
|
1528
|
-
control={form.control}
|
|
1529
|
-
name="email"
|
|
1530
|
-
render={({ field }) => (
|
|
1531
|
-
<FormItem>
|
|
1532
|
-
<FormLabel>Email</FormLabel>
|
|
1533
|
-
<FormControl>
|
|
1534
|
-
<Input type="email" placeholder="john@example.com" {...field} />
|
|
1535
|
-
</FormControl>
|
|
1536
|
-
<FormMessage />
|
|
1537
|
-
</FormItem>
|
|
1538
|
-
)}
|
|
1539
|
-
/>
|
|
1540
|
-
|
|
1541
|
-
{/* Textarea field */}
|
|
1542
|
-
<FormField
|
|
1543
|
-
control={form.control}
|
|
1544
|
-
name="bio"
|
|
1545
|
-
render={({ field }) => (
|
|
1546
|
-
<FormItem>
|
|
1547
|
-
<FormLabel>Bio</FormLabel>
|
|
1548
|
-
<FormControl>
|
|
1549
|
-
<Textarea
|
|
1550
|
-
placeholder="Tell us about yourself"
|
|
1551
|
-
className="resize-none"
|
|
1552
|
-
{...field}
|
|
1553
|
-
/>
|
|
1554
|
-
</FormControl>
|
|
1555
|
-
<FormMessage />
|
|
1556
|
-
</FormItem>
|
|
1557
|
-
)}
|
|
1558
|
-
/>
|
|
1559
|
-
|
|
1560
|
-
{/* Select field */}
|
|
1561
|
-
<FormField
|
|
1562
|
-
control={form.control}
|
|
1563
|
-
name="role"
|
|
1564
|
-
render={({ field }) => (
|
|
1565
|
-
<FormItem>
|
|
1566
|
-
<FormLabel>Role</FormLabel>
|
|
1567
|
-
<Select onValueChange={field.onChange} defaultValue={field.value}>
|
|
1568
|
-
<FormControl>
|
|
1569
|
-
<SelectTrigger>
|
|
1570
|
-
<SelectValue placeholder="Select a role" />
|
|
1571
|
-
</SelectTrigger>
|
|
1572
|
-
</FormControl>
|
|
1573
|
-
<SelectContent>
|
|
1574
|
-
<SelectItem value="admin">Admin</SelectItem>
|
|
1575
|
-
<SelectItem value="user">User</SelectItem>
|
|
1576
|
-
<SelectItem value="guest">Guest</SelectItem>
|
|
1577
|
-
</SelectContent>
|
|
1578
|
-
</Select>
|
|
1579
|
-
<FormMessage />
|
|
1580
|
-
</FormItem>
|
|
1581
|
-
)}
|
|
1582
|
-
/>
|
|
1583
|
-
|
|
1584
|
-
{/* Checkbox field */}
|
|
1585
|
-
<FormField
|
|
1586
|
-
control={form.control}
|
|
1587
|
-
name="notifications"
|
|
1588
|
-
render={({ field }) => (
|
|
1589
|
-
<FormItem className="flex flex-row items-start space-x-3 space-y-0">
|
|
1590
|
-
<FormControl>
|
|
1591
|
-
<Checkbox
|
|
1592
|
-
checked={field.value}
|
|
1593
|
-
onCheckedChange={field.onChange}
|
|
1594
|
-
/>
|
|
1595
|
-
</FormControl>
|
|
1596
|
-
<div className="space-y-1 leading-none">
|
|
1597
|
-
<FormLabel>Email notifications</FormLabel>
|
|
1598
|
-
<FormDescription>
|
|
1599
|
-
Receive emails about your account activity.
|
|
1600
|
-
</FormDescription>
|
|
1601
|
-
</div>
|
|
1602
|
-
</FormItem>
|
|
1603
|
-
)}
|
|
1604
|
-
/>
|
|
1605
|
-
|
|
1606
|
-
<Button type="submit">Submit</Button>
|
|
1607
|
-
</form>
|
|
1608
|
-
</Form>
|
|
1609
|
-
)
|
|
1610
|
-
}
|
|
1611
|
-
```
|
|
1612
|
-
|
|
1613
|
-
## Best Practices
|
|
1614
|
-
|
|
1615
|
-
1. **Accessibility**: Components use Radix UI primitives for ARIA compliance
|
|
1616
|
-
2. **Customization**: Modify components directly in your codebase
|
|
1617
|
-
3. **Type Safety**: Use TypeScript for type-safe props and state
|
|
1618
|
-
4. **Validation**: Use Zod schemas for form validation
|
|
1619
|
-
5. **Styling**: Leverage Tailwind utilities and CSS variables
|
|
1620
|
-
6. **Consistency**: Use the same component patterns across your app
|
|
1621
|
-
7. **Testing**: Components are testable with React Testing Library
|
|
1622
|
-
8. **Performance**: Components are optimized and tree-shakeable
|
|
1623
|
-
|
|
1624
|
-
## Common Component Combinations
|
|
1625
|
-
|
|
1626
|
-
### Login Form
|
|
1627
|
-
|
|
1628
|
-
```tsx
|
|
1629
|
-
<Card className="w-[350px]">
|
|
1630
|
-
<CardHeader>
|
|
1631
|
-
<CardTitle>Login</CardTitle>
|
|
1632
|
-
<CardDescription>Enter your credentials to continue</CardDescription>
|
|
1633
|
-
</CardHeader>
|
|
1634
|
-
<CardContent>
|
|
1635
|
-
<Form {...form}>
|
|
1636
|
-
<form onSubmit={form.handleSubmit(onSubmit)} className="space-y-4">
|
|
1637
|
-
<FormField
|
|
1638
|
-
control={form.control}
|
|
1639
|
-
name="email"
|
|
1640
|
-
render={({ field }) => (
|
|
1641
|
-
<FormItem>
|
|
1642
|
-
<FormLabel>Email</FormLabel>
|
|
1643
|
-
<FormControl>
|
|
1644
|
-
<Input type="email" placeholder="you@example.com" {...field} />
|
|
1645
|
-
</FormControl>
|
|
1646
|
-
<FormMessage />
|
|
1647
|
-
</FormItem>
|
|
1648
|
-
)}
|
|
1649
|
-
/>
|
|
1650
|
-
<FormField
|
|
1651
|
-
control={form.control}
|
|
1652
|
-
name="password"
|
|
1653
|
-
render={({ field }) => (
|
|
1654
|
-
<FormItem>
|
|
1655
|
-
<FormLabel>Password</FormLabel>
|
|
1656
|
-
<FormControl>
|
|
1657
|
-
<Input type="password" {...field} />
|
|
1658
|
-
</FormControl>
|
|
1659
|
-
<FormMessage />
|
|
1660
|
-
</FormItem>
|
|
1661
|
-
)}
|
|
1662
|
-
/>
|
|
1663
|
-
<Button type="submit" className="w-full">Login</Button>
|
|
1664
|
-
</form>
|
|
1665
|
-
</Form>
|
|
1666
|
-
</CardContent>
|
|
1667
|
-
</Card>
|
|
1668
|
-
```
|
|
1669
|
-
|
|
1670
|
-
## References
|
|
1671
|
-
|
|
1672
|
-
- Official Docs: https://ui.shadcn.com
|
|
1673
|
-
- Radix UI: https://www.radix-ui.com
|
|
1674
|
-
- React Hook Form: https://react-hook-form.com
|
|
1675
|
-
- Zod: https://zod.dev
|
|
1676
|
-
- Tailwind CSS: https://tailwindcss.com
|
|
1677
|
-
- Examples: https://ui.shadcn.com/examples
|