@wavelengthusaf/components 1.2.4 → 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.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -326,7 +326,8 @@ declare function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vert
|
|
|
326
326
|
interface TestProps {
|
|
327
327
|
openProp: boolean;
|
|
328
328
|
toggleOpen: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
329
|
+
Sbduration?: number;
|
|
329
330
|
}
|
|
330
|
-
declare function TestSnackbar({ openProp, toggleOpen }: TestProps): React__default.JSX.Element;
|
|
331
|
+
declare function TestSnackbar({ openProp, toggleOpen, Sbduration }: TestProps): React__default.JSX.Element;
|
|
331
332
|
|
|
332
333
|
export { AceOfSpadesComponent, AppLogo, ArrowIcon, BomberBeeIcon, ButtonIcon, ButtonMenu, DefaultIcon, ManyPlanesComponent, NotAvailablePage, Old563EWSLogo, PortalIcon, RapidrefIcon, type SearchResult, SearchTextField, SquadronIcon, SwarmIcon, TestSnackbar, type ThemeProperties, WavelengthAppTheme, WavelengthAutocomplete, WavelengthBannerHeader, WavelengthBox, WavelengthButton, WavelengthConfirmationModal, WavelengthContentModal, WavelengthContentPlaceholder, WavelengthDropdownButton, WavelengthExampleComponent, WavelengthFooter, WavelengthIcon, WavelengthPlaneTrail, WavelengthPopUpMenu, WavelengthSearch, WavelengthSideBar, WavelengthSnackbar, WavelengthStandardSnackbar, WavelengthTitleBar, add, concat, findBestStringMatch, type menuItemProps, useThemeContext };
|
package/dist/index.d.ts
CHANGED
|
@@ -326,7 +326,8 @@ declare function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vert
|
|
|
326
326
|
interface TestProps {
|
|
327
327
|
openProp: boolean;
|
|
328
328
|
toggleOpen: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
329
|
+
Sbduration?: number;
|
|
329
330
|
}
|
|
330
|
-
declare function TestSnackbar({ openProp, toggleOpen }: TestProps): React__default.JSX.Element;
|
|
331
|
+
declare function TestSnackbar({ openProp, toggleOpen, Sbduration }: TestProps): React__default.JSX.Element;
|
|
331
332
|
|
|
332
333
|
export { AceOfSpadesComponent, AppLogo, ArrowIcon, BomberBeeIcon, ButtonIcon, ButtonMenu, DefaultIcon, ManyPlanesComponent, NotAvailablePage, Old563EWSLogo, PortalIcon, RapidrefIcon, type SearchResult, SearchTextField, SquadronIcon, SwarmIcon, TestSnackbar, type ThemeProperties, WavelengthAppTheme, WavelengthAutocomplete, WavelengthBannerHeader, WavelengthBox, WavelengthButton, WavelengthConfirmationModal, WavelengthContentModal, WavelengthContentPlaceholder, WavelengthDropdownButton, WavelengthExampleComponent, WavelengthFooter, WavelengthIcon, WavelengthPlaneTrail, WavelengthPopUpMenu, WavelengthSearch, WavelengthSideBar, WavelengthSnackbar, WavelengthStandardSnackbar, WavelengthTitleBar, add, concat, findBestStringMatch, type menuItemProps, useThemeContext };
|
package/dist/index.js
CHANGED
|
@@ -5093,8 +5093,7 @@ function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign,
|
|
|
5093
5093
|
var import_material15 = require("@mui/material");
|
|
5094
5094
|
var import_react36 = __toESM(require("react"));
|
|
5095
5095
|
var import_Close4 = __toESM(require("@mui/icons-material/Close"));
|
|
5096
|
-
function TestSnackbar({ openProp, toggleOpen }) {
|
|
5097
|
-
const [open, setOpen] = import_react36.default.useState(openProp);
|
|
5096
|
+
function TestSnackbar({ openProp, toggleOpen, Sbduration }) {
|
|
5098
5097
|
const handleClose = (event, reason) => {
|
|
5099
5098
|
if (reason === "clickaway") {
|
|
5100
5099
|
return;
|
|
@@ -5102,7 +5101,7 @@ function TestSnackbar({ openProp, toggleOpen }) {
|
|
|
5102
5101
|
toggleOpen(false);
|
|
5103
5102
|
};
|
|
5104
5103
|
const action = /* @__PURE__ */ import_react36.default.createElement(import_react36.default.Fragment, null, /* @__PURE__ */ import_react36.default.createElement(import_material15.Button, { color: "secondary", size: "small", onClick: handleClose }, "UNDO"), /* @__PURE__ */ import_react36.default.createElement(import_material15.IconButton, { size: "small", "aria-label": "close", color: "inherit", onClick: handleClose }, /* @__PURE__ */ import_react36.default.createElement(import_Close4.default, { fontSize: "small" })));
|
|
5105
|
-
return /* @__PURE__ */ import_react36.default.createElement(import_react36.default.Fragment, null, /* @__PURE__ */ import_react36.default.createElement(import_material15.Snackbar, { open: openProp, autoHideDuration:
|
|
5104
|
+
return /* @__PURE__ */ import_react36.default.createElement(import_react36.default.Fragment, null, /* @__PURE__ */ import_react36.default.createElement(import_material15.Snackbar, { open: openProp, autoHideDuration: Sbduration, onClose: handleClose, message: "Note archived", action }));
|
|
5106
5105
|
}
|
|
5107
5106
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5108
5107
|
0 && (module.exports = {
|