bianic-ui 2.14.0-beta.0 → 2.14.0-beta.1
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/cjs/index.js +1 -35
- package/dist/cjs/lib.css +1 -1
- package/dist/esm/index.js +1 -35
- package/dist/esm/lib.css +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -5696,41 +5696,7 @@ function SidebarProfileInner(_a, ref) {
|
|
|
5696
5696
|
? 'opacity-100'
|
|
5697
5697
|
: 'opacity-75 group-hover/profile:opacity-100'), size: 18 })))),
|
|
5698
5698
|
React.createElement("div", { className: cn$1('pointer-events-none absolute inset-0 rounded-radius-lg bg-black transition-opacity duration-200', overlayClass) })),
|
|
5699
|
-
isActive && (React.createElement("div", { className: "absolute right-0 ml-auto h-full w-1 rounded-l-radius-md bg-bia-white" })),
|
|
5700
|
-
React.createElement("div", { className: cn$1('sidebar-item group/profile relative flex h-fit items-center', profileClass) },
|
|
5701
|
-
React.createElement("div", { className: "group relative grow" },
|
|
5702
|
-
React.createElement("button", __assign({ ref: ref }, restProps, { onClick: function () {
|
|
5703
|
-
if (hasChildren) {
|
|
5704
|
-
setIsChildExpanded(function (prev) { return !prev; });
|
|
5705
|
-
}
|
|
5706
|
-
else {
|
|
5707
|
-
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
5708
|
-
setActiveId(id);
|
|
5709
|
-
}
|
|
5710
|
-
}, className: cn$1('cubic-bezier(0.68, -0.1, 0.32, 1.2) flex w-full items-center gap-x-2.5 delay-500 duration-300', buttonClass, className) }),
|
|
5711
|
-
avatarImage,
|
|
5712
|
-
React.createElement("div", { className: "flex flex-col" },
|
|
5713
|
-
React.createElement(Text, { variant: "normal-text", className: cn$1('truncate text-left text-bia-white delay-[400ms]', isMinimized
|
|
5714
|
-
? 'opacity-0 duration-300 ease-in-out'
|
|
5715
|
-
: 'opacity-100 delay-1000 duration-700 ease-in-out') }, username),
|
|
5716
|
-
React.createElement(Text, { variant: "small-text", className: cn$1('truncate text-left text-bia-white delay-[400ms]', isMinimized
|
|
5717
|
-
? 'opacity-0 duration-300 ease-in-out'
|
|
5718
|
-
: 'opacity-50 delay-1000 duration-700 ease-in-out') }, role)),
|
|
5719
|
-
React.createElement("div", { className: cn$1('ml-auto flex items-center gap-x-[5px]', isMinimized
|
|
5720
|
-
? 'opacity-0 delay-200 duration-300 ease-in-out'
|
|
5721
|
-
: 'opacity-100 delay-[550ms] duration-500 ease-in-out') },
|
|
5722
|
-
(notificationCount !== undefined ||
|
|
5723
|
-
(!isChildExpanded &&
|
|
5724
|
-
sumNotificationCounts(children) > 0)) && (React.createElement(TagLabel, { text: notificationLabel, color: "white", size: "tn" })),
|
|
5725
|
-
React.createElement("div", { className: cn$1(chevronClass) },
|
|
5726
|
-
React.createElement(TbChevronRight, { className: cn$1('text-bia-white transition-transform duration-300 ease-in-out', isChildExpanded ? 'rotate-90' : '', isActive || isPathActive
|
|
5727
|
-
? 'opacity-100'
|
|
5728
|
-
: 'opacity-75 group-hover/profile:opacity-100'), size: 18 })))),
|
|
5729
|
-
React.createElement("div", { className: cn$1('pointer-events-none absolute inset-0 rounded-radius-lg bg-black transition-opacity duration-200', overlayClass) })),
|
|
5730
|
-
isActive && (React.createElement("div", { className: "absolute right-0 ml-auto h-full w-1 rounded-l-radius-md bg-bia-white" }))),
|
|
5731
|
-
!isMinimized && hasChildren && isChildExpanded && renderChildren(),
|
|
5732
|
-
React.createElement("div", { className: "dropdown-anchor absolute left-[60px] top-0", ref: childDropdownRef }),
|
|
5733
|
-
isMinimized && hasChildren && (React.createElement(DropdownContainer, { open: isChildExpanded, onClose: function () { return setIsChildExpanded(false); }, anchorRef: childDropdownRef }, renderDropdownItems()))),
|
|
5699
|
+
isActive && (React.createElement("div", { className: "absolute right-0 ml-auto h-full w-1 rounded-l-radius-md bg-bia-white" }))),
|
|
5734
5700
|
!isMinimized && hasChildren && isChildExpanded && renderChildren(),
|
|
5735
5701
|
React.createElement("div", { className: "dropdown-anchor absolute left-[60px] top-0", ref: childDropdownRef }),
|
|
5736
5702
|
isMinimized && hasChildren && (React.createElement(DropdownContainer, { open: isChildExpanded, onClose: function () { return setIsChildExpanded(false); }, anchorRef: childDropdownRef }, renderDropdownItems()))));
|