@studiocubics/cms 0.0.1 → 0.0.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/dist/clerk/actions/invitations.d.ts +6 -0
- package/dist/clerk/actions/invitations.js +59 -0
- package/dist/clerk/actions/invitations.js.map +1 -0
- package/dist/clerk/actions/systemUsers.d.ts +8 -0
- package/dist/clerk/actions/systemUsers.js +64 -0
- package/dist/clerk/actions/systemUsers.js.map +1 -0
- package/dist/clerk/auth.d.ts +8 -0
- package/dist/clerk/auth.js +21 -0
- package/dist/clerk/auth.js.map +1 -0
- package/dist/clerk/hasPermission.d.ts +33 -0
- package/dist/clerk/hasPermission.js +78 -0
- package/dist/clerk/hasPermission.js.map +1 -0
- package/dist/clerk/rbacConfig.d.ts +31 -0
- package/dist/clerk/rbacConfig.js +48 -0
- package/dist/clerk/rbacConfig.js.map +1 -0
- package/dist/clerk/schemas/invitation.d.ts +12 -0
- package/dist/clerk/schemas/invitation.js +20 -0
- package/dist/clerk/schemas/invitation.js.map +1 -0
- package/dist/clerk/schemas/systemUser.d.ts +6 -0
- package/dist/clerk/toClientSafeUser.d.ts +48 -0
- package/dist/clerk/toClientSafeUser.js +46 -0
- package/dist/clerk/toClientSafeUser.js.map +1 -0
- package/dist/constants/defaults.d.ts +6 -0
- package/dist/constants/defaults.js +56 -0
- package/dist/constants/defaults.js.map +1 -0
- package/dist/constants/pageLimits.d.ts +2 -0
- package/dist/constants/pageLimits.js +5 -0
- package/dist/constants/pageLimits.js.map +1 -0
- package/dist/index.css +215 -0
- package/dist/index.js +45 -0
- package/dist/index.js.map +1 -0
- package/dist/providers/CMSRootProviders.d.ts +4 -0
- package/dist/providers/CMSRootProviders.js +11 -0
- package/dist/providers/CMSRootProviders.js.map +1 -0
- package/dist/ui/Inputs/ThemedMonacoEditor/ThemedMonacoEditor.d.ts +2 -0
- package/dist/ui/Inputs/ThemedMonacoEditor/ThemedMonacoEditor.js +13 -0
- package/dist/ui/Inputs/ThemedMonacoEditor/ThemedMonacoEditor.js.map +1 -0
- package/dist/ui/Inputs/ThemedMonacoEditor/ThemedMonacoEditor.module.css.js +4 -0
- package/dist/ui/Inputs/ThemedMonacoEditor/ThemedMonacoEditor.module.css.js.map +1 -0
- package/dist/ui/Layout/CMSSecurityLayout.d.ts +2 -0
- package/dist/ui/Layout/CMSSecurityLayout.js +18 -0
- package/dist/ui/Layout/CMSSecurityLayout.js.map +1 -0
- package/dist/ui/Layout/CMSSidebar/CMSSidebar.d.ts +6 -0
- package/dist/ui/Layout/CMSSidebar/CMSSidebar.js +15 -0
- package/dist/ui/Layout/CMSSidebar/CMSSidebar.js.map +1 -0
- package/dist/ui/Layout/CMSSidebar/CMSSidebarBody.d.ts +4 -0
- package/dist/ui/Layout/CMSSidebar/CMSSidebarBody.js +18 -0
- package/dist/ui/Layout/CMSSidebar/CMSSidebarBody.js.map +1 -0
- package/dist/ui/Layout/CMSSidebar/CMSSidebarFooter/CMSSidebarFooter.d.ts +1 -0
- package/dist/ui/Layout/CMSSidebar/CMSSidebarFooter/CMSSidebarFooter.js +39 -0
- package/dist/ui/Layout/CMSSidebar/CMSSidebarFooter/CMSSidebarFooter.js.map +1 -0
- package/dist/ui/Layout/CMSSidebar/CMSSidebarFooter/CMSSidebarFooter.module.css.js +4 -0
- package/dist/ui/Layout/CMSSidebar/CMSSidebarFooter/CMSSidebarFooter.module.css.js.map +1 -0
- package/dist/ui/Layout/CMSSidebar/CMSSidebarHeader/CMSSidebarHeader.d.ts +1 -0
- package/dist/ui/Layout/CMSSidebar/CMSSidebarHeader/CMSSidebarHeader.js +16 -0
- package/dist/ui/Layout/CMSSidebar/CMSSidebarHeader/CMSSidebarHeader.js.map +1 -0
- package/dist/ui/Layout/CMSSidebar/CMSSidebarHeader/CMSSidebarHeader.module.css.js +4 -0
- package/dist/ui/Layout/CMSSidebar/CMSSidebarHeader/CMSSidebarHeader.module.css.js.map +1 -0
- package/dist/ui/Layout/_index.d.ts +2 -0
- package/dist/ui/System/Auth/SignIn/SignIn.d.ts +1 -0
- package/dist/ui/System/Auth/SignIn/SignIn.js +28 -0
- package/dist/ui/System/Auth/SignIn/SignIn.js.map +1 -0
- package/dist/ui/System/Auth/SignIn/SignIn.module.css.js +4 -0
- package/dist/ui/System/Auth/SignIn/SignIn.module.css.js.map +1 -0
- package/dist/ui/System/Auth/SignIn/useSignInForm.d.ts +14 -0
- package/dist/ui/System/Auth/SignIn/useSignInForm.js +46 -0
- package/dist/ui/System/Auth/SignIn/useSignInForm.js.map +1 -0
- package/dist/ui/System/Auth/SignUp/SignUp.d.ts +1 -0
- package/dist/ui/System/Auth/SignUp/SignUp.js +36 -0
- package/dist/ui/System/Auth/SignUp/SignUp.js.map +1 -0
- package/dist/ui/System/Auth/SignUp/SignUp.module.css.js +4 -0
- package/dist/ui/System/Auth/SignUp/SignUp.module.css.js.map +1 -0
- package/dist/ui/System/Auth/SignUp/useSignUpForm.d.ts +19 -0
- package/dist/ui/System/Auth/SignUp/useSignUpForm.js +58 -0
- package/dist/ui/System/Auth/SignUp/useSignUpForm.js.map +1 -0
- package/dist/ui/System/Invitations/InvitationList.d.ts +1 -0
- package/dist/ui/System/Invitations/InvitationList.js +11 -0
- package/dist/ui/System/Invitations/InvitationList.js.map +1 -0
- package/dist/ui/System/Invitations/InvitationListActions.d.ts +11 -0
- package/dist/ui/System/Invitations/InvitationListActions.js +39 -0
- package/dist/ui/System/Invitations/InvitationListActions.js.map +1 -0
- package/dist/ui/System/Invitations/InvitationListCard.d.ts +4 -0
- package/dist/ui/System/Invitations/InvitationListCard.js +16 -0
- package/dist/ui/System/Invitations/InvitationListCard.js.map +1 -0
- package/dist/ui/System/Invitations/InvitationListPage.d.ts +2 -0
- package/dist/ui/System/Invitations/InvitationListPage.js +22 -0
- package/dist/ui/System/Invitations/InvitationListPage.js.map +1 -0
- package/dist/ui/System/Invitations/InvitationListPagination.d.ts +4 -0
- package/dist/ui/System/Invitations/InvitationListPagination.js +11 -0
- package/dist/ui/System/Invitations/InvitationListPagination.js.map +1 -0
- package/dist/ui/System/Permissions/RoleListCard.d.ts +6 -0
- package/dist/ui/System/Permissions/RoleListCard.js +11 -0
- package/dist/ui/System/Permissions/RoleListCard.js.map +1 -0
- package/dist/ui/System/Permissions/RolePermissionsPage.d.ts +4 -0
- package/dist/ui/System/Permissions/RolePermissionsPage.js +14 -0
- package/dist/ui/System/Permissions/RolePermissionsPage.js.map +1 -0
- package/dist/ui/System/Permissions/RolePermissionsTable.d.ts +2 -0
- package/dist/ui/System/Permissions/RolePermissionsTable.js +28 -0
- package/dist/ui/System/Permissions/RolePermissionsTable.js.map +1 -0
- package/dist/ui/System/SystemUser/CurrentSystemUserButton/CurrentSystemUserButton.d.ts +5 -0
- package/dist/ui/System/SystemUser/CurrentSystemUserButton/CurrentSystemUserButton.js +31 -0
- package/dist/ui/System/SystemUser/CurrentSystemUserButton/CurrentSystemUserButton.js.map +1 -0
- package/dist/ui/System/SystemUser/CurrentSystemUserButton/CurrentSystemUserButton.module.css.js +4 -0
- package/dist/ui/System/SystemUser/CurrentSystemUserButton/CurrentSystemUserButton.module.css.js.map +1 -0
- package/dist/ui/System/SystemUser/CurrentSystemUserPage.d.ts +1 -0
- package/dist/ui/System/SystemUser/CurrentSystemUserPage.js +17 -0
- package/dist/ui/System/SystemUser/CurrentSystemUserPage.js.map +1 -0
- package/dist/ui/System/SystemUser/SystemUserActions.d.ts +6 -0
- package/dist/ui/System/SystemUser/SystemUserActions.js +14 -0
- package/dist/ui/System/SystemUser/SystemUserActions.js.map +1 -0
- package/dist/ui/System/SystemUser/SystemUserDetails/SystemUserDetails.d.ts +12 -0
- package/dist/ui/System/SystemUser/SystemUserDetails/SystemUserDetails.js +16 -0
- package/dist/ui/System/SystemUser/SystemUserDetails/SystemUserDetails.js.map +1 -0
- package/dist/ui/System/SystemUser/SystemUserDetails/SystemUserDetails.module.css.js +4 -0
- package/dist/ui/System/SystemUser/SystemUserDetails/SystemUserDetails.module.css.js.map +1 -0
- package/dist/ui/System/SystemUser/SystemUserDetailsForm/SystemUserDetailsForm.d.ts +11 -0
- package/dist/ui/System/SystemUser/SystemUserDetailsForm/SystemUserDetailsForm.js +26 -0
- package/dist/ui/System/SystemUser/SystemUserDetailsForm/SystemUserDetailsForm.js.map +1 -0
- package/dist/ui/System/SystemUser/SystemUserDetailsForm/SystemUserDetailsForm.module.css.js +4 -0
- package/dist/ui/System/SystemUser/SystemUserDetailsForm/SystemUserDetailsForm.module.css.js.map +1 -0
- package/dist/ui/System/SystemUser/SystemUserList.d.ts +1 -0
- package/dist/ui/System/SystemUser/SystemUserList.js +11 -0
- package/dist/ui/System/SystemUser/SystemUserList.js.map +1 -0
- package/dist/ui/System/SystemUser/SystemUserListActions.d.ts +1 -0
- package/dist/ui/System/SystemUser/SystemUserListActions.js +11 -0
- package/dist/ui/System/SystemUser/SystemUserListActions.js.map +1 -0
- package/dist/ui/System/SystemUser/SystemUserListCard.d.ts +11 -0
- package/dist/ui/System/SystemUser/SystemUserListCard.js +34 -0
- package/dist/ui/System/SystemUser/SystemUserListCard.js.map +1 -0
- package/dist/ui/System/SystemUser/SystemUserListPage.d.ts +2 -0
- package/dist/ui/System/SystemUser/SystemUserListPage.js +24 -0
- package/dist/ui/System/SystemUser/SystemUserListPage.js.map +1 -0
- package/dist/ui/System/SystemUser/SystemUserListPagination.d.ts +4 -0
- package/dist/ui/System/SystemUser/SystemUserListPagination.js +11 -0
- package/dist/ui/System/SystemUser/SystemUserListPagination.js.map +1 -0
- package/dist/ui/System/SystemUser/SystemUserPage.d.ts +1 -0
- package/dist/ui/System/SystemUser/SystemUserPage.js +17 -0
- package/dist/ui/System/SystemUser/SystemUserPage.js.map +1 -0
- package/dist/ui/System/SystemUser/SystemUserPageContent.d.ts +5 -0
- package/dist/ui/System/SystemUser/SystemUserPageContent.js +13 -0
- package/dist/ui/System/SystemUser/SystemUserPageContent.js.map +1 -0
- package/dist/ui/System/SystemUser/SystemUserRole/SystemUserRole.d.ts +6 -0
- package/dist/ui/System/SystemUser/SystemUserRole/SystemUserRole.js +21 -0
- package/dist/ui/System/SystemUser/SystemUserRole/SystemUserRole.js.map +1 -0
- package/dist/ui/System/SystemUser/SystemUserRole/SystemUserRole.module.css.js +4 -0
- package/dist/ui/System/SystemUser/SystemUserRole/SystemUserRole.module.css.js.map +1 -0
- package/dist/ui/System/SystemUser/SystemUserRoleForm/SystemUserRoleForm.d.ts +9 -0
- package/dist/ui/System/SystemUser/SystemUserRoleForm/SystemUserRoleForm.js +19 -0
- package/dist/ui/System/SystemUser/SystemUserRoleForm/SystemUserRoleForm.js.map +1 -0
- package/dist/ui/System/SystemUser/SystemUserTimestamps.d.ts +9 -0
- package/dist/ui/System/SystemUser/SystemUserTimestamps.js +27 -0
- package/dist/ui/System/SystemUser/SystemUserTimestamps.js.map +1 -0
- package/dist/ui/System/WelcomePage/WelcomePage.d.ts +1 -0
- package/dist/ui/System/WelcomePage/WelcomePage.js +16 -0
- package/dist/ui/System/WelcomePage/WelcomePage.js.map +1 -0
- package/dist/ui/System/WelcomePage/WelcomePage.module.css.js +4 -0
- package/dist/ui/System/WelcomePage/WelcomePage.module.css.js.map +1 -0
- package/{src/ui/System/types.ts → dist/ui/System/types.d.ts} +3 -5
- package/dist/utils/proxyFunctions.d.ts +4 -0
- package/dist/utils/proxyFunctions.js +34 -0
- package/dist/utils/proxyFunctions.js.map +1 -0
- package/package.json +14 -14
- package/rollup.config.js +1 -1
- package/.turbo/turbo-build.log +0 -7
- package/CHANGELOG.md +0 -12
- package/eslint.config.js +0 -21
- package/src/clerk/actions/invitations.ts +0 -78
- package/src/clerk/actions/systemUsers.ts +0 -94
- package/src/clerk/auth.ts +0 -34
- package/src/clerk/clerk.d.ts +0 -105
- package/src/clerk/hasPermission.ts +0 -96
- package/src/clerk/rbacConfig.ts +0 -68
- package/src/clerk/schemas/invitation.ts +0 -17
- package/src/clerk/schemas/systemUser.ts +0 -16
- package/src/clerk/toClientSafeUser.ts +0 -77
- package/src/constants/defaults.tsx +0 -62
- package/src/constants/pageLimits.ts +0 -2
- package/src/declaration.d.ts +0 -5
- package/src/providers/CMSRootProviders.tsx +0 -13
- package/src/routes.d.ts +0 -96
- package/src/ui/Inputs/ThemedMonacoEditor/ThemedMonacoEditor.module.css +0 -4
- package/src/ui/Inputs/ThemedMonacoEditor/ThemedMonacoEditor.tsx +0 -16
- package/src/ui/Layout/CMSSecurityLayout.tsx +0 -27
- package/src/ui/Layout/CMSSidebar/CMSSidebar.tsx +0 -39
- package/src/ui/Layout/CMSSidebar/CMSSidebarBody.tsx +0 -43
- package/src/ui/Layout/CMSSidebar/CMSSidebarFooter/CMSSidebarFooter.module.css +0 -7
- package/src/ui/Layout/CMSSidebar/CMSSidebarFooter/CMSSidebarFooter.tsx +0 -59
- package/src/ui/Layout/CMSSidebar/CMSSidebarHeader/CMSSidebarHeader.module.css +0 -44
- package/src/ui/Layout/CMSSidebar/CMSSidebarHeader/CMSSidebarHeader.tsx +0 -30
- package/src/ui/Layout/_index.ts +0 -2
- package/src/ui/System/Auth/SignIn/SignIn.module.css +0 -50
- package/src/ui/System/Auth/SignIn/SignIn.tsx +0 -79
- package/src/ui/System/Auth/SignIn/useSignInForm.tsx +0 -42
- package/src/ui/System/Auth/SignUp/SignUp.module.css +0 -48
- package/src/ui/System/Auth/SignUp/SignUp.tsx +0 -138
- package/src/ui/System/Auth/SignUp/useSignUpForm.tsx +0 -54
- package/src/ui/System/Invitations/InvitationList.tsx +0 -9
- package/src/ui/System/Invitations/InvitationListActions.tsx +0 -167
- package/src/ui/System/Invitations/InvitationListCard.tsx +0 -79
- package/src/ui/System/Invitations/InvitationListPage.tsx +0 -32
- package/src/ui/System/Invitations/InvitationListPagination.tsx +0 -19
- package/src/ui/System/Permissions/RoleListCard.tsx +0 -33
- package/src/ui/System/Permissions/RolePermissionsPage.tsx +0 -18
- package/src/ui/System/Permissions/RolePermissionsTable.tsx +0 -36
- package/src/ui/System/SystemUser/CurrentSystemUserButton/CurrentSystemUserButton.module.css +0 -5
- package/src/ui/System/SystemUser/CurrentSystemUserButton/CurrentSystemUserButton.tsx +0 -102
- package/src/ui/System/SystemUser/CurrentSystemUserPage.tsx +0 -12
- package/src/ui/System/SystemUser/SystemUserActions.tsx +0 -45
- package/src/ui/System/SystemUser/SystemUserDetails/SystemUserDetails.module.css +0 -6
- package/src/ui/System/SystemUser/SystemUserDetails/SystemUserDetails.tsx +0 -71
- package/src/ui/System/SystemUser/SystemUserDetailsForm/SystemUserDetailsForm.module.css +0 -7
- package/src/ui/System/SystemUser/SystemUserDetailsForm/SystemUserDetailsForm.tsx +0 -114
- package/src/ui/System/SystemUser/SystemUserList.tsx +0 -18
- package/src/ui/System/SystemUser/SystemUserListActions.tsx +0 -17
- package/src/ui/System/SystemUser/SystemUserListCard.tsx +0 -85
- package/src/ui/System/SystemUser/SystemUserListPage.tsx +0 -33
- package/src/ui/System/SystemUser/SystemUserListPagination.tsx +0 -19
- package/src/ui/System/SystemUser/SystemUserPage.tsx +0 -30
- package/src/ui/System/SystemUser/SystemUserPageContent.tsx +0 -54
- package/src/ui/System/SystemUser/SystemUserRole/SystemUserRole.module.css +0 -17
- package/src/ui/System/SystemUser/SystemUserRole/SystemUserRole.tsx +0 -64
- package/src/ui/System/SystemUser/SystemUserRoleForm/SystemUserRoleForm.tsx +0 -51
- package/src/ui/System/SystemUser/SystemUserTimestamps.tsx +0 -56
- package/src/ui/System/WelcomePage/WelcomePage.module.css +0 -18
- package/src/ui/System/WelcomePage/WelcomePage.tsx +0 -43
- package/src/utils/proxyFunctions.ts +0 -37
- package/tsconfig.json +0 -32
- /package/{src/clerk/_index.ts → dist/clerk/_index.d.ts} +0 -0
- /package/{src/clerk/actions/_index.ts → dist/clerk/actions/_index.d.ts} +0 -0
- /package/{src/clerk/schemas/_index.ts → dist/clerk/schemas/_index.d.ts} +0 -0
- /package/{src/constants/_index.ts → dist/constants/_index.d.ts} +0 -0
- /package/{src/index.ts → dist/index.d.ts} +0 -0
- /package/{src/providers/_index.ts → dist/providers/_index.d.ts} +0 -0
- /package/{src/ui/Inputs/_index.ts → dist/ui/Inputs/_index.d.ts} +0 -0
- /package/{src/ui/Layout/CMSSidebar/_index.ts → dist/ui/Layout/CMSSidebar/_index.d.ts} +0 -0
- /package/{src/ui/System/Auth/SignIn/_index.ts → dist/ui/System/Auth/SignIn/_index.d.ts} +0 -0
- /package/{src/ui/System/Auth/SignUp/_index.ts → dist/ui/System/Auth/SignUp/_index.d.ts} +0 -0
- /package/{src/ui/System/Auth/_index.ts → dist/ui/System/Auth/_index.d.ts} +0 -0
- /package/{src/ui/System/Invitations/_index.ts → dist/ui/System/Invitations/_index.d.ts} +0 -0
- /package/{src/ui/System/Permissions/_index.ts → dist/ui/System/Permissions/_index.d.ts} +0 -0
- /package/{src/ui/System/SystemUser/_index.ts → dist/ui/System/SystemUser/_index.d.ts} +0 -0
- /package/{src/ui/System/_index.ts → dist/ui/System/_index.d.ts} +0 -0
- /package/{src/ui/_index.ts → dist/ui/_index.d.ts} +0 -0
- /package/{src/utils/_index.ts → dist/utils/_index.d.ts} +0 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Outfit, Titillium_Web } from 'next/font/google';
|
|
3
|
+
import { Newspaper, ShieldUser, Settings, SquareUser, DoorClosedLocked, Users, Send } from 'lucide-react';
|
|
4
|
+
|
|
5
|
+
const defaultNavLinks = [
|
|
6
|
+
{
|
|
7
|
+
startIcon: jsx(Newspaper, {}),
|
|
8
|
+
children: "Content",
|
|
9
|
+
href: "/dashboard/content",
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
startIcon: jsx(ShieldUser, {}),
|
|
13
|
+
href: "/dashboard/security",
|
|
14
|
+
children: "Security",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
startIcon: jsx(Settings, {}),
|
|
18
|
+
href: "/dashboard/settings",
|
|
19
|
+
children: "Settings",
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
const defaultSecurityLinks = [
|
|
23
|
+
{
|
|
24
|
+
children: "Your Account",
|
|
25
|
+
startIcon: jsx(SquareUser, {}),
|
|
26
|
+
href: "/dashboard/security/account",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
children: "Roles & Permissions",
|
|
30
|
+
startIcon: jsx(DoorClosedLocked, {}),
|
|
31
|
+
href: "/dashboard/security/permissions",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
children: "System Users",
|
|
35
|
+
startIcon: jsx(Users, {}),
|
|
36
|
+
href: "/dashboard/security/systemUsers",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
children: "Invitations",
|
|
40
|
+
startIcon: jsx(Send, {}),
|
|
41
|
+
href: "/dashboard/security/invitations",
|
|
42
|
+
},
|
|
43
|
+
];
|
|
44
|
+
const fontH = Outfit({
|
|
45
|
+
variable: "--font-h",
|
|
46
|
+
subsets: ["latin"],
|
|
47
|
+
});
|
|
48
|
+
const fontP = Titillium_Web({
|
|
49
|
+
variable: "--font-p",
|
|
50
|
+
weight: ["200", "400", "600", "700", "900"],
|
|
51
|
+
subsets: ["latin"],
|
|
52
|
+
});
|
|
53
|
+
const defaultBodyClassName = `${fontH.variable} ${fontP.variable}`;
|
|
54
|
+
|
|
55
|
+
export { defaultBodyClassName, defaultNavLinks, defaultSecurityLinks, fontH, fontP };
|
|
56
|
+
//# sourceMappingURL=defaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaults.js","sources":["../../src/constants/defaults.tsx"],"sourcesContent":["import type { ListItemProps, TabProps } from \"@studiocubics/components\";\nimport { Titillium_Web, Outfit } from \"next/font/google\";\nimport {\n Newspaper,\n Settings,\n ShieldUser,\n SquareUser,\n DoorClosedLocked,\n Users,\n Send,\n} from \"lucide-react\";\n\nexport const defaultNavLinks: ListItemProps[] = [\n {\n startIcon: <Newspaper />,\n children: \"Content\",\n href: \"/dashboard/content\",\n },\n {\n startIcon: <ShieldUser />,\n href: \"/dashboard/security\",\n children: \"Security\",\n },\n {\n startIcon: <Settings />,\n href: \"/dashboard/settings\",\n children: \"Settings\",\n },\n];\nexport const defaultSecurityLinks: TabProps[] = [\n {\n children: \"Your Account\",\n startIcon: <SquareUser />,\n href: \"/dashboard/security/account\",\n },\n {\n children: \"Roles & Permissions\",\n startIcon: <DoorClosedLocked />,\n href: \"/dashboard/security/permissions\",\n },\n {\n children: \"System Users\",\n startIcon: <Users />,\n href: \"/dashboard/security/systemUsers\",\n },\n {\n children: \"Invitations\",\n startIcon: <Send />,\n href: \"/dashboard/security/invitations\",\n },\n];\nexport const fontH = Outfit({\n variable: \"--font-h\",\n subsets: [\"latin\"],\n});\n\nexport const fontP = Titillium_Web({\n variable: \"--font-p\",\n weight: [\"200\", \"400\", \"600\", \"700\", \"900\"],\n subsets: [\"latin\"],\n});\nexport const defaultBodyClassName = `${fontH.variable} ${fontP.variable}`;\n"],"names":["_jsx"],"mappings":";;;;AAYO,MAAM,eAAe,GAAoB;AAC9C,IAAA;QACE,SAAS,EAAEA,GAAA,CAAC,SAAS,EAAA,EAAA,CAAG;AACxB,QAAA,QAAQ,EAAE,SAAS;AACnB,QAAA,IAAI,EAAE,oBAAoB;AAC3B,KAAA;AACD,IAAA;QACE,SAAS,EAAEA,GAAA,CAAC,UAAU,EAAA,EAAA,CAAG;AACzB,QAAA,IAAI,EAAE,qBAAqB;AAC3B,QAAA,QAAQ,EAAE,UAAU;AACrB,KAAA;AACD,IAAA;QACE,SAAS,EAAEA,GAAA,CAAC,QAAQ,EAAA,EAAA,CAAG;AACvB,QAAA,IAAI,EAAE,qBAAqB;AAC3B,QAAA,QAAQ,EAAE,UAAU;AACrB,KAAA;;AAEI,MAAM,oBAAoB,GAAe;AAC9C,IAAA;AACE,QAAA,QAAQ,EAAE,cAAc;QACxB,SAAS,EAAEA,GAAA,CAAC,UAAU,EAAA,EAAA,CAAG;AACzB,QAAA,IAAI,EAAE,6BAA6B;AACpC,KAAA;AACD,IAAA;AACE,QAAA,QAAQ,EAAE,qBAAqB;QAC/B,SAAS,EAAEA,GAAA,CAAC,gBAAgB,EAAA,EAAA,CAAG;AAC/B,QAAA,IAAI,EAAE,iCAAiC;AACxC,KAAA;AACD,IAAA;AACE,QAAA,QAAQ,EAAE,cAAc;QACxB,SAAS,EAAEA,GAAA,CAAC,KAAK,EAAA,EAAA,CAAG;AACpB,QAAA,IAAI,EAAE,iCAAiC;AACxC,KAAA;AACD,IAAA;AACE,QAAA,QAAQ,EAAE,aAAa;QACvB,SAAS,EAAEA,GAAA,CAAC,IAAI,EAAA,EAAA,CAAG;AACnB,QAAA,IAAI,EAAE,iCAAiC;AACxC,KAAA;;AAEI,MAAM,KAAK,GAAG,MAAM,CAAC;AAC1B,IAAA,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,CAAC,OAAO,CAAC;AACnB,CAAA;AAEM,MAAM,KAAK,GAAG,aAAa,CAAC;AACjC,IAAA,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;IAC3C,OAAO,EAAE,CAAC,OAAO,CAAC;AACnB,CAAA;AACM,MAAM,oBAAoB,GAAG,CAAA,EAAG,KAAK,CAAC,QAAQ,CAAA,CAAA,EAAI,KAAK,CAAC,QAAQ;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageLimits.js","sources":["../../src/constants/pageLimits.ts"],"sourcesContent":["export const SYSTEM_USERS_PAGE_LIMIT = 10;\nexport const INVITATIONS_PAGE_LIMIT = 10;\n"],"names":[],"mappings":"AAAO,MAAM,uBAAuB,GAAG;AAChC,MAAM,sBAAsB,GAAG;;;;"}
|
package/dist/index.css
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
.ThemedMonacoEditor-module_root__Qq-FS {
|
|
2
|
+
border-radius: var(--shape-br-sm);
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.CMSSidebarHeader-module_root__7p0w6 {
|
|
7
|
+
flex: 1;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: row;
|
|
10
|
+
align-items: center;
|
|
11
|
+
padding-inline: 8.33%;
|
|
12
|
+
gap: var(--spacing-gap);
|
|
13
|
+
|
|
14
|
+
padding-top: var(--spacing-gap-3);
|
|
15
|
+
padding-bottom: var(--spacing-gap-2);
|
|
16
|
+
transition: padding var(--transition-time) var(--transition-tf);
|
|
17
|
+
}
|
|
18
|
+
.CMSSidebarHeader-module_logoContainer__KTkmc {
|
|
19
|
+
flex: 1;
|
|
20
|
+
display: flex;
|
|
21
|
+
justify-content: flex-start;
|
|
22
|
+
align-items: center;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.CMSSidebarHeader-module_logo__YED-6 {
|
|
26
|
+
max-width: 6rem;
|
|
27
|
+
height: auto;
|
|
28
|
+
width: 40%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@media (min-width: 600px) {
|
|
32
|
+
.CMSSidebarHeader-module_root__7p0w6 {
|
|
33
|
+
flex: 0 1 0%;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
align-items: center;
|
|
36
|
+
padding-inline: 0;
|
|
37
|
+
}
|
|
38
|
+
.CMSSidebarHeader-module_root__7p0w6[data-open="true"] {
|
|
39
|
+
flex-direction: row;
|
|
40
|
+
justify-content: space-between;
|
|
41
|
+
padding-top: var(--spacing-gap-2);
|
|
42
|
+
& .CMSSidebarHeader-module_logo__YED-6 {
|
|
43
|
+
width: 100%;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
.CMSSidebarHeader-module_logoContainer__KTkmc {
|
|
47
|
+
justify-content: center;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.CMSSidebarFooter-module_root__155tB {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
justify-content: flex-end;
|
|
55
|
+
height: 100%;
|
|
56
|
+
gap: var(--spacing-gap-2);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.CurrentSystemUserButton-module_title__uZG7O {
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
gap: var(--spacing-gap);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Yes this is seperate its meant to be separate dont make the SignUp and SignIn styles into one eventhough they are the exact same. Just dont do it ples! */
|
|
66
|
+
.SignIn-module_root__a85lb,
|
|
67
|
+
.SignIn-module_body__Sg2nG,
|
|
68
|
+
.SignIn-module_header__eyTQi,
|
|
69
|
+
.SignIn-module_form__myu4V,
|
|
70
|
+
.SignIn-module_footer__u-JMS {
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
}
|
|
74
|
+
.SignIn-module_root__a85lb {
|
|
75
|
+
width: clamp(350px, 50vw, 550px);
|
|
76
|
+
align-items: center;
|
|
77
|
+
gap: var(--spacing-gap-7);
|
|
78
|
+
& p {
|
|
79
|
+
font-size: var(--fs-body2);
|
|
80
|
+
text-align: center;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
.SignIn-module_body__Sg2nG {
|
|
84
|
+
width: 100%;
|
|
85
|
+
align-items: center;
|
|
86
|
+
gap: var(--spacing-gap-3);
|
|
87
|
+
}
|
|
88
|
+
.SignIn-module_header__eyTQi {
|
|
89
|
+
align-items: center;
|
|
90
|
+
text-align: center;
|
|
91
|
+
gap: var(--spacing-gap);
|
|
92
|
+
& > h1 {
|
|
93
|
+
font-size: var(--fs-h3);
|
|
94
|
+
}
|
|
95
|
+
& > p {
|
|
96
|
+
font-size: var(--fs-body2);
|
|
97
|
+
color: var(--color-on-background-faint);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
.SignIn-module_form__myu4V {
|
|
101
|
+
width: 100%;
|
|
102
|
+
gap: var(--spacing-gap-2);
|
|
103
|
+
}
|
|
104
|
+
.SignIn-module_footer__u-JMS {
|
|
105
|
+
width: 100%;
|
|
106
|
+
padding: var(--spacing-gap-3);
|
|
107
|
+
align-items: center;
|
|
108
|
+
border-top: 1px solid var(--color-outline);
|
|
109
|
+
}
|
|
110
|
+
.SignIn-module_error__zk6qv {
|
|
111
|
+
font-size: 2rem;
|
|
112
|
+
color: var(--color-error);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
.SignUp-module_root__N7dct,
|
|
117
|
+
.SignUp-module_body__K80Nw,
|
|
118
|
+
.SignUp-module_header__2s9kc,
|
|
119
|
+
.SignUp-module_form__BDitR,
|
|
120
|
+
.SignUp-module_footer__YFJst {
|
|
121
|
+
display: flex;
|
|
122
|
+
flex-direction: column;
|
|
123
|
+
}
|
|
124
|
+
.SignUp-module_root__N7dct {
|
|
125
|
+
width: clamp(350px, 50vw, 550px);
|
|
126
|
+
align-items: center;
|
|
127
|
+
gap: var(--spacing-gap-7);
|
|
128
|
+
& p {
|
|
129
|
+
font-size: var(--fs-body2);
|
|
130
|
+
text-align: center;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
.SignUp-module_body__K80Nw {
|
|
134
|
+
width: 100%;
|
|
135
|
+
align-items: center;
|
|
136
|
+
gap: var(--spacing-gap-3);
|
|
137
|
+
}
|
|
138
|
+
.SignUp-module_header__2s9kc {
|
|
139
|
+
align-items: center;
|
|
140
|
+
text-align: center;
|
|
141
|
+
gap: var(--spacing-gap);
|
|
142
|
+
& > h1 {
|
|
143
|
+
font-size: var(--fs-h3);
|
|
144
|
+
}
|
|
145
|
+
& > p {
|
|
146
|
+
font-size: var(--fs-body2);
|
|
147
|
+
color: var(--color-on-background-faint);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
.SignUp-module_form__BDitR {
|
|
151
|
+
width: 100%;
|
|
152
|
+
gap: var(--spacing-gap-2);
|
|
153
|
+
}
|
|
154
|
+
.SignUp-module_footer__YFJst {
|
|
155
|
+
width: 100%;
|
|
156
|
+
padding: var(--spacing-gap-3);
|
|
157
|
+
align-items: center;
|
|
158
|
+
border-top: 1px solid var(--color-outline);
|
|
159
|
+
}
|
|
160
|
+
.SignUp-module_error__1HM-5 {
|
|
161
|
+
font-size: 2rem;
|
|
162
|
+
color: var(--color-error);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.SystemUserDetails-module_root__7fbdi {
|
|
166
|
+
display: flex;
|
|
167
|
+
justify-content: space-between;
|
|
168
|
+
align-items: flex-start;
|
|
169
|
+
width: 100%;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.SystemUserDetailsForm-module_form__JwtS6 {
|
|
173
|
+
flex: 1;
|
|
174
|
+
}
|
|
175
|
+
.SystemUserDetailsForm-module_formRow__wF0Cw {
|
|
176
|
+
display: flex;
|
|
177
|
+
gap: var(--spacing-gap);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.SystemUserRole-module_root__HlOLA {
|
|
181
|
+
display: flex;
|
|
182
|
+
justify-content: space-between;
|
|
183
|
+
align-items: flex-start;
|
|
184
|
+
width: 100%;
|
|
185
|
+
}
|
|
186
|
+
.SystemUserRole-module_main__X9g43 {
|
|
187
|
+
display: flex;
|
|
188
|
+
flex: 1;
|
|
189
|
+
flex-direction: column;
|
|
190
|
+
gap: var(--spacing-gap-2);
|
|
191
|
+
align-items: flex-start;
|
|
192
|
+
p {
|
|
193
|
+
font-size: var(--fs-body2);
|
|
194
|
+
color: var(--color-on-background-faint);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.WelcomePage-module_root__NQgmW {
|
|
199
|
+
display: flex;
|
|
200
|
+
flex-direction: column;
|
|
201
|
+
justify-content: center;
|
|
202
|
+
align-items: center;
|
|
203
|
+
gap: var(--spacing-gap-4);
|
|
204
|
+
width: 100dvw;
|
|
205
|
+
height: 100dvh;
|
|
206
|
+
}
|
|
207
|
+
.WelcomePage-module_desc__D429m {
|
|
208
|
+
max-width: 65ch;
|
|
209
|
+
text-align: center;
|
|
210
|
+
font-size: var(--fs-body);
|
|
211
|
+
color: var(--color-on-background-faint);
|
|
212
|
+
}
|
|
213
|
+
.WelcomePage-module_catcall__ZfRP8 {
|
|
214
|
+
font-size: var(--fs-body2);
|
|
215
|
+
}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export { invitationCreateAction, invitationDeleteAction, invitationListReadAction } from './clerk/actions/invitations.js';
|
|
2
|
+
export { systemUserDetailsUpdateAction, systemUserListReadAction, systemUserReadAction, systemUserRoleUpdateAction } from './clerk/actions/systemUsers.js';
|
|
3
|
+
export { auth } from './clerk/auth.js';
|
|
4
|
+
export { hasPermission, hasPermissionForClaims } from './clerk/hasPermission.js';
|
|
5
|
+
export { RBAC_CONFIG, getInvitationPublicMetadata, resources, roles } from './clerk/rbacConfig.js';
|
|
6
|
+
export { createInvitationSchema } from './clerk/schemas/invitation.js';
|
|
7
|
+
export { toClientSafeUser } from './clerk/toClientSafeUser.js';
|
|
8
|
+
export { INVITATIONS_PAGE_LIMIT, SYSTEM_USERS_PAGE_LIMIT } from './constants/pageLimits.js';
|
|
9
|
+
export { defaultBodyClassName, defaultNavLinks, defaultSecurityLinks, fontH, fontP } from './constants/defaults.js';
|
|
10
|
+
export { CMSRootProviders } from './providers/CMSRootProviders.js';
|
|
11
|
+
export { ThemedMonacoEditor } from './ui/Inputs/ThemedMonacoEditor/ThemedMonacoEditor.js';
|
|
12
|
+
export { CMSSecurityLayout } from './ui/Layout/CMSSecurityLayout.js';
|
|
13
|
+
export { CMSSidebar } from './ui/Layout/CMSSidebar/CMSSidebar.js';
|
|
14
|
+
export { CMSSidebarBody } from './ui/Layout/CMSSidebar/CMSSidebarBody.js';
|
|
15
|
+
export { CMSSidebarFooter } from './ui/Layout/CMSSidebar/CMSSidebarFooter/CMSSidebarFooter.js';
|
|
16
|
+
export { CMSSidebarHeader } from './ui/Layout/CMSSidebar/CMSSidebarHeader/CMSSidebarHeader.js';
|
|
17
|
+
export { SignIn } from './ui/System/Auth/SignIn/SignIn.js';
|
|
18
|
+
export { useSignInForm } from './ui/System/Auth/SignIn/useSignInForm.js';
|
|
19
|
+
export { SignUp } from './ui/System/Auth/SignUp/SignUp.js';
|
|
20
|
+
export { useSignUpForm } from './ui/System/Auth/SignUp/useSignUpForm.js';
|
|
21
|
+
export { InvitationList } from './ui/System/Invitations/InvitationList.js';
|
|
22
|
+
export { InvitationCreateDialog, InvitationListActions, InvitationRevokeDialog } from './ui/System/Invitations/InvitationListActions.js';
|
|
23
|
+
export { InvitationListCard } from './ui/System/Invitations/InvitationListCard.js';
|
|
24
|
+
export { InvitationListPage } from './ui/System/Invitations/InvitationListPage.js';
|
|
25
|
+
export { InvitationListPagination } from './ui/System/Invitations/InvitationListPagination.js';
|
|
26
|
+
export { RoleListCard } from './ui/System/Permissions/RoleListCard.js';
|
|
27
|
+
export { RolePermissionsPage } from './ui/System/Permissions/RolePermissionsPage.js';
|
|
28
|
+
export { RolePermissionsTable } from './ui/System/Permissions/RolePermissionsTable.js';
|
|
29
|
+
export { CurrentSystemUserButton, Logout } from './ui/System/SystemUser/CurrentSystemUserButton/CurrentSystemUserButton.js';
|
|
30
|
+
export { CurrentSystemUserPage } from './ui/System/SystemUser/CurrentSystemUserPage.js';
|
|
31
|
+
export { SystemUserDeleteListItem } from './ui/System/SystemUser/SystemUserActions.js';
|
|
32
|
+
export { SystemUserDetails } from './ui/System/SystemUser/SystemUserDetails/SystemUserDetails.js';
|
|
33
|
+
export { SystemUserDetailsForm } from './ui/System/SystemUser/SystemUserDetailsForm/SystemUserDetailsForm.js';
|
|
34
|
+
export { SystemUserList } from './ui/System/SystemUser/SystemUserList.js';
|
|
35
|
+
export { SystemUserListActions } from './ui/System/SystemUser/SystemUserListActions.js';
|
|
36
|
+
export { SystemUserListCard } from './ui/System/SystemUser/SystemUserListCard.js';
|
|
37
|
+
export { SystemUserListPage } from './ui/System/SystemUser/SystemUserListPage.js';
|
|
38
|
+
export { SystemUserListPagination } from './ui/System/SystemUser/SystemUserListPagination.js';
|
|
39
|
+
export { SystemUserPage } from './ui/System/SystemUser/SystemUserPage.js';
|
|
40
|
+
export { SystemUserPageContent } from './ui/System/SystemUser/SystemUserPageContent.js';
|
|
41
|
+
export { SystemUserRole } from './ui/System/SystemUser/SystemUserRole/SystemUserRole.js';
|
|
42
|
+
export { CurrentSystemUserTimestamps, SystemUserTimestamps } from './ui/System/SystemUser/SystemUserTimestamps.js';
|
|
43
|
+
export { WelcomePage } from './ui/System/WelcomePage/WelcomePage.js';
|
|
44
|
+
export { cmsConfig, cmsMiddleware } from './utils/proxyFunctions.js';
|
|
45
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { ThemeProvider } from 'next-themes';
|
|
4
|
+
import { ClerkProvider } from '@clerk/nextjs';
|
|
5
|
+
|
|
6
|
+
function CMSRootProviders({ children }) {
|
|
7
|
+
return (jsx(ThemeProvider, { enableSystem: true, children: jsx(ClerkProvider, { children: children }) }));
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { CMSRootProviders };
|
|
11
|
+
//# sourceMappingURL=CMSRootProviders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CMSRootProviders.js","sources":["../../src/providers/CMSRootProviders.tsx"],"sourcesContent":["\"use client\";\n\nimport { ThemeProvider } from \"next-themes\";\nimport type { ReactNode } from \"react\";\nimport { ClerkProvider } from \"@clerk/nextjs\";\n\nexport function CMSRootProviders({ children }: { children: ReactNode }) {\n return (\n <ThemeProvider enableSystem>\n <ClerkProvider>{children}</ClerkProvider>\n </ThemeProvider>\n );\n}\n"],"names":["_jsx"],"mappings":";;;;;AAMM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAC,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,EAA2B,CAAA,CAAA;AACpE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACEA,GAAA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,EAAA,CAAA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EACzBA,CAAAA,CAAAA,CAAA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAiB,CAAA,CAAA,CAC3B,CAAA;AAEpB;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { Editor } from '@monaco-editor/react';
|
|
4
|
+
import { useTheme } from 'next-themes';
|
|
5
|
+
import styles from './ThemedMonacoEditor.module.css.js';
|
|
6
|
+
|
|
7
|
+
function ThemedMonacoEditor(props) {
|
|
8
|
+
const theme = useTheme();
|
|
9
|
+
return (jsx(Editor, { className: styles.root, theme: theme.resolvedTheme == "dark" ? "vs-dark" : "vs-light", ...props }));
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { ThemedMonacoEditor };
|
|
13
|
+
//# sourceMappingURL=ThemedMonacoEditor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemedMonacoEditor.js","sources":["../../../../src/ui/Inputs/ThemedMonacoEditor/ThemedMonacoEditor.tsx"],"sourcesContent":["\"use client\";\n\nimport { Editor, type EditorProps } from \"@monaco-editor/react\";\nimport { useTheme } from \"next-themes\";\nimport styles from \"./ThemedMonacoEditor.module.css\";\nexport function ThemedMonacoEditor(props: EditorProps) {\n const theme = useTheme();\n\n return (\n <Editor\n className={styles.root}\n theme={theme.resolvedTheme == \"dark\" ? \"vs-dark\" : \"vs-light\"}\n {...props}\n />\n );\n}\n"],"names":["_jsx"],"mappings":";;;;;;AAKM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAkB,CAAC,CAAA,CAAA,CAAA,CAAA,CAAkB,CAAA,CAAA;AACnD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAE;AAExB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACEA,CAAAA,CAAAA,CAAA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CACL,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAA,CAAA,CAAA,CAAI,CAAA,CACtB,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA,CAAA,CAAA,CAAA,CACzD,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CACT,CAAA;AAEN;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemedMonacoEditor.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { PageLayoutTabs } from '@studiocubics/components';
|
|
4
|
+
import Link from 'next/link';
|
|
5
|
+
import { usePathname } from 'next/navigation';
|
|
6
|
+
|
|
7
|
+
function CMSSecurityLayout(props) {
|
|
8
|
+
const { menuItems } = props;
|
|
9
|
+
const pathname = usePathname();
|
|
10
|
+
const selectedItem = menuItems?.find((mi) => mi.href && pathname.startsWith(mi.href));
|
|
11
|
+
const selectedIndex = selectedItem
|
|
12
|
+
? menuItems?.indexOf(selectedItem)
|
|
13
|
+
: undefined;
|
|
14
|
+
return (jsx(PageLayoutTabs, { ...props, subtitle: "Manage your account and other System security options", title: "Security", selectedIndex: selectedIndex, LinkComponent: Link }));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { CMSSecurityLayout };
|
|
18
|
+
//# sourceMappingURL=CMSSecurityLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CMSSecurityLayout.js","sources":["../../../src/ui/Layout/CMSSecurityLayout.tsx"],"sourcesContent":["\"use client\";\n\nimport { PageLayoutTabs, type PageLayoutTabsProps } from \"@studiocubics/components\";\nimport Link from \"next/link\";\nimport { usePathname } from \"next/navigation\";\n\nexport function CMSSecurityLayout(\n props: Omit<PageLayoutTabsProps, \"title\" | \"subtitle\" | \"selectedIndex\">,\n) {\n const { menuItems } = props;\n const pathname = usePathname();\n const selectedItem = menuItems?.find(\n (mi) => mi.href && pathname.startsWith(mi.href),\n );\n const selectedIndex = selectedItem\n ? menuItems?.indexOf(selectedItem)\n : undefined;\n return (\n <PageLayoutTabs\n {...props}\n subtitle={\"Manage your account and other System security options\"}\n title={\"Security\"}\n selectedIndex={selectedIndex}\n LinkComponent={Link}\n />\n );\n}\n"],"names":["_jsx"],"mappings":";;;;;;AAMM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAiB,CAC/B,CAAA,CAAA,CAAA,CAAA,CAAwE,CAAA,CAAA;AAExE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAE,GAAG,CAAA,CAAA,CAAA,CAAA,CAAK;AAC3B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAA,CAAE;IAC9B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,YAAY,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CA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CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAuD,EACjE,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA,CACjB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAA,CAC5B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAA,CAAE,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CACnB,CAAA;AAEN;;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ListItemProps } from "@studiocubics/components";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
export declare function CMSSidebar({ children, sidebarLinks, }: {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
sidebarLinks: ListItemProps[];
|
|
6
|
+
}): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { Sidebar, SidebarDrawer, SidebarViewport } from '@studiocubics/components';
|
|
3
|
+
import { CMSSidebarHeader } from './CMSSidebarHeader/CMSSidebarHeader.js';
|
|
4
|
+
import { CMSSidebarFooter } from './CMSSidebarFooter/CMSSidebarFooter.js';
|
|
5
|
+
import { CMSSidebarBody } from './CMSSidebarBody.js';
|
|
6
|
+
import { cookies } from 'next/headers';
|
|
7
|
+
|
|
8
|
+
async function CMSSidebar({ children, sidebarLinks, }) {
|
|
9
|
+
const cookieStore = await cookies();
|
|
10
|
+
const defaultOpen = cookieStore.get("sidebarOpen")?.value === "true";
|
|
11
|
+
return (jsx("div", { style: { height: "100dvh" }, children: jsxs(Sidebar, { defaultOpen: defaultOpen, children: [jsxs(SidebarDrawer, { children: [jsx(CMSSidebarHeader, {}), jsx(CMSSidebarBody, { sidebarLinks: sidebarLinks }), jsx(CMSSidebarFooter, {})] }), jsx(SidebarViewport, { style: { backgroundColor: "var(--color-surface-alpha)" }, children: children })] }) }));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { CMSSidebar };
|
|
15
|
+
//# sourceMappingURL=CMSSidebar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CMSSidebar.js","sources":["../../../../src/ui/Layout/CMSSidebar/CMSSidebar.tsx"],"sourcesContent":["import {\n Sidebar,\n SidebarViewport,\n SidebarDrawer,\n type ListItemProps,\n} from \"@studiocubics/components\";\nimport type { ReactNode } from \"react\";\nimport { CMSSidebarHeader } from \"./CMSSidebarHeader/CMSSidebarHeader\";\nimport { CMSSidebarFooter } from \"./CMSSidebarFooter/CMSSidebarFooter\";\nimport { CMSSidebarBody } from \"./CMSSidebarBody\";\nimport { cookies } from \"next/headers\";\n\nexport async function CMSSidebar({\n children,\n sidebarLinks,\n}: {\n children: ReactNode;\n sidebarLinks: ListItemProps[];\n}) {\n const cookieStore = await cookies();\n const defaultOpen = cookieStore.get(\"sidebarOpen\")?.value === \"true\";\n\n return (\n <div style={{ height: \"100dvh\" }}>\n <Sidebar defaultOpen={defaultOpen}>\n <SidebarDrawer>\n <CMSSidebarHeader />\n <CMSSidebarBody sidebarLinks={sidebarLinks} />\n <CMSSidebarFooter />\n </SidebarDrawer>\n <SidebarViewport\n style={{ backgroundColor: \"var(--color-surface-alpha)\" }}\n >\n {children}\n </SidebarViewport>\n </Sidebar>\n </div>\n );\n}\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;AAYO,eAAe,UAAU,CAAC,EAC/B,QAAQ,EACR,YAAY,GAIb,EAAA;AACC,IAAA,MAAM,WAAW,GAAG,MAAM,OAAO,EAAE;AACnC,IAAA,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,KAAK,KAAK,MAAM;IAEpE,QACEA,GAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAA,QAAA,EAC9BC,IAAA,CAAC,OAAO,IAAC,WAAW,EAAE,WAAW,EAAA,QAAA,EAAA,CAC/BA,IAAA,CAAC,aAAa,eACZD,GAAA,CAAC,gBAAgB,EAAA,EAAA,CAAG,EACpBA,GAAA,CAAC,cAAc,IAAC,YAAY,EAAE,YAAY,EAAA,CAAI,EAC9CA,GAAA,CAAC,gBAAgB,EAAA,EAAA,CAAG,CAAA,EAAA,CACN,EAChBA,GAAA,CAAC,eAAe,EAAA,EACd,KAAK,EAAE,EAAE,eAAe,EAAE,4BAA4B,EAAE,EAAA,QAAA,EAEvD,QAAQ,EAAA,CACO,CAAA,EAAA,CACV,EAAA,CACN;AAEV;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { useSidebar, SidebarBody, List, ListItem } from '@studiocubics/components';
|
|
4
|
+
import { usePathname } from 'next/navigation';
|
|
5
|
+
import Link from 'next/link';
|
|
6
|
+
import { useScreenSize } from '@studiocubics/hooks';
|
|
7
|
+
|
|
8
|
+
function CMSSidebarBody({ sidebarLinks, }) {
|
|
9
|
+
const { sidebarOpen, toggleSidebar } = useSidebar();
|
|
10
|
+
const pathname = usePathname();
|
|
11
|
+
const screenSize = useScreenSize();
|
|
12
|
+
return (jsx(SidebarBody, { children: jsx(List, { children: sidebarLinks.map((sl, i) => (jsx(ListItem, { LinkComponent: Link, ...sl, onClick: screenSize?.ltMedium && !sl.childNodes?.length && sidebarOpen
|
|
13
|
+
? toggleSidebar
|
|
14
|
+
: undefined, shortened: !sidebarOpen, selected: sl.href ? pathname.startsWith(sl.href) : undefined }, i))) }) }));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { CMSSidebarBody };
|
|
18
|
+
//# sourceMappingURL=CMSSidebarBody.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CMSSidebarBody.js","sources":["../../../../src/ui/Layout/CMSSidebar/CMSSidebarBody.tsx"],"sourcesContent":["\"use client\";\n\nimport {\n List,\n useSidebar,\n SidebarBody,\n ListItem,\n type ListItemProps,\n} from \"@studiocubics/components\";\nimport { usePathname } from \"next/navigation\";\nimport Link from \"next/link\";\nimport { useScreenSize } from \"@studiocubics/hooks\";\n\nexport function CMSSidebarBody({\n sidebarLinks,\n}: {\n sidebarLinks: ListItemProps[];\n}) {\n const { sidebarOpen, toggleSidebar } = useSidebar();\n const pathname = usePathname();\n const screenSize = useScreenSize();\n\n return (\n <SidebarBody>\n <List>\n {sidebarLinks.map((sl, i) => (\n <ListItem\n LinkComponent={Link}\n key={i}\n {...sl}\n onClick={\n screenSize?.ltMedium && !sl.childNodes?.length && sidebarOpen\n ? toggleSidebar\n : undefined\n }\n shortened={!sidebarOpen}\n selected={sl.href ? pathname.startsWith(sl.href) : undefined}\n />\n ))}\n </List>\n </SidebarBody>\n );\n}\n"],"names":["_jsx"],"mappings":";;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAC,CAAA,CAC7B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,GAGb,CAAA,CAAA;IACC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,EAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAA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x-runtime").JSX.Element | undefined;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import { useMounted } from '@studiocubics/hooks';
|
|
4
|
+
import { useSidebar, SidebarFooter, List, ThemeToggleListItem } from '@studiocubics/components';
|
|
5
|
+
import { Monitor, Sun, Moon } from 'lucide-react';
|
|
6
|
+
import { useTheme } from 'next-themes';
|
|
7
|
+
import styles from './CMSSidebarFooter.module.css.js';
|
|
8
|
+
import { CurrentSystemUserButton } from '../../../System/SystemUser/CurrentSystemUserButton/CurrentSystemUserButton.js';
|
|
9
|
+
|
|
10
|
+
function CMSSidebarFooter() {
|
|
11
|
+
const { sidebarOpen } = useSidebar();
|
|
12
|
+
const { theme, setTheme } = useTheme();
|
|
13
|
+
const { mounted } = useMounted();
|
|
14
|
+
if (!mounted)
|
|
15
|
+
return;
|
|
16
|
+
return (jsx(SidebarFooter, { children: jsxs("div", { className: styles.root, children: [theme && (jsx(List, { children: jsx(ThemeToggleListItem, { shortened: !sidebarOpen, currentTheme: theme, themeObject: {
|
|
17
|
+
dark: {
|
|
18
|
+
icon: jsx(Moon, {}),
|
|
19
|
+
onClick: () => {
|
|
20
|
+
setTheme("dark");
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
light: {
|
|
24
|
+
icon: jsx(Sun, {}),
|
|
25
|
+
onClick: () => {
|
|
26
|
+
setTheme("light");
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
system: {
|
|
30
|
+
icon: jsx(Monitor, {}),
|
|
31
|
+
onClick: () => {
|
|
32
|
+
setTheme("system");
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
} }) })), jsx(CurrentSystemUserButton, { clickable: true, variant: sidebarOpen ? "compact" : "image-only" })] }) }));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { CMSSidebarFooter };
|
|
39
|
+
//# sourceMappingURL=CMSSidebarFooter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CMSSidebarFooter.js","sources":["../../../../../src/ui/Layout/CMSSidebar/CMSSidebarFooter/CMSSidebarFooter.tsx"],"sourcesContent":["\"use client\";\n\nimport { useMounted } from \"@studiocubics/hooks\";\nimport {\n useSidebar,\n SidebarFooter,\n ThemeToggleListItem,\n type ThemeObject,\n List,\n} from \"@studiocubics/components\";\nimport { Moon, Sun, Monitor } from \"lucide-react\";\nimport { useTheme } from \"next-themes\";\nimport styles from \"./CMSSidebarFooter.module.css\";\nimport { CurrentSystemUserButton } from \"../../../System/SystemUser/CurrentSystemUserButton/CurrentSystemUserButton\";\n\nexport function CMSSidebarFooter() {\n const { sidebarOpen } = useSidebar();\n const { theme, setTheme } = useTheme();\n const { mounted } = useMounted();\n if (!mounted) return;\n return (\n <SidebarFooter>\n <div className={styles.root}>\n {theme && (\n <List>\n <ThemeToggleListItem\n shortened={!sidebarOpen}\n currentTheme={theme as keyof ThemeObject}\n themeObject={{\n dark: {\n icon: <Moon />,\n onClick: () => {\n setTheme(\"dark\");\n },\n },\n light: {\n icon: <Sun />,\n onClick: () => {\n setTheme(\"light\");\n },\n },\n system: {\n icon: <Monitor />,\n onClick: () => {\n setTheme(\"system\");\n },\n },\n }}\n />\n </List>\n )}\n <CurrentSystemUserButton\n clickable\n variant={sidebarOpen ? \"compact\" : \"image-only\"}\n />\n </div>\n </SidebarFooter>\n );\n}\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;SAegB,gBAAgB,CAAA,CAAA,CAAA;AAC9B,CAAA,CAAA,CAAA,CAAA,MAAM,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAA,CAAE,CAAA,CAAA,CAAG,UAAU,CAAA,CAAE;IACpC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,EAAE,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAE,QAAQ,CAAA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AA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACT,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAA,CAAA,CAC/C,CAAA,CAAA,CAAA,CACE,CAAA,CAAA,CACQ,CAAA;AAEpB;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CMSSidebarFooter.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function CMSSidebarHeader(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { useScreenSize } from '@studiocubics/hooks';
|
|
4
|
+
import { useSidebar, SidebarHeader, CubicsUILogo, Button } from '@studiocubics/components';
|
|
5
|
+
import styles from './CMSSidebarHeader.module.css.js';
|
|
6
|
+
import { cn } from '@studiocubics/utils';
|
|
7
|
+
import { PanelLeftClose, PanelLeftOpen } from 'lucide-react';
|
|
8
|
+
|
|
9
|
+
function CMSSidebarHeader() {
|
|
10
|
+
const { sidebarOpen, toggleSidebar } = useSidebar();
|
|
11
|
+
const screen = useScreenSize();
|
|
12
|
+
return (jsxs(SidebarHeader, { className: styles.root, children: [jsx("div", { className: styles.logoContainer, children: jsx(CubicsUILogo, { onlyFavicon: screen?.gtSmall ? !sidebarOpen : false, className: cn(styles.logo) }) }), jsx(Button, { square: true, onClick: toggleSidebar, children: sidebarOpen ? jsx(PanelLeftClose, {}) : jsx(PanelLeftOpen, {}) })] }));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { CMSSidebarHeader };
|
|
16
|
+
//# sourceMappingURL=CMSSidebarHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CMSSidebarHeader.js","sources":["../../../../../src/ui/Layout/CMSSidebar/CMSSidebarHeader/CMSSidebarHeader.tsx"],"sourcesContent":["\"use client\";\n\nimport { useScreenSize } from \"@studiocubics/hooks\";\nimport {\n Button,\n CubicsUILogo,\n SidebarHeader,\n useSidebar,\n} from \"@studiocubics/components\";\nimport styles from \"./CMSSidebarHeader.module.css\";\nimport { cn } from \"@studiocubics/utils\";\nimport { PanelLeftClose, PanelLeftOpen } from \"lucide-react\";\n\nexport function CMSSidebarHeader() {\n const { sidebarOpen, toggleSidebar } = useSidebar();\n const screen = useScreenSize();\n return (\n <SidebarHeader className={styles.root}>\n <div className={styles.logoContainer}>\n <CubicsUILogo\n onlyFavicon={screen?.gtSmall ? !sidebarOpen : false}\n className={cn(styles.logo)}\n />\n </div>\n <Button square onClick={toggleSidebar}>\n {sidebarOpen ? <PanelLeftClose /> : <PanelLeftOpen />}\n </Button>\n </SidebarHeader>\n );\n}\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;SAagB,gBAAgB,CAAA,CAAA,CAAA;IAC9B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,EAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAA,CAAE,aAAa,CAAA,CAAE,CAAA,CAAA,CAAG,UAAU,CAAA,CAAE;AACnD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAA,CAA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,CAAAA,CAAAA,CAAA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAA,CAAA,EAAA,CAAG,CAAA,CAAA,CAAGA,IAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,EAAA,CAAA,CAAA,CAAG,EAAA,CAC9C,CAAA,EAAA,CACK,CAAA;AAEpB;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CMSSidebarHeader.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function SignIn(): import("react/jsx-runtime").JSX.Element;
|