@bwp-web/components 1.0.6 → 1.0.8
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/README.md +9 -1
- package/dist/BiampHeader/BiampHeader.d.ts +4 -3
- package/dist/BiampHeader/BiampHeader.d.ts.map +1 -1
- package/dist/UserInitialsIcon/UserInitialsIcon.d.ts +1 -1
- package/dist/UserInitialsIcon/UserInitialsIcon.d.ts.map +1 -1
- package/dist/index.cjs +9 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -677,7 +677,9 @@ function BiampAppPopover({
|
|
|
677
677
|
sx: {
|
|
678
678
|
borderRadius: "16px",
|
|
679
679
|
backgroundImage: "none",
|
|
680
|
-
|
|
680
|
+
outlineWidth: "0.6px",
|
|
681
|
+
outlineStyle: "solid",
|
|
682
|
+
outlineColor: ({ palette }) => palette.divider,
|
|
681
683
|
boxShadow: ({ palette }) => `0px 4px 24px 0px ${alpha(palette.common.black, 0.15)};`
|
|
682
684
|
}
|
|
683
685
|
}
|
|
@@ -775,6 +777,7 @@ function BiampAppDialogItem({
|
|
|
775
777
|
function BiampHeaderProfile({
|
|
776
778
|
image,
|
|
777
779
|
selected,
|
|
780
|
+
children,
|
|
778
781
|
sx,
|
|
779
782
|
...props
|
|
780
783
|
}) {
|
|
@@ -795,7 +798,7 @@ function BiampHeaderProfile({
|
|
|
795
798
|
...sx
|
|
796
799
|
},
|
|
797
800
|
...props,
|
|
798
|
-
children: /* @__PURE__ */ jsx3(
|
|
801
|
+
children: image ? /* @__PURE__ */ jsx3(
|
|
799
802
|
Box2,
|
|
800
803
|
{
|
|
801
804
|
component: "img",
|
|
@@ -808,7 +811,7 @@ function BiampHeaderProfile({
|
|
|
808
811
|
border: ({ palette }) => `0.6px solid var(--Divider-divider_primary, ${alpha(palette.background.paper, 0.15)})`
|
|
809
812
|
}
|
|
810
813
|
}
|
|
811
|
-
)
|
|
814
|
+
) : children
|
|
812
815
|
}
|
|
813
816
|
);
|
|
814
817
|
}
|
|
@@ -2713,12 +2716,14 @@ import { Box as Box12, Typography as Typography7 } from "@mui/material";
|
|
|
2713
2716
|
import { darken } from "@mui/material/styles";
|
|
2714
2717
|
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
2715
2718
|
var DEFAULT_SIZE = 40;
|
|
2719
|
+
var DEFAULT_BORDER_RADIUS = 1.5;
|
|
2716
2720
|
var TEXT_RATIO = 0.4;
|
|
2717
2721
|
function UserInitialsIcon({
|
|
2718
2722
|
name,
|
|
2719
2723
|
id,
|
|
2720
2724
|
width = DEFAULT_SIZE,
|
|
2721
2725
|
height = DEFAULT_SIZE,
|
|
2726
|
+
borderRadius = DEFAULT_BORDER_RADIUS,
|
|
2722
2727
|
sx,
|
|
2723
2728
|
...props
|
|
2724
2729
|
}) {
|
|
@@ -2734,7 +2739,7 @@ function UserInitialsIcon({
|
|
|
2734
2739
|
width,
|
|
2735
2740
|
minHeight: height,
|
|
2736
2741
|
height,
|
|
2737
|
-
borderRadius
|
|
2742
|
+
borderRadius,
|
|
2738
2743
|
bgcolor: bgColor,
|
|
2739
2744
|
display: "flex",
|
|
2740
2745
|
alignItems: "center",
|