create-huenei-template 0.2.13 → 0.2.15
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/config/templates.js +7 -0
- package/dist/templates/cursor/.cursor/agents/config-drift-analyzer.md +152 -0
- package/dist/templates/cursor/.cursor/commands/actualizar-reglas.md +580 -0
- package/dist/templates/frontend/react-ssr/.cursor/agents/accessibility-reviewer.md +22 -0
- package/dist/templates/frontend/react-ssr/.cursor/agents/nextjs-code-reviewer.md +24 -0
- package/dist/templates/frontend/react-ssr/.cursor/agents/react-test-expert.md +32 -0
- package/dist/templates/frontend/react-ssr/.cursor/agents/security-auditor.md +25 -0
- package/dist/templates/frontend/react-ssr/.cursor/commands/new-component.md +97 -0
- package/dist/templates/frontend/react-ssr/.cursor/commands/new-page.md +95 -0
- package/dist/templates/frontend/react-ssr/.cursor/commands/new-prisma-model.md +66 -0
- package/dist/templates/frontend/react-ssr/.cursor/commands/new-server-action.md +89 -0
- package/dist/templates/frontend/react-ssr/.cursor/hooks/auto-format.ts +64 -0
- package/dist/templates/frontend/react-ssr/.cursor/hooks/auto-test-on-stop.ts +94 -0
- package/dist/templates/frontend/react-ssr/.cursor/hooks/block-dangerous-commands.ts +120 -0
- package/dist/templates/frontend/react-ssr/.cursor/hooks/ensure-tests-exist.ts +209 -0
- package/dist/templates/frontend/react-ssr/.cursor/hooks/protect-sensitive-files.ts +101 -0
- package/dist/templates/frontend/react-ssr/.cursor/hooks/session-context.ts +93 -0
- package/dist/templates/frontend/react-ssr/.cursor/hooks/tsconfig.json +10 -0
- package/dist/templates/frontend/react-ssr/.cursor/hooks.json +41 -0
- package/dist/templates/frontend/react-ssr/.cursor/rules/auth-patterns.mdc +48 -0
- package/dist/templates/frontend/react-ssr/.cursor/rules/code-quality.mdc +39 -0
- package/dist/templates/frontend/react-ssr/.cursor/rules/naming-conventions.mdc +32 -0
- package/dist/templates/frontend/react-ssr/.cursor/rules/nextjs-architecture.mdc +51 -0
- package/dist/templates/frontend/react-ssr/.cursor/rules/prisma-standards.mdc +53 -0
- package/dist/templates/frontend/react-ssr/.cursor/rules/react-conventions.mdc +52 -0
- package/dist/templates/frontend/react-ssr/.cursor/rules/testing-conventions.mdc +53 -0
- package/dist/templates/frontend/react-ssr/.cursor/rules/ui-stack.mdc +47 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/authjs-skills/SKILL.md +1149 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/daisyui-5/SKILL.md +189 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/daisyui-5/daisyUI5.skill +0 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/daisyui-5/references/creating-components.md +412 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/daisyui-5/references/data-display.md +341 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/daisyui-5/references/feedback.md +240 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/daisyui-5/references/input.md +283 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/daisyui-5/references/layout.md +275 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/daisyui-5/references/navigation.md +338 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/daisyui-5/scripts/daisy-meta.ts +220 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/daisyui-5/scripts/generate-daisy-safelist.ts +152 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/docker-expert/SKILL.md +413 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/nextjs-app-router-patterns/SKILL.md +537 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/SKILL.md +243 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/db-execute.md +75 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/db-pull.md +185 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/db-push.md +148 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/db-seed.md +191 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/debug.md +46 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/dev.md +157 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/format.md +48 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/generate.md +147 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/init.md +118 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/migrate-deploy.md +127 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/migrate-dev.md +143 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/migrate-diff.md +89 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/migrate-reset.md +72 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/migrate-resolve.md +57 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/migrate-status.md +65 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/studio.md +122 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/validate.md +53 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/SKILL.md +216 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/client-methods.md +221 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/constructor.md +185 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/filters.md +256 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/model-queries.md +281 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/query-options.md +276 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/raw-queries.md +194 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/relations.md +308 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/transactions.md +184 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/AGENTS.md +97 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/README.md +138 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/SKILL.md +116 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/assets/templates/_template.md +26 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/_sections.md +46 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/adv-devtools-performance.md +69 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/adv-formprovider-memo.md +78 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/adv-testing-wrapper.md +63 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/array-complete-default-objects.md +66 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/array-separate-crud-operations.md +76 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/array-unique-fieldarray-per-name.md +58 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/array-use-field-id-as-key.md +54 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/array-virtualization-formprovider.md +64 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/ctrl-avoid-double-registration.md +46 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/ctrl-controller-field-props.md +56 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/ctrl-local-state-combination.md +69 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/ctrl-single-usecontroller-per-component.md +62 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/ctrl-usecontroller-isolation.md +64 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formcfg-async-default-values.md +69 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formcfg-default-values.md +57 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formcfg-revalidate-mode.md +48 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formcfg-should-unregister.md +62 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formcfg-useeffect-dependency.md +54 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formcfg-validation-mode.md +51 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formstate-avoid-isvalid-with-onsubmit.md +58 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formstate-destructure-formstate.md +48 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formstate-getfieldstate-for-single-field.md +49 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formstate-subscribe-to-specific-fields.md +54 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formstate-useformstate-isolation.md +62 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/integ-mui-controller-pattern.md +59 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/integ-shadcn-form-import.md +64 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/integ-shadcn-select-wiring.md +64 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/integ-value-transform.md +59 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-avoid-watch-in-render.md +48 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-deep-subscription.md +62 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-useformcontext-sparingly.md +58 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-usewatch-default-value.md +50 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-usewatch-over-watch.md +58 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-usewatch-with-getvalues.md +54 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-watch-specific-fields.md +54 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/valid-delay-error.md +52 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/valid-dynamic-schema-factory.md +57 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/valid-error-message-strategy.md +65 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/valid-inline-vs-resolver.md +63 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/valid-native-validation.md +60 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/valid-resolver-caching.md +58 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/recharts/SKILL.md +713 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/recharts/references/api_reference.md +1121 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/recharts/references/best_practices.md +782 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/recharts/references/examples.md +940 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/SKILL.md +114 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/cache-gc-time.md +93 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/cache-invalidation.md +116 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/cache-placeholder-vs-initial.md +156 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/cache-stale-time.md +80 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/err-error-boundaries.md +150 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/inf-page-params.md +132 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/mut-invalidate-queries.md +118 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/mut-mutation-state.md +169 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/mut-optimistic-updates.md +137 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/network-mode.md +179 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/parallel-use-queries.md +152 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/perf-select-transform.md +144 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/persist-queries.md +194 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/pf-intent-prefetch.md +143 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/qk-array-structure.md +50 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/qk-factory-pattern.md +102 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/qk-hierarchical-organization.md +76 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/qk-include-dependencies.md +62 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/qk-serializable.md +93 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/query-cancellation.md +171 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/ssr-dehydration.md +158 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-table/SKILL.md +582 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/zod-4/SKILL.md +216 -0
- package/dist/templates/frontend/react-ssr/.dockerignore +14 -0
- package/dist/templates/frontend/react-ssr/.env.example +9 -0
- package/dist/templates/frontend/react-ssr/.husky/pre-commit +1 -0
- package/dist/templates/frontend/react-ssr/Dockerfile +41 -0
- package/dist/templates/frontend/react-ssr/README.md +121 -0
- package/dist/templates/frontend/react-ssr/components.json +22 -0
- package/dist/templates/frontend/react-ssr/docker-compose.yml +21 -0
- package/dist/templates/frontend/react-ssr/eslint.config.mjs +26 -0
- package/dist/templates/frontend/react-ssr/next.config.ts +7 -0
- package/dist/templates/frontend/react-ssr/package.json +86 -0
- package/dist/templates/frontend/react-ssr/postcss.config.mjs +5 -0
- package/dist/templates/frontend/react-ssr/prisma/schema.prisma +75 -0
- package/dist/templates/frontend/react-ssr/prisma/seed.ts +109 -0
- package/dist/templates/frontend/react-ssr/prisma.config.ts +17 -0
- package/dist/templates/frontend/react-ssr/skills-lock.json +65 -0
- package/dist/templates/frontend/react-ssr/src/__tests__/components/ui/badge.test.tsx +26 -0
- package/dist/templates/frontend/react-ssr/src/__tests__/components/ui/button.test.tsx +38 -0
- package/dist/templates/frontend/react-ssr/src/__tests__/components/ui/card.test.tsx +39 -0
- package/dist/templates/frontend/react-ssr/src/__tests__/components/ui/input.test.tsx +32 -0
- package/dist/templates/frontend/react-ssr/src/__tests__/hooks/useLocalStorage.test.ts +53 -0
- package/dist/templates/frontend/react-ssr/src/__tests__/lib/queryClient.test.ts +19 -0
- package/dist/templates/frontend/react-ssr/src/__tests__/lib/utils.test.ts +24 -0
- package/dist/templates/frontend/react-ssr/src/actions/auth.ts +91 -0
- package/dist/templates/frontend/react-ssr/src/actions/contacto.ts +46 -0
- package/dist/templates/frontend/react-ssr/src/actions/proyectos.ts +159 -0
- package/dist/templates/frontend/react-ssr/src/app/(authenticated)/dashboard/dashboard-client.tsx +321 -0
- package/dist/templates/frontend/react-ssr/src/app/(authenticated)/dashboard/page.tsx +48 -0
- package/dist/templates/frontend/react-ssr/src/app/(authenticated)/layout.tsx +34 -0
- package/dist/templates/frontend/react-ssr/src/app/(authenticated)/perfil/page.tsx +85 -0
- package/dist/templates/frontend/react-ssr/src/app/(authenticated)/proyectos-crud/page.tsx +23 -0
- package/dist/templates/frontend/react-ssr/src/app/(authenticated)/proyectos-crud/proyectos-crud-client.tsx +472 -0
- package/dist/templates/frontend/react-ssr/src/app/(authenticated)/ui-components/page.tsx +358 -0
- package/dist/templates/frontend/react-ssr/src/app/api/auth/[...nextauth]/route.ts +3 -0
- package/dist/templates/frontend/react-ssr/src/app/auth/iniciar-sesion/page.tsx +148 -0
- package/dist/templates/frontend/react-ssr/src/app/auth/recuperar-password/page.tsx +100 -0
- package/dist/templates/frontend/react-ssr/src/app/auth/registro/page.tsx +154 -0
- package/dist/templates/frontend/react-ssr/src/app/contacto/contacto-form.tsx +189 -0
- package/dist/templates/frontend/react-ssr/src/app/contacto/page.tsx +11 -0
- package/dist/templates/frontend/react-ssr/src/app/globals.css +99 -0
- package/dist/templates/frontend/react-ssr/src/app/layout.tsx +22 -0
- package/dist/templates/frontend/react-ssr/src/app/loading.tsx +7 -0
- package/dist/templates/frontend/react-ssr/src/app/not-found.tsx +14 -0
- package/dist/templates/frontend/react-ssr/src/app/page.tsx +331 -0
- package/dist/templates/frontend/react-ssr/src/app/proyectos/page.tsx +178 -0
- package/dist/templates/frontend/react-ssr/src/auth.ts +64 -0
- package/dist/templates/frontend/react-ssr/src/components/layout/navbar.tsx +68 -0
- package/dist/templates/frontend/react-ssr/src/components/layout/sidebar.tsx +109 -0
- package/dist/templates/frontend/react-ssr/src/components/layout/sign-out-button.tsx +16 -0
- package/dist/templates/frontend/react-ssr/src/components/providers.tsx +33 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/avatar.tsx +53 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/badge.tsx +42 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/breadcrumb.tsx +114 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/button.tsx +58 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/card.tsx +95 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/dialog.tsx +136 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/form.tsx +168 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/input.tsx +22 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/label.tsx +26 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/password-input.tsx +43 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/separator.tsx +30 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/table.tsx +240 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/tabs.tsx +76 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/textarea.tsx +21 -0
- package/dist/templates/frontend/react-ssr/src/data/dashboard.ts +179 -0
- package/dist/templates/frontend/react-ssr/src/hooks/useLocalStorage.ts +38 -0
- package/dist/templates/frontend/react-ssr/src/lib/prisma.ts +24 -0
- package/dist/templates/frontend/react-ssr/src/lib/queryClient.ts +25 -0
- package/dist/templates/frontend/react-ssr/src/lib/utils.ts +6 -0
- package/dist/templates/frontend/react-ssr/src/proxy.ts +31 -0
- package/dist/templates/frontend/react-ssr/src/test/mocks/next-navigation.ts +16 -0
- package/dist/templates/frontend/react-ssr/src/test/setup.ts +1 -0
- package/dist/templates/frontend/react-ssr/src/test/utils.tsx +30 -0
- package/dist/templates/frontend/react-ssr/src/types/index.ts +36 -0
- package/dist/templates/frontend/react-ssr/tsconfig.json +41 -0
- package/dist/templates/frontend/react-ssr/vitest.config.ts +41 -0
- package/package.json +1 -1
- package/templates/cursor/.cursor/agents/config-drift-analyzer.md +152 -0
- package/templates/cursor/.cursor/commands/actualizar-reglas.md +580 -0
- package/templates/frontend/react-ssr/.cursor/agents/accessibility-reviewer.md +22 -0
- package/templates/frontend/react-ssr/.cursor/agents/nextjs-code-reviewer.md +24 -0
- package/templates/frontend/react-ssr/.cursor/agents/react-test-expert.md +32 -0
- package/templates/frontend/react-ssr/.cursor/agents/security-auditor.md +25 -0
- package/templates/frontend/react-ssr/.cursor/commands/new-component.md +97 -0
- package/templates/frontend/react-ssr/.cursor/commands/new-page.md +95 -0
- package/templates/frontend/react-ssr/.cursor/commands/new-prisma-model.md +66 -0
- package/templates/frontend/react-ssr/.cursor/commands/new-server-action.md +89 -0
- package/templates/frontend/react-ssr/.cursor/hooks/auto-format.ts +64 -0
- package/templates/frontend/react-ssr/.cursor/hooks/auto-test-on-stop.ts +94 -0
- package/templates/frontend/react-ssr/.cursor/hooks/block-dangerous-commands.ts +120 -0
- package/templates/frontend/react-ssr/.cursor/hooks/ensure-tests-exist.ts +209 -0
- package/templates/frontend/react-ssr/.cursor/hooks/protect-sensitive-files.ts +101 -0
- package/templates/frontend/react-ssr/.cursor/hooks/session-context.ts +93 -0
- package/templates/frontend/react-ssr/.cursor/hooks/tsconfig.json +10 -0
- package/templates/frontend/react-ssr/.cursor/hooks.json +41 -0
- package/templates/frontend/react-ssr/.cursor/rules/auth-patterns.mdc +48 -0
- package/templates/frontend/react-ssr/.cursor/rules/code-quality.mdc +39 -0
- package/templates/frontend/react-ssr/.cursor/rules/naming-conventions.mdc +32 -0
- package/templates/frontend/react-ssr/.cursor/rules/nextjs-architecture.mdc +51 -0
- package/templates/frontend/react-ssr/.cursor/rules/prisma-standards.mdc +53 -0
- package/templates/frontend/react-ssr/.cursor/rules/react-conventions.mdc +52 -0
- package/templates/frontend/react-ssr/.cursor/rules/testing-conventions.mdc +53 -0
- package/templates/frontend/react-ssr/.cursor/rules/ui-stack.mdc +47 -0
- package/templates/frontend/react-ssr/.cursor/skills/authjs-skills/SKILL.md +1149 -0
- package/templates/frontend/react-ssr/.cursor/skills/daisyui-5/SKILL.md +189 -0
- package/templates/frontend/react-ssr/.cursor/skills/daisyui-5/daisyUI5.skill +0 -0
- package/templates/frontend/react-ssr/.cursor/skills/daisyui-5/references/creating-components.md +412 -0
- package/templates/frontend/react-ssr/.cursor/skills/daisyui-5/references/data-display.md +341 -0
- package/templates/frontend/react-ssr/.cursor/skills/daisyui-5/references/feedback.md +240 -0
- package/templates/frontend/react-ssr/.cursor/skills/daisyui-5/references/input.md +283 -0
- package/templates/frontend/react-ssr/.cursor/skills/daisyui-5/references/layout.md +275 -0
- package/templates/frontend/react-ssr/.cursor/skills/daisyui-5/references/navigation.md +338 -0
- package/templates/frontend/react-ssr/.cursor/skills/daisyui-5/scripts/daisy-meta.ts +220 -0
- package/templates/frontend/react-ssr/.cursor/skills/daisyui-5/scripts/generate-daisy-safelist.ts +152 -0
- package/templates/frontend/react-ssr/.cursor/skills/docker-expert/SKILL.md +413 -0
- package/templates/frontend/react-ssr/.cursor/skills/nextjs-app-router-patterns/SKILL.md +537 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/SKILL.md +243 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/db-execute.md +75 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/db-pull.md +185 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/db-push.md +148 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/db-seed.md +191 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/debug.md +46 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/dev.md +157 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/format.md +48 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/generate.md +147 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/init.md +118 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/migrate-deploy.md +127 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/migrate-dev.md +143 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/migrate-diff.md +89 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/migrate-reset.md +72 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/migrate-resolve.md +57 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/migrate-status.md +65 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/studio.md +122 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/validate.md +53 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/SKILL.md +216 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/client-methods.md +221 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/constructor.md +185 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/filters.md +256 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/model-queries.md +281 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/query-options.md +276 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/raw-queries.md +194 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/relations.md +308 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/transactions.md +184 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/AGENTS.md +97 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/README.md +138 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/SKILL.md +116 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/assets/templates/_template.md +26 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/_sections.md +46 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/adv-devtools-performance.md +69 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/adv-formprovider-memo.md +78 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/adv-testing-wrapper.md +63 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/array-complete-default-objects.md +66 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/array-separate-crud-operations.md +76 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/array-unique-fieldarray-per-name.md +58 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/array-use-field-id-as-key.md +54 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/array-virtualization-formprovider.md +64 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/ctrl-avoid-double-registration.md +46 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/ctrl-controller-field-props.md +56 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/ctrl-local-state-combination.md +69 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/ctrl-single-usecontroller-per-component.md +62 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/ctrl-usecontroller-isolation.md +64 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formcfg-async-default-values.md +69 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formcfg-default-values.md +57 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formcfg-revalidate-mode.md +48 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formcfg-should-unregister.md +62 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formcfg-useeffect-dependency.md +54 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formcfg-validation-mode.md +51 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formstate-avoid-isvalid-with-onsubmit.md +58 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formstate-destructure-formstate.md +48 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formstate-getfieldstate-for-single-field.md +49 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formstate-subscribe-to-specific-fields.md +54 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formstate-useformstate-isolation.md +62 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/integ-mui-controller-pattern.md +59 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/integ-shadcn-form-import.md +64 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/integ-shadcn-select-wiring.md +64 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/integ-value-transform.md +59 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-avoid-watch-in-render.md +48 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-deep-subscription.md +62 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-useformcontext-sparingly.md +58 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-usewatch-default-value.md +50 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-usewatch-over-watch.md +58 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-usewatch-with-getvalues.md +54 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-watch-specific-fields.md +54 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/valid-delay-error.md +52 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/valid-dynamic-schema-factory.md +57 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/valid-error-message-strategy.md +65 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/valid-inline-vs-resolver.md +63 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/valid-native-validation.md +60 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/valid-resolver-caching.md +58 -0
- package/templates/frontend/react-ssr/.cursor/skills/recharts/SKILL.md +713 -0
- package/templates/frontend/react-ssr/.cursor/skills/recharts/references/api_reference.md +1121 -0
- package/templates/frontend/react-ssr/.cursor/skills/recharts/references/best_practices.md +782 -0
- package/templates/frontend/react-ssr/.cursor/skills/recharts/references/examples.md +940 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/SKILL.md +114 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/cache-gc-time.md +93 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/cache-invalidation.md +116 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/cache-placeholder-vs-initial.md +156 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/cache-stale-time.md +80 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/err-error-boundaries.md +150 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/inf-page-params.md +132 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/mut-invalidate-queries.md +118 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/mut-mutation-state.md +169 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/mut-optimistic-updates.md +137 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/network-mode.md +179 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/parallel-use-queries.md +152 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/perf-select-transform.md +144 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/persist-queries.md +194 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/pf-intent-prefetch.md +143 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/qk-array-structure.md +50 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/qk-factory-pattern.md +102 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/qk-hierarchical-organization.md +76 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/qk-include-dependencies.md +62 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/qk-serializable.md +93 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/query-cancellation.md +171 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/ssr-dehydration.md +158 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-table/SKILL.md +582 -0
- package/templates/frontend/react-ssr/.cursor/skills/zod-4/SKILL.md +216 -0
- package/templates/frontend/react-ssr/.dockerignore +14 -0
- package/templates/frontend/react-ssr/.env.example +9 -0
- package/templates/frontend/react-ssr/.husky/pre-commit +1 -0
- package/templates/frontend/react-ssr/Dockerfile +41 -0
- package/templates/frontend/react-ssr/README.md +121 -0
- package/templates/frontend/react-ssr/components.json +22 -0
- package/templates/frontend/react-ssr/docker-compose.yml +21 -0
- package/templates/frontend/react-ssr/eslint.config.mjs +26 -0
- package/templates/frontend/react-ssr/next.config.ts +7 -0
- package/templates/frontend/react-ssr/package.json +86 -0
- package/templates/frontend/react-ssr/postcss.config.mjs +5 -0
- package/templates/frontend/react-ssr/prisma/schema.prisma +75 -0
- package/templates/frontend/react-ssr/prisma/seed.ts +109 -0
- package/templates/frontend/react-ssr/prisma.config.ts +17 -0
- package/templates/frontend/react-ssr/skills-lock.json +65 -0
- package/templates/frontend/react-ssr/src/__tests__/components/ui/badge.test.tsx +26 -0
- package/templates/frontend/react-ssr/src/__tests__/components/ui/button.test.tsx +38 -0
- package/templates/frontend/react-ssr/src/__tests__/components/ui/card.test.tsx +39 -0
- package/templates/frontend/react-ssr/src/__tests__/components/ui/input.test.tsx +32 -0
- package/templates/frontend/react-ssr/src/__tests__/hooks/useLocalStorage.test.ts +53 -0
- package/templates/frontend/react-ssr/src/__tests__/lib/queryClient.test.ts +19 -0
- package/templates/frontend/react-ssr/src/__tests__/lib/utils.test.ts +24 -0
- package/templates/frontend/react-ssr/src/actions/auth.ts +91 -0
- package/templates/frontend/react-ssr/src/actions/contacto.ts +46 -0
- package/templates/frontend/react-ssr/src/actions/proyectos.ts +159 -0
- package/templates/frontend/react-ssr/src/app/(authenticated)/dashboard/dashboard-client.tsx +321 -0
- package/templates/frontend/react-ssr/src/app/(authenticated)/dashboard/page.tsx +48 -0
- package/templates/frontend/react-ssr/src/app/(authenticated)/layout.tsx +34 -0
- package/templates/frontend/react-ssr/src/app/(authenticated)/perfil/page.tsx +85 -0
- package/templates/frontend/react-ssr/src/app/(authenticated)/proyectos-crud/page.tsx +23 -0
- package/templates/frontend/react-ssr/src/app/(authenticated)/proyectos-crud/proyectos-crud-client.tsx +472 -0
- package/templates/frontend/react-ssr/src/app/(authenticated)/ui-components/page.tsx +358 -0
- package/templates/frontend/react-ssr/src/app/api/auth/[...nextauth]/route.ts +3 -0
- package/templates/frontend/react-ssr/src/app/auth/iniciar-sesion/page.tsx +148 -0
- package/templates/frontend/react-ssr/src/app/auth/recuperar-password/page.tsx +100 -0
- package/templates/frontend/react-ssr/src/app/auth/registro/page.tsx +154 -0
- package/templates/frontend/react-ssr/src/app/contacto/contacto-form.tsx +189 -0
- package/templates/frontend/react-ssr/src/app/contacto/page.tsx +11 -0
- package/templates/frontend/react-ssr/src/app/globals.css +99 -0
- package/templates/frontend/react-ssr/src/app/layout.tsx +22 -0
- package/templates/frontend/react-ssr/src/app/loading.tsx +7 -0
- package/templates/frontend/react-ssr/src/app/not-found.tsx +14 -0
- package/templates/frontend/react-ssr/src/app/page.tsx +331 -0
- package/templates/frontend/react-ssr/src/app/proyectos/page.tsx +178 -0
- package/templates/frontend/react-ssr/src/auth.ts +64 -0
- package/templates/frontend/react-ssr/src/components/layout/navbar.tsx +68 -0
- package/templates/frontend/react-ssr/src/components/layout/sidebar.tsx +109 -0
- package/templates/frontend/react-ssr/src/components/layout/sign-out-button.tsx +16 -0
- package/templates/frontend/react-ssr/src/components/providers.tsx +33 -0
- package/templates/frontend/react-ssr/src/components/ui/avatar.tsx +53 -0
- package/templates/frontend/react-ssr/src/components/ui/badge.tsx +42 -0
- package/templates/frontend/react-ssr/src/components/ui/breadcrumb.tsx +114 -0
- package/templates/frontend/react-ssr/src/components/ui/button.tsx +58 -0
- package/templates/frontend/react-ssr/src/components/ui/card.tsx +95 -0
- package/templates/frontend/react-ssr/src/components/ui/dialog.tsx +136 -0
- package/templates/frontend/react-ssr/src/components/ui/form.tsx +168 -0
- package/templates/frontend/react-ssr/src/components/ui/input.tsx +22 -0
- package/templates/frontend/react-ssr/src/components/ui/label.tsx +26 -0
- package/templates/frontend/react-ssr/src/components/ui/password-input.tsx +43 -0
- package/templates/frontend/react-ssr/src/components/ui/separator.tsx +30 -0
- package/templates/frontend/react-ssr/src/components/ui/table.tsx +240 -0
- package/templates/frontend/react-ssr/src/components/ui/tabs.tsx +76 -0
- package/templates/frontend/react-ssr/src/components/ui/textarea.tsx +21 -0
- package/templates/frontend/react-ssr/src/data/dashboard.ts +179 -0
- package/templates/frontend/react-ssr/src/hooks/useLocalStorage.ts +38 -0
- package/templates/frontend/react-ssr/src/lib/prisma.ts +24 -0
- package/templates/frontend/react-ssr/src/lib/queryClient.ts +25 -0
- package/templates/frontend/react-ssr/src/lib/utils.ts +6 -0
- package/templates/frontend/react-ssr/src/proxy.ts +31 -0
- package/templates/frontend/react-ssr/src/test/mocks/next-navigation.ts +16 -0
- package/templates/frontend/react-ssr/src/test/setup.ts +1 -0
- package/templates/frontend/react-ssr/src/test/utils.tsx +30 -0
- package/templates/frontend/react-ssr/src/types/index.ts +36 -0
- package/templates/frontend/react-ssr/tsconfig.json +41 -0
- package/templates/frontend/react-ssr/vitest.config.ts +41 -0
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
# Data Display Components
|
|
2
|
+
|
|
3
|
+
## Table of Contents
|
|
4
|
+
- [Avatar](#avatar)
|
|
5
|
+
- [Badge](#badge)
|
|
6
|
+
- [Card](#card)
|
|
7
|
+
- [Carousel](#carousel)
|
|
8
|
+
- [Chat](#chat)
|
|
9
|
+
- [Countdown](#countdown)
|
|
10
|
+
- [Diff](#diff)
|
|
11
|
+
- [Hover 3D](#hover-3d)
|
|
12
|
+
- [Hover Gallery](#hover-gallery)
|
|
13
|
+
- [List](#list)
|
|
14
|
+
- [Stat](#stat)
|
|
15
|
+
- [Table](#table)
|
|
16
|
+
- [Text Rotate](#text-rotate)
|
|
17
|
+
- [Timeline](#timeline)
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Avatar
|
|
22
|
+
|
|
23
|
+
Shows a thumbnail representation of a user.
|
|
24
|
+
|
|
25
|
+
**Classes:** `avatar`, `avatar-group` | modifier: `avatar-online`, `avatar-offline`, `avatar-placeholder`
|
|
26
|
+
|
|
27
|
+
```html
|
|
28
|
+
<div class="avatar avatar-online">
|
|
29
|
+
<div class="w-12 rounded-full">
|
|
30
|
+
<img src="https://picsum.photos/200/200" />
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
<!-- Avatar group -->
|
|
35
|
+
<div class="avatar-group -space-x-6">
|
|
36
|
+
<div class="avatar"><div class="w-12"><img src="https://picsum.photos/200/200" /></div></div>
|
|
37
|
+
<div class="avatar"><div class="w-12"><img src="https://picsum.photos/200/200" /></div></div>
|
|
38
|
+
<div class="avatar avatar-placeholder"><div class="bg-neutral text-neutral-content w-12"><span>+5</span></div></div>
|
|
39
|
+
</div>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Use mask classes: `mask-squircle`, `mask-hexagon`, `mask-triangle`. Set size with `w-*`/`h-*`.
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Badge
|
|
47
|
+
|
|
48
|
+
Informs users of status or counts.
|
|
49
|
+
|
|
50
|
+
**Classes:** `badge` | style: `badge-outline`, `badge-dash`, `badge-soft`, `badge-ghost` | color: `badge-neutral`, `badge-primary`, `badge-secondary`, `badge-accent`, `badge-info`, `badge-success`, `badge-warning`, `badge-error` | size: `badge-xs`..`badge-xl`
|
|
51
|
+
|
|
52
|
+
```html
|
|
53
|
+
<span class="badge">Default</span>
|
|
54
|
+
<span class="badge badge-primary">Primary</span>
|
|
55
|
+
<span class="badge badge-outline badge-success badge-lg">Success</span>
|
|
56
|
+
<span class="badge badge-soft badge-error badge-sm">Error</span>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Can be used inside text or buttons. Remove text for an empty badge dot.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Card
|
|
64
|
+
|
|
65
|
+
Groups and displays content in a container.
|
|
66
|
+
|
|
67
|
+
**Classes:** `card` | part: `card-title`, `card-body`, `card-actions` | style: `card-border`, `card-dash` | modifier: `card-side`, `image-full` | size: `card-xs`..`card-xl`
|
|
68
|
+
|
|
69
|
+
```html
|
|
70
|
+
<div class="card bg-base-100 shadow-sm w-96">
|
|
71
|
+
<figure><img src="https://picsum.photos/400/200" alt="Cover" /></figure>
|
|
72
|
+
<div class="card-body">
|
|
73
|
+
<h2 class="card-title">Card Title</h2>
|
|
74
|
+
<p>Card description goes here.</p>
|
|
75
|
+
<div class="card-actions justify-end">
|
|
76
|
+
<button class="btn btn-primary">Buy Now</button>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
|
|
81
|
+
<!-- Horizontal responsive card -->
|
|
82
|
+
<div class="card sm:card-horizontal bg-base-100 shadow-sm">
|
|
83
|
+
<figure><img src="https://picsum.photos/200/200" alt="Cover" /></figure>
|
|
84
|
+
<div class="card-body">
|
|
85
|
+
<h2 class="card-title">Side Card</h2>
|
|
86
|
+
<p>Content here.</p>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Use `sm:card-horizontal` for responsive side layout. Image after `card-body` places it at the bottom.
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## Carousel
|
|
96
|
+
|
|
97
|
+
Scrollable area for images or content.
|
|
98
|
+
|
|
99
|
+
**Classes:** `carousel` | part: `carousel-item` | modifier: `carousel-start`, `carousel-center`, `carousel-end` | direction: `carousel-horizontal`, `carousel-vertical`
|
|
100
|
+
|
|
101
|
+
```html
|
|
102
|
+
<div class="carousel carousel-center rounded-box">
|
|
103
|
+
<div class="carousel-item"><img src="https://picsum.photos/400/300" /></div>
|
|
104
|
+
<div class="carousel-item"><img src="https://picsum.photos/400/300" /></div>
|
|
105
|
+
<div class="carousel-item"><img src="https://picsum.photos/400/300" /></div>
|
|
106
|
+
</div>
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Add `w-full` to each item for full-width slides.
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## Chat
|
|
114
|
+
|
|
115
|
+
Chat bubbles for conversations.
|
|
116
|
+
|
|
117
|
+
**Classes:** `chat` | part: `chat-image`, `chat-header`, `chat-footer`, `chat-bubble` | placement: `chat-start`, `chat-end` | color: `chat-bubble-neutral`, `chat-bubble-primary`, `chat-bubble-secondary`, `chat-bubble-accent`, `chat-bubble-info`, `chat-bubble-success`, `chat-bubble-warning`, `chat-bubble-error`
|
|
118
|
+
|
|
119
|
+
```html
|
|
120
|
+
<div class="chat chat-start">
|
|
121
|
+
<div class="chat-image avatar">
|
|
122
|
+
<div class="w-10 rounded-full"><img src="https://picsum.photos/100/100" /></div>
|
|
123
|
+
</div>
|
|
124
|
+
<div class="chat-header">Alice <time class="text-xs opacity-50">12:45</time></div>
|
|
125
|
+
<div class="chat-bubble">Hello!</div>
|
|
126
|
+
<div class="chat-footer opacity-50">Delivered</div>
|
|
127
|
+
</div>
|
|
128
|
+
<div class="chat chat-end">
|
|
129
|
+
<div class="chat-bubble chat-bubble-primary">Hi there!</div>
|
|
130
|
+
</div>
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Placement (`chat-start` or `chat-end`) is required.
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## Countdown
|
|
138
|
+
|
|
139
|
+
Animated number transitions (0-999).
|
|
140
|
+
|
|
141
|
+
**Classes:** `countdown`
|
|
142
|
+
|
|
143
|
+
```html
|
|
144
|
+
<span class="countdown font-mono text-6xl">
|
|
145
|
+
<span style="--value:12;"></span>h
|
|
146
|
+
<span style="--value:34;"></span>m
|
|
147
|
+
<span style="--value:56;"></span>s
|
|
148
|
+
</span>
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
Update `--value` and text via JS. Add `aria-live="polite"` for accessibility.
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## Diff
|
|
156
|
+
|
|
157
|
+
Side-by-side comparison with draggable divider.
|
|
158
|
+
|
|
159
|
+
**Classes:** `diff` | part: `diff-item-1`, `diff-item-2`, `diff-resizer`
|
|
160
|
+
|
|
161
|
+
```html
|
|
162
|
+
<figure class="diff aspect-16/9">
|
|
163
|
+
<div class="diff-item-1"><img src="https://picsum.photos/600/400" /></div>
|
|
164
|
+
<div class="diff-item-2"><img src="https://picsum.photos/600/400" /></div>
|
|
165
|
+
<div class="diff-resizer"></div>
|
|
166
|
+
</figure>
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## Hover 3D
|
|
172
|
+
|
|
173
|
+
Wrapper that adds interactive 3D tilt on hover.
|
|
174
|
+
|
|
175
|
+
**Classes:** `hover-3d`
|
|
176
|
+
|
|
177
|
+
```html
|
|
178
|
+
<div class="hover-3d my-12 mx-2">
|
|
179
|
+
<figure class="max-w-100 rounded-2xl">
|
|
180
|
+
<img src="https://picsum.photos/400/250" alt="3D card" />
|
|
181
|
+
</figure>
|
|
182
|
+
<div></div><div></div><div></div><div></div>
|
|
183
|
+
<div></div><div></div><div></div><div></div>
|
|
184
|
+
</div>
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
**Rules:**
|
|
188
|
+
- Must have exactly 9 children: content + 8 empty divs for hover zones
|
|
189
|
+
- Content must be non-interactive (no buttons, links, inputs)
|
|
190
|
+
- Can be `<div>` or `<a>` for linking
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## Hover Gallery
|
|
195
|
+
|
|
196
|
+
Shows multiple images on horizontal hover. Good for product cards.
|
|
197
|
+
|
|
198
|
+
**Classes:** `hover-gallery`
|
|
199
|
+
|
|
200
|
+
```html
|
|
201
|
+
<figure class="hover-gallery max-w-60">
|
|
202
|
+
<img src="https://picsum.photos/300/300?1" />
|
|
203
|
+
<img src="https://picsum.photos/300/300?2" />
|
|
204
|
+
<img src="https://picsum.photos/300/300?3" />
|
|
205
|
+
</figure>
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
Up to 10 images. Needs `max-w-*`. Images must be same dimensions.
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## List
|
|
213
|
+
|
|
214
|
+
Vertical layout for data rows.
|
|
215
|
+
|
|
216
|
+
**Classes:** `list`, `list-row` | modifier: `list-col-wrap`, `list-col-grow`
|
|
217
|
+
|
|
218
|
+
```html
|
|
219
|
+
<ul class="list bg-base-100 rounded-box shadow-md">
|
|
220
|
+
<li class="list-row">
|
|
221
|
+
<div><img class="size-10 rounded-box" src="https://picsum.photos/100/100" /></div>
|
|
222
|
+
<div>
|
|
223
|
+
<div>Title</div>
|
|
224
|
+
<div class="text-xs uppercase font-semibold opacity-60">Subtitle</div>
|
|
225
|
+
</div>
|
|
226
|
+
<button class="btn btn-square btn-ghost">...</button>
|
|
227
|
+
</li>
|
|
228
|
+
</ul>
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
Second child fills remaining space by default. Use `list-col-grow` to change which child grows.
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## Stat
|
|
236
|
+
|
|
237
|
+
Displays numbers and data in blocks.
|
|
238
|
+
|
|
239
|
+
**Classes:** `stats` | part: `stat`, `stat-title`, `stat-value`, `stat-desc`, `stat-figure`, `stat-actions` | direction: `stats-horizontal`, `stats-vertical`
|
|
240
|
+
|
|
241
|
+
```html
|
|
242
|
+
<div class="stats shadow">
|
|
243
|
+
<div class="stat">
|
|
244
|
+
<div class="stat-figure text-primary"><svg><!-- icon --></svg></div>
|
|
245
|
+
<div class="stat-title">Total Revenue</div>
|
|
246
|
+
<div class="stat-value text-primary">$25.6K</div>
|
|
247
|
+
<div class="stat-desc">21% more than last month</div>
|
|
248
|
+
</div>
|
|
249
|
+
<div class="stat">
|
|
250
|
+
<div class="stat-title">Users</div>
|
|
251
|
+
<div class="stat-value">4,200</div>
|
|
252
|
+
<div class="stat-desc text-secondary">↗ 40 (2%)</div>
|
|
253
|
+
</div>
|
|
254
|
+
</div>
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
Horizontal by default. Use `stats-vertical` for vertical layout.
|
|
258
|
+
|
|
259
|
+
---
|
|
260
|
+
|
|
261
|
+
## Table
|
|
262
|
+
|
|
263
|
+
Data in tabular format.
|
|
264
|
+
|
|
265
|
+
**Classes:** `table` | modifier: `table-zebra`, `table-pin-rows`, `table-pin-cols` | size: `table-xs`..`table-xl`
|
|
266
|
+
|
|
267
|
+
```html
|
|
268
|
+
<div class="overflow-x-auto">
|
|
269
|
+
<table class="table table-zebra">
|
|
270
|
+
<thead>
|
|
271
|
+
<tr><th>#</th><th>Name</th><th>Email</th></tr>
|
|
272
|
+
</thead>
|
|
273
|
+
<tbody>
|
|
274
|
+
<tr><th>1</th><td>Alice</td><td>alice@example.com</td></tr>
|
|
275
|
+
<tr><th>2</th><td>Bob</td><td>bob@example.com</td></tr>
|
|
276
|
+
</tbody>
|
|
277
|
+
</table>
|
|
278
|
+
</div>
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
Always wrap in `overflow-x-auto` for horizontal scroll on small screens.
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
## Text Rotate
|
|
286
|
+
|
|
287
|
+
Animated text rotation showing 2-6 lines in a loop (10s default).
|
|
288
|
+
|
|
289
|
+
**Classes:** `text-rotate`
|
|
290
|
+
|
|
291
|
+
```html
|
|
292
|
+
<!-- Standalone rotating words -->
|
|
293
|
+
<span class="text-rotate text-4xl font-bold">
|
|
294
|
+
<span class="justify-items-center">
|
|
295
|
+
<span>DESIGN</span>
|
|
296
|
+
<span>DEVELOP</span>
|
|
297
|
+
<span>DEPLOY</span>
|
|
298
|
+
</span>
|
|
299
|
+
</span>
|
|
300
|
+
|
|
301
|
+
<!-- Inline rotating words with colors -->
|
|
302
|
+
<span>
|
|
303
|
+
We build for
|
|
304
|
+
<span class="text-rotate">
|
|
305
|
+
<span>
|
|
306
|
+
<span class="bg-teal-400 text-teal-800 px-2">Designers</span>
|
|
307
|
+
<span class="bg-red-400 text-red-800 px-2">Developers</span>
|
|
308
|
+
<span class="bg-blue-400 text-blue-800 px-2">Managers</span>
|
|
309
|
+
</span>
|
|
310
|
+
</span>
|
|
311
|
+
</span>
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
Custom duration: `duration-12000` (ms). Custom line height: `leading-[2]`. Pauses on hover.
|
|
315
|
+
|
|
316
|
+
---
|
|
317
|
+
|
|
318
|
+
## Timeline
|
|
319
|
+
|
|
320
|
+
Chronological list of events.
|
|
321
|
+
|
|
322
|
+
**Classes:** `timeline` | part: `timeline-start`, `timeline-middle`, `timeline-end` | modifier: `timeline-snap-icon`, `timeline-box`, `timeline-compact` | direction: `timeline-vertical`, `timeline-horizontal`
|
|
323
|
+
|
|
324
|
+
```html
|
|
325
|
+
<ul class="timeline timeline-vertical">
|
|
326
|
+
<li>
|
|
327
|
+
<div class="timeline-start">2023</div>
|
|
328
|
+
<div class="timeline-middle"><svg><!-- icon --></svg></div>
|
|
329
|
+
<div class="timeline-end timeline-box">First event</div>
|
|
330
|
+
<hr class="bg-primary" />
|
|
331
|
+
</li>
|
|
332
|
+
<li>
|
|
333
|
+
<hr class="bg-primary" />
|
|
334
|
+
<div class="timeline-start">2024</div>
|
|
335
|
+
<div class="timeline-middle"><svg><!-- icon --></svg></div>
|
|
336
|
+
<div class="timeline-end timeline-box">Second event</div>
|
|
337
|
+
</li>
|
|
338
|
+
</ul>
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
Use `timeline-compact` to force all items on one side. Use `data-content` on `<li>` for step indicators.
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
# Feedback & Overlay Components
|
|
2
|
+
|
|
3
|
+
## Table of Contents
|
|
4
|
+
- [Alert](#alert)
|
|
5
|
+
- [Loading](#loading)
|
|
6
|
+
- [Modal](#modal)
|
|
7
|
+
- [Progress](#progress)
|
|
8
|
+
- [Radial Progress](#radial-progress)
|
|
9
|
+
- [Skeleton](#skeleton)
|
|
10
|
+
- [Status](#status)
|
|
11
|
+
- [Steps](#steps)
|
|
12
|
+
- [Swap](#swap)
|
|
13
|
+
- [Tab](#tab)
|
|
14
|
+
- [Toast](#toast)
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Alert
|
|
19
|
+
|
|
20
|
+
Informs users about important events.
|
|
21
|
+
|
|
22
|
+
**Classes:** `alert` | style: `alert-outline`, `alert-dash`, `alert-soft` | color: `alert-info`, `alert-success`, `alert-warning`, `alert-error` | direction: `alert-vertical`, `alert-horizontal`
|
|
23
|
+
|
|
24
|
+
```html
|
|
25
|
+
<div role="alert" class="alert alert-info sm:alert-horizontal">
|
|
26
|
+
<svg><!-- info icon --></svg>
|
|
27
|
+
<span>New update available.</span>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<div role="alert" class="alert alert-soft alert-error">
|
|
31
|
+
<span>Something went wrong!</span>
|
|
32
|
+
</div>
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Add `sm:alert-horizontal` for responsive layouts.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Loading
|
|
40
|
+
|
|
41
|
+
Animated loading indicators.
|
|
42
|
+
|
|
43
|
+
**Classes:** `loading` | style: `loading-spinner`, `loading-dots`, `loading-ring`, `loading-ball`, `loading-bars`, `loading-infinity` | size: `loading-xs`..`loading-xl`
|
|
44
|
+
|
|
45
|
+
```html
|
|
46
|
+
<span class="loading loading-spinner loading-lg"></span>
|
|
47
|
+
<span class="loading loading-dots loading-md text-primary"></span>
|
|
48
|
+
<span class="loading loading-bars loading-sm text-secondary"></span>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Modal
|
|
54
|
+
|
|
55
|
+
Dialog box triggered by button click.
|
|
56
|
+
|
|
57
|
+
**Classes:** `modal` | part: `modal-box`, `modal-action`, `modal-backdrop`, `modal-toggle` | modifier: `modal-open` | placement: `modal-top`, `modal-middle`, `modal-bottom`, `modal-start`, `modal-end`
|
|
58
|
+
|
|
59
|
+
### Using HTML dialog (recommended)
|
|
60
|
+
```html
|
|
61
|
+
<button class="btn" onclick="my_modal.showModal()">Open Modal</button>
|
|
62
|
+
<dialog id="my_modal" class="modal">
|
|
63
|
+
<div class="modal-box">
|
|
64
|
+
<h3 class="text-lg font-bold">Hello!</h3>
|
|
65
|
+
<p class="py-4">Modal content here.</p>
|
|
66
|
+
<div class="modal-action">
|
|
67
|
+
<form method="dialog">
|
|
68
|
+
<button class="btn">Close</button>
|
|
69
|
+
</form>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
<form method="dialog" class="modal-backdrop"><button>close</button></form>
|
|
73
|
+
</dialog>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Using checkbox
|
|
77
|
+
```html
|
|
78
|
+
<label for="my-modal" class="btn">Open</label>
|
|
79
|
+
<input type="checkbox" id="my-modal" class="modal-toggle" />
|
|
80
|
+
<div class="modal">
|
|
81
|
+
<div class="modal-box">
|
|
82
|
+
<h3 class="text-lg font-bold">Title</h3>
|
|
83
|
+
<p class="py-4">Content</p>
|
|
84
|
+
</div>
|
|
85
|
+
<label class="modal-backdrop" for="my-modal">Close</label>
|
|
86
|
+
</div>
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Use unique IDs for each modal. Use `<form method="dialog">` for close buttons with dialog element.
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## Progress
|
|
94
|
+
|
|
95
|
+
Linear progress bar.
|
|
96
|
+
|
|
97
|
+
**Classes:** `progress` | color: `progress-neutral`, `progress-primary`, `progress-secondary`, `progress-accent`, `progress-info`, `progress-success`, `progress-warning`, `progress-error`
|
|
98
|
+
|
|
99
|
+
```html
|
|
100
|
+
<progress class="progress progress-primary w-56" value="70" max="100"></progress>
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
`value` and `max` are required.
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## Radial Progress
|
|
108
|
+
|
|
109
|
+
Circular progress indicator.
|
|
110
|
+
|
|
111
|
+
**Classes:** `radial-progress`
|
|
112
|
+
|
|
113
|
+
```html
|
|
114
|
+
<div class="radial-progress text-primary" style="--value:70;" aria-valuenow="70" role="progressbar">70%</div>
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
`--value` must be 0-100. Use `--size` (default 5rem) and `--thickness` for customization. Add `aria-valuenow` for accessibility.
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## Skeleton
|
|
122
|
+
|
|
123
|
+
Loading placeholder.
|
|
124
|
+
|
|
125
|
+
**Classes:** `skeleton` | modifier: `skeleton-text`
|
|
126
|
+
|
|
127
|
+
```html
|
|
128
|
+
<div class="flex flex-col gap-4 w-52">
|
|
129
|
+
<div class="skeleton h-32 w-full"></div>
|
|
130
|
+
<div class="skeleton skeleton-text h-4 w-28"></div>
|
|
131
|
+
<div class="skeleton skeleton-text h-4 w-full"></div>
|
|
132
|
+
<div class="skeleton skeleton-text h-4 w-full"></div>
|
|
133
|
+
</div>
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
Set dimensions with `h-*` and `w-*`.
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
## Status
|
|
141
|
+
|
|
142
|
+
Small status indicator dot.
|
|
143
|
+
|
|
144
|
+
**Classes:** `status` | color: `status-neutral`, `status-primary`, `status-secondary`, `status-accent`, `status-info`, `status-success`, `status-warning`, `status-error` | size: `status-xs`..`status-xl`
|
|
145
|
+
|
|
146
|
+
```html
|
|
147
|
+
<span class="status status-success"></span>
|
|
148
|
+
<span class="status status-error status-lg"></span>
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## Steps
|
|
154
|
+
|
|
155
|
+
Shows progress through a multi-step process.
|
|
156
|
+
|
|
157
|
+
**Classes:** `steps` | part: `step`, `step-icon` | color: `step-neutral`, `step-primary`, `step-secondary`, `step-accent`, `step-info`, `step-success`, `step-warning`, `step-error` | direction: `steps-vertical`, `steps-horizontal`
|
|
158
|
+
|
|
159
|
+
```html
|
|
160
|
+
<ul class="steps">
|
|
161
|
+
<li class="step step-primary">Register</li>
|
|
162
|
+
<li class="step step-primary">Choose plan</li>
|
|
163
|
+
<li class="step">Purchase</li>
|
|
164
|
+
<li class="step">Receive</li>
|
|
165
|
+
</ul>
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
Color class marks step as completed/active. Use `data-content="value"` on `<li>` for custom step indicators.
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## Swap
|
|
173
|
+
|
|
174
|
+
Toggles visibility between two elements.
|
|
175
|
+
|
|
176
|
+
**Classes:** `swap` | part: `swap-on`, `swap-off`, `swap-indeterminate` | modifier: `swap-active` | style: `swap-rotate`, `swap-flip`
|
|
177
|
+
|
|
178
|
+
```html
|
|
179
|
+
<!-- Checkbox-controlled -->
|
|
180
|
+
<label class="swap swap-rotate text-4xl">
|
|
181
|
+
<input type="checkbox" />
|
|
182
|
+
<div class="swap-on">🌙</div>
|
|
183
|
+
<div class="swap-off">☀️</div>
|
|
184
|
+
</label>
|
|
185
|
+
|
|
186
|
+
<!-- JS-controlled -->
|
|
187
|
+
<div class="swap swap-flip">
|
|
188
|
+
<div class="swap-on">ON</div>
|
|
189
|
+
<div class="swap-off">OFF</div>
|
|
190
|
+
</div>
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
Toggle state via hidden checkbox or by adding/removing `swap-active` class with JS.
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
## Tab
|
|
198
|
+
|
|
199
|
+
Tabbed navigation/content.
|
|
200
|
+
|
|
201
|
+
**Classes:** `tabs` | part: `tab`, `tab-content` | style: `tabs-box`, `tabs-border`, `tabs-lift` | modifier: `tab-active`, `tab-disabled` | placement: `tabs-top`, `tabs-bottom`
|
|
202
|
+
|
|
203
|
+
### Button tabs (navigation only)
|
|
204
|
+
```html
|
|
205
|
+
<div role="tablist" class="tabs tabs-border">
|
|
206
|
+
<button role="tab" class="tab">Tab 1</button>
|
|
207
|
+
<button role="tab" class="tab tab-active">Tab 2</button>
|
|
208
|
+
<button role="tab" class="tab">Tab 3</button>
|
|
209
|
+
</div>
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
### Radio tabs with content
|
|
213
|
+
```html
|
|
214
|
+
<div role="tablist" class="tabs tabs-lift">
|
|
215
|
+
<input type="radio" name="my_tabs" role="tab" class="tab" aria-label="Tab 1" />
|
|
216
|
+
<div role="tabpanel" class="tab-content p-6">Tab 1 content</div>
|
|
217
|
+
<input type="radio" name="my_tabs" role="tab" class="tab" aria-label="Tab 2" checked />
|
|
218
|
+
<div role="tabpanel" class="tab-content p-6">Tab 2 content</div>
|
|
219
|
+
</div>
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
Radio inputs required for tab content switching.
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## Toast
|
|
227
|
+
|
|
228
|
+
Fixed-position notification wrapper.
|
|
229
|
+
|
|
230
|
+
**Classes:** `toast` | placement: `toast-start`, `toast-center`, `toast-end`, `toast-top`, `toast-middle`, `toast-bottom`
|
|
231
|
+
|
|
232
|
+
```html
|
|
233
|
+
<div class="toast toast-end">
|
|
234
|
+
<div class="alert alert-info"><span>New message arrived.</span></div>
|
|
235
|
+
</div>
|
|
236
|
+
|
|
237
|
+
<div class="toast toast-top toast-center">
|
|
238
|
+
<div class="alert alert-success"><span>Saved!</span></div>
|
|
239
|
+
</div>
|
|
240
|
+
```
|