datastake-daf 0.6.554 → 0.6.555
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/hooks/index.js +16 -4655
- package/dist/layouts/index.css +1 -1
- package/dist/layouts/index.js +132 -0
- package/package.json +1 -1
- package/src/@daf/layouts/AuthLayout/components/NavbarComponent.jsx +53 -0
- package/src/@daf/layouts/AuthLayout/components/NavbarComponent.scss +51 -0
- package/src/@daf/layouts/AuthLayout/components/index.js +2 -0
- package/src/@daf/layouts/AuthLayout/index.jsx +137 -0
- package/src/@daf/layouts/AuthLayout/index.scss +415 -0
- package/src/layouts.js +2 -1
- package/build/favicon.ico +0 -0
- package/build/logo192.png +0 -0
- package/build/logo512.png +0 -0
- package/build/manifest.json +0 -25
- package/build/robots.txt +0 -3
- /package/public/assets/images/applications/{MMT Icon.svg → hatua-logo-small.svg} +0 -0
package/dist/layouts/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.index_components-layout__BppiJ{display:flex;flex-direction:row;height:100dvh;max-height:100dvh;overflow:hidden;width:100vw}.index_components-layout__BppiJ .index_layout-content-wrapper__ANOdo{display:flex;flex-direction:column;min-height:100dvh;width:100%}.index_layout-children__gWZas{background:#fff;flex:1;min-height:calc(100vh - 64px);overflow-y:auto;padding:24px;position:relative}@media (max-width:768px){.index_layout-children__gWZas{padding:16px}}.index_mod-name__ZAqSo{align-items:center;cursor:pointer;display:flex;gap:12px;padding:20px;transition:all .3s}.index_mod-name__ZAqSo.index_is-collapsed__4rEBC{justify-content:center;padding:20px 10px}.index_mod-name__ZAqSo.index_is-collapsed__4rEBC h1{display:none}.index_mod-name__ZAqSo .index_icon__tIPRE{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.index_mod-name__ZAqSo .index_icon__tIPRE img,.index_mod-name__ZAqSo .index_icon__tIPRE svg{height:100%;object-fit:contain;width:100%}.index_mod-name__ZAqSo h1{font-size:16px;font-weight:600;line-height:1.2;margin:0}.index_layout-header__uP-hH{align-items:center;box-shadow:0 2px 8px #00000026;display:flex;height:64px;justify-content:space-between;padding:0 24px;position:relative;z-index:1000}.index_layout-header__uP-hH .index_left-sidebar__rf0f7,.index_layout-header__uP-hH .index_right-sidebar__b2OCD{align-items:center;display:flex;gap:16px}.index_layout-header__uP-hH .index_left-sidebar__rf0f7{flex:1}.index_layout-header__uP-hH .index_trigger__UMbTb{cursor:pointer;font-size:18px;line-height:64px;margin:0 -24px 0 0;padding:0 24px;transition:color .3s}.index_layout-header__uP-hH .index_trigger__UMbTb:hover{color:#1890ff}.index_layout-header__uP-hH .index_desktop__sAat1{display:flex}@media (max-width:768px){.index_layout-header__uP-hH .index_desktop__sAat1{display:none}}.index_layout-header__uP-hH .index_mobile__exhDj{display:none}@media (max-width:768px){.index_layout-header__uP-hH .index_mobile__exhDj{align-items:center;cursor:pointer;display:flex}}.index_layout-header__uP-hH .index_mobile__exhDj img{height:32px;width:auto}.index_layout-header__uP-hH .index_notification-icon__rzMrK{align-items:center;cursor:pointer;display:flex;font-size:18px;padding:8px;position:relative;transition:color .3s}.index_layout-header__uP-hH .index_notification-icon__rzMrK:hover{color:#1890ff}.index_layout-header__uP-hH .index_notification-icon__rzMrK .index_noti-loader__OF-Nt{animation:index_pulse__tnSN4 2s infinite;background:#52c41a;border-radius:50%;height:8px;position:absolute;right:5px;top:5px;width:8px}.index_layout-header__uP-hH .index_notification-icon__rzMrK .index_noti-more-cont__Glzl6{align-items:center;background:#ff4d4f;border-radius:10px;color:#fff;display:flex;font-size:12px;font-weight:600;height:18px;justify-content:center;min-width:18px;padding:2px 6px;position:absolute;right:5px;top:5px}.index_layout-header__uP-hH .index_language-select__eSaHK{min-width:100px}.index_layout-header__uP-hH .index_language-select__eSaHK .index_ant-select-selector__G-MXN{background:#0000!important;border:none!important;box-shadow:none!important}.index_layout-header__uP-hH .index_language-select__eSaHK .index_row-cont__G2wqI{align-items:center;display:flex;gap:8px}.index_layout-header__uP-hH .index_user-details__TajEC{align-items:center;display:flex}.index_user-dropdown-layout__jsdUj.index_ant-dropdown__yk3cn .index_ant-dropdown-menu__-Vi2g{min-width:200px;padding:0}.index_user-dropdown-layout__jsdUj.index_ant-dropdown__yk3cn .index_ant-dropdown-menu__-Vi2g .index_ant-dropdown-menu-item__cxyFd{padding:0}.index_user-dropdown-layout__jsdUj.index_ant-dropdown__yk3cn .index_ant-dropdown-menu__-Vi2g .index_ant-dropdown-menu-item__cxyFd:hover{background:#0000}.index_user-dropdown-layout__jsdUj .index_drop-header__4udrF{border-bottom:1px solid #f0f0f0;padding:16px}.index_user-dropdown-layout__jsdUj .index_drop-header__4udrF h4{color:#262626;font-size:14px;font-weight:600;margin:0 0 4px}.index_user-dropdown-layout__jsdUj .index_drop-header__4udrF p{font-size:12px;margin:0}.index_user-dropdown-layout__jsdUj .index_list__JZPtv{padding:8px 0}.index_user-dropdown-layout__jsdUj .index_list__JZPtv .index_list-item__jgxiJ{color:#262626;cursor:pointer;font-size:14px;padding:10px 16px;transition:background .3s}.index_user-dropdown-layout__jsdUj .index_list__JZPtv .index_list-item__jgxiJ:hover{background:#f5f5f5}.index_dark-menu__oxCSP.index_ant-dropdown__yk3cn .index_ant-dropdown-menu__-Vi2g{padding:4px 0}.index_dark-menu__oxCSP.index_ant-dropdown__yk3cn .index_ant-dropdown-menu__-Vi2g .index_ant-dropdown-menu-item__cxyFd{align-items:center;display:flex;gap:8px;padding:8px 12px}.index_dark-menu__oxCSP.index_ant-dropdown__yk3cn .index_ant-dropdown-menu__-Vi2g .index_ant-dropdown-menu-item-disabled__8Zr1C{color:#ffffff4d;cursor:not-allowed}.index_dark-menu__oxCSP.index_ant-dropdown__yk3cn .index_ant-dropdown-menu__-Vi2g .index_ant-dropdown-menu-item-disabled__8Zr1C:hover{background:#0000}@keyframes index_pulse__tnSN4{0%{box-shadow:0 0 0 0 #52c41ab3}70%{box-shadow:0 0 0 6px #52c41a00}to{box-shadow:0 0 0 0 #52c41a00}}.index_sidenav-sider__hWcZw{display:flex;flex-direction:column;height:100dvh;position:relative;transition:all .3s;z-index:999}@media (max-width:768px){.index_sidenav-sider__hWcZw.index_desktop-sider__qQ7Y5{display:none}}.index_sidenav-sider__hWcZw .index_logo__ThlDP{padding:20px;text-align:center}.index_sidenav-sider__hWcZw .index_logo__ThlDP img{cursor:pointer;height:auto;max-height:40px;max-width:100%;object-fit:contain;transition:all .3s}.index_sidenav-sider__hWcZw .index_logo__ThlDP img:hover{opacity:.8}.index_sidenav-sider__hWcZw.index_sidenav-sider-collapsed__PBdKB{min-width:70px!important;width:70px!important}.index_sidenav-sider__hWcZw.index_sidenav-sider-collapsed__PBdKB .index_logo__ThlDP{padding:20px 10px}.index_sidenav-sider__hWcZw.index_sidenav-sider-collapsed__PBdKB .index_logo__ThlDP img{max-height:32px}.index_sidenav-sider__hWcZw.index_sidenav-sider-opened__tBCYr{min-width:250px;width:250px}.index_sidenav-menu__etWhC{flex:1;overflow-x:hidden;overflow-y:auto}.index_sidenav-menu__etWhC::-webkit-scrollbar{width:6px}.index_sidenav-menu__etWhC::-webkit-scrollbar-track{background:#0000}@media (max-width:768px){.index_components-layout__BppiJ .index_sidenav-sider__hWcZw.index_desktop-sider__qQ7Y5{display:none}.index_components-layout__BppiJ .index_layout-header__uP-hH{padding:0 16px}.index_components-layout__BppiJ .index_layout-header__uP-hH .index_left-sidebar__rf0f7,.index_components-layout__BppiJ .index_layout-header__uP-hH .index_right-sidebar__b2OCD{gap:12px}.index_components-layout__BppiJ .index_layout-children__gWZas,.index_user-dropdown-layout__jsdUj .index_drop-header__4udrF{padding:12px}.index_user-dropdown-layout__jsdUj .index_drop-header__4udrF h4{font-size:13px}.index_user-dropdown-layout__jsdUj .index_drop-header__4udrF p{font-size:11px}.index_user-dropdown-layout__jsdUj .index_list__JZPtv .index_list-item__jgxiJ{font-size:13px;padding:8px 12px}}@media (min-width:1920px){.index_layout-children__gWZas{margin:0 auto;max-width:1600px}}
|
|
1
|
+
.index_components-layout__BppiJ{display:flex;flex-direction:row;height:100dvh;max-height:100dvh;overflow:hidden;width:100vw}.index_components-layout__BppiJ .index_layout-content-wrapper__ANOdo{display:flex;flex-direction:column;min-height:100dvh;width:100%}.index_layout-children__gWZas{background:#fff;flex:1;min-height:calc(100vh - 64px);overflow-y:auto;padding:24px;position:relative}@media (max-width:768px){.index_layout-children__gWZas{padding:16px}}.index_mod-name__ZAqSo{align-items:center;cursor:pointer;display:flex;gap:12px;padding:20px;transition:all .3s}.index_mod-name__ZAqSo.index_is-collapsed__4rEBC{justify-content:center;padding:20px 10px}.index_mod-name__ZAqSo.index_is-collapsed__4rEBC h1{display:none}.index_mod-name__ZAqSo .index_icon__tIPRE{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.index_mod-name__ZAqSo .index_icon__tIPRE img,.index_mod-name__ZAqSo .index_icon__tIPRE svg{height:100%;object-fit:contain;width:100%}.index_mod-name__ZAqSo h1{font-size:16px;font-weight:600;line-height:1.2;margin:0}.index_layout-header__uP-hH{align-items:center;box-shadow:0 2px 8px #00000026;display:flex;height:64px;justify-content:space-between;padding:0 24px;position:relative;z-index:1000}.index_layout-header__uP-hH .index_left-sidebar__rf0f7,.index_layout-header__uP-hH .index_right-sidebar__b2OCD{align-items:center;display:flex;gap:16px}.index_layout-header__uP-hH .index_left-sidebar__rf0f7{flex:1}.index_layout-header__uP-hH .index_trigger__UMbTb{cursor:pointer;font-size:18px;line-height:64px;margin:0 -24px 0 0;padding:0 24px;transition:color .3s}.index_layout-header__uP-hH .index_trigger__UMbTb:hover{color:#1890ff}.index_layout-header__uP-hH .index_desktop__sAat1{display:flex}@media (max-width:768px){.index_layout-header__uP-hH .index_desktop__sAat1{display:none}}.index_layout-header__uP-hH .index_mobile__exhDj{display:none}@media (max-width:768px){.index_layout-header__uP-hH .index_mobile__exhDj{align-items:center;cursor:pointer;display:flex}}.index_layout-header__uP-hH .index_mobile__exhDj img{height:32px;width:auto}.index_layout-header__uP-hH .index_notification-icon__rzMrK{align-items:center;cursor:pointer;display:flex;font-size:18px;padding:8px;position:relative;transition:color .3s}.index_layout-header__uP-hH .index_notification-icon__rzMrK:hover{color:#1890ff}.index_layout-header__uP-hH .index_notification-icon__rzMrK .index_noti-loader__OF-Nt{animation:index_pulse__tnSN4 2s infinite;background:#52c41a;border-radius:50%;height:8px;position:absolute;right:5px;top:5px;width:8px}.index_layout-header__uP-hH .index_notification-icon__rzMrK .index_noti-more-cont__Glzl6{align-items:center;background:#ff4d4f;border-radius:10px;color:#fff;display:flex;font-size:12px;font-weight:600;height:18px;justify-content:center;min-width:18px;padding:2px 6px;position:absolute;right:5px;top:5px}.index_layout-header__uP-hH .index_language-select__eSaHK{min-width:100px}.index_layout-header__uP-hH .index_language-select__eSaHK .index_ant-select-selector__G-MXN{background:#0000!important;border:none!important;box-shadow:none!important}.index_layout-header__uP-hH .index_language-select__eSaHK .index_row-cont__G2wqI{align-items:center;display:flex;gap:8px}.index_layout-header__uP-hH .index_user-details__TajEC{align-items:center;display:flex}.index_user-dropdown-layout__jsdUj.index_ant-dropdown__yk3cn .index_ant-dropdown-menu__-Vi2g{min-width:200px;padding:0}.index_user-dropdown-layout__jsdUj.index_ant-dropdown__yk3cn .index_ant-dropdown-menu__-Vi2g .index_ant-dropdown-menu-item__cxyFd{padding:0}.index_user-dropdown-layout__jsdUj.index_ant-dropdown__yk3cn .index_ant-dropdown-menu__-Vi2g .index_ant-dropdown-menu-item__cxyFd:hover{background:#0000}.index_user-dropdown-layout__jsdUj .index_drop-header__4udrF{border-bottom:1px solid #f0f0f0;padding:16px}.index_user-dropdown-layout__jsdUj .index_drop-header__4udrF h4{color:#262626;font-size:14px;font-weight:600;margin:0 0 4px}.index_user-dropdown-layout__jsdUj .index_drop-header__4udrF p{font-size:12px;margin:0}.index_user-dropdown-layout__jsdUj .index_list__JZPtv{padding:8px 0}.index_user-dropdown-layout__jsdUj .index_list__JZPtv .index_list-item__jgxiJ{color:#262626;cursor:pointer;font-size:14px;padding:10px 16px;transition:background .3s}.index_user-dropdown-layout__jsdUj .index_list__JZPtv .index_list-item__jgxiJ:hover{background:#f5f5f5}.index_dark-menu__oxCSP.index_ant-dropdown__yk3cn .index_ant-dropdown-menu__-Vi2g{padding:4px 0}.index_dark-menu__oxCSP.index_ant-dropdown__yk3cn .index_ant-dropdown-menu__-Vi2g .index_ant-dropdown-menu-item__cxyFd{align-items:center;display:flex;gap:8px;padding:8px 12px}.index_dark-menu__oxCSP.index_ant-dropdown__yk3cn .index_ant-dropdown-menu__-Vi2g .index_ant-dropdown-menu-item-disabled__8Zr1C{color:#ffffff4d;cursor:not-allowed}.index_dark-menu__oxCSP.index_ant-dropdown__yk3cn .index_ant-dropdown-menu__-Vi2g .index_ant-dropdown-menu-item-disabled__8Zr1C:hover{background:#0000}@keyframes index_pulse__tnSN4{0%{box-shadow:0 0 0 0 #52c41ab3}70%{box-shadow:0 0 0 6px #52c41a00}to{box-shadow:0 0 0 0 #52c41a00}}.index_sidenav-sider__hWcZw{display:flex;flex-direction:column;height:100dvh;position:relative;transition:all .3s;z-index:999}@media (max-width:768px){.index_sidenav-sider__hWcZw.index_desktop-sider__qQ7Y5{display:none}}.index_sidenav-sider__hWcZw .index_logo__ThlDP{padding:20px;text-align:center}.index_sidenav-sider__hWcZw .index_logo__ThlDP img{cursor:pointer;height:auto;max-height:40px;max-width:100%;object-fit:contain;transition:all .3s}.index_sidenav-sider__hWcZw .index_logo__ThlDP img:hover{opacity:.8}.index_sidenav-sider__hWcZw.index_sidenav-sider-collapsed__PBdKB{min-width:70px!important;width:70px!important}.index_sidenav-sider__hWcZw.index_sidenav-sider-collapsed__PBdKB .index_logo__ThlDP{padding:20px 10px}.index_sidenav-sider__hWcZw.index_sidenav-sider-collapsed__PBdKB .index_logo__ThlDP img{max-height:32px}.index_sidenav-sider__hWcZw.index_sidenav-sider-opened__tBCYr{min-width:250px;width:250px}.index_sidenav-menu__etWhC{flex:1;overflow-x:hidden;overflow-y:auto}.index_sidenav-menu__etWhC::-webkit-scrollbar{width:6px}.index_sidenav-menu__etWhC::-webkit-scrollbar-track{background:#0000}@media (max-width:768px){.index_components-layout__BppiJ .index_sidenav-sider__hWcZw.index_desktop-sider__qQ7Y5{display:none}.index_components-layout__BppiJ .index_layout-header__uP-hH{padding:0 16px}.index_components-layout__BppiJ .index_layout-header__uP-hH .index_left-sidebar__rf0f7,.index_components-layout__BppiJ .index_layout-header__uP-hH .index_right-sidebar__b2OCD{gap:12px}.index_components-layout__BppiJ .index_layout-children__gWZas,.index_user-dropdown-layout__jsdUj .index_drop-header__4udrF{padding:12px}.index_user-dropdown-layout__jsdUj .index_drop-header__4udrF h4{font-size:13px}.index_user-dropdown-layout__jsdUj .index_drop-header__4udrF p{font-size:11px}.index_user-dropdown-layout__jsdUj .index_list__JZPtv .index_list-item__jgxiJ{font-size:13px;padding:8px 12px}}@media (min-width:1920px){.index_layout-children__gWZas{margin:0 auto;max-width:1600px}}.index_auth-layout__TBWUk{background-color:#fff;display:flex;flex-direction:column;font-family:Outfit,sans-serif;min-height:100vh;position:relative;width:100%}.index_auth-layout__TBWUk .index_auth-top-header__6CyDg{align-items:center;background:#fff;border-bottom:1px solid #f2f2f2;display:flex;justify-content:space-between;padding:16px 32px;width:100%}.index_auth-layout__TBWUk .index_auth-top-header__6CyDg .index_left__doYes{align-items:center;display:flex}.index_auth-layout__TBWUk .index_auth-top-header__6CyDg .index_left__doYes .index_top-header-logo-combined__j8cWN{height:28px;object-fit:contain}.index_auth-layout__TBWUk .index_auth-top-header__6CyDg .index_right__GUqRV{align-items:center;display:flex;gap:12px}.index_auth-layout__TBWUk .index_auth-top-header__6CyDg .index_right__GUqRV .index_back-btn__JUCGS{background:#0000;border:1px solid #d0d5dd;border-radius:20px;color:#101828;font-size:14px;padding:6px 16px;transition:.2s}.index_auth-layout__TBWUk .index_auth-top-header__6CyDg .index_right__GUqRV .index_back-btn__JUCGS:hover{background:#f9fafb}@media (max-width:768px){.index_auth-layout__TBWUk .index_auth-top-header__6CyDg{padding:12px 16px}.index_auth-layout__TBWUk .index_auth-top-header__6CyDg .index_top-header-logo-combined__j8cWN{height:22px}}.index_auth-layout__TBWUk .index_auth-language-selector__5ZdL-{position:absolute;right:24px;top:24px;z-index:10}@media (max-width:768px){.index_auth-layout__TBWUk .index_auth-language-selector__5ZdL-{right:16px;top:16px}}.index_auth-layout__TBWUk .index_auth-language-selector__5ZdL- .index_language-select__GVetE{min-width:100px}.index_auth-layout__TBWUk .index_auth-language-selector__5ZdL- .index_language-select__GVetE .index_ant-select-selector__y2ifz{background:#fff!important;border:1px solid #d0d5dd!important;border-radius:8px!important;box-shadow:0 1px 2px #1018280d!important;height:auto!important;padding:4px 12px!important}.index_auth-layout__TBWUk .index_auth-language-selector__5ZdL- .index_language-select__GVetE .index_ant-select-arrow__cum9e{color:#667085}.index_auth-layout__TBWUk .index_auth-language-selector__5ZdL- .index_language-select__GVetE .index_row-cont__s4j7p{align-items:center;display:flex;gap:8px}.index_auth-layout__TBWUk .index_language-select-popup__45s-D.index_ant-select-dropdown__s9Ec2{border-radius:8px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.index_auth-layout__TBWUk .index_language-select-popup__45s-D.index_ant-select-dropdown__s9Ec2 .index_ant-select-item__o4beY{padding:8px 12px}.index_auth-layout__TBWUk .index_language-select-popup__45s-D.index_ant-select-dropdown__s9Ec2 .index_ant-select-item__o4beY:hover{background:#f9fafb}.index_auth-layout__TBWUk .index_language-select-popup__45s-D.index_ant-select-dropdown__s9Ec2 .index_ant-select-item-option-selected__sOrAw{background:#f3f4f6;font-weight:500}.index_auth-layout__TBWUk .index_main-cont__0l-IY{display:flex;flex:1;flex-direction:row;justify-content:center;min-height:100vh}@media (max-width:768px){.index_auth-layout__TBWUk .index_main-cont__0l-IY{flex-direction:column;justify-content:flex-start}}.index_auth-layout__TBWUk .index_main-cont__0l-IY .index_d-cont__FOHiz{display:flex;flex:1;flex-direction:column}.index_auth-layout__TBWUk .index_main-cont__0l-IY .index_d-cont__FOHiz.index_left__doYes{display:flex;height:100dvh;justify-content:center;overflow-y:auto;padding:6rem 0}@media (max-width:768px){.index_auth-layout__TBWUk .index_main-cont__0l-IY .index_d-cont__FOHiz.index_left__doYes{height:unset;overflow-y:hidden;padding:3rem 2rem}}.index_auth-layout__TBWUk .index_main-cont__0l-IY .index_d-cont__FOHiz.index_left__doYes .index_main__bMQeF{display:flex;flex-direction:column;justify-content:center;margin:0 auto;max-width:100%;width:350px}@media (max-width:768px){.index_auth-layout__TBWUk .index_main-cont__0l-IY .index_d-cont__FOHiz.index_left__doYes .index_main__bMQeF{padding:0;width:100%}}.index_auth-layout__TBWUk .index_main-cont__0l-IY .index_d-cont__FOHiz.index_left__doYes .index_main__bMQeF .index_left-header__nHGiG{margin-bottom:32px;text-align:start}.index_auth-layout__TBWUk .index_main-cont__0l-IY .index_d-cont__FOHiz.index_left__doYes .index_main__bMQeF .index_left-header__nHGiG img.index_app-logo__mYi8B{display:block;height:auto;margin-bottom:32px;margin-left:auto;margin-right:auto;max-width:200px;width:136px}.index_auth-layout__TBWUk .index_main-cont__0l-IY .index_d-cont__FOHiz.index_left__doYes .index_main__bMQeF .index_left-header__nHGiG h2{color:#101828;font-size:36px;font-weight:700;line-height:44px;margin-bottom:8px}@media (max-width:768px){.index_auth-layout__TBWUk .index_main-cont__0l-IY .index_d-cont__FOHiz.index_left__doYes .index_main__bMQeF .index_left-header__nHGiG h2{font-size:28px;line-height:36px}}.index_auth-layout__TBWUk .index_main-cont__0l-IY .index_d-cont__FOHiz.index_left__doYes .index_main__bMQeF .index_left-header__nHGiG p{color:#667085;font-size:16px;line-height:24px;margin-bottom:0}@media (max-width:768px){.index_auth-layout__TBWUk .index_main-cont__0l-IY .index_d-cont__FOHiz.index_left__doYes .index_main__bMQeF .index_left-header__nHGiG p{font-size:14px}}.index_auth-layout__TBWUk .index_main-cont__0l-IY .index_d-cont__FOHiz.index_left__doYes .index_main__bMQeF .index_dots__cDCDT{display:flex;gap:8px;justify-content:center;margin-top:32px}.index_auth-layout__TBWUk .index_main-cont__0l-IY .index_d-cont__FOHiz.index_left__doYes .index_main__bMQeF .index_dots__cDCDT .index_dot__WQm4x{background:#e5e7eb;border-radius:6px;height:12px;transition:width .4s,background .4s;width:12px}.index_auth-layout__TBWUk .index_main-cont__0l-IY .index_d-cont__FOHiz.index_left__doYes .index_main__bMQeF .index_dots__cDCDT .index_dot__WQm4x.index_active__4YD0E{background:#3b82f6;width:35px}.index_auth-layout__TBWUk .index_main-cont__0l-IY .index_d-cont__FOHiz.index_right__GUqRV{background-position:50%;background-repeat:no-repeat;background-size:cover;display:flex;flex-direction:column;padding:0;position:relative}@media (max-width:768px){.index_auth-layout__TBWUk .index_main-cont__0l-IY .index_d-cont__FOHiz.index_right__GUqRV{display:none}}.index_auth-layout__TBWUk .index_main-cont__0l-IY .index_d-cont__FOHiz.index_right__GUqRV .index_right-img__Jvjyp{background-position:50%;background-repeat:no-repeat;background-size:cover;flex:1;height:100%;min-height:100vh;width:100%}@media (max-width:1200px){.index_auth-layout__TBWUk .index_main-cont__0l-IY .index_d-cont__FOHiz.index_right__GUqRV .index_right-img__Jvjyp{min-height:100vh}}.index_auth-layout__TBWUk .index_d-cont__FOHiz.index_left__doYes a{color:#3b82f6;text-decoration:none;transition:color .2s}.index_auth-layout__TBWUk .index_d-cont__FOHiz.index_left__doYes a:hover{color:#2563eb}.index_auth-layout__TBWUk .index_d-cont__FOHiz.index_left__doYes .index_ant-form-item-required__Jn6Sc:before{content:unset!important}.index_auth-layout__TBWUk .index_d-cont__FOHiz.index_left__doYes .index_ant-input__Bw6wz{border:1px solid #e5e7eb;border-radius:6px;font-size:14px;font-weight:400;padding:10px 12px;transition:border-color .2s}.index_auth-layout__TBWUk .index_d-cont__FOHiz.index_left__doYes .index_ant-input__Bw6wz:hover{border-color:#d1d5db}.index_auth-layout__TBWUk .index_d-cont__FOHiz.index_left__doYes .index_ant-input__Bw6wz:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.index_auth-layout__TBWUk .index_d-cont__FOHiz.index_left__doYes .index_ant-input-affix-wrapper__ldFFY{border:1px solid #e5e7eb;border-radius:8px;padding:11px 14px}.index_auth-layout__TBWUk .index_d-cont__FOHiz.index_left__doYes .index_ant-input-affix-wrapper__ldFFY .index_ant-input__Bw6wz{border:unset;border-radius:unset;padding:0}.index_auth-layout__TBWUk .index_d-cont__FOHiz.index_left__doYes .index_ant-input-affix-wrapper__ldFFY .index_ant-input-prefix__sxVVt{color:#a4a4a4;margin-right:10px}.index_auth-layout__TBWUk .index_d-cont__FOHiz.index_left__doYes .index_ant-select-selector__y2ifz{border:1px solid #e5e7eb!important;border-radius:6px!important;font-size:14px;font-weight:400;height:fit-content!important;padding:4px 12px!important;transition:border-color .2s!important}.index_auth-layout__TBWUk .index_d-cont__FOHiz.index_left__doYes .index_ant-select-selector__y2ifz .index_ant-select-selection-search__Ur-Sf{display:flex;flex-direction:column;justify-content:center}.index_auth-layout__TBWUk .index_d-cont__FOHiz.index_left__doYes .index_ant-select__Ex-5-:hover .index_ant-select-selector__y2ifz{border-color:#d1d5db!important}.index_auth-layout__TBWUk .index_d-cont__FOHiz.index_left__doYes .index_ant-select-focused__bL1-V .index_ant-select-selector__y2ifz{border-color:#3b82f6!important;box-shadow:0 0 0 3px #3b82f61a!important}.index_auth-layout__TBWUk .index_d-cont__FOHiz.index_left__doYes .index_buttons__qBDDT{display:flex;flex-direction:column;gap:12px;margin-top:24px}.index_auth-layout__TBWUk .index_d-cont__FOHiz.index_left__doYes .index_bottom__VJ0no{display:flex;flex-direction:column;gap:4px;margin-top:10px}.index_auth-layout__TBWUk .index_d-cont__FOHiz.index_left__doYes .index_bottom__VJ0no p{color:#667085;font-size:14px;line-height:20px;margin-bottom:0}@media (max-width:575px){.index_auth-layout__TBWUk .index_d-cont__FOHiz.index_left__doYes .index_ant-form-item__YgJNa{flex-direction:row!important}}@keyframes index_slideLeft__Oochc{0%{opacity:0;transform:translate(-10%)}to{opacity:1;transform:translate(0)}}@keyframes index_slideRight__GBjaP{0%{opacity:0;transform:translate(10%)}to{opacity:1;transform:translate(0)}}.index_auth-layout__TBWUk .index_d-cont__FOHiz.index_left__doYes{animation:index_slideRight__GBjaP .7s forwards}.index_auth-layout__TBWUk .index_d-cont__FOHiz.index_right__GUqRV{animation:index_slideLeft__Oochc .7s forwards}.index_auth-layout__TBWUk.index_sbg__ii-t-{--primary-color:#f04438}.index_auth-layout__TBWUk.index_sbg__ii-t- .index_ant-btn-primary__NYvTj{background:var(--primary-color);border-color:var(--primary-color)}.index_auth-layout__TBWUk.index_sbg__ii-t- .index_d-cont__FOHiz.index_right__GUqRV{background-image:url(/assets/sbg-images/sbg-bg.png)}.index_auth-layout__TBWUk.index_nashiriki__4ggGj{--primary-color:#004b91}.index_auth-layout__TBWUk.index_nashiriki__4ggGj .index_ant-btn-primary__NYvTj{background:var(--primary-color);border-color:var(--primary-color)}.index_auth-layout__TBWUk.index_nashiriki__4ggGj .index_d-cont__FOHiz.index_right__GUqRV{background-image:url(/assets/nashiriki-images/nashiriki-bg.png)}
|
package/dist/layouts/index.js
CHANGED
|
@@ -7289,4 +7289,136 @@ function AppLayout({
|
|
|
7289
7289
|
});
|
|
7290
7290
|
}
|
|
7291
7291
|
|
|
7292
|
+
/* eslint-disable react/prop-types */
|
|
7293
|
+
const AuthLayout = ({
|
|
7294
|
+
children,
|
|
7295
|
+
NavbarComponent,
|
|
7296
|
+
StyleComponent,
|
|
7297
|
+
t = key => key,
|
|
7298
|
+
title = "Welcome Back",
|
|
7299
|
+
subTitle = "Please introduce yourself",
|
|
7300
|
+
header,
|
|
7301
|
+
logo,
|
|
7302
|
+
appName = "default",
|
|
7303
|
+
containerClassName = "",
|
|
7304
|
+
leftClassName = "",
|
|
7305
|
+
rightClassName = "",
|
|
7306
|
+
rightImgClassName = "",
|
|
7307
|
+
rightImageUrl,
|
|
7308
|
+
showNavbar = false,
|
|
7309
|
+
navbarProps = {},
|
|
7310
|
+
additionalContent,
|
|
7311
|
+
languageConfig = [{
|
|
7312
|
+
value: "en",
|
|
7313
|
+
label: "EN",
|
|
7314
|
+
flagUrl: "/assets/images/countries/gb.png"
|
|
7315
|
+
}, {
|
|
7316
|
+
value: "fr",
|
|
7317
|
+
label: "FR",
|
|
7318
|
+
flagUrl: "/assets/images/countries/fr.png"
|
|
7319
|
+
}, {
|
|
7320
|
+
value: "sp",
|
|
7321
|
+
label: "ES",
|
|
7322
|
+
flagUrl: "/assets/images/countries/sp.png"
|
|
7323
|
+
}],
|
|
7324
|
+
updateLanguage,
|
|
7325
|
+
showLanguageSelector = false,
|
|
7326
|
+
showTopHeader = false,
|
|
7327
|
+
// shows the header bar (logo image + language + back)
|
|
7328
|
+
topHeaderLogo,
|
|
7329
|
+
// full logo image (contains both icon and text)
|
|
7330
|
+
onBack,
|
|
7331
|
+
// callback when “Back” clicked
|
|
7332
|
+
showBack = false,
|
|
7333
|
+
// show/hide back button
|
|
7334
|
+
backLabel = "Back"
|
|
7335
|
+
}) => {
|
|
7336
|
+
/** Header block (single logo image + back + language) */
|
|
7337
|
+
const renderTopHeader = () => {
|
|
7338
|
+
if (!showTopHeader) return null;
|
|
7339
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
7340
|
+
className: "auth-top-header",
|
|
7341
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7342
|
+
className: "left",
|
|
7343
|
+
children: topHeaderLogo && /*#__PURE__*/jsxRuntime.jsx("img", {
|
|
7344
|
+
className: "top-header-logo-combined",
|
|
7345
|
+
src: topHeaderLogo,
|
|
7346
|
+
alt: `${appName} logo`
|
|
7347
|
+
})
|
|
7348
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
7349
|
+
className: "right",
|
|
7350
|
+
children: [showLanguageSelector && updateLanguage && /*#__PURE__*/jsxRuntime.jsx(antd.Select, {
|
|
7351
|
+
className: "language-select",
|
|
7352
|
+
defaultValue: localStorage.getItem("datastakeLng") || "en",
|
|
7353
|
+
bordered: false,
|
|
7354
|
+
onChange: lng => updateLanguage(lng),
|
|
7355
|
+
popupClassName: formatClassname(["language-select-popup", appName]),
|
|
7356
|
+
children: languageConfig.map(lang => /*#__PURE__*/jsxRuntime.jsx(antd.Select.Option, {
|
|
7357
|
+
value: lang.value,
|
|
7358
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
7359
|
+
className: "row-cont flex items-center gap-2",
|
|
7360
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("img", {
|
|
7361
|
+
src: lang.flagUrl,
|
|
7362
|
+
alt: lang.label,
|
|
7363
|
+
style: {
|
|
7364
|
+
width: 20,
|
|
7365
|
+
height: 12
|
|
7366
|
+
}
|
|
7367
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
7368
|
+
children: lang.label
|
|
7369
|
+
})]
|
|
7370
|
+
})
|
|
7371
|
+
}, lang.value))
|
|
7372
|
+
}), showBack && /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
7373
|
+
className: "back-btn",
|
|
7374
|
+
onClick: onBack,
|
|
7375
|
+
children: backLabel
|
|
7376
|
+
})]
|
|
7377
|
+
})]
|
|
7378
|
+
});
|
|
7379
|
+
};
|
|
7380
|
+
const renderHeader = () => header ? header : /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
7381
|
+
className: "left-header",
|
|
7382
|
+
children: [logo && /*#__PURE__*/jsxRuntime.jsx("img", {
|
|
7383
|
+
className: "app-logo",
|
|
7384
|
+
src: logo,
|
|
7385
|
+
alt: `${appName} logo`
|
|
7386
|
+
}), title && /*#__PURE__*/jsxRuntime.jsx("h2", {
|
|
7387
|
+
children: t(title)
|
|
7388
|
+
}), subTitle && /*#__PURE__*/jsxRuntime.jsx("p", {
|
|
7389
|
+
children: typeof subTitle === "string" ? t(subTitle) : subTitle
|
|
7390
|
+
})]
|
|
7391
|
+
});
|
|
7392
|
+
const layoutContent = /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
7393
|
+
className: "main-cont",
|
|
7394
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7395
|
+
className: formatClassname(["d-cont left", leftClassName]),
|
|
7396
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
7397
|
+
className: "main",
|
|
7398
|
+
children: [renderHeader(), children, additionalContent]
|
|
7399
|
+
})
|
|
7400
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7401
|
+
className: formatClassname(["d-cont right", rightClassName]),
|
|
7402
|
+
style: rightImageUrl ? {
|
|
7403
|
+
backgroundImage: `url(${rightImageUrl})`,
|
|
7404
|
+
backgroundSize: "cover"
|
|
7405
|
+
} : {},
|
|
7406
|
+
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7407
|
+
className: formatClassname(["right-img", rightImgClassName])
|
|
7408
|
+
})
|
|
7409
|
+
})]
|
|
7410
|
+
});
|
|
7411
|
+
const Wrapper = StyleComponent || "div";
|
|
7412
|
+
const wrapperClassName = formatClassname(["auth-layout", appName, containerClassName]);
|
|
7413
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
7414
|
+
children: [showNavbar && NavbarComponent && /*#__PURE__*/jsxRuntime.jsx(NavbarComponent, {
|
|
7415
|
+
...navbarProps
|
|
7416
|
+
}), /*#__PURE__*/jsxRuntime.jsxs(Wrapper, {
|
|
7417
|
+
className: wrapperClassName,
|
|
7418
|
+
children: [renderTopHeader(), layoutContent]
|
|
7419
|
+
})]
|
|
7420
|
+
});
|
|
7421
|
+
};
|
|
7422
|
+
|
|
7292
7423
|
exports.AppLayout = AppLayout;
|
|
7424
|
+
exports.AuthLayout = AuthLayout;
|
package/package.json
CHANGED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* eslint-disable react/prop-types */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { formatClassname } from '../../../../helpers/ClassesHelper.js';
|
|
4
|
+
import './NavbarComponent.scss';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* NavbarComponent for AuthLayout
|
|
8
|
+
*
|
|
9
|
+
* A simple, reusable navbar component that can be used with AuthLayout
|
|
10
|
+
*
|
|
11
|
+
* @param {Object} props
|
|
12
|
+
* @param {React.ReactNode} props.leftContent - Content to display on the left side
|
|
13
|
+
* @param {React.ReactNode} props.rightContent - Content to display on the right side
|
|
14
|
+
* @param {string} props.className - Additional CSS classes
|
|
15
|
+
* @param {string} props.logo - Logo image URL
|
|
16
|
+
* @param {string} props.logoAlt - Alt text for logo
|
|
17
|
+
* @param {Function} props.onLogoClick - Callback when logo is clicked
|
|
18
|
+
* @param {boolean} props.bordered - Whether to show bottom border
|
|
19
|
+
*/
|
|
20
|
+
const NavbarComponent = ({
|
|
21
|
+
leftContent,
|
|
22
|
+
rightContent,
|
|
23
|
+
className = '',
|
|
24
|
+
logo,
|
|
25
|
+
logoAlt = 'Logo',
|
|
26
|
+
onLogoClick,
|
|
27
|
+
bordered = false,
|
|
28
|
+
}) => {
|
|
29
|
+
return (
|
|
30
|
+
<div className={formatClassname(['auth-navbar', bordered && 'bordered', className])}>
|
|
31
|
+
<div className="auth-navbar-container">
|
|
32
|
+
<div className="auth-navbar-left">
|
|
33
|
+
{logo && (
|
|
34
|
+
<img
|
|
35
|
+
src={logo}
|
|
36
|
+
alt={logoAlt}
|
|
37
|
+
className="auth-navbar-logo"
|
|
38
|
+
onClick={onLogoClick}
|
|
39
|
+
style={{ cursor: onLogoClick ? 'pointer' : 'default' }}
|
|
40
|
+
/>
|
|
41
|
+
)}
|
|
42
|
+
{leftContent}
|
|
43
|
+
</div>
|
|
44
|
+
<div className="auth-navbar-right">
|
|
45
|
+
{rightContent}
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export default NavbarComponent;
|
|
53
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.auth-navbar {
|
|
2
|
+
width: 100%;
|
|
3
|
+
padding: 1rem 2rem;
|
|
4
|
+
background-color: transparent;
|
|
5
|
+
transition: all 0.3s ease;
|
|
6
|
+
|
|
7
|
+
&.bordered {
|
|
8
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.auth-navbar-container {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
max-width: 1400px;
|
|
16
|
+
margin: 0 auto;
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.auth-navbar-left {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
gap: 1rem;
|
|
24
|
+
|
|
25
|
+
.auth-navbar-logo {
|
|
26
|
+
height: 40px;
|
|
27
|
+
width: auto;
|
|
28
|
+
object-fit: contain;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.auth-navbar-right {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
gap: 1rem;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Responsive styles
|
|
40
|
+
@media (max-width: 768px) {
|
|
41
|
+
.auth-navbar {
|
|
42
|
+
padding: 0.75rem 1rem;
|
|
43
|
+
|
|
44
|
+
.auth-navbar-left {
|
|
45
|
+
.auth-navbar-logo {
|
|
46
|
+
height: 32px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/* eslint-disable react/prop-types */
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Select } from "antd";
|
|
4
|
+
import { formatClassname } from "../../../helpers/ClassesHelper.js";
|
|
5
|
+
import "./index.scss";
|
|
6
|
+
|
|
7
|
+
const AuthLayout = ({
|
|
8
|
+
children,
|
|
9
|
+
NavbarComponent,
|
|
10
|
+
StyleComponent,
|
|
11
|
+
t = (key) => key,
|
|
12
|
+
title = "Welcome Back",
|
|
13
|
+
subTitle = "Please introduce yourself",
|
|
14
|
+
header,
|
|
15
|
+
logo,
|
|
16
|
+
appName = "default",
|
|
17
|
+
containerClassName = "",
|
|
18
|
+
leftClassName = "",
|
|
19
|
+
rightClassName = "",
|
|
20
|
+
rightImgClassName = "",
|
|
21
|
+
rightImageUrl,
|
|
22
|
+
showNavbar = false,
|
|
23
|
+
navbarProps = {},
|
|
24
|
+
additionalContent,
|
|
25
|
+
languageConfig = [
|
|
26
|
+
{ value: "en", label: "EN", flagUrl: "/assets/images/countries/gb.png" },
|
|
27
|
+
{ value: "fr", label: "FR", flagUrl: "/assets/images/countries/fr.png" },
|
|
28
|
+
{ value: "sp", label: "ES", flagUrl: "/assets/images/countries/sp.png" },
|
|
29
|
+
],
|
|
30
|
+
updateLanguage,
|
|
31
|
+
showLanguageSelector = false,
|
|
32
|
+
|
|
33
|
+
showTopHeader = false, // shows the header bar (logo image + language + back)
|
|
34
|
+
topHeaderLogo, // full logo image (contains both icon and text)
|
|
35
|
+
onBack, // callback when “Back” clicked
|
|
36
|
+
showBack = false, // show/hide back button
|
|
37
|
+
backLabel = "Back",
|
|
38
|
+
}) => {
|
|
39
|
+
|
|
40
|
+
/** Header block (single logo image + back + language) */
|
|
41
|
+
const renderTopHeader = () => {
|
|
42
|
+
if (!showTopHeader) return null;
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
<div className="auth-top-header">
|
|
46
|
+
<div className="left">
|
|
47
|
+
{topHeaderLogo && (
|
|
48
|
+
<img
|
|
49
|
+
className="top-header-logo-combined"
|
|
50
|
+
src={topHeaderLogo}
|
|
51
|
+
alt={`${appName} logo`}
|
|
52
|
+
/>
|
|
53
|
+
)}
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
<div className="right">
|
|
57
|
+
{showLanguageSelector && updateLanguage && (
|
|
58
|
+
<Select
|
|
59
|
+
className="language-select"
|
|
60
|
+
defaultValue={localStorage.getItem("datastakeLng") || "en"}
|
|
61
|
+
bordered={false}
|
|
62
|
+
onChange={(lng) => updateLanguage(lng)}
|
|
63
|
+
popupClassName={formatClassname(["language-select-popup", appName])}
|
|
64
|
+
>
|
|
65
|
+
{languageConfig.map((lang) => (
|
|
66
|
+
<Select.Option key={lang.value} value={lang.value}>
|
|
67
|
+
<div className="row-cont flex items-center gap-2">
|
|
68
|
+
<img
|
|
69
|
+
src={lang.flagUrl}
|
|
70
|
+
alt={lang.label}
|
|
71
|
+
style={{ width: 20, height: 12 }}
|
|
72
|
+
/>
|
|
73
|
+
<span>{lang.label}</span>
|
|
74
|
+
</div>
|
|
75
|
+
</Select.Option>
|
|
76
|
+
))}
|
|
77
|
+
</Select>
|
|
78
|
+
)}
|
|
79
|
+
|
|
80
|
+
{showBack && (
|
|
81
|
+
<button className="back-btn" onClick={onBack}>
|
|
82
|
+
{backLabel}
|
|
83
|
+
</button>
|
|
84
|
+
)}
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
);
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const renderHeader = () =>
|
|
91
|
+
header ? (
|
|
92
|
+
header
|
|
93
|
+
) : (
|
|
94
|
+
<div className="left-header">
|
|
95
|
+
{logo && <img className="app-logo" src={logo} alt={`${appName} logo`} />}
|
|
96
|
+
{title && <h2>{t(title)}</h2>}
|
|
97
|
+
{subTitle && <p>{typeof subTitle === "string" ? t(subTitle) : subTitle}</p>}
|
|
98
|
+
</div>
|
|
99
|
+
);
|
|
100
|
+
|
|
101
|
+
const layoutContent = (
|
|
102
|
+
<div className="main-cont">
|
|
103
|
+
<div className={formatClassname(["d-cont left", leftClassName])}>
|
|
104
|
+
<div className="main">
|
|
105
|
+
{renderHeader()}
|
|
106
|
+
{children}
|
|
107
|
+
{additionalContent}
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
<div
|
|
111
|
+
className={formatClassname(["d-cont right", rightClassName])}
|
|
112
|
+
style={
|
|
113
|
+
rightImageUrl
|
|
114
|
+
? { backgroundImage: `url(${rightImageUrl})`, backgroundSize: "cover" }
|
|
115
|
+
: {}
|
|
116
|
+
}
|
|
117
|
+
>
|
|
118
|
+
<div className={formatClassname(["right-img", rightImgClassName])} />
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
);
|
|
122
|
+
|
|
123
|
+
const Wrapper = StyleComponent || "div";
|
|
124
|
+
const wrapperClassName = formatClassname(["auth-layout", appName, containerClassName]);
|
|
125
|
+
|
|
126
|
+
return (
|
|
127
|
+
<>
|
|
128
|
+
{showNavbar && NavbarComponent && <NavbarComponent {...navbarProps} />}
|
|
129
|
+
<Wrapper className={wrapperClassName}>
|
|
130
|
+
{renderTopHeader()}
|
|
131
|
+
{layoutContent}
|
|
132
|
+
</Wrapper>
|
|
133
|
+
</>
|
|
134
|
+
);
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
export default AuthLayout;
|