hi-tm 0.13.1 → 0.13.3
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.
|
@@ -308,7 +308,9 @@ const HeaderLayout = ({ appVersion, branchName, userFirstName, sidebarHandler, u
|
|
|
308
308
|
: "scale-y-0 opacity-0"} origin-top` },
|
|
309
309
|
react_1.default.createElement("ul", { className: "flex h-auto w-full flex-col items-start justify-center gap-3 bg-inherit p-3" }, userBranchesData &&
|
|
310
310
|
userBranchesData.map((item) => (react_1.default.createElement("li", { onClick: () => selectItemBranchHandler(item), key: item?.id, className: "customTransition flex w-full flex-row items-center justify-end gap-2 rounded-tiny px-5 py-2 text-text-color-primary hover:bg-gray-primary" },
|
|
311
|
-
react_1.default.createElement(image_1.default, { src:
|
|
311
|
+
react_1.default.createElement(image_1.default, { src: item.logoName && item.logoName.trim() !== ""
|
|
312
|
+
? `${baseUrlCDN}/${item.urlName || branchName}/${item.logoName}`
|
|
313
|
+
: imageDefaultSRC, alt: "logo.svg", width: 16, height: 16, className: "rounded-xl" }),
|
|
312
314
|
react_1.default.createElement("p", { className: "select-none-custom cursor-pointer text-nowrap text-sm font-normal text-text-color-primary" }, item.name))))))),
|
|
313
315
|
react_1.default.createElement("div", { ref: modalCloseRefMobile, className: "flex flex-row items-center justify-center gap-2" },
|
|
314
316
|
react_1.default.createElement("div", { className: "flex flex-row items-center justify-center gap-2" },
|
|
@@ -63,33 +63,27 @@ const TabsComponent = ({ isOpenSidebar, tabsData, activeTabId, setActiveTabId, d
|
|
|
63
63
|
document.removeEventListener('mousedown', handleClickOutside);
|
|
64
64
|
};
|
|
65
65
|
}, []);
|
|
66
|
-
// Add this new useEffect to update dropdown position
|
|
67
66
|
(0, react_1.useEffect)(() => {
|
|
68
67
|
if (isShowAllTab && buttonRef.current && modalRef.current) {
|
|
69
68
|
const buttonRect = buttonRef.current.getBoundingClientRect();
|
|
70
69
|
setDropdownPosition({
|
|
71
70
|
top: buttonRect.bottom,
|
|
72
|
-
right: buttonRect.right - 170,
|
|
71
|
+
right: buttonRect.right - 170,
|
|
73
72
|
});
|
|
74
73
|
}
|
|
75
74
|
}, [isShowAllTab]);
|
|
76
|
-
return (react_1.default.createElement("div", { className: `w-full h-full flex flex-row items-center justify-start bg-white-color overflow-x-scroll
|
|
77
|
-
// borderTopRightRadius: isOpenSidebar ? '12px' : '0px',
|
|
78
|
-
// borderBottom: !isOpenSidebar
|
|
79
|
-
// ? 'border border-border-color-primary border-solid border-t-none'
|
|
80
|
-
// : '',
|
|
81
|
-
} },
|
|
75
|
+
return (react_1.default.createElement("div", { className: `w-full h-full flex flex-row items-center justify-start bg-white-color overflow-x-scroll ${!isOpenSidebar ? 'border border-border-color-primary border-solid border-t-none ' : ''}` },
|
|
82
76
|
react_1.default.createElement("button", { ref: buttonRef, className: `bg-back-ground-color-primary min-w-[36px] min-h-[36px] rounded-xl ${tabsData && tabsData.length > 0 ? 'flex' : 'hidden'} flex-row items-center justify-center relative outline-none ml-2 mr-1 `, onClick: () => {
|
|
83
77
|
setIsShowAllTab(!isShowAllTab);
|
|
84
78
|
} },
|
|
85
79
|
react_1.default.createElement(image_1.default, { src: iconsSRC.arrowIconSRC, alt: "arrow.svg", width: 16, height: 16, className: `cursor-pointer customTransition ${isShowAllTab ? 'rotate-180' : 'rotate-0'}` }),
|
|
86
|
-
react_1.default.createElement("ul", { ref: modalRef, className: `${isShowAllTab ? 'flex' : 'hidden'} flex-col items-start justify-start py-2 px-2 w-[170px] max-h-60 h-auto
|
|
80
|
+
react_1.default.createElement("ul", { ref: modalRef, className: `${isShowAllTab ? 'flex' : 'hidden'} flex-col items-start justify-start py-2 px-2 w-[170px] max-h-60 h-auto bg-white-color customShadowBox rounded-xl`, style: {
|
|
87
81
|
zIndex: 999999,
|
|
88
82
|
position: 'fixed',
|
|
89
83
|
top: `${dropdownPosition.top}px`,
|
|
90
84
|
left: `${dropdownPosition.right}px`,
|
|
91
85
|
} },
|
|
92
|
-
tabsData &&
|
|
86
|
+
react_1.default.createElement("div", { className: "overflow-y-auto max-h-[calc(100%-56px)]" }, tabsData &&
|
|
93
87
|
tabsData.length > 0 &&
|
|
94
88
|
tabsData.map((tab) => {
|
|
95
89
|
return (react_1.default.createElement("li", { key: tab.id, onClick: (e) => {
|
|
@@ -100,8 +94,8 @@ const TabsComponent = ({ isOpenSidebar, tabsData, activeTabId, setActiveTabId, d
|
|
|
100
94
|
}, className: "flex flex-row-reverse items-center justify-between w-full h-auto rounded-lg px-2 py-1 opacity-80 customTransition hover:bg-back-ground-color-primary" },
|
|
101
95
|
react_1.default.createElement("p", { onClick: () => tabRouteHandler(tab.routeURL), className: "text-text-color-primary text-sm w-32 truncate overflow-hidden whitespace-nowrap bg-inherit text-start" }, tab.name),
|
|
102
96
|
react_1.default.createElement(image_1.default, { src: iconsSRC.closeIconSRC, alt: "close.svg", width: 20, height: 20, className: "cursor-pointer customTransition hover:scale-[1.01]", onClick: () => deleteTabHandler(tab.id) })));
|
|
103
|
-
}),
|
|
104
|
-
react_1.default.createElement("li", { className: "flex flex-row items-center justify-between w-full h-auto
|
|
97
|
+
})),
|
|
98
|
+
react_1.default.createElement("li", { className: "flex flex-row items-center justify-between w-full h-auto py-1 opacity-90 border-t border-border-color-primary border-solid mt-3 pt-3 customTransition hover:opacity-70 sticky bottom-0 bg-white" },
|
|
105
99
|
react_1.default.createElement("p", { onClick: () => {
|
|
106
100
|
deleteTabHandler(0);
|
|
107
101
|
setIsShowAllTab(false);
|