create-bdpa-react-scaffold 1.3.1 → 1.4.2
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/create-ui-lib.js +15 -11
- package/package.json +1 -1
package/create-ui-lib.js
CHANGED
|
@@ -205,8 +205,8 @@ export { default as Modal } from "./components/ui/Modal.jsx";
|
|
|
205
205
|
export { default as Tabs } from "./components/ui/Tabs.jsx";
|
|
206
206
|
export { ToastProvider, useToast } from "./components/ui/ToastProvider.jsx";
|
|
207
207
|
|
|
208
|
-
export { default as Login } from "./
|
|
209
|
-
export { default as Register } from "./
|
|
208
|
+
export { default as Login } from "./pages/auth/Login.jsx";
|
|
209
|
+
export { default as Register } from "./pages/auth/Register.jsx";
|
|
210
210
|
|
|
211
211
|
export { default as Container } from "./components/layout/Container.jsx";
|
|
212
212
|
export { default as Section } from "./components/layout/Section.jsx";
|
|
@@ -269,7 +269,7 @@ function Dashboard() {
|
|
|
269
269
|
};
|
|
270
270
|
|
|
271
271
|
const tabs = [
|
|
272
|
-
{ label: "Overview", content: <p>Welcome to the UI Library demo.</p> },
|
|
272
|
+
{ label: "Overview", content: <p>Welcome to the BDPA React UI Library demo.</p> },
|
|
273
273
|
{ label: "Components", content: <p>Buttons, Cards, Inputs, Tables, and more.</p> },
|
|
274
274
|
{ label: "Auth", content: <p>Login + Registration pages included.</p> }
|
|
275
275
|
];
|
|
@@ -699,10 +699,10 @@ export function ToastProvider({ children }) {
|
|
|
699
699
|
// Auth Components
|
|
700
700
|
// -------------------------------
|
|
701
701
|
|
|
702
|
-
write("src/
|
|
703
|
-
import Button from "
|
|
704
|
-
import Input from "
|
|
705
|
-
import Card from "
|
|
702
|
+
write("src/pages/auth/Login.jsx", `
|
|
703
|
+
import Button from "../../components/ui/Button.jsx";
|
|
704
|
+
import Input from "../../components/ui/Input.jsx";
|
|
705
|
+
import Card from "../../components/ui/Card.jsx";
|
|
706
706
|
|
|
707
707
|
export default function Login({ onSubmit }) {
|
|
708
708
|
return (
|
|
@@ -728,10 +728,10 @@ export default function Login({ onSubmit }) {
|
|
|
728
728
|
);
|
|
729
729
|
}`);
|
|
730
730
|
|
|
731
|
-
write("src/
|
|
732
|
-
import Button from "
|
|
733
|
-
import Input from "
|
|
734
|
-
import Card from "
|
|
731
|
+
write("src/pages/auth/Register.jsx", `
|
|
732
|
+
import Button from "../../components/ui/Button.jsx";
|
|
733
|
+
import Input from "../../components/ui/Input.jsx";
|
|
734
|
+
import Card from "../../components/ui/Card.jsx";
|
|
735
735
|
|
|
736
736
|
export default function Register({ onSubmit }) {
|
|
737
737
|
return (
|
|
@@ -920,6 +920,10 @@ console.log("\nNext steps:");
|
|
|
920
920
|
console.log(" 1. npm run dev");
|
|
921
921
|
console.log(" 3. Open http://localhost:5173 in your browser\n");
|
|
922
922
|
|
|
923
|
+
// Create assets folder structure
|
|
924
|
+
fs.mkdirSync(path.join(BASE_DIR, "src/assets/images"), { recursive: true });
|
|
925
|
+
console.log("✔ Created: src/assets/images\n");
|
|
926
|
+
|
|
923
927
|
if (doInstall) {
|
|
924
928
|
installDependencies(packageManager, BASE_DIR);
|
|
925
929
|
} else {
|