create-prisma-php-app 5.1.0-alpha.13 → 5.1.0-alpha.14
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/src/app/layout.php
CHANGED
|
@@ -15,7 +15,7 @@ MainLayout::$description = !empty(MainLayout::$description) ? MainLayout::$descr
|
|
|
15
15
|
<!-- Dynamic Header Scripts -->
|
|
16
16
|
</head>
|
|
17
17
|
|
|
18
|
-
<body
|
|
18
|
+
<body style="opacity:0;pointer-events:none;user-select:none;transition:opacity .18s ease-out;">
|
|
19
19
|
<?= MainLayout::$children; ?>
|
|
20
20
|
<!-- Dynamic Footer Scripts -->
|
|
21
21
|
</body>
|
package/dist/ts/main.ts
CHANGED
|
@@ -11,17 +11,14 @@ import "/js/pp-reactive-v2.js";
|
|
|
11
11
|
|
|
12
12
|
// createGlobalSingleton("myCustomFunction", myCustomFunction);
|
|
13
13
|
|
|
14
|
-
|
|
15
14
|
// Imports goes here --End
|
|
16
15
|
|
|
17
16
|
const pp = (globalThis as any).pp;
|
|
18
17
|
|
|
19
18
|
if (document.readyState !== "loading") {
|
|
20
|
-
|
|
19
|
+
pp?.mount?.();
|
|
21
20
|
} else {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
);
|
|
27
|
-
}
|
|
21
|
+
document.addEventListener("DOMContentLoaded", () => pp?.mount?.(), {
|
|
22
|
+
once: true,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { twMerge } from "tailwind-merge";
|
|
2
|
+
|
|
3
|
+
export type MergeableClassName = string | false | null | undefined;
|
|
4
|
+
|
|
5
|
+
export function mergeTailwindClasses(
|
|
6
|
+
...classNames: MergeableClassName[]
|
|
7
|
+
): string {
|
|
8
|
+
return twMerge(
|
|
9
|
+
classNames
|
|
10
|
+
.filter((className): className is string => Boolean(className))
|
|
11
|
+
.join(" "),
|
|
12
|
+
);
|
|
13
|
+
}
|