@bwp-web/components 1.9.2 → 1.9.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.
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
  ),
@@ -748,7 +749,7 @@ function BiampSidebarIcon({
748
749
  const { expanded } = useContext2(BiampSidebarContext);
749
750
  const layoutDrawer = useBiampLayoutDrawer();
750
751
  const displayedSelectedIcon = selectedIcon ?? icon;
751
- return /* @__PURE__ */ jsxs3(
752
+ return /* @__PURE__ */ jsx3(Tooltip, { title: expanded ? "" : name ?? "", placement: "right", arrow: true, children: /* @__PURE__ */ jsxs3(
752
753
  ListItemButton,
753
754
  {
754
755
  selected,
@@ -810,7 +811,7 @@ function BiampSidebarIcon({
810
811
  )
811
812
  ]
812
813
  }
813
- );
814
+ ) });
814
815
  }
815
816
  function BiampSidebarComponent({
816
817
  children,
@@ -1803,7 +1804,7 @@ import { flexRender } from "@tanstack/react-table";
1803
1804
  import React4 from "react";
1804
1805
 
1805
1806
  // src/BiampTable/BiampTableTruncatedCell.tsx
1806
- import { Box as Box5, Tooltip } from "@mui/material";
1807
+ import { Box as Box5, Tooltip as Tooltip2 } from "@mui/material";
1807
1808
  import { useCallback, useRef as useRef2, useState as useState5 } from "react";
1808
1809
  import { jsx as jsx9 } from "react/jsx-runtime";
1809
1810
  function BiampTableTruncatedCell({
@@ -1821,7 +1822,7 @@ function BiampTableTruncatedCell({
1821
1822
  setOpen(false);
1822
1823
  }, []);
1823
1824
  return /* @__PURE__ */ jsx9(
1824
- Tooltip,
1825
+ Tooltip2,
1825
1826
  {
1826
1827
  title: children,
1827
1828
  open,
@@ -2437,11 +2438,11 @@ function BiampTableContainer({
2437
2438
  }
2438
2439
 
2439
2440
  // src/BiampTable/BiampTableCellActionButton.tsx
2440
- import { IconButton as IconButton3, Tooltip as Tooltip2 } from "@mui/material";
2441
+ import { IconButton as IconButton3, Tooltip as Tooltip3 } from "@mui/material";
2441
2442
  import { jsx as jsx14 } from "react/jsx-runtime";
2442
2443
  function BiampTableCellActionButton({ label, icon, ...props }) {
2443
2444
  return /* @__PURE__ */ jsx14(
2444
- Tooltip2,
2445
+ Tooltip3,
2445
2446
  {
2446
2447
  title: label,
2447
2448
  placement: "top",