@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.
Files changed (33) hide show
  1. package/dist/{chunk-O46XKBFM.js → chunk-3LZ6TLPC.js} +14 -24
  2. package/dist/chunk-3LZ6TLPC.js.map +1 -0
  3. package/dist/{chunk-ALOS2CBJ.cjs → chunk-3SPQ3J4N.cjs} +14 -24
  4. package/dist/chunk-3SPQ3J4N.cjs.map +1 -0
  5. package/dist/{chunk-EGFHFM4N.cjs → chunk-5APKEYFK.cjs} +5 -5
  6. package/dist/{chunk-EGFHFM4N.cjs.map → chunk-5APKEYFK.cjs.map} +1 -1
  7. package/dist/{chunk-UL32L2KV.cjs → chunk-BRPONFW6.cjs} +123 -3
  8. package/dist/chunk-BRPONFW6.cjs.map +1 -0
  9. package/dist/{chunk-SGGHTIWV.js → chunk-CQ2VMJQO.js} +228 -45
  10. package/dist/chunk-CQ2VMJQO.js.map +1 -0
  11. package/dist/{chunk-P2PTTBO5.js → chunk-RYQCT2IV.js} +3 -3
  12. package/dist/{chunk-P2PTTBO5.js.map → chunk-RYQCT2IV.js.map} +1 -1
  13. package/dist/{chunk-7G6XT62S.cjs → chunk-RZW752PE.cjs} +325 -142
  14. package/dist/chunk-RZW752PE.cjs.map +1 -0
  15. package/dist/{chunk-XJETEIRU.js → chunk-WKGONLHK.js} +123 -4
  16. package/dist/chunk-WKGONLHK.js.map +1 -0
  17. package/dist/index.cjs +58 -62
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.js +7 -11
  20. package/dist/index.js.map +1 -1
  21. package/dist/routes.cjs +23 -23
  22. package/dist/routes.js +3 -3
  23. package/dist/templates.cjs +18 -18
  24. package/dist/templates.js +2 -2
  25. package/dist/utils.cjs +11 -11
  26. package/dist/utils.js +1 -1
  27. package/package.json +1 -1
  28. package/dist/chunk-7G6XT62S.cjs.map +0 -1
  29. package/dist/chunk-ALOS2CBJ.cjs.map +0 -1
  30. package/dist/chunk-O46XKBFM.js.map +0 -1
  31. package/dist/chunk-SGGHTIWV.js.map +0 -1
  32. package/dist/chunk-UL32L2KV.cjs.map +0 -1
  33. package/dist/chunk-XJETEIRU.js.map +0 -1
@@ -75,12 +75,12 @@ function renderCatalystCheckbox(props) {
75
75
  const colorClasses = {
76
76
  "dark/zinc": "peer-checked:bg-zinc-900 peer-checked:before:bg-zinc-900 dark:peer-checked:bg-zinc-600",
77
77
  "dark/white": "peer-checked:bg-zinc-900 peer-checked:before:bg-zinc-900 dark:peer-checked:bg-white",
78
- "white": "peer-checked:bg-white peer-checked:before:bg-white",
79
- "dark": "peer-checked:bg-zinc-900 peer-checked:before:bg-zinc-900",
80
- "zinc": "peer-checked:bg-zinc-600 peer-checked:before:bg-zinc-600",
81
- "blue": "peer-checked:bg-blue-600 peer-checked:before:bg-blue-600",
82
- "green": "peer-checked:bg-green-600 peer-checked:before:bg-green-600",
83
- "red": "peer-checked:bg-red-600 peer-checked:before:bg-red-600"
78
+ white: "peer-checked:bg-white peer-checked:before:bg-white",
79
+ dark: "peer-checked:bg-zinc-900 peer-checked:before:bg-zinc-900",
80
+ zinc: "peer-checked:bg-zinc-600 peer-checked:before:bg-zinc-600",
81
+ blue: "peer-checked:bg-blue-600 peer-checked:before:bg-blue-600",
82
+ green: "peer-checked:bg-green-600 peer-checked:before:bg-green-600",
83
+ red: "peer-checked:bg-red-600 peer-checked:before:bg-red-600"
84
84
  };
85
85
  const checkColor = color === "dark/white" ? "dark:text-zinc-900" : "text-white";
86
86
  const baseClasses = `
@@ -518,13 +518,6 @@ function renderCatalystSidebar(currentPath = "", user, dynamicMenuItems, isMobil
518
518
  </svg>
519
519
  My Profile
520
520
  </a>
521
- <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">
522
- <svg class="h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
523
- <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"/>
524
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"/>
525
- </svg>
526
- Settings
527
- </a>
528
521
  <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">
529
522
  <svg class="h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
530
523
  <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"/>
@@ -1075,7 +1068,9 @@ function renderTable(data) {
1075
1068
  // src/templates/layouts/admin-layout-v2.template.ts
1076
1069
  init_logo_template();
1077
1070
  function renderAdminLayout(data) {
1078
- const { renderAdminLayoutCatalyst: renderAdminLayoutCatalyst2 } = (init_admin_layout_catalyst_template(), chunkIGJUBJBW_cjs.__toCommonJS(admin_layout_catalyst_template_exports));
1071
+ const {
1072
+ renderAdminLayoutCatalyst: renderAdminLayoutCatalyst2
1073
+ } = (init_admin_layout_catalyst_template(), chunkIGJUBJBW_cjs.__toCommonJS(admin_layout_catalyst_template_exports));
1079
1074
  return renderAdminLayoutCatalyst2(data);
1080
1075
  }
1081
1076
  function adminLayoutV2(data) {
@@ -1637,7 +1632,9 @@ function renderSidebar(currentPath, user, dynamicMenuItems) {
1637
1632
  ];
1638
1633
  const allMenuItems = [...baseMenuItems];
1639
1634
  if (dynamicMenuItems && dynamicMenuItems.length > 0) {
1640
- const usersIndex = allMenuItems.findIndex((item) => item.path === "/admin/users");
1635
+ const usersIndex = allMenuItems.findIndex(
1636
+ (item) => item.path === "/admin/users"
1637
+ );
1641
1638
  if (usersIndex !== -1) {
1642
1639
  allMenuItems.splice(usersIndex + 1, 0, ...dynamicMenuItems);
1643
1640
  } else {
@@ -1834,13 +1831,6 @@ function renderTopBar(pageTitle, user) {
1834
1831
  </svg>
1835
1832
  My Profile
1836
1833
  </a>
1837
- <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">
1838
- <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
1839
- <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"/>
1840
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"/>
1841
- </svg>
1842
- Settings
1843
- </a>
1844
1834
  <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">
1845
1835
  <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
1846
1836
  <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"/>
@@ -3701,5 +3691,5 @@ exports.renderLogo = renderLogo;
3701
3691
  exports.renderPagination = renderPagination;
3702
3692
  exports.renderTable = renderTable;
3703
3693
  exports.renderTestimonialsList = renderTestimonialsList;
3704
- //# sourceMappingURL=chunk-ALOS2CBJ.cjs.map
3705
- //# sourceMappingURL=chunk-ALOS2CBJ.cjs.map
3694
+ //# sourceMappingURL=chunk-3SPQ3J4N.cjs.map
3695
+ //# sourceMappingURL=chunk-3SPQ3J4N.cjs.map