@wavelengthusaf/components 1.0.11 → 1.1.1

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.mjs CHANGED
@@ -4283,38 +4283,37 @@ function DefaultIcon({ width: width2 = "180", height: height2 = 140 }) {
4283
4283
  // src/components/CSFD/ManyPlanes.tsx
4284
4284
  import React24 from "react";
4285
4285
  import { Grid as Grid3 } from "@mui/material";
4286
- function ManyPlanesComponent({ numberOfPlanes, trailDir, color: color2, opacity, gradient }) {
4286
+ function ManyPlanesComponent({ numberOfPlanes = 5, trailDir = "left", color: color2, opacity = 1, gradient = false }) {
4287
4287
  let direction = "row-reverse";
4288
4288
  let planeDir = "planeR";
4289
4289
  let flippy = "";
4290
4290
  const palette2 = getPalette();
4291
4291
  const colorish = color2 ? color2 : palette2.primary;
4292
- if (trailDir != "right") {
4292
+ if (trailDir !== "right") {
4293
4293
  direction = "row";
4294
4294
  planeDir = "planeL";
4295
4295
  flippy = "rotate(180)";
4296
4296
  }
4297
4297
  const PlaneGrid = ({ opacity: opacity2 }) => {
4298
- return /* @__PURE__ */ React24.createElement(Grid3, { item: true, key: planeDir }, /* @__PURE__ */ React24.createElement("svg", { width: "40", height: "40", viewBox: "0 0 40 40", transform: flippy, gradientTransform: "", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React24.createElement("mask", { id: "mask0_56_851", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "40", height: "40" }, /* @__PURE__ */ React24.createElement("rect", { x: "40", width: "40", height: "40", transform: "rotate(90 40 0)", fill: "#D9D9D9" })), /* @__PURE__ */ React24.createElement("g", { mask: "url(#mask0_56_851)" }, /* @__PURE__ */ React24.createElement(
4298
+ return /* @__PURE__ */ React24.createElement(Grid3, { item: true }, /* @__PURE__ */ React24.createElement("svg", { width: "40", height: "40", viewBox: "0 0 40 40", transform: flippy, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React24.createElement("mask", { id: "mask0_56_851", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "40", height: "40" }, /* @__PURE__ */ React24.createElement("rect", { x: "40", width: "40", height: "40", transform: "rotate(90 40 0)", fill: "#D9D9D9" })), /* @__PURE__ */ React24.createElement("g", { mask: "url(#mask0_56_851)" }, /* @__PURE__ */ React24.createElement(
4299
4299
  "path",
4300
4300
  {
4301
4301
  d: "M4.16662 14.8988L5.76079 14.8988L8.16454 18.1359L18.2616 18.1359L14.1291 4.16669L16.2425 4.16669L24.5075 18.1359L33.985 18.1359C34.5022 18.1359 34.9422 18.3172 35.305 18.68C35.6677 19.0428 35.8491 19.4828 35.8491 20C35.8491 20.5172 35.6677 20.9572 35.305 21.32C34.9422 21.6828 34.5022 21.8642 33.985 21.8642L24.5075 21.8642L16.2425 35.8334L14.1291 35.8334L18.2616 21.8642L8.19662 21.8642L5.76079 25.1013L4.16662 25.1013L5.64329 20L4.16662 14.8988Z",
4302
- opacity: opacity2,
4302
+ fillOpacity: opacity2,
4303
4303
  fill: colorish
4304
4304
  }
4305
4305
  ))));
4306
4306
  };
4307
- const PlaneGridWrapper = (size = 5, opacity2) => {
4307
+ const PlaneGridWrapper = (size, baseOpacity) => {
4308
4308
  const planes = [];
4309
- const oppie = opacity2 ? opacity2 : 1;
4310
4309
  if (gradient) {
4311
4310
  for (let i = 0; i < size; i++) {
4312
- opacity2 = oppie - (i - 1) / (size - 1) * (oppie - 0.01);
4313
- planes.push(/* @__PURE__ */ React24.createElement(PlaneGrid, { opacity: opacity2, key: i }));
4311
+ const currentOpacity = baseOpacity - i / (size - 1) * (baseOpacity - 0.05);
4312
+ planes.push(/* @__PURE__ */ React24.createElement(PlaneGrid, { opacity: currentOpacity, key: i }));
4314
4313
  }
4315
4314
  } else {
4316
4315
  for (let i = 0; i < size; i++) {
4317
- planes.push(/* @__PURE__ */ React24.createElement(PlaneGrid, { opacity: opacity2, key: i }));
4316
+ planes.push(/* @__PURE__ */ React24.createElement(PlaneGrid, { opacity: baseOpacity, key: i }));
4318
4317
  }
4319
4318
  }
4320
4319
  return /* @__PURE__ */ React24.createElement(Grid3, { container: true, alignItems: "center", flexDirection: direction, spacing: 3 }, planes);
@@ -4413,7 +4412,7 @@ var emailStyle = {
4413
4412
  marginTop: 8,
4414
4413
  marginBottom: 8
4415
4414
  };
4416
- function WavelengthPopUpMenu({ menuItems, customIcon, width: width2, menuDirection, color: color2, emailHoverColor }) {
4415
+ function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, menuDirection = "top", color: color2, emailHoverColor = "blue" }) {
4417
4416
  const NavLink = styled4.a``;
4418
4417
  const Links = styled4(NavLink)`
4419
4418
  color: inherit;
@@ -4550,13 +4549,13 @@ function WavelengthStandardSnackbar(props) {
4550
4549
  setShow(false);
4551
4550
  };
4552
4551
  const durationMs = props.durationSb ? props.durationSb * 1e3 : 4e3;
4553
- let bcckgrndColor = "";
4552
+ let bgColor = "";
4554
4553
  if (props.type == "success") {
4555
- bcckgrndColor = "#25ab21";
4554
+ bgColor = "#25ab21";
4556
4555
  } else if (props.type == "error") {
4557
- bcckgrndColor = "#FF4646";
4556
+ bgColor = "#FF4646";
4558
4557
  } else if (props.type == "disabled") {
4559
- bcckgrndColor = "#737373";
4558
+ bgColor = "#737373";
4560
4559
  }
4561
4560
  const sIcon = props.icon ? props.icon : "";
4562
4561
  return /* @__PURE__ */ React30.createElement(
@@ -4574,7 +4573,7 @@ function WavelengthStandardSnackbar(props) {
4574
4573
  SnackbarContent2,
4575
4574
  {
4576
4575
  style: {
4577
- backgroundColor: bcckgrndColor,
4576
+ backgroundColor: bgColor,
4578
4577
  borderRadius: "1px"
4579
4578
  //color: props.textColor ? props.textColor : palette.secondary,
4580
4579
  },