create-middag-ui 0.21.0 → 0.22.0
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/cli.js +2 -2
- package/lib/scaffold.js +3 -3
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -238,13 +238,13 @@ if (isPro) {
|
|
|
238
238
|
scaffoldFreeRegister(targetDir);
|
|
239
239
|
scaffoldFreeAdapters(targetDir);
|
|
240
240
|
scaffoldFreeApp(targetDir);
|
|
241
|
-
success("FREE:
|
|
241
|
+
success("FREE: BasicShell + local Inertia adapters");
|
|
242
242
|
}
|
|
243
243
|
} else {
|
|
244
244
|
scaffoldFreeRegister(targetDir);
|
|
245
245
|
scaffoldFreeAdapters(targetDir);
|
|
246
246
|
scaffoldFreeApp(targetDir);
|
|
247
|
-
success("FREE:
|
|
247
|
+
success("FREE: BasicShell + local Inertia adapters");
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
// Host-specific production files (entry, vite config, theme CSS)
|
package/lib/scaffold.js
CHANGED
|
@@ -702,7 +702,7 @@ export const dashboardContract: PageContract = {
|
|
|
702
702
|
{ key: "user", label: "User", sortable: true },
|
|
703
703
|
{ key: "action", label: "Action" },
|
|
704
704
|
{ key: "date", label: "Date", sortable: true },
|
|
705
|
-
{ key: "status", label: "Status",
|
|
705
|
+
{ key: "status", label: "Status", type: "status" },
|
|
706
706
|
],
|
|
707
707
|
rows: [
|
|
708
708
|
{ id: 1, user: "Alice Johnson", action: "Completed module", date: "2024-01-15", status: { label: "Complete", appearance: "success" } },
|
|
@@ -1142,14 +1142,14 @@ export function scaffoldFreeApp(targetDir) {
|
|
|
1142
1142
|
if (!skipIfExists(mainPath, "src/main.tsx")) {
|
|
1143
1143
|
writeFile(mainPath, `import { StrictMode } from "react";
|
|
1144
1144
|
import { createRoot } from "react-dom/client";
|
|
1145
|
-
import { registerDefaults, registerShell,
|
|
1145
|
+
import { registerDefaults, registerShell, BasicShell } from "@middag-io/react";
|
|
1146
1146
|
import "@middag-io/react/style.css";
|
|
1147
1147
|
import "./theme.css";
|
|
1148
1148
|
import "@fontsource-variable/figtree";
|
|
1149
1149
|
import { App } from "./app";
|
|
1150
1150
|
|
|
1151
1151
|
registerDefaults();
|
|
1152
|
-
registerShell("product",
|
|
1152
|
+
registerShell("product", BasicShell);
|
|
1153
1153
|
|
|
1154
1154
|
createRoot(document.getElementById("root")!).render(
|
|
1155
1155
|
<StrictMode><App /></StrictMode>,
|