@wavelengthusaf/components 2.0.5 → 2.2.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/README.md +13 -1
- package/dist/components/PageComponents/NotAvailablePage.d.ts +2 -1
- package/dist/components/PageComponents/NotAvailablePage.d.ts.map +1 -1
- package/dist/components/PageComponents/WavelengthSideBar.d.ts +2 -1
- package/dist/components/PageComponents/WavelengthSideBar.d.ts.map +1 -1
- package/dist/components/PageComponents/WavelengthSpinningLogo.d.ts.map +1 -1
- package/dist/components/PageComponents/WavelengthSpinningLogoComponent.d.ts +2 -1
- package/dist/components/PageComponents/WavelengthSpinningLogoComponent.d.ts.map +1 -1
- package/dist/components/buttons/WavelengthDropdownButton/WavelengthAutocomplete.d.ts +2 -1
- package/dist/components/buttons/WavelengthDropdownButton/WavelengthAutocomplete.d.ts.map +1 -1
- package/dist/components/buttons/WavelengthFileDownloader.d.ts +2 -1
- package/dist/components/buttons/WavelengthFileDownloader.d.ts.map +1 -1
- package/dist/components/carousels/WavelengthDefaultCarousel.d.ts +20 -0
- package/dist/components/carousels/WavelengthDefaultCarousel.d.ts.map +1 -0
- package/dist/components/carousels/images.d.ts +8 -0
- package/dist/components/carousels/images.d.ts.map +1 -0
- package/dist/components/carousels/sliderCarousel.d.ts +19 -0
- package/dist/components/carousels/sliderCarousel.d.ts.map +1 -0
- package/dist/components/containers/WavelengthBox/WavelengthBox.d.ts +2 -1
- package/dist/components/containers/WavelengthBox/WavelengthBox.d.ts.map +1 -1
- package/dist/components/headers/WavelengthTitleBar/{WavelengthBannerHeader.d.ts → WavelengthBanner.d.ts} +5 -4
- package/dist/components/headers/WavelengthTitleBar/WavelengthBanner.d.ts.map +1 -0
- package/dist/components/headers/WavelengthTitleBar/WavelengthTitleBar.d.ts +4 -1
- package/dist/components/headers/WavelengthTitleBar/WavelengthTitleBar.d.ts.map +1 -1
- package/dist/components/logos/applogo/AppLogo.d.ts +2 -1
- package/dist/components/logos/applogo/AppLogo.d.ts.map +1 -1
- package/dist/components/modals/WavelengthConfirmationModal.d.ts +1 -0
- package/dist/components/modals/WavelengthConfirmationModal.d.ts.map +1 -1
- package/dist/components/modals/WavelengthDropdown.d.ts.map +1 -1
- package/dist/components/modals/WavelengthPopUpMenu.d.ts +2 -1
- package/dist/components/modals/WavelengthPopUpMenu.d.ts.map +1 -1
- package/dist/components/separators/WavelengthPlaneTrail/WavelengthPlaneTrail.d.ts +2 -1
- package/dist/components/separators/WavelengthPlaneTrail/WavelengthPlaneTrail.d.ts.map +1 -1
- package/dist/components/sliders/WavelengthSlider.d.ts +17 -0
- package/dist/components/sliders/WavelengthSlider.d.ts.map +1 -0
- package/dist/components/snackbars/WavelengthSnackbar.d.ts +2 -1
- package/dist/components/snackbars/WavelengthSnackbar.d.ts.map +1 -1
- package/dist/components/snackbars/WavelengthStandardSnackbar.d.ts +2 -1
- package/dist/components/snackbars/WavelengthStandardSnackbar.d.ts.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +234 -58
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/headers/WavelengthTitleBar/WavelengthBannerHeader.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -2810,7 +2810,7 @@ function findBestStringMatch(searchString, choices) {
|
|
|
2810
2810
|
}
|
|
2811
2811
|
return "";
|
|
2812
2812
|
}
|
|
2813
|
-
function WavelengthAutocomplete({ label, width: width2 = 300, variant = "outlined", items = [], onChange, borderColor: borderColor2, textColor, hoverColor }) {
|
|
2813
|
+
function WavelengthAutocomplete({ label, width: width2 = 300, variant = "outlined", items = [], onChange, borderColor: borderColor2, textColor, hoverColor, id }) {
|
|
2814
2814
|
const defaultItem = items.length > 0 ? items.sort()[0] : "";
|
|
2815
2815
|
const [selectedValue, setSelectedValue] = useState(defaultItem);
|
|
2816
2816
|
borderColor2 = borderColor2 ? borderColor2 : "#FFFFFF";
|
|
@@ -2819,6 +2819,7 @@ function WavelengthAutocomplete({ label, width: width2 = 300, variant = "outline
|
|
|
2819
2819
|
return /* @__PURE__ */ jsx3(Fragment2, { children: /* @__PURE__ */ jsx3(
|
|
2820
2820
|
Autocomplete,
|
|
2821
2821
|
{
|
|
2822
|
+
id,
|
|
2822
2823
|
sx: {
|
|
2823
2824
|
width: { width: width2 },
|
|
2824
2825
|
"& .MuiAutocomplete-popupIndicator": { color: borderColor2 },
|
|
@@ -2881,7 +2882,7 @@ function WavelengthAutocomplete({ label, width: width2 = 300, variant = "outline
|
|
|
2881
2882
|
// src/components/buttons/WavelengthFileDownloader.tsx
|
|
2882
2883
|
import DownloadIcon from "@mui/icons-material/Download";
|
|
2883
2884
|
import { Fragment as Fragment3, jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
2884
|
-
function WavelengthFileDownloader({ fileLoc, fileURL, fileName, button }) {
|
|
2885
|
+
function WavelengthFileDownloader({ fileLoc, fileURL, fileName, button, id }) {
|
|
2885
2886
|
if (fileLoc === "local") {
|
|
2886
2887
|
const onButtonClick = () => {
|
|
2887
2888
|
const pdfUrl = fileURL;
|
|
@@ -2893,11 +2894,11 @@ function WavelengthFileDownloader({ fileLoc, fileURL, fileName, button }) {
|
|
|
2893
2894
|
document.body.removeChild(link);
|
|
2894
2895
|
};
|
|
2895
2896
|
return /* @__PURE__ */ jsxs2(Fragment3, { children: [
|
|
2896
|
-
button === void 0 && /* @__PURE__ */ jsxs2(WavelengthButton, { variant: "outlined", onClick: onButtonClick, children: [
|
|
2897
|
+
button === void 0 && /* @__PURE__ */ jsxs2(WavelengthButton, { variant: "outlined", onClick: onButtonClick, id, children: [
|
|
2897
2898
|
fileName,
|
|
2898
2899
|
/* @__PURE__ */ jsx4(DownloadIcon, { sx: { marginLeft: "8px" } })
|
|
2899
2900
|
] }),
|
|
2900
|
-
/* @__PURE__ */ jsx4("div", { onClick: onButtonClick, children: button })
|
|
2901
|
+
/* @__PURE__ */ jsx4("div", { id, onClick: onButtonClick, children: button })
|
|
2901
2902
|
] });
|
|
2902
2903
|
}
|
|
2903
2904
|
}
|
|
@@ -2905,7 +2906,7 @@ function WavelengthFileDownloader({ fileLoc, fileURL, fileName, button }) {
|
|
|
2905
2906
|
// src/components/containers/WavelengthBox/WavelengthBox.tsx
|
|
2906
2907
|
import Grid from "@mui/material/Grid";
|
|
2907
2908
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
2908
|
-
function WavelengthBox({ width: width2, height: height2, children, borderBottomRadius, borderTopRadius }) {
|
|
2909
|
+
function WavelengthBox({ width: width2, height: height2, children, borderBottomRadius, borderTopRadius, id }) {
|
|
2909
2910
|
const palette2 = getPalette();
|
|
2910
2911
|
return /* @__PURE__ */ jsx5(
|
|
2911
2912
|
Grid,
|
|
@@ -2964,14 +2965,14 @@ function WavelengthContentPlaceholder({ type, width: width2, height: height2, tx
|
|
|
2964
2965
|
|
|
2965
2966
|
// src/components/logos/applogo/AppLogo.tsx
|
|
2966
2967
|
import { Fragment as Fragment4, jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
2967
|
-
function AppLogo({ width: width2, height: height2, name = "", grayscale }) {
|
|
2968
|
+
function AppLogo({ width: width2, height: height2, name = "", grayscale, id }) {
|
|
2968
2969
|
let logo;
|
|
2969
2970
|
{
|
|
2970
2971
|
}
|
|
2971
2972
|
let arg = "";
|
|
2972
2973
|
if (grayscale) arg = "grayscale(1)";
|
|
2973
2974
|
if (name.toLowerCase() === "wings") {
|
|
2974
|
-
logo = /* @__PURE__ */ jsxs3("svg", { width: width2, height: height2, viewBox: "0 0 34 31", fill: "none", xmlns: "http://www.w3.org/2000/svg", filter: arg, children: [
|
|
2975
|
+
logo = /* @__PURE__ */ jsxs3("svg", { width: width2, height: height2, viewBox: "0 0 34 31", fill: "none", xmlns: "http://www.w3.org/2000/svg", filter: arg, id, children: [
|
|
2975
2976
|
/* @__PURE__ */ jsx7("path", { d: "M2.36037 0.97998L6.42418 9.35366L0.397217 5.01932L2.36037 0.97998Z", fill: "#DEE8FF" }),
|
|
2976
2977
|
/* @__PURE__ */ jsx7("path", { d: "M0 5.67743L16.6372 17.6441L15.6441 20.6623L2.7805 11.4036L0 5.67743Z", fill: "#DEE8FF" }),
|
|
2977
2978
|
/* @__PURE__ */ jsx7("path", { d: "M3.4834 12.8559L6.2639 18.5821L10.2131 21.4263H15.3922L3.4834 12.8559Z", fill: "#DEE8FF" }),
|
|
@@ -2992,7 +2993,7 @@ function AppLogo({ width: width2, height: height2, name = "", grayscale }) {
|
|
|
2992
2993
|
";"
|
|
2993
2994
|
] });
|
|
2994
2995
|
} else if (name.toLowerCase() === "563rdpatch") {
|
|
2995
|
-
logo = /* @__PURE__ */ jsxs3("svg", { width: width2, height: height2, viewBox: "0 0 892 925", fill: "none", xmlns: "http://www.w3.org/2000/svg", filter: arg, children: [
|
|
2996
|
+
logo = /* @__PURE__ */ jsxs3("svg", { width: width2, height: height2, viewBox: "0 0 892 925", fill: "none", xmlns: "http://www.w3.org/2000/svg", filter: arg, id, children: [
|
|
2996
2997
|
/* @__PURE__ */ jsx7("path", { d: "M442 917C147.5 919.5 7 662 7 662L115.5 591.5L767 596.5L883.5 668C883.5 668 736.5 914.5 442 917Z", fill: "#7BAFD4" }),
|
|
2997
2998
|
/* @__PURE__ */ jsx7(
|
|
2998
2999
|
"path",
|
|
@@ -3209,7 +3210,7 @@ function AppLogo({ width: width2, height: height2, name = "", grayscale }) {
|
|
|
3209
3210
|
)
|
|
3210
3211
|
] });
|
|
3211
3212
|
} else if (name.toLowerCase() === "563rdlabel") {
|
|
3212
|
-
logo = /* @__PURE__ */ jsxs3("svg", { width: width2, height: height2, viewBox: "0 0 569 155", fill: "none", xmlns: "http://www.w3.org/2000/svg", filter: arg, children: [
|
|
3213
|
+
logo = /* @__PURE__ */ jsxs3("svg", { width: width2, height: height2, viewBox: "0 0 569 155", fill: "none", xmlns: "http://www.w3.org/2000/svg", filter: arg, id, children: [
|
|
3213
3214
|
/* @__PURE__ */ jsx7("mask", { id: "mask0_200_42", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "352", y: "30", width: "142", height: "95", children: /* @__PURE__ */ jsx7(
|
|
3214
3215
|
"path",
|
|
3215
3216
|
{
|
|
@@ -3244,7 +3245,7 @@ function AppLogo({ width: width2, height: height2, name = "", grayscale }) {
|
|
|
3244
3245
|
] }) })
|
|
3245
3246
|
] });
|
|
3246
3247
|
} else if (name.toLowerCase() === "arrow") {
|
|
3247
|
-
logo = /* @__PURE__ */ jsxs3("svg", { width: width2, height: height2, viewBox: "0 0 537 75", fill: "none", xmlns: "http://www.w3.org/2000/svg", filter: arg, children: [
|
|
3248
|
+
logo = /* @__PURE__ */ jsxs3("svg", { width: width2, height: height2, viewBox: "0 0 537 75", fill: "none", xmlns: "http://www.w3.org/2000/svg", filter: arg, id, children: [
|
|
3248
3249
|
/* @__PURE__ */ jsx7(
|
|
3249
3250
|
"path",
|
|
3250
3251
|
{
|
|
@@ -3300,7 +3301,7 @@ function AppLogo({ width: width2, height: height2, name = "", grayscale }) {
|
|
|
3300
3301
|
] }) })
|
|
3301
3302
|
] });
|
|
3302
3303
|
} else if (name.toLowerCase() === "channelone") {
|
|
3303
|
-
logo = /* @__PURE__ */ jsxs3("svg", { width: width2, height: height2, viewBox: "0 0 600 600", fill: "none", xmlns: "http://www.w3.org/2000/svg", filter: arg, children: [
|
|
3304
|
+
logo = /* @__PURE__ */ jsxs3("svg", { width: width2, height: height2, viewBox: "0 0 600 600", fill: "none", xmlns: "http://www.w3.org/2000/svg", filter: arg, id, children: [
|
|
3304
3305
|
/* @__PURE__ */ jsxs3("g", { clipPath: "url(#clip0_287_202)", children: [
|
|
3305
3306
|
/* @__PURE__ */ jsx7(
|
|
3306
3307
|
"path",
|
|
@@ -3322,7 +3323,7 @@ function AppLogo({ width: width2, height: height2, name = "", grayscale }) {
|
|
|
3322
3323
|
/* @__PURE__ */ jsx7("defs", { children: /* @__PURE__ */ jsx7("clipPath", { id: "clip0_287_202", children: /* @__PURE__ */ jsx7("rect", { width: "600.8", height: "600.8", fill: "white" }) }) })
|
|
3323
3324
|
] });
|
|
3324
3325
|
} else if (name.toLowerCase() === "swarm") {
|
|
3325
|
-
logo = /* @__PURE__ */ jsxs3("svg", { width: width2, height: height2, viewBox: "0 0 281 281", fill: "none", xmlns: "http://www.w3.org/2000/svg", filter: arg, children: [
|
|
3326
|
+
logo = /* @__PURE__ */ jsxs3("svg", { width: width2, height: height2, viewBox: "0 0 281 281", fill: "none", xmlns: "http://www.w3.org/2000/svg", filter: arg, id, children: [
|
|
3326
3327
|
/* @__PURE__ */ jsx7("circle", { cx: "140.5", cy: "140.5", r: "140.5", fill: "#13151F" }),
|
|
3327
3328
|
/* @__PURE__ */ jsx7(
|
|
3328
3329
|
"path",
|
|
@@ -3379,7 +3380,7 @@ function AppLogo({ width: width2, height: height2, name = "", grayscale }) {
|
|
|
3379
3380
|
] })
|
|
3380
3381
|
] });
|
|
3381
3382
|
} else if (name.toLowerCase() === "wavelengthw") {
|
|
3382
|
-
logo = /* @__PURE__ */ jsxs3("svg", { width: width2, height: height2, viewBox: "0 0 829 515", fill: "none", xmlns: "http://www.w3.org/2000/svg", filter: arg, children: [
|
|
3383
|
+
logo = /* @__PURE__ */ jsxs3("svg", { width: width2, height: height2, viewBox: "0 0 829 515", fill: "none", xmlns: "http://www.w3.org/2000/svg", filter: arg, id, children: [
|
|
3383
3384
|
/* @__PURE__ */ jsx7("mask", { id: "mask0_164_43", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "830", height: "515", children: /* @__PURE__ */ jsx7(
|
|
3384
3385
|
"path",
|
|
3385
3386
|
{
|
|
@@ -3412,12 +3413,12 @@ var AppLogo_default = AppLogo;
|
|
|
3412
3413
|
|
|
3413
3414
|
// src/components/PageComponents/NotAvailablePage.tsx
|
|
3414
3415
|
import { Fragment as Fragment5, jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
3415
|
-
function NotAvailablePage({ appLogoName, errorMessage, backgroundColor: backgroundColor2, buttonText, redirectLink, buttonColorOne, buttonColorTwo }) {
|
|
3416
|
+
function NotAvailablePage({ appLogoName, errorMessage, backgroundColor: backgroundColor2, buttonText, redirectLink, buttonColorOne, buttonColorTwo, id }) {
|
|
3416
3417
|
backgroundColor2 = backgroundColor2 ? backgroundColor2 : "gray";
|
|
3417
3418
|
appLogoName = appLogoName ? appLogoName : "563rdpatch";
|
|
3418
3419
|
buttonColorOne = buttonColorOne ? buttonColorOne : "white";
|
|
3419
3420
|
buttonColorTwo = buttonColorTwo ? buttonColorTwo : "#0D5288";
|
|
3420
|
-
return /* @__PURE__ */ jsx8(Fragment5, { children: /* @__PURE__ */ jsxs4("div", { style: { display: "flex", backgroundColor: backgroundColor2, flexDirection: "column", alignItems: "center", height: "100%", justifyContent: "center", gap: 55, padding: "8%" }, children: [
|
|
3421
|
+
return /* @__PURE__ */ jsx8(Fragment5, { children: /* @__PURE__ */ jsxs4("div", { id, style: { display: "flex", backgroundColor: backgroundColor2, flexDirection: "column", alignItems: "center", height: "100%", justifyContent: "center", gap: 55, padding: "8%" }, children: [
|
|
3421
3422
|
/* @__PURE__ */ jsx8(AppLogo_default, { name: appLogoName, width: 300, height: 200, grayscale: true }),
|
|
3422
3423
|
/* @__PURE__ */ jsxs4("div", { style: { display: "flex", flexDirection: "column", alignItems: "center" }, children: [
|
|
3423
3424
|
/* @__PURE__ */ jsx8("p", { style: { textAlign: "center", marginBottom: 45, fontSize: 40, color: "white" }, children: `${errorMessage}` }),
|
|
@@ -3528,6 +3529,7 @@ function WavelengthSearch({
|
|
|
3528
3529
|
return /* @__PURE__ */ jsx10(Fragment6, { children: /* @__PURE__ */ jsx10(
|
|
3529
3530
|
Autocomplete2,
|
|
3530
3531
|
{
|
|
3532
|
+
id,
|
|
3531
3533
|
filterOptions: (x) => x,
|
|
3532
3534
|
loading: true,
|
|
3533
3535
|
disableListWrap: true,
|
|
@@ -3552,7 +3554,6 @@ function WavelengthSearch({
|
|
|
3552
3554
|
{
|
|
3553
3555
|
placeholder,
|
|
3554
3556
|
...params,
|
|
3555
|
-
id,
|
|
3556
3557
|
size,
|
|
3557
3558
|
InputProps: {
|
|
3558
3559
|
...params.InputProps,
|
|
@@ -3593,6 +3594,7 @@ function WavelengthSearch({
|
|
|
3593
3594
|
return /* @__PURE__ */ jsx10(Fragment6, { children: /* @__PURE__ */ jsx10(
|
|
3594
3595
|
Autocomplete2,
|
|
3595
3596
|
{
|
|
3597
|
+
id,
|
|
3596
3598
|
filterOptions: (x) => x,
|
|
3597
3599
|
loading: true,
|
|
3598
3600
|
disableListWrap: true,
|
|
@@ -3617,7 +3619,6 @@ function WavelengthSearch({
|
|
|
3617
3619
|
{
|
|
3618
3620
|
placeholder,
|
|
3619
3621
|
...params,
|
|
3620
|
-
id,
|
|
3621
3622
|
size,
|
|
3622
3623
|
InputProps: {
|
|
3623
3624
|
...params.InputProps,
|
|
@@ -3659,6 +3660,7 @@ function WavelengthSearch({
|
|
|
3659
3660
|
return /* @__PURE__ */ jsx10(Fragment6, { children: /* @__PURE__ */ jsx10(
|
|
3660
3661
|
Autocomplete2,
|
|
3661
3662
|
{
|
|
3663
|
+
id,
|
|
3662
3664
|
filterOptions: (x) => x,
|
|
3663
3665
|
loading: true,
|
|
3664
3666
|
freeSolo: true,
|
|
@@ -3690,7 +3692,6 @@ function WavelengthSearch({
|
|
|
3690
3692
|
}
|
|
3691
3693
|
},
|
|
3692
3694
|
...params,
|
|
3693
|
-
id,
|
|
3694
3695
|
size,
|
|
3695
3696
|
InputProps: {
|
|
3696
3697
|
...params.InputProps,
|
|
@@ -3741,6 +3742,7 @@ function WavelengthSearch({
|
|
|
3741
3742
|
return /* @__PURE__ */ jsx10(Fragment6, { children: /* @__PURE__ */ jsx10(
|
|
3742
3743
|
Autocomplete2,
|
|
3743
3744
|
{
|
|
3745
|
+
id,
|
|
3744
3746
|
filterOptions: (x) => x,
|
|
3745
3747
|
loading: true,
|
|
3746
3748
|
freeSolo: true,
|
|
@@ -3772,7 +3774,6 @@ function WavelengthSearch({
|
|
|
3772
3774
|
}
|
|
3773
3775
|
},
|
|
3774
3776
|
...params,
|
|
3775
|
-
id,
|
|
3776
3777
|
size,
|
|
3777
3778
|
InputProps: {
|
|
3778
3779
|
...params.InputProps,
|
|
@@ -3824,6 +3825,7 @@ function WavelengthSearch({
|
|
|
3824
3825
|
return /* @__PURE__ */ jsx10(Fragment6, { children: /* @__PURE__ */ jsx10(
|
|
3825
3826
|
Autocomplete2,
|
|
3826
3827
|
{
|
|
3828
|
+
id,
|
|
3827
3829
|
filterOptions: (x) => x,
|
|
3828
3830
|
loading: true,
|
|
3829
3831
|
disableListWrap: true,
|
|
@@ -3849,7 +3851,6 @@ function WavelengthSearch({
|
|
|
3849
3851
|
{
|
|
3850
3852
|
placeholder,
|
|
3851
3853
|
...params,
|
|
3852
|
-
id,
|
|
3853
3854
|
size,
|
|
3854
3855
|
InputProps: {
|
|
3855
3856
|
...params.InputProps,
|
|
@@ -3890,6 +3891,7 @@ function WavelengthSearch({
|
|
|
3890
3891
|
return /* @__PURE__ */ jsx10(Fragment6, { children: /* @__PURE__ */ jsx10(
|
|
3891
3892
|
Autocomplete2,
|
|
3892
3893
|
{
|
|
3894
|
+
id,
|
|
3893
3895
|
filterOptions: (x) => x,
|
|
3894
3896
|
loading: true,
|
|
3895
3897
|
freeSolo: true,
|
|
@@ -3921,7 +3923,6 @@ function WavelengthSearch({
|
|
|
3921
3923
|
}
|
|
3922
3924
|
},
|
|
3923
3925
|
...params,
|
|
3924
|
-
id,
|
|
3925
3926
|
size,
|
|
3926
3927
|
InputProps: {
|
|
3927
3928
|
...params.InputProps,
|
|
@@ -3995,9 +3996,8 @@ import ListItem2 from "@mui/material/ListItem";
|
|
|
3995
3996
|
import Typography from "@mui/material/Typography";
|
|
3996
3997
|
import Collapse from "@mui/material/Collapse";
|
|
3997
3998
|
import List from "@mui/material/List";
|
|
3998
|
-
import Box from "@mui/material/Box";
|
|
3999
3999
|
import { jsx as jsx12, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
4000
|
-
function WavelengthSideBar({ sections, txtColor, bgColor, labelColor, arrowColor, marginTop, marginLeft, width: width2 = 240, height: height2 = 300 }) {
|
|
4000
|
+
function WavelengthSideBar({ sections, txtColor, bgColor, labelColor, arrowColor, marginTop, marginLeft, width: width2 = 240, height: height2 = 300, id }) {
|
|
4001
4001
|
const [openSections, setOpenSections] = useState2({});
|
|
4002
4002
|
const navigate = useNavigate();
|
|
4003
4003
|
const palette2 = getPalette();
|
|
@@ -4008,9 +4008,10 @@ function WavelengthSideBar({ sections, txtColor, bgColor, labelColor, arrowColor
|
|
|
4008
4008
|
}));
|
|
4009
4009
|
}
|
|
4010
4010
|
return /* @__PURE__ */ jsx12(
|
|
4011
|
-
|
|
4011
|
+
"div",
|
|
4012
4012
|
{
|
|
4013
|
-
|
|
4013
|
+
id,
|
|
4014
|
+
style: {
|
|
4014
4015
|
width: width2,
|
|
4015
4016
|
minHeight: 300,
|
|
4016
4017
|
height: height2,
|
|
@@ -4113,11 +4114,11 @@ var WavelengthSpinningLogo_default = WavelengthSpinningOuterCircle;
|
|
|
4113
4114
|
|
|
4114
4115
|
// src/components/PageComponents/WavelengthSpinningLogoComponent.tsx
|
|
4115
4116
|
import { Fragment as Fragment8, jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
4116
|
-
function WavelengthSpinningLogo({ svg = /* @__PURE__ */ jsx14("span", { children: "SVG Goes Here" }), size = 200 }) {
|
|
4117
|
+
function WavelengthSpinningLogo({ svg = /* @__PURE__ */ jsx14("span", { children: "SVG Goes Here" }), size = 200, id = "loading" }) {
|
|
4117
4118
|
const loadingSymbol = /* @__PURE__ */ jsx14(Fragment8, { children: /* @__PURE__ */ jsxs8(
|
|
4118
4119
|
"div",
|
|
4119
4120
|
{
|
|
4120
|
-
id
|
|
4121
|
+
id,
|
|
4121
4122
|
style: {
|
|
4122
4123
|
width: size,
|
|
4123
4124
|
height: size,
|
|
@@ -4153,13 +4154,13 @@ function WavelengthSpinningLogo({ svg = /* @__PURE__ */ jsx14("span", { children
|
|
|
4153
4154
|
}
|
|
4154
4155
|
|
|
4155
4156
|
// src/components/footers/WavelengthFooter/WavelengthFooter.tsx
|
|
4156
|
-
import
|
|
4157
|
+
import Box from "@mui/material/Box";
|
|
4157
4158
|
import Container from "@mui/material/Container";
|
|
4158
4159
|
import Grid2 from "@mui/material/Grid";
|
|
4159
4160
|
import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
4160
4161
|
function WavelengthFooter() {
|
|
4161
4162
|
return /* @__PURE__ */ jsx15(
|
|
4162
|
-
|
|
4163
|
+
Box,
|
|
4163
4164
|
{
|
|
4164
4165
|
sx: {
|
|
4165
4166
|
width: "100%",
|
|
@@ -4194,8 +4195,8 @@ function WavelengthFooter() {
|
|
|
4194
4195
|
|
|
4195
4196
|
// src/components/headers/WavelengthTitleBar/WavelengthTitleBar.tsx
|
|
4196
4197
|
import { Fragment as Fragment9, jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
4197
|
-
function WavelengthTitleBar() {
|
|
4198
|
-
return /* @__PURE__ */ jsx16(Fragment9, { children: /* @__PURE__ */ jsx16("div", { children: /* @__PURE__ */ jsxs10("svg", { width: "431", height: "122", viewBox: "0 0 431 92", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
4198
|
+
function WavelengthTitleBar({ id }) {
|
|
4199
|
+
return /* @__PURE__ */ jsx16(Fragment9, { children: /* @__PURE__ */ jsx16("div", { id, children: /* @__PURE__ */ jsxs10("svg", { width: "431", height: "122", viewBox: "0 0 431 92", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
4199
4200
|
/* @__PURE__ */ jsx16(
|
|
4200
4201
|
"path",
|
|
4201
4202
|
{
|
|
@@ -4223,9 +4224,9 @@ function WavelengthTitleBar() {
|
|
|
4223
4224
|
] }) }) });
|
|
4224
4225
|
}
|
|
4225
4226
|
|
|
4226
|
-
// src/components/headers/WavelengthTitleBar/
|
|
4227
|
+
// src/components/headers/WavelengthTitleBar/WavelengthBanner.tsx
|
|
4227
4228
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
4228
|
-
function
|
|
4229
|
+
function WavelengthBanner({ classification, control, headerColor, textColor, id }) {
|
|
4229
4230
|
const palette2 = getPalette();
|
|
4230
4231
|
if (classification === "unclassified") {
|
|
4231
4232
|
if (control && control.includes("cui")) {
|
|
@@ -4268,7 +4269,7 @@ function WavelengthBannerHeader({ classification, control, headerColor, textColo
|
|
|
4268
4269
|
classification = `${classification}/${control[i]}`;
|
|
4269
4270
|
}
|
|
4270
4271
|
}
|
|
4271
|
-
return /* @__PURE__ */ jsx17("div", { style: { width: "100%", backgroundColor: headerColor }, children: /* @__PURE__ */ jsx17("p", { style: { width: "100%", color: textColor, textAlign: "center" }, children: classification.toUpperCase() }) });
|
|
4272
|
+
return /* @__PURE__ */ jsx17("div", { style: { width: "100%", backgroundColor: headerColor }, id, children: /* @__PURE__ */ jsx17("p", { style: { width: "100%", color: textColor, textAlign: "center" }, children: classification.toUpperCase() }) });
|
|
4272
4273
|
}
|
|
4273
4274
|
|
|
4274
4275
|
// src/components/CSFD/ManyPlanes.tsx
|
|
@@ -4317,7 +4318,7 @@ function ManyPlanesComponent({ numberOfPlanes = 5, trailDir = "left", color: col
|
|
|
4317
4318
|
import Divider from "@mui/material/Divider";
|
|
4318
4319
|
import Grid4 from "@mui/material/Grid";
|
|
4319
4320
|
import { jsx as jsx19, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
4320
|
-
function WavelengthPlaneTrail({ trailDir = "right" }) {
|
|
4321
|
+
function WavelengthPlaneTrail({ trailDir = "right", id }) {
|
|
4321
4322
|
let direction = "row-reverse";
|
|
4322
4323
|
let flippy = "";
|
|
4323
4324
|
if (trailDir !== "right") {
|
|
@@ -4329,7 +4330,7 @@ function WavelengthPlaneTrail({ trailDir = "right" }) {
|
|
|
4329
4330
|
}
|
|
4330
4331
|
const palette2 = getPalette();
|
|
4331
4332
|
return /* @__PURE__ */ jsxs12(Grid4, { container: true, alignItems: "center", flexDirection: direction, children: [
|
|
4332
|
-
/* @__PURE__ */ jsx19(Grid4, { item: true, id
|
|
4333
|
+
/* @__PURE__ */ jsx19(Grid4, { item: true, id, children: /* @__PURE__ */ jsxs12("svg", { width: "40", height: "40", viewBox: "0 0 40 40", transform: flippy, fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
4333
4334
|
/* @__PURE__ */ jsx19("mask", { id: "mask0_56_851", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "40", height: "40", children: /* @__PURE__ */ jsx19("rect", { x: "40", width: "40", height: "40", transform: "rotate(90 40 0)", fill: "#D9D9D9" }) }),
|
|
4334
4335
|
/* @__PURE__ */ jsx19("g", { mask: "url(#mask0_56_851)", children: /* @__PURE__ */ jsx19(
|
|
4335
4336
|
"path",
|
|
@@ -4347,11 +4348,11 @@ function WavelengthPlaneTrail({ trailDir = "right" }) {
|
|
|
4347
4348
|
import { Button as Button3, Dialog, DialogActions, DialogTitle, DialogContent, Typography as Typography2 } from "@mui/material";
|
|
4348
4349
|
import { jsx as jsx20, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
4349
4350
|
function WavelengthConfirmationModal(props) {
|
|
4350
|
-
const { show, setShow, handleConfirmationModalOnConfirmProp } = props;
|
|
4351
|
+
const { show, setShow, handleConfirmationModalOnConfirmProp, id } = props;
|
|
4351
4352
|
const handleClose = () => {
|
|
4352
4353
|
setShow(false);
|
|
4353
4354
|
};
|
|
4354
|
-
return /* @__PURE__ */ jsxs13(Dialog, { "data-testid": "testId-WavelengthConfirmationModal", open: show, onClose: handleClose, "aria-labelledby": "alert-dialog-title", "aria-describedby": "alert-dialog-description", children: [
|
|
4355
|
+
return /* @__PURE__ */ jsxs13(Dialog, { id, "data-testid": "testId-WavelengthConfirmationModal", open: show, onClose: handleClose, "aria-labelledby": "alert-dialog-title", "aria-describedby": "alert-dialog-description", children: [
|
|
4355
4356
|
/* @__PURE__ */ jsx20(DialogTitle, { alignContent: `center`, id: "alert-dialog-title", children: props.textObj?.title }),
|
|
4356
4357
|
/* @__PURE__ */ jsx20(DialogContent, { children: /* @__PURE__ */ jsx20(Typography2, { align: "center", children: props.textObj?.dialog }) }),
|
|
4357
4358
|
/* @__PURE__ */ jsxs13(DialogActions, { style: { justifyContent: `center` }, children: [
|
|
@@ -4365,7 +4366,7 @@ function WavelengthConfirmationModal(props) {
|
|
|
4365
4366
|
}
|
|
4366
4367
|
|
|
4367
4368
|
// src/components/modals/WavelengthContentModal.tsx
|
|
4368
|
-
import { Button as Button4, Dialog as Dialog2, DialogActions as DialogActions2, DialogTitle as DialogTitle2, DialogContent as DialogContent2, Typography as Typography3, IconButton as IconButton2, Box as
|
|
4369
|
+
import { Button as Button4, Dialog as Dialog2, DialogActions as DialogActions2, DialogTitle as DialogTitle2, DialogContent as DialogContent2, Typography as Typography3, IconButton as IconButton2, Box as Box2 } from "@mui/material";
|
|
4369
4370
|
import CloseIcon from "@mui/icons-material/Close";
|
|
4370
4371
|
import { jsx as jsx21, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
4371
4372
|
function WavelengthContentModal(props) {
|
|
@@ -4374,9 +4375,9 @@ function WavelengthContentModal(props) {
|
|
|
4374
4375
|
setShow(false);
|
|
4375
4376
|
};
|
|
4376
4377
|
return /* @__PURE__ */ jsxs14(Dialog2, { "data-testid": "testId-WavelengthContentModal", open: show, onClose: handleClose, "aria-labelledby": "alert-dialog-title", "aria-describedby": "alert-dialog-description", children: [
|
|
4377
|
-
/* @__PURE__ */ jsx21(DialogTitle2, { alignContent: `center`, id: "alert-dialog-title", children: /* @__PURE__ */ jsxs14(
|
|
4378
|
-
/* @__PURE__ */ jsx21(
|
|
4379
|
-
/* @__PURE__ */ jsx21(
|
|
4378
|
+
/* @__PURE__ */ jsx21(DialogTitle2, { alignContent: `center`, id: "alert-dialog-title", children: /* @__PURE__ */ jsxs14(Box2, { display: "flex", alignItems: "center", children: [
|
|
4379
|
+
/* @__PURE__ */ jsx21(Box2, { flexGrow: 1, children: props.textObj?.title }),
|
|
4380
|
+
/* @__PURE__ */ jsx21(Box2, { children: /* @__PURE__ */ jsx21(IconButton2, { onClick: handleClose, children: /* @__PURE__ */ jsx21(CloseIcon, {}) }) })
|
|
4380
4381
|
] }) }),
|
|
4381
4382
|
/* @__PURE__ */ jsx21(DialogContent2, { children: /* @__PURE__ */ jsx21(Typography3, { align: "center", children: props.textObj?.dialog }) }),
|
|
4382
4383
|
/* @__PURE__ */ jsx21(DialogActions2, { style: { justifyContent: `center` }, children: /* @__PURE__ */ jsx21(Button4, { "data-testid": "testId-WavelengthContentModalConfirmButton", onClick: handleContentModalOnConfirmProp, color: "primary", variant: "contained", autoFocus: true, children: props.textObj?.purpose }) })
|
|
@@ -4387,7 +4388,7 @@ function WavelengthContentModal(props) {
|
|
|
4387
4388
|
import React4 from "react";
|
|
4388
4389
|
import Menu from "@mui/material/Menu";
|
|
4389
4390
|
import MenuItem from "@mui/material/MenuItem";
|
|
4390
|
-
import
|
|
4391
|
+
import Box3 from "@mui/material/Box";
|
|
4391
4392
|
import Slide from "@mui/material/Slide";
|
|
4392
4393
|
import { HelpOutline } from "@mui/icons-material";
|
|
4393
4394
|
import styled4 from "styled-components";
|
|
@@ -4401,7 +4402,7 @@ var emailStyle = {
|
|
|
4401
4402
|
marginTop: 8,
|
|
4402
4403
|
marginBottom: 8
|
|
4403
4404
|
};
|
|
4404
|
-
function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, menuDirection = "top", color: color2, emailHoverColor = "blue" }) {
|
|
4405
|
+
function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, menuDirection = "top", color: color2, emailHoverColor = "blue", id }) {
|
|
4405
4406
|
const NavLink = styled4.a``;
|
|
4406
4407
|
const Links = styled4(NavLink)`
|
|
4407
4408
|
color: inherit;
|
|
@@ -4436,6 +4437,7 @@ function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, men
|
|
|
4436
4437
|
/* @__PURE__ */ jsxs15(
|
|
4437
4438
|
Menu,
|
|
4438
4439
|
{
|
|
4440
|
+
id,
|
|
4439
4441
|
open,
|
|
4440
4442
|
sx: { width: width2 },
|
|
4441
4443
|
onClose: handleClose,
|
|
@@ -4448,35 +4450,35 @@ function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, men
|
|
|
4448
4450
|
if (items.end === true) {
|
|
4449
4451
|
if (items.itemType === "header") {
|
|
4450
4452
|
if (items.link) {
|
|
4451
|
-
return /* @__PURE__ */ jsxs15(
|
|
4453
|
+
return /* @__PURE__ */ jsxs15(Box3, { children: [
|
|
4452
4454
|
/* @__PURE__ */ jsx22(MenuItem, { children: /* @__PURE__ */ jsx22("a", { style: { textDecoration: "!important", color: "inherit" }, href: items.link, children: /* @__PURE__ */ jsx22("span", { style: { fontWeight: "bold" }, children: items.label }) }) }),
|
|
4453
4455
|
/* @__PURE__ */ jsx22(Divider2, {})
|
|
4454
4456
|
] }, index);
|
|
4455
4457
|
} else {
|
|
4456
|
-
return /* @__PURE__ */ jsxs15(
|
|
4458
|
+
return /* @__PURE__ */ jsxs15(Box3, { children: [
|
|
4457
4459
|
/* @__PURE__ */ jsx22("p", { style: { marginLeft: 16, marginRight: 16, marginTop: 6, marginBottom: 6 }, children: /* @__PURE__ */ jsx22("span", { style: { fontWeight: "bold" }, children: items.label }) }),
|
|
4458
4460
|
/* @__PURE__ */ jsx22(Divider2, {})
|
|
4459
4461
|
] }, index);
|
|
4460
4462
|
}
|
|
4461
4463
|
} else if (items.itemType === "link") {
|
|
4462
|
-
return /* @__PURE__ */ jsxs15(
|
|
4464
|
+
return /* @__PURE__ */ jsxs15(Box3, { children: [
|
|
4463
4465
|
/* @__PURE__ */ jsx22(MenuItem, { children: /* @__PURE__ */ jsx22("a", { style: { textDecoration: "!important", color: "inherit" }, href: items.link, children: items.label }) }),
|
|
4464
4466
|
/* @__PURE__ */ jsx22(Divider2, {})
|
|
4465
4467
|
] }, index);
|
|
4466
4468
|
} else {
|
|
4467
4469
|
if (items.link) {
|
|
4468
|
-
return /* @__PURE__ */ jsxs15(
|
|
4470
|
+
return /* @__PURE__ */ jsxs15(Box3, { children: [
|
|
4469
4471
|
/* @__PURE__ */ jsx22(MenuItem, { children: /* @__PURE__ */ jsx22("a", { style: { textDecoration: "!important", color: "inherit" }, href: items.link, children: items.label }) }),
|
|
4470
4472
|
/* @__PURE__ */ jsx22(Divider2, {})
|
|
4471
4473
|
] }, index);
|
|
4472
4474
|
} else {
|
|
4473
4475
|
if (items.email) {
|
|
4474
|
-
return /* @__PURE__ */ jsxs15(
|
|
4476
|
+
return /* @__PURE__ */ jsxs15(Box3, { children: [
|
|
4475
4477
|
/* @__PURE__ */ jsx22(Links, { href: items.email, style: emailStyle, children: items.label }),
|
|
4476
4478
|
/* @__PURE__ */ jsx22(Divider2, {})
|
|
4477
4479
|
] }, index);
|
|
4478
4480
|
} else {
|
|
4479
|
-
return /* @__PURE__ */ jsxs15(
|
|
4481
|
+
return /* @__PURE__ */ jsxs15(Box3, { children: [
|
|
4480
4482
|
/* @__PURE__ */ jsx22("p", { style: customStyle, children: items.label }),
|
|
4481
4483
|
/* @__PURE__ */ jsx22(Divider2, {})
|
|
4482
4484
|
] }, index);
|
|
@@ -4585,8 +4587,6 @@ function WavelengthDropdown({ id, options, buttonSx, width: width2, buttonText,
|
|
|
4585
4587
|
backgroundColor: `${myMenusx.backgroundColor}`
|
|
4586
4588
|
},
|
|
4587
4589
|
"& .MuiMenu-list": {
|
|
4588
|
-
// paddingTop: "6px",
|
|
4589
|
-
// paddingBottom: "6px",
|
|
4590
4590
|
borderBottomLeftRadius: "8px",
|
|
4591
4591
|
borderBottomRightRadius: "8px",
|
|
4592
4592
|
borderLeft: `1px solid ${myMenusx.borderColor}`,
|
|
@@ -4624,7 +4624,7 @@ import SnackbarContent from "@mui/material/SnackbarContent";
|
|
|
4624
4624
|
import CloseIcon2 from "@mui/icons-material/Close";
|
|
4625
4625
|
import { IconButton as IconButton4 } from "@mui/material";
|
|
4626
4626
|
import { jsx as jsx24, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
4627
|
-
function WavelengthSnackbar({ show, setShow, closeIcon, message, snackBarColor, textColor, horryAlign, vertyAlign, durationSb, width: width2, icon }) {
|
|
4627
|
+
function WavelengthSnackbar({ show, setShow, closeIcon, message, snackBarColor, textColor, horryAlign, vertyAlign, durationSb, width: width2, icon, id }) {
|
|
4628
4628
|
const handleClose = () => {
|
|
4629
4629
|
setShow(false);
|
|
4630
4630
|
};
|
|
@@ -4634,6 +4634,7 @@ function WavelengthSnackbar({ show, setShow, closeIcon, message, snackBarColor,
|
|
|
4634
4634
|
return /* @__PURE__ */ jsx24(
|
|
4635
4635
|
Snackbar,
|
|
4636
4636
|
{
|
|
4637
|
+
id,
|
|
4637
4638
|
open: show,
|
|
4638
4639
|
onClose: handleClose,
|
|
4639
4640
|
autoHideDuration: durationMs,
|
|
@@ -4665,7 +4666,7 @@ function WavelengthSnackbar({ show, setShow, closeIcon, message, snackBarColor,
|
|
|
4665
4666
|
import Snackbar2 from "@mui/material/Snackbar";
|
|
4666
4667
|
import SnackbarContent2 from "@mui/material/SnackbarContent";
|
|
4667
4668
|
import { jsx as jsx25, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
4668
|
-
function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign, durationSb, width: width2, message, customVertyAlign, toggleShow, closeIcon }) {
|
|
4669
|
+
function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign, durationSb, width: width2, message, customVertyAlign, toggleShow, closeIcon, id }) {
|
|
4669
4670
|
const handleClose = () => {
|
|
4670
4671
|
toggleShow(false);
|
|
4671
4672
|
};
|
|
@@ -4682,6 +4683,7 @@ function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign,
|
|
|
4682
4683
|
return /* @__PURE__ */ jsx25(
|
|
4683
4684
|
Snackbar2,
|
|
4684
4685
|
{
|
|
4686
|
+
id,
|
|
4685
4687
|
sx: { marginTop: customVertyAlign ? `${customVertyAlign}` : "", zIndex: 1400 },
|
|
4686
4688
|
open: show,
|
|
4687
4689
|
onClose: handleClose,
|
|
@@ -4723,7 +4725,7 @@ function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign,
|
|
|
4723
4725
|
}
|
|
4724
4726
|
|
|
4725
4727
|
// src/components/snackbars/TestSnackbar.tsx
|
|
4726
|
-
import
|
|
4728
|
+
import Box4 from "@mui/material/Box";
|
|
4727
4729
|
import Button5 from "@mui/material/Button";
|
|
4728
4730
|
import { useEffect, useRef as useRef2 } from "react";
|
|
4729
4731
|
import { Fragment as Fragment12, jsx as jsx26, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
@@ -4757,7 +4759,7 @@ function TestSnackbar({ isPopUpOpen, toggleOpen, type, message, customVertyAlign
|
|
|
4757
4759
|
bgColor = "#737373";
|
|
4758
4760
|
}
|
|
4759
4761
|
return /* @__PURE__ */ jsx26(Fragment12, { children: isPopUpOpen && /* @__PURE__ */ jsxs19(
|
|
4760
|
-
|
|
4762
|
+
Box4,
|
|
4761
4763
|
{
|
|
4762
4764
|
sx: { position: "fixed", right: "auto", top: "24px", left: "50%", transform: "translateX(-50%)" },
|
|
4763
4765
|
ref,
|
|
@@ -4791,17 +4793,190 @@ function TestSnackbar({ isPopUpOpen, toggleOpen, type, message, customVertyAlign
|
|
|
4791
4793
|
}
|
|
4792
4794
|
) });
|
|
4793
4795
|
}
|
|
4796
|
+
|
|
4797
|
+
// src/components/sliders/WavelengthSlider.tsx
|
|
4798
|
+
import Box5 from "@mui/material/Box";
|
|
4799
|
+
import Slider from "@mui/material/Slider";
|
|
4800
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
4801
|
+
function WavelengthSlider({ width: width2 = "300px", color: color2, valueDisplayed, marks, labelColor, value, maxVal = 100, minVal, step = 1, labelFunc, handleChange }) {
|
|
4802
|
+
const on = valueDisplayed ? "on" : "off";
|
|
4803
|
+
return /* @__PURE__ */ jsx27(Box5, { sx: { width: width2 }, children: /* @__PURE__ */ jsx27(
|
|
4804
|
+
Slider,
|
|
4805
|
+
{
|
|
4806
|
+
"aria-label": "Custom marks",
|
|
4807
|
+
value,
|
|
4808
|
+
getAriaValueText: labelFunc,
|
|
4809
|
+
step,
|
|
4810
|
+
marks,
|
|
4811
|
+
valueLabelDisplay: on,
|
|
4812
|
+
max: maxVal,
|
|
4813
|
+
min: minVal,
|
|
4814
|
+
onChange: handleChange,
|
|
4815
|
+
sx: {
|
|
4816
|
+
color: color2,
|
|
4817
|
+
"& .MuiSlider-markLabel": {
|
|
4818
|
+
color: labelColor
|
|
4819
|
+
}
|
|
4820
|
+
}
|
|
4821
|
+
}
|
|
4822
|
+
) });
|
|
4823
|
+
}
|
|
4824
|
+
|
|
4825
|
+
// src/components/carousels/WavelengthDefaultCarousel.tsx
|
|
4826
|
+
import { useState as useState3 } from "react";
|
|
4827
|
+
import IconButton5 from "@mui/material/IconButton";
|
|
4828
|
+
import NavigateBeforeIcon from "@mui/icons-material/NavigateBefore";
|
|
4829
|
+
import NavigateNextIcon from "@mui/icons-material/NavigateNext";
|
|
4830
|
+
import Typography4 from "@mui/material/Typography";
|
|
4831
|
+
import Grid5 from "@mui/material/Grid";
|
|
4832
|
+
import Card from "@mui/material/Card";
|
|
4833
|
+
import CardContent from "@mui/material/CardContent";
|
|
4834
|
+
import CardMedia from "@mui/material/CardMedia";
|
|
4835
|
+
import CardActionArea from "@mui/material/CardActionArea";
|
|
4836
|
+
import { jsx as jsx28, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4837
|
+
var DefaultCarousel = ({ items, buttonSize, imageHeight, imageWidth, cardHeight, cardWidth }) => {
|
|
4838
|
+
const [currentIndex, setCurrentIndex] = useState3(0);
|
|
4839
|
+
const adjustButtonSize = buttonSize !== void 0 ? buttonSize : 70;
|
|
4840
|
+
const adjustImageHeight = imageHeight !== void 0 ? imageHeight : 250;
|
|
4841
|
+
const adjustImageWidth = imageWidth !== void 0 ? imageWidth : 300;
|
|
4842
|
+
const adjustCardHeight = cardHeight !== void 0 ? cardHeight : 345;
|
|
4843
|
+
const adjustCardWidth = cardWidth !== void 0 ? cardWidth : 300;
|
|
4844
|
+
const handleNext = () => {
|
|
4845
|
+
setCurrentIndex((prevIndex) => (prevIndex + 1) % items.length);
|
|
4846
|
+
};
|
|
4847
|
+
const handlePrev = () => {
|
|
4848
|
+
setCurrentIndex((prevIndex) => (prevIndex - 1 + items.length) % items.length);
|
|
4849
|
+
};
|
|
4850
|
+
const handleClick = () => {
|
|
4851
|
+
window.open(items[currentIndex].path, "_blank");
|
|
4852
|
+
};
|
|
4853
|
+
return /* @__PURE__ */ jsx28("div", { children: /* @__PURE__ */ jsx28("div", { children: /* @__PURE__ */ jsxs20(
|
|
4854
|
+
Grid5,
|
|
4855
|
+
{
|
|
4856
|
+
container: true,
|
|
4857
|
+
spacing: 1,
|
|
4858
|
+
sx: {
|
|
4859
|
+
alignItems: "center"
|
|
4860
|
+
},
|
|
4861
|
+
children: [
|
|
4862
|
+
/* @__PURE__ */ jsx28("div", { children: /* @__PURE__ */ jsx28(IconButton5, { onClick: handlePrev, sx: { margin: 1, color: "white" }, children: /* @__PURE__ */ jsx28(NavigateBeforeIcon, { style: { fontSize: adjustButtonSize } }) }) }),
|
|
4863
|
+
/* @__PURE__ */ jsx28(
|
|
4864
|
+
Card,
|
|
4865
|
+
{
|
|
4866
|
+
sx: {
|
|
4867
|
+
maxWidth: adjustCardWidth,
|
|
4868
|
+
maxHeight: adjustCardHeight
|
|
4869
|
+
},
|
|
4870
|
+
children: /* @__PURE__ */ jsxs20(CardActionArea, { onClick: handleClick, children: [
|
|
4871
|
+
/* @__PURE__ */ jsx28(CardMedia, { sx: { height: adjustImageHeight, width: adjustImageWidth }, image: items[currentIndex].image }),
|
|
4872
|
+
/* @__PURE__ */ jsxs20(CardContent, { children: [
|
|
4873
|
+
/* @__PURE__ */ jsx28(Typography4, { variant: "h4", children: items[currentIndex].title }),
|
|
4874
|
+
/* @__PURE__ */ jsx28(Typography4, { variant: "body1", children: items[currentIndex].description })
|
|
4875
|
+
] })
|
|
4876
|
+
] })
|
|
4877
|
+
}
|
|
4878
|
+
),
|
|
4879
|
+
/* @__PURE__ */ jsx28("div", { children: /* @__PURE__ */ jsx28(IconButton5, { onClick: handleNext, sx: { margin: 1, color: "white" }, children: /* @__PURE__ */ jsx28(NavigateNextIcon, { style: { fontSize: adjustButtonSize } }) }) })
|
|
4880
|
+
]
|
|
4881
|
+
}
|
|
4882
|
+
) }) });
|
|
4883
|
+
};
|
|
4884
|
+
|
|
4885
|
+
// src/components/carousels/sliderCarousel.tsx
|
|
4886
|
+
import { useState as useState4, useEffect as useEffect3 } from "react";
|
|
4887
|
+
import Grid6 from "@mui/material/Grid";
|
|
4888
|
+
import Card2 from "@mui/material/Card";
|
|
4889
|
+
import CardContent2 from "@mui/material/CardContent";
|
|
4890
|
+
import CardMedia2 from "@mui/material/CardMedia";
|
|
4891
|
+
import CardActionArea2 from "@mui/material/CardActionArea";
|
|
4892
|
+
import { jsx as jsx29, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4893
|
+
var delay = 2500;
|
|
4894
|
+
var SliderCardCarousel = ({ items, cardHeight, cardWidth, contHeight, contWidth }) => {
|
|
4895
|
+
const [index, setIndex] = useState4(0);
|
|
4896
|
+
const [isHovered, setIsHovered] = useState4(false);
|
|
4897
|
+
useEffect3(() => {
|
|
4898
|
+
setTimeout(() => setIndex((prevIndex) => prevIndex === items.length - 1 ? 0 : prevIndex + 1), delay);
|
|
4899
|
+
return () => {
|
|
4900
|
+
};
|
|
4901
|
+
}, [index]);
|
|
4902
|
+
const carouselCardWidth = items.length > 0 ? `calc(35% * ${items.length})` : "200%";
|
|
4903
|
+
const adjustContHeight = contHeight !== void 0 ? contHeight : "100%";
|
|
4904
|
+
const adjustContWidth = contWidth !== void 0 ? contWidth : "200%";
|
|
4905
|
+
const adjustCardHeight = cardHeight !== void 0 ? cardHeight : 120;
|
|
4906
|
+
const adjustCardWith = cardWidth !== void 0 ? cardWidth : 310;
|
|
4907
|
+
const styles = {
|
|
4908
|
+
carouselcontainer: {
|
|
4909
|
+
overflow: "hidden",
|
|
4910
|
+
position: "relative",
|
|
4911
|
+
borderColor: "#4b5563",
|
|
4912
|
+
height: adjustContHeight,
|
|
4913
|
+
width: adjustContWidth,
|
|
4914
|
+
minHeight: "280px",
|
|
4915
|
+
minWidth: "640px",
|
|
4916
|
+
borderRadius: "10px"
|
|
4917
|
+
},
|
|
4918
|
+
carouselTrackStyle: {
|
|
4919
|
+
display: "flex",
|
|
4920
|
+
position: "relative",
|
|
4921
|
+
justifyContent: "center",
|
|
4922
|
+
left: "0",
|
|
4923
|
+
alignItems: "center",
|
|
4924
|
+
gap: "5px",
|
|
4925
|
+
width: carouselCardWidth,
|
|
4926
|
+
height: "100%",
|
|
4927
|
+
transition: "background-color 0.5s ease-in-out"
|
|
4928
|
+
},
|
|
4929
|
+
carouselCard: {
|
|
4930
|
+
transition: "transform 0.3s ease, box-shadow 0.3s ease",
|
|
4931
|
+
transform: isHovered ? "scale(0.9)" : "scale(1)",
|
|
4932
|
+
boxShadow: isHovered ? "5px 5px 8px rgba(222, 222, 222, 0.362), 10px 10px 8px rgba(152, 133, 133, 0.392), 15px 15px 8px rgba(139, 154, 139, 0.303)" : "none"
|
|
4933
|
+
}
|
|
4934
|
+
};
|
|
4935
|
+
return /* @__PURE__ */ jsx29("div", { style: styles.carouselcontainer, children: /* @__PURE__ */ jsx29("div", { className: "my-animation", style: styles.carouselTrackStyle, children: /* @__PURE__ */ jsx29(
|
|
4936
|
+
Grid6,
|
|
4937
|
+
{
|
|
4938
|
+
sx: {
|
|
4939
|
+
display: "flex",
|
|
4940
|
+
justifyContent: "center",
|
|
4941
|
+
alignItems: "center"
|
|
4942
|
+
},
|
|
4943
|
+
container: true,
|
|
4944
|
+
spacing: 0.5,
|
|
4945
|
+
children: items.map((card) => /* @__PURE__ */ jsx29("div", { children: /* @__PURE__ */ jsx29(
|
|
4946
|
+
Card2,
|
|
4947
|
+
{
|
|
4948
|
+
sx: {
|
|
4949
|
+
transition: "transform 0.3s ease, box-shadow 0.3s ease",
|
|
4950
|
+
transform: isHovered ? "scale(0.9)" : "scale(1)",
|
|
4951
|
+
boxShadow: isHovered ? "5px 5px 8px rgba(222, 222, 222, 0.362), 10px 10px 8px rgba(152, 133, 133, 0.392), 15px 15px 8px rgba(139, 154, 139, 0.303)" : "none"
|
|
4952
|
+
},
|
|
4953
|
+
onMouseEnter: () => setIsHovered(true),
|
|
4954
|
+
onMouseLeave: () => setIsHovered(false),
|
|
4955
|
+
children: /* @__PURE__ */ jsxs21(CardActionArea2, { href: card.path, children: [
|
|
4956
|
+
/* @__PURE__ */ jsx29(CardMedia2, { sx: { height: adjustCardHeight, width: adjustCardWith }, image: card.image }),
|
|
4957
|
+
/* @__PURE__ */ jsxs21(CardContent2, { children: [
|
|
4958
|
+
/* @__PURE__ */ jsx29("h3", { children: card.title }),
|
|
4959
|
+
/* @__PURE__ */ jsx29("p", { children: card.description })
|
|
4960
|
+
] })
|
|
4961
|
+
] })
|
|
4962
|
+
}
|
|
4963
|
+
) }, card.title))
|
|
4964
|
+
}
|
|
4965
|
+
) }) });
|
|
4966
|
+
};
|
|
4794
4967
|
export {
|
|
4795
4968
|
AppLogo,
|
|
4796
4969
|
ButtonIcon,
|
|
4797
4970
|
ButtonMenu,
|
|
4971
|
+
DefaultCarousel,
|
|
4798
4972
|
ManyPlanesComponent,
|
|
4799
4973
|
NotAvailablePage,
|
|
4800
4974
|
SearchTextField,
|
|
4975
|
+
SliderCardCarousel,
|
|
4801
4976
|
TestSnackbar,
|
|
4802
4977
|
WavelengthAppTheme,
|
|
4803
4978
|
WavelengthAutocomplete,
|
|
4804
|
-
|
|
4979
|
+
WavelengthBanner,
|
|
4805
4980
|
WavelengthBox,
|
|
4806
4981
|
WavelengthButton,
|
|
4807
4982
|
WavelengthConfirmationModal,
|
|
@@ -4816,6 +4991,7 @@ export {
|
|
|
4816
4991
|
WavelengthPopUpMenu,
|
|
4817
4992
|
WavelengthSearch,
|
|
4818
4993
|
WavelengthSideBar,
|
|
4994
|
+
WavelengthSlider,
|
|
4819
4995
|
WavelengthSnackbar,
|
|
4820
4996
|
WavelengthSpinningLogo,
|
|
4821
4997
|
WavelengthSpinningOuterCircle,
|
|
@@ -4880,7 +5056,7 @@ react-is/cjs/react-is.development.js:
|
|
|
4880
5056
|
|
|
4881
5057
|
@mui/styled-engine/index.js:
|
|
4882
5058
|
(**
|
|
4883
|
-
* @mui/styled-engine v5.16.
|
|
5059
|
+
* @mui/styled-engine v5.16.14
|
|
4884
5060
|
*
|
|
4885
5061
|
* @license MIT
|
|
4886
5062
|
* This source code is licensed under the MIT license found in the
|