@bwp-web/components 0.13.6 → 0.14.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/dist/index.js CHANGED
@@ -1844,11 +1844,63 @@ function downloadCsv(csvContent, filename) {
1844
1844
  document.body.removeChild(link);
1845
1845
  URL.revokeObjectURL(url);
1846
1846
  }
1847
+
1848
+ // src/BiampBanner/BiampBanner.tsx
1849
+ import {
1850
+ Box as Box10,
1851
+ Collapse as Collapse2,
1852
+ Typography as Typography5
1853
+ } from "@mui/material";
1854
+ import {
1855
+ ErrorStatusIcon,
1856
+ InfoStatusIcon,
1857
+ SuccessStatusIcon,
1858
+ WarningStatusIcon
1859
+ } from "@bwp-web/assets";
1860
+ import { Fragment as Fragment3, jsx as jsx20 } from "react/jsx-runtime";
1861
+ function BiampBanner({ show, children, severity }) {
1862
+ return /* @__PURE__ */ jsx20(Collapse2, { in: show, unmountOnExit: true, component: "aside", children: /* @__PURE__ */ jsx20(
1863
+ Box10,
1864
+ {
1865
+ bgcolor: ({ palette }) => palette.background[severity],
1866
+ display: "flex",
1867
+ flexDirection: "row",
1868
+ alignItems: "center",
1869
+ justifyContent: "space-between",
1870
+ gap: 1,
1871
+ px: { xs: 2, sm: 2.5 },
1872
+ minHeight: 48,
1873
+ sx: {
1874
+ borderBottom: ({ palette }) => `0.6px solid ${palette[severity].main}`
1875
+ },
1876
+ children
1877
+ }
1878
+ ) });
1879
+ }
1880
+ var iconMapping = {
1881
+ error: /* @__PURE__ */ jsx20(ErrorStatusIcon, { color: "error", sx: { width: 14, height: 14 } }),
1882
+ warning: /* @__PURE__ */ jsx20(WarningStatusIcon, { color: "warning", sx: { width: 16, height: 14 } }),
1883
+ success: /* @__PURE__ */ jsx20(SuccessStatusIcon, { color: "success", sx: { width: 14, height: 14 } }),
1884
+ info: /* @__PURE__ */ jsx20(InfoStatusIcon, { color: "info", sx: { width: 14, height: 14 } })
1885
+ };
1886
+ function BiampBannerIcon({ severity, children }) {
1887
+ return /* @__PURE__ */ jsx20(Fragment3, { children: severity ? iconMapping[severity] : children });
1888
+ }
1889
+ function BiampBannerContent({ children, ...props }) {
1890
+ return /* @__PURE__ */ jsx20(Typography5, { textAlign: "center", variant: "h3", ...props, children });
1891
+ }
1892
+ function BiampBannerActions({ children, ...props }) {
1893
+ return /* @__PURE__ */ jsx20(Box10, { display: "flex", gap: 1, alignItems: "center", ...props, children });
1894
+ }
1847
1895
  export {
1848
1896
  BIAMP_TABLE_DEBOUNCE_DELAY,
1849
1897
  BiampAppDialog,
1850
1898
  BiampAppDialogItem,
1851
1899
  BiampAppPopover,
1900
+ BiampBanner,
1901
+ BiampBannerActions,
1902
+ BiampBannerContent,
1903
+ BiampBannerIcon,
1852
1904
  BiampHeader,
1853
1905
  BiampHeaderActions,
1854
1906
  BiampHeaderButton,