@sonicjs-cms/core 2.0.2 → 2.0.4
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/{chunk-O46XKBFM.js → chunk-3LZ6TLPC.js} +14 -24
- package/dist/chunk-3LZ6TLPC.js.map +1 -0
- package/dist/{chunk-ALOS2CBJ.cjs → chunk-3SPQ3J4N.cjs} +14 -24
- package/dist/chunk-3SPQ3J4N.cjs.map +1 -0
- package/dist/{chunk-EGFHFM4N.cjs → chunk-5APKEYFK.cjs} +5 -5
- package/dist/{chunk-EGFHFM4N.cjs.map → chunk-5APKEYFK.cjs.map} +1 -1
- package/dist/{chunk-UL32L2KV.cjs → chunk-BRPONFW6.cjs} +123 -3
- package/dist/chunk-BRPONFW6.cjs.map +1 -0
- package/dist/{chunk-SGGHTIWV.js → chunk-CQ2VMJQO.js} +228 -45
- package/dist/chunk-CQ2VMJQO.js.map +1 -0
- package/dist/{chunk-P2PTTBO5.js → chunk-RYQCT2IV.js} +3 -3
- package/dist/{chunk-P2PTTBO5.js.map → chunk-RYQCT2IV.js.map} +1 -1
- package/dist/{chunk-7G6XT62S.cjs → chunk-RZW752PE.cjs} +325 -142
- package/dist/chunk-RZW752PE.cjs.map +1 -0
- package/dist/{chunk-XJETEIRU.js → chunk-WKGONLHK.js} +123 -4
- package/dist/chunk-WKGONLHK.js.map +1 -0
- package/dist/index.cjs +58 -62
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -11
- package/dist/index.js.map +1 -1
- package/dist/routes.cjs +23 -23
- package/dist/routes.js +3 -3
- package/dist/templates.cjs +18 -18
- package/dist/templates.js +2 -2
- package/dist/utils.cjs +11 -11
- package/dist/utils.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-7G6XT62S.cjs.map +0 -1
- package/dist/chunk-ALOS2CBJ.cjs.map +0 -1
- package/dist/chunk-O46XKBFM.js.map +0 -1
- package/dist/chunk-SGGHTIWV.js.map +0 -1
- package/dist/chunk-UL32L2KV.cjs.map +0 -1
- package/dist/chunk-XJETEIRU.js.map +0 -1
|
@@ -73,12 +73,12 @@ function renderCatalystCheckbox(props) {
|
|
|
73
73
|
const colorClasses = {
|
|
74
74
|
"dark/zinc": "peer-checked:bg-zinc-900 peer-checked:before:bg-zinc-900 dark:peer-checked:bg-zinc-600",
|
|
75
75
|
"dark/white": "peer-checked:bg-zinc-900 peer-checked:before:bg-zinc-900 dark:peer-checked:bg-white",
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
76
|
+
white: "peer-checked:bg-white peer-checked:before:bg-white",
|
|
77
|
+
dark: "peer-checked:bg-zinc-900 peer-checked:before:bg-zinc-900",
|
|
78
|
+
zinc: "peer-checked:bg-zinc-600 peer-checked:before:bg-zinc-600",
|
|
79
|
+
blue: "peer-checked:bg-blue-600 peer-checked:before:bg-blue-600",
|
|
80
|
+
green: "peer-checked:bg-green-600 peer-checked:before:bg-green-600",
|
|
81
|
+
red: "peer-checked:bg-red-600 peer-checked:before:bg-red-600"
|
|
82
82
|
};
|
|
83
83
|
const checkColor = color === "dark/white" ? "dark:text-zinc-900" : "text-white";
|
|
84
84
|
const baseClasses = `
|
|
@@ -516,13 +516,6 @@ function renderCatalystSidebar(currentPath = "", user, dynamicMenuItems, isMobil
|
|
|
516
516
|
</svg>
|
|
517
517
|
My Profile
|
|
518
518
|
</a>
|
|
519
|
-
<a href="/admin/settings" class="flex items-center gap-2 rounded-lg px-3 py-2 text-sm text-zinc-950 hover:bg-zinc-950/5 dark:text-white dark:hover:bg-white/5">
|
|
520
|
-
<svg class="h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
521
|
-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"/>
|
|
522
|
-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"/>
|
|
523
|
-
</svg>
|
|
524
|
-
Settings
|
|
525
|
-
</a>
|
|
526
519
|
<a href="/auth/logout" class="flex items-center gap-2 rounded-lg px-3 py-2 text-sm text-red-600 hover:bg-red-50 dark:text-red-400 dark:hover:bg-red-500/10">
|
|
527
520
|
<svg class="h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
528
521
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"/>
|
|
@@ -1073,7 +1066,9 @@ function renderTable(data) {
|
|
|
1073
1066
|
// src/templates/layouts/admin-layout-v2.template.ts
|
|
1074
1067
|
init_logo_template();
|
|
1075
1068
|
function renderAdminLayout(data) {
|
|
1076
|
-
const {
|
|
1069
|
+
const {
|
|
1070
|
+
renderAdminLayoutCatalyst: renderAdminLayoutCatalyst2
|
|
1071
|
+
} = (init_admin_layout_catalyst_template(), __toCommonJS(admin_layout_catalyst_template_exports));
|
|
1077
1072
|
return renderAdminLayoutCatalyst2(data);
|
|
1078
1073
|
}
|
|
1079
1074
|
function adminLayoutV2(data) {
|
|
@@ -1635,7 +1630,9 @@ function renderSidebar(currentPath, user, dynamicMenuItems) {
|
|
|
1635
1630
|
];
|
|
1636
1631
|
const allMenuItems = [...baseMenuItems];
|
|
1637
1632
|
if (dynamicMenuItems && dynamicMenuItems.length > 0) {
|
|
1638
|
-
const usersIndex = allMenuItems.findIndex(
|
|
1633
|
+
const usersIndex = allMenuItems.findIndex(
|
|
1634
|
+
(item) => item.path === "/admin/users"
|
|
1635
|
+
);
|
|
1639
1636
|
if (usersIndex !== -1) {
|
|
1640
1637
|
allMenuItems.splice(usersIndex + 1, 0, ...dynamicMenuItems);
|
|
1641
1638
|
} else {
|
|
@@ -1832,13 +1829,6 @@ function renderTopBar(pageTitle, user) {
|
|
|
1832
1829
|
</svg>
|
|
1833
1830
|
My Profile
|
|
1834
1831
|
</a>
|
|
1835
|
-
<a href="/admin/settings" class="flex items-center gap-3 px-4 py-2 text-sm text-gray-300 hover:bg-white/10 hover:text-white transition-colors">
|
|
1836
|
-
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
1837
|
-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"/>
|
|
1838
|
-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"/>
|
|
1839
|
-
</svg>
|
|
1840
|
-
Settings
|
|
1841
|
-
</a>
|
|
1842
1832
|
<a href="/auth/logout" class="flex items-center gap-3 px-4 py-2 text-sm text-red-300 hover:bg-red-500/10 hover:text-red-200 transition-colors">
|
|
1843
1833
|
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
1844
1834
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"/>
|
|
@@ -3682,5 +3672,5 @@ function renderFormField(field) {
|
|
|
3682
3672
|
}
|
|
3683
3673
|
|
|
3684
3674
|
export { adminLayoutV2, getConfirmationDialogScript, init_admin_layout_catalyst_template, init_logo_template, renderAdminLayout, renderAdminLayoutCatalyst, renderAlert, renderCheckboxPage, renderCodeExamplesList, renderConfirmationDialog, renderDesignPage, renderFAQList, renderForm, renderFormField, renderLogo, renderPagination, renderTable, renderTestimonialsList };
|
|
3685
|
-
//# sourceMappingURL=chunk-
|
|
3686
|
-
//# sourceMappingURL=chunk-
|
|
3675
|
+
//# sourceMappingURL=chunk-3LZ6TLPC.js.map
|
|
3676
|
+
//# sourceMappingURL=chunk-3LZ6TLPC.js.map
|