@bwp-web/components 1.1.2 → 1.2.0
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 +30 -28
- package/dist/BiampHeader/BiampHeader.d.ts +18 -4
- package/dist/BiampHeader/BiampHeader.d.ts.map +1 -1
- package/dist/BiampHeader/index.d.ts +1 -1
- package/dist/BiampHeader/index.d.ts.map +1 -1
- package/dist/index.cjs +95 -60
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +92 -59
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -509,7 +509,7 @@ import {
|
|
|
509
509
|
TextField,
|
|
510
510
|
Typography
|
|
511
511
|
} from "@mui/material";
|
|
512
|
-
import { BiampRedLogo, SearchIcon } from "@bwp-web/assets";
|
|
512
|
+
import { BiampRedLogo, ExternalLinkIcon, SearchIcon } from "@bwp-web/assets";
|
|
513
513
|
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
514
514
|
function BiampHeader({ children, sx, ...props }) {
|
|
515
515
|
return /* @__PURE__ */ jsx3(
|
|
@@ -659,6 +659,7 @@ function BiampHeaderButton({
|
|
|
659
659
|
}
|
|
660
660
|
);
|
|
661
661
|
}
|
|
662
|
+
var POPOVER_MAX_WIDTH = 530;
|
|
662
663
|
function BiampAppPopover({
|
|
663
664
|
children,
|
|
664
665
|
open,
|
|
@@ -669,9 +670,9 @@ function BiampAppPopover({
|
|
|
669
670
|
Popover,
|
|
670
671
|
{
|
|
671
672
|
open,
|
|
672
|
-
anchorOrigin: { vertical: "bottom", horizontal: "
|
|
673
|
+
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
674
|
+
transformOrigin: { vertical: -8, horizontal: POPOVER_MAX_WIDTH - 4 },
|
|
673
675
|
sx: { ...sx },
|
|
674
|
-
transformOrigin: { vertical: -4, horizontal: 150 },
|
|
675
676
|
slotProps: {
|
|
676
677
|
paper: {
|
|
677
678
|
sx: {
|
|
@@ -680,7 +681,13 @@ function BiampAppPopover({
|
|
|
680
681
|
outlineWidth: "0.6px",
|
|
681
682
|
outlineStyle: "solid",
|
|
682
683
|
outlineColor: ({ palette }) => palette.divider,
|
|
683
|
-
boxShadow: ({ palette }) => `0px 4px 24px 0px ${alpha(palette.common.black, 0.15)}
|
|
684
|
+
boxShadow: ({ palette }) => `0px 4px 24px 0px ${alpha(palette.common.black, 0.15)};`,
|
|
685
|
+
maxWidth: POPOVER_MAX_WIDTH,
|
|
686
|
+
width: "100%",
|
|
687
|
+
p: 2,
|
|
688
|
+
display: "flex",
|
|
689
|
+
flexDirection: "column",
|
|
690
|
+
gap: 2
|
|
684
691
|
}
|
|
685
692
|
}
|
|
686
693
|
},
|
|
@@ -689,7 +696,7 @@ function BiampAppPopover({
|
|
|
689
696
|
}
|
|
690
697
|
);
|
|
691
698
|
}
|
|
692
|
-
function
|
|
699
|
+
function BiampBuildAppContent({
|
|
693
700
|
children,
|
|
694
701
|
sx,
|
|
695
702
|
...props
|
|
@@ -698,13 +705,9 @@ function BiampAppDialog({
|
|
|
698
705
|
Box2,
|
|
699
706
|
{
|
|
700
707
|
sx: {
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
flexWrap: "wrap",
|
|
708
|
+
display: "grid",
|
|
709
|
+
gridTemplateColumns: "1fr 1fr",
|
|
704
710
|
gap: 1.5,
|
|
705
|
-
maxWidth: "284px",
|
|
706
|
-
borderRadius: "16px",
|
|
707
|
-
backgroundColor: ({ palette }) => palette.mode === "dark" ? palette.grey[800] : palette.common.white,
|
|
708
711
|
...sx
|
|
709
712
|
},
|
|
710
713
|
...props,
|
|
@@ -712,64 +715,92 @@ function BiampAppDialog({
|
|
|
712
715
|
}
|
|
713
716
|
);
|
|
714
717
|
}
|
|
715
|
-
function
|
|
718
|
+
function BiampBuildAppContentItem({
|
|
719
|
+
image,
|
|
720
|
+
name,
|
|
721
|
+
description,
|
|
722
|
+
button,
|
|
723
|
+
sx,
|
|
724
|
+
...props
|
|
725
|
+
}) {
|
|
726
|
+
return /* @__PURE__ */ jsxs2(
|
|
727
|
+
Stack3,
|
|
728
|
+
{
|
|
729
|
+
direction: "column",
|
|
730
|
+
position: "relative",
|
|
731
|
+
sx: {
|
|
732
|
+
p: 1.5,
|
|
733
|
+
borderRadius: 1.5,
|
|
734
|
+
outlineWidth: "1px",
|
|
735
|
+
outlineStyle: "solid",
|
|
736
|
+
outlineColor: ({ palette }) => palette.divider,
|
|
737
|
+
...sx
|
|
738
|
+
},
|
|
739
|
+
...props,
|
|
740
|
+
children: [
|
|
741
|
+
/* @__PURE__ */ jsx3(Box2, { sx: { width: 54, height: 54 }, mb: 0.5, children: image }),
|
|
742
|
+
/* @__PURE__ */ jsx3(Typography, { variant: "caption", fontWeight: 600, mb: 0.5, children: name }),
|
|
743
|
+
/* @__PURE__ */ jsx3(Typography, { variant: "caption", color: "text.secondary", children: description }),
|
|
744
|
+
button && /* @__PURE__ */ jsx3(Box2, { position: "absolute", top: "12px", right: "12px", children: button })
|
|
745
|
+
]
|
|
746
|
+
}
|
|
747
|
+
);
|
|
748
|
+
}
|
|
749
|
+
function BiampEndUserAppContent({
|
|
716
750
|
children,
|
|
751
|
+
sx,
|
|
752
|
+
...props
|
|
753
|
+
}) {
|
|
754
|
+
return /* @__PURE__ */ jsx3(
|
|
755
|
+
Stack3,
|
|
756
|
+
{
|
|
757
|
+
direction: "column",
|
|
758
|
+
sx: {
|
|
759
|
+
gap: 1.5,
|
|
760
|
+
...sx
|
|
761
|
+
},
|
|
762
|
+
...props,
|
|
763
|
+
children
|
|
764
|
+
}
|
|
765
|
+
);
|
|
766
|
+
}
|
|
767
|
+
function BiampEndUserAppContentItem({
|
|
768
|
+
image,
|
|
717
769
|
name,
|
|
770
|
+
description,
|
|
771
|
+
href,
|
|
772
|
+
target,
|
|
718
773
|
sx,
|
|
719
774
|
...props
|
|
720
775
|
}) {
|
|
721
776
|
return /* @__PURE__ */ jsxs2(
|
|
722
|
-
|
|
777
|
+
Stack3,
|
|
723
778
|
{
|
|
779
|
+
component: href ? "a" : "div",
|
|
780
|
+
href,
|
|
781
|
+
target,
|
|
782
|
+
direction: "row",
|
|
783
|
+
alignItems: "center",
|
|
724
784
|
sx: {
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
border: "0.6px solid transparent",
|
|
735
|
-
transition: "background-color 0.2s ease, border-color 0.2s ease",
|
|
736
|
-
":hover": {
|
|
737
|
-
backgroundColor: ({ palette }) => alpha(palette.info.main, 0.1),
|
|
738
|
-
borderColor: ({ palette }) => palette.info.main
|
|
739
|
-
},
|
|
785
|
+
gap: 1.5,
|
|
786
|
+
p: 1.5,
|
|
787
|
+
borderRadius: 1.5,
|
|
788
|
+
outlineWidth: "1px",
|
|
789
|
+
outlineStyle: "solid",
|
|
790
|
+
outlineColor: ({ palette }) => palette.divider,
|
|
791
|
+
textDecoration: "none",
|
|
792
|
+
color: "inherit",
|
|
793
|
+
cursor: href ? "pointer" : void 0,
|
|
740
794
|
...sx
|
|
741
795
|
},
|
|
742
796
|
...props,
|
|
743
797
|
children: [
|
|
744
|
-
/* @__PURE__ */ jsx3(
|
|
745
|
-
|
|
746
|
-
{
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
height: "54px",
|
|
751
|
-
display: "flex",
|
|
752
|
-
alignItems: "center",
|
|
753
|
-
justifyContent: "center"
|
|
754
|
-
},
|
|
755
|
-
children
|
|
756
|
-
}
|
|
757
|
-
),
|
|
758
|
-
/* @__PURE__ */ jsx3(
|
|
759
|
-
Typography,
|
|
760
|
-
{
|
|
761
|
-
variant: "caption",
|
|
762
|
-
fontWeight: 600,
|
|
763
|
-
sx: {
|
|
764
|
-
textAlign: "center",
|
|
765
|
-
overflow: "hidden",
|
|
766
|
-
textOverflow: "ellipsis",
|
|
767
|
-
whiteSpace: "nowrap",
|
|
768
|
-
maxWidth: "100%"
|
|
769
|
-
},
|
|
770
|
-
children: name
|
|
771
|
-
}
|
|
772
|
-
)
|
|
798
|
+
/* @__PURE__ */ jsx3(Box2, { sx: { width: 32, height: 32 }, children: image }),
|
|
799
|
+
/* @__PURE__ */ jsxs2(Stack3, { direction: "column", children: [
|
|
800
|
+
/* @__PURE__ */ jsx3(Typography, { variant: "caption", fontWeight: 600, children: name }),
|
|
801
|
+
/* @__PURE__ */ jsx3(Typography, { variant: "caption", color: "text.secondary", children: description })
|
|
802
|
+
] }),
|
|
803
|
+
/* @__PURE__ */ jsx3(ExternalLinkIcon, { sx: { width: 16, height: 16, ml: "auto" } })
|
|
773
804
|
]
|
|
774
805
|
}
|
|
775
806
|
);
|
|
@@ -2922,13 +2953,15 @@ function DynamicSvgIcon({
|
|
|
2922
2953
|
}
|
|
2923
2954
|
export {
|
|
2924
2955
|
BIAMP_TABLE_DEBOUNCE_DELAY,
|
|
2925
|
-
BiampAppDialog,
|
|
2926
|
-
BiampAppDialogItem,
|
|
2927
2956
|
BiampAppPopover,
|
|
2928
2957
|
BiampBanner,
|
|
2929
2958
|
BiampBannerActions,
|
|
2930
2959
|
BiampBannerContent,
|
|
2931
2960
|
BiampBannerIcon,
|
|
2961
|
+
BiampBuildAppContent,
|
|
2962
|
+
BiampBuildAppContentItem,
|
|
2963
|
+
BiampEndUserAppContent,
|
|
2964
|
+
BiampEndUserAppContentItem,
|
|
2932
2965
|
BiampGlobalSearch,
|
|
2933
2966
|
BiampHeader,
|
|
2934
2967
|
BiampHeaderActions,
|