@bwp-web/components 1.0.6 → 1.0.7

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
@@ -775,6 +775,7 @@ function BiampAppDialogItem({
775
775
  function BiampHeaderProfile({
776
776
  image,
777
777
  selected,
778
+ children,
778
779
  sx,
779
780
  ...props
780
781
  }) {
@@ -795,7 +796,7 @@ function BiampHeaderProfile({
795
796
  ...sx
796
797
  },
797
798
  ...props,
798
- children: /* @__PURE__ */ jsx3(
799
+ children: image ? /* @__PURE__ */ jsx3(
799
800
  Box2,
800
801
  {
801
802
  component: "img",
@@ -808,7 +809,7 @@ function BiampHeaderProfile({
808
809
  border: ({ palette }) => `0.6px solid var(--Divider-divider_primary, ${alpha(palette.background.paper, 0.15)})`
809
810
  }
810
811
  }
811
- )
812
+ ) : children
812
813
  }
813
814
  );
814
815
  }
@@ -2713,12 +2714,14 @@ import { Box as Box12, Typography as Typography7 } from "@mui/material";
2713
2714
  import { darken } from "@mui/material/styles";
2714
2715
  import { jsx as jsx24 } from "react/jsx-runtime";
2715
2716
  var DEFAULT_SIZE = 40;
2717
+ var DEFAULT_BORDER_RADIUS = 1.5;
2716
2718
  var TEXT_RATIO = 0.4;
2717
2719
  function UserInitialsIcon({
2718
2720
  name,
2719
2721
  id,
2720
2722
  width = DEFAULT_SIZE,
2721
2723
  height = DEFAULT_SIZE,
2724
+ borderRadius = DEFAULT_BORDER_RADIUS,
2722
2725
  sx,
2723
2726
  ...props
2724
2727
  }) {
@@ -2734,7 +2737,7 @@ function UserInitialsIcon({
2734
2737
  width,
2735
2738
  minHeight: height,
2736
2739
  height,
2737
- borderRadius: 1.5,
2740
+ borderRadius,
2738
2741
  bgcolor: bgColor,
2739
2742
  display: "flex",
2740
2743
  alignItems: "center",