@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.d.mts
CHANGED
|
@@ -243,8 +243,9 @@ interface PopUPMenuProps {
|
|
|
243
243
|
customIcon?: React__default.ReactNode;
|
|
244
244
|
width?: string;
|
|
245
245
|
menuDirection?: "top" | "bottom";
|
|
246
|
+
color?: string;
|
|
246
247
|
}
|
|
247
|
-
declare function WavelengthPopUpMenu({ menuItems, customIcon, width, menuDirection }: PopUPMenuProps): React__default.JSX.Element;
|
|
248
|
+
declare function WavelengthPopUpMenu({ menuItems, customIcon, width, menuDirection, color }: PopUPMenuProps): React__default.JSX.Element;
|
|
248
249
|
|
|
249
250
|
interface ConfirmationSnackbarProps {
|
|
250
251
|
show: boolean;
|
|
@@ -255,6 +256,7 @@ interface ConfirmationSnackbarProps {
|
|
|
255
256
|
horryAlign?: "left" | "right" | "center";
|
|
256
257
|
vertyAlign?: "top" | "bottom";
|
|
257
258
|
durationSb?: number;
|
|
259
|
+
width?: string | number;
|
|
258
260
|
}
|
|
259
261
|
declare function WavelengthSnackbar(props: ConfirmationSnackbarProps): React__default.JSX.Element;
|
|
260
262
|
|
package/dist/index.d.ts
CHANGED
|
@@ -243,8 +243,9 @@ interface PopUPMenuProps {
|
|
|
243
243
|
customIcon?: React__default.ReactNode;
|
|
244
244
|
width?: string;
|
|
245
245
|
menuDirection?: "top" | "bottom";
|
|
246
|
+
color?: string;
|
|
246
247
|
}
|
|
247
|
-
declare function WavelengthPopUpMenu({ menuItems, customIcon, width, menuDirection }: PopUPMenuProps): React__default.JSX.Element;
|
|
248
|
+
declare function WavelengthPopUpMenu({ menuItems, customIcon, width, menuDirection, color }: PopUPMenuProps): React__default.JSX.Element;
|
|
248
249
|
|
|
249
250
|
interface ConfirmationSnackbarProps {
|
|
250
251
|
show: boolean;
|
|
@@ -255,6 +256,7 @@ interface ConfirmationSnackbarProps {
|
|
|
255
256
|
horryAlign?: "left" | "right" | "center";
|
|
256
257
|
vertyAlign?: "top" | "bottom";
|
|
257
258
|
durationSb?: number;
|
|
259
|
+
width?: string | number;
|
|
258
260
|
}
|
|
259
261
|
declare function WavelengthSnackbar(props: ConfirmationSnackbarProps): React__default.JSX.Element;
|
|
260
262
|
|
package/dist/index.js
CHANGED
|
@@ -4441,7 +4441,7 @@ var import_Box = __toESM(require("@mui/material/Box"));
|
|
|
4441
4441
|
var import_material12 = require("@mui/material");
|
|
4442
4442
|
var import_icons_material = require("@mui/icons-material");
|
|
4443
4443
|
var customStyle = { marginLeft: 16, marginRight: 16, marginTop: 8, marginBottom: 8 };
|
|
4444
|
-
function WavelengthPopUpMenu({ menuItems, customIcon, width: width2, menuDirection }) {
|
|
4444
|
+
function WavelengthPopUpMenu({ menuItems, customIcon, width: width2, menuDirection, color: color2 }) {
|
|
4445
4445
|
const [anchorEl, setAnchorEl] = import_react32.default.useState(null);
|
|
4446
4446
|
const open = Boolean(anchorEl);
|
|
4447
4447
|
let icon;
|
|
@@ -4454,7 +4454,7 @@ function WavelengthPopUpMenu({ menuItems, customIcon, width: width2, menuDirecti
|
|
|
4454
4454
|
if (customIcon) {
|
|
4455
4455
|
icon = customIcon;
|
|
4456
4456
|
} else {
|
|
4457
|
-
icon = /* @__PURE__ */ import_react32.default.createElement(import_icons_material.HelpOutline, { fontSize: "medium" });
|
|
4457
|
+
icon = /* @__PURE__ */ import_react32.default.createElement(import_icons_material.HelpOutline, { fontSize: "medium", sx: { color: color2 } });
|
|
4458
4458
|
}
|
|
4459
4459
|
const anchor = menuDirection == "top" || menuDirection == void 0 ? "top" : "bottom";
|
|
4460
4460
|
const transform = menuDirection == "top" || menuDirection == void 0 ? "bottom" : "top";
|
|
@@ -4509,6 +4509,7 @@ function WavelengthPopUpMenu({ menuItems, customIcon, width: width2, menuDirecti
|
|
|
4509
4509
|
// src/components/snackbars/WavelengthSnackbar.tsx
|
|
4510
4510
|
var import_material13 = require("@mui/material");
|
|
4511
4511
|
var import_react33 = __toESM(require("react"));
|
|
4512
|
+
var import_Close2 = __toESM(require("@mui/icons-material/Close"));
|
|
4512
4513
|
function WavelengthSnackbar(props) {
|
|
4513
4514
|
const { show, setShow } = props;
|
|
4514
4515
|
const handleClose = () => {
|
|
@@ -4533,10 +4534,12 @@ function WavelengthSnackbar(props) {
|
|
|
4533
4534
|
style: {
|
|
4534
4535
|
backgroundColor: props.snackBarColor ? props.snackBarColor : palette2.primary,
|
|
4535
4536
|
color: props.textColor ? props.textColor : palette2.secondary,
|
|
4536
|
-
display: "
|
|
4537
|
-
textAlign: "center"
|
|
4537
|
+
display: "flex",
|
|
4538
|
+
textAlign: "center",
|
|
4539
|
+
width: props.width
|
|
4538
4540
|
},
|
|
4539
|
-
message: /* @__PURE__ */ import_react33.default.createElement("span", { id: "snackbar" }, props.message ? props.message : "Insert Message Here")
|
|
4541
|
+
message: /* @__PURE__ */ import_react33.default.createElement("span", { id: "snackbar" }, props.message ? props.message : "Insert Message Here"),
|
|
4542
|
+
action: /* @__PURE__ */ import_react33.default.createElement(import_react33.default.Fragment, null, /* @__PURE__ */ import_react33.default.createElement(import_material13.IconButton, { size: "small", "aria-label": "close", color: "inherit", onClick: handleClose }, /* @__PURE__ */ import_react33.default.createElement(import_Close2.default, { fontSize: "small" })))
|
|
4540
4543
|
}
|
|
4541
4544
|
)
|
|
4542
4545
|
);
|