@bigbinary/neeto-molecules 3.6.0-beta2 → 3.6.0
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/{Chevron-9bfbb7fb.js → Chevron-10919a09.js} +4 -4
- package/dist/Chevron-10919a09.js.map +1 -0
- package/dist/ConfigurePageSidebar.js +1 -1
- package/dist/CustomDomain.js +1 -1
- package/dist/CustomDomainDashboard.js +17 -10
- package/dist/CustomDomainDashboard.js.map +1 -1
- package/dist/EmailPreview.js +3 -3
- package/dist/EmailPreview.js.map +1 -1
- package/dist/ErrorPage.js +5 -1
- package/dist/ErrorPage.js.map +1 -1
- package/dist/Metadata.js +6 -2
- package/dist/Metadata.js.map +1 -1
- package/dist/SessionEnvironment.js +2 -2
- package/dist/SessionEnvironment.js.map +1 -1
- package/dist/ShareViaLink.js +8 -6
- package/dist/ShareViaLink.js.map +1 -1
- package/dist/Sidebar.js +6 -2
- package/dist/Sidebar.js.map +1 -1
- package/dist/cjs/{Chevron-ffd49f38.js → Chevron-983364d7.js} +4 -4
- package/dist/cjs/Chevron-983364d7.js.map +1 -0
- package/dist/cjs/ConfigurePageSidebar.js +1 -1
- package/dist/cjs/CustomDomain.js +1 -1
- package/dist/cjs/CustomDomainDashboard.js +18 -11
- package/dist/cjs/CustomDomainDashboard.js.map +1 -1
- package/dist/cjs/EmailPreview.js +3 -3
- package/dist/cjs/EmailPreview.js.map +1 -1
- package/dist/cjs/ErrorPage.js +5 -1
- package/dist/cjs/ErrorPage.js.map +1 -1
- package/dist/cjs/Metadata.js +6 -2
- package/dist/cjs/Metadata.js.map +1 -1
- package/dist/cjs/SessionEnvironment.js +2 -2
- package/dist/cjs/SessionEnvironment.js.map +1 -1
- package/dist/cjs/ShareViaLink.js +8 -6
- package/dist/cjs/ShareViaLink.js.map +1 -1
- package/dist/cjs/Sidebar.js +6 -2
- package/dist/cjs/Sidebar.js.map +1 -1
- package/dist/cjs/{index-c925b4b1.js → index-19068c9b.js} +5 -1
- package/dist/cjs/index-19068c9b.js.map +1 -0
- package/dist/{index-e123ffe8.js → index-d8900f6b.js} +5 -2
- package/dist/index-d8900f6b.js.map +1 -0
- package/package.json +1 -1
- package/src/translations/en.json +1 -0
- package/dist/Chevron-9bfbb7fb.js.map +0 -1
- package/dist/cjs/Chevron-ffd49f38.js.map +0 -1
- package/dist/cjs/index-c925b4b1.js.map +0 -1
- package/dist/index-e123ffe8.js.map +0 -1
|
@@ -148,7 +148,7 @@ var Items = function Items(_ref) {
|
|
|
148
148
|
isSettingsItems: isSettingsItems,
|
|
149
149
|
items: subItem.items
|
|
150
150
|
}), items.length - 1 !== subIndex && /*#__PURE__*/jsx("hr", {
|
|
151
|
-
className: "neeto-molecules-sidebar__separator"
|
|
151
|
+
className: "neeto-molecules-sidebar__separator neeto-ui-border-gray-200"
|
|
152
152
|
})]
|
|
153
153
|
})]
|
|
154
154
|
}, subIndex);
|
|
@@ -176,7 +176,7 @@ var SelectedLink = function SelectedLink(_ref) {
|
|
|
176
176
|
className: "neeto-molecules-sidebar__links neeto-molecules-sidebar__links--focus-mode neeto-molecules-sidebar__no-shrinkable",
|
|
177
177
|
"data-cy": "configure-nav-container",
|
|
178
178
|
children: [/*#__PURE__*/jsxs("div", _objectSpread(_objectSpread({
|
|
179
|
-
className: "neeto-ui-flex neeto-ui-items-center neeto-ui-no-underline neeto-molecules-sidebar__link neeto-ui-border-b",
|
|
179
|
+
className: "neeto-ui-flex neeto-ui-items-center neeto-ui-no-underline neeto-molecules-sidebar__link neeto-ui-border-b neeto-ui-border-gray-200",
|
|
180
180
|
onClick: handleGoBack
|
|
181
181
|
}, _objectSpread({}, omit(["icon"], otherProps))), {}, {
|
|
182
182
|
children: [isConfigureNavLink && /*#__PURE__*/jsx("span", {
|
|
@@ -201,7 +201,7 @@ var SelectedLink = function SelectedLink(_ref) {
|
|
|
201
201
|
});
|
|
202
202
|
};
|
|
203
203
|
|
|
204
|
-
var css = ":root{--neeto-molecules-sidebar-width:240px;--neeto-molecules-sidebar-wrapper-z-index:99997;--neeto-molecules-sidebar-z-index:99998;--neeto-chat-primary:136,134,255;--neeto-wireframe-primary:106,103,232;--neeto-site-primary:129,118,255;--neeto-desk-primary:253,148,55;--neeto-planner-primary:82,169,198;--neeto-replay-primary:32,199,189;--neeto-course-primary:140,214,114;--neeto-ci-primary:255,133,184;--neeto-invoice-primary:70,160,211;--neeto-quiz-primary:254,99,99;--neeto-runner-primary:75,71,255;--neeto-form-primary:254,128,114;--neeto-crm-primary:96,154,240;--neeto-changelog-primary:255,135,135;--neeto-deploy-primary:20,209,164;--neeto-kb-primary:101,205,161;--neeto-cal-primary:238,77,95;--neeto-invisible-primary:121,157,250;--neeto-testify-primary:255,158,69;--neeto-monitor-primary:70,181,197;--neeto-git-primary:255,78,110}@media screen and (min-width:1024px){:root{--neeto-molecules-sidebar-width:240px}}.neeto-molecules-sidebar__wrapper{display:flex;max-width:240px;max-width:var(--neeto-molecules-sidebar-width);position:relative;transition:all .15s;width:240px;width:var(--neeto-molecules-sidebar-width)}@media screen and (max-width:768px){.neeto-molecules-sidebar__wrapper{height:100%;left:0;max-width:100%;position:fixed;top:0;transition:none;width:100%;z-index:99997;z-index:var(--neeto-molecules-sidebar-wrapper-z-index)}.neeto-molecules-sidebar__wrapper .neeto-molecules-sidebar{left:0;max-width:240px;max-width:var(--neeto-molecules-sidebar-width);position:fixed;top:0;transition:none;width:240px;width:var(--neeto-molecules-sidebar-width)}}.neeto-molecules-sidebar__wrapper__configure-page .neeto-molecules-sidebar__toggler{right:20px}@media screen and (max-width:768px){.neeto-molecules-sidebar__wrapper__configure-page .neeto-molecules-sidebar__toggler{right:auto}}.neeto-molecules-sidebar__wrapper--collapsed{max-width:0;width:0}.neeto-molecules-sidebar__wrapper--collapsed .neeto-molecules-sidebar__toggler{right:-36px;transform:scale(-1)}@media screen and (max-width:768px){.neeto-molecules-sidebar__wrapper--collapsed .neeto-molecules-sidebar__toggler{left:8px;right:auto}.neeto-molecules-sidebar__wrapper--collapsed .neeto-molecules-sidebar{left:-240px;left:calc(var(--neeto-molecules-sidebar-width)*-1)}.neeto-molecules-sidebar__wrapper__configure-page.neeto-molecules-sidebar__wrapper--collapsed .neeto-molecules-sidebar__toggler{top:109px}}.neeto-molecules-sidebar{background-color:rgb(var(--neeto-ui-white));border-right:1px solid rgb(var(--neeto-ui-gray-200));height:100vh;padding:24px 0;width:100%;z-index:99998;z-index:var(--neeto-molecules-sidebar-z-index)}.neeto-molecules-sidebar__no-shrinkable{max-width:240px;max-width:var(--neeto-molecules-sidebar-width);width:240px;width:var(--neeto-molecules-sidebar-width)}.neeto-molecules-sidebar__separator{margin:6px auto;width:100%}.neeto-molecules-sidebar::-webkit-scrollbar{height:0;width:0}.neeto-molecules-sidebar::-webkit-scrollbar-thumb{background:rgb(var(--neeto-ui-gray-300));border-radius:50px}.neeto-molecules-sidebar::-webkit-scrollbar-track{background:\"transparent\"}.neeto-molecules-sidebar__toggler{color:rgb(var(--neeto-ui-primary-500))!important;position:absolute;right:8px;top:8px;z-index:99998;z-index:var(--neeto-molecules-sidebar-z-index)}@media screen and (max-width:768px){.neeto-molecules-sidebar__toggler{left:202px;left:calc(var(--neeto-molecules-sidebar-width) - 38px);right:auto;transition:none}}.neeto-molecules-sidebar__configure-page{border-right:1px solid rgb(var(--neeto-ui-gray-200));height:auto}@media screen and (max-width:768px){.neeto-molecules-sidebar__configure-page{height:100%}}.neeto-molecules-sidebar__configure-page .neeto-molecules-sidebar__links{height:calc(100vh - 136px)!important}@media screen and (max-width:768px){.neeto-molecules-sidebar__configure-page .neeto-molecules-sidebar__links{height:calc(100vh - 80px)!important}}.neeto-molecules-sidebar__configure-page .neeto-molecules-sidebar__toggler{display:none}.neeto-molecules-sidebar__header{margin:14px 0 28px;padding:0 24px}.neeto-molecules-sidebar__logo svg{height:36px;max-width:100%;width:auto}.neeto-molecules-sidebar__links{margin-bottom:40px}.neeto-molecules-sidebar__link{color:rgb(var(--neeto-ui-black));gap:10px;line-height:1.2;padding:12px 24px;position:relative;text-decoration:none!important;transition:color .3s,background-color .3s;width:100%}.neeto-molecules-sidebar__link-icon{flex-shrink:0}.neeto-molecules-sidebar__link-icon svg path{vector-effect:non-scaling-stroke}.neeto-molecules-sidebar__link-icon--rotate{transform:scale(-1)}.neeto-molecules-sidebar__link-icon--caret{opacity:0;transition:opacity .3s ease-in-out}.neeto-molecules-sidebar__link-label,.neeto-molecules-sidebar__link-sub-label{--neeto-ui-text-body2:15px;flex-grow:1;text-align:left}@media screen and (min-width:1536px){.neeto-molecules-sidebar__link-label,.neeto-molecules-sidebar__link-sub-label{--neeto-ui-text-body2:16px}}.neeto-molecules-sidebar__link:hover{background-color:rgb(var(--neeto-ui-gray-100));color:rgb(var(--neeto-ui-black))}.neeto-molecules-sidebar__link:focus,.neeto-molecules-sidebar__link:focus-visible,.neeto-molecules-sidebar__link[aria-expanded=true]{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-black));outline:none}.neeto-molecules-sidebar__link.active{background-color:rgb(var(--neeto-ui-accent-100));color:rgb(var(--neeto-ui-black));font-weight:var(--neeto-ui-font-semibold)}.neeto-molecules-sidebar__link.active .neeto-molecules-sidebar__link-icon--caret,.neeto-molecules-sidebar__link:focus .neeto-molecules-sidebar__link-icon--caret,.neeto-molecules-sidebar__link:focus-visible .neeto-molecules-sidebar__link-icon--caret,.neeto-molecules-sidebar__link:hover .neeto-molecules-sidebar__link-icon--caret,.neeto-molecules-sidebar__link[aria-expanded=true] .neeto-molecules-sidebar__link-icon--caret{opacity:1}.neeto-molecules-sidebar__link--button:focus{background-color:transparent}.neeto-molecules-sidebar__link--button:focus-visible{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-black))}.neeto-molecules-sidebar__link--change-log{outline:none!important}.neeto-molecules-sidebar__sublink-wrapper{padding:4px 0}.neeto-molecules-sidebar__sublink{color:rgb(var(--neeto-ui-gray-700));cursor:pointer;gap:8px;margin-bottom:0;padding:8px 24px 8px 58px;text-decoration:none;transition:color .3s,background-color .3s}.neeto-molecules-sidebar__sublink .neeto-molecules-sidebar__link-sub-count{--neeto-ui-text-body2:15px;opacity:.75}@media screen and (min-width:1536px){.neeto-molecules-sidebar__sublink .neeto-molecules-sidebar__link-sub-count{--neeto-ui-text-body2:16px}}.neeto-molecules-sidebar__sublink:hover{color:rgb(var(--neeto-ui-black));text-decoration:none}.neeto-molecules-sidebar__sublink:hover .neeto-molecules-sidebar__link-sub-count{opacity:1}.neeto-molecules-sidebar__sublink:focus,.neeto-molecules-sidebar__sublink:focus-visible{color:rgb(var(--neeto-ui-black));outline:none;text-decoration:none}.neeto-molecules-sidebar__sublink:focus .neeto-molecules-sidebar__link-sub-count,.neeto-molecules-sidebar__sublink:focus-visible .neeto-molecules-sidebar__link-sub-count{opacity:1}.neeto-molecules-sidebar__sublink.active,.neeto-molecules-sidebar__sublink:active{color:rgb(var(--neeto-ui-accent-800));font-weight:500;text-decoration:none}.neeto-molecules-sidebar__sublink.active .neeto-molecules-sidebar__link-sub-count,.neeto-molecules-sidebar__sublink:active .neeto-molecules-sidebar__link-sub-count{opacity:1}.neeto-molecules-sidebar__footer{margin-top:auto}.sidebar-featured-tooltip__content{border-radius:8px!important;box-shadow:var(--neeto-ui-shadow-sm)!important}.sidebar-featured-tooltip__content .tippy-content{padding:0}.sidebar-featured-tooltip{padding:12px;width:150px}.sidebar-featured-tooltip__icon-wrap{background-color:rgb(var(--neeto-ui-gray-100));border-radius:8px;height:40px;margin-bottom:8px;margin-left:auto;margin-right:auto;width:40px}.sidebar-featured-tooltip__title{margin-bottom:4px}.neeto-molecules-help-popup-wrapper,.neeto-molecules-product-switcher-popup-wrapper,.neeto-molecules-profile-popup-wrapper{border:1px solid rgb(var(--neeto-ui-gray-400));border-radius:var(--neeto-ui-rounded)!important;min-width:240px}.neeto-molecules-help-popup-wrapper .tippy-content,.neeto-molecules-product-switcher-popup-wrapper .tippy-content,.neeto-molecules-profile-popup-wrapper .tippy-content{padding:0}.neeto-molecules-help-popup-wrapper .tippy-svg-arrow,.neeto-molecules-product-switcher-popup-wrapper .tippy-svg-arrow,.neeto-molecules-profile-popup-wrapper .tippy-svg-arrow{display:none!important}.neeto-molecules-profile-popup__top-section{border-top-left-radius:var(--neeto-ui-rounded);border-top-right-radius:var(--neeto-ui-rounded)}.neeto-molecules-profile-sublist{border-top:1px solid rgb(var(--neeto-ui-gray-400))}.neeto-molecules-help-sublist,.neeto-molecules-profile-sublist{list-style:none;margin:0;padding:4px 0}.neeto-molecules-help-sublist__item,.neeto-molecules-profile-sublist__item{width:100%}.neeto-molecules-help-sublist__item-btn,.neeto-molecules-profile-sublist__item-btn{border-radius:0;justify-content:flex-end!important;min-height:40px;text-align:left}.neeto-molecules-help-sublist__item-btn.active,.neeto-molecules-profile-sublist__item-btn.active{background-color:rgb(var(--neeto-ui-gray-800));color:rgb(var(--neeto-ui-white))}.neeto-molecules-help-sublist__item-btn-icon svg path,.neeto-molecules-profile-sublist__item-btn-icon svg path{vector-effect:non-scaling-stroke}.neeto-molecules-help-sublist__item-btn span,.neeto-molecules-profile-sublist__item-btn span{align-items:center;display:flex;gap:8px}.neeto-molecules-sidebar__link-icon{position:relative}.neeto-molecules-sidebar__notif-count{position:absolute;right:-6px;top:-6px;z-index:1}.neeto-molecules-help-sublist__item-btn-count,.neeto-molecules-sidebar__notif-count{align-items:center;background-color:rgb(var(--neeto-ui-primary-500));border-radius:var(--neeto-ui-rounded-full);color:rgb(var(--neeto-ui-white));display:inline-flex;flex-shrink:0;font-size:var(--neeto-ui-text-xxs);height:15px;justify-content:center;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:15px}.neeto-molecules-product-switcher-popup-wrapper{height:calc(100vh - 16px);margin-bottom:8px;min-width:calc(100vw - 176px);overflow-y:auto}@media screen and (max-width:768px){.neeto-molecules-product-switcher-popup-wrapper{width:calc(100vw - 185px)!important}}.neeto-molecules-sidebar__backdrop{background-color:rgba(var(--neeto-ui-black),.4);height:100%;left:0;position:absolute;top:0;width:100%}@media screen and (min-width:769px){.neeto-molecules-sidebar__backdrop{display:none;visibility:hidden}}.neeto-molecules-sidebar-segments-header{padding-left:58px}.neeto-molecules-sidebar-segment{margin-bottom:0!important;padding:4px 24px 4px 58px}.neeto-molecules-sidebar.neeto-molecules-sidebar--focus-mode{padding-top:0}.neeto-molecules-sidebar.neeto-molecules-sidebar--focus-mode .neeto-molecules-sidebar__header{padding-top:24px}.neeto-molecules-sidebar.neeto-molecules-sidebar--focus-mode .neeto-molecules-sidebar__links{display:flex;flex-direction:column;height:calc(100vh - 160px);margin-bottom:0}.neeto-molecules-sidebar__links--focus-mode>.neeto-molecules-sidebar__sublink-wrapper{flex-grow:1;margin:0 0 10px!important;min-height:0;overflow-y:auto;padding:0 0 10px!important}.neeto-molecules-sidebar__links--focus-mode>.neeto-molecules-sidebar__sublink-wrapper .neeto-molecules-sidebar__sublink-wrapper{padding:0!important}.neeto-molecules-sidebar__links--focus-mode>.neeto-molecules-sidebar__sublink-wrapper .neeto-molecules-sidebar__sublink-wrapper .neeto-molecules-sidebar__sublink{border-radius:0}.neeto-molecules-sidebar__links--focus-mode .neeto-molecules-sidebar__link{--neeto-ui-text-body1:18px;background-color:rgb(var(--neeto-ui-gray-100));color:rgb(var(--neeto-ui-black));cursor:pointer;font-weight:var(--neeto-ui-font-semibold);gap:4px;padding:12px 4px;position:sticky;top:0;z-index:1}.neeto-molecules-sidebar__links--focus-mode .neeto-molecules-sidebar__link-label,.neeto-molecules-sidebar__links--focus-mode .neeto-molecules-sidebar__link-sub-label{--neeto-ui-text-body2:15px}.neeto-molecules-sidebar__links--focus-mode>.neeto-molecules-sidebar__sublink-wrapper>.neeto-molecules-sidebar__sublink{color:rgb(var(--neeto-ui-black));font-weight:var(--neeto-ui-font-medium);margin-bottom:0;padding-bottom:10px;padding-top:10px}.neeto-molecules-sidebar__links--focus-mode>.neeto-molecules-sidebar__sublink-wrapper>.neeto-molecules-sidebar__sublink.active{font-weight:var(--neeto-ui-font-semibold)}.neeto-molecules-sidebar__links--focus-mode>.neeto-molecules-sidebar__sublink-wrapper>.neeto-molecules-sidebar__sublink-wrapper .neeto-molecules-sidebar__sublink{border-radius:0;padding-left:32px}.neeto-molecules-sidebar__links--focus-mode .neeto-molecules-sidebar__sublink{cursor:pointer;line-height:1.2;padding:8px 12px 8px 24px;position:relative}.neeto-molecules-sidebar__links--focus-mode .neeto-molecules-sidebar__sublink:hover{background-color:rgb(var(--neeto-ui-gray-100))}.neeto-molecules-sidebar__links--focus-mode .neeto-molecules-sidebar__sublink.active{background-color:rgb(var(--neeto-ui-accent-100))!important;color:rgb(var(--neeto-ui-black))!important;font-weight:var(--neeto-ui-font-medium)}.neeto-molecules-sidebar__link-unread-count{align-items:center;background-color:rgb(var(--neeto-ui-accent-500));border-radius:var(--neeto-ui-rounded-full);color:rgb(var(--neeto-ui-white));display:flex;flex-shrink:0;font-size:var(--neeto-ui-text-xxs);height:16px;justify-content:center;min-width:16px;padding-left:4px;padding-right:4px;position:absolute;right:-4px;top:-4px;-webkit-user-select:none;-moz-user-select:none;user-select:none}";
|
|
204
|
+
var css = ":root{--neeto-molecules-sidebar-width:240px;--neeto-molecules-sidebar-wrapper-z-index:99997;--neeto-molecules-sidebar-z-index:99998;--neeto-chat-primary:136,134,255;--neeto-wireframe-primary:106,103,232;--neeto-site-primary:129,118,255;--neeto-desk-primary:253,148,55;--neeto-planner-primary:82,169,198;--neeto-replay-primary:32,199,189;--neeto-course-primary:140,214,114;--neeto-ci-primary:255,133,184;--neeto-invoice-primary:70,160,211;--neeto-quiz-primary:254,99,99;--neeto-runner-primary:75,71,255;--neeto-form-primary:254,128,114;--neeto-crm-primary:96,154,240;--neeto-changelog-primary:255,135,135;--neeto-deploy-primary:20,209,164;--neeto-kb-primary:101,205,161;--neeto-cal-primary:238,77,95;--neeto-invisible-primary:121,157,250;--neeto-testify-primary:255,158,69;--neeto-monitor-primary:70,181,197;--neeto-git-primary:255,78,110}@media screen and (min-width:1024px){:root{--neeto-molecules-sidebar-width:240px}}.neeto-molecules-sidebar__wrapper{display:flex;max-width:240px;max-width:var(--neeto-molecules-sidebar-width);position:relative;transition:all .15s;width:240px;width:var(--neeto-molecules-sidebar-width)}@media screen and (max-width:768px){.neeto-molecules-sidebar__wrapper{height:100%;left:0;max-width:100%;position:fixed;top:0;transition:none;width:100%;z-index:99997;z-index:var(--neeto-molecules-sidebar-wrapper-z-index)}.neeto-molecules-sidebar__wrapper .neeto-molecules-sidebar{left:0;max-width:240px;max-width:var(--neeto-molecules-sidebar-width);position:fixed;top:0;transition:none;width:240px;width:var(--neeto-molecules-sidebar-width)}}.neeto-molecules-sidebar__wrapper__configure-page .neeto-molecules-sidebar__toggler{right:20px}@media screen and (max-width:768px){.neeto-molecules-sidebar__wrapper__configure-page .neeto-molecules-sidebar__toggler{right:auto}}.neeto-molecules-sidebar__wrapper--collapsed{max-width:0;width:0}.neeto-molecules-sidebar__wrapper--collapsed .neeto-molecules-sidebar__toggler{right:-36px;transform:scale(-1)}@media screen and (max-width:768px){.neeto-molecules-sidebar__wrapper--collapsed .neeto-molecules-sidebar__toggler{left:8px;right:auto}.neeto-molecules-sidebar__wrapper--collapsed .neeto-molecules-sidebar{left:-240px;left:calc(var(--neeto-molecules-sidebar-width)*-1)}.neeto-molecules-sidebar__wrapper__configure-page.neeto-molecules-sidebar__wrapper--collapsed .neeto-molecules-sidebar__toggler{top:109px}}.neeto-molecules-sidebar{background-color:rgb(var(--neeto-ui-white));border-right:1px solid rgb(var(--neeto-ui-gray-200));height:100vh;padding:24px 0;width:100%;z-index:99998;z-index:var(--neeto-molecules-sidebar-z-index)}.neeto-molecules-sidebar__no-shrinkable{max-width:240px;max-width:var(--neeto-molecules-sidebar-width);width:240px;width:var(--neeto-molecules-sidebar-width)}.neeto-molecules-sidebar__separator{margin:6px auto;width:100%}.neeto-molecules-sidebar::-webkit-scrollbar{height:0;width:0}.neeto-molecules-sidebar::-webkit-scrollbar-thumb{background:rgb(var(--neeto-ui-gray-300));border-radius:50px}.neeto-molecules-sidebar::-webkit-scrollbar-track{background:\"transparent\"}.neeto-molecules-sidebar__toggler{color:rgb(var(--neeto-ui-primary-500))!important;position:absolute;right:8px;top:8px;z-index:99998;z-index:var(--neeto-molecules-sidebar-z-index)}@media screen and (max-width:768px){.neeto-molecules-sidebar__toggler{left:202px;left:calc(var(--neeto-molecules-sidebar-width) - 38px);right:auto;transition:none}}.neeto-molecules-sidebar__configure-page{border-right:1px solid rgb(var(--neeto-ui-gray-200));height:auto}@media screen and (max-width:768px){.neeto-molecules-sidebar__configure-page{height:100%}}.neeto-molecules-sidebar__configure-page .neeto-molecules-sidebar__links{height:calc(100vh - 136px)!important}@media screen and (max-width:768px){.neeto-molecules-sidebar__configure-page .neeto-molecules-sidebar__links{height:calc(100vh - 80px)!important}}.neeto-molecules-sidebar__configure-page .neeto-molecules-sidebar__toggler{display:none}.neeto-molecules-sidebar__header{margin:14px 0 28px;padding:0 24px}.neeto-molecules-sidebar__logo svg{height:36px;max-width:100%;width:auto}.neeto-molecules-sidebar__links{margin-bottom:40px}.neeto-molecules-sidebar__link{color:rgb(var(--neeto-ui-black));gap:10px;line-height:1.2;padding:12px 24px;position:relative;text-decoration:none!important;transition:color .3s,background-color .3s;width:100%}.neeto-molecules-sidebar__link-icon{flex-shrink:0}.neeto-molecules-sidebar__link-icon svg path{vector-effect:non-scaling-stroke}.neeto-molecules-sidebar__link-icon--rotate{transform:scale(-1)}.neeto-molecules-sidebar__link-icon--caret{opacity:0;transition:opacity .3s ease-in-out}.neeto-molecules-sidebar__link-label,.neeto-molecules-sidebar__link-sub-label{--neeto-ui-text-body2:15px;flex-grow:1;text-align:left}@media screen and (min-width:1536px){.neeto-molecules-sidebar__link-label,.neeto-molecules-sidebar__link-sub-label{--neeto-ui-text-body2:16px}}.neeto-molecules-sidebar__link:hover{background-color:rgb(var(--neeto-ui-gray-100));color:rgb(var(--neeto-ui-black))}.neeto-molecules-sidebar__link:focus,.neeto-molecules-sidebar__link:focus-visible,.neeto-molecules-sidebar__link[aria-expanded=true]{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-black));outline:none}.neeto-molecules-sidebar__link.active{background-color:rgb(var(--neeto-ui-accent-100));color:rgb(var(--neeto-ui-black));font-weight:var(--neeto-ui-font-semibold)}.neeto-molecules-sidebar__link.active .neeto-molecules-sidebar__link-icon--caret,.neeto-molecules-sidebar__link:focus .neeto-molecules-sidebar__link-icon--caret,.neeto-molecules-sidebar__link:focus-visible .neeto-molecules-sidebar__link-icon--caret,.neeto-molecules-sidebar__link:hover .neeto-molecules-sidebar__link-icon--caret,.neeto-molecules-sidebar__link[aria-expanded=true] .neeto-molecules-sidebar__link-icon--caret{opacity:1}.neeto-molecules-sidebar__link--button:focus{background-color:transparent}.neeto-molecules-sidebar__link--button:focus-visible{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-black))}.neeto-molecules-sidebar__link--change-log{outline:none!important}.neeto-molecules-sidebar__sublink-wrapper{padding:4px 0}.neeto-molecules-sidebar__sublink{color:rgb(var(--neeto-ui-gray-700));cursor:pointer;gap:8px;margin-bottom:0;padding:8px 24px 8px 58px;text-decoration:none;transition:color .3s,background-color .3s}.neeto-molecules-sidebar__sublink .neeto-molecules-sidebar__link-sub-count{--neeto-ui-text-body2:15px;opacity:.75}@media screen and (min-width:1536px){.neeto-molecules-sidebar__sublink .neeto-molecules-sidebar__link-sub-count{--neeto-ui-text-body2:16px}}.neeto-molecules-sidebar__sublink:hover{color:rgb(var(--neeto-ui-black));text-decoration:none}.neeto-molecules-sidebar__sublink:hover .neeto-molecules-sidebar__link-sub-count{opacity:1}.neeto-molecules-sidebar__sublink:focus,.neeto-molecules-sidebar__sublink:focus-visible{color:rgb(var(--neeto-ui-black));outline:none;text-decoration:none}.neeto-molecules-sidebar__sublink:focus .neeto-molecules-sidebar__link-sub-count,.neeto-molecules-sidebar__sublink:focus-visible .neeto-molecules-sidebar__link-sub-count{opacity:1}.neeto-molecules-sidebar__sublink.active,.neeto-molecules-sidebar__sublink:active{color:rgb(var(--neeto-ui-accent-800));font-weight:500;text-decoration:none}.neeto-molecules-sidebar__sublink.active .neeto-molecules-sidebar__link-sub-count,.neeto-molecules-sidebar__sublink:active .neeto-molecules-sidebar__link-sub-count{opacity:1}.neeto-molecules-sidebar__footer{margin-top:auto}.sidebar-featured-tooltip__content{border-radius:8px!important;box-shadow:var(--neeto-ui-shadow-sm)!important}.sidebar-featured-tooltip__content .tippy-content{padding:0}.sidebar-featured-tooltip{padding:12px;width:150px}.sidebar-featured-tooltip__icon-wrap{background-color:rgb(var(--neeto-ui-gray-100));border-radius:8px;height:40px;margin-bottom:8px;margin-left:auto;margin-right:auto;width:40px}.sidebar-featured-tooltip__title{margin-bottom:4px}.neeto-molecules-help-popup-wrapper,.neeto-molecules-product-switcher-popup-wrapper,.neeto-molecules-profile-popup-wrapper{border:1px solid rgb(var(--neeto-ui-gray-400));border-radius:var(--neeto-ui-rounded)!important;min-width:240px}.neeto-molecules-help-popup-wrapper .tippy-content,.neeto-molecules-product-switcher-popup-wrapper .tippy-content,.neeto-molecules-profile-popup-wrapper .tippy-content{padding:0}.neeto-molecules-help-popup-wrapper .tippy-svg-arrow,.neeto-molecules-product-switcher-popup-wrapper .tippy-svg-arrow,.neeto-molecules-profile-popup-wrapper .tippy-svg-arrow{display:none!important}.neeto-molecules-profile-popup__top-section{border-top-left-radius:var(--neeto-ui-rounded);border-top-right-radius:var(--neeto-ui-rounded)}.neeto-molecules-profile-sublist{border-top:1px solid rgb(var(--neeto-ui-gray-400))}.neeto-molecules-help-sublist,.neeto-molecules-profile-sublist{list-style:none;margin:0;padding:4px 0}.neeto-molecules-help-sublist__item,.neeto-molecules-profile-sublist__item{width:100%}.neeto-molecules-help-sublist__item-btn,.neeto-molecules-profile-sublist__item-btn{border-radius:0;justify-content:flex-end!important;min-height:40px;text-align:left}.neeto-molecules-help-sublist__item-btn.active,.neeto-molecules-profile-sublist__item-btn.active{background-color:rgb(var(--neeto-ui-gray-800));color:rgb(var(--neeto-ui-white))}.neeto-molecules-help-sublist__item-btn-icon svg path,.neeto-molecules-profile-sublist__item-btn-icon svg path{vector-effect:non-scaling-stroke}.neeto-molecules-help-sublist__item-btn span,.neeto-molecules-profile-sublist__item-btn span{align-items:center;display:flex;gap:8px}.neeto-molecules-sidebar__link-icon{position:relative}.neeto-molecules-sidebar__notif-count{position:absolute;right:-6px;top:-6px;z-index:1}.neeto-molecules-help-sublist__item-btn-count,.neeto-molecules-sidebar__notif-count{align-items:center;background-color:rgb(var(--neeto-ui-primary-500));border-radius:var(--neeto-ui-rounded-full);color:rgb(var(--neeto-ui-white));display:inline-flex;flex-shrink:0;font-size:var(--neeto-ui-text-xxs);height:15px;justify-content:center;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:15px}.neeto-molecules-product-switcher-popup-wrapper{height:calc(100vh - 16px);margin-bottom:8px;min-width:calc(100vw - 176px);overflow-y:auto}@media screen and (max-width:768px){.neeto-molecules-product-switcher-popup-wrapper{width:calc(100vw - 185px)!important}}.neeto-molecules-sidebar__backdrop{background-color:rgba(var(--neeto-ui-black),.4);height:100%;left:0;position:absolute;top:0;width:100%}@media screen and (min-width:769px){.neeto-molecules-sidebar__backdrop{display:none;visibility:hidden}}.neeto-molecules-sidebar-segments-header{padding-left:58px}.neeto-molecules-sidebar-segment{margin-bottom:0!important;padding:4px 24px 4px 58px}.neeto-molecules-sidebar.neeto-molecules-sidebar--focus-mode{padding-top:0}.neeto-molecules-sidebar.neeto-molecules-sidebar--focus-mode .neeto-molecules-sidebar__header{padding-top:24px}.neeto-molecules-sidebar.neeto-molecules-sidebar--focus-mode .neeto-molecules-sidebar__links{display:flex;flex-direction:column;height:calc(100vh - 160px);margin-bottom:0}.neeto-molecules-sidebar__links--focus-mode>.neeto-molecules-sidebar__sublink-wrapper{flex-grow:1;margin:0 0 10px!important;min-height:0;overflow-y:auto;padding:0 0 10px!important}.neeto-molecules-sidebar__links--focus-mode>.neeto-molecules-sidebar__sublink-wrapper .neeto-molecules-sidebar__sublink-wrapper{padding:0!important}.neeto-molecules-sidebar__links--focus-mode>.neeto-molecules-sidebar__sublink-wrapper .neeto-molecules-sidebar__sublink-wrapper .neeto-molecules-sidebar__sublink{border-radius:0}.neeto-molecules-sidebar__links--focus-mode .neeto-molecules-sidebar__link{--neeto-ui-text-body1:18px;background-color:rgb(var(--neeto-ui-gray-100));color:rgb(var(--neeto-ui-black));cursor:pointer;font-weight:var(--neeto-ui-font-semibold);gap:4px;padding:12px 4px;position:sticky;top:0;z-index:1}.neeto-molecules-sidebar__links--focus-mode .neeto-molecules-sidebar__link-label,.neeto-molecules-sidebar__links--focus-mode .neeto-molecules-sidebar__link-sub-label{--neeto-ui-text-body2:15px}.neeto-molecules-sidebar__links--focus-mode>.neeto-molecules-sidebar__sublink-wrapper>.neeto-molecules-sidebar__sublink{color:rgb(var(--neeto-ui-black));font-weight:var(--neeto-ui-font-medium);margin-bottom:0;padding-bottom:10px;padding-top:10px}.neeto-molecules-sidebar__links--focus-mode>.neeto-molecules-sidebar__sublink-wrapper>.neeto-molecules-sidebar__sublink.active{font-weight:var(--neeto-ui-font-semibold)}.neeto-molecules-sidebar__links--focus-mode>.neeto-molecules-sidebar__sublink-wrapper>.neeto-molecules-sidebar__sublink-wrapper .neeto-molecules-sidebar__sublink{border-radius:0;padding-left:32px}.neeto-molecules-sidebar__links--focus-mode .neeto-molecules-sidebar__sublink{cursor:pointer;line-height:1.2;padding:8px 12px 8px 24px;position:relative}.neeto-molecules-sidebar__links--focus-mode .neeto-molecules-sidebar__sublink:hover{background-color:rgb(var(--neeto-ui-gray-100))}.neeto-molecules-sidebar__links--focus-mode .neeto-molecules-sidebar__sublink.active{background-color:rgb(var(--neeto-ui-accent-100))!important;color:rgb(var(--neeto-ui-black))!important;font-weight:var(--neeto-ui-font-medium)}.neeto-molecules-sidebar__link-unread-count{align-items:center;background-color:rgb(var(--neeto-ui-accent-500));border-radius:var(--neeto-ui-rounded-full);color:rgb(var(--neeto-ui-white));display:flex;flex-shrink:0;font-size:var(--neeto-ui-text-xxs);height:16px;justify-content:center;min-width:16px;padding-left:4px;padding-right:4px;position:absolute;right:-4px;top:-4px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.neeto-ui-theme--dark .neeto-molecules-sidebar__logo>path{fill:rgb(var(--neeto-ui-black))}";
|
|
205
205
|
n(css,{});
|
|
206
206
|
|
|
207
207
|
var Chevron = function Chevron(_ref) {
|
|
@@ -219,4 +219,4 @@ var Chevron = function Chevron(_ref) {
|
|
|
219
219
|
};
|
|
220
220
|
|
|
221
221
|
export { Chevron as C, Items as I, SelectedLink as S, CheckPointNavLinks as a, SELECTED_NAV_LINK_ROUTE_STORAGE_KEY as b, findCurrentConfigureNavLink as c, filterByPermissions as f, getSidebarStateLocalStorageKey as g };
|
|
222
|
-
//# sourceMappingURL=Chevron-
|
|
222
|
+
//# sourceMappingURL=Chevron-10919a09.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chevron-10919a09.js","sources":["../src/components/Sidebar/Components/Links/CheckPointNavLink.jsx","../src/components/Sidebar/constants.js","../src/components/Sidebar/utils.js","../src/components/Sidebar/Components/Links/SubLink.jsx","../src/components/Sidebar/Components/Links/Items.jsx","../src/components/Sidebar/Components/Links/SelectedLink.jsx","../src/components/Sidebar/Components/Chevron.jsx"],"sourcesContent":["import { useNavigationCheckpoints } from \"neetocommons/react-utils/useRegisterNavigationCheckpoint\";\nimport { NavLink } from \"react-router-dom\";\n\nconst CheckPointNavLinks = ({ checkpointKey, to, children, ...others }) => {\n const { [checkpointKey]: checkpoint } =\n useNavigationCheckpoints(checkpointKey);\n\n return (\n <NavLink to={checkpoint || to} {...others} key={to}>\n {children}\n </NavLink>\n );\n};\n\nexport default CheckPointNavLinks;\n","export const SUB_LINK_TYPES = {\n SYSTEM_VIEW: \"system_view\",\n SEGMENTS: \"segments\",\n};\n\nexport const SELECTED_NAV_LINK_ROUTE_STORAGE_KEY = \"selectedNavLinkRoute\";\n","import { isPresent, isNotEmpty } from \"neetocist\";\nimport { __, all, curry, equals, includes, is } from \"ramda\";\n\nexport const isSubRouteActive = (subRoute, location) => {\n const currentBrowserUrl = new URL(\n location.pathname + location.search + location.hash,\n window.location.origin\n );\n const targetUrl = new URL(subRoute, window.location.origin);\n\n const targetSearchParams = targetUrl.searchParams;\n const targetSearchKeys = Array.from(targetSearchParams.keys());\n\n return (\n all(\n key =>\n currentBrowserUrl.searchParams.get(key) === targetSearchParams.get(key),\n targetSearchKeys\n ) && equals(currentBrowserUrl.pathname, targetUrl.pathname)\n );\n};\n\nexport const getSidebarStateLocalStorageKey = () => {\n const user = globalProps.user?.email || globalProps.user?.phoneNumber;\n\n return `sidebarState-${user}`;\n};\n\nexport const filterByPermissions = curry(({ permissions }) => {\n if (permissions && isNotEmpty(permissions)) {\n return is(Array, permissions)\n ? permissions.some(includes(__, globalProps.permissions))\n : globalProps.permissions.includes(permissions);\n }\n\n return true;\n});\n\nexport const findCurrentConfigureNavLink = ({ navLinks, location }) =>\n navLinks.find(link => {\n const [linkPathname] = link.to?.split(\"?\") || [];\n\n return (\n isPresent(link.isConfigureNavLink) &&\n link.isConfigureNavLink &&\n location.pathname.startsWith(linkPathname)\n );\n });\n","import { hyphenate } from \"neetocist\";\nimport { Segments } from \"neetofilters\";\nimport { Typography } from \"neetoui\";\nimport { is } from \"ramda\";\n\nimport CheckPointNavLinks from \"./CheckPointNavLink\";\n\nimport { SUB_LINK_TYPES } from \"../../constants\";\nimport { isSubRouteActive } from \"../../utils\";\n\nconst SubLink = ({\n to,\n label,\n type = SUB_LINK_TYPES.SYSTEM_VIEW,\n count,\n isSectionHeader,\n isCountsLoading,\n \"data-cy\": dataCy,\n entity = \"\",\n columns = [],\n baseUrl,\n isActive,\n}) => {\n if (type === SUB_LINK_TYPES.SEGMENTS) {\n return <Segments {...{ baseUrl, columns, entity }} isIndependent={false} />;\n }\n\n const dataCyPrefix = dataCy || hyphenate(label);\n\n const renderCount = count => (count > 999 ? \"999+\" : count);\n\n const isSubLinkActive = () =>\n !isSectionHeader &&\n (is(Function, isActive) ? isActive() : isSubRouteActive(to, location));\n\n return (\n <CheckPointNavLinks\n {...{ to }}\n activeClassName=\"active\"\n className=\"neeto-molecules-sidebar__sublink neeto-ui-flex neeto-ui-items-center neeto-ui-select-none\"\n data-cy={`${dataCyPrefix}-sub-link`}\n isActive={isSubLinkActive}\n >\n <Typography\n className=\"neeto-molecules-sidebar__link-sub-label neeto-ui-flex-grow\"\n component=\"span\"\n data-cy={`${dataCyPrefix}-sub-link-label`}\n style=\"body2\"\n >\n {label}\n </Typography>\n <Typography\n className=\"neeto-molecules-sidebar__link-sub-count neeto-ui-flex-shrink-0\"\n component=\"span\"\n data-cy={`${dataCyPrefix}-sub-link-count`}\n style=\"body2\"\n >\n {isCountsLoading ? (\n <div className=\"neeto-ui-rounded neeto-ui-bg-gray-200 h-4 w-4 animate-pulse\" />\n ) : (\n renderCount(count)\n )}\n </Typography>\n </CheckPointNavLinks>\n );\n};\n\nexport default SubLink;\n","import { Fragment } from \"react\";\n\nimport { isPresent } from \"neetocist\";\n\nimport SubLink from \"./SubLink\";\n\nimport { filterByPermissions } from \"../../utils\";\n\nconst Items = ({ items, isSettingsItems = false, isCountsLoading }) => (\n <div\n className=\"neeto-molecules-sidebar__sublink-wrapper\"\n data-cy=\"sidebar-sub-link-wrapper\"\n >\n {items.filter(filterByPermissions).map((subItem, subIndex) => (\n <Fragment key={subIndex}>\n <SubLink\n {...{ ...subItem, isCountsLoading }}\n isActive={subItem.isActive}\n isSectionHeader={isPresent(subItem.item)}\n to={subItem.to ?? subItem.path}\n />\n {isSettingsItems && isPresent(subItem.items) && (\n <>\n <Items {...{ isSettingsItems }} items={subItem.items} />\n {items.length - 1 !== subIndex && (\n <hr className=\"neeto-molecules-sidebar__separator neeto-ui-border-gray-200\" />\n )}\n </>\n )}\n </Fragment>\n ))}\n </div>\n);\n\nexport default Items;\n","import classNames from \"classnames\";\nimport { hyphenize } from \"neetocommons/utils/general\";\nimport { Left } from \"neetoicons\";\nimport { Typography } from \"neetoui\";\nimport { omit } from \"ramda\";\n\nimport Items from \"./Items\";\n\nconst SelectedLink = ({\n navLink = { label: \"\", items: [], isConfigureNavLink: false },\n handleGoBack,\n isConfigureSidebar,\n}) => {\n const { label, items, isConfigureNavLink, ...otherProps } = navLink;\n\n return (\n <div\n className=\"neeto-molecules-sidebar__links neeto-molecules-sidebar__links--focus-mode neeto-molecules-sidebar__no-shrinkable\"\n data-cy=\"configure-nav-container\"\n >\n <div\n className=\"neeto-ui-flex neeto-ui-items-center neeto-ui-no-underline neeto-molecules-sidebar__link neeto-ui-border-b neeto-ui-border-gray-200\"\n onClick={handleGoBack}\n {...{ ...omit([\"icon\"], otherProps) }}\n >\n {isConfigureNavLink && (\n <span\n className=\"neeto-molecules-sidebar__link-icon\"\n data-cy={`${hyphenize(label)}-go-back-button`}\n data-testid={`${label}-go-back-button`}\n >\n <Left size={16} />\n </span>\n )}\n <Typography\n component=\"span\"\n style=\"body1\"\n className={classNames(\"neeto-molecules-sidebar__link-label\", {\n \"neeto-molecules-sidebar__configure-page-header\":\n isConfigureNavLink,\n [\"pl-4\"]: isConfigureSidebar,\n })}\n >\n {label}\n </Typography>\n </div>\n {items && <Items {...{ items }} isSettingsItems />}\n </div>\n );\n};\n\nexport default SelectedLink;\n","const Chevron = ({ style }) => (\n <svg {...{ style }} height=\"16\" viewBox=\"0 0 16 16\" width=\"16\">\n <path\n d=\"M7.07031 13.8887C7.2207 14.0391 7.40527 14.1211 7.62402 14.1211C8.06836 14.1211 8.41699 13.7725 8.41699 13.3281C8.41699 13.1094 8.32812 12.9043 8.17773 12.7539L3.37207 8.05762L8.17773 3.375C8.32812 3.21777 8.41699 3.0127 8.41699 2.80078C8.41699 2.35645 8.06836 2.00781 7.62402 2.00781C7.40527 2.00781 7.2207 2.08984 7.07031 2.24023L1.73828 7.44922C1.56055 7.62012 1.46484 7.8252 1.46484 8.06445C1.46484 8.29688 1.55371 8.49512 1.73828 8.67969L7.07031 13.8887ZM13.1748 13.8887C13.3252 14.0391 13.5098 14.1211 13.7354 14.1211C14.1797 14.1211 14.5283 13.7725 14.5283 13.3281C14.5283 13.1094 14.4395 12.9043 14.2891 12.7539L9.4834 8.05762L14.2891 3.375C14.4395 3.21777 14.5283 3.0127 14.5283 2.80078C14.5283 2.35645 14.1797 2.00781 13.7354 2.00781C13.5098 2.00781 13.3252 2.08984 13.1748 2.24023L7.84961 7.44922C7.66504 7.62012 7.57617 7.8252 7.56934 8.06445C7.56934 8.29688 7.66504 8.49512 7.84961 8.67969L13.1748 13.8887Z\"\n fill=\"currentColor\"\n />\n </svg>\n);\n\nexport default Chevron;\n"],"names":["CheckPointNavLinks","_ref","checkpointKey","to","children","others","_objectWithoutProperties","_excluded","_useNavigationCheckpo","useNavigationCheckpoints","checkpoint","_createElement","NavLink","_objectSpread","key","SUB_LINK_TYPES","SYSTEM_VIEW","SEGMENTS","SELECTED_NAV_LINK_ROUTE_STORAGE_KEY","isSubRouteActive","subRoute","location","currentBrowserUrl","URL","pathname","search","hash","window","origin","targetUrl","targetSearchParams","searchParams","targetSearchKeys","Array","from","keys","all","get","equals","getSidebarStateLocalStorageKey","_globalProps$user","_globalProps$user2","user","globalProps","email","phoneNumber","concat","filterByPermissions","curry","permissions","isNotEmpty","is","some","includes","__","findCurrentConfigureNavLink","_ref2","navLinks","find","link","_link$to","_ref3","split","_ref4","_slicedToArray","linkPathname","isPresent","isConfigureNavLink","startsWith","SubLink","label","_ref$type","type","count","isSectionHeader","isCountsLoading","dataCy","_ref$entity","entity","_ref$columns","columns","baseUrl","isActive","_jsx","Segments","isIndependent","dataCyPrefix","hyphenate","renderCount","isSubLinkActive","Function","_jsxs","activeClassName","className","Typography","component","style","Items","items","_ref$isSettingsItems","isSettingsItems","filter","map","subItem","subIndex","_subItem$to","Fragment","item","path","_Fragment","length","SelectedLink","_ref$navLink","navLink","handleGoBack","isConfigureSidebar","otherProps","onClick","omit","hyphenize","Left","size","classNames","_defineProperty","Chevron","height","viewBox","width","d","fill"],"mappings":";;;;;;;;;;;;;;;;;;;AAGA,IAAMA,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAAC,IAAA,EAAmD;AAAA,EAAA,IAA7CC,aAAa,GAAAD,IAAA,CAAbC,aAAa;IAAEC,EAAE,GAAAF,IAAA,CAAFE,EAAE;IAAEC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;AAAKC,IAAAA,MAAM,GAAAC,wBAAA,CAAAL,IAAA,EAAAM,WAAA,CAAA,CAAA;AAClE,EAAA,IAAAC,qBAAA,GACEC,wBAAwB,CAACP,aAAa,CAAC;IADhBQ,UAAU,GAAAF,qBAAA,CAA1BN,aAAa,CAAA,CAAA;AAGtB,EAAA,oBACES,aAAA,CAACC,OAAO,EAAAC,eAAA,CAAAA,eAAA,CAAA;IAACV,EAAE,EAAEO,UAAU,IAAIP,EAAAA;AAAG,GAAA,EAAKE,MAAM,CAAA,EAAA,EAAA,EAAA;AAAES,IAAAA,GAAG,EAAEX,EAAAA;AAAG,GAAA,CAAA,EAChDC,QACM,CAAC,CAAA;AAEd;;ACZO,IAAMW,cAAc,GAAG;AAC5BC,EAAAA,WAAW,EAAE,aAAa;AAC1BC,EAAAA,QAAQ,EAAE,UAAA;AACZ,CAAC,CAAA;AAEM,IAAMC,mCAAmC,GAAG;;ACF5C,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,QAAQ,EAAEC,QAAQ,EAAK;EACtD,IAAMC,iBAAiB,GAAG,IAAIC,GAAG,CAC/BF,QAAQ,CAACG,QAAQ,GAAGH,QAAQ,CAACI,MAAM,GAAGJ,QAAQ,CAACK,IAAI,EACnDC,MAAM,CAACN,QAAQ,CAACO,MAClB,CAAC,CAAA;AACD,EAAA,IAAMC,SAAS,GAAG,IAAIN,GAAG,CAACH,QAAQ,EAAEO,MAAM,CAACN,QAAQ,CAACO,MA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,7 @@ import Button from '@bigbinary/neetoui/Button';
|
|
|
5
5
|
import { not } from 'ramda';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
7
|
import { useHistory } from 'react-router-dom';
|
|
8
|
-
import { S as SelectedLink, C as Chevron } from './Chevron-
|
|
8
|
+
import { S as SelectedLink, C as Chevron } from './Chevron-10919a09.js';
|
|
9
9
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
10
10
|
import '@babel/runtime/helpers/defineProperty';
|
|
11
11
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
package/dist/CustomDomain.js
CHANGED
|
@@ -8,7 +8,7 @@ import Button from '@bigbinary/neetoui/Button';
|
|
|
8
8
|
import Tag from '@bigbinary/neetoui/Tag';
|
|
9
9
|
import Spinner from '@bigbinary/neetoui/Spinner';
|
|
10
10
|
import { useTranslation } from 'react-i18next';
|
|
11
|
-
import { u as useFetchCustomDomains, a as useDeleteCustomDomain, M as Manage, D as DeleteAlert } from './index-
|
|
11
|
+
import { u as useFetchCustomDomains, a as useDeleteCustomDomain, M as Manage, D as DeleteAlert } from './index-d8900f6b.js';
|
|
12
12
|
import MoreDropdown from './MoreDropdown.js';
|
|
13
13
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
14
14
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
@@ -11,11 +11,12 @@ import { useTranslation, Trans } from 'react-i18next';
|
|
|
11
11
|
import Container from './Container.js';
|
|
12
12
|
import SubHeader from './SubHeader.js';
|
|
13
13
|
import TableWrapper from './TableWrapper.js';
|
|
14
|
-
import { u as useFetchCustomDomains, a as useDeleteCustomDomain, M as Manage, D as DeleteAlert } from './index-
|
|
14
|
+
import { b as DEFAULT_HELP_POPOVER_PROPS, u as useFetchCustomDomains, a as useDeleteCustomDomain, M as Manage, D as DeleteAlert } from './index-d8900f6b.js';
|
|
15
15
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
16
|
+
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
16
17
|
import { PLURAL, SINGULAR } from '@bigbinary/neeto-commons-frontend/constants';
|
|
17
|
-
import withT from '@bigbinary/neeto-commons-frontend/react-utils/withT';
|
|
18
18
|
import { withEventTargetValue, hyphenize } from '@bigbinary/neeto-commons-frontend/utils/general';
|
|
19
|
+
import { mergeRight } from 'ramda';
|
|
19
20
|
import Header$2 from './Header.js';
|
|
20
21
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
21
22
|
import { t } from 'i18next';
|
|
@@ -24,8 +25,6 @@ import classnames from 'classnames';
|
|
|
24
25
|
import Tag from '@bigbinary/neetoui/Tag';
|
|
25
26
|
import './index-e5588516.js';
|
|
26
27
|
import './inject-css-c86de496.js';
|
|
27
|
-
import 'ramda';
|
|
28
|
-
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
29
28
|
import '@bigbinary/neeto-icons/Column';
|
|
30
29
|
import './useColumns-13263cd8.js';
|
|
31
30
|
import '@bigbinary/neeto-icons/Search';
|
|
@@ -68,18 +67,26 @@ import '@bigbinary/neeto-icons/MenuHorizontal';
|
|
|
68
67
|
import '@bigbinary/neeto-icons/MenuVertical';
|
|
69
68
|
import '@bigbinary/neetoui/Tooltip';
|
|
70
69
|
|
|
70
|
+
var _excluded = ["titleHelpPopoverProps"];
|
|
71
71
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
72
72
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
73
|
-
var Header =
|
|
74
|
-
var
|
|
75
|
-
setIsPaneOpen = _ref.setIsPaneOpen,
|
|
73
|
+
var Header = function Header(_ref) {
|
|
74
|
+
var setIsPaneOpen = _ref.setIsPaneOpen,
|
|
76
75
|
searchTerm = _ref.searchTerm,
|
|
77
76
|
setSearchTerm = _ref.setSearchTerm,
|
|
78
|
-
headerProps = _ref.headerProps,
|
|
77
|
+
_ref$headerProps = _ref.headerProps,
|
|
78
|
+
headerProps = _ref$headerProps === void 0 ? {} : _ref$headerProps,
|
|
79
79
|
isFiltersVisible = _ref.isFiltersVisible;
|
|
80
|
+
var _useTranslation = useTranslation(),
|
|
81
|
+
t = _useTranslation.t;
|
|
82
|
+
var _headerProps$titleHel = headerProps.titleHelpPopoverProps,
|
|
83
|
+
titleHelpPopoverProps = _headerProps$titleHel === void 0 ? {} : _headerProps$titleHel,
|
|
84
|
+
restHeaderProps = _objectWithoutProperties(headerProps, _excluded);
|
|
85
|
+
var updatedTitleHelpPopoverProps = mergeRight(DEFAULT_HELP_POPOVER_PROPS, titleHelpPopoverProps);
|
|
80
86
|
return /*#__PURE__*/jsx(Header$2, _objectSpread({
|
|
81
87
|
"data-testid": "custom-domain-header",
|
|
82
88
|
title: t("neetoMolecules.customDomain.customDomain", PLURAL),
|
|
89
|
+
titleHelpPopoverProps: updatedTitleHelpPopoverProps,
|
|
83
90
|
actionBlock: /*#__PURE__*/jsx(Button, {
|
|
84
91
|
"data-cy": "add-new-custom-domain-button",
|
|
85
92
|
label: t("neetoMolecules.customDomain.addNew"),
|
|
@@ -94,8 +101,8 @@ var Header = withT(function (_ref) {
|
|
|
94
101
|
"data-cy": "custom-domain-search-field",
|
|
95
102
|
className: "w-56"
|
|
96
103
|
}
|
|
97
|
-
},
|
|
98
|
-
}
|
|
104
|
+
}, restHeaderProps));
|
|
105
|
+
};
|
|
99
106
|
var Header$1 = /*#__PURE__*/memo(Header);
|
|
100
107
|
|
|
101
108
|
var TagBlock = function TagBlock(_ref) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomDomainDashboard.js","sources":["../src/components/CustomDomainDashboard/Header.jsx","../src/components/CustomDomainDashboard/Manage/TagBlock.jsx","../src/components/CustomDomainDashboard/utils.jsx","../src/components/CustomDomainDashboard/index.jsx"],"sourcesContent":["import { memo } from \"react\";\n\nimport { PLURAL } from \"neetocommons/constants\";\nimport withT from \"neetocommons/react-utils/withT\";\nimport { withEventTargetValue } from \"neetocommons/utils/general\";\nimport { Button } from \"neetoui\";\n\nimport NeetoHeader from \"components/Header\";\n\nconst Header = withT(\n ({\n t,\n setIsPaneOpen,\n searchTerm,\n setSearchTerm,\n headerProps,\n isFiltersVisible,\n }) => (\n <NeetoHeader\n data-testid=\"custom-domain-header\"\n title={t(\"neetoMolecules.customDomain.customDomain\", PLURAL)}\n actionBlock={\n <Button\n data-cy=\"add-new-custom-domain-button\"\n label={t(\"neetoMolecules.customDomain.addNew\")}\n onClick={() => setIsPaneOpen(true)}\n />\n }\n searchProps={\n isFiltersVisible && {\n value: searchTerm,\n onChange: withEventTargetValue(setSearchTerm),\n placeholder: t(\"neetoMolecules.customDomain.search\"),\n \"data-cy\": \"custom-domain-search-field\",\n className: \"w-56\",\n }\n }\n {...headerProps}\n />\n )\n);\n\nexport default memo(Header);\n","import { memo } from \"react\";\n\nimport classnames from \"classnames\";\nimport { snakeToCamelCase } from \"neetocist\";\nimport { hyphenize } from \"neetocommons/utils/general\";\nimport { Tag } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\n\nconst TagBlock = ({ status, stacked = false }) => {\n const { t } = useTranslation();\n const isDomainValidated =\n status === \"active\" || status === \"pending_cname_validation\";\n const camelCasedStatus = snakeToCamelCase(status || \"\");\n\n return (\n <div\n className={classnames(\"flex gap-2\", {\n \"flex-col items-start\": stacked,\n })}\n >\n {status === \"failed\" ? (\n <Tag\n label={t(`neetoMolecules.customDomain.status.${camelCasedStatus}`)}\n style=\"danger\"\n />\n ) : (\n <>\n <Tag\n data-cy={`${hyphenize(status)}-tag-container`}\n style={isDomainValidated ? \"success\" : \"warning\"}\n label={t(\n `neetoMolecules.customDomain.status.domain.${camelCasedStatus}`\n )}\n />\n {isDomainValidated && (\n <div\n className={classnames(\"flex items-center justify-between gap-2\", {\n \"w-full\": stacked,\n })}\n >\n <Tag\n data-cy={`${hyphenize(status)}-tag-container`}\n style={status === \"active\" ? \"success\" : \"warning\"}\n label={t(\n `neetoMolecules.customDomain.status.cname.${camelCasedStatus}`\n )}\n />\n </div>\n )}\n </>\n )}\n </div>\n );\n};\n\nexport default memo(TagBlock);\n","import { t } from \"i18next\";\nimport { SINGULAR } from \"neetocommons/constants\";\nimport { Button } from \"neetoui\";\n\nimport MoreDropdown from \"components/MoreDropdown\";\n\nimport TagBlock from \"./Manage/TagBlock\";\n\nexport const renderColumnData = (enableManagePane, enableDeleteAlert) => [\n {\n title: t(\"neetoMolecules.customDomain.customDomain\", SINGULAR),\n dataIndex: \"hostname\",\n key: \"hostname\",\n width: \"60%\",\n render: (hostName, customDomain) => (\n <div className=\"flex items-center justify-between gap-x-3\">\n <Button\n data-cy=\"hostname-button\"\n label={hostName}\n style=\"link\"\n onClick={() => enableManagePane(customDomain)}\n />\n <MoreDropdown\n dropdownButtonProps={{\n \"data-testid\": `nui-dropdown-icon-${customDomain.id}`,\n }}\n dropdownProps={{\n position: \"bottom-end\",\n strategy: \"fixed\",\n autoWidth: true,\n }}\n menuItems={[\n {\n label: t(\"neetoMolecules.common.actions.edit\"),\n onClick: () => enableManagePane(customDomain),\n key: \"edit-custom-domain-button\",\n },\n {\n label: t(\"neetoMolecules.common.actions.delete\"),\n onClick: () => enableDeleteAlert(customDomain),\n key: \"delete-custom-domain\",\n },\n ]}\n />\n </div>\n ),\n },\n {\n title: t(\"neetoMolecules.common.status\"),\n dataIndex: \"status\",\n key: \"status\",\n render: status => <TagBlock {...{ status }} />,\n width: \"40%\",\n },\n];\n","import { useState } from \"react\";\n\nimport { isNotEmpty, isPresent } from \"neetocist\";\nimport useDebounce from \"neetocommons/react-utils/useDebounce\";\nimport { Table, Typography, NoData, Button, Spinner } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation, Trans } from \"react-i18next\";\n\nimport Container from \"components/Container\";\nimport SubHeader from \"components/SubHeader\";\nimport TableWrapper from \"components/TableWrapper\";\n\nimport DeleteAlert from \"./DeleteAlert\";\nimport Header from \"./Header\";\nimport Manage from \"./Manage\";\nimport {\n useFetchCustomDomains,\n useDeleteCustomDomain,\n} from \"./useCustomDomainApi\";\nimport { renderColumnData } from \"./utils\";\n\nconst CustomDomainDashboard = ({ headerProps, url, onCreate }) => {\n const [searchTerm, setSearchTerm] = useState(\"\");\n const [isPaneOpen, setIsPaneOpen] = useState(false);\n const [customDomain, setCustomDomain] = useState({});\n const [isAlertOpen, setIsAlertOpen] = useState(false);\n const { t } = useTranslation();\n const debouncedSearchTerm = useDebounce(searchTerm, 500);\n\n const { data: data, isLoading } = useFetchCustomDomains({\n url,\n params: { searchTerm: debouncedSearchTerm },\n });\n\n const isFiltersVisible =\n isNotEmpty(data?.customDomains) || isPresent(searchTerm);\n\n const { mutate: deleteCustomDomain, isPending: isDeleting } =\n useDeleteCustomDomain(url, {\n onSettled: () => {\n setIsAlertOpen(false);\n setCustomDomain({});\n },\n });\n\n const enableManagePane = customDomain => {\n setCustomDomain(customDomain);\n setIsPaneOpen(true);\n };\n\n const enableDeleteAlert = customDomain => {\n setCustomDomain(customDomain);\n setIsAlertOpen(true);\n };\n\n const disableManagePane = () => {\n setIsPaneOpen(false);\n setCustomDomain({});\n };\n\n const disableDeleteAlert = () => {\n setIsAlertOpen(false);\n setCustomDomain({});\n };\n\n return (\n <>\n <Container>\n <Header\n {...{\n headerProps,\n isFiltersVisible,\n searchTerm,\n setIsPaneOpen,\n setSearchTerm,\n }}\n />\n {isLoading && (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n )}\n {!isLoading && (\n <>\n <SubHeader\n leftActionBlock={\n !!data?.customDomains?.length && (\n <Typography\n className=\"neeto-ui-gray-800 font-semibold\"\n component=\"h4\"\n >\n {t(\"neetoMolecules.customDomain.customDomainWithCount\", {\n count: data?.customDomains?.length,\n })}\n </Typography>\n )\n }\n />\n {isNotEmpty(data?.customDomains) ? (\n <TableWrapper>\n <Table\n fixedHeight\n allowRowClick={false}\n rowData={data?.customDomains}\n rowSelection={false}\n columnData={renderColumnData(\n enableManagePane,\n enableDeleteAlert\n )}\n />\n </TableWrapper>\n ) : (\n <div className=\"flex h-full w-full flex-grow items-center justify-center\">\n <NoData\n title={t(\"neetoMolecules.customDomain.notFound\")}\n helpText={\n <Trans\n i18nKey=\"neetoMolecules.customDomain.learnMoreMessage\"\n components={{\n button: (\n <Button\n href=\"https://help.neetosite.com/p/a-95ad5b03\"\n style=\"link\"\n target=\"_blank\"\n />\n ),\n }}\n />\n }\n primaryButtonProps={{\n label: t(\"neetoMolecules.customDomain.addNew\"),\n onClick: () => setIsPaneOpen(true),\n }}\n />\n </div>\n )}\n </>\n )}\n </Container>\n <Manage\n {...{ customDomain, onCreate, setCustomDomain, url }}\n hasOne={false}\n isOpen={isPaneOpen}\n onClose={disableManagePane}\n />\n <DeleteAlert\n hostname={customDomain?.hostname}\n isOpen={isAlertOpen}\n isSubmitting={isDeleting}\n onClose={disableDeleteAlert}\n onSubmit={() => deleteCustomDomain(customDomain?.id)}\n />\n </>\n );\n};\n\nCustomDomainDashboard.propTypes = {\n /**\n * The props to be passed to the `CustomDomain` page header. Accepts all props that can be passed to the `Header` component.\n */\n headerProps: PropTypes.object,\n /**\n * API path to manage custom domain records.\n */\n url: PropTypes.string,\n /**\n * Callback function will be invoked with new domain values after successfully creating the domain.\n */\n onCreate: PropTypes.func,\n};\n\nexport default CustomDomainDashboard;\n"],"names":["Header","withT","_ref","t","setIsPaneOpen","searchTerm","setSearchTerm","headerProps","isFiltersVisible","_jsx","NeetoHeader","_objectSpread","title","PLURAL","actionBlock","Button","label","onClick","searchProps","value","onChange","withEventTargetValue","placeholder","className","memo","TagBlock","status","_ref$stacked","stacked","_useTranslation","useTranslation","isDomainValidated","camelCasedStatus","snakeToCamelCase","classnames","children","Tag","concat","style","_jsxs","_Fragment","hyphenize","renderColumnData","enableManagePane","enableDeleteAlert","SINGULAR","dataIndex","key","width","render","hostName","customDomain","MoreDropdown","dropdownButtonProps","id","dropdownProps","position","strategy","autoWidth","menuItems","CustomDomainDashboard","_data$customDomains","_data$customDomains2","url","onCreate","_useState","useState","_useState2","_slicedToArray","_useState3","_useState4","isPaneOpen","_useState5","_useState6","setCustomDomain","_useState7","_useState8","isAlertOpen","setIsAlertOpen","debouncedSearchTerm","useDebounce","_useFetchCustomDomain","useFetchCustomDomains","params","data","isLoading","isNotEmpty","customDomains","isPresent","_useDeleteCustomDomai","useDeleteCustomDomain","onSettled","deleteCustomDomain","mutate","isDeleting","isPending","disableManagePane","disableDeleteAlert","Container","Spinner","SubHeader","leftActionBlock","length","Typography","component","count","TableWrapper","Table","fixedHeight","allowRowClick","rowData","rowSelection","columnData","NoData","helpText","Trans","i18nKey","components","button","href","target","primaryButtonProps","Manage","hasOne","isOpen","onClose","DeleteAlert","hostname","isSubmitting","onSubmit"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,IAAMA,MAAM,GAAGC,KAAK,CAClB,UAAAC,IAAA,EAAA;AAAA,EAAA,IACEC,CAAC,GAAAD,IAAA,CAADC,CAAC;IACDC,aAAa,GAAAF,IAAA,CAAbE,aAAa;IACbC,UAAU,GAAAH,IAAA,CAAVG,UAAU;IACVC,aAAa,GAAAJ,IAAA,CAAbI,aAAa;IACbC,WAAW,GAAAL,IAAA,CAAXK,WAAW;IACXC,gBAAgB,GAAAN,IAAA,CAAhBM,gBAAgB,CAAA;AAAA,EAAA,oBAEhBC,GAAA,CAACC,QAAW,EAAAC,aAAA,CAAA;AACV,IAAA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H,WAAW,EAAA;AACVC,MAAAA,QAAQ,EAAE5E,YAAY,KAAA,IAAA,IAAZA,YAAY,KAAZA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,YAAY,CAAE4E,QAAS;AACjCH,MAAAA,MAAM,EAAE/C,WAAY;AACpBmD,MAAAA,YAAY,EAAElC,UAAW;AACzB+B,MAAAA,OAAO,EAAE5B,kBAAmB;MAC5BgC,QAAQ,EAAE,SAAAA,QAAA,GAAA;QAAA,OAAMrC,kBAAkB,CAACzC,YAAY,KAAA,IAAA,IAAZA,YAAY,KAAZA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,YAAY,CAAEG,EAAE,CAAC,CAAA;AAAA,OAAA;AAAC,KACtD,CAAC,CAAA;AAAA,GACF,CAAC,CAAA;AAEP;;;;"}
|
|
1
|
+
{"version":3,"file":"CustomDomainDashboard.js","sources":["../src/components/CustomDomainDashboard/Header.jsx","../src/components/CustomDomainDashboard/Manage/TagBlock.jsx","../src/components/CustomDomainDashboard/utils.jsx","../src/components/CustomDomainDashboard/index.jsx"],"sourcesContent":["import { memo } from \"react\";\n\nimport { PLURAL } from \"neetocommons/constants\";\nimport { withEventTargetValue } from \"neetocommons/utils/general\";\nimport { Button } from \"neetoui\";\nimport { mergeRight } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport NeetoHeader from \"components/Header\";\n\nimport { DEFAULT_HELP_POPOVER_PROPS } from \"./constants\";\n\nconst Header = ({\n setIsPaneOpen,\n searchTerm,\n setSearchTerm,\n headerProps = {},\n isFiltersVisible,\n}) => {\n const { t } = useTranslation();\n\n const { titleHelpPopoverProps = {}, ...restHeaderProps } = headerProps;\n\n const updatedTitleHelpPopoverProps = mergeRight(\n DEFAULT_HELP_POPOVER_PROPS,\n titleHelpPopoverProps\n );\n\n return (\n <NeetoHeader\n data-testid=\"custom-domain-header\"\n title={t(\"neetoMolecules.customDomain.customDomain\", PLURAL)}\n titleHelpPopoverProps={updatedTitleHelpPopoverProps}\n actionBlock={\n <Button\n data-cy=\"add-new-custom-domain-button\"\n label={t(\"neetoMolecules.customDomain.addNew\")}\n onClick={() => setIsPaneOpen(true)}\n />\n }\n searchProps={\n isFiltersVisible && {\n value: searchTerm,\n onChange: withEventTargetValue(setSearchTerm),\n placeholder: t(\"neetoMolecules.customDomain.search\"),\n \"data-cy\": \"custom-domain-search-field\",\n className: \"w-56\",\n }\n }\n {...restHeaderProps}\n />\n );\n};\n\nexport default memo(Header);\n","import { memo } from \"react\";\n\nimport classnames from \"classnames\";\nimport { snakeToCamelCase } from \"neetocist\";\nimport { hyphenize } from \"neetocommons/utils/general\";\nimport { Tag } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\n\nconst TagBlock = ({ status, stacked = false }) => {\n const { t } = useTranslation();\n const isDomainValidated =\n status === \"active\" || status === \"pending_cname_validation\";\n const camelCasedStatus = snakeToCamelCase(status || \"\");\n\n return (\n <div\n className={classnames(\"flex gap-2\", {\n \"flex-col items-start\": stacked,\n })}\n >\n {status === \"failed\" ? (\n <Tag\n label={t(`neetoMolecules.customDomain.status.${camelCasedStatus}`)}\n style=\"danger\"\n />\n ) : (\n <>\n <Tag\n data-cy={`${hyphenize(status)}-tag-container`}\n style={isDomainValidated ? \"success\" : \"warning\"}\n label={t(\n `neetoMolecules.customDomain.status.domain.${camelCasedStatus}`\n )}\n />\n {isDomainValidated && (\n <div\n className={classnames(\"flex items-center justify-between gap-2\", {\n \"w-full\": stacked,\n })}\n >\n <Tag\n data-cy={`${hyphenize(status)}-tag-container`}\n style={status === \"active\" ? \"success\" : \"warning\"}\n label={t(\n `neetoMolecules.customDomain.status.cname.${camelCasedStatus}`\n )}\n />\n </div>\n )}\n </>\n )}\n </div>\n );\n};\n\nexport default memo(TagBlock);\n","import { t } from \"i18next\";\nimport { SINGULAR } from \"neetocommons/constants\";\nimport { Button } from \"neetoui\";\n\nimport MoreDropdown from \"components/MoreDropdown\";\n\nimport TagBlock from \"./Manage/TagBlock\";\n\nexport const renderColumnData = (enableManagePane, enableDeleteAlert) => [\n {\n title: t(\"neetoMolecules.customDomain.customDomain\", SINGULAR),\n dataIndex: \"hostname\",\n key: \"hostname\",\n width: \"60%\",\n render: (hostName, customDomain) => (\n <div className=\"flex items-center justify-between gap-x-3\">\n <Button\n data-cy=\"hostname-button\"\n label={hostName}\n style=\"link\"\n onClick={() => enableManagePane(customDomain)}\n />\n <MoreDropdown\n dropdownButtonProps={{\n \"data-testid\": `nui-dropdown-icon-${customDomain.id}`,\n }}\n dropdownProps={{\n position: \"bottom-end\",\n strategy: \"fixed\",\n autoWidth: true,\n }}\n menuItems={[\n {\n label: t(\"neetoMolecules.common.actions.edit\"),\n onClick: () => enableManagePane(customDomain),\n key: \"edit-custom-domain-button\",\n },\n {\n label: t(\"neetoMolecules.common.actions.delete\"),\n onClick: () => enableDeleteAlert(customDomain),\n key: \"delete-custom-domain\",\n },\n ]}\n />\n </div>\n ),\n },\n {\n title: t(\"neetoMolecules.common.status\"),\n dataIndex: \"status\",\n key: \"status\",\n render: status => <TagBlock {...{ status }} />,\n width: \"40%\",\n },\n];\n","import { useState } from \"react\";\n\nimport { isNotEmpty, isPresent } from \"neetocist\";\nimport useDebounce from \"neetocommons/react-utils/useDebounce\";\nimport { Table, Typography, NoData, Button, Spinner } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation, Trans } from \"react-i18next\";\n\nimport Container from \"components/Container\";\nimport SubHeader from \"components/SubHeader\";\nimport TableWrapper from \"components/TableWrapper\";\n\nimport DeleteAlert from \"./DeleteAlert\";\nimport Header from \"./Header\";\nimport Manage from \"./Manage\";\nimport {\n useFetchCustomDomains,\n useDeleteCustomDomain,\n} from \"./useCustomDomainApi\";\nimport { renderColumnData } from \"./utils\";\n\nconst CustomDomainDashboard = ({ headerProps, url, onCreate }) => {\n const [searchTerm, setSearchTerm] = useState(\"\");\n const [isPaneOpen, setIsPaneOpen] = useState(false);\n const [customDomain, setCustomDomain] = useState({});\n const [isAlertOpen, setIsAlertOpen] = useState(false);\n const { t } = useTranslation();\n const debouncedSearchTerm = useDebounce(searchTerm, 500);\n\n const { data: data, isLoading } = useFetchCustomDomains({\n url,\n params: { searchTerm: debouncedSearchTerm },\n });\n\n const isFiltersVisible =\n isNotEmpty(data?.customDomains) || isPresent(searchTerm);\n\n const { mutate: deleteCustomDomain, isPending: isDeleting } =\n useDeleteCustomDomain(url, {\n onSettled: () => {\n setIsAlertOpen(false);\n setCustomDomain({});\n },\n });\n\n const enableManagePane = customDomain => {\n setCustomDomain(customDomain);\n setIsPaneOpen(true);\n };\n\n const enableDeleteAlert = customDomain => {\n setCustomDomain(customDomain);\n setIsAlertOpen(true);\n };\n\n const disableManagePane = () => {\n setIsPaneOpen(false);\n setCustomDomain({});\n };\n\n const disableDeleteAlert = () => {\n setIsAlertOpen(false);\n setCustomDomain({});\n };\n\n return (\n <>\n <Container>\n <Header\n {...{\n headerProps,\n isFiltersVisible,\n searchTerm,\n setIsPaneOpen,\n setSearchTerm,\n }}\n />\n {isLoading && (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n )}\n {!isLoading && (\n <>\n <SubHeader\n leftActionBlock={\n !!data?.customDomains?.length && (\n <Typography\n className=\"neeto-ui-gray-800 font-semibold\"\n component=\"h4\"\n >\n {t(\"neetoMolecules.customDomain.customDomainWithCount\", {\n count: data?.customDomains?.length,\n })}\n </Typography>\n )\n }\n />\n {isNotEmpty(data?.customDomains) ? (\n <TableWrapper>\n <Table\n fixedHeight\n allowRowClick={false}\n rowData={data?.customDomains}\n rowSelection={false}\n columnData={renderColumnData(\n enableManagePane,\n enableDeleteAlert\n )}\n />\n </TableWrapper>\n ) : (\n <div className=\"flex h-full w-full flex-grow items-center justify-center\">\n <NoData\n title={t(\"neetoMolecules.customDomain.notFound\")}\n helpText={\n <Trans\n i18nKey=\"neetoMolecules.customDomain.learnMoreMessage\"\n components={{\n button: (\n <Button\n href=\"https://help.neetosite.com/p/a-95ad5b03\"\n style=\"link\"\n target=\"_blank\"\n />\n ),\n }}\n />\n }\n primaryButtonProps={{\n label: t(\"neetoMolecules.customDomain.addNew\"),\n onClick: () => setIsPaneOpen(true),\n }}\n />\n </div>\n )}\n </>\n )}\n </Container>\n <Manage\n {...{ customDomain, onCreate, setCustomDomain, url }}\n hasOne={false}\n isOpen={isPaneOpen}\n onClose={disableManagePane}\n />\n <DeleteAlert\n hostname={customDomain?.hostname}\n isOpen={isAlertOpen}\n isSubmitting={isDeleting}\n onClose={disableDeleteAlert}\n onSubmit={() => deleteCustomDomain(customDomain?.id)}\n />\n </>\n );\n};\n\nCustomDomainDashboard.propTypes = {\n /**\n * The props to be passed to the `CustomDomain` page header. Accepts all props that can be passed to the `Header` component.\n */\n headerProps: PropTypes.object,\n /**\n * API path to manage custom domain records.\n */\n url: PropTypes.string,\n /**\n * Callback function will be invoked with new domain values after successfully creating the domain.\n */\n onCreate: PropTypes.func,\n};\n\nexport default CustomDomainDashboard;\n"],"names":["Header","_ref","setIsPaneOpen","searchTerm","setSearchTerm","_ref$headerProps","headerProps","isFiltersVisible","_useTranslation","useTranslation","t","_headerProps$titleHel","titleHelpPopoverProps","restHeaderProps","_objectWithoutProperties","_excluded","updatedTitleHelpPopoverProps","mergeRight","DEFAULT_HELP_POPOVER_PROPS","_jsx","NeetoHeader","_objectSpread","title","PLURAL","actionBlock","Button","label","onClick","searchProps","value","onChange","withEventTargetValue","placeholder","className","memo","TagBlock","status","_ref$stacked","stacked","isDomainValidated","camelCasedStatus","snakeToCamelCase","classnames","children","Tag","concat","style","_jsxs","_Fragment","hyphenize","renderColumnData","enableManagePane","enableDeleteAlert","SINGULAR","dataIndex","key","width","render","hostName","customDomain","MoreDropdown","dropdownButtonProps","id","dropdownProps","position","strategy","autoWidth","menuItems","CustomDomainDashboard","_data$customDomains","_data$customDomains2","url","onCreate","_useState","useState","_useState2","_slicedToArray","_useState3","_useState4","isPaneOpen","_useState5","_useState6","setCustomDomain","_useState7","_useState8","isAlertOpen","setIsAlertOpen","debouncedSearchTerm","useDebounce","_useFetchCustomDomain","useFetchCustomDomains","params","data","isLoading","isNotEmpty","customDomains","isPresent","_useDeleteCustomDomai","useDeleteCustomDomain","onSettled","deleteCustomDomain","mutate","isDeleting","isPending","disableManagePane","disableDeleteAlert","Container","Spinner","SubHeader","leftActionBlock","length","Typography","component","count","TableWrapper","Table","fixedHeight","allowRowClick","rowData","rowSelection","columnData","NoData","helpText","Trans","i18nKey","components","button","href","target","primaryButtonProps","Manage","hasOne","isOpen","onClose","DeleteAlert","hostname","isSubmitting","onSubmit"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,IAAMA,MAAM,GAAG,SAATA,MAAMA,CAAAC,IAAA,EAMN;AAAA,EAAA,IALJC,aAAa,GAAAD,IAAA,CAAbC,aAAa;IACbC,UAAU,GAAAF,IAAA,CAAVE,UAAU;IACVC,aAAa,GAAAH,IAAA,CAAbG,aAAa;IAAAC,gBAAA,GAAAJ,IAAA,CACbK,WAAW;AAAXA,IAAAA,WAAW,GAAAD,gBAAA,KAAA,KAAA,CAAA,GAAG,EAAE,GAAAA,gBAAA;IAChBE,gBAAgB,GAAAN,IAAA,CAAhBM,gBAAgB,CAAA;AAEhB,EAAA,IAAAC,eAAA,GAAcC,cAAc,EAAE;IAAtBC,CAAC,GAAAF,eAAA,CAADE,CAAC,CAAA;AAET,EAAA,IAAAC,qBAAA,GAA2DL,WAAW,CAA9DM,qBAAqB;AAArBA,IAAAA,qBAAqB,GAAAD,qBAAA,KAAA,KAAA,CAAA,GAAG,EAAE,GAAAA,qBAAA;AAAKE,IAAAA,eAAe,GAAAC,wBAAA,CAAKR,WAAW,EAAAS,SAAA,CAAA,CAAA;AAEtE,EAAA,IAAMC,4BAA4B,GAAGC,UAAU,CAC7CC,0BAA0B,EAC1BN,qBACF,CAAC,CAAA;AAED,EAAA,oBACEO,GAAA,CAACC,Q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AACnBsD,MAAAA,OAAO,EAAE7B,iBAAAA;AAAkB,KAC5B,CAAC,eACFrF,GAAA,CAACmH,WAAW,EAAA;AACVC,MAAAA,QAAQ,EAAE5E,YAAY,KAAA,IAAA,IAAZA,YAAY,KAAZA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,YAAY,CAAE4E,QAAS;AACjCH,MAAAA,MAAM,EAAE/C,WAAY;AACpBmD,MAAAA,YAAY,EAAElC,UAAW;AACzB+B,MAAAA,OAAO,EAAE5B,kBAAmB;MAC5BgC,QAAQ,EAAE,SAAAA,QAAA,GAAA;QAAA,OAAMrC,kBAAkB,CAACzC,YAAY,KAAA,IAAA,IAAZA,YAAY,KAAZA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,YAAY,CAAEG,EAAE,CAAC,CAAA;AAAA,OAAA;AAAC,KACtD,CAAC,CAAA;AAAA,GACF,CAAC,CAAA;AAEP;;;;"}
|
package/dist/EmailPreview.js
CHANGED
|
@@ -26,7 +26,7 @@ var EmailPreview = withT(function (_ref) {
|
|
|
26
26
|
"data-testid": "email-preview",
|
|
27
27
|
className: classnames("neeto-ui-border-gray-300 neeto-ui-shadow-m neeto-ui-bg-white flex flex-1 flex-col border", className),
|
|
28
28
|
children: [/*#__PURE__*/jsxs("div", {
|
|
29
|
-
className: "neeto-ui-border-gray-300 space-y-3
|
|
29
|
+
className: "neeto-ui-border-gray-300 space-y-3 border-b p-6",
|
|
30
30
|
children: [/*#__PURE__*/jsxs("div", {
|
|
31
31
|
className: "flex gap-2",
|
|
32
32
|
"data-cy": "email-send-to-preview",
|
|
@@ -45,7 +45,7 @@ var EmailPreview = withT(function (_ref) {
|
|
|
45
45
|
className: "neeto-ui-bg-gray-300 neeto-ui-rounded-full mt-2 h-2 w-40"
|
|
46
46
|
})]
|
|
47
47
|
}), from && /*#__PURE__*/jsxs("div", {
|
|
48
|
-
className: "flex items-center gap-2 pt-3",
|
|
48
|
+
className: "neeto-ui-border-gray-200 flex items-center gap-2 border-t pt-3",
|
|
49
49
|
children: [/*#__PURE__*/jsxs(Typography, {
|
|
50
50
|
className: "neeto-ui-text-gray-500",
|
|
51
51
|
lineHeight: "normal",
|
|
@@ -59,7 +59,7 @@ var EmailPreview = withT(function (_ref) {
|
|
|
59
59
|
children: from
|
|
60
60
|
})]
|
|
61
61
|
}), /*#__PURE__*/jsxs("div", {
|
|
62
|
-
className: "flex items-center gap-2 pt-3",
|
|
62
|
+
className: "neeto-ui-border-gray-200 flex items-center gap-2 border-t pt-3",
|
|
63
63
|
children: [/*#__PURE__*/jsxs(Typography, {
|
|
64
64
|
className: "neeto-ui-text-gray-500",
|
|
65
65
|
lineHeight: "normal",
|
package/dist/EmailPreview.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmailPreview.js","sources":["../src/components/EmailPreview.jsx"],"sourcesContent":["import { memo } from \"react\";\n\nimport classnames from \"classnames\";\nimport { isPresent } from \"neetocist\";\nimport withT from \"neetocommons/react-utils/withT\";\nimport { EditorContent } from \"neetoeditor\";\nimport { Typography, Button } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nconst MemoizedEditorContent = memo(EditorContent);\n\nconst EmailPreview = withT(\n ({\n t,\n to = [],\n from,\n subject,\n body,\n actionButtonText,\n logo,\n className = \"\",\n customContent,\n }) => (\n <div\n data-cy=\"email-preview-card\"\n data-testid=\"email-preview\"\n className={classnames(\n \"neeto-ui-border-gray-300 neeto-ui-shadow-m neeto-ui-bg-white flex flex-1 flex-col border\",\n className\n )}\n >\n <div className=\"neeto-ui-border-gray-300 space-y-3
|
|
1
|
+
{"version":3,"file":"EmailPreview.js","sources":["../src/components/EmailPreview.jsx"],"sourcesContent":["import { memo } from \"react\";\n\nimport classnames from \"classnames\";\nimport { isPresent } from \"neetocist\";\nimport withT from \"neetocommons/react-utils/withT\";\nimport { EditorContent } from \"neetoeditor\";\nimport { Typography, Button } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nconst MemoizedEditorContent = memo(EditorContent);\n\nconst EmailPreview = withT(\n ({\n t,\n to = [],\n from,\n subject,\n body,\n actionButtonText,\n logo,\n className = \"\",\n customContent,\n }) => (\n <div\n data-cy=\"email-preview-card\"\n data-testid=\"email-preview\"\n className={classnames(\n \"neeto-ui-border-gray-300 neeto-ui-shadow-m neeto-ui-bg-white flex flex-1 flex-col border\",\n className\n )}\n >\n <div className=\"neeto-ui-border-gray-300 space-y-3 border-b p-6\">\n <div\n className=\"flex gap-2\"\n data-cy=\"email-send-to-preview\"\n data-testid=\"email-to-block\"\n >\n <Typography\n className=\"neeto-ui-text-gray-500\"\n lineHeight=\"normal\"\n style=\"body2\"\n >\n {t(\"neetoMolecules.emailPreview.to\")}:\n </Typography>\n {isPresent(to) ? (\n <Typography\n className=\"neeto-ui-text-gray-800 min-w-0 flex-grow break-words\"\n lineHeight=\"normal\"\n style=\"body2\"\n >\n {to.join(\", \")}\n </Typography>\n ) : (\n <div className=\"neeto-ui-bg-gray-300 neeto-ui-rounded-full mt-2 h-2 w-40\" />\n )}\n </div>\n {from && (\n <div className=\"neeto-ui-border-gray-200 flex items-center gap-2 border-t pt-3\">\n <Typography\n className=\"neeto-ui-text-gray-500\"\n lineHeight=\"normal\"\n style=\"body2\"\n >\n {t(\"neetoMolecules.emailPreview.from\")}:\n </Typography>\n <Typography\n className=\"neeto-ui-text-gray-800 min-w-0 flex-grow break-words\"\n data-cy=\"email-send-from-preview\"\n lineHeight=\"normal\"\n style=\"body2\"\n >\n {from}\n </Typography>\n </div>\n )}\n <div className=\"neeto-ui-border-gray-200 flex items-center gap-2 border-t pt-3\">\n <Typography\n className=\"neeto-ui-text-gray-500\"\n lineHeight=\"normal\"\n style=\"body2\"\n >\n {t(\"neetoMolecules.emailPreview.subject\")}:\n </Typography>\n <Typography\n className=\"neeto-ui-text-gray-800 min-w-0 flex-grow break-words\"\n data-cy=\"email-subject-preview\"\n lineHeight=\"normal\"\n style=\"body2\"\n >\n {subject || (\n <span className=\"neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-40\" />\n )}\n </Typography>\n </div>\n </div>\n <div\n className=\"neeto-ui-text-gray-800 flex flex-1 flex-col justify-between space-y-6 p-6 pr-10 text-base leading-relaxed\"\n data-cy=\"email-body-preview-container\"\n >\n {body ? (\n <MemoizedEditorContent content={body} />\n ) : (\n <div className=\"space-y-4\">\n <div className=\"neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-48 max-w-full md:w-80\" />\n <div className=\"neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-40 max-w-full md:w-72\" />\n <div className=\"neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-48 max-w-full md:w-80\" />\n </div>\n )}\n {customContent && customContent}\n {actionButtonText && (\n <div className=\"mt-6 flex w-full items-center justify-center\">\n <Button className=\"pointer-events-none\" label={actionButtonText} />\n </div>\n )}\n {logo && (\n <img\n alt={t(\"neetoMolecules.emailPreview.logoAltText\")}\n className=\"h-20 w-36 object-cover\"\n data-cy=\"company-logo-preview\"\n src={logo}\n />\n )}\n </div>\n </div>\n )\n);\n\nEmailPreview.propTypes = {\n /**\n * The value of the send-to field.\n */\n to: PropTypes.arrayOf(PropTypes.string),\n /**\n * The value of the send-from field.\n */\n from: PropTypes.string,\n /**\n * The subject of the email.\n */\n subject: PropTypes.string,\n /**\n * The body of the email.\n */\n body: PropTypes.string,\n /**\n * The text to be shown in the action button.\n */\n actionButtonText: PropTypes.string,\n /**\n * Source link for the company logo.\n */\n logo: PropTypes.string,\n /**\n * To pass custom content that will be rendered above the action button.\n */\n customContent: PropTypes.string,\n};\n\nexport default EmailPreview;\n"],"names":["MemoizedEditorContent","memo","EditorContent","EmailPreview","withT","_ref","t","_ref$to","to","from","subject","body","actionButtonText","logo","_ref$className","className","customContent","_jsxs","classnames","children","Typography","lineHeight","style","isPresent","_jsx","join","content","Button","label","alt","src","propTypes","PropTypes","arrayOf","string"],"mappings":";;;;;;;;;;AASA,IAAMA,qBA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,QAAAA,GAAG,EAAEvB,CAAC,CAAC,yCAAyC,CAAE;AAClDS,QAAAA,SAAS,EAAC,wBAAwB;AAClC,QAAA,SAAA,EAAQ,sBAAsB;AAC9Be,QAAAA,GAAG,EAAEjB,IAAAA;AAAK,OACX,CACF,CAAA;AAAA,KACE,CAAC,CAAA;AAAA,GACH,CAAC,CAAA;AAAA,CAEV,EAAC;AAEDV,YAAY,CAAC4B,SAAS,GAAG;AACvB;AACF;AACA;EACEvB,EAAE,EAAEwB,iBAAS,CAACC,OAAO,CAACD,iBAAS,CAACE,MAAM,CAAC;AACvC;AACF;AACA;EACEzB,IAAI,EAAEuB,iBAAS,CAACE,MAAM;AACtB;AACF;AACA;EACExB,OAAO,EAAEsB,iBAAS,CAACE,MAAM;AACzB;AACF;AACA;EACEvB,IAAI,EAAEqB,iBAAS,CAACE,MAAM;AACtB;AACF;AACA;EACEtB,gBAAgB,EAAEoB,iBAAS,CAACE,MAAM;AAClC;AACF;AACA;EACErB,IAAI,EAAEmB,iBAAS,CAACE,MAAM;AACtB;AACF;AACA;EACElB,aAAa,EAAEgB,iBAAS,CAACE,MAAAA;AAC3B,CAAC;;;;"}
|
package/dist/ErrorPage.js
CHANGED
|
@@ -7,6 +7,7 @@ import Button from '@bigbinary/neetoui/Button';
|
|
|
7
7
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
8
8
|
import { Helmet } from 'react-helmet';
|
|
9
9
|
import { useTranslation, Trans } from 'react-i18next';
|
|
10
|
+
import { n } from './inject-css-c86de496.js';
|
|
10
11
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
11
12
|
|
|
12
13
|
var _path$2, _path2$1;
|
|
@@ -78,6 +79,9 @@ var ERRORS = {
|
|
|
78
79
|
}
|
|
79
80
|
};
|
|
80
81
|
|
|
82
|
+
var css = ".neeto-ui-theme--dark .neeto-molecules-error-code path{fill:rgb(var(--neeto-ui-black))}";
|
|
83
|
+
n(css,{});
|
|
84
|
+
|
|
81
85
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
82
86
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
83
87
|
var ErrorPage = function ErrorPage(_ref) {
|
|
@@ -126,7 +130,7 @@ var ErrorPage = function ErrorPage(_ref) {
|
|
|
126
130
|
children: /*#__PURE__*/jsxs("div", {
|
|
127
131
|
className: "flex flex-col gap-8 p-4 sm:flex-row sm:gap-20 sm:p-6",
|
|
128
132
|
children: [/*#__PURE__*/jsx(Image, {
|
|
129
|
-
className: "w-full max-w-[150px] sm:max-w-[250px]",
|
|
133
|
+
className: "neeto-molecules-error-code w-full max-w-[150px] sm:max-w-[250px]",
|
|
130
134
|
"data-cy": "error-image"
|
|
131
135
|
}), /*#__PURE__*/jsxs("div", {
|
|
132
136
|
className: "flex flex-col",
|
package/dist/ErrorPage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorPage.js","sources":["../src/assets/images/internal-server-error.svg","../src/assets/images/page-not-found.svg","../src/assets/images/unauthorized.svg","../src/components/ErrorPage/constants.js","../src/components/ErrorPage/index.jsx"],"sourcesContent":["<svg viewBox=\"0 0 257 117\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M37.3025 116.601C17.8183 116.601 2.40303 104.081 0.525027 88.04L0.446777 87.3358H6.62853L6.70678 87.8835C8.50653 100.795 21.4178 111.046 37.3808 111.046C56.0825 111.046 69.9328 97.5083 69.9328 79.1195V78.963C69.9328 60.8873 56.239 47.037 38.1633 47.037C27.5213 47.037 18.053 51.4973 11.7148 59.4005C10.4628 60.7308 9.36728 62.2958 8.42828 63.939H2.40303L8.97603 2.04327H68.8373V7.67727H14.297L8.89778 56.114H9.21078C15.236 47.1153 26.5823 41.5595 38.8675 41.5595C60.1515 41.5595 76.1145 57.5225 76.1145 78.8065V78.963C76.1145 100.716 59.682 116.601 37.3025 116.601Z\" fill=\"black\"/>\n<path d=\"M125.963 116.601C101.079 116.601 86.0554 94.2218 86.0554 58.618V58.3833C86.0554 22.7013 101.079 0.400024 125.963 0.400024C150.846 0.400024 165.949 22.8578 165.949 58.3833V58.618C165.949 94.4565 150.846 116.601 125.963 116.601ZM125.963 111.046C147.09 111.046 159.689 90.7788 159.689 58.618V58.3833C159.689 26.066 147.09 5.95577 125.963 5.95577C104.835 5.95577 92.2371 26.3008 92.2371 58.3833V58.618C92.2371 90.7788 104.835 111.046 125.963 111.046Z\" fill=\"black\"/>\n<path d=\"M216.188 116.601C191.305 116.601 176.281 94.2218 176.281 58.618V58.3833C176.281 22.7013 191.305 0.400024 216.188 0.400024C241.072 0.400024 256.174 22.8578 256.174 58.3833V58.618C256.174 94.4565 241.072 116.601 216.188 116.601ZM216.188 111.046C237.316 111.046 249.914 90.7788 249.914 58.618V58.3833C249.914 26.066 237.316 5.95577 216.188 5.95577C195.061 5.95577 182.463 26.3008 182.463 58.3833V58.618C182.463 90.7788 195.061 111.046 216.188 111.046Z\" fill=\"black\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0.127869 88.0865L0.127595 88.0842L0 86.9357H6.97557L7.10308 87.8283C8.86943 100.5 21.572 110.645 37.3809 110.645C55.8695 110.645 69.5329 97.2796 69.5329 79.1195V78.963C69.5329 61.1056 56.0156 47.437 38.1634 47.437C27.6371 47.437 18.2858 51.8464 12.0269 59.6507L12.017 59.6631L12.0062 59.6746C10.7808 60.9766 9.70316 62.5144 8.7757 64.1374L8.66053 64.339H1.95843L8.61638 1.64325H69.2374V8.07725H14.655L9.4107 55.1243C15.6405 46.452 26.8216 41.1595 38.8676 41.1595C60.3726 41.1595 76.5146 57.3016 76.5146 78.8065V78.963C76.5146 100.949 59.891 117.001 37.3027 117.001C17.66 117.001 2.0343 104.371 0.127869 88.0865ZM9.3181 55.9551C9.28218 56.0079 9.24632 56.0609 9.21078 56.114H8.89778L14.297 7.67727H68.8373V2.04327H8.97603L2.40303 63.939H8.42828C9.36728 62.2958 10.4628 60.7308 11.7148 59.4005C18.053 51.4973 27.5213 47.037 38.1633 47.037C56.239 47.037 69.9328 60.8873 69.9328 78.963V79.1195C69.9328 97.5083 56.0825 111.046 37.3808 111.046C21.4178 111.046 8.50653 100.795 6.70678 87.8835L6.62853 87.3358H0.446777L0.525027 88.04C2.40303 104.081 17.8183 116.601 37.3025 116.601C59.682 116.601 76.1145 100.716 76.1145 78.963V78.8065C76.1145 57.5225 60.1515 41.5595 38.8675 41.5595C26.6547 41.5595 15.3701 47.0499 9.3181 55.9551ZM96.3477 101.187C89.4208 91.0529 85.6555 76.4689 85.6555 58.618V58.3832C85.6555 40.4933 89.4208 25.9092 96.3478 15.785C103.286 5.64522 113.384 0 125.963 0C138.543 0 148.66 5.68505 155.617 15.8435C162.564 25.9869 166.349 40.5709 166.349 58.3832V58.618C166.349 76.5862 162.564 91.1708 155.617 101.276C148.659 111.396 138.541 117.001 125.963 117.001C113.383 117.001 103.285 111.336 96.3477 101.187ZM150.411 96.677C156.147 87.6769 159.289 74.654 159.289 58.618V58.3832C159.289 42.2686 156.147 29.2461 150.412 20.2658C144.688 11.3026 136.378 6.35575 125.963 6.35575C115.55 6.35575 107.24 11.3597 101.515 20.3534C95.7793 29.3635 92.6373 42.3865 92.6373 58.3832V58.618C92.6373 74.654 95.7794 87.6769 101.515 96.677C107.239 105.661 115.55 110.645 125.963 110.645C136.376 110.645 144.687 105.661 150.411 96.677ZM186.573 101.187C179.646 91.0529 175.881 76.4689 175.881 58.618V58.3832C175.881 40.4933 179.646 25.9092 186.573 15.785C193.511 5.64522 203.609 0 216.188 0C228.769 0 238.886 5.68505 245.843 15.8435C252.789 25.9869 256.574 40.5709 256.574 58.3832V58.618C256.574 76.5862 252.789 91.1708 245.842 101.276C238.884 111.396 228.767 117.001 216.188 117.001C203.608 117.001 193.511 111.336 186.573 101.187ZM240.637 96.677C246.372 87.6769 249.514 74.654 249.514 58.618V58.3832C249.514 42.2686 246.372 29.2461 240.637 20.2658C234.913 11.3026 226.603 6.35575 216.188 6.35575C205.775 6.35575 197.465 11.3597 191.74 20.3534C186.005 29.3635 182.863 42.3865 182.863 58.3832V58.618C182.863 74.654 186.005 87.6769 191.74 96.677C197.465 105.661 205.775 110.645 216.188 110.645C226.602 110.645 234.912 105.661 240.637 96.677ZM125.963 116.601C101.079 116.601 86.0554 94.2218 86.0554 58.618V58.3833C86.0554 22.7013 101.079 0.400024 125.963 0.400024C150.846 0.400024 165.949 22.8578 165.949 58.3833V58.618C165.949 94.4565 150.846 116.601 125.963 116.601ZM125.963 111.046C147.09 111.046 159.689 90.7788 159.689 58.618V58.3833C159.689 26.066 147.09 5.95577 125.963 5.95577C104.835 5.95577 92.2371 26.3008 92.2371 58.3833V58.618C92.2371 90.7788 104.835 111.046 125.963 111.046ZM176.281 58.618C176.281 94.2218 191.305 116.601 216.188 116.601C241.072 116.601 256.174 94.4565 256.174 58.618V58.3833C256.174 22.8578 241.072 0.400024 216.188 0.400024C191.305 0.400024 176.281 22.7013 176.281 58.3833V58.618ZM249.914 58.618C249.914 90.7788 237.316 111.046 216.188 111.046C195.061 111.046 182.463 90.7788 182.463 58.618V58.3833C182.463 26.3008 195.061 5.95577 216.188 5.95577C237.316 5.95577 249.914 26.066 249.914 58.3833V58.618Z\" fill=\"black\"/>\n</svg>\n","<svg viewBox=\"0 0 263 118\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M58.9397 115.558V115.758H59.1397H65.2432H65.4432V115.558V87.5097H83.1625H83.3625V87.3097V81.6757V81.4757H83.1625H65.4432V2.64325V2.44325H65.2432H56.3227H56.2187L56.1589 2.52848L0.836207 81.4827L0.8 81.5344V81.5975V87.3097V87.5097H1H58.9397V115.558ZM238.295 115.558V115.758H238.495H244.598H244.798V115.558V87.5097H262.518H262.718V87.3097V81.6757V81.4757H262.518H244.798V2.64325V2.44325H244.598H235.678H235.574L235.514 2.52848L180.191 81.4827L180.155 81.5344V81.5975V87.3097V87.5097H180.355H238.295V115.558ZM58.9397 9.1815V81.4757H8.00478L58.9305 9.1815H58.9397ZM91.2601 59.218C91.2601 77.0444 95.0208 91.5843 101.917 101.674C108.819 111.771 118.857 117.401 131.368 117.401C143.878 117.401 153.935 111.831 160.857 101.762C167.773 91.7019 171.553 77.1617 171.553 59.218V58.9832C171.553 41.1957 167.773 26.6558 160.857 16.5566C153.935 6.44974 143.879 0.8 131.368 0.8C118.857 0.8 108.82 6.41026 101.917 16.4979C95.0207 26.5778 91.2601 41.1178 91.2601 58.9832V59.218ZM164.893 59.218C164.893 75.2762 161.748 88.3411 155.985 97.3845C150.227 106.42 141.856 111.445 131.368 111.445C120.879 111.445 112.508 106.42 106.751 97.3845C100.988 88.3411 97.8419 75.2762 97.8419 59.218V58.9832C97.8419 42.9642 100.988 29.8993 106.751 20.846C112.508 11.8009 120.879 6.75575 131.368 6.75575C141.857 6.75575 150.227 11.743 155.985 20.7582C161.747 29.7819 164.893 42.8466 164.893 58.9832V59.218ZM238.295 9.1815V81.4757H187.36L238.286 9.1815H238.295Z\" fill=\"black\" stroke=\"black\" stroke-width=\"0.4\"/>\n</svg>\n","<svg viewBox=\"0 0 258 117\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M58.5396 114.958V86.7098H0.399902V80.9975L55.7226 2.04327H64.6431V81.0758H82.5624V86.7098H64.6431V114.958H58.5396ZM7.1294 81.0758H58.5396V8.38152H58.2266L7.1294 80.9193V81.0758Z\" fill=\"black\"/>\n<path d=\"M130.768 116.601C105.884 116.601 90.86 94.2218 90.86 58.618V58.3833C90.86 22.7013 105.884 0.400024 130.768 0.400024C155.651 0.400024 170.753 22.8578 170.753 58.3833V58.618C170.753 94.4565 155.651 116.601 130.768 116.601ZM130.768 111.046C151.895 111.046 164.493 90.7788 164.493 58.618V58.3833C164.493 26.066 151.895 5.95577 130.768 5.95577C109.64 5.95577 97.0418 26.3008 97.0418 58.3833V58.618C97.0418 90.7788 109.64 111.046 130.768 111.046Z\" fill=\"black\"/>\n<path d=\"M218.958 116.601C197.048 116.601 183.276 103.925 181.164 87.2575L181.085 86.5533H187.111L187.189 87.1793C189.302 100.716 200.726 111.046 218.958 111.046C237.191 111.046 250.493 99.7775 250.493 84.4405V84.284C250.493 68.3993 237.895 59.0093 217.08 59.0093H204.326V53.5318H216.924C234.061 53.5318 245.955 43.6723 245.955 29.6655V29.509C245.955 15.8153 234.53 5.95577 218.176 5.95577C201.9 5.95577 191.023 15.737 189.771 28.4918L189.693 29.2743H183.668L183.746 28.4918C185.233 12.4505 198.379 0.400024 218.176 0.400024C238.051 0.400024 252.215 12.5288 252.215 28.9613V29.1178C252.215 43.0463 242.825 52.984 228.035 55.8793V56.1923C245.329 57.366 256.753 68.1645 256.753 84.2058V84.3623C256.753 102.986 240.79 116.601 218.958 116.601Z\" fill=\"black\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M58.1397 115.358V87.1097H0V80.8713L55.5146 1.64325H65.0432V80.6757H82.9625V87.1097H65.0432V115.358H58.1397ZM64.6431 86.7098H82.5624V81.0758H64.6431V2.04327H55.7226L0.399902 80.9975V86.7098H58.5396V114.958H64.6431V86.7098ZM180.767 87.3078L180.766 87.3017L180.639 86.1532H187.464L187.584 87.1175L187.585 87.1235C189.666 100.437 200.898 110.645 218.958 110.645C237.036 110.645 250.093 99.4959 250.093 84.4405V84.284C250.093 76.4599 246.997 70.2626 241.352 66.0093C235.692 61.7455 227.434 59.4092 217.08 59.4092H203.926V53.1317H216.924C225.418 53.1317 232.58 50.6885 237.611 46.5425C242.637 42.4009 245.555 36.5465 245.555 29.6655V29.509C245.555 16.0937 234.372 6.35575 218.176 6.35575C202.07 6.35575 191.398 16.0144 190.169 28.5308L190.055 29.6742H183.226L183.348 28.4548C184.856 12.1809 198.2 0 218.176 0C238.206 0 252.615 12.247 252.615 28.9612V29.1177C252.615 36.177 250.233 42.2412 245.966 46.9059C242.006 51.2357 236.438 54.342 229.685 55.9329C237.688 56.7714 244.379 59.7161 249.157 64.3361C254.259 69.2684 257.153 76.0847 257.153 84.2057V84.3622C257.153 103.264 240.949 117.001 218.958 117.001C196.875 117.001 182.908 104.202 180.767 87.3078ZM228.386 56.2174C228.29 56.2101 228.194 56.2032 228.098 56.1965C228.077 56.1951 228.056 56.1937 228.035 56.1923V55.8793C228.043 55.8779 228.05 55.8764 228.057 55.875C228.158 55.8551 228.259 55.8349 228.36 55.8143C242.962 52.8379 252.215 42.944 252.215 29.1178V28.9613C252.215 12.5288 238.051 0.400024 218.176 0.400024C198.379 0.400024 185.233 12.4505 183.746 28.4918L183.668 29.2743H189.693L189.771 28.4918C191.023 15.737 201.9 5.95577 218.176 5.95577C234.53 5.95577 245.955 15.8153 245.955 29.509V29.6655C245.955 43.6723 234.061 53.5318 216.924 53.5318H204.326V59.0093H217.08C237.895 59.0093 250.493 68.3993 250.493 84.284V84.4405C250.493 99.7775 237.191 111.046 218.958 111.046C200.726 111.046 189.302 100.716 187.189 87.1793L187.111 86.5533H181.085L181.164 87.2575C183.276 103.925 197.048 116.601 218.958 116.601C240.79 116.601 256.753 102.986 256.753 84.3623V84.2058C256.753 68.273 245.483 57.5123 228.386 56.2174ZM58.5396 81.0758H7.1294V80.9193L58.2266 8.38152H58.5396V81.0758ZM58.1397 9.19959L7.7903 80.6757H58.1397V9.19959ZM101.152 101.187C94.2254 91.0529 90.4601 76.4689 90.4601 58.618V58.3832C90.4601 40.4933 94.2254 25.9092 101.152 15.785C108.09 5.64522 118.188 0 130.768 0C143.348 0 153.465 5.68505 160.422 15.8435C167.368 25.9869 171.153 40.5709 171.153 58.3832V58.618C171.153 76.5862 167.369 91.1708 160.421 101.276C153.464 111.396 143.346 117.001 130.768 117.001C118.188 117.001 108.09 111.336 101.152 101.187ZM155.216 96.677C160.951 87.6769 164.093 74.654 164.093 58.618V58.3832C164.093 42.2686 160.951 29.2461 155.216 20.2658C149.492 11.3026 141.182 6.35575 130.768 6.35575C120.355 6.35575 112.044 11.3597 106.319 20.3534C100.584 29.3635 97.4419 42.3865 97.4419 58.3832V58.618C97.4419 74.654 100.584 87.6769 106.319 96.677C112.044 105.661 120.354 110.645 130.768 110.645C141.181 110.645 149.491 105.661 155.216 96.677ZM130.768 116.601C105.884 116.601 90.86 94.2218 90.86 58.618V58.3833C90.86 22.7013 105.884 0.400024 130.768 0.400024C155.651 0.400024 170.753 22.8578 170.753 58.3833V58.618C170.753 94.4565 155.651 116.601 130.768 116.601ZM130.768 111.046C151.895 111.046 164.493 90.7788 164.493 58.618V58.3833C164.493 26.066 151.895 5.95577 130.768 5.95577C109.64 5.95577 97.0418 26.3008 97.0418 58.3833V58.618C97.0418 90.7788 109.64 111.046 130.768 111.046Z\" fill=\"black\"/>\n</svg>\n","import InternalServerErrorImage from \"assets/images/internal-server-error\";\nimport PageNotFoundImage from \"assets/images/page-not-found\";\nimport UnauthorizedImage from \"assets/images/unauthorized\";\n\nexport const ERRORS = {\n 404: {\n Image: PageNotFoundImage,\n errorKey: \"neetoMolecules.errorPage.cantBeFound\",\n titleKey: \"neetoMolecules.errorPage.title.cantBeFound\",\n },\n 403: {\n Image: UnauthorizedImage,\n errorKey: \"neetoMolecules.errorPage.unauthorized\",\n titleKey: \"neetoMolecules.errorPage.title.unauthorized\",\n },\n 500: {\n Image: InternalServerErrorImage,\n errorKey: \"neetoMolecules.errorPage.internalServerError\",\n titleKey: \"neetoMolecules.errorPage.title.internalServerError\",\n },\n};\n","import { useEffect } from \"react\";\n\nimport { useErrorDisplayStore } from \"neetocommons/react-utils/useDisplayErrorPage\";\nimport { Button, Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { Helmet } from \"react-helmet\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { ERRORS } from \"./constants\";\n\nconst ErrorPage = ({\n homeUrl = \"/\",\n status,\n backToHomeButtonProps,\n children,\n showNeetoChatWidget = true,\n}) => {\n const { t } = useTranslation();\n const { statusCode: storeStatusCode, showErrorPage } =\n useErrorDisplayStore.pick();\n\n status = status || storeStatusCode;\n const { Image, errorKey, titleKey } = ERRORS[status] || ERRORS[404];\n\n useEffect(() => {\n const onBackButtonPress = () => {\n if (!showErrorPage) return;\n useErrorDisplayStore.setState({ showErrorPage: false });\n };\n\n window.addEventListener(\"popstate\", onBackButtonPress);\n\n return () => {\n window.removeEventListener(\"popstate\", onBackButtonPress);\n };\n }, []);\n\n const openChatWidget = () => {\n window.NeetoChat?.contextualHelp?.maximizeWidget();\n window.NeetoChat?.contextualHelp?.openWidget();\n };\n\n return (\n <div\n className=\"flex min-h-screen w-full flex-col items-center justify-center\"\n data-cy=\"error-page-container\"\n >\n <div className=\"flex flex-col gap-8 p-4 sm:flex-row sm:gap-20 sm:p-6\">\n <Image\n className=\"w-full max-w-[150px] sm:max-w-[250px]\"\n data-cy=\"error-image\"\n />\n <div className=\"flex flex-col\">\n <Helmet>\n <title>{t(titleKey)}</title>\n </Helmet>\n <Typography\n className=\"mb-4\"\n data-cy=\"title\"\n style=\"h2\"\n weight=\"semibold\"\n >\n <Trans i18nKey={errorKey} />\n </Typography>\n {showNeetoChatWidget && (\n <Typography className=\"mb-6\" data-cy=\"title\" style=\"body2\">\n <Trans\n i18nKey=\"neetoMolecules.errorPage.contactUs\"\n components={{\n button: <Button style=\"link\" onClick={openChatWidget} />,\n }}\n />\n </Typography>\n )}\n <div className=\"flex flex-col items-start space-y-3\">\n <Button\n href={homeUrl}\n label={t(\"neetoMolecules.errorPage.backToHome\")}\n size=\"large\"\n style=\"primary\"\n {...backToHomeButtonProps}\n />\n {children}\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nErrorPage.propTypes = {\n /**\n * The URL to which the user will be taken to when user clicks on back to home button.\n */\n homeUrl: PropTypes.string,\n /**\n * The status code of the error.\n */\n status: PropTypes.oneOf([403, 404, 500]),\n /**\n * Decides whether 'contact us' link should be displayed or not.\n */\n showNeetoChatWidget: PropTypes.bool,\n};\n\nexport default ErrorPage;\n"],"names":["_path","_path2","_extends","ERRORS","Image","PageNotFoundImage","errorKey","titleKey","UnauthorizedImage","InternalServerErrorImage","ErrorPage","_ref","_ref$homeUrl","homeUrl","status","backToHomeButtonProps","children","_ref$showNeetoChatWid","showNeetoChatWidget","_useTranslation","useTranslation","t","_useErrorDisplayStore","useErrorDisplayStore","store","statusCode","showErrorPage","shallow","storeStatusCode","_ref2","useEffect","onBackButtonPress","setState","window","addEventListener","removeEventListener","openChatWidget","_window$NeetoChat","_window$NeetoChat$con","_window$NeetoChat2","_window$NeetoChat2$co","NeetoChat","contextualHelp","maximizeWidget","openWidget","_jsx","className","_jsxs","Helmet","Typography","style","weight","Trans","i18nKey","components","button","Button","onClick","_objectSpread","href","label","size"],"mappings":";;;;;;;;;;;AAAA,IAAIA,OAAK,EAAEC,QAAM,CAAC;AAClB,SAASC,UAAQ,GAAG,EAAEA,UAAQ,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,UAAU,MAAM,EAAE,EAAE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,IAAI,MAAM,EAAE,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,G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nC,qBAAqB,CAC1B,CAAC,EACDC,QAAQ,CAAA;AAAA,SACN,CAAC,CAAA;AAAA,OACH,CAAC,CAAA;KACH,CAAA;AAAC,GACH,CAAC,CAAA;AAEV;;;;"}
|
|
1
|
+
{"version":3,"file":"ErrorPage.js","sources":["../src/assets/images/internal-server-error.svg","../src/assets/images/page-not-found.svg","../src/assets/images/unauthorized.svg","../src/components/ErrorPage/constants.js","../src/components/ErrorPage/index.jsx"],"sourcesContent":["<svg viewBox=\"0 0 257 117\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M37.3025 116.601C17.8183 116.601 2.40303 104.081 0.525027 88.04L0.446777 87.3358H6.62853L6.70678 87.8835C8.50653 100.795 21.4178 111.046 37.3808 111.046C56.0825 111.046 69.9328 97.5083 69.9328 79.1195V78.963C69.9328 60.8873 56.239 47.037 38.1633 47.037C27.5213 47.037 18.053 51.4973 11.7148 59.4005C10.4628 60.7308 9.36728 62.2958 8.42828 63.939H2.40303L8.97603 2.04327H68.8373V7.67727H14.297L8.89778 56.114H9.21078C15.236 47.1153 26.5823 41.5595 38.8675 41.5595C60.1515 41.5595 76.1145 57.5225 76.1145 78.8065V78.963C76.1145 100.716 59.682 116.601 37.3025 116.601Z\" fill=\"black\"/>\n<path d=\"M125.963 116.601C101.079 116.601 86.0554 94.2218 86.0554 58.618V58.3833C86.0554 22.7013 101.079 0.400024 125.963 0.400024C150.846 0.400024 165.949 22.8578 165.949 58.3833V58.618C165.949 94.4565 150.846 116.601 125.963 116.601ZM125.963 111.046C147.09 111.046 159.689 90.7788 159.689 58.618V58.3833C159.689 26.066 147.09 5.95577 125.963 5.95577C104.835 5.95577 92.2371 26.3008 92.2371 58.3833V58.618C92.2371 90.7788 104.835 111.046 125.963 111.046Z\" fill=\"black\"/>\n<path d=\"M216.188 116.601C191.305 116.601 176.281 94.2218 176.281 58.618V58.3833C176.281 22.7013 191.305 0.400024 216.188 0.400024C241.072 0.400024 256.174 22.8578 256.174 58.3833V58.618C256.174 94.4565 241.072 116.601 216.188 116.601ZM216.188 111.046C237.316 111.046 249.914 90.7788 249.914 58.618V58.3833C249.914 26.066 237.316 5.95577 216.188 5.95577C195.061 5.95577 182.463 26.3008 182.463 58.3833V58.618C182.463 90.7788 195.061 111.046 216.188 111.046Z\" fill=\"black\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0.127869 88.0865L0.127595 88.0842L0 86.9357H6.97557L7.10308 87.8283C8.86943 100.5 21.572 110.645 37.3809 110.645C55.8695 110.645 69.5329 97.2796 69.5329 79.1195V78.963C69.5329 61.1056 56.0156 47.437 38.1634 47.437C27.6371 47.437 18.2858 51.8464 12.0269 59.6507L12.017 59.6631L12.0062 59.6746C10.7808 60.9766 9.70316 62.5144 8.7757 64.1374L8.66053 64.339H1.95843L8.61638 1.64325H69.2374V8.07725H14.655L9.4107 55.1243C15.6405 46.452 26.8216 41.1595 38.8676 41.1595C60.3726 41.1595 76.5146 57.3016 76.5146 78.8065V78.963C76.5146 100.949 59.891 117.001 37.3027 117.001C17.66 117.001 2.0343 104.371 0.127869 88.0865ZM9.3181 55.9551C9.28218 56.0079 9.24632 56.0609 9.21078 56.114H8.89778L14.297 7.67727H68.8373V2.04327H8.97603L2.40303 63.939H8.42828C9.36728 62.2958 10.4628 60.7308 11.7148 59.4005C18.053 51.4973 27.5213 47.037 38.1633 47.037C56.239 47.037 69.9328 60.8873 69.9328 78.963V79.1195C69.9328 97.5083 56.0825 111.046 37.3808 111.046C21.4178 111.046 8.50653 100.795 6.70678 87.8835L6.62853 87.3358H0.446777L0.525027 88.04C2.40303 104.081 17.8183 116.601 37.3025 116.601C59.682 116.601 76.1145 100.716 76.1145 78.963V78.8065C76.1145 57.5225 60.1515 41.5595 38.8675 41.5595C26.6547 41.5595 15.3701 47.0499 9.3181 55.9551ZM96.3477 101.187C89.4208 91.0529 85.6555 76.4689 85.6555 58.618V58.3832C85.6555 40.4933 89.4208 25.9092 96.3478 15.785C103.286 5.64522 113.384 0 125.963 0C138.543 0 148.66 5.68505 155.617 15.8435C162.564 25.9869 166.349 40.5709 166.349 58.3832V58.618C166.349 76.5862 162.564 91.1708 155.617 101.276C148.659 111.396 138.541 117.001 125.963 117.001C113.383 117.001 103.285 111.336 96.3477 101.187ZM150.411 96.677C156.147 87.6769 159.289 74.654 159.289 58.618V58.3832C159.289 42.2686 156.147 29.2461 150.412 20.2658C144.688 11.3026 136.378 6.35575 125.963 6.35575C115.55 6.35575 107.24 11.3597 101.515 20.3534C95.7793 29.3635 92.6373 42.3865 92.6373 58.3832V58.618C92.6373 74.654 95.7794 87.6769 101.515 96.677C107.239 105.661 115.55 110.645 125.963 110.645C136.376 110.645 144.687 105.661 150.411 96.677ZM186.573 101.187C179.646 91.0529 175.881 76.4689 175.881 58.618V58.3832C175.881 40.4933 179.646 25.9092 186.573 15.785C193.511 5.64522 203.609 0 216.188 0C228.769 0 238.886 5.68505 245.843 15.8435C252.789 25.9869 256.574 40.5709 256.574 58.3832V58.618C256.574 76.5862 252.789 91.1708 245.842 101.276C238.884 111.396 228.767 117.001 216.188 117.001C203.608 117.001 193.511 111.336 186.573 101.187ZM240.637 96.677C246.372 87.6769 249.514 74.654 249.514 58.618V58.3832C249.514 42.2686 246.372 29.2461 240.637 20.2658C234.913 11.3026 226.603 6.35575 216.188 6.35575C205.775 6.35575 197.465 11.3597 191.74 20.3534C186.005 29.3635 182.863 42.3865 182.863 58.3832V58.618C182.863 74.654 186.005 87.6769 191.74 96.677C197.465 105.661 205.775 110.645 216.188 110.645C226.602 110.645 234.912 105.661 240.637 96.677ZM125.963 116.601C101.079 116.601 86.0554 94.2218 86.0554 58.618V58.3833C86.0554 22.7013 101.079 0.400024 125.963 0.400024C150.846 0.400024 165.949 22.8578 165.949 58.3833V58.618C165.949 94.4565 150.846 116.601 125.963 116.601ZM125.963 111.046C147.09 111.046 159.689 90.7788 159.689 58.618V58.3833C159.689 26.066 147.09 5.95577 125.963 5.95577C104.835 5.95577 92.2371 26.3008 92.2371 58.3833V58.618C92.2371 90.7788 104.835 111.046 125.963 111.046ZM176.281 58.618C176.281 94.2218 191.305 116.601 216.188 116.601C241.072 116.601 256.174 94.4565 256.174 58.618V58.3833C256.174 22.8578 241.072 0.400024 216.188 0.400024C191.305 0.400024 176.281 22.7013 176.281 58.3833V58.618ZM249.914 58.618C249.914 90.7788 237.316 111.046 216.188 111.046C195.061 111.046 182.463 90.7788 182.463 58.618V58.3833C182.463 26.3008 195.061 5.95577 216.188 5.95577C237.316 5.95577 249.914 26.066 249.914 58.3833V58.618Z\" fill=\"black\"/>\n</svg>\n","<svg viewBox=\"0 0 263 118\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M58.9397 115.558V115.758H59.1397H65.2432H65.4432V115.558V87.5097H83.1625H83.3625V87.3097V81.6757V81.4757H83.1625H65.4432V2.64325V2.44325H65.2432H56.3227H56.2187L56.1589 2.52848L0.836207 81.4827L0.8 81.5344V81.5975V87.3097V87.5097H1H58.9397V115.558ZM238.295 115.558V115.758H238.495H244.598H244.798V115.558V87.5097H262.518H262.718V87.3097V81.6757V81.4757H262.518H244.798V2.64325V2.44325H244.598H235.678H235.574L235.514 2.52848L180.191 81.4827L180.155 81.5344V81.5975V87.3097V87.5097H180.355H238.295V115.558ZM58.9397 9.1815V81.4757H8.00478L58.9305 9.1815H58.9397ZM91.2601 59.218C91.2601 77.0444 95.0208 91.5843 101.917 101.674C108.819 111.771 118.857 117.401 131.368 117.401C143.878 117.401 153.935 111.831 160.857 101.762C167.773 91.7019 171.553 77.1617 171.553 59.218V58.9832C171.553 41.1957 167.773 26.6558 160.857 16.5566C153.935 6.44974 143.879 0.8 131.368 0.8C118.857 0.8 108.82 6.41026 101.917 16.4979C95.0207 26.5778 91.2601 41.1178 91.2601 58.9832V59.218ZM164.893 59.218C164.893 75.2762 161.748 88.3411 155.985 97.3845C150.227 106.42 141.856 111.445 131.368 111.445C120.879 111.445 112.508 106.42 106.751 97.3845C100.988 88.3411 97.8419 75.2762 97.8419 59.218V58.9832C97.8419 42.9642 100.988 29.8993 106.751 20.846C112.508 11.8009 120.879 6.75575 131.368 6.75575C141.857 6.75575 150.227 11.743 155.985 20.7582C161.747 29.7819 164.893 42.8466 164.893 58.9832V59.218ZM238.295 9.1815V81.4757H187.36L238.286 9.1815H238.295Z\" fill=\"black\" stroke=\"black\" stroke-width=\"0.4\"/>\n</svg>\n","<svg viewBox=\"0 0 258 117\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M58.5396 114.958V86.7098H0.399902V80.9975L55.7226 2.04327H64.6431V81.0758H82.5624V86.7098H64.6431V114.958H58.5396ZM7.1294 81.0758H58.5396V8.38152H58.2266L7.1294 80.9193V81.0758Z\" fill=\"black\"/>\n<path d=\"M130.768 116.601C105.884 116.601 90.86 94.2218 90.86 58.618V58.3833C90.86 22.7013 105.884 0.400024 130.768 0.400024C155.651 0.400024 170.753 22.8578 170.753 58.3833V58.618C170.753 94.4565 155.651 116.601 130.768 116.601ZM130.768 111.046C151.895 111.046 164.493 90.7788 164.493 58.618V58.3833C164.493 26.066 151.895 5.95577 130.768 5.95577C109.64 5.95577 97.0418 26.3008 97.0418 58.3833V58.618C97.0418 90.7788 109.64 111.046 130.768 111.046Z\" fill=\"black\"/>\n<path d=\"M218.958 116.601C197.048 116.601 183.276 103.925 181.164 87.2575L181.085 86.5533H187.111L187.189 87.1793C189.302 100.716 200.726 111.046 218.958 111.046C237.191 111.046 250.493 99.7775 250.493 84.4405V84.284C250.493 68.3993 237.895 59.0093 217.08 59.0093H204.326V53.5318H216.924C234.061 53.5318 245.955 43.6723 245.955 29.6655V29.509C245.955 15.8153 234.53 5.95577 218.176 5.95577C201.9 5.95577 191.023 15.737 189.771 28.4918L189.693 29.2743H183.668L183.746 28.4918C185.233 12.4505 198.379 0.400024 218.176 0.400024C238.051 0.400024 252.215 12.5288 252.215 28.9613V29.1178C252.215 43.0463 242.825 52.984 228.035 55.8793V56.1923C245.329 57.366 256.753 68.1645 256.753 84.2058V84.3623C256.753 102.986 240.79 116.601 218.958 116.601Z\" fill=\"black\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M58.1397 115.358V87.1097H0V80.8713L55.5146 1.64325H65.0432V80.6757H82.9625V87.1097H65.0432V115.358H58.1397ZM64.6431 86.7098H82.5624V81.0758H64.6431V2.04327H55.7226L0.399902 80.9975V86.7098H58.5396V114.958H64.6431V86.7098ZM180.767 87.3078L180.766 87.3017L180.639 86.1532H187.464L187.584 87.1175L187.585 87.1235C189.666 100.437 200.898 110.645 218.958 110.645C237.036 110.645 250.093 99.4959 250.093 84.4405V84.284C250.093 76.4599 246.997 70.2626 241.352 66.0093C235.692 61.7455 227.434 59.4092 217.08 59.4092H203.926V53.1317H216.924C225.418 53.1317 232.58 50.6885 237.611 46.5425C242.637 42.4009 245.555 36.5465 245.555 29.6655V29.509C245.555 16.0937 234.372 6.35575 218.176 6.35575C202.07 6.35575 191.398 16.0144 190.169 28.5308L190.055 29.6742H183.226L183.348 28.4548C184.856 12.1809 198.2 0 218.176 0C238.206 0 252.615 12.247 252.615 28.9612V29.1177C252.615 36.177 250.233 42.2412 245.966 46.9059C242.006 51.2357 236.438 54.342 229.685 55.9329C237.688 56.7714 244.379 59.7161 249.157 64.3361C254.259 69.2684 257.153 76.0847 257.153 84.2057V84.3622C257.153 103.264 240.949 117.001 218.958 117.001C196.875 117.001 182.908 104.202 180.767 87.3078ZM228.386 56.2174C228.29 56.2101 228.194 56.2032 228.098 56.1965C228.077 56.1951 228.056 56.1937 228.035 56.1923V55.8793C228.043 55.8779 228.05 55.8764 228.057 55.875C228.158 55.8551 228.259 55.8349 228.36 55.8143C242.962 52.8379 252.215 42.944 252.215 29.1178V28.9613C252.215 12.5288 238.051 0.400024 218.176 0.400024C198.379 0.400024 185.233 12.4505 183.746 28.4918L183.668 29.2743H189.693L189.771 28.4918C191.023 15.737 201.9 5.95577 218.176 5.95577C234.53 5.95577 245.955 15.8153 245.955 29.509V29.6655C245.955 43.6723 234.061 53.5318 216.924 53.5318H204.326V59.0093H217.08C237.895 59.0093 250.493 68.3993 250.493 84.284V84.4405C250.493 99.7775 237.191 111.046 218.958 111.046C200.726 111.046 189.302 100.716 187.189 87.1793L187.111 86.5533H181.085L181.164 87.2575C183.276 103.925 197.048 116.601 218.958 116.601C240.79 116.601 256.753 102.986 256.753 84.3623V84.2058C256.753 68.273 245.483 57.5123 228.386 56.2174ZM58.5396 81.0758H7.1294V80.9193L58.2266 8.38152H58.5396V81.0758ZM58.1397 9.19959L7.7903 80.6757H58.1397V9.19959ZM101.152 101.187C94.2254 91.0529 90.4601 76.4689 90.4601 58.618V58.3832C90.4601 40.4933 94.2254 25.9092 101.152 15.785C108.09 5.64522 118.188 0 130.768 0C143.348 0 153.465 5.68505 160.422 15.8435C167.368 25.9869 171.153 40.5709 171.153 58.3832V58.618C171.153 76.5862 167.369 91.1708 160.421 101.276C153.464 111.396 143.346 117.001 130.768 117.001C118.188 117.001 108.09 111.336 101.152 101.187ZM155.216 96.677C160.951 87.6769 164.093 74.654 164.093 58.618V58.3832C164.093 42.2686 160.951 29.2461 155.216 20.2658C149.492 11.3026 141.182 6.35575 130.768 6.35575C120.355 6.35575 112.044 11.3597 106.319 20.3534C100.584 29.3635 97.4419 42.3865 97.4419 58.3832V58.618C97.4419 74.654 100.584 87.6769 106.319 96.677C112.044 105.661 120.354 110.645 130.768 110.645C141.181 110.645 149.491 105.661 155.216 96.677ZM130.768 116.601C105.884 116.601 90.86 94.2218 90.86 58.618V58.3833C90.86 22.7013 105.884 0.400024 130.768 0.400024C155.651 0.400024 170.753 22.8578 170.753 58.3833V58.618C170.753 94.4565 155.651 116.601 130.768 116.601ZM130.768 111.046C151.895 111.046 164.493 90.7788 164.493 58.618V58.3833C164.493 26.066 151.895 5.95577 130.768 5.95577C109.64 5.95577 97.0418 26.3008 97.0418 58.3833V58.618C97.0418 90.7788 109.64 111.046 130.768 111.046Z\" fill=\"black\"/>\n</svg>\n","import InternalServerErrorImage from \"assets/images/internal-server-error\";\nimport PageNotFoundImage from \"assets/images/page-not-found\";\nimport UnauthorizedImage from \"assets/images/unauthorized\";\n\nexport const ERRORS = {\n 404: {\n Image: PageNotFoundImage,\n errorKey: \"neetoMolecules.errorPage.cantBeFound\",\n titleKey: \"neetoMolecules.errorPage.title.cantBeFound\",\n },\n 403: {\n Image: UnauthorizedImage,\n errorKey: \"neetoMolecules.errorPage.unauthorized\",\n titleKey: \"neetoMolecules.errorPage.title.unauthorized\",\n },\n 500: {\n Image: InternalServerErrorImage,\n errorKey: \"neetoMolecules.errorPage.internalServerError\",\n titleKey: \"neetoMolecules.errorPage.title.internalServerError\",\n },\n};\n","import { useEffect } from \"react\";\n\nimport { useErrorDisplayStore } from \"neetocommons/react-utils/useDisplayErrorPage\";\nimport { Button, Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { Helmet } from \"react-helmet\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { ERRORS } from \"./constants\";\nimport \"./error-page.scss\";\n\nconst ErrorPage = ({\n homeUrl = \"/\",\n status,\n backToHomeButtonProps,\n children,\n showNeetoChatWidget = true,\n}) => {\n const { t } = useTranslation();\n const { statusCode: storeStatusCode, showErrorPage } =\n useErrorDisplayStore.pick();\n\n status = status || storeStatusCode;\n const { Image, errorKey, titleKey } = ERRORS[status] || ERRORS[404];\n\n useEffect(() => {\n const onBackButtonPress = () => {\n if (!showErrorPage) return;\n useErrorDisplayStore.setState({ showErrorPage: false });\n };\n\n window.addEventListener(\"popstate\", onBackButtonPress);\n\n return () => {\n window.removeEventListener(\"popstate\", onBackButtonPress);\n };\n }, []);\n\n const openChatWidget = () => {\n window.NeetoChat?.contextualHelp?.maximizeWidget();\n window.NeetoChat?.contextualHelp?.openWidget();\n };\n\n return (\n <div\n className=\"flex min-h-screen w-full flex-col items-center justify-center\"\n data-cy=\"error-page-container\"\n >\n <div className=\"flex flex-col gap-8 p-4 sm:flex-row sm:gap-20 sm:p-6\">\n <Image\n className=\"neeto-molecules-error-code w-full max-w-[150px] sm:max-w-[250px]\"\n data-cy=\"error-image\"\n />\n <div className=\"flex flex-col\">\n <Helmet>\n <title>{t(titleKey)}</title>\n </Helmet>\n <Typography\n className=\"mb-4\"\n data-cy=\"title\"\n style=\"h2\"\n weight=\"semibold\"\n >\n <Trans i18nKey={errorKey} />\n </Typography>\n {showNeetoChatWidget && (\n <Typography className=\"mb-6\" data-cy=\"title\" style=\"body2\">\n <Trans\n i18nKey=\"neetoMolecules.errorPage.contactUs\"\n components={{\n button: <Button style=\"link\" onClick={openChatWidget} />,\n }}\n />\n </Typography>\n )}\n <div className=\"flex flex-col items-start space-y-3\">\n <Button\n href={homeUrl}\n label={t(\"neetoMolecules.errorPage.backToHome\")}\n size=\"large\"\n style=\"primary\"\n {...backToHomeButtonProps}\n />\n {children}\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nErrorPage.propTypes = {\n /**\n * The URL to which the user will be taken to when user clicks on back to home button.\n */\n homeUrl: PropTypes.string,\n /**\n * The status code of the error.\n */\n status: PropTypes.oneOf([403, 404, 500]),\n /**\n * Decides whether 'contact us' link should be displayed or not.\n */\n showNeetoChatWidget: PropTypes.bool,\n};\n\nexport default ErrorPage;\n"],"names":["_path","_path2","_extends","ERRORS","Image","PageNotFoundImage","errorKey","titleKey","UnauthorizedImage","InternalServerErrorImage","ErrorPage","_ref","_ref$homeUrl","homeUrl","status","backToHomeButtonProps","children","_ref$showNeetoChatWid","showNeetoChatWidget","_useTranslation","useTranslation","t","_useErrorDisplayStore","useErrorDisplayStore","store","statusCode","showErrorPage","shallow","storeStatusCode","_ref2","useEffect","onBackButtonPress","setState","window","addEventListener","removeEventListener","openChatWidget","_window$NeetoChat","_window$NeetoChat$con","_window$NeetoChat2","_window$NeetoChat2$co","NeetoChat","contextualHelp","maximizeWidget","openWidget","_jsx","className","_jsxs","Helmet","Typography","style","weight","Trans","i18nKey","components","button","Button","onClick","_objectSpread","href","label","size"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ACJC,YAAAA,OAAO,EAAC,oCAAoC;AAC5CC,YAAAA,UAAU,EAAE;cACVC,MAAM,eAAEV,GAAA,CAACW,MAAM,EAAA;AAACN,gBAAAA,KAAK,EAAC,MAAM;AAACO,gBAAAA,OAAO,EAAErB,cAAAA;eAAiB,CAAA;AACzD,aAAA;WACD,CAAA;SACS,CACb,eACDW,IAAA,CAAA,KAAA,EAAA;AAAKD,UAAAA,SAAS,EAAC,qCAAqC;AAAA9B,UAAAA,QAAA,EAClD6B,cAAAA,GAAA,CAACW,MAAM,EAAAE,aAAA,CAAA;AACLC,YAAAA,IAAI,EAAE9C,OAAQ;AACd+C,YAAAA,KAAK,EAAEvC,CAAC,CAAC,qCAAqC,CAAE;AAChDwC,YAAAA,IAAI,EAAC,OAAO;AACZX,YAAAA,KAAK,EAAC,SAAA;AAAS,WAAA,EACXnC,qBAAqB,CAC1B,CAAC,EACDC,QAAQ,CAAA;AAAA,SACN,CAAC,CAAA;AAAA,OACH,CAAC,CAAA;KACH,CAAA;AAAC,GACH,CAAC,CAAA;AAEV;;;;"}
|
package/dist/Metadata.js
CHANGED
|
@@ -103,7 +103,9 @@ var DetailsBlock = function DetailsBlock(_ref) {
|
|
|
103
103
|
value = _ref4.value,
|
|
104
104
|
type = _ref4.type;
|
|
105
105
|
return /*#__PURE__*/jsx(Fragment, {
|
|
106
|
-
children: type === "divider" ? /*#__PURE__*/jsx("hr", {
|
|
106
|
+
children: type === "divider" ? /*#__PURE__*/jsx("hr", {
|
|
107
|
+
className: "neeto-ui-border-gray-200"
|
|
108
|
+
}) : /*#__PURE__*/jsxs("div", {
|
|
107
109
|
"data-testid": "details-card-detail-wrapper",
|
|
108
110
|
className: classnames("flex", {
|
|
109
111
|
"space-x-4": style === STYLES.inline,
|
|
@@ -122,7 +124,9 @@ var DetailsBlock = function DetailsBlock(_ref) {
|
|
|
122
124
|
value = _ref5.value,
|
|
123
125
|
type = _ref5.type;
|
|
124
126
|
return /*#__PURE__*/jsx(Fragment, {
|
|
125
|
-
children: type === "divider" ? /*#__PURE__*/jsx("hr", {
|
|
127
|
+
children: type === "divider" ? /*#__PURE__*/jsx("hr", {
|
|
128
|
+
className: "neeto-ui-border-gray-200"
|
|
129
|
+
}) : /*#__PURE__*/jsxs("div", {
|
|
126
130
|
className: classnames("flex", {
|
|
127
131
|
"space-x-4": style === STYLES.inline,
|
|
128
132
|
"flex-col": style === STYLES.multiline
|