create-huenei-template 0.2.18 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/templates/frontend/hub-pre-sales/.cursor/context/pre-sales.md +3 -2
- package/dist/templates/frontend/hub-pre-sales/.cursor/rules/architech.mdc +13 -1
- package/dist/templates/frontend/hub-pre-sales/.cursor/rules/component-patterns.mdc +1 -1
- package/dist/templates/frontend/hub-pre-sales/.cursor/rules/gsap-animations.mdc +46 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/rules/pre-sales-mode.mdc +2 -1
- package/dist/templates/frontend/hub-pre-sales/.cursor/rules/restrictions.mdc +3 -1
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/animate/SKILL.md +23 -10
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/delight/SKILL.md +3 -4
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-core/SKILL.md +254 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-frameworks/SKILL.md +266 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-performance/SKILL.md +79 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-plugins/SKILL.md +433 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-react/SKILL.md +136 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-scrolltrigger/SKILL.md +296 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-timeline/SKILL.md +107 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-utils/SKILL.md +284 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/overdrive/SKILL.md +1 -1
- package/dist/templates/frontend/hub-pre-sales/AGENTS.md +13 -3
- package/dist/templates/frontend/hub-pre-sales/README.md +2 -1
- package/dist/templates/frontend/hub-pre-sales/package.json +84 -82
- package/dist/templates/frontend/hub-pre-sales/src/lib/gsap.ts +6 -0
- package/dist/templates/frontend/pre-sales/.cursor/rules/architech.mdc +199 -199
- package/dist/templates/frontend/pre-sales/.cursor/rules/deployment-ready.mdc +52 -52
- package/dist/templates/frontend/pre-sales/.cursor/rules/domain-business-bootstrap.mdc +74 -74
- package/dist/templates/frontend/pre-sales/.cursor/rules/pre-sales-mode.mdc +104 -104
- package/dist/templates/frontend/pre-sales/.cursor/rules/separation-of-concerns.mdc +41 -41
- package/dist/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/SKILL.md +296 -296
- package/dist/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/resources/deploy-codex.sh +301 -301
- package/dist/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/resources/deploy.sh +301 -301
- package/dist/templates/frontend/pre-sales/src/__tests__/components/layout/sidebar.test.tsx +58 -58
- package/dist/templates/frontend/pre-sales/src/__tests__/lib/auth.test.ts +102 -102
- package/dist/templates/frontend/pre-sales/src/__tests__/routes/__root.test.tsx +72 -72
- package/dist/templates/frontend/pre-sales/src/__tests__/routes/_authenticated.test.tsx +57 -57
- package/dist/templates/frontend/pre-sales/src/components/layout/navbar.tsx +121 -121
- package/dist/templates/frontend/pre-sales/src/components/ui/combobox.tsx +308 -308
- package/dist/templates/frontend/pre-sales/src/components/ui/command.tsx +179 -179
- package/dist/templates/frontend/pre-sales/src/data/dashboard.ts +249 -249
- package/dist/templates/frontend/pre-sales/src/hooks/useTheme.ts +73 -73
- package/dist/templates/frontend/pre-sales/src/index.css +282 -282
- package/dist/templates/frontend/pre-sales/src/routes/__root.tsx +62 -62
- package/dist/templates/frontend/pre-sales/src/routes/auth/iniciar-sesion.tsx +173 -173
- package/dist/templates/frontend/react-vite/.npmrc.example +28 -0
- package/dist/templates/frontend/react-vite/README.md +17 -0
- package/dist/templates/frontend/react-vite/eslint.config.js +41 -31
- package/dist/templates/frontend/react-vite/package.json +2 -0
- package/dist/templates/frontend/react-vite/src/index.css +3 -15
- package/dist/templates/frontend/react-vite/src/main.tsx +36 -33
- package/dist/templates/frontend/react-vite/src/routes/__root.tsx +3 -3
- package/dist/templates/frontend/react-vite/src/routes/index.tsx +185 -187
- package/dist/templates/frontend/react-vite/src/routes/ui-components.tsx +698 -922
- package/dist/templates/frontend/react-vite/vite.config.ts +7 -2
- package/dist/templates/frontend/react-vite-help/.vscode/settings.json +26 -0
- package/dist/templates/mobile/expo-base/package.json +3 -2
- package/dist/templates/mobile/expo-base/pnpm-workspace.yaml +3 -0
- package/dist/templates/mobile/expo-base/src/features/auth/login-screen.tsx +144 -177
- package/dist/templates/mobile/expo-base/src/i18n/locales/en-US.json +136 -134
- package/dist/templates/mobile/expo-base/src/i18n/locales/es-AR.json +136 -134
- package/package.json +1 -1
- package/templates/frontend/hub-pre-sales/.cursor/context/pre-sales.md +3 -2
- package/templates/frontend/hub-pre-sales/.cursor/rules/architech.mdc +13 -1
- package/templates/frontend/hub-pre-sales/.cursor/rules/component-patterns.mdc +1 -1
- package/templates/frontend/hub-pre-sales/.cursor/rules/gsap-animations.mdc +46 -0
- package/templates/frontend/hub-pre-sales/.cursor/rules/pre-sales-mode.mdc +2 -1
- package/templates/frontend/hub-pre-sales/.cursor/rules/restrictions.mdc +3 -1
- package/templates/frontend/hub-pre-sales/.cursor/skills/animate/SKILL.md +23 -10
- package/templates/frontend/hub-pre-sales/.cursor/skills/delight/SKILL.md +3 -4
- package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-core/SKILL.md +254 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-frameworks/SKILL.md +266 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-performance/SKILL.md +79 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-plugins/SKILL.md +433 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-react/SKILL.md +136 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-scrolltrigger/SKILL.md +296 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-timeline/SKILL.md +107 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-utils/SKILL.md +284 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/overdrive/SKILL.md +1 -1
- package/templates/frontend/hub-pre-sales/AGENTS.md +13 -3
- package/templates/frontend/hub-pre-sales/README.md +2 -1
- package/templates/frontend/hub-pre-sales/package.json +84 -82
- package/templates/frontend/hub-pre-sales/pnpm-lock.yaml +6597 -6575
- package/templates/frontend/hub-pre-sales/skills-lock.json +53 -0
- package/templates/frontend/hub-pre-sales/src/lib/gsap.ts +6 -0
- package/templates/frontend/pre-sales/.cursor/rules/architech.mdc +199 -199
- package/templates/frontend/pre-sales/.cursor/rules/deployment-ready.mdc +52 -52
- package/templates/frontend/pre-sales/.cursor/rules/domain-business-bootstrap.mdc +74 -74
- package/templates/frontend/pre-sales/.cursor/rules/pre-sales-mode.mdc +104 -104
- package/templates/frontend/pre-sales/.cursor/rules/separation-of-concerns.mdc +41 -41
- package/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/SKILL.md +296 -296
- package/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/resources/deploy-codex.sh +301 -301
- package/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/resources/deploy.sh +301 -301
- package/templates/frontend/pre-sales/pnpm-lock.yaml +6448 -6448
- package/templates/frontend/pre-sales/skills-lock.json +10 -10
- package/templates/frontend/pre-sales/src/__tests__/components/layout/sidebar.test.tsx +58 -58
- package/templates/frontend/pre-sales/src/__tests__/lib/auth.test.ts +102 -102
- package/templates/frontend/pre-sales/src/__tests__/routes/__root.test.tsx +72 -72
- package/templates/frontend/pre-sales/src/__tests__/routes/_authenticated.test.tsx +57 -57
- package/templates/frontend/pre-sales/src/components/layout/navbar.tsx +121 -121
- package/templates/frontend/pre-sales/src/components/ui/combobox.tsx +308 -308
- package/templates/frontend/pre-sales/src/components/ui/command.tsx +179 -179
- package/templates/frontend/pre-sales/src/data/dashboard.ts +249 -249
- package/templates/frontend/pre-sales/src/hooks/useTheme.ts +73 -73
- package/templates/frontend/pre-sales/src/index.css +282 -282
- package/templates/frontend/pre-sales/src/routes/__root.tsx +62 -62
- package/templates/frontend/pre-sales/src/routes/auth/iniciar-sesion.tsx +173 -173
- package/templates/frontend/react-vite/.npmrc.example +28 -0
- package/templates/frontend/react-vite/README.md +17 -0
- package/templates/frontend/react-vite/eslint.config.js +41 -31
- package/templates/frontend/react-vite/package.json +2 -0
- package/templates/frontend/react-vite/pnpm-lock.yaml +535 -13
- package/templates/frontend/react-vite/src/index.css +3 -15
- package/templates/frontend/react-vite/src/main.tsx +36 -33
- package/templates/frontend/react-vite/src/routes/__root.tsx +3 -3
- package/templates/frontend/react-vite/src/routes/index.tsx +185 -187
- package/templates/frontend/react-vite/src/routes/ui-components.tsx +698 -922
- package/templates/frontend/react-vite/vite.config.ts +7 -2
- package/templates/frontend/react-vite-help/.vscode/settings.json +26 -0
- package/templates/mobile/expo-base/package.json +3 -2
- package/templates/mobile/expo-base/pnpm-lock.yaml +10240 -11354
- package/templates/mobile/expo-base/pnpm-workspace.yaml +3 -0
- package/templates/mobile/expo-base/src/features/auth/login-screen.tsx +144 -177
- package/templates/mobile/expo-base/src/i18n/locales/en-US.json +136 -134
- package/templates/mobile/expo-base/src/i18n/locales/es-AR.json +136 -134
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/agents/nestjs-code-reviewer.md +0 -54
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/agents/prisma-guardian.md +0 -67
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/agents/test-runner.md +0 -57
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/commands/new-endpoint.md +0 -209
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/commands/new-model.md +0 -201
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/autoTestOnStop.ts +0 -127
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/blockDangerous.ts +0 -98
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/ensureTestsExist.ts +0 -405
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/formatOnEdit.ts +0 -70
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/protectSecrets.ts +0 -101
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/sessionInit.ts +0 -104
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/validatePrisma.ts +0 -121
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks.json +0 -46
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/agents/nestjs-code-reviewer.md +0 -54
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/agents/prisma-guardian.md +0 -67
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/agents/test-runner.md +0 -57
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/commands/new-endpoint.md +0 -209
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/commands/new-model.md +0 -201
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/autoTestOnStop.ts +0 -127
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/blockDangerous.ts +0 -98
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/ensureTestsExist.ts +0 -405
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/formatOnEdit.ts +0 -70
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/protectSecrets.ts +0 -101
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/sessionInit.ts +0 -104
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/validatePrisma.ts +0 -121
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks.json +0 -46
- package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/agents/nestjs-code-reviewer.md +0 -23
- package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/agents/sequelize-guardian.md +0 -37
- package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/agents/test-runner.md +0 -33
- package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/commands/new-endpoint.md +0 -76
- package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/commands/new-model.md +0 -85
- package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks/autoTestOnStop.ts +0 -127
- package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks/blockDangerous.ts +0 -98
- package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks/ensureTestsExist.ts +0 -397
- package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks/formatOnEdit.ts +0 -66
- package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks/protectSecrets.ts +0 -101
- package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks/sessionInit.ts +0 -104
- package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks.json +0 -41
- package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/agents/nestjs-code-reviewer.md +0 -23
- package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/agents/sequelize-guardian.md +0 -37
- package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/agents/test-runner.md +0 -33
- package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/commands/new-endpoint.md +0 -76
- package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/commands/new-model.md +0 -85
- package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks/autoTestOnStop.ts +0 -127
- package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks/blockDangerous.ts +0 -98
- package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks/ensureTestsExist.ts +0 -397
- package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks/formatOnEdit.ts +0 -66
- package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks/protectSecrets.ts +0 -101
- package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks/sessionInit.ts +0 -104
- package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks.json +0 -41
- package/templates/backend/nestjs-api-postgres/.cursor/agents/nestjs-code-reviewer.md +0 -54
- package/templates/backend/nestjs-api-postgres/.cursor/agents/prisma-guardian.md +0 -62
- package/templates/backend/nestjs-api-postgres/.cursor/agents/security-auditor.md +0 -71
- package/templates/backend/nestjs-api-postgres/.cursor/agents/test-runner.md +0 -58
- package/templates/backend/nestjs-api-postgres/.cursor/commands/add-pagination.md +0 -235
- package/templates/backend/nestjs-api-postgres/.cursor/commands/add-seed.md +0 -160
- package/templates/backend/nestjs-api-postgres/.cursor/commands/add-tests.md +0 -322
- package/templates/backend/nestjs-api-postgres/.cursor/commands/new-endpoint.md +0 -209
- package/templates/backend/nestjs-api-postgres/.cursor/commands/new-guard.md +0 -195
- package/templates/backend/nestjs-api-postgres/.cursor/commands/new-interceptor.md +0 -188
- package/templates/backend/nestjs-api-postgres/.cursor/commands/new-middleware.md +0 -176
- package/templates/backend/nestjs-api-postgres/.cursor/commands/new-model.md +0 -201
- package/templates/backend/nestjs-api-postgres/.cursor/hooks/auto-retry.ts +0 -62
- package/templates/backend/nestjs-api-postgres/.cursor/hooks/block-dangerous.ts +0 -202
- package/templates/backend/nestjs-api-postgres/.cursor/hooks/format-and-validate.ts +0 -124
- package/templates/backend/nestjs-api-postgres/.cursor/hooks/protect-secrets.ts +0 -105
- package/templates/backend/nestjs-api-postgres/.cursor/hooks/session-context.ts +0 -130
- package/templates/backend/nestjs-api-postgres/.cursor/hooks.json +0 -36
- package/templates/backend/nestjs-api-postgres/.cursor/mcp.json +0 -21
- package/templates/backend/nestjs-api-sqlite/.cursor/agents/code-reviewer.md +0 -153
- package/templates/backend/nestjs-api-sqlite/.cursor/agents/nestjs-architect.md +0 -138
- package/templates/backend/nestjs-api-sqlite/.cursor/agents/prisma-analyst.md +0 -164
- package/templates/backend/nestjs-api-sqlite/.cursor/agents/security-auditor.md +0 -150
- package/templates/backend/nestjs-api-sqlite/.cursor/agents/test-engineer.md +0 -290
- package/templates/backend/nestjs-api-sqlite/.cursor/commands/add-pagination.md +0 -235
- package/templates/backend/nestjs-api-sqlite/.cursor/commands/add-seed.md +0 -172
- package/templates/backend/nestjs-api-sqlite/.cursor/commands/add-tests.md +0 -322
- package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-endpoint.md +0 -209
- package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-guard.md +0 -195
- package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-interceptor.md +0 -188
- package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-middleware.md +0 -176
- package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-model.md +0 -201
- package/templates/backend/nestjs-api-sqlite/.cursor/hooks/auto-format.ts +0 -80
- package/templates/backend/nestjs-api-sqlite/.cursor/hooks/block-dangerous-commands.ts +0 -144
- package/templates/backend/nestjs-api-sqlite/.cursor/hooks/prisma-schema-watcher.ts +0 -64
- package/templates/backend/nestjs-api-sqlite/.cursor/hooks/protect-sensitive-files.ts +0 -122
- package/templates/backend/nestjs-api-sqlite/.cursor/hooks/session-context.ts +0 -105
- package/templates/backend/nestjs-api-sqlite/.cursor/hooks.json +0 -18
- package/templates/backend/nestjs-api-sqlite/.cursor/mcp.json +0 -17
- package/templates/backend/nestjs-api-sqlserver/.cursor/agents/nestjs-code-reviewer.md +0 -54
- package/templates/backend/nestjs-api-sqlserver/.cursor/agents/prisma-guardian.md +0 -67
- package/templates/backend/nestjs-api-sqlserver/.cursor/agents/test-runner.md +0 -57
- package/templates/backend/nestjs-api-sqlserver/.cursor/commands/new-endpoint.md +0 -209
- package/templates/backend/nestjs-api-sqlserver/.cursor/commands/new-model.md +0 -201
- package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/autoTestOnStop.ts +0 -127
- package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/blockDangerous.ts +0 -98
- package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/ensureTestsExist.ts +0 -405
- package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/formatOnEdit.ts +0 -70
- package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/protectSecrets.ts +0 -101
- package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/sessionInit.ts +0 -104
- package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/validatePrisma.ts +0 -121
- package/templates/backend/nestjs-api-sqlserver/.cursor/hooks.json +0 -46
- package/templates/frontend/angular-base/.cursor/agents/accessibility-reviewer.md +0 -67
- package/templates/frontend/angular-base/.cursor/agents/angular-code-reviewer.md +0 -60
- package/templates/frontend/angular-base/.cursor/agents/qa-test-expert.md +0 -70
- package/templates/frontend/angular-base/.cursor/agents/security-auditor.md +0 -58
- package/templates/frontend/angular-base/.cursor/commands/add-e2e-test.md +0 -236
- package/templates/frontend/angular-base/.cursor/commands/new-component.md +0 -211
- package/templates/frontend/angular-base/.cursor/commands/new-form.md +0 -284
- package/templates/frontend/angular-base/.cursor/commands/new-interceptor.md +0 -257
- package/templates/frontend/angular-base/.cursor/commands/new-page.md +0 -215
- package/templates/frontend/angular-base/.cursor/commands/new-service.md +0 -203
- package/templates/frontend/angular-base/.cursor/hooks/auto-format.ts +0 -70
- package/templates/frontend/angular-base/.cursor/hooks/auto-test-on-stop.ts +0 -113
- package/templates/frontend/angular-base/.cursor/hooks/block-dangerous-commands.ts +0 -160
- package/templates/frontend/angular-base/.cursor/hooks/ensure-tests-exist.ts +0 -363
- package/templates/frontend/angular-base/.cursor/hooks/protect-sensitive-files.ts +0 -118
- package/templates/frontend/angular-base/.cursor/hooks/session-context.ts +0 -110
- package/templates/frontend/angular-base/.cursor/hooks.json +0 -41
- package/templates/frontend/angular-base/.cursor/mcp.json +0 -21
- package/templates/frontend/angular-nx/.cursor/agents/angular-code-reviewer.md +0 -64
- package/templates/frontend/angular-nx/.cursor/agents/ci-watcher.md +0 -480
- package/templates/frontend/angular-nx/.cursor/agents/nx-architecture-guardian.md +0 -69
- package/templates/frontend/angular-nx/.cursor/agents/qa-test-expert.md +0 -75
- package/templates/frontend/angular-nx/.cursor/agents/security-auditor.md +0 -61
- package/templates/frontend/angular-nx/.cursor/commands/ci-monitor.md +0 -428
- package/templates/frontend/angular-nx/.cursor/hooks/auto-format.ts +0 -70
- package/templates/frontend/angular-nx/.cursor/hooks/auto-test-on-stop.ts +0 -115
- package/templates/frontend/angular-nx/.cursor/hooks/block-dangerous-commands.ts +0 -188
- package/templates/frontend/angular-nx/.cursor/hooks/ensure-tests-exist.ts +0 -399
- package/templates/frontend/angular-nx/.cursor/hooks/protect-sensitive-files.ts +0 -128
- package/templates/frontend/angular-nx/.cursor/hooks/session-context.ts +0 -121
- package/templates/frontend/angular-nx/.cursor/hooks.json +0 -41
- package/templates/frontend/angular-nx/.cursor/mcp.json +0 -12
- package/templates/frontend/hub-pre-sales/.cursor/agents/frontend-senior.agent.md +0 -49
- package/templates/frontend/hub-pre-sales/.cursor/agents/pre-sales-builder.agent.md +0 -98
- package/templates/frontend/hub-pre-sales/.cursor/agents/pre-sales-demo-runner.agent.md +0 -36
- package/templates/frontend/hub-pre-sales/.cursor/agents/pre-sales-refactor.agent.md +0 -54
- package/templates/frontend/hub-pre-sales/.cursor/agents/pre-sales-validator.agent.md +0 -69
- package/templates/frontend/hub-pre-sales/.cursor/agents/qa-test-expert.agent.md +0 -48
- package/templates/frontend/hub-pre-sales/.cursor/agents/security-expert.agent.md +0 -39
- package/templates/frontend/hub-pre-sales/.cursor/agents/ux-ui-expert.agent.md +0 -45
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-calendar.md +0 -151
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-chart.md +0 -148
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-dashboard.md +0 -135
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-form.md +0 -128
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-login.md +0 -160
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-map.md +0 -172
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-route.md +0 -211
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-screen.md +0 -118
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-table.md +0 -156
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-tests.md +0 -269
- package/templates/frontend/hub-pre-sales/.cursor/commands/mock-backend.md +0 -139
- package/templates/frontend/hub-pre-sales/.cursor/commands/new-component.md +0 -192
- package/templates/frontend/hub-pre-sales/.cursor/commands/new-form.md +0 -268
- package/templates/frontend/hub-pre-sales/.cursor/commands/new-page.md +0 -203
- package/templates/frontend/hub-pre-sales/.cursor/commands/new-query.md +0 -287
- package/templates/frontend/hub-pre-sales/.cursor/commands/new-table.md +0 -299
- package/templates/frontend/hub-pre-sales/.cursor/commands/prepare-preview.md +0 -48
- package/templates/frontend/hub-pre-sales/.cursor/commands/refactor-ui.md +0 -94
- package/templates/frontend/hub-pre-sales/.cursor/commands/ver-demo.md +0 -58
- package/templates/frontend/hub-pre-sales/.cursor/hooks/checkFileLength.ts +0 -69
- package/templates/frontend/hub-pre-sales/.cursor/hooks/injectPreSalesContext.ts +0 -103
- package/templates/frontend/hub-pre-sales/.cursor/hooks.json +0 -23
- package/templates/frontend/hub-pre-sales/.cursor/mcp.json +0 -17
- package/templates/frontend/pre-sales/.cursor/agents/frontend-senior.agent.md +0 -49
- package/templates/frontend/pre-sales/.cursor/agents/pre-sales-builder.agent.md +0 -92
- package/templates/frontend/pre-sales/.cursor/agents/pre-sales-demo-runner.agent.md +0 -36
- package/templates/frontend/pre-sales/.cursor/agents/pre-sales-deploy.agent.md +0 -87
- package/templates/frontend/pre-sales/.cursor/agents/pre-sales-refactor.agent.md +0 -54
- package/templates/frontend/pre-sales/.cursor/agents/pre-sales-validator.agent.md +0 -69
- package/templates/frontend/pre-sales/.cursor/agents/qa-test-expert.agent.md +0 -48
- package/templates/frontend/pre-sales/.cursor/agents/security-expert.agent.md +0 -39
- package/templates/frontend/pre-sales/.cursor/agents/ux-ui-expert.agent.md +0 -45
- package/templates/frontend/pre-sales/.cursor/commands/add-calendar.md +0 -151
- package/templates/frontend/pre-sales/.cursor/commands/add-chart.md +0 -148
- package/templates/frontend/pre-sales/.cursor/commands/add-dashboard.md +0 -135
- package/templates/frontend/pre-sales/.cursor/commands/add-form.md +0 -128
- package/templates/frontend/pre-sales/.cursor/commands/add-login.md +0 -160
- package/templates/frontend/pre-sales/.cursor/commands/add-map.md +0 -172
- package/templates/frontend/pre-sales/.cursor/commands/add-route.md +0 -211
- package/templates/frontend/pre-sales/.cursor/commands/add-screen.md +0 -118
- package/templates/frontend/pre-sales/.cursor/commands/add-table.md +0 -156
- package/templates/frontend/pre-sales/.cursor/commands/add-tests.md +0 -269
- package/templates/frontend/pre-sales/.cursor/commands/deploy-demo.md +0 -73
- package/templates/frontend/pre-sales/.cursor/commands/mock-backend.md +0 -139
- package/templates/frontend/pre-sales/.cursor/commands/new-component.md +0 -192
- package/templates/frontend/pre-sales/.cursor/commands/new-form.md +0 -268
- package/templates/frontend/pre-sales/.cursor/commands/new-page.md +0 -203
- package/templates/frontend/pre-sales/.cursor/commands/new-query.md +0 -287
- package/templates/frontend/pre-sales/.cursor/commands/new-table.md +0 -299
- package/templates/frontend/pre-sales/.cursor/commands/prepare-deploy.md +0 -135
- package/templates/frontend/pre-sales/.cursor/commands/refactor-ui.md +0 -94
- package/templates/frontend/pre-sales/.cursor/commands/ver-demo.md +0 -58
- package/templates/frontend/pre-sales/.cursor/hooks/checkFileLength.ts +0 -69
- package/templates/frontend/pre-sales/.cursor/hooks/ensureTestsExist.ts +0 -220
- package/templates/frontend/pre-sales/.cursor/hooks/injectPreSalesContext.ts +0 -97
- package/templates/frontend/pre-sales/.cursor/hooks.json +0 -23
- package/templates/frontend/pre-sales/.cursor/mcp.json +0 -13
- package/templates/frontend/react-ssr/.cursor/agents/accessibility-reviewer.md +0 -22
- package/templates/frontend/react-ssr/.cursor/agents/nextjs-code-reviewer.md +0 -24
- package/templates/frontend/react-ssr/.cursor/agents/react-test-expert.md +0 -32
- package/templates/frontend/react-ssr/.cursor/agents/security-auditor.md +0 -25
- package/templates/frontend/react-ssr/.cursor/commands/new-component.md +0 -97
- package/templates/frontend/react-ssr/.cursor/commands/new-page.md +0 -95
- package/templates/frontend/react-ssr/.cursor/commands/new-prisma-model.md +0 -66
- package/templates/frontend/react-ssr/.cursor/commands/new-server-action.md +0 -89
- package/templates/frontend/react-ssr/.cursor/hooks/auto-format.ts +0 -64
- package/templates/frontend/react-ssr/.cursor/hooks/auto-test-on-stop.ts +0 -94
- package/templates/frontend/react-ssr/.cursor/hooks/block-dangerous-commands.ts +0 -120
- package/templates/frontend/react-ssr/.cursor/hooks/ensure-tests-exist.ts +0 -209
- package/templates/frontend/react-ssr/.cursor/hooks/protect-sensitive-files.ts +0 -101
- package/templates/frontend/react-ssr/.cursor/hooks/session-context.ts +0 -93
- package/templates/frontend/react-ssr/.cursor/hooks/tsconfig.json +0 -10
- package/templates/frontend/react-ssr/.cursor/hooks.json +0 -41
- package/templates/frontend/react-vite/.cursor/agents/frontend-senior.agent.md +0 -49
- package/templates/frontend/react-vite/.cursor/agents/qa-test-expert.agent.md +0 -126
- package/templates/frontend/react-vite/.cursor/agents/security-expert.agent.md +0 -39
- package/templates/frontend/react-vite/.cursor/agents/ux-ui-expert.agent.md +0 -45
- package/templates/frontend/react-vite/.cursor/commands/add-route.md +0 -211
- package/templates/frontend/react-vite/.cursor/commands/add-tests.md +0 -269
- package/templates/frontend/react-vite/.cursor/commands/new-component.md +0 -232
- package/templates/frontend/react-vite/.cursor/commands/new-form.md +0 -268
- package/templates/frontend/react-vite/.cursor/commands/new-page.md +0 -203
- package/templates/frontend/react-vite/.cursor/commands/new-query.md +0 -287
- package/templates/frontend/react-vite/.cursor/commands/new-table.md +0 -299
- package/templates/frontend/react-vite/.cursor/hooks/autoTestOnStop.ts +0 -117
- package/templates/frontend/react-vite/.cursor/hooks/blockDangerous.ts +0 -75
- package/templates/frontend/react-vite/.cursor/hooks/ensureTestsExist.ts +0 -306
- package/templates/frontend/react-vite/.cursor/hooks/formatOnEdit.ts +0 -49
- package/templates/frontend/react-vite/.cursor/hooks/protectSecrets.ts +0 -88
- package/templates/frontend/react-vite/.cursor/hooks/sessionInit.ts +0 -77
- package/templates/frontend/react-vite/.cursor/hooks.json +0 -41
- package/templates/frontend/react-vite/.cursor/mcp.json +0 -17
- package/templates/frontend/react-vite-help/.cursor/RECONSTRUCTION-PROMPT.md +0 -738
- package/templates/frontend/react-vite-help/.cursor/agents/frontend-senior.agent.md +0 -49
- package/templates/frontend/react-vite-help/.cursor/agents/qa-test-expert.agent.md +0 -49
- package/templates/frontend/react-vite-help/.cursor/agents/security-expert.agent.md +0 -39
- package/templates/frontend/react-vite-help/.cursor/agents/ux-ui-expert.agent.md +0 -45
- package/templates/frontend/react-vite-help/.cursor/commands/add-route.md +0 -211
- package/templates/frontend/react-vite-help/.cursor/commands/add-tests.md +0 -269
- package/templates/frontend/react-vite-help/.cursor/commands/new-component.md +0 -232
- package/templates/frontend/react-vite-help/.cursor/commands/new-form.md +0 -268
- package/templates/frontend/react-vite-help/.cursor/commands/new-page.md +0 -203
- package/templates/frontend/react-vite-help/.cursor/commands/new-query.md +0 -287
- package/templates/frontend/react-vite-help/.cursor/commands/new-table.md +0 -299
- package/templates/frontend/react-vite-help/.cursor/hooks/ensureTestsExist.ts +0 -220
- package/templates/frontend/react-vite-help/.cursor/hooks.json +0 -10
- package/templates/frontend/react-vite-help/.cursor/mcp.json +0 -17
- package/templates/mobile/expo-base/.cursor/agents/api-integration.md +0 -139
- package/templates/mobile/expo-base/.cursor/agents/feature-architect.md +0 -131
- package/templates/mobile/expo-base/.cursor/agents/i18n-manager.md +0 -147
- package/templates/mobile/expo-base/.cursor/agents/quality-reviewer.md +0 -137
- package/templates/mobile/expo-base/.cursor/agents/testing-specialist.md +0 -123
- package/templates/mobile/expo-base/.cursor/agents/theme-engineer.md +0 -106
- package/templates/mobile/expo-base/.cursor/commands/add-translation.md +0 -184
- package/templates/mobile/expo-base/.cursor/commands/new-api-service.md +0 -280
- package/templates/mobile/expo-base/.cursor/commands/new-component.md +0 -298
- package/templates/mobile/expo-base/.cursor/commands/new-hook.md +0 -291
- package/templates/mobile/expo-base/.cursor/commands/new-modal.md +0 -345
- package/templates/mobile/expo-base/.cursor/commands/new-screen.md +0 -267
- package/templates/mobile/expo-base/.cursor/commands/new-tab.md +0 -238
- package/templates/mobile/expo-base/.cursor/mcp.json +0 -21
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
import { createFileRoute
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
BarChart,
|
|
5
|
-
Bar,
|
|
6
|
-
LineChart,
|
|
7
|
-
Line,
|
|
8
|
-
AreaChart,
|
|
9
|
-
Area,
|
|
10
|
-
PieChart,
|
|
11
|
-
Pie,
|
|
12
|
-
Cell,
|
|
13
|
-
RadarChart,
|
|
14
|
-
Radar,
|
|
15
|
-
PolarGrid,
|
|
16
|
-
PolarAngleAxis,
|
|
17
|
-
PolarRadiusAxis,
|
|
18
|
-
XAxis,
|
|
19
|
-
YAxis,
|
|
20
|
-
CartesianGrid,
|
|
21
|
-
Tooltip,
|
|
22
|
-
Legend,
|
|
23
|
-
ResponsiveContainer,
|
|
24
|
-
} from "recharts";
|
|
25
|
-
|
|
1
|
+
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import type { ColumnDef } from "@tanstack/react-table";
|
|
26
4
|
import {
|
|
5
|
+
Alert,
|
|
6
|
+
AlertDescription,
|
|
7
|
+
AlertTitle,
|
|
8
|
+
Badge,
|
|
9
|
+
Button,
|
|
27
10
|
Card,
|
|
11
|
+
DndGrid,
|
|
12
|
+
Draggable,
|
|
13
|
+
CardAction,
|
|
28
14
|
CardContent,
|
|
29
15
|
CardDescription,
|
|
16
|
+
CardFooter,
|
|
30
17
|
CardHeader,
|
|
31
18
|
CardTitle,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
19
|
+
Checkbox,
|
|
20
|
+
DestructiveButton,
|
|
21
|
+
DropdownOptions,
|
|
22
|
+
Header,
|
|
23
|
+
Icon,
|
|
24
|
+
Modal,
|
|
25
|
+
ModalAction,
|
|
26
|
+
ModalBody,
|
|
27
|
+
ModalClose,
|
|
28
|
+
ModalContent,
|
|
29
|
+
ModalDescription,
|
|
30
|
+
ModalFooter,
|
|
31
|
+
ModalHeader,
|
|
32
|
+
ModalTitle,
|
|
33
|
+
ModalTrigger,
|
|
34
|
+
NeutralButton,
|
|
35
|
+
OtpField,
|
|
36
|
+
SecondaryButton,
|
|
37
|
+
Sidebar,
|
|
38
|
+
SidebarItemList,
|
|
39
|
+
SidebarItemWithList,
|
|
40
|
+
SidebarStickyFooter,
|
|
41
|
+
Skeleton,
|
|
42
|
+
SkeletonAvatar,
|
|
43
|
+
SkeletonText,
|
|
44
|
+
Spinner,
|
|
45
|
+
SuccessAlert,
|
|
46
|
+
SuccessButton,
|
|
47
|
+
TextField,
|
|
48
|
+
TextFieldAutocomplete,
|
|
49
|
+
Title,
|
|
50
|
+
Toggle,
|
|
51
|
+
ToggleButton,
|
|
52
|
+
ToggleInput,
|
|
53
|
+
Tooltip,
|
|
54
|
+
TooltipContent,
|
|
55
|
+
TooltipProvider,
|
|
56
|
+
TooltipTrigger,
|
|
57
|
+
} from "@huenei/design-system";
|
|
61
58
|
import { DataTable } from "@/components/ui/table";
|
|
62
59
|
import {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
60
|
+
Area,
|
|
61
|
+
AreaChart,
|
|
62
|
+
Bar,
|
|
63
|
+
BarChart,
|
|
64
|
+
CartesianGrid,
|
|
65
|
+
Cell,
|
|
66
|
+
Legend,
|
|
67
|
+
Line,
|
|
68
|
+
LineChart,
|
|
69
|
+
Pie,
|
|
70
|
+
PieChart,
|
|
71
|
+
ResponsiveContainer,
|
|
72
|
+
Tooltip as RechartsTooltip,
|
|
73
|
+
XAxis,
|
|
74
|
+
YAxis,
|
|
75
|
+
} from "recharts";
|
|
76
|
+
import { Home, LogOut } from "lucide-react";
|
|
77
77
|
|
|
78
78
|
export const Route = createFileRoute("/ui-components")({
|
|
79
79
|
component: UIComponentsPage,
|
|
@@ -82,42 +82,40 @@ export const Route = createFileRoute("/ui-components")({
|
|
|
82
82
|
// ─── Datos de ejemplo para Charts ────────────────────────────
|
|
83
83
|
|
|
84
84
|
const monthlyRevenue = [
|
|
85
|
-
{
|
|
86
|
-
{
|
|
87
|
-
{
|
|
88
|
-
{
|
|
89
|
-
{
|
|
90
|
-
{
|
|
91
|
-
{
|
|
92
|
-
{
|
|
85
|
+
{ mes: "Ene", ingresos: 42000, gastos: 28000 },
|
|
86
|
+
{ mes: "Feb", ingresos: 38000, gastos: 25000 },
|
|
87
|
+
{ mes: "Mar", ingresos: 51000, gastos: 32000 },
|
|
88
|
+
{ mes: "Abr", ingresos: 47000, gastos: 30000 },
|
|
89
|
+
{ mes: "May", ingresos: 55000, gastos: 35000 },
|
|
90
|
+
{ mes: "Jun", ingresos: 62000, gastos: 38000 },
|
|
91
|
+
{ mes: "Jul", ingresos: 58000, gastos: 36000 },
|
|
92
|
+
{ mes: "Ago", ingresos: 67000, gastos: 41000 },
|
|
93
93
|
];
|
|
94
94
|
|
|
95
|
-
const
|
|
96
|
-
{
|
|
97
|
-
{
|
|
98
|
-
{
|
|
99
|
-
{
|
|
100
|
-
{ month: "May", usuarios: 2580, activos: 2050 },
|
|
101
|
-
{ month: "Jun", usuarios: 3200, activos: 2560 },
|
|
102
|
-
{ month: "Jul", usuarios: 3800, activos: 3040 },
|
|
103
|
-
{ month: "Ago", usuarios: 4500, activos: 3600 },
|
|
95
|
+
const projectStatus = [
|
|
96
|
+
{ name: "Completados", value: 45, color: "oklch(72.3% 0.219 149.579)" },
|
|
97
|
+
{ name: "En progreso", value: 30, color: "oklch(62.3% 0.214 259.815)" },
|
|
98
|
+
{ name: "Pendientes", value: 15, color: "oklch(76.9% 0.188 70.08)" },
|
|
99
|
+
{ name: "Cancelados", value: 10, color: "oklch(63.7% 0.237 25.331)" },
|
|
104
100
|
];
|
|
105
101
|
|
|
106
|
-
const
|
|
107
|
-
{
|
|
108
|
-
{
|
|
109
|
-
{
|
|
110
|
-
{
|
|
111
|
-
{
|
|
102
|
+
const teamPerformance = [
|
|
103
|
+
{ equipo: "Frontend", sprint1: 85, sprint2: 90, sprint3: 78 },
|
|
104
|
+
{ equipo: "Backend", sprint1: 72, sprint2: 88, sprint3: 95 },
|
|
105
|
+
{ equipo: "Mobile", sprint1: 90, sprint2: 75, sprint3: 82 },
|
|
106
|
+
{ equipo: "QA", sprint1: 68, sprint2: 80, sprint3: 88 },
|
|
107
|
+
{ equipo: "DevOps", sprint1: 95, sprint2: 92, sprint3: 98 },
|
|
112
108
|
];
|
|
113
109
|
|
|
114
|
-
const
|
|
115
|
-
{
|
|
116
|
-
{
|
|
117
|
-
{
|
|
118
|
-
{
|
|
119
|
-
{
|
|
120
|
-
{
|
|
110
|
+
const userGrowth = [
|
|
111
|
+
{ mes: "Ene", usuarios: 1200 },
|
|
112
|
+
{ mes: "Feb", usuarios: 1450 },
|
|
113
|
+
{ mes: "Mar", usuarios: 1800 },
|
|
114
|
+
{ mes: "Abr", usuarios: 2100 },
|
|
115
|
+
{ mes: "May", usuarios: 2600 },
|
|
116
|
+
{ mes: "Jun", usuarios: 3200 },
|
|
117
|
+
{ mes: "Jul", usuarios: 3800 },
|
|
118
|
+
{ mes: "Ago", usuarios: 4500 },
|
|
121
119
|
];
|
|
122
120
|
|
|
123
121
|
// ─── Datos de ejemplo para Tables ────────────────────────────
|
|
@@ -363,6 +361,21 @@ const projectColumns: ColumnDef<Project, unknown>[] = [
|
|
|
363
361
|
},
|
|
364
362
|
];
|
|
365
363
|
|
|
364
|
+
const autocompleteOptions = [
|
|
365
|
+
{ value: "react", label: "React" },
|
|
366
|
+
{ value: "vue", label: "Vue" },
|
|
367
|
+
{ value: "angular", label: "Angular" },
|
|
368
|
+
{ value: "svelte", label: "Svelte" },
|
|
369
|
+
{ value: "next", label: "Next.js" },
|
|
370
|
+
];
|
|
371
|
+
|
|
372
|
+
const dropdownOptions = [
|
|
373
|
+
{ value: "frontend", label: "Frontend" },
|
|
374
|
+
{ value: "backend", label: "Backend" },
|
|
375
|
+
{ value: "mobile", label: "Mobile" },
|
|
376
|
+
{ value: "devops", label: "DevOps" },
|
|
377
|
+
];
|
|
378
|
+
|
|
366
379
|
// ─── Componente auxiliar de sección ──────────────────────────
|
|
367
380
|
|
|
368
381
|
function Section({
|
|
@@ -377,13 +390,11 @@ function Section({
|
|
|
377
390
|
children: React.ReactNode;
|
|
378
391
|
}) {
|
|
379
392
|
return (
|
|
380
|
-
<section id={id} className="scroll-mt-24">
|
|
393
|
+
<section id={id} className="scroll-mt-24 border-b border-base-300 pb-12 last:border-b-0">
|
|
381
394
|
<div className="mb-6">
|
|
382
|
-
<
|
|
383
|
-
<p className="text-base-content/70 mt-1">{description}</p>
|
|
395
|
+
<Title title={title} description={description} showDescription size="l" />
|
|
384
396
|
</div>
|
|
385
397
|
{children}
|
|
386
|
-
<Separator className="mt-12" />
|
|
387
398
|
</section>
|
|
388
399
|
);
|
|
389
400
|
}
|
|
@@ -391,915 +402,680 @@ function Section({
|
|
|
391
402
|
// ─── Página principal ────────────────────────────────────────
|
|
392
403
|
|
|
393
404
|
function UIComponentsPage() {
|
|
405
|
+
const [notifications, setNotifications] = useState(true);
|
|
406
|
+
const [otpValue, setOtpValue] = useState("");
|
|
407
|
+
const [viewMode, setViewMode] = useState("list");
|
|
408
|
+
|
|
394
409
|
const sections = [
|
|
395
410
|
{ id: "buttons", label: "Buttons" },
|
|
396
411
|
{ id: "badges", label: "Badges" },
|
|
397
412
|
{ id: "cards", label: "Cards" },
|
|
398
|
-
{ id: "
|
|
399
|
-
{ id: "
|
|
400
|
-
{ id: "
|
|
401
|
-
{ id: "
|
|
402
|
-
{ id: "
|
|
413
|
+
{ id: "forms", label: "Forms" },
|
|
414
|
+
{ id: "dnd-grid", label: "DnDGrid" },
|
|
415
|
+
{ id: "toggles", label: "Toggles" },
|
|
416
|
+
{ id: "modal", label: "Modal" },
|
|
417
|
+
{ id: "feedback", label: "Feedback" },
|
|
418
|
+
{ id: "skeleton", label: "Skeleton" },
|
|
419
|
+
{ id: "dropdown", label: "Dropdown" },
|
|
420
|
+
{ id: "header", label: "Header" },
|
|
403
421
|
{ id: "tables", label: "Tables" },
|
|
404
422
|
{ id: "charts", label: "Charts" },
|
|
405
423
|
];
|
|
406
424
|
|
|
407
425
|
return (
|
|
408
|
-
<
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
<a key={s.id} href={`#${s.id}`} className="btn btn-outline btn-sm btn-primary">
|
|
419
|
-
{s.label}
|
|
420
|
-
</a>
|
|
421
|
-
))}
|
|
422
|
-
</div>
|
|
423
|
-
</div>
|
|
424
|
-
|
|
425
|
-
<div className="space-y-16">
|
|
426
|
-
{/* ── Buttons ──────────────────────────────────────── */}
|
|
427
|
-
<Section
|
|
428
|
-
id="buttons"
|
|
429
|
-
title="Buttons"
|
|
430
|
-
description="Botones con múltiples variantes, tamaños e iconos."
|
|
431
|
-
>
|
|
432
|
-
<div className="space-y-8">
|
|
433
|
-
<div>
|
|
434
|
-
<h3 className="text-sm font-semibold text-base-content/60 uppercase tracking-wider mb-4">
|
|
435
|
-
Variantes
|
|
436
|
-
</h3>
|
|
437
|
-
<div className="flex flex-wrap gap-3">
|
|
438
|
-
<Button variant="default">Primary</Button>
|
|
439
|
-
<Button variant="secondary">Secondary</Button>
|
|
440
|
-
<Button variant="destructive">Destructive</Button>
|
|
441
|
-
<Button variant="outline">Outline</Button>
|
|
442
|
-
<Button variant="ghost">Ghost</Button>
|
|
443
|
-
<Button variant="link">Link</Button>
|
|
426
|
+
<TooltipProvider>
|
|
427
|
+
<div className="min-h-screen bg-base-100">
|
|
428
|
+
<header className="sticky top-0 z-50 border-b border-base-300 bg-base-100/95 backdrop-blur supports-[backdrop-filter]:bg-base-100/80">
|
|
429
|
+
<div className="mx-auto max-w-6xl px-6 py-4">
|
|
430
|
+
<div className="flex items-center justify-between">
|
|
431
|
+
<div>
|
|
432
|
+
<h1 className="text-xl font-bold text-base-content">UI Components</h1>
|
|
433
|
+
<p className="text-sm text-base-content/60">
|
|
434
|
+
Demo de @huenei/design-system
|
|
435
|
+
</p>
|
|
444
436
|
</div>
|
|
437
|
+
<nav className="hidden lg:flex items-center gap-1">
|
|
438
|
+
{sections.map((s) => (
|
|
439
|
+
<a
|
|
440
|
+
key={s.id}
|
|
441
|
+
href={`#${s.id}`}
|
|
442
|
+
className="rounded-md px-2.5 py-1.5 text-xs font-medium text-base-content/70 transition-colors hover:bg-base-200 hover:text-base-content"
|
|
443
|
+
>
|
|
444
|
+
{s.label}
|
|
445
|
+
</a>
|
|
446
|
+
))}
|
|
447
|
+
</nav>
|
|
445
448
|
</div>
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
<
|
|
462
|
-
|
|
449
|
+
</div>
|
|
450
|
+
</header>
|
|
451
|
+
|
|
452
|
+
<main className="mx-auto max-w-6xl space-y-16 px-6 py-10">
|
|
453
|
+
{/* ─── Buttons ─── */}
|
|
454
|
+
<Section
|
|
455
|
+
id="buttons"
|
|
456
|
+
title="Buttons"
|
|
457
|
+
description="Variantes y tamaños del Button del Design System."
|
|
458
|
+
>
|
|
459
|
+
<div className="space-y-8">
|
|
460
|
+
<div>
|
|
461
|
+
<h3 className="mb-3 text-sm font-semibold text-base-content/80">Variantes</h3>
|
|
462
|
+
<div className="flex flex-wrap items-center gap-3">
|
|
463
|
+
<Button>Default</Button>
|
|
464
|
+
<Button variant="standard">Standard</Button>
|
|
465
|
+
<Button variant="neutral">Neutral</Button>
|
|
466
|
+
<SuccessButton>Success</SuccessButton>
|
|
467
|
+
<DestructiveButton>Destructive</DestructiveButton>
|
|
468
|
+
<SecondaryButton>Secondary</SecondaryButton>
|
|
469
|
+
<Button variant="tertiary">Tertiary</Button>
|
|
470
|
+
<NeutralButton>Neutral named</NeutralButton>
|
|
471
|
+
<Button variant="ghost">Ghost</Button>
|
|
472
|
+
<Button variant="link">Link</Button>
|
|
473
|
+
</div>
|
|
463
474
|
</div>
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
<
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
<Download className="mr-1" /> Descargar
|
|
475
|
-
</Button>
|
|
476
|
-
<Button variant="destructive">
|
|
477
|
-
<Trash2 className="mr-1" /> Eliminar
|
|
478
|
-
</Button>
|
|
479
|
-
<Button variant="outline">
|
|
480
|
-
<Settings className="mr-1" /> Configuración
|
|
481
|
-
</Button>
|
|
482
|
-
<Button variant="ghost">
|
|
483
|
-
<Heart className="mr-1" /> Favorito
|
|
484
|
-
</Button>
|
|
475
|
+
|
|
476
|
+
<div>
|
|
477
|
+
<h3 className="mb-3 text-sm font-semibold text-base-content/80">Tamaños</h3>
|
|
478
|
+
<div className="flex flex-wrap items-center gap-3">
|
|
479
|
+
<Button size="xs">Extra small</Button>
|
|
480
|
+
<Button size="sm">Small</Button>
|
|
481
|
+
<Button size="default">Default</Button>
|
|
482
|
+
<Button size="lg">Large</Button>
|
|
483
|
+
<Button size="icon" iconPosition="right" icon={<Icon name="Search" className="text-white" />} aria-label="Buscar" />
|
|
484
|
+
</div>
|
|
485
485
|
</div>
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
486
|
+
|
|
487
|
+
<div>
|
|
488
|
+
<h3 className="mb-3 text-sm font-semibold text-base-content/80">Estados</h3>
|
|
489
|
+
<div className="flex flex-wrap items-center gap-3">
|
|
490
|
+
<Button disabled>Disabled</Button>
|
|
491
|
+
<Button iconPosition="left" icon={<Icon name="Download" className="text-white" />}>
|
|
492
|
+
Con icono
|
|
493
|
+
</Button>
|
|
494
|
+
</div>
|
|
494
495
|
</div>
|
|
495
496
|
</div>
|
|
496
|
-
</
|
|
497
|
-
</Section>
|
|
497
|
+
</Section>
|
|
498
498
|
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
>
|
|
505
|
-
<div className="space-y-8">
|
|
506
|
-
<div>
|
|
507
|
-
<h3 className="text-sm font-semibold text-base-content/60 uppercase tracking-wider mb-4">
|
|
508
|
-
Variantes
|
|
509
|
-
</h3>
|
|
510
|
-
<div className="flex flex-wrap gap-3">
|
|
511
|
-
<Badge variant="default">Primary</Badge>
|
|
499
|
+
{/* ─── Badges ─── */}
|
|
500
|
+
<Section id="badges" title="Badges" description="Etiquetas y contadores del Design System.">
|
|
501
|
+
<div className="space-y-6">
|
|
502
|
+
<div className="flex flex-wrap items-center gap-3">
|
|
503
|
+
<Badge>Default</Badge>
|
|
512
504
|
<Badge variant="secondary">Secondary</Badge>
|
|
513
|
-
<Badge variant="destructive">
|
|
505
|
+
<Badge variant="destructive">Destructive</Badge>
|
|
514
506
|
<Badge variant="outline">Outline</Badge>
|
|
507
|
+
<Badge variant="ghost">Ghost</Badge>
|
|
515
508
|
</div>
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
</h3>
|
|
521
|
-
<div className="flex flex-wrap gap-3">
|
|
522
|
-
<Badge variant="default">
|
|
523
|
-
<Star className="size-3" /> Destacado
|
|
524
|
-
</Badge>
|
|
525
|
-
<Badge variant="secondary">
|
|
526
|
-
<Users className="size-3" /> Equipo
|
|
509
|
+
<div className="flex flex-wrap items-center gap-3">
|
|
510
|
+
<Badge shape="count">3</Badge>
|
|
511
|
+
<Badge shape="count" variant="destructive">
|
|
512
|
+
12
|
|
527
513
|
</Badge>
|
|
528
|
-
<Badge variant="
|
|
529
|
-
|
|
514
|
+
<Badge shape="count" variant="secondary">
|
|
515
|
+
99+
|
|
530
516
|
</Badge>
|
|
531
517
|
</div>
|
|
532
518
|
</div>
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
<
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
<
|
|
544
|
-
|
|
519
|
+
</Section>
|
|
520
|
+
|
|
521
|
+
{/* ─── Cards ─── */}
|
|
522
|
+
<Section id="cards" title="Cards" description="Contenedores compuestos Card* del Design System.">
|
|
523
|
+
<div className="grid gap-6 sm:grid-cols-2 lg:grid-cols-3">
|
|
524
|
+
<Card>
|
|
525
|
+
<CardHeader>
|
|
526
|
+
<CardTitle>Card simple</CardTitle>
|
|
527
|
+
<CardDescription>Solo título y descripción.</CardDescription>
|
|
528
|
+
</CardHeader>
|
|
529
|
+
<CardContent>
|
|
530
|
+
<p className="text-sm text-base-content/70">
|
|
531
|
+
Contenido del card. Ideal para bloques de información.
|
|
532
|
+
</p>
|
|
533
|
+
</CardContent>
|
|
534
|
+
</Card>
|
|
535
|
+
|
|
536
|
+
<Card>
|
|
537
|
+
<CardHeader>
|
|
538
|
+
<CardTitle>Con acción</CardTitle>
|
|
539
|
+
<CardDescription>Header con CardAction.</CardDescription>
|
|
540
|
+
<CardAction>
|
|
541
|
+
<Button size="sm" variant="ghost" aria-label="Más opciones">
|
|
542
|
+
<Icon name="MoreHorizontal" />
|
|
543
|
+
</Button>
|
|
544
|
+
</CardAction>
|
|
545
|
+
</CardHeader>
|
|
546
|
+
<CardContent>
|
|
547
|
+
<p className="text-sm text-base-content/70">
|
|
548
|
+
Acciones secundarias viven en el header sin romper el layout.
|
|
549
|
+
</p>
|
|
550
|
+
</CardContent>
|
|
551
|
+
<CardFooter className="gap-2">
|
|
552
|
+
<Button size="sm">Confirmar</Button>
|
|
553
|
+
<Button size="sm" variant="outline">
|
|
554
|
+
Cancelar
|
|
555
|
+
</Button>
|
|
556
|
+
</CardFooter>
|
|
557
|
+
</Card>
|
|
558
|
+
|
|
559
|
+
<Card>
|
|
560
|
+
<CardHeader>
|
|
561
|
+
<CardTitle>Métricas</CardTitle>
|
|
562
|
+
<CardDescription>Resumen del sprint</CardDescription>
|
|
563
|
+
</CardHeader>
|
|
564
|
+
<CardContent>
|
|
565
|
+
<div className="text-3xl font-bold text-base-content">94%</div>
|
|
566
|
+
<p className="mt-1 text-xs text-success">+2.5% vs sprint anterior</p>
|
|
567
|
+
</CardContent>
|
|
568
|
+
</Card>
|
|
545
569
|
</div>
|
|
546
|
-
</
|
|
547
|
-
</Section>
|
|
570
|
+
</Section>
|
|
548
571
|
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
<CardHeader>
|
|
558
|
-
<CardTitle>Card básica</CardTitle>
|
|
559
|
-
<CardDescription>Una card con header y contenido simple.</CardDescription>
|
|
560
|
-
</CardHeader>
|
|
561
|
-
<CardContent>
|
|
562
|
-
<p className="text-sm text-base-content/70">
|
|
563
|
-
Este es el contenido de la card. Puede contener texto, imágenes u otros
|
|
564
|
-
componentes.
|
|
565
|
-
</p>
|
|
566
|
-
</CardContent>
|
|
567
|
-
</Card>
|
|
572
|
+
{/* ─── Forms ─── */}
|
|
573
|
+
<Section
|
|
574
|
+
id="forms"
|
|
575
|
+
title="Forms"
|
|
576
|
+
description="TextField, Autocomplete, Checkbox y OtpField del Design System."
|
|
577
|
+
>
|
|
578
|
+
<div className="grid max-w-2xl gap-6">
|
|
579
|
+
<TextField label="Email" type="email" placeholder="nombre@huenei.com" required />
|
|
568
580
|
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
<p className="text-sm text-base-content/70">
|
|
579
|
-
Ideal para features o métricas importantes.
|
|
580
|
-
</p>
|
|
581
|
-
</CardContent>
|
|
582
|
-
</Card>
|
|
581
|
+
<TextField
|
|
582
|
+
label="Contraseña"
|
|
583
|
+
type="password"
|
|
584
|
+
placeholder="••••••••"
|
|
585
|
+
required
|
|
586
|
+
showHelper
|
|
587
|
+
showInline
|
|
588
|
+
inlineText="Mínimo 8 caracteres"
|
|
589
|
+
/>
|
|
583
590
|
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
</p>
|
|
593
|
-
</CardContent>
|
|
594
|
-
<CardFooter className="gap-2">
|
|
595
|
-
<Button size="sm">Aceptar</Button>
|
|
596
|
-
<Button size="sm" variant="outline">
|
|
597
|
-
Cancelar
|
|
598
|
-
</Button>
|
|
599
|
-
</CardFooter>
|
|
600
|
-
</Card>
|
|
591
|
+
<TextField
|
|
592
|
+
label="Usuario con error"
|
|
593
|
+
defaultValue="admin"
|
|
594
|
+
status="error"
|
|
595
|
+
showHelper
|
|
596
|
+
showInline
|
|
597
|
+
inlineText="El usuario no está disponible"
|
|
598
|
+
/>
|
|
601
599
|
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
{
|
|
611
|
-
label: "Ingresos",
|
|
612
|
-
value: "$48.2K",
|
|
613
|
-
change: "+12.5%",
|
|
614
|
-
icon: DollarSign,
|
|
615
|
-
color: "text-success",
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
label: "Usuarios",
|
|
619
|
-
value: "4,500",
|
|
620
|
-
change: "+8.2%",
|
|
621
|
-
icon: Users,
|
|
622
|
-
color: "text-info",
|
|
623
|
-
},
|
|
624
|
-
{
|
|
625
|
-
label: "Pedidos",
|
|
626
|
-
value: "1,234",
|
|
627
|
-
change: "+3.1%",
|
|
628
|
-
icon: ShoppingCart,
|
|
629
|
-
color: "text-warning",
|
|
630
|
-
},
|
|
631
|
-
{
|
|
632
|
-
label: "Conversión",
|
|
633
|
-
value: "3.2%",
|
|
634
|
-
change: "-0.4%",
|
|
635
|
-
icon: TrendingUp,
|
|
636
|
-
color: "text-error",
|
|
637
|
-
},
|
|
638
|
-
].map((metric) => (
|
|
639
|
-
<div key={metric.label} className="bg-base-200/50 rounded-lg p-4">
|
|
640
|
-
<div className="flex items-center justify-between mb-2">
|
|
641
|
-
<span className="text-xs text-base-content/60 uppercase tracking-wider">
|
|
642
|
-
{metric.label}
|
|
643
|
-
</span>
|
|
644
|
-
<metric.icon className={`size-4 ${metric.color}`} />
|
|
645
|
-
</div>
|
|
646
|
-
<div className="text-2xl font-bold">{metric.value}</div>
|
|
647
|
-
<span
|
|
648
|
-
className={`text-xs ${metric.change.startsWith("+") ? "text-success" : "text-error"}`}
|
|
649
|
-
>
|
|
650
|
-
{metric.change} vs mes anterior
|
|
651
|
-
</span>
|
|
652
|
-
</div>
|
|
653
|
-
))}
|
|
654
|
-
</div>
|
|
655
|
-
</CardContent>
|
|
656
|
-
</Card>
|
|
657
|
-
</div>
|
|
658
|
-
</Section>
|
|
600
|
+
<TextField
|
|
601
|
+
label="Nombre verificado"
|
|
602
|
+
defaultValue="Ana García"
|
|
603
|
+
status="success"
|
|
604
|
+
showHelper
|
|
605
|
+
showInline
|
|
606
|
+
inlineText="Disponible"
|
|
607
|
+
/>
|
|
659
608
|
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
Con imagen
|
|
670
|
-
</h3>
|
|
671
|
-
<div className="flex items-center gap-4">
|
|
672
|
-
<Avatar className="size-8">
|
|
673
|
-
<AvatarImage src="https://i.pravatar.cc/150?u=1" alt="Usuario 1" />
|
|
674
|
-
<AvatarFallback>U1</AvatarFallback>
|
|
675
|
-
</Avatar>
|
|
676
|
-
<Avatar className="size-10">
|
|
677
|
-
<AvatarImage src="https://i.pravatar.cc/150?u=2" alt="Usuario 2" />
|
|
678
|
-
<AvatarFallback>U2</AvatarFallback>
|
|
679
|
-
</Avatar>
|
|
680
|
-
<Avatar className="size-12">
|
|
681
|
-
<AvatarImage src="https://i.pravatar.cc/150?u=3" alt="Usuario 3" />
|
|
682
|
-
<AvatarFallback>U3</AvatarFallback>
|
|
683
|
-
</Avatar>
|
|
684
|
-
<Avatar className="size-16">
|
|
685
|
-
<AvatarImage src="https://i.pravatar.cc/150?u=4" alt="Usuario 4" />
|
|
686
|
-
<AvatarFallback>U4</AvatarFallback>
|
|
687
|
-
</Avatar>
|
|
688
|
-
</div>
|
|
689
|
-
</div>
|
|
690
|
-
<div>
|
|
691
|
-
<h3 className="text-sm font-semibold text-base-content/60 uppercase tracking-wider mb-4">
|
|
692
|
-
Con fallback (iniciales)
|
|
693
|
-
</h3>
|
|
694
|
-
<div className="flex items-center gap-4">
|
|
695
|
-
<Avatar className="size-10">
|
|
696
|
-
<AvatarFallback>AG</AvatarFallback>
|
|
697
|
-
</Avatar>
|
|
698
|
-
<Avatar className="size-10">
|
|
699
|
-
<AvatarFallback>CL</AvatarFallback>
|
|
700
|
-
</Avatar>
|
|
701
|
-
<Avatar className="size-10">
|
|
702
|
-
<AvatarFallback>MR</AvatarFallback>
|
|
703
|
-
</Avatar>
|
|
704
|
-
<Avatar className="size-10">
|
|
705
|
-
<AvatarFallback>JM</AvatarFallback>
|
|
706
|
-
</Avatar>
|
|
707
|
-
</div>
|
|
708
|
-
</div>
|
|
709
|
-
<div>
|
|
710
|
-
<h3 className="text-sm font-semibold text-base-content/60 uppercase tracking-wider mb-4">
|
|
711
|
-
Grupo de avatares
|
|
712
|
-
</h3>
|
|
713
|
-
<div className="flex -space-x-3">
|
|
714
|
-
{[1, 2, 3, 4, 5].map((i) => (
|
|
715
|
-
<Avatar key={i} className="size-10 ring-2 ring-base-100">
|
|
716
|
-
<AvatarImage src={`https://i.pravatar.cc/150?u=${i + 10}`} alt={`User ${i}`} />
|
|
717
|
-
<AvatarFallback>U{i}</AvatarFallback>
|
|
718
|
-
</Avatar>
|
|
719
|
-
))}
|
|
720
|
-
<Avatar className="size-10 ring-2 ring-base-100">
|
|
721
|
-
<AvatarFallback className="bg-primary text-primary-content text-xs">
|
|
722
|
-
+3
|
|
723
|
-
</AvatarFallback>
|
|
724
|
-
</Avatar>
|
|
609
|
+
<TextFieldAutocomplete
|
|
610
|
+
label="Framework"
|
|
611
|
+
placeholder="Buscar..."
|
|
612
|
+
options={autocompleteOptions}
|
|
613
|
+
/>
|
|
614
|
+
|
|
615
|
+
<div className="flex flex-col gap-3">
|
|
616
|
+
<Checkbox label="Acepto los términos y condiciones" />
|
|
617
|
+
<Checkbox label="Quiero recibir novedades" defaultChecked />
|
|
725
618
|
</div>
|
|
726
|
-
</div>
|
|
727
|
-
</div>
|
|
728
|
-
</Section>
|
|
729
619
|
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
title="Inputs"
|
|
734
|
-
description="Campos de entrada de texto, contraseña y área de texto."
|
|
735
|
-
>
|
|
736
|
-
<div className="max-w-lg space-y-8">
|
|
737
|
-
<div>
|
|
738
|
-
<h3 className="text-sm font-semibold text-base-content/60 uppercase tracking-wider mb-4">
|
|
739
|
-
Input básico
|
|
740
|
-
</h3>
|
|
741
|
-
<div className="space-y-4">
|
|
742
|
-
<div className="grid gap-2">
|
|
743
|
-
<Label htmlFor="name">Nombre completo</Label>
|
|
744
|
-
<Input id="name" placeholder="Ingresá tu nombre" />
|
|
745
|
-
</div>
|
|
746
|
-
<div className="grid gap-2">
|
|
747
|
-
<Label htmlFor="email">Email</Label>
|
|
748
|
-
<Input id="email" type="email" placeholder="tu@email.com" />
|
|
749
|
-
</div>
|
|
620
|
+
<div>
|
|
621
|
+
<p className="mb-2 text-sm font-medium text-base-content">Código OTP</p>
|
|
622
|
+
<OtpField value={otpValue} onChange={setOtpValue} />
|
|
750
623
|
</div>
|
|
751
624
|
</div>
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
625
|
+
</Section>
|
|
626
|
+
|
|
627
|
+
{/* ─── DnDGrid ─── */}
|
|
628
|
+
<Section
|
|
629
|
+
id="dnd-grid"
|
|
630
|
+
title="DnDGrid"
|
|
631
|
+
description="DndGrid y Draggable del Design System. Arrastrá las cards desde el handle superior derecho."
|
|
632
|
+
>
|
|
633
|
+
<div className="min-h-[480px] rounded-xl border border-base-300 bg-base-100 p-4">
|
|
634
|
+
<DndGrid cols={12} rowHeight={48} gap={16}>
|
|
635
|
+
<Draggable key="account" defaultSize={[8, 5]}>
|
|
636
|
+
<Card className="h-full">
|
|
637
|
+
<CardHeader>
|
|
638
|
+
<CardTitle>Caja de Ahorro</CardTitle>
|
|
639
|
+
<CardDescription>defaultSize={[8, 5]}</CardDescription>
|
|
640
|
+
</CardHeader>
|
|
641
|
+
<CardContent className="text-sm text-base-content/70">
|
|
642
|
+
Arrastrá desde el handle superior derecho.
|
|
643
|
+
</CardContent>
|
|
644
|
+
</Card>
|
|
645
|
+
</Draggable>
|
|
646
|
+
<Draggable key="side" defaultSize={[4, 5]}>
|
|
647
|
+
<Card className="h-full">
|
|
648
|
+
<CardHeader>
|
|
649
|
+
<CardTitle>Accesos</CardTitle>
|
|
650
|
+
<CardDescription>defaultSize={[4, 5]}</CardDescription>
|
|
651
|
+
</CardHeader>
|
|
652
|
+
<CardContent className="text-sm text-base-content/70">
|
|
653
|
+
Arrastrá desde el handle superior derecho.
|
|
654
|
+
</CardContent>
|
|
655
|
+
</Card>
|
|
656
|
+
</Draggable>
|
|
657
|
+
<Draggable key="movimientos" defaultSize={[8, 8]}>
|
|
658
|
+
<Card className="h-full">
|
|
659
|
+
<CardHeader>
|
|
660
|
+
<CardTitle>Últimos movimientos</CardTitle>
|
|
661
|
+
<CardDescription>defaultSize={[8, 8]}</CardDescription>
|
|
662
|
+
</CardHeader>
|
|
663
|
+
<CardContent className="text-sm text-base-content/70">
|
|
664
|
+
Arrastrá desde el handle superior derecho.
|
|
665
|
+
</CardContent>
|
|
666
|
+
</Card>
|
|
667
|
+
</Draggable>
|
|
668
|
+
<Draggable key="promo" defaultSize={[4, 4]}>
|
|
669
|
+
<Card className="h-full">
|
|
670
|
+
<CardHeader>
|
|
671
|
+
<CardTitle>Promo</CardTitle>
|
|
672
|
+
<CardDescription>defaultSize={[4, 4]}</CardDescription>
|
|
673
|
+
</CardHeader>
|
|
674
|
+
<CardContent className="text-sm text-base-content/70">
|
|
675
|
+
Arrastrá desde el handle superior derecho.
|
|
676
|
+
</CardContent>
|
|
677
|
+
</Card>
|
|
678
|
+
</Draggable>
|
|
679
|
+
<Draggable key="full-width">
|
|
680
|
+
<Card className="h-full">
|
|
681
|
+
<CardHeader>
|
|
682
|
+
<CardTitle>Banner full width</CardTitle>
|
|
683
|
+
<CardDescription>sin defaultSize → 12×1</CardDescription>
|
|
684
|
+
</CardHeader>
|
|
685
|
+
<CardContent className="text-sm text-base-content/70">
|
|
686
|
+
Arrastrá desde el handle superior derecho.
|
|
687
|
+
</CardContent>
|
|
688
|
+
</Card>
|
|
689
|
+
</Draggable>
|
|
690
|
+
</DndGrid>
|
|
760
691
|
</div>
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
692
|
+
</Section>
|
|
693
|
+
|
|
694
|
+
{/* ─── Toggles ─── */}
|
|
695
|
+
<Section
|
|
696
|
+
id="toggles"
|
|
697
|
+
title="Toggles"
|
|
698
|
+
description="Toggle segmentado, ToggleButton y ToggleInput del Design System."
|
|
699
|
+
>
|
|
700
|
+
<div className="space-y-8">
|
|
701
|
+
<div>
|
|
702
|
+
<h3 className="mb-3 text-sm font-semibold text-base-content/80">Segmented Toggle</h3>
|
|
703
|
+
<Toggle
|
|
704
|
+
aria-label="Modo de vista"
|
|
705
|
+
value={viewMode}
|
|
706
|
+
onValueChange={setViewMode}
|
|
707
|
+
options={[
|
|
708
|
+
{ value: "list", label: "Lista" },
|
|
709
|
+
{ value: "grid", label: "Grilla" },
|
|
710
|
+
{ value: "board", label: "Board" },
|
|
711
|
+
]}
|
|
712
|
+
/>
|
|
768
713
|
</div>
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
<
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
<div className="grid gap-2">
|
|
780
|
-
<Label htmlFor="error-input">Con error</Label>
|
|
781
|
-
<Input id="error-input" placeholder="Campo requerido" aria-invalid="true" />
|
|
782
|
-
<p className="text-error text-sm">Este campo es requerido</p>
|
|
714
|
+
|
|
715
|
+
<div>
|
|
716
|
+
<h3 className="mb-3 text-sm font-semibold text-base-content/80">ToggleButton</h3>
|
|
717
|
+
<div className="flex flex-wrap gap-3">
|
|
718
|
+
<ToggleButton aria-label="Favorito" defaultPressed>
|
|
719
|
+
<Icon name="Star" />
|
|
720
|
+
</ToggleButton>
|
|
721
|
+
<ToggleButton aria-label="Marcar" variant="outline">
|
|
722
|
+
<Icon name="Bookmark" />
|
|
723
|
+
</ToggleButton>
|
|
783
724
|
</div>
|
|
784
725
|
</div>
|
|
726
|
+
|
|
727
|
+
<div>
|
|
728
|
+
<h3 className="mb-3 text-sm font-semibold text-base-content/80">ToggleInput</h3>
|
|
729
|
+
<ToggleInput
|
|
730
|
+
label="Notificaciones"
|
|
731
|
+
showHelper
|
|
732
|
+
showInline
|
|
733
|
+
inlineText="Recibir alertas por email"
|
|
734
|
+
value={notifications ? "on" : "off"}
|
|
735
|
+
onValueChange={(value) => setNotifications(value === "on")}
|
|
736
|
+
options={[
|
|
737
|
+
{ value: "on", label: "On" },
|
|
738
|
+
{ value: "off", label: "Off" },
|
|
739
|
+
]}
|
|
740
|
+
/>
|
|
741
|
+
</div>
|
|
785
742
|
</div>
|
|
786
|
-
</
|
|
787
|
-
</Section>
|
|
743
|
+
</Section>
|
|
788
744
|
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
<CardHeader>
|
|
805
|
-
<CardTitle>Vista General</CardTitle>
|
|
806
|
-
<CardDescription>
|
|
807
|
-
Resumen de la información principal del proyecto.
|
|
808
|
-
</CardDescription>
|
|
809
|
-
</CardHeader>
|
|
810
|
-
<CardContent>
|
|
811
|
-
<div className="grid grid-cols-3 gap-4">
|
|
812
|
-
<div className="bg-base-200/50 rounded-lg p-4 text-center">
|
|
813
|
-
<div className="text-2xl font-bold text-primary">156</div>
|
|
814
|
-
<div className="text-xs text-base-content/60">Tareas completadas</div>
|
|
815
|
-
</div>
|
|
816
|
-
<div className="bg-base-200/50 rounded-lg p-4 text-center">
|
|
817
|
-
<div className="text-2xl font-bold text-info">24</div>
|
|
818
|
-
<div className="text-xs text-base-content/60">En progreso</div>
|
|
819
|
-
</div>
|
|
820
|
-
<div className="bg-base-200/50 rounded-lg p-4 text-center">
|
|
821
|
-
<div className="text-2xl font-bold text-warning">8</div>
|
|
822
|
-
<div className="text-xs text-base-content/60">Pendientes</div>
|
|
823
|
-
</div>
|
|
824
|
-
</div>
|
|
825
|
-
</CardContent>
|
|
826
|
-
</Card>
|
|
827
|
-
</TabsContent>
|
|
828
|
-
<TabsContent value="analytics">
|
|
829
|
-
<Card>
|
|
830
|
-
<CardHeader>
|
|
831
|
-
<CardTitle>Analíticas</CardTitle>
|
|
832
|
-
<CardDescription>
|
|
833
|
-
Métricas de rendimiento y uso de la aplicación.
|
|
834
|
-
</CardDescription>
|
|
835
|
-
</CardHeader>
|
|
836
|
-
<CardContent>
|
|
745
|
+
{/* ─── Modal ─── */}
|
|
746
|
+
<Section id="modal" title="Modal" description="Diálogo compuesto Modal* del Design System.">
|
|
747
|
+
<div className="flex flex-wrap gap-3">
|
|
748
|
+
<Modal>
|
|
749
|
+
<ModalTrigger asChild>
|
|
750
|
+
<Button>Abrir modal</Button>
|
|
751
|
+
</ModalTrigger>
|
|
752
|
+
<ModalContent>
|
|
753
|
+
<ModalHeader>
|
|
754
|
+
<ModalTitle>Confirmar acción</ModalTitle>
|
|
755
|
+
<ModalDescription>
|
|
756
|
+
Esta acción no se puede deshacer. ¿Desea continuar?
|
|
757
|
+
</ModalDescription>
|
|
758
|
+
</ModalHeader>
|
|
759
|
+
<ModalBody>
|
|
837
760
|
<p className="text-sm text-base-content/70">
|
|
838
|
-
|
|
761
|
+
Se eliminarán los datos asociados de forma permanente.
|
|
839
762
|
</p>
|
|
840
|
-
</
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
</
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
</div>
|
|
854
|
-
<div className="grid gap-2">
|
|
855
|
-
<Label htmlFor="project-desc">Descripción</Label>
|
|
856
|
-
<Textarea id="project-desc" defaultValue="Descripción del proyecto..." />
|
|
857
|
-
</div>
|
|
858
|
-
</CardContent>
|
|
859
|
-
</Card>
|
|
860
|
-
</TabsContent>
|
|
861
|
-
</Tabs>
|
|
862
|
-
</div>
|
|
863
|
-
</Section>
|
|
763
|
+
</ModalBody>
|
|
764
|
+
<ModalFooter>
|
|
765
|
+
<ModalAction asChild>
|
|
766
|
+
<DestructiveButton fullWidth>Eliminar</DestructiveButton>
|
|
767
|
+
</ModalAction>
|
|
768
|
+
<ModalClose asChild>
|
|
769
|
+
<Button variant="outline" fullWidth>Cancelar</Button>
|
|
770
|
+
</ModalClose>
|
|
771
|
+
</ModalFooter>
|
|
772
|
+
</ModalContent>
|
|
773
|
+
</Modal>
|
|
774
|
+
</div>
|
|
775
|
+
</Section>
|
|
864
776
|
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
<
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
<DialogTitle>Dialog de ejemplo</DialogTitle>
|
|
879
|
-
<DialogDescription>
|
|
880
|
-
Este es un dialog básico con título, descripción y acciones.
|
|
881
|
-
</DialogDescription>
|
|
882
|
-
</DialogHeader>
|
|
883
|
-
<p className="text-sm text-base-content/70">
|
|
884
|
-
Los dialogs son útiles para confirmaciones, formularios y contenido que requiere
|
|
885
|
-
atención del usuario.
|
|
886
|
-
</p>
|
|
887
|
-
<DialogFooter>
|
|
888
|
-
<DialogClose asChild>
|
|
889
|
-
<Button variant="outline">Cancelar</Button>
|
|
890
|
-
</DialogClose>
|
|
891
|
-
<DialogClose asChild>
|
|
892
|
-
<Button>Confirmar</Button>
|
|
893
|
-
</DialogClose>
|
|
894
|
-
</DialogFooter>
|
|
895
|
-
</DialogContent>
|
|
896
|
-
</Dialog>
|
|
777
|
+
{/* ─── Feedback ─── */}
|
|
778
|
+
<Section
|
|
779
|
+
id="feedback"
|
|
780
|
+
title="Feedback"
|
|
781
|
+
description="Alert, SuccessAlert, Tooltip y Spinner del Design System."
|
|
782
|
+
>
|
|
783
|
+
<div className="space-y-6">
|
|
784
|
+
<Alert>
|
|
785
|
+
<AlertTitle>Información</AlertTitle>
|
|
786
|
+
<AlertDescription>
|
|
787
|
+
Este es un alert del Design System. Úsalo para mensajes contextuales.
|
|
788
|
+
</AlertDescription>
|
|
789
|
+
</Alert>
|
|
897
790
|
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
</Button>
|
|
903
|
-
</DialogTrigger>
|
|
904
|
-
<DialogContent>
|
|
905
|
-
<DialogHeader>
|
|
906
|
-
<DialogTitle>¿Estás seguro?</DialogTitle>
|
|
907
|
-
<DialogDescription>
|
|
908
|
-
Esta acción no se puede deshacer. Se eliminará permanentemente el item
|
|
909
|
-
seleccionado.
|
|
910
|
-
</DialogDescription>
|
|
911
|
-
</DialogHeader>
|
|
912
|
-
<DialogFooter>
|
|
913
|
-
<DialogClose asChild>
|
|
914
|
-
<Button variant="outline">Cancelar</Button>
|
|
915
|
-
</DialogClose>
|
|
916
|
-
<DialogClose asChild>
|
|
917
|
-
<Button variant="destructive">Eliminar</Button>
|
|
918
|
-
</DialogClose>
|
|
919
|
-
</DialogFooter>
|
|
920
|
-
</DialogContent>
|
|
921
|
-
</Dialog>
|
|
791
|
+
<SuccessAlert
|
|
792
|
+
title="Guardado"
|
|
793
|
+
description="Los cambios se aplicaron correctamente."
|
|
794
|
+
/>
|
|
922
795
|
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
<
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
</DialogHeader>
|
|
936
|
-
<div className="space-y-4 py-2">
|
|
937
|
-
<div className="grid gap-2">
|
|
938
|
-
<Label htmlFor="dialog-name">Nombre</Label>
|
|
939
|
-
<Input id="dialog-name" placeholder="Tu nombre" />
|
|
940
|
-
</div>
|
|
941
|
-
<div className="grid gap-2">
|
|
942
|
-
<Label htmlFor="dialog-email">Email</Label>
|
|
943
|
-
<Input id="dialog-email" type="email" placeholder="tu@email.com" />
|
|
944
|
-
</div>
|
|
945
|
-
<div className="grid gap-2">
|
|
946
|
-
<Label htmlFor="dialog-message">Mensaje</Label>
|
|
947
|
-
<Textarea id="dialog-message" placeholder="Escribí tu mensaje..." />
|
|
948
|
-
</div>
|
|
796
|
+
<div className="flex flex-wrap items-center gap-4">
|
|
797
|
+
<Tooltip>
|
|
798
|
+
<TooltipTrigger asChild>
|
|
799
|
+
<Button variant="outline">Hover para tooltip</Button>
|
|
800
|
+
</TooltipTrigger>
|
|
801
|
+
<TooltipContent>Tooltip del Design System</TooltipContent>
|
|
802
|
+
</Tooltip>
|
|
803
|
+
|
|
804
|
+
<div className="flex items-center gap-3">
|
|
805
|
+
<Spinner size={12} />
|
|
806
|
+
<Spinner size={24} />
|
|
807
|
+
<Spinner size={32} />
|
|
949
808
|
</div>
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
</DialogClose>
|
|
954
|
-
<Button>Enviar</Button>
|
|
955
|
-
</DialogFooter>
|
|
956
|
-
</DialogContent>
|
|
957
|
-
</Dialog>
|
|
958
|
-
</div>
|
|
959
|
-
</Section>
|
|
809
|
+
</div>
|
|
810
|
+
</div>
|
|
811
|
+
</Section>
|
|
960
812
|
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
<
|
|
975
|
-
<
|
|
976
|
-
</
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
<
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
813
|
+
{/* ─── Skeleton ─── */}
|
|
814
|
+
<Section
|
|
815
|
+
id="skeleton"
|
|
816
|
+
title="Skeleton"
|
|
817
|
+
description="Placeholders de carga: SkeletonAvatar, SkeletonText y bloques compuestos."
|
|
818
|
+
>
|
|
819
|
+
<div className="grid gap-6 sm:grid-cols-2">
|
|
820
|
+
<Card>
|
|
821
|
+
<CardHeader>
|
|
822
|
+
<CardTitle>Avatar + texto</CardTitle>
|
|
823
|
+
</CardHeader>
|
|
824
|
+
<CardContent className="flex items-start gap-4">
|
|
825
|
+
<SkeletonAvatar isActive className="size-12" />
|
|
826
|
+
<div className="flex-1 space-y-2">
|
|
827
|
+
<SkeletonText lines={2} isActive />
|
|
828
|
+
</div>
|
|
829
|
+
</CardContent>
|
|
830
|
+
</Card>
|
|
831
|
+
|
|
832
|
+
<Card>
|
|
833
|
+
<CardHeader>
|
|
834
|
+
<CardTitle>Skeleton Card</CardTitle>
|
|
835
|
+
</CardHeader>
|
|
836
|
+
<CardContent>
|
|
837
|
+
<Skeleton className="w-full">
|
|
838
|
+
<Skeleton.Card />
|
|
839
|
+
</Skeleton>
|
|
840
|
+
</CardContent>
|
|
841
|
+
</Card>
|
|
987
842
|
</div>
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
<BreadcrumbItem>
|
|
1003
|
-
<BreadcrumbLink href="#">Equipo</BreadcrumbLink>
|
|
1004
|
-
</BreadcrumbItem>
|
|
1005
|
-
<BreadcrumbSeparator />
|
|
1006
|
-
<BreadcrumbItem>
|
|
1007
|
-
<BreadcrumbPage>Permisos</BreadcrumbPage>
|
|
1008
|
-
</BreadcrumbItem>
|
|
1009
|
-
</BreadcrumbList>
|
|
1010
|
-
</Breadcrumb>
|
|
843
|
+
</Section>
|
|
844
|
+
|
|
845
|
+
{/* ─── Dropdown ─── */}
|
|
846
|
+
<Section
|
|
847
|
+
id="dropdown"
|
|
848
|
+
title="Dropdown"
|
|
849
|
+
description="DropdownOptions del Design System para selección simple."
|
|
850
|
+
>
|
|
851
|
+
<div className="max-w-xs">
|
|
852
|
+
<DropdownOptions
|
|
853
|
+
placeholder="Elegir área"
|
|
854
|
+
options={dropdownOptions}
|
|
855
|
+
title="Área"
|
|
856
|
+
/>
|
|
1011
857
|
</div>
|
|
1012
|
-
</
|
|
1013
|
-
</Section>
|
|
858
|
+
</Section>
|
|
1014
859
|
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
860
|
+
{/* ─── Header ─── */}
|
|
861
|
+
<Section
|
|
862
|
+
id="header"
|
|
863
|
+
title="Header"
|
|
864
|
+
description="Header del Design System como ejemplo de navegación (reemplaza Breadcrumb)."
|
|
865
|
+
>
|
|
866
|
+
<Card>
|
|
867
|
+
<CardContent className="space-y-4 pt-6">
|
|
868
|
+
<Title title="Panel de componentes" />
|
|
869
|
+
<p className="text-sm text-muted-foreground">
|
|
870
|
+
Navegación de ejemplo con el Header del DS (reemplaza Breadcrumb).
|
|
871
|
+
</p>
|
|
872
|
+
<Header
|
|
873
|
+
showIconButton
|
|
874
|
+
icon="settings"
|
|
875
|
+
iconLabel="Configuración"
|
|
876
|
+
onIconAction={() => undefined}
|
|
877
|
+
/>
|
|
878
|
+
</CardContent>
|
|
879
|
+
</Card>
|
|
880
|
+
</Section>
|
|
881
|
+
|
|
882
|
+
{/* ─── Tables ─── */}
|
|
883
|
+
<Section
|
|
884
|
+
id="tables"
|
|
885
|
+
title="Tables"
|
|
886
|
+
description="Demo de composición con TanStack Table. No hay primitiva de tabla en el Design System; el bloque usa Card del DS como contenedor."
|
|
887
|
+
>
|
|
888
|
+
<div className="space-y-10">
|
|
1027
889
|
<Card>
|
|
1028
|
-
<
|
|
890
|
+
<CardHeader>
|
|
891
|
+
<CardTitle>Empleados</CardTitle>
|
|
892
|
+
<CardDescription>DataTable (TanStack) + Badge del DS</CardDescription>
|
|
893
|
+
</CardHeader>
|
|
894
|
+
<CardContent>
|
|
1029
895
|
<DataTable
|
|
1030
|
-
data={employees}
|
|
1031
896
|
columns={employeeColumns}
|
|
1032
|
-
|
|
897
|
+
data={employees}
|
|
898
|
+
filterPlaceholder="Buscar empleado..."
|
|
1033
899
|
/>
|
|
1034
900
|
</CardContent>
|
|
1035
901
|
</Card>
|
|
1036
|
-
</div>
|
|
1037
902
|
|
|
1038
|
-
<div>
|
|
1039
|
-
<h3 className="text-lg font-semibold mb-4">Tabla de Proyectos</h3>
|
|
1040
|
-
<p className="text-sm text-base-content/70 mb-4">
|
|
1041
|
-
Tabla con barras de progreso, estados y fechas formateadas.
|
|
1042
|
-
</p>
|
|
1043
903
|
<Card>
|
|
1044
|
-
<
|
|
904
|
+
<CardHeader>
|
|
905
|
+
<CardTitle>Proyectos</CardTitle>
|
|
906
|
+
<CardDescription>Otra demo TanStack envuelta en Card del DS</CardDescription>
|
|
907
|
+
</CardHeader>
|
|
908
|
+
<CardContent>
|
|
1045
909
|
<DataTable
|
|
1046
|
-
data={projects}
|
|
1047
910
|
columns={projectColumns}
|
|
1048
|
-
|
|
911
|
+
data={projects}
|
|
912
|
+
filterPlaceholder="Buscar proyecto..."
|
|
1049
913
|
/>
|
|
1050
914
|
</CardContent>
|
|
1051
915
|
</Card>
|
|
1052
916
|
</div>
|
|
1053
|
-
</
|
|
1054
|
-
</Section>
|
|
917
|
+
</Section>
|
|
1055
918
|
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
919
|
+
{/* ─── Sidebar ─── */}
|
|
920
|
+
<Section
|
|
921
|
+
id="sidebar"
|
|
922
|
+
title="Sidebar"
|
|
923
|
+
description="Sidebar del Design System como ejemplo de navegación (reemplaza Breadcrumb)."
|
|
924
|
+
>
|
|
925
|
+
<Card>
|
|
926
|
+
<CardContent>
|
|
927
|
+
<Sidebar
|
|
928
|
+
logo={<span className="text-2xl font-bold">Huenei</span>}
|
|
929
|
+
logoMark={<span className="text-2xl font-bold">Huenei</span>}
|
|
930
|
+
showAccountSwitch={false}
|
|
931
|
+
>
|
|
932
|
+
<SidebarItemList
|
|
933
|
+
state="neutral"
|
|
934
|
+
label="Tareas"
|
|
935
|
+
href="/tareas"
|
|
936
|
+
badge={<Badge shape="count">3</Badge>}
|
|
937
|
+
/>
|
|
938
|
+
<SidebarItemWithList
|
|
939
|
+
defaultOpen
|
|
940
|
+
itemProps={{ state: 'select', label: 'Inicio', icon: <Home /> }}
|
|
941
|
+
items={[
|
|
942
|
+
{ id: 'a', label: 'Resumen', href: '/inicio/resumen' },
|
|
943
|
+
{ id: 'b', label: 'Actividad', href: '/inicio/actividad' },
|
|
944
|
+
]}
|
|
945
|
+
/>
|
|
946
|
+
<SidebarStickyFooter>
|
|
947
|
+
<SidebarItemList state="exit" icon={<LogOut />} label="Cerrar sesión" href="/logout" showDivider />
|
|
948
|
+
</SidebarStickyFooter>
|
|
949
|
+
</Sidebar>
|
|
950
|
+
</CardContent>
|
|
951
|
+
</Card>
|
|
952
|
+
</Section>
|
|
953
|
+
|
|
954
|
+
{/* ─── Charts ─── */}
|
|
955
|
+
<Section
|
|
956
|
+
id="charts"
|
|
957
|
+
title="Charts"
|
|
958
|
+
description="Demo de composición con Recharts. No hay primitiva de charts en el Design System; cada gráfico vive dentro de un Card del DS."
|
|
959
|
+
>
|
|
960
|
+
<div className="grid gap-6 lg:grid-cols-2">
|
|
1069
961
|
<Card>
|
|
1070
|
-
<
|
|
1071
|
-
<
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
fontSize: "12px",
|
|
1082
|
-
}}
|
|
1083
|
-
formatter={(value: number) => [`$${value.toLocaleString()}`, undefined]}
|
|
1084
|
-
/>
|
|
962
|
+
<CardHeader>
|
|
963
|
+
<CardTitle>Ingresos vs Gastos</CardTitle>
|
|
964
|
+
<CardDescription>Área — últimos 8 meses</CardDescription>
|
|
965
|
+
</CardHeader>
|
|
966
|
+
<CardContent>
|
|
967
|
+
<ResponsiveContainer width="100%" height={280}>
|
|
968
|
+
<AreaChart data={monthlyRevenue}>
|
|
969
|
+
<CartesianGrid strokeDasharray="3 3" className="stroke-base-300" />
|
|
970
|
+
<XAxis dataKey="mes" className="text-xs" />
|
|
971
|
+
<YAxis className="text-xs" />
|
|
972
|
+
<RechartsTooltip />
|
|
1085
973
|
<Legend />
|
|
1086
|
-
<
|
|
974
|
+
<Area
|
|
975
|
+
type="monotone"
|
|
1087
976
|
dataKey="ingresos"
|
|
977
|
+
stroke="oklch(62.3% 0.214 259.815)"
|
|
978
|
+
fill="oklch(62.3% 0.214 259.815)"
|
|
979
|
+
fillOpacity={0.2}
|
|
1088
980
|
name="Ingresos"
|
|
1089
|
-
fill="#ff8300"
|
|
1090
|
-
radius={[4, 4, 0, 0]}
|
|
1091
981
|
/>
|
|
1092
|
-
<
|
|
1093
|
-
|
|
1094
|
-
dataKey="
|
|
1095
|
-
|
|
1096
|
-
fill="
|
|
1097
|
-
|
|
982
|
+
<Area
|
|
983
|
+
type="monotone"
|
|
984
|
+
dataKey="gastos"
|
|
985
|
+
stroke="oklch(63.7% 0.237 25.331)"
|
|
986
|
+
fill="oklch(63.7% 0.237 25.331)"
|
|
987
|
+
fillOpacity={0.2}
|
|
988
|
+
name="Gastos"
|
|
1098
989
|
/>
|
|
990
|
+
</AreaChart>
|
|
991
|
+
</ResponsiveContainer>
|
|
992
|
+
</CardContent>
|
|
993
|
+
</Card>
|
|
994
|
+
|
|
995
|
+
<Card>
|
|
996
|
+
<CardHeader>
|
|
997
|
+
<CardTitle>Estado de Proyectos</CardTitle>
|
|
998
|
+
<CardDescription>Distribución actual</CardDescription>
|
|
999
|
+
</CardHeader>
|
|
1000
|
+
<CardContent>
|
|
1001
|
+
<ResponsiveContainer width="100%" height={280}>
|
|
1002
|
+
<PieChart>
|
|
1003
|
+
<Pie
|
|
1004
|
+
data={projectStatus}
|
|
1005
|
+
cx="50%"
|
|
1006
|
+
cy="50%"
|
|
1007
|
+
innerRadius={60}
|
|
1008
|
+
outerRadius={100}
|
|
1009
|
+
paddingAngle={4}
|
|
1010
|
+
dataKey="value"
|
|
1011
|
+
label={({ name, percent }) =>
|
|
1012
|
+
`${name} ${((percent ?? 0) * 100).toFixed(0)}%`
|
|
1013
|
+
}
|
|
1014
|
+
>
|
|
1015
|
+
{projectStatus.map((entry) => (
|
|
1016
|
+
<Cell key={entry.name} fill={entry.color} />
|
|
1017
|
+
))}
|
|
1018
|
+
</Pie>
|
|
1019
|
+
<RechartsTooltip />
|
|
1020
|
+
</PieChart>
|
|
1021
|
+
</ResponsiveContainer>
|
|
1022
|
+
</CardContent>
|
|
1023
|
+
</Card>
|
|
1024
|
+
|
|
1025
|
+
<Card>
|
|
1026
|
+
<CardHeader>
|
|
1027
|
+
<CardTitle>Performance por Equipo</CardTitle>
|
|
1028
|
+
<CardDescription>Story points — últimos 3 sprints</CardDescription>
|
|
1029
|
+
</CardHeader>
|
|
1030
|
+
<CardContent>
|
|
1031
|
+
<ResponsiveContainer width="100%" height={280}>
|
|
1032
|
+
<BarChart data={teamPerformance}>
|
|
1033
|
+
<CartesianGrid strokeDasharray="3 3" className="stroke-base-300" />
|
|
1034
|
+
<XAxis dataKey="equipo" className="text-xs" />
|
|
1035
|
+
<YAxis className="text-xs" />
|
|
1036
|
+
<RechartsTooltip />
|
|
1037
|
+
<Legend />
|
|
1038
|
+
<Bar dataKey="sprint1" fill="oklch(62.3% 0.214 259.815)" name="Sprint 1" radius={[4, 4, 0, 0]} />
|
|
1039
|
+
<Bar dataKey="sprint2" fill="oklch(72.3% 0.219 149.579)" name="Sprint 2" radius={[4, 4, 0, 0]} />
|
|
1040
|
+
<Bar dataKey="sprint3" fill="oklch(76.9% 0.188 70.08)" name="Sprint 3" radius={[4, 4, 0, 0]} />
|
|
1099
1041
|
</BarChart>
|
|
1100
1042
|
</ResponsiveContainer>
|
|
1101
1043
|
</CardContent>
|
|
1102
1044
|
</Card>
|
|
1103
|
-
</div>
|
|
1104
1045
|
|
|
1105
|
-
{/* Line Chart */}
|
|
1106
|
-
<div>
|
|
1107
|
-
<h3 className="text-lg font-semibold mb-2">Gráfico de Líneas</h3>
|
|
1108
|
-
<p className="text-sm text-base-content/70 mb-4">
|
|
1109
|
-
Crecimiento de usuarios totales y activos a lo largo del tiempo.
|
|
1110
|
-
</p>
|
|
1111
1046
|
<Card>
|
|
1112
|
-
<
|
|
1113
|
-
<
|
|
1047
|
+
<CardHeader>
|
|
1048
|
+
<CardTitle>Crecimiento de Usuarios</CardTitle>
|
|
1049
|
+
<CardDescription>Usuarios activos mensuales</CardDescription>
|
|
1050
|
+
</CardHeader>
|
|
1051
|
+
<CardContent>
|
|
1052
|
+
<ResponsiveContainer width="100%" height={280}>
|
|
1114
1053
|
<LineChart data={userGrowth}>
|
|
1115
|
-
<CartesianGrid strokeDasharray="3 3"
|
|
1116
|
-
<XAxis dataKey="
|
|
1117
|
-
<YAxis
|
|
1118
|
-
<
|
|
1119
|
-
contentStyle={{
|
|
1120
|
-
backgroundColor: "oklch(100% 0 0)",
|
|
1121
|
-
border: "1px solid oklch(90% 0 0)",
|
|
1122
|
-
borderRadius: "8px",
|
|
1123
|
-
fontSize: "12px",
|
|
1124
|
-
}}
|
|
1125
|
-
/>
|
|
1126
|
-
<Legend />
|
|
1054
|
+
<CartesianGrid strokeDasharray="3 3" className="stroke-base-300" />
|
|
1055
|
+
<XAxis dataKey="mes" className="text-xs" />
|
|
1056
|
+
<YAxis className="text-xs" />
|
|
1057
|
+
<RechartsTooltip />
|
|
1127
1058
|
<Line
|
|
1128
1059
|
type="monotone"
|
|
1129
1060
|
dataKey="usuarios"
|
|
1130
|
-
|
|
1131
|
-
stroke="#ff8300"
|
|
1132
|
-
strokeWidth={2}
|
|
1133
|
-
dot={{ fill: "#ff8300", r: 4 }}
|
|
1134
|
-
activeDot={{ r: 6 }}
|
|
1135
|
-
/>
|
|
1136
|
-
<Line
|
|
1137
|
-
type="monotone"
|
|
1138
|
-
dataKey="activos"
|
|
1139
|
-
name="Usuarios activos"
|
|
1140
|
-
stroke="#8331a7"
|
|
1061
|
+
stroke="oklch(62.3% 0.214 259.815)"
|
|
1141
1062
|
strokeWidth={2}
|
|
1142
|
-
dot={{
|
|
1063
|
+
dot={{ r: 4 }}
|
|
1143
1064
|
activeDot={{ r: 6 }}
|
|
1065
|
+
name="Usuarios"
|
|
1144
1066
|
/>
|
|
1145
1067
|
</LineChart>
|
|
1146
1068
|
</ResponsiveContainer>
|
|
1147
1069
|
</CardContent>
|
|
1148
1070
|
</Card>
|
|
1149
1071
|
</div>
|
|
1072
|
+
</Section>
|
|
1073
|
+
</main>
|
|
1150
1074
|
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
<h3 className="text-lg font-semibold mb-2">Gráfico de Área</h3>
|
|
1155
|
-
<p className="text-sm text-base-content/70 mb-4">
|
|
1156
|
-
Ingresos acumulados con relleno degradado.
|
|
1157
|
-
</p>
|
|
1158
|
-
<Card className="h-[calc(100%-3.5rem)]">
|
|
1159
|
-
<CardContent className="pt-6">
|
|
1160
|
-
<ResponsiveContainer width="100%" height={300}>
|
|
1161
|
-
<AreaChart data={monthlyRevenue}>
|
|
1162
|
-
<defs>
|
|
1163
|
-
<linearGradient id="colorIngresos" x1="0" y1="0" x2="0" y2="1">
|
|
1164
|
-
<stop offset="5%" stopColor="#ff8300" stopOpacity={0.3} />
|
|
1165
|
-
<stop offset="95%" stopColor="#ff8300" stopOpacity={0} />
|
|
1166
|
-
</linearGradient>
|
|
1167
|
-
<linearGradient id="colorBeneficio" x1="0" y1="0" x2="0" y2="1">
|
|
1168
|
-
<stop offset="5%" stopColor="#22c55e" stopOpacity={0.3} />
|
|
1169
|
-
<stop offset="95%" stopColor="#22c55e" stopOpacity={0} />
|
|
1170
|
-
</linearGradient>
|
|
1171
|
-
</defs>
|
|
1172
|
-
<CartesianGrid strokeDasharray="3 3" stroke="oklch(90% 0 0)" />
|
|
1173
|
-
<XAxis dataKey="month" tick={{ fontSize: 12 }} />
|
|
1174
|
-
<YAxis tick={{ fontSize: 12 }} />
|
|
1175
|
-
<Tooltip
|
|
1176
|
-
contentStyle={{
|
|
1177
|
-
backgroundColor: "oklch(100% 0 0)",
|
|
1178
|
-
border: "1px solid oklch(90% 0 0)",
|
|
1179
|
-
borderRadius: "8px",
|
|
1180
|
-
fontSize: "12px",
|
|
1181
|
-
}}
|
|
1182
|
-
/>
|
|
1183
|
-
<Legend />
|
|
1184
|
-
<Area
|
|
1185
|
-
type="monotone"
|
|
1186
|
-
dataKey="ingresos"
|
|
1187
|
-
name="Ingresos"
|
|
1188
|
-
stroke="#ff8300"
|
|
1189
|
-
fill="url(#colorIngresos)"
|
|
1190
|
-
strokeWidth={2}
|
|
1191
|
-
/>
|
|
1192
|
-
<Area
|
|
1193
|
-
type="monotone"
|
|
1194
|
-
dataKey="beneficio"
|
|
1195
|
-
name="Beneficio"
|
|
1196
|
-
stroke="#22c55e"
|
|
1197
|
-
fill="url(#colorBeneficio)"
|
|
1198
|
-
strokeWidth={2}
|
|
1199
|
-
/>
|
|
1200
|
-
</AreaChart>
|
|
1201
|
-
</ResponsiveContainer>
|
|
1202
|
-
</CardContent>
|
|
1203
|
-
</Card>
|
|
1204
|
-
</div>
|
|
1205
|
-
|
|
1206
|
-
<div>
|
|
1207
|
-
<h3 className="text-lg font-semibold mb-2">Gráfico de Torta</h3>
|
|
1208
|
-
<p className="text-sm text-base-content/70 mb-4">
|
|
1209
|
-
Distribución de proyectos por categoría.
|
|
1210
|
-
</p>
|
|
1211
|
-
<Card className="h-[calc(100%-3.5rem)]">
|
|
1212
|
-
<CardContent className="pt-6">
|
|
1213
|
-
<ResponsiveContainer width="100%" height={300}>
|
|
1214
|
-
<PieChart>
|
|
1215
|
-
<Pie
|
|
1216
|
-
data={categoryDistribution}
|
|
1217
|
-
cx="50%"
|
|
1218
|
-
cy="50%"
|
|
1219
|
-
innerRadius={60}
|
|
1220
|
-
outerRadius={100}
|
|
1221
|
-
paddingAngle={4}
|
|
1222
|
-
dataKey="value"
|
|
1223
|
-
label={({ name, percent }) => `${name} ${(percent * 100).toFixed(0)}%`}
|
|
1224
|
-
labelLine={false}
|
|
1225
|
-
>
|
|
1226
|
-
{categoryDistribution.map((entry) => (
|
|
1227
|
-
<Cell key={entry.name} fill={entry.color} />
|
|
1228
|
-
))}
|
|
1229
|
-
</Pie>
|
|
1230
|
-
<Tooltip
|
|
1231
|
-
contentStyle={{
|
|
1232
|
-
backgroundColor: "oklch(100% 0 0)",
|
|
1233
|
-
border: "1px solid oklch(90% 0 0)",
|
|
1234
|
-
borderRadius: "8px",
|
|
1235
|
-
fontSize: "12px",
|
|
1236
|
-
}}
|
|
1237
|
-
formatter={(value: number) => [`${value}%`, undefined]}
|
|
1238
|
-
/>
|
|
1239
|
-
</PieChart>
|
|
1240
|
-
</ResponsiveContainer>
|
|
1241
|
-
</CardContent>
|
|
1242
|
-
</Card>
|
|
1243
|
-
</div>
|
|
1244
|
-
</div>
|
|
1245
|
-
|
|
1246
|
-
{/* Radar Chart */}
|
|
1247
|
-
<div>
|
|
1248
|
-
<h3 className="text-lg font-semibold mb-2">Gráfico de Radar</h3>
|
|
1249
|
-
<p className="text-sm text-base-content/70 mb-4">
|
|
1250
|
-
Comparación del rendimiento actual vs objetivos del equipo.
|
|
1251
|
-
</p>
|
|
1252
|
-
<Card>
|
|
1253
|
-
<CardContent className="pt-6">
|
|
1254
|
-
<ResponsiveContainer width="100%" height={400}>
|
|
1255
|
-
<RadarChart data={performanceData}>
|
|
1256
|
-
<PolarGrid stroke="oklch(90% 0 0)" />
|
|
1257
|
-
<PolarAngleAxis dataKey="metric" tick={{ fontSize: 12 }} />
|
|
1258
|
-
<PolarRadiusAxis angle={30} domain={[0, 100]} tick={{ fontSize: 10 }} />
|
|
1259
|
-
<Radar
|
|
1260
|
-
name="Actual"
|
|
1261
|
-
dataKey="actual"
|
|
1262
|
-
stroke="#ff8300"
|
|
1263
|
-
fill="#ff8300"
|
|
1264
|
-
fillOpacity={0.3}
|
|
1265
|
-
strokeWidth={2}
|
|
1266
|
-
/>
|
|
1267
|
-
<Radar
|
|
1268
|
-
name="Objetivo"
|
|
1269
|
-
dataKey="objetivo"
|
|
1270
|
-
stroke="#1a428a"
|
|
1271
|
-
fill="#1a428a"
|
|
1272
|
-
fillOpacity={0.15}
|
|
1273
|
-
strokeWidth={2}
|
|
1274
|
-
/>
|
|
1275
|
-
<Legend />
|
|
1276
|
-
<Tooltip
|
|
1277
|
-
contentStyle={{
|
|
1278
|
-
backgroundColor: "oklch(100% 0 0)",
|
|
1279
|
-
border: "1px solid oklch(90% 0 0)",
|
|
1280
|
-
borderRadius: "8px",
|
|
1281
|
-
fontSize: "12px",
|
|
1282
|
-
}}
|
|
1283
|
-
/>
|
|
1284
|
-
</RadarChart>
|
|
1285
|
-
</ResponsiveContainer>
|
|
1286
|
-
</CardContent>
|
|
1287
|
-
</Card>
|
|
1288
|
-
</div>
|
|
1289
|
-
</div>
|
|
1290
|
-
</Section>
|
|
1291
|
-
</div>
|
|
1292
|
-
|
|
1293
|
-
{/* Navegación de regreso */}
|
|
1294
|
-
<div className="text-center mt-16">
|
|
1295
|
-
<Link
|
|
1296
|
-
to="/"
|
|
1297
|
-
className="inline-flex items-center gap-2 text-primary hover:text-primary/80 transition-colors"
|
|
1298
|
-
>
|
|
1299
|
-
<ArrowRight className="w-4 h-4 rotate-180" />
|
|
1300
|
-
Volver al inicio
|
|
1301
|
-
</Link>
|
|
1075
|
+
<footer className="border-t border-base-300 py-6 text-center text-sm text-base-content/50">
|
|
1076
|
+
create-huenei-template · @huenei/design-system demo
|
|
1077
|
+
</footer>
|
|
1302
1078
|
</div>
|
|
1303
|
-
</
|
|
1079
|
+
</TooltipProvider>
|
|
1304
1080
|
);
|
|
1305
1081
|
}
|