@bwp-web/components 1.9.2 → 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/index.js CHANGED
@@ -492,6 +492,7 @@ import {
492
492
  Box as Box2,
493
493
  ListItemButton,
494
494
  Stack as Stack3,
495
+ Tooltip,
495
496
  Typography
496
497
  } from "@mui/material";
497
498
  import { BiampLogoIcon, SquareRoundedArrowRightIcon } from "@bwp-web/assets";
@@ -673,7 +674,7 @@ function BiampSidebar({
673
674
  }
674
675
  }
675
676
  ),
676
- name: "Collapse menu",
677
+ name: expanded ? "Collapse menu" : "Expand menu",
677
678
  onClick: toggleExpanded
678
679
  }
679
680
  ),
@@ -778,17 +779,26 @@ function BiampSidebarIcon({
778
779
  ...props,
779
780
  children: [
780
781
  /* @__PURE__ */ jsx3(
781
- Box2,
782
+ Tooltip,
782
783
  {
783
- sx: {
784
- width: "48px",
785
- height: "48px",
786
- display: "flex",
787
- alignItems: "center",
788
- justifyContent: "center",
789
- flexShrink: 0
790
- },
791
- children: selected ? displayedSelectedIcon : icon
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
+ )
792
802
  }
793
803
  ),
794
804
  name && /* @__PURE__ */ jsx3(
@@ -1803,7 +1813,7 @@ import { flexRender } from "@tanstack/react-table";
1803
1813
  import React4 from "react";
1804
1814
 
1805
1815
  // src/BiampTable/BiampTableTruncatedCell.tsx
1806
- import { Box as Box5, Tooltip } from "@mui/material";
1816
+ import { Box as Box5, Tooltip as Tooltip2 } from "@mui/material";
1807
1817
  import { useCallback, useRef as useRef2, useState as useState5 } from "react";
1808
1818
  import { jsx as jsx9 } from "react/jsx-runtime";
1809
1819
  function BiampTableTruncatedCell({
@@ -1821,7 +1831,7 @@ function BiampTableTruncatedCell({
1821
1831
  setOpen(false);
1822
1832
  }, []);
1823
1833
  return /* @__PURE__ */ jsx9(
1824
- Tooltip,
1834
+ Tooltip2,
1825
1835
  {
1826
1836
  title: children,
1827
1837
  open,
@@ -2437,11 +2447,11 @@ function BiampTableContainer({
2437
2447
  }
2438
2448
 
2439
2449
  // src/BiampTable/BiampTableCellActionButton.tsx
2440
- import { IconButton as IconButton3, Tooltip as Tooltip2 } from "@mui/material";
2450
+ import { IconButton as IconButton3, Tooltip as Tooltip3 } from "@mui/material";
2441
2451
  import { jsx as jsx14 } from "react/jsx-runtime";
2442
2452
  function BiampTableCellActionButton({ label, icon, ...props }) {
2443
2453
  return /* @__PURE__ */ jsx14(
2444
- Tooltip2,
2454
+ Tooltip3,
2445
2455
  {
2446
2456
  title: label,
2447
2457
  placement: "top",