@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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -250,7 +250,7 @@ interface PopUPMenuProps {
|
|
|
250
250
|
width?: string;
|
|
251
251
|
menuDirection?: "top" | "bottom";
|
|
252
252
|
color?: string;
|
|
253
|
-
emailHoverColor?: string
|
|
253
|
+
emailHoverColor?: string;
|
|
254
254
|
}
|
|
255
255
|
declare function WavelengthPopUpMenu({ menuItems, customIcon, width, menuDirection, color, emailHoverColor }: PopUPMenuProps): React__default.JSX.Element;
|
|
256
256
|
|
package/dist/index.d.ts
CHANGED
|
@@ -250,7 +250,7 @@ interface PopUPMenuProps {
|
|
|
250
250
|
width?: string;
|
|
251
251
|
menuDirection?: "top" | "bottom";
|
|
252
252
|
color?: string;
|
|
253
|
-
emailHoverColor?: string
|
|
253
|
+
emailHoverColor?: string;
|
|
254
254
|
}
|
|
255
255
|
declare function WavelengthPopUpMenu({ menuItems, customIcon, width, menuDirection, color, emailHoverColor }: PopUPMenuProps): React__default.JSX.Element;
|
|
256
256
|
|
package/dist/index.js
CHANGED
|
@@ -4332,38 +4332,37 @@ function DefaultIcon({ width: width2 = "180", height: height2 = 140 }) {
|
|
|
4332
4332
|
// src/components/CSFD/ManyPlanes.tsx
|
|
4333
4333
|
var import_react28 = __toESM(require("react"));
|
|
4334
4334
|
var import_material8 = require("@mui/material");
|
|
4335
|
-
function ManyPlanesComponent({ numberOfPlanes, trailDir, color: color2, opacity, gradient }) {
|
|
4335
|
+
function ManyPlanesComponent({ numberOfPlanes = 5, trailDir = "left", color: color2, opacity = 1, gradient = false }) {
|
|
4336
4336
|
let direction = "row-reverse";
|
|
4337
4337
|
let planeDir = "planeR";
|
|
4338
4338
|
let flippy = "";
|
|
4339
4339
|
const palette2 = getPalette();
|
|
4340
4340
|
const colorish = color2 ? color2 : palette2.primary;
|
|
4341
|
-
if (trailDir
|
|
4341
|
+
if (trailDir !== "right") {
|
|
4342
4342
|
direction = "row";
|
|
4343
4343
|
planeDir = "planeL";
|
|
4344
4344
|
flippy = "rotate(180)";
|
|
4345
4345
|
}
|
|
4346
4346
|
const PlaneGrid = ({ opacity: opacity2 }) => {
|
|
4347
|
-
return /* @__PURE__ */ import_react28.default.createElement(import_material8.Grid, { item: true
|
|
4347
|
+
return /* @__PURE__ */ import_react28.default.createElement(import_material8.Grid, { item: true }, /* @__PURE__ */ import_react28.default.createElement("svg", { width: "40", height: "40", viewBox: "0 0 40 40", transform: flippy, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ import_react28.default.createElement("mask", { id: "mask0_56_851", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "40", height: "40" }, /* @__PURE__ */ import_react28.default.createElement("rect", { x: "40", width: "40", height: "40", transform: "rotate(90 40 0)", fill: "#D9D9D9" })), /* @__PURE__ */ import_react28.default.createElement("g", { mask: "url(#mask0_56_851)" }, /* @__PURE__ */ import_react28.default.createElement(
|
|
4348
4348
|
"path",
|
|
4349
4349
|
{
|
|
4350
4350
|
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",
|
|
4351
|
-
|
|
4351
|
+
fillOpacity: opacity2,
|
|
4352
4352
|
fill: colorish
|
|
4353
4353
|
}
|
|
4354
4354
|
))));
|
|
4355
4355
|
};
|
|
4356
|
-
const PlaneGridWrapper = (size
|
|
4356
|
+
const PlaneGridWrapper = (size, baseOpacity) => {
|
|
4357
4357
|
const planes = [];
|
|
4358
|
-
const oppie = opacity2 ? opacity2 : 1;
|
|
4359
4358
|
if (gradient) {
|
|
4360
4359
|
for (let i = 0; i < size; i++) {
|
|
4361
|
-
|
|
4362
|
-
planes.push(/* @__PURE__ */ import_react28.default.createElement(PlaneGrid, { opacity:
|
|
4360
|
+
const currentOpacity = baseOpacity - i / (size - 1) * (baseOpacity - 0.05);
|
|
4361
|
+
planes.push(/* @__PURE__ */ import_react28.default.createElement(PlaneGrid, { opacity: currentOpacity, key: i }));
|
|
4363
4362
|
}
|
|
4364
4363
|
} else {
|
|
4365
4364
|
for (let i = 0; i < size; i++) {
|
|
4366
|
-
planes.push(/* @__PURE__ */ import_react28.default.createElement(PlaneGrid, { opacity:
|
|
4365
|
+
planes.push(/* @__PURE__ */ import_react28.default.createElement(PlaneGrid, { opacity: baseOpacity, key: i }));
|
|
4367
4366
|
}
|
|
4368
4367
|
}
|
|
4369
4368
|
return /* @__PURE__ */ import_react28.default.createElement(import_material8.Grid, { container: true, alignItems: "center", flexDirection: direction, spacing: 3 }, planes);
|
|
@@ -4453,7 +4452,7 @@ var emailStyle = {
|
|
|
4453
4452
|
marginTop: 8,
|
|
4454
4453
|
marginBottom: 8
|
|
4455
4454
|
};
|
|
4456
|
-
function WavelengthPopUpMenu({ menuItems, customIcon, width: width2, menuDirection, color: color2, emailHoverColor }) {
|
|
4455
|
+
function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, menuDirection = "top", color: color2, emailHoverColor = "blue" }) {
|
|
4457
4456
|
const NavLink = import_styled_components.default.a``;
|
|
4458
4457
|
const Links = (0, import_styled_components.default)(NavLink)`
|
|
4459
4458
|
color: inherit;
|
|
@@ -4590,13 +4589,13 @@ function WavelengthStandardSnackbar(props) {
|
|
|
4590
4589
|
setShow(false);
|
|
4591
4590
|
};
|
|
4592
4591
|
const durationMs = props.durationSb ? props.durationSb * 1e3 : 4e3;
|
|
4593
|
-
let
|
|
4592
|
+
let bgColor = "";
|
|
4594
4593
|
if (props.type == "success") {
|
|
4595
|
-
|
|
4594
|
+
bgColor = "#25ab21";
|
|
4596
4595
|
} else if (props.type == "error") {
|
|
4597
|
-
|
|
4596
|
+
bgColor = "#FF4646";
|
|
4598
4597
|
} else if (props.type == "disabled") {
|
|
4599
|
-
|
|
4598
|
+
bgColor = "#737373";
|
|
4600
4599
|
}
|
|
4601
4600
|
const sIcon = props.icon ? props.icon : "";
|
|
4602
4601
|
return /* @__PURE__ */ import_react34.default.createElement(
|
|
@@ -4614,7 +4613,7 @@ function WavelengthStandardSnackbar(props) {
|
|
|
4614
4613
|
import_SnackbarContent.default,
|
|
4615
4614
|
{
|
|
4616
4615
|
style: {
|
|
4617
|
-
backgroundColor:
|
|
4616
|
+
backgroundColor: bgColor,
|
|
4618
4617
|
borderRadius: "1px"
|
|
4619
4618
|
//color: props.textColor ? props.textColor : palette.secondary,
|
|
4620
4619
|
},
|