@wavelengthusaf/components 1.2.3 → 1.2.4
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.d.mts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5046,6 +5046,22 @@ 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 }) {
|
|
5055
|
+
const [open, setOpen] = React32.useState(openProp);
|
|
5056
|
+
const handleClose = (event, reason) => {
|
|
5057
|
+
if (reason === "clickaway") {
|
|
5058
|
+
return;
|
|
5059
|
+
}
|
|
5060
|
+
toggleOpen(false);
|
|
5061
|
+
};
|
|
5062
|
+
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" })));
|
|
5063
|
+
return /* @__PURE__ */ React32.createElement(React32.Fragment, null, /* @__PURE__ */ React32.createElement(Snackbar3, { open: openProp, autoHideDuration: 6e3, onClose: handleClose, message: "Note archived", action }));
|
|
5064
|
+
}
|
|
5049
5065
|
export {
|
|
5050
5066
|
AceOfSpadesComponent,
|
|
5051
5067
|
AppLogo,
|
|
@@ -5062,6 +5078,7 @@ export {
|
|
|
5062
5078
|
SearchTextField,
|
|
5063
5079
|
SquadronIcon,
|
|
5064
5080
|
SwarmIcon,
|
|
5081
|
+
TestSnackbar,
|
|
5065
5082
|
WavelengthAppTheme,
|
|
5066
5083
|
WavelengthAutocomplete,
|
|
5067
5084
|
WavelengthBannerHeader,
|