feat(components): add basic components
Some checks failed
Publish package / build_and_publish (push) Failing after 21s

This commit is contained in:
Alexander Navarro 2024-10-25 18:40:50 -03:00
parent ee567abf6b
commit d4a11146aa
11 changed files with 174 additions and 4 deletions

View file

@ -16,6 +16,7 @@
},
"dependencies": {
"handlebars": "^4.7.8",
"mini-strap-core": "workspace:*"
"mini-strap-core": "workspace:*",
"mini-strap-components": "workspace:*"
}
}

View file

@ -3,8 +3,12 @@ import render from "./render";
import layout from "./templates/form.html";
import table from "./templates/table.html";
import offcanvas from "mini-strap-components/OffCanvas/template";
document.querySelector<HTMLDivElement>("#app")!.innerHTML = `
<aside>
${render(offcanvas, { name: "ale" })}
</aside>
<main class="msp-container">
<section>
${render(layout, { name: "ale" })}

View file

@ -1,3 +1,4 @@
import { resolve } from "path";
import { defineConfig } from "vite";
// https://vitejs.dev/config/
@ -23,4 +24,11 @@ export default defineConfig({
},
},
],
build: {
rollupOptions: {
input: {
main: resolve(__dirname, "index.html"),
},
},
},
});