@bwp-web/components 1.9.3 → 1.9.4
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/BiampSidebar/BiampSidebar.d.ts.map +1 -1
- package/dist/index.cjs +21 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +21 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -749,7 +749,7 @@ function BiampSidebarIcon({
|
|
|
749
749
|
const { expanded } = useContext2(BiampSidebarContext);
|
|
750
750
|
const layoutDrawer = useBiampLayoutDrawer();
|
|
751
751
|
const displayedSelectedIcon = selectedIcon ?? icon;
|
|
752
|
-
return /* @__PURE__ */
|
|
752
|
+
return /* @__PURE__ */ jsxs3(
|
|
753
753
|
ListItemButton,
|
|
754
754
|
{
|
|
755
755
|
selected,
|
|
@@ -779,17 +779,26 @@ function BiampSidebarIcon({
|
|
|
779
779
|
...props,
|
|
780
780
|
children: [
|
|
781
781
|
/* @__PURE__ */ jsx3(
|
|
782
|
-
|
|
782
|
+
Tooltip,
|
|
783
783
|
{
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
784
|
+
title: expanded ? "" : name ?? "",
|
|
785
|
+
placement: "right",
|
|
786
|
+
arrow: true,
|
|
787
|
+
disableInteractive: true,
|
|
788
|
+
children: /* @__PURE__ */ jsx3(
|
|
789
|
+
Box2,
|
|
790
|
+
{
|
|
791
|
+
sx: {
|
|
792
|
+
width: "48px",
|
|
793
|
+
height: "48px",
|
|
794
|
+
display: "flex",
|
|
795
|
+
alignItems: "center",
|
|
796
|
+
justifyContent: "center",
|
|
797
|
+
flexShrink: 0
|
|
798
|
+
},
|
|
799
|
+
children: selected ? displayedSelectedIcon : icon
|
|
800
|
+
}
|
|
801
|
+
)
|
|
793
802
|
}
|
|
794
803
|
),
|
|
795
804
|
name && /* @__PURE__ */ jsx3(
|
|
@@ -811,7 +820,7 @@ function BiampSidebarIcon({
|
|
|
811
820
|
)
|
|
812
821
|
]
|
|
813
822
|
}
|
|
814
|
-
)
|
|
823
|
+
);
|
|
815
824
|
}
|
|
816
825
|
function BiampSidebarComponent({
|
|
817
826
|
children,
|