import { html, $ } from "sigpro"; import buttonsPage from "./pages/buttons.js"; import inputPage from "./pages/input.js"; import checkboxPage from "./pages/checkbox.js"; import "@components/Drawer.js"; import "@components/Menu.js"; // Configuración de rutas const routes = [ { path: "/", component: () => buttonsPage() }, { path: "/buttons", component: () => buttonsPage() }, { path: "/input", component: () => inputPage() }, { path: "/checkbox", component: () => checkboxPage() }, ]; export default function App() { const openMenu = $(false); const menuConfig = [ { label: "Buttons", icon: "icon-[lucide--square]", href: "#/buttons" }, { label: "Forms", icon: "icon-[lucide--form-input]", open: false, sub: [ { label: "Input", href: "#/input" }, { label: "Checkbox", href: "#/checkbox" }, { label: "Radio", href: "#/radio" }, { label: "Range", href: "#/range" }, { label: "Rating", href: "#/rating" }, { label: "Color Picker", href: "#/colorpicker" }, { label: "Date Picker", href: "#/datepicker" }, ], }, { label: "Display", icon: "icon-[lucide--layout]", open: false, sub: [ { label: "Card", href: "#/card" }, { label: "Tabs", href: "#/tabs" }, { label: "Loading", href: "#/loading" }, ], }, { label: "Feedback", icon: "icon-[lucide--message-circle]", open: false, sub: [ { label: "Toast", href: "#/toast" }, { label: "Dialog", href: "#/dialog" }, { label: "FAB", href: "#/fab" }, { label: "Dropdown", href: "#/dropdown" }, ], }, { label: "About", icon: "icon-[lucide--info]", href: "#/about" }, ]; return html`
openMenu(false)}> openMenu(false)}>
${$.router(routes)}
`; }