@wavelengthusaf/components 1.2.3 → 1.2.5

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.mjs CHANGED
@@ -5046,6 +5046,21 @@ function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign,
5046
5046
  )
5047
5047
  );
5048
5048
  }
5049
+
5050
+ // src/components/snackbars/TestSnackbar.tsx
5051
+ import { Button as Button5, IconButton as IconButton6, Snackbar as Snackbar3 } from "@mui/material";
5052
+ import React32 from "react";
5053
+ import CloseIcon4 from "@mui/icons-material/Close";
5054
+ function TestSnackbar({ openProp, toggleOpen, Sbduration }) {
5055
+ const handleClose = (event, reason) => {
5056
+ if (reason === "clickaway") {
5057
+ return;
5058
+ }
5059
+ toggleOpen(false);
5060
+ };
5061
+ const action = /* @__PURE__ */ React32.createElement(React32.Fragment, null, /* @__PURE__ */ React32.createElement(Button5, { color: "secondary", size: "small", onClick: handleClose }, "UNDO"), /* @__PURE__ */ React32.createElement(IconButton6, { size: "small", "aria-label": "close", color: "inherit", onClick: handleClose }, /* @__PURE__ */ React32.createElement(CloseIcon4, { fontSize: "small" })));
5062
+ return /* @__PURE__ */ React32.createElement(React32.Fragment, null, /* @__PURE__ */ React32.createElement(Snackbar3, { open: openProp, autoHideDuration: Sbduration, onClose: handleClose, message: "Note archived", action }));
5063
+ }
5049
5064
  export {
5050
5065
  AceOfSpadesComponent,
5051
5066
  AppLogo,
@@ -5062,6 +5077,7 @@ export {
5062
5077
  SearchTextField,
5063
5078
  SquadronIcon,
5064
5079
  SwarmIcon,
5080
+ TestSnackbar,
5065
5081
  WavelengthAppTheme,
5066
5082
  WavelengthAutocomplete,
5067
5083
  WavelengthBannerHeader,