@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.d.mts
CHANGED
|
@@ -323,4 +323,10 @@ interface StandardSnackbarProps {
|
|
|
323
323
|
}
|
|
324
324
|
declare function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign, durationSb, width, message, customVertyAlign, toggleShow }: StandardSnackbarProps): React__default.JSX.Element;
|
|
325
325
|
|
|
326
|
-
|
|
326
|
+
interface TestProps {
|
|
327
|
+
openProp: boolean;
|
|
328
|
+
toggleOpen: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
329
|
+
}
|
|
330
|
+
declare function TestSnackbar({ openProp, toggleOpen }: TestProps): React__default.JSX.Element;
|
|
331
|
+
|
|
332
|
+
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
|
@@ -323,4 +323,10 @@ interface StandardSnackbarProps {
|
|
|
323
323
|
}
|
|
324
324
|
declare function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign, durationSb, width, message, customVertyAlign, toggleShow }: StandardSnackbarProps): React__default.JSX.Element;
|
|
325
325
|
|
|
326
|
-
|
|
326
|
+
interface TestProps {
|
|
327
|
+
openProp: boolean;
|
|
328
|
+
toggleOpen: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
329
|
+
}
|
|
330
|
+
declare function TestSnackbar({ openProp, toggleOpen }: TestProps): React__default.JSX.Element;
|
|
331
|
+
|
|
332
|
+
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
|
@@ -1318,6 +1318,7 @@ __export(src_exports, {
|
|
|
1318
1318
|
SearchTextField: () => SearchTextField,
|
|
1319
1319
|
SquadronIcon: () => SquadronIcon,
|
|
1320
1320
|
SwarmIcon: () => SwarmIcon,
|
|
1321
|
+
TestSnackbar: () => TestSnackbar,
|
|
1321
1322
|
WavelengthAppTheme: () => WavelengthAppTheme,
|
|
1322
1323
|
WavelengthAutocomplete: () => WavelengthAutocomplete,
|
|
1323
1324
|
WavelengthBannerHeader: () => WavelengthBannerHeader,
|
|
@@ -5087,6 +5088,22 @@ function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign,
|
|
|
5087
5088
|
)
|
|
5088
5089
|
);
|
|
5089
5090
|
}
|
|
5091
|
+
|
|
5092
|
+
// src/components/snackbars/TestSnackbar.tsx
|
|
5093
|
+
var import_material15 = require("@mui/material");
|
|
5094
|
+
var import_react36 = __toESM(require("react"));
|
|
5095
|
+
var import_Close4 = __toESM(require("@mui/icons-material/Close"));
|
|
5096
|
+
function TestSnackbar({ openProp, toggleOpen }) {
|
|
5097
|
+
const [open, setOpen] = import_react36.default.useState(openProp);
|
|
5098
|
+
const handleClose = (event, reason) => {
|
|
5099
|
+
if (reason === "clickaway") {
|
|
5100
|
+
return;
|
|
5101
|
+
}
|
|
5102
|
+
toggleOpen(false);
|
|
5103
|
+
};
|
|
5104
|
+
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: 6e3, onClose: handleClose, message: "Note archived", action }));
|
|
5106
|
+
}
|
|
5090
5107
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5091
5108
|
0 && (module.exports = {
|
|
5092
5109
|
AceOfSpadesComponent,
|
|
@@ -5104,6 +5121,7 @@ function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign,
|
|
|
5104
5121
|
SearchTextField,
|
|
5105
5122
|
SquadronIcon,
|
|
5106
5123
|
SwarmIcon,
|
|
5124
|
+
TestSnackbar,
|
|
5107
5125
|
WavelengthAppTheme,
|
|
5108
5126
|
WavelengthAutocomplete,
|
|
5109
5127
|
WavelengthBannerHeader,
|