@wavelengthusaf/components 1.0.8 → 1.0.9
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 +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4402,7 +4402,7 @@ import Box3 from "@mui/material/Box";
|
|
|
4402
4402
|
import { Divider as Divider2, IconButton as IconButton3 } from "@mui/material";
|
|
4403
4403
|
import { HelpOutline } from "@mui/icons-material";
|
|
4404
4404
|
var customStyle = { marginLeft: 16, marginRight: 16, marginTop: 8, marginBottom: 8 };
|
|
4405
|
-
function WavelengthPopUpMenu({ menuItems, customIcon, width: width2, menuDirection }) {
|
|
4405
|
+
function WavelengthPopUpMenu({ menuItems, customIcon, width: width2, menuDirection, color: color2 }) {
|
|
4406
4406
|
const [anchorEl, setAnchorEl] = React28.useState(null);
|
|
4407
4407
|
const open = Boolean(anchorEl);
|
|
4408
4408
|
let icon;
|
|
@@ -4415,7 +4415,7 @@ function WavelengthPopUpMenu({ menuItems, customIcon, width: width2, menuDirecti
|
|
|
4415
4415
|
if (customIcon) {
|
|
4416
4416
|
icon = customIcon;
|
|
4417
4417
|
} else {
|
|
4418
|
-
icon = /* @__PURE__ */ React28.createElement(HelpOutline, { fontSize: "medium" });
|
|
4418
|
+
icon = /* @__PURE__ */ React28.createElement(HelpOutline, { fontSize: "medium", sx: { color: color2 } });
|
|
4419
4419
|
}
|
|
4420
4420
|
const anchor = menuDirection == "top" || menuDirection == void 0 ? "top" : "bottom";
|
|
4421
4421
|
const transform = menuDirection == "top" || menuDirection == void 0 ? "bottom" : "top";
|
|
@@ -4468,8 +4468,9 @@ function WavelengthPopUpMenu({ menuItems, customIcon, width: width2, menuDirecti
|
|
|
4468
4468
|
}
|
|
4469
4469
|
|
|
4470
4470
|
// src/components/snackbars/WavelengthSnackbar.tsx
|
|
4471
|
-
import { Snackbar, SnackbarContent } from "@mui/material";
|
|
4471
|
+
import { IconButton as IconButton4, Snackbar, SnackbarContent } from "@mui/material";
|
|
4472
4472
|
import React29 from "react";
|
|
4473
|
+
import CloseIcon2 from "@mui/icons-material/Close";
|
|
4473
4474
|
function WavelengthSnackbar(props) {
|
|
4474
4475
|
const { show, setShow } = props;
|
|
4475
4476
|
const handleClose = () => {
|
|
@@ -4494,10 +4495,12 @@ function WavelengthSnackbar(props) {
|
|
|
4494
4495
|
style: {
|
|
4495
4496
|
backgroundColor: props.snackBarColor ? props.snackBarColor : palette2.primary,
|
|
4496
4497
|
color: props.textColor ? props.textColor : palette2.secondary,
|
|
4497
|
-
display: "
|
|
4498
|
-
textAlign: "center"
|
|
4498
|
+
display: "flex",
|
|
4499
|
+
textAlign: "center",
|
|
4500
|
+
width: props.width
|
|
4499
4501
|
},
|
|
4500
|
-
message: /* @__PURE__ */ React29.createElement("span", { id: "snackbar" }, props.message ? props.message : "Insert Message Here")
|
|
4502
|
+
message: /* @__PURE__ */ React29.createElement("span", { id: "snackbar" }, props.message ? props.message : "Insert Message Here"),
|
|
4503
|
+
action: /* @__PURE__ */ React29.createElement(React29.Fragment, null, /* @__PURE__ */ React29.createElement(IconButton4, { size: "small", "aria-label": "close", color: "inherit", onClick: handleClose }, /* @__PURE__ */ React29.createElement(CloseIcon2, { fontSize: "small" })))
|
|
4501
4504
|
}
|
|
4502
4505
|
)
|
|
4503
4506
|
);
|