@wavelengthusaf/components 4.13.0 → 4.15.0

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/esm/index.js CHANGED
@@ -206,7 +206,7 @@ var require_react_is_development = __commonJS({
206
206
  var ContextProvider = REACT_PROVIDER_TYPE;
207
207
  var Element = REACT_ELEMENT_TYPE;
208
208
  var ForwardRef2 = REACT_FORWARD_REF_TYPE;
209
- var Fragment16 = REACT_FRAGMENT_TYPE;
209
+ var Fragment15 = REACT_FRAGMENT_TYPE;
210
210
  var Lazy = REACT_LAZY_TYPE;
211
211
  var Memo2 = REACT_MEMO_TYPE;
212
212
  var Portal = REACT_PORTAL_TYPE;
@@ -265,7 +265,7 @@ var require_react_is_development = __commonJS({
265
265
  exports.ContextProvider = ContextProvider;
266
266
  exports.Element = Element;
267
267
  exports.ForwardRef = ForwardRef2;
268
- exports.Fragment = Fragment16;
268
+ exports.Fragment = Fragment15;
269
269
  exports.Lazy = Lazy;
270
270
  exports.Memo = Memo2;
271
271
  exports.Portal = Portal;
@@ -3728,7 +3728,7 @@ WavelengthExampleComponent.displayName = "WavelengthExampleComponent";
3728
3728
  import { useRef as useRef2, useEffect as useEffect2 } from "react";
3729
3729
  import { jsx as jsx8 } from "react/jsx-runtime";
3730
3730
  var WavelengthSearch = ({
3731
- customStyle: customStyle2,
3731
+ customStyle,
3732
3732
  width: width2,
3733
3733
  mode,
3734
3734
  fontSize,
@@ -3761,7 +3761,7 @@ var WavelengthSearch = ({
3761
3761
  useEffect2(() => {
3762
3762
  const el = ref.current;
3763
3763
  if (!el) return;
3764
- el.customStyles = customStyle2;
3764
+ el.customStyles = customStyle;
3765
3765
  syncAttribute("width", width2);
3766
3766
  syncAttribute("mode", mode);
3767
3767
  syncAttribute("font-size", fontSize);
@@ -3779,7 +3779,7 @@ var WavelengthSearch = ({
3779
3779
  syncAttribute("input-color", inputColor);
3780
3780
  syncAttribute("input-font", inputFont);
3781
3781
  }, [
3782
- customStyle2,
3782
+ customStyle,
3783
3783
  width2,
3784
3784
  mode,
3785
3785
  fontSize,
@@ -5162,14 +5162,14 @@ var WavelengthBadge = ({
5162
5162
  textBoxHoverBorderColor,
5163
5163
  item,
5164
5164
  children,
5165
- customStyle: customStyle2,
5165
+ customStyle,
5166
5166
  ...rest
5167
5167
  }) => {
5168
5168
  const ref = useRef8(null);
5169
5169
  useEffect8(() => {
5170
5170
  const el = ref.current;
5171
5171
  if (!el) return;
5172
- el.customStyles = customStyle2;
5172
+ el.customStyles = customStyle;
5173
5173
  const updateAttribute = (attr, value) => {
5174
5174
  if (value !== void 0 && value !== null && value !== "") {
5175
5175
  el.setAttribute(attr, value.toString());
@@ -5213,7 +5213,7 @@ var WavelengthBadge = ({
5213
5213
  textBoxBorderRadius,
5214
5214
  textBoxHoverBorderColor,
5215
5215
  item,
5216
- customStyle2
5216
+ customStyle
5217
5217
  ]);
5218
5218
  return /* @__PURE__ */ jsxs15("wavelength-badge", { ref, ...rest, children: [
5219
5219
  badgeContent !== void 0 && /* @__PURE__ */ jsx25("span", { slot: "badge", children: badgeContent }),
@@ -5526,7 +5526,7 @@ var WavelengthPlaneTrail = ({
5526
5526
  id,
5527
5527
  children,
5528
5528
  // Style argument
5529
- customStyle: customStyle2,
5529
+ customStyle,
5530
5530
  ...rest
5531
5531
  // This rest operator includes className, style, onClick, etc.
5532
5532
  }) => {
@@ -5534,8 +5534,8 @@ var WavelengthPlaneTrail = ({
5534
5534
  useEffect13(() => {
5535
5535
  const el = ref.current;
5536
5536
  if (!el) return;
5537
- if (customStyle2 !== void 0) {
5538
- el.customStyles = customStyle2;
5537
+ if (customStyle !== void 0) {
5538
+ el.customStyles = customStyle;
5539
5539
  }
5540
5540
  if (trailDir !== void 0) {
5541
5541
  el.setAttribute("trailDir", trailDir);
@@ -5547,53 +5547,55 @@ var WavelengthPlaneTrail = ({
5547
5547
  el.setAttribute("id", id);
5548
5548
  }
5549
5549
  }, [trailDir]);
5550
- return /* @__PURE__ */ jsx32("wavelength-planetrail", { ref, trailDir, color: color2, id, customStyle: customStyle2, ...rest, children });
5550
+ return /* @__PURE__ */ jsx32("wavelength-planetrail", { ref, trailDir, color: color2, id, customStyle, ...rest, children });
5551
5551
  };
5552
5552
  WavelengthPlaneTrail.displayName = "WavelengthPlaneTrail";
5553
5553
 
5554
5554
  // src/components/modals/WavelengthConfirmationModal.tsx
5555
- import { Modal, Box as Box2 } from "@mui/material";
5555
+ import { useEffect as useEffect14, useRef as useRef14 } from "react";
5556
5556
  import { jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
5557
5557
  function WavelengthConfirmationModal(props) {
5558
5558
  const { show, setShow, id, name } = props;
5559
- const handleClose = () => {
5560
- setShow(false);
5561
- };
5562
- return /* @__PURE__ */ jsx33(Modal, { open: show, onClose: handleClose, children: /* @__PURE__ */ jsxs18(
5563
- Box2,
5559
+ const modalRef = useRef14(null);
5560
+ useEffect14(() => {
5561
+ const handleClose = () => {
5562
+ setShow(false);
5563
+ };
5564
+ const currentModal = modalRef.current;
5565
+ if (currentModal) {
5566
+ currentModal.addEventListener("close", handleClose);
5567
+ }
5568
+ return () => {
5569
+ if (currentModal) {
5570
+ currentModal.removeEventListener("close", handleClose);
5571
+ }
5572
+ };
5573
+ }, [setShow]);
5574
+ return /* @__PURE__ */ jsxs18(
5575
+ "wavelength-confirmation-modal",
5564
5576
  {
5565
- sx: {
5566
- position: "absolute",
5567
- top: "50%",
5568
- left: "50%",
5569
- transform: "translate(-50%, -50%)",
5570
- width: props.width || "451px",
5571
- // Custom width
5572
- height: props.height || "256px",
5573
- // Custom height
5574
- boxSizing: "border-box",
5575
- bgcolor: props.backgroundColor || "background.paper",
5576
- borderRadius: "16px",
5577
- color: props.textColor || "black",
5578
- boxShadow: 24,
5579
- padding: "32px",
5580
- overflow: "scroll"
5581
- },
5577
+ ref: modalRef,
5578
+ show: show ? "true" : void 0,
5579
+ "modal-id": id,
5580
+ "modal-name": name,
5581
+ width: props.width,
5582
+ height: props.height,
5583
+ "font-family": props.fontFamily,
5584
+ "text-color": props.textColor,
5585
+ "background-color": props.backgroundColor,
5586
+ "title-text": props.textObj?.title,
5587
+ "dialog-text": props.textObj?.dialog,
5582
5588
  children: [
5583
- /* @__PURE__ */ jsx33("p", { style: { margin: "0px", fontSize: "28px", fontWeight: 500, padding: "0px", marginBottom: "16px", fontFamily: props.fontFamily }, children: props.textObj?.title }),
5584
- /* @__PURE__ */ jsx33("p", { style: { margin: "0px", fontSize: "16px", lineHeight: "19.2px", fontFamily: props.fontFamily, fontWeight: 400, height: "60px" }, children: props.textObj?.dialog }),
5585
- /* @__PURE__ */ jsxs18("div", { style: { display: "flex", flexDirection: "row", justifyContent: "flex-end", marginTop: "40px", gap: "8px" }, children: [
5586
- props.cancelButton,
5587
- props.submitButton
5588
- ] })
5589
+ props.cancelButton && /* @__PURE__ */ jsx33("div", { slot: "cancel-button", style: { display: "contents" }, children: props.cancelButton }),
5590
+ props.submitButton && /* @__PURE__ */ jsx33("div", { slot: "submit-button", style: { display: "contents" }, children: props.submitButton })
5589
5591
  ]
5590
5592
  }
5591
- ) });
5593
+ );
5592
5594
  }
5593
5595
  WavelengthConfirmationModal.displayName = "WavelengthConfirmationModal";
5594
5596
 
5595
5597
  // src/components/modals/WavelengthContentModal.tsx
5596
- import { Button as Button3, Dialog, DialogActions, DialogTitle, DialogContent, Typography as Typography3, IconButton as IconButton3, Box as Box3 } from "@mui/material";
5598
+ import { Button as Button3, Dialog, DialogActions, DialogTitle, DialogContent, Typography as Typography3, IconButton as IconButton3, Box as Box2 } from "@mui/material";
5597
5599
  import CloseIcon from "@mui/icons-material/Close";
5598
5600
  import { jsx as jsx34, jsxs as jsxs19 } from "react/jsx-runtime";
5599
5601
  function WavelengthContentModal(props) {
@@ -5602,9 +5604,9 @@ function WavelengthContentModal(props) {
5602
5604
  setShow(false);
5603
5605
  };
5604
5606
  return /* @__PURE__ */ jsxs19(Dialog, { "data-testid": "testId-WavelengthContentModal", open: show, onClose: handleClose, "aria-labelledby": "alert-dialog-title", "aria-describedby": "alert-dialog-description", id: props.id, children: [
5605
- /* @__PURE__ */ jsx34(DialogTitle, { alignContent: `center`, id: "alert-dialog-title", children: /* @__PURE__ */ jsxs19(Box3, { display: "flex", alignItems: "center", children: [
5606
- /* @__PURE__ */ jsx34(Box3, { flexGrow: 1, children: props.textObj?.title }),
5607
- /* @__PURE__ */ jsx34(Box3, { children: /* @__PURE__ */ jsx34(IconButton3, { onClick: handleClose, children: /* @__PURE__ */ jsx34(CloseIcon, {}) }) })
5607
+ /* @__PURE__ */ jsx34(DialogTitle, { alignContent: `center`, id: "alert-dialog-title", children: /* @__PURE__ */ jsxs19(Box2, { display: "flex", alignItems: "center", children: [
5608
+ /* @__PURE__ */ jsx34(Box2, { flexGrow: 1, children: props.textObj?.title }),
5609
+ /* @__PURE__ */ jsx34(Box2, { children: /* @__PURE__ */ jsx34(IconButton3, { onClick: handleClose, children: /* @__PURE__ */ jsx34(CloseIcon, {}) }) })
5608
5610
  ] }) }),
5609
5611
  /* @__PURE__ */ jsx34(DialogContent, { children: /* @__PURE__ */ jsx34(Typography3, { align: "center", children: props.textObj?.dialog }) }),
5610
5612
  /* @__PURE__ */ jsx34(DialogActions, { style: { justifyContent: `center` }, children: /* @__PURE__ */ jsx34(Button3, { "data-testid": "testId-WavelengthContentModalConfirmButton", onClick: handleContentModalOnConfirmProp, color: "primary", variant: "contained", autoFocus: true, children: props.textObj?.purpose }) })
@@ -5613,141 +5615,39 @@ function WavelengthContentModal(props) {
5613
5615
  WavelengthContentModal.displayName = "WavelengthContentModal";
5614
5616
 
5615
5617
  // src/components/modals/WavelengthPopUpMenu.tsx
5616
- import React16 from "react";
5617
- import Menu from "@mui/material/Menu";
5618
- import MenuItem from "@mui/material/MenuItem";
5619
- import Box4 from "@mui/material/Box";
5620
- import Slide from "@mui/material/Slide";
5621
- import { HelpOutline } from "@mui/icons-material";
5622
- import styled5 from "styled-components";
5623
- import IconButton4 from "@mui/material/IconButton";
5624
- import Divider from "@mui/material/Divider";
5625
- import { Fragment as Fragment10, jsx as jsx35, jsxs as jsxs20 } from "react/jsx-runtime";
5626
- var customStyle = { marginLeft: 16, marginRight: 16, marginTop: 8, marginBottom: 8 };
5627
- var emailStyle = {
5628
- marginLeft: 16,
5629
- marginRight: 16,
5630
- marginTop: 8,
5631
- marginBottom: 8
5632
- };
5633
- function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, menuDirection = "top", color: color2, id, border: border2 }) {
5634
- const Links = styled5.a`
5635
- color: inherit;
5636
- text-decoration: none;
5637
-
5638
- &:hover,
5639
- &:focus {
5640
- color: ${({ hoverColor }) => hoverColor || "inherit"};
5641
- }
5642
- &:active {
5643
- color: ${({ hoverColor }) => hoverColor || "inherit"};
5644
- }
5645
- `;
5646
- const [anchorEl, setAnchorEl] = React16.useState(null);
5647
- const open = Boolean(anchorEl);
5648
- let icon;
5649
- const handleClick = (event) => {
5650
- setAnchorEl(event.currentTarget);
5651
- };
5652
- const handleClose = () => {
5653
- setAnchorEl(null);
5654
- };
5655
- if (customIcon) {
5656
- icon = customIcon;
5657
- } else {
5658
- icon = /* @__PURE__ */ jsx35(HelpOutline, { fontSize: "medium", sx: { color: color2 } });
5659
- }
5660
- const anchor = menuDirection === "top" || menuDirection === void 0 ? "top" : "bottom";
5661
- const transform = menuDirection === "top" || menuDirection === void 0 ? "bottom" : "top";
5662
- return /* @__PURE__ */ jsxs20(Fragment10, { children: [
5663
- /* @__PURE__ */ jsx35(IconButton4, { onClick: handleClick, children: icon }),
5664
- /* @__PURE__ */ jsxs20(
5665
- Menu,
5666
- {
5667
- id,
5668
- open,
5669
- sx: {
5670
- width: width2,
5671
- "& .MuiPaper-root": {
5672
- border: border2
5673
- }
5674
- },
5675
- onClose: handleClose,
5676
- anchorEl,
5677
- TransitionComponent: Slide,
5678
- anchorOrigin: { vertical: anchor, horizontal: "center" },
5679
- transformOrigin: { vertical: transform, horizontal: "center" },
5680
- children: [
5681
- ...menuItems.map((items, index) => {
5682
- if (items.end === true) {
5683
- if (items.itemType === "header") {
5684
- if (items.link) {
5685
- return /* @__PURE__ */ jsxs20(Box4, { children: [
5686
- /* @__PURE__ */ jsx35(MenuItem, { children: /* @__PURE__ */ jsx35("a", { style: { textDecoration: "none", color: "inherit" }, href: items.link, children: /* @__PURE__ */ jsx35("span", { style: { fontWeight: "bold" }, children: items.label }) }) }),
5687
- /* @__PURE__ */ jsx35(Divider, {})
5688
- ] }, index);
5689
- } else {
5690
- return /* @__PURE__ */ jsxs20(Box4, { children: [
5691
- /* @__PURE__ */ jsx35("p", { style: { marginLeft: 16, marginRight: 16, marginTop: 6, marginBottom: 6 }, children: /* @__PURE__ */ jsx35("span", { style: { fontWeight: "bold" }, children: items.label }) }),
5692
- /* @__PURE__ */ jsx35(Divider, {})
5693
- ] }, index);
5694
- }
5695
- } else if (items.itemType === "link") {
5696
- return /* @__PURE__ */ jsxs20(Box4, { children: [
5697
- /* @__PURE__ */ jsx35(MenuItem, { children: /* @__PURE__ */ jsx35(Links, { href: items.link, hoverColor: items.hoverColor, children: items.label }, index) }),
5698
- /* @__PURE__ */ jsx35(Divider, {})
5699
- ] }, index);
5700
- } else {
5701
- if (items.link) {
5702
- return /* @__PURE__ */ jsxs20(Box4, { children: [
5703
- /* @__PURE__ */ jsx35(MenuItem, { children: /* @__PURE__ */ jsx35("a", { style: { textDecoration: "none", color: "inherit" }, href: items.link, children: items.label }) }),
5704
- /* @__PURE__ */ jsx35(Divider, {})
5705
- ] }, index);
5706
- } else {
5707
- if (items.email) {
5708
- return /* @__PURE__ */ jsxs20(Box4, { children: [
5709
- /* @__PURE__ */ jsx35(Links, { href: items.email, style: emailStyle, children: items.label }),
5710
- /* @__PURE__ */ jsx35(Divider, {})
5711
- ] }, index);
5712
- } else {
5713
- return /* @__PURE__ */ jsxs20(Box4, { children: [
5714
- /* @__PURE__ */ jsx35("p", { style: customStyle, children: items.label }),
5715
- /* @__PURE__ */ jsx35(Divider, {})
5716
- ] }, index);
5717
- }
5718
- }
5719
- }
5720
- } else if (items.end === void 0 || items.end === false || items.end === null) {
5721
- if (items.itemType === "header") {
5722
- if (items.link) {
5723
- return /* @__PURE__ */ jsx35(MenuItem, { children: /* @__PURE__ */ jsx35(Links, { href: items.link, hoverColor: items.hoverColor, children: items.label }) }, index);
5724
- } else {
5725
- return /* @__PURE__ */ jsx35("p", { style: customStyle, children: items.label }, index);
5726
- }
5727
- } else if (items.itemType === "link") {
5728
- return /* @__PURE__ */ jsx35(MenuItem, { style: { textDecoration: "none" }, children: /* @__PURE__ */ jsx35(Links, { href: items.link, hoverColor: items.hoverColor || "", children: items.label }) }, index);
5729
- } else {
5730
- if (items.link) {
5731
- return /* @__PURE__ */ jsx35(MenuItem, { href: items.link, children: items.label }, index);
5732
- } else {
5733
- if (items.email) {
5734
- return /* @__PURE__ */ jsx35("p", { style: emailStyle, children: /* @__PURE__ */ jsx35(Links, { href: items.email, hoverColor: items.hoverColor || "blue", children: items.label }) }, index);
5735
- } else {
5736
- return /* @__PURE__ */ jsx35("p", { style: customStyle, children: items.label }, index);
5737
- }
5738
- }
5739
- }
5740
- }
5741
- })
5742
- ]
5618
+ import React17, { useRef as useRef15, useEffect as useEffect15 } from "react";
5619
+ import { jsx as jsx35 } from "react/jsx-runtime";
5620
+ var WavelengthPopUpMenu = React17.forwardRef(
5621
+ ({ children, customStyle = {}, variant, trigger, menuDirection, menuOffset, menuItems, badgeLabel, ...rest }, externalRef) => {
5622
+ const internalRef = useRef15(null);
5623
+ React17.useImperativeHandle(externalRef, () => internalRef.current);
5624
+ useEffect15(() => {
5625
+ const el = internalRef.current;
5626
+ if (!el) return;
5627
+ el.customStyles = customStyle;
5628
+ const set = (attr, value) => {
5629
+ if (value !== void 0 && value !== null && value !== "") {
5630
+ el.setAttribute(attr, value.toString());
5631
+ } else {
5632
+ el.removeAttribute(attr);
5633
+ }
5634
+ };
5635
+ set("variant", variant);
5636
+ set("trigger", trigger);
5637
+ set("menu-direction", menuDirection);
5638
+ set("menu-offset", menuOffset);
5639
+ set("badge-label", badgeLabel);
5640
+ if (menuItems !== void 0) {
5641
+ el.setAttribute("menu-items", JSON.stringify(menuItems));
5743
5642
  }
5744
- )
5745
- ] });
5746
- }
5643
+ }, [customStyle, variant, trigger, menuDirection, menuOffset, menuItems, badgeLabel]);
5644
+ return /* @__PURE__ */ jsx35("wavelength-popup-menu", { ref: internalRef, ...rest, children });
5645
+ }
5646
+ );
5747
5647
  WavelengthPopUpMenu.displayName = "WavelengthPopUpMenu";
5748
5648
 
5749
5649
  // src/components/modals/WavelengthDropdown.tsx
5750
- import { forwardRef, useEffect as useEffect14, useImperativeHandle as useImperativeHandle2, useRef as useRef14 } from "react";
5650
+ import { forwardRef, useEffect as useEffect16, useImperativeHandle as useImperativeHandle2, useRef as useRef16 } from "react";
5751
5651
  import { jsx as jsx36 } from "react/jsx-runtime";
5752
5652
  var WavelengthDropdown = forwardRef((props, ref) => {
5753
5653
  const {
@@ -5773,9 +5673,9 @@ var WavelengthDropdown = forwardRef((props, ref) => {
5773
5673
  onChange,
5774
5674
  ...rest
5775
5675
  } = props;
5776
- const elementRef = useRef14(null);
5676
+ const elementRef = useRef16(null);
5777
5677
  useImperativeHandle2(ref, () => elementRef.current);
5778
- useEffect14(() => {
5678
+ useEffect16(() => {
5779
5679
  const el = elementRef.current;
5780
5680
  if (!el || !onChange) return;
5781
5681
  const handler = (e) => {
@@ -5785,7 +5685,7 @@ var WavelengthDropdown = forwardRef((props, ref) => {
5785
5685
  el.addEventListener("change", handler);
5786
5686
  return () => el.removeEventListener("change", handler);
5787
5687
  }, [onChange]);
5788
- useEffect14(() => {
5688
+ useEffect16(() => {
5789
5689
  if (value !== void 0 && elementRef.current) {
5790
5690
  elementRef.current.value = value;
5791
5691
  }
@@ -5819,7 +5719,7 @@ var WavelengthDropdown = forwardRef((props, ref) => {
5819
5719
  WavelengthDropdown.displayName = "WavelengthDropdown";
5820
5720
 
5821
5721
  // src/components/modals/WavelengthMenu.tsx
5822
- import { useRef as useRef15, useEffect as useEffect15 } from "react";
5722
+ import { useRef as useRef17, useEffect as useEffect17 } from "react";
5823
5723
  import { jsx as jsx37 } from "react/jsx-runtime";
5824
5724
  var WavelengthMenu = ({
5825
5725
  backgroundColor: backgroundColor2,
@@ -5836,13 +5736,13 @@ var WavelengthMenu = ({
5836
5736
  ...rest
5837
5737
  // This rest operator includes className, style, onClick, etc.
5838
5738
  }) => {
5839
- const ref = useRef15(null);
5739
+ const ref = useRef17(null);
5840
5740
  const syncAttribute = (attribute, value) => {
5841
5741
  const el = ref.current;
5842
5742
  if (!el) return;
5843
5743
  el.setAttribute(attribute, value);
5844
5744
  };
5845
- useEffect15(() => {
5745
+ useEffect17(() => {
5846
5746
  const el = ref.current;
5847
5747
  if (!el) return;
5848
5748
  syncAttribute("background-color", backgroundColor2 || "");
@@ -5884,11 +5784,11 @@ var WavelengthMenu = ({
5884
5784
  WavelengthMenu.displayName = "WavelengthMenu";
5885
5785
 
5886
5786
  // src/components/modals/WavelengthSwitch.tsx
5887
- import { useRef as useRef16, useEffect as useEffect16 } from "react";
5787
+ import { useRef as useRef18, useEffect as useEffect18 } from "react";
5888
5788
  import { jsx as jsx38 } from "react/jsx-runtime";
5889
- var WavelengthSwitch = ({ label, labelPlacement, size, disabled, color: color2, labelFont, checked, value, onWavelengthSwitchChange, customStyle: customStyle2, ...rest }) => {
5890
- const ref = useRef16(null);
5891
- useEffect16(() => {
5789
+ var WavelengthSwitch = ({ label, labelPlacement, size, disabled, color: color2, labelFont, checked, value, onWavelengthSwitchChange, customStyle, ...rest }) => {
5790
+ const ref = useRef18(null);
5791
+ useEffect18(() => {
5892
5792
  const el = ref.current;
5893
5793
  if (!el) return;
5894
5794
  const syncAttribute = (attr, val, isBool = false) => {
@@ -5898,7 +5798,7 @@ var WavelengthSwitch = ({ label, labelPlacement, size, disabled, color: color2,
5898
5798
  el.setAttribute(attr, isBool ? "" : val.toString());
5899
5799
  }
5900
5800
  };
5901
- el.customStyles = customStyle2;
5801
+ el.customStyles = customStyle;
5902
5802
  syncAttribute("checked", checked, true);
5903
5803
  syncAttribute("disabled", disabled, true);
5904
5804
  syncAttribute("label", label);
@@ -5907,8 +5807,8 @@ var WavelengthSwitch = ({ label, labelPlacement, size, disabled, color: color2,
5907
5807
  syncAttribute("color", color2);
5908
5808
  syncAttribute("label-font", labelFont);
5909
5809
  syncAttribute("value", value);
5910
- }, [checked, label, labelPlacement, size, disabled, color2, labelFont, value, customStyle2]);
5911
- useEffect16(() => {
5810
+ }, [checked, label, labelPlacement, size, disabled, color2, labelFont, value, customStyle]);
5811
+ useEffect18(() => {
5912
5812
  const el = ref.current;
5913
5813
  if (!el || !onWavelengthSwitchChange) return;
5914
5814
  const handleEvent = (e) => {
@@ -5921,14 +5821,110 @@ var WavelengthSwitch = ({ label, labelPlacement, size, disabled, color: color2,
5921
5821
  };
5922
5822
  WavelengthSwitch.displayName = "WavelengthSwitch";
5923
5823
 
5924
- // src/components/modals/WavelengthPagination.tsx
5925
- import { useRef as useRef17, useEffect as useEffect17 } from "react";
5824
+ // src/components/modals/WavelengthDialog.tsx
5825
+ import { useRef as useRef19, useEffect as useEffect19 } from "react";
5926
5826
  import { jsx as jsx39 } from "react/jsx-runtime";
5827
+ var WavelengthDialog = ({
5828
+ children,
5829
+ customStyle,
5830
+ dialogTitle,
5831
+ leftBtnLabel,
5832
+ rightBtnLabel,
5833
+ boxColor,
5834
+ maxWidth: maxWidth2,
5835
+ maxHeight: maxHeight2,
5836
+ shadow,
5837
+ borderRadius: borderRadius2,
5838
+ borderColor: borderColor2,
5839
+ textColor,
5840
+ leftBtnBg,
5841
+ leftBtnColor,
5842
+ rightBtnBg,
5843
+ rightBtnColor,
5844
+ overlay,
5845
+ fontFamily,
5846
+ open,
5847
+ onWlLeftBtnClick,
5848
+ onWlRightBtnClick,
5849
+ ...rest
5850
+ }) => {
5851
+ const ref = useRef19(null);
5852
+ useEffect19(() => {
5853
+ const el = ref.current;
5854
+ if (!el) return;
5855
+ if (open) el.setAttribute("open", "");
5856
+ else el.removeAttribute("open");
5857
+ }, [open]);
5858
+ useEffect19(() => {
5859
+ const el = ref.current;
5860
+ if (!el) return;
5861
+ if (overlay) el.setAttribute("overlay", "");
5862
+ else el.removeAttribute("overlay");
5863
+ }, [overlay]);
5864
+ useEffect19(() => {
5865
+ const el = ref.current;
5866
+ if (!el) return;
5867
+ const handleLeft = (e) => onWlLeftBtnClick?.(e);
5868
+ const handleRight = (e) => onWlRightBtnClick?.(e);
5869
+ el.addEventListener("wl-left-btn-click", handleLeft);
5870
+ el.addEventListener("wl-right-btn-click", handleRight);
5871
+ return () => {
5872
+ el.removeEventListener("wl-left-btn-click", handleLeft);
5873
+ el.removeEventListener("wl-right-btn-click", handleRight);
5874
+ };
5875
+ }, [onWlLeftBtnClick, onWlRightBtnClick]);
5876
+ useEffect19(() => {
5877
+ const el = ref.current;
5878
+ if (!el) return;
5879
+ if (customStyle !== void 0) el.customStyles = customStyle;
5880
+ const setAttr = (attr, value) => {
5881
+ if (value !== void 0) el.setAttribute(attr, value);
5882
+ };
5883
+ setAttr("dialog-title", dialogTitle);
5884
+ setAttr("left-btn-label", leftBtnLabel);
5885
+ setAttr("right-btn-label", rightBtnLabel);
5886
+ setAttr("box-color", boxColor);
5887
+ setAttr("max-width", maxWidth2);
5888
+ setAttr("max-height", maxHeight2);
5889
+ setAttr("shadow", shadow);
5890
+ setAttr("border-radius", borderRadius2);
5891
+ setAttr("border-color", borderColor2);
5892
+ setAttr("text-color", textColor);
5893
+ setAttr("left-btn-bg", leftBtnBg);
5894
+ setAttr("left-btn-color", leftBtnColor);
5895
+ setAttr("right-btn-bg", rightBtnBg);
5896
+ setAttr("right-btn-color", rightBtnColor);
5897
+ setAttr("font-family", fontFamily);
5898
+ }, [
5899
+ customStyle,
5900
+ dialogTitle,
5901
+ leftBtnLabel,
5902
+ rightBtnLabel,
5903
+ boxColor,
5904
+ maxWidth2,
5905
+ maxHeight2,
5906
+ shadow,
5907
+ borderRadius2,
5908
+ borderColor2,
5909
+ textColor,
5910
+ leftBtnBg,
5911
+ leftBtnColor,
5912
+ rightBtnBg,
5913
+ rightBtnColor,
5914
+ fontFamily
5915
+ ]);
5916
+ return /* @__PURE__ */ jsx39("wavelength-dialog", { ref, ...rest, children });
5917
+ };
5918
+ WavelengthDialog.displayName = "WavelengthDialog";
5919
+
5920
+ // src/components/modals/WavelengthPagination.tsx
5921
+ import { useRef as useRef20, useEffect as useEffect20 } from "react";
5922
+ import { jsx as jsx40 } from "react/jsx-runtime";
5927
5923
  var WavelengthPagination = ({
5928
5924
  testProp,
5929
5925
  children,
5930
5926
  // Style argument
5931
- customStyle: customStyle2,
5927
+ customStyle,
5932
5928
  variant,
5933
5929
  textColor,
5934
5930
  font,
@@ -5946,16 +5942,16 @@ var WavelengthPagination = ({
5946
5942
  ...rest
5947
5943
  // This rest operator includes className, style, onClick, etc.
5948
5944
  }) => {
5949
- const ref = useRef17(null);
5945
+ const ref = useRef20(null);
5950
5946
  const syncAttribute = (attribute, value) => {
5951
5947
  const el = ref.current;
5952
5948
  if (!el) return;
5953
5949
  el.setAttribute(attribute, value);
5954
5950
  };
5955
- useEffect17(() => {
5951
+ useEffect20(() => {
5956
5952
  const el = ref.current;
5957
5953
  if (!el) return;
5958
- el.customStyles = customStyle2;
5954
+ el.customStyles = customStyle;
5959
5955
  syncAttribute("variant", variant || "");
5960
5956
  syncAttribute("text-color", textColor || "");
5961
5957
  syncAttribute("font", font || "");
@@ -5979,7 +5975,7 @@ var WavelengthPagination = ({
5979
5975
  el.removeEventListener("page-change", handlePageChange);
5980
5976
  };
5981
5977
  }, [testProp, textColor, font, fontSize, border2, borderRadius2, padding2, variant, totalPages, currentPage, activeColor, activeTextColor, backgroundColor2, disabledColor, onPageChange]);
5982
- return /* @__PURE__ */ jsx39("wavelength-pagination", { ref, variant, "total-pages": totalPages, "current-page": currentPage, ...rest });
5978
+ return /* @__PURE__ */ jsx40("wavelength-pagination", { ref, variant, "total-pages": totalPages, "current-page": currentPage, ...rest });
5983
5979
  };
5984
5980
  WavelengthPagination.displayName = "WavelengthPagination";
5985
5981
 
@@ -5994,9 +5990,9 @@ import { useState as useState4 } from "react";
5994
5990
  import Button4 from "@mui/material/Button";
5995
5991
  import ArrowBackIosNewIcon from "@mui/icons-material/ArrowBackIosNew";
5996
5992
  import ArrowForwardIosIcon from "@mui/icons-material/ArrowForwardIos";
5997
- import styled6 from "styled-components";
5998
- import { jsx as jsx40, jsxs as jsxs21 } from "react/jsx-runtime";
5999
- var MyDroplistItems = styled6("li")`
5993
+ import styled5 from "styled-components";
5994
+ import { jsx as jsx41, jsxs as jsxs20 } from "react/jsx-runtime";
5995
+ var MyDroplistItems = styled5("li")`
6000
5996
  background-color: white;
6001
5997
  color: #000000;
6002
5998
  padding: 10px 30px;
@@ -6039,16 +6035,16 @@ function WavelengthButtonPagination({ totalPages, current, handleChangePage, ite
6039
6035
  "&:disabled": { background: "rgb(226, 223, 223)" },
6040
6036
  "&.active": { background: "#8FD8FF" }
6041
6037
  };
6042
- return /* @__PURE__ */ jsxs21("div", { style: dropstyles.butPagCompDivStyle, id, children: [
6043
- /* @__PURE__ */ jsx40(Button4, { onClick: () => handleChangePage(current - 1), disabled: current === 1, sx: WLButtonPagStyle, children: /* @__PURE__ */ jsx40(ArrowBackIosNewIcon, {}) }),
6044
- /* @__PURE__ */ jsx40("section", { style: dropstyles.rangenumbers, children: itemList.map(
6038
+ return /* @__PURE__ */ jsxs20("div", { style: dropstyles.butPagCompDivStyle, id, children: [
6039
+ /* @__PURE__ */ jsx41(Button4, { onClick: () => handleChangePage(current - 1), disabled: current === 1, sx: WLButtonPagStyle, children: /* @__PURE__ */ jsx41(ArrowBackIosNewIcon, {}) }),
6040
+ /* @__PURE__ */ jsx41("section", { style: dropstyles.rangenumbers, children: itemList.map(
6045
6041
  (item, index) => item === "..." && index === 1 ? (
6046
6042
  //first half ellipse with first half dropdown
6047
6043
  // dropdown
6048
6044
  // eslint-disable-next-line react/jsx-key
6049
- /* @__PURE__ */ jsxs21("div", { children: [
6050
- /* @__PURE__ */ jsx40(Button4, { onClick: () => toggleDropdown(1), className: current === index ? "active" : "", sx: WLButtonPagStyle, children: item }, index),
6051
- isOpen && /* @__PURE__ */ jsx40("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx40("ul", { style: dropstyles.mydrop, children: firstEllipseList.map((item2) => /* @__PURE__ */ jsx40(
6045
+ /* @__PURE__ */ jsxs20("div", { children: [
6046
+ /* @__PURE__ */ jsx41(Button4, { onClick: () => toggleDropdown(1), className: current === index ? "active" : "", sx: WLButtonPagStyle, children: item }, index),
6047
+ isOpen && /* @__PURE__ */ jsx41("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx41("ul", { style: dropstyles.mydrop, children: firstEllipseList.map((item2) => /* @__PURE__ */ jsx41(
6052
6048
  MyDroplistItems,
6053
6049
  {
6054
6050
  onClick: () => {
@@ -6061,9 +6057,9 @@ function WavelengthButtonPagination({ totalPages, current, handleChangePage, ite
6061
6057
  ] })
6062
6058
  ) : item === "..." && index === 5 ? (
6063
6059
  //second half ellipse with second half dropdown
6064
- /* @__PURE__ */ jsxs21("div", { children: [
6065
- /* @__PURE__ */ jsx40(Button4, { onClick: () => toggleDropdown(5), className: current === index ? "active" : "", sx: WLButtonPagStyle, children: item }, index),
6066
- isSecOpen && /* @__PURE__ */ jsx40("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx40("ul", { style: dropstyles.mydrop, children: secondEllipseList.map((item2) => /* @__PURE__ */ jsx40(
6060
+ /* @__PURE__ */ jsxs20("div", { children: [
6061
+ /* @__PURE__ */ jsx41(Button4, { onClick: () => toggleDropdown(5), className: current === index ? "active" : "", sx: WLButtonPagStyle, children: item }, index),
6062
+ isSecOpen && /* @__PURE__ */ jsx41("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx41("ul", { style: dropstyles.mydrop, children: secondEllipseList.map((item2) => /* @__PURE__ */ jsx41(
6067
6063
  MyDroplistItems,
6068
6064
  {
6069
6065
  onClick: () => {
@@ -6074,9 +6070,9 @@ function WavelengthButtonPagination({ totalPages, current, handleChangePage, ite
6074
6070
  item2
6075
6071
  )) }) })
6076
6072
  ] })
6077
- ) : /* @__PURE__ */ jsx40(Button4, { onClick: () => handleChangePage(item), className: current === item ? "active" : "", sx: WLButtonPagStyle, children: item }, index)
6073
+ ) : /* @__PURE__ */ jsx41(Button4, { onClick: () => handleChangePage(item), className: current === item ? "active" : "", sx: WLButtonPagStyle, children: item }, index)
6078
6074
  ) }),
6079
- /* @__PURE__ */ jsx40(Button4, { onClick: () => handleChangePage(current + 1), disabled: current === totalPages, sx: WLButtonPagStyle, children: /* @__PURE__ */ jsx40(ArrowForwardIosIcon, {}) })
6075
+ /* @__PURE__ */ jsx41(Button4, { onClick: () => handleChangePage(current + 1), disabled: current === totalPages, sx: WLButtonPagStyle, children: /* @__PURE__ */ jsx41(ArrowForwardIosIcon, {}) })
6080
6076
  ] });
6081
6077
  }
6082
6078
  WavelengthButtonPagination.displayName = "WavelengthButtonPagination";
@@ -6087,12 +6083,12 @@ import { useState as useState5 } from "react";
6087
6083
  import Button5 from "@mui/material/Button";
6088
6084
  import ArrowBackIosNewIcon2 from "@mui/icons-material/ArrowBackIosNew";
6089
6085
  import ArrowForwardIosIcon2 from "@mui/icons-material/ArrowForwardIos";
6090
- import styled7 from "styled-components";
6091
- import { jsx as jsx41, jsxs as jsxs22 } from "react/jsx-runtime";
6086
+ import styled6 from "styled-components";
6087
+ import { jsx as jsx42, jsxs as jsxs21 } from "react/jsx-runtime";
6092
6088
  function WavelengthVariationPagination({ totalPages, current, variant, handleChangePage, itemList, firstEllipseList, secondEllipseList, id }) {
6093
6089
  const [isOpen, setIsOpen] = useState5(false);
6094
6090
  const [isSecOpen, setIsSecOpen] = useState5(false);
6095
- const MyDroplistItems2 = styled7("li")`
6091
+ const MyDroplistItems2 = styled6("li")`
6096
6092
  background-color: white;
6097
6093
  color: #000000;
6098
6094
  padding: 10px 30px;
@@ -6130,15 +6126,15 @@ function WavelengthVariationPagination({ totalPages, current, variant, handleCha
6130
6126
  setIsSecOpen(!isSecOpen);
6131
6127
  }
6132
6128
  };
6133
- return /* @__PURE__ */ jsxs22("div", { style: dropstyles.pagination, id, children: [
6134
- /* @__PURE__ */ jsx41(Button5, { onClick: () => handleChangePage(current - 1), variant, disabled: current === 1, children: /* @__PURE__ */ jsx41(ArrowBackIosNewIcon2, {}) }),
6135
- /* @__PURE__ */ jsx41("section", { style: dropstyles.rangenumbers, children: itemList.map(
6129
+ return /* @__PURE__ */ jsxs21("div", { style: dropstyles.pagination, id, children: [
6130
+ /* @__PURE__ */ jsx42(Button5, { onClick: () => handleChangePage(current - 1), variant, disabled: current === 1, children: /* @__PURE__ */ jsx42(ArrowBackIosNewIcon2, {}) }),
6131
+ /* @__PURE__ */ jsx42("section", { style: dropstyles.rangenumbers, children: itemList.map(
6136
6132
  (item, index) => item === "..." && index === 1 ? (
6137
6133
  //first half ellipse with first half dropdown
6138
6134
  // eslint-disable-next-line react/jsx-key
6139
- /* @__PURE__ */ jsxs22("div", { children: [
6140
- /* @__PURE__ */ jsx41(Button5, { onClick: () => toggleDropdown(1), variant, className: current === index ? "active" : "", children: item }, index),
6141
- isOpen && /* @__PURE__ */ jsx41("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx41("ul", { style: dropstyles.mydrop, children: firstEllipseList.map((item2) => /* @__PURE__ */ jsx41(
6135
+ /* @__PURE__ */ jsxs21("div", { children: [
6136
+ /* @__PURE__ */ jsx42(Button5, { onClick: () => toggleDropdown(1), variant, className: current === index ? "active" : "", children: item }, index),
6137
+ isOpen && /* @__PURE__ */ jsx42("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx42("ul", { style: dropstyles.mydrop, children: firstEllipseList.map((item2) => /* @__PURE__ */ jsx42(
6142
6138
  MyDroplistItems2,
6143
6139
  {
6144
6140
  style: dropstyles.mydroplist,
@@ -6152,9 +6148,9 @@ function WavelengthVariationPagination({ totalPages, current, variant, handleCha
6152
6148
  ] })
6153
6149
  ) : item === "..." && index === 5 ? (
6154
6150
  //second half ellipse with second half dropdown
6155
- /* @__PURE__ */ jsxs22("div", { children: [
6156
- /* @__PURE__ */ jsx41(Button5, { onClick: () => toggleDropdown(5), variant, className: current === index ? "active" : "", children: item }, index),
6157
- isSecOpen && /* @__PURE__ */ jsx41("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx41("ul", { style: dropstyles.mydrop, children: secondEllipseList.map((item2) => /* @__PURE__ */ jsx41(
6151
+ /* @__PURE__ */ jsxs21("div", { children: [
6152
+ /* @__PURE__ */ jsx42(Button5, { onClick: () => toggleDropdown(5), variant, className: current === index ? "active" : "", children: item }, index),
6153
+ isSecOpen && /* @__PURE__ */ jsx42("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx42("ul", { style: dropstyles.mydrop, children: secondEllipseList.map((item2) => /* @__PURE__ */ jsx42(
6158
6154
  MyDroplistItems2,
6159
6155
  {
6160
6156
  style: dropstyles.mydroplist,
@@ -6166,16 +6162,16 @@ function WavelengthVariationPagination({ totalPages, current, variant, handleCha
6166
6162
  item2
6167
6163
  )) }) })
6168
6164
  ] })
6169
- ) : /* @__PURE__ */ jsx41(Button5, { onClick: () => handleChangePage(item), className: current === item ? "active" : "", variant, children: item }, index)
6165
+ ) : /* @__PURE__ */ jsx42(Button5, { onClick: () => handleChangePage(item), className: current === item ? "active" : "", variant, children: item }, index)
6170
6166
  ) }),
6171
- /* @__PURE__ */ jsx41(Button5, { onClick: () => handleChangePage(current + 1), disabled: current === totalPages, variant, children: /* @__PURE__ */ jsx41(ArrowForwardIosIcon2, {}) })
6167
+ /* @__PURE__ */ jsx42(Button5, { onClick: () => handleChangePage(current + 1), disabled: current === totalPages, variant, children: /* @__PURE__ */ jsx42(ArrowForwardIosIcon2, {}) })
6172
6168
  ] });
6173
6169
  }
6174
6170
  WavelengthVariationPagination.displayName = "WavelengthVariationPagination";
6175
6171
  var WavelengthVariationPagination_default = WavelengthVariationPagination;
6176
6172
 
6177
6173
  // src/components/pagination/WavelengthDefaultPagination.tsx
6178
- import { jsx as jsx42 } from "react/jsx-runtime";
6174
+ import { jsx as jsx43 } from "react/jsx-runtime";
6179
6175
  var range = (start, end) => {
6180
6176
  const length = end - start + 1;
6181
6177
  return Array.from({ length }, (_, i) => start + i);
@@ -6213,7 +6209,7 @@ function WavelengthDefaultPagination({ totalPages, currentPageNumber, siblingCou
6213
6209
  }
6214
6210
  };
6215
6211
  if (style3 === "circular") {
6216
- return /* @__PURE__ */ jsx42(
6212
+ return /* @__PURE__ */ jsx43(
6217
6213
  WavelengthButtonPagination_default,
6218
6214
  {
6219
6215
  id,
@@ -6226,7 +6222,7 @@ function WavelengthDefaultPagination({ totalPages, currentPageNumber, siblingCou
6226
6222
  }
6227
6223
  );
6228
6224
  } else if (style3 === "text") {
6229
- return /* @__PURE__ */ jsx42(
6225
+ return /* @__PURE__ */ jsx43(
6230
6226
  WavelengthVariationPagination_default,
6231
6227
  {
6232
6228
  id,
@@ -6240,7 +6236,7 @@ function WavelengthDefaultPagination({ totalPages, currentPageNumber, siblingCou
6240
6236
  }
6241
6237
  );
6242
6238
  } else if (style3 === "outlined") {
6243
- return /* @__PURE__ */ jsx42(
6239
+ return /* @__PURE__ */ jsx43(
6244
6240
  WavelengthVariationPagination_default,
6245
6241
  {
6246
6242
  id,
@@ -6254,7 +6250,7 @@ function WavelengthDefaultPagination({ totalPages, currentPageNumber, siblingCou
6254
6250
  }
6255
6251
  );
6256
6252
  } else if (style3 === "contained") {
6257
- return /* @__PURE__ */ jsx42(
6253
+ return /* @__PURE__ */ jsx43(
6258
6254
  WavelengthVariationPagination_default,
6259
6255
  {
6260
6256
  id,
@@ -6268,7 +6264,7 @@ function WavelengthDefaultPagination({ totalPages, currentPageNumber, siblingCou
6268
6264
  }
6269
6265
  );
6270
6266
  } else {
6271
- return /* @__PURE__ */ jsx42(
6267
+ return /* @__PURE__ */ jsx43(
6272
6268
  WavelengthVariationPagination_default,
6273
6269
  {
6274
6270
  id,
@@ -6289,16 +6285,16 @@ var WavelengthDefaultPagination_default = WavelengthDefaultPagination;
6289
6285
  import Snackbar from "@mui/material/Snackbar";
6290
6286
  import SnackbarContent from "@mui/material/SnackbarContent";
6291
6287
  import CloseIcon2 from "@mui/icons-material/Close";
6292
- import { IconButton as IconButton5 } from "@mui/material";
6293
- import { jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
6288
+ import { IconButton as IconButton4 } from "@mui/material";
6289
+ import { jsx as jsx44, jsxs as jsxs22 } from "react/jsx-runtime";
6294
6290
  function WavelengthSnackbar({ show, setShow, closeIcon, message, snackBarColor, textColor, horryAlign, vertyAlign, durationSb, width: width2, icon, id }) {
6295
6291
  const handleClose = () => {
6296
6292
  setShow(false);
6297
6293
  };
6298
- const defaultIcon = /* @__PURE__ */ jsx43(IconButton5, { size: "small", "aria-label": "close", color: "inherit", children: /* @__PURE__ */ jsx43(CloseIcon2, { fontSize: "small" }) });
6294
+ const defaultIcon = /* @__PURE__ */ jsx44(IconButton4, { size: "small", "aria-label": "close", color: "inherit", children: /* @__PURE__ */ jsx44(CloseIcon2, { fontSize: "small" }) });
6299
6295
  const palette2 = getPalette();
6300
6296
  const durationMs = durationSb ? durationSb * 1e3 : 4e3;
6301
- return /* @__PURE__ */ jsx43(
6297
+ return /* @__PURE__ */ jsx44(
6302
6298
  Snackbar,
6303
6299
  {
6304
6300
  id,
@@ -6309,7 +6305,7 @@ function WavelengthSnackbar({ show, setShow, closeIcon, message, snackBarColor,
6309
6305
  vertical: vertyAlign ? vertyAlign : "bottom",
6310
6306
  horizontal: horryAlign ? horryAlign : "center"
6311
6307
  },
6312
- children: /* @__PURE__ */ jsx43(
6308
+ children: /* @__PURE__ */ jsx44(
6313
6309
  SnackbarContent,
6314
6310
  {
6315
6311
  style: {
@@ -6318,11 +6314,11 @@ function WavelengthSnackbar({ show, setShow, closeIcon, message, snackBarColor,
6318
6314
  display: "flex",
6319
6315
  width: width2
6320
6316
  },
6321
- message: /* @__PURE__ */ jsxs23("div", { children: [
6322
- /* @__PURE__ */ jsx43("span", { children: icon }),
6323
- /* @__PURE__ */ jsx43("span", { id: "snackbar", children: message ? message : "Insert Message Here" })
6317
+ message: /* @__PURE__ */ jsxs22("div", { children: [
6318
+ /* @__PURE__ */ jsx44("span", { children: icon }),
6319
+ /* @__PURE__ */ jsx44("span", { id: "snackbar", children: message ? message : "Insert Message Here" })
6324
6320
  ] }),
6325
- action: /* @__PURE__ */ jsx43("div", { style: { display: "flex", justifyContent: "center" }, onClick: handleClose, children: closeIcon ? closeIcon : defaultIcon })
6321
+ action: /* @__PURE__ */ jsx44("div", { style: { display: "flex", justifyContent: "center" }, onClick: handleClose, children: closeIcon ? closeIcon : defaultIcon })
6326
6322
  }
6327
6323
  )
6328
6324
  }
@@ -6333,7 +6329,7 @@ WavelengthSnackbar.displayName = "WavelengthSnackbar";
6333
6329
  // src/components/snackbars/WavelengthStandardSnackbar.tsx
6334
6330
  import Snackbar2 from "@mui/material/Snackbar";
6335
6331
  import SnackbarContent2 from "@mui/material/SnackbarContent";
6336
- import { jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
6332
+ import { jsx as jsx45, jsxs as jsxs23 } from "react/jsx-runtime";
6337
6333
  function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign, durationSb, width: width2, message, customVertyAlign, toggleShow, closeIcon, id }) {
6338
6334
  const handleClose = () => {
6339
6335
  toggleShow(false);
@@ -6348,7 +6344,7 @@ function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign,
6348
6344
  bgColor = "#737373";
6349
6345
  }
6350
6346
  const sIcon = icon ? icon : "";
6351
- return /* @__PURE__ */ jsx44(
6347
+ return /* @__PURE__ */ jsx45(
6352
6348
  Snackbar2,
6353
6349
  {
6354
6350
  id,
@@ -6360,7 +6356,7 @@ function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign,
6360
6356
  vertical: vertyAlign ? vertyAlign : "top",
6361
6357
  horizontal: horryAlign ? horryAlign : "center"
6362
6358
  },
6363
- children: /* @__PURE__ */ jsx44(
6359
+ children: /* @__PURE__ */ jsx45(
6364
6360
  SnackbarContent2,
6365
6361
  {
6366
6362
  style: {
@@ -6369,7 +6365,7 @@ function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign,
6369
6365
  //color: props.textColor ? props.textColor : palette.secondary,
6370
6366
  },
6371
6367
  sx: { paddingTop: "0px", paddingBottom: "0px" },
6372
- message: /* @__PURE__ */ jsxs24(
6368
+ message: /* @__PURE__ */ jsxs23(
6373
6369
  "div",
6374
6370
  {
6375
6371
  style: {
@@ -6378,11 +6374,11 @@ function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign,
6378
6374
  width: width2
6379
6375
  },
6380
6376
  children: [
6381
- /* @__PURE__ */ jsxs24("div", { style: { gridColumnStart: 2, gridColumnEnd: 5, textAlign: "center", display: "flex", flexDirection: "row", justifyContent: "center", alignItems: "center" }, id: "snackbar", children: [
6382
- /* @__PURE__ */ jsx44("div", { style: { marginTop: "5px" }, children: sIcon }),
6383
- /* @__PURE__ */ jsx44("div", { style: { fontSize: "1rem", marginLeft: "10px" }, children: message ? message : "Insert Message Here" })
6377
+ /* @__PURE__ */ jsxs23("div", { style: { gridColumnStart: 2, gridColumnEnd: 5, textAlign: "center", display: "flex", flexDirection: "row", justifyContent: "center", alignItems: "center" }, id: "snackbar", children: [
6378
+ /* @__PURE__ */ jsx45("div", { style: { marginTop: "5px" }, children: sIcon }),
6379
+ /* @__PURE__ */ jsx45("div", { style: { fontSize: "1rem", marginLeft: "10px" }, children: message ? message : "Insert Message Here" })
6384
6380
  ] }),
6385
- /* @__PURE__ */ jsx44("div", { style: { gridColumnStart: 6 }, onClick: handleClose, children: closeIcon })
6381
+ /* @__PURE__ */ jsx45("div", { style: { gridColumnStart: 6 }, onClick: handleClose, children: closeIcon })
6386
6382
  ]
6387
6383
  }
6388
6384
  )
@@ -6394,13 +6390,13 @@ function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign,
6394
6390
  WavelengthStandardSnackbar.displayName = "WavelengthStandardSnackbar";
6395
6391
 
6396
6392
  // src/components/snackbars/WavelengthTestSnackbar.tsx
6397
- import Box5 from "@mui/material/Box";
6393
+ import Box3 from "@mui/material/Box";
6398
6394
  import Button6 from "@mui/material/Button";
6399
- import { useEffect as useEffect18, useRef as useRef18 } from "react";
6400
- import { Fragment as Fragment11, jsx as jsx45, jsxs as jsxs25 } from "react/jsx-runtime";
6395
+ import { useEffect as useEffect21, useRef as useRef21 } from "react";
6396
+ import { Fragment as Fragment10, jsx as jsx46, jsxs as jsxs24 } from "react/jsx-runtime";
6401
6397
  var useOutsideClick = (callback) => {
6402
- const ref = useRef18(null);
6403
- useEffect18(() => {
6398
+ const ref = useRef21(null);
6399
+ useEffect21(() => {
6404
6400
  const handleClickOutside = (event) => {
6405
6401
  if (ref.current && !ref.current.contains(event.target)) {
6406
6402
  callback();
@@ -6427,8 +6423,8 @@ function WavelengthTestSnackbar({ isPopUpOpen, toggleOpen, type, message, custom
6427
6423
  } else if (type === "disabled") {
6428
6424
  bgColor = "#737373";
6429
6425
  }
6430
- return /* @__PURE__ */ jsx45(Fragment11, { children: isPopUpOpen && /* @__PURE__ */ jsxs25(
6431
- Box5,
6426
+ return /* @__PURE__ */ jsx46(Fragment10, { children: isPopUpOpen && /* @__PURE__ */ jsxs24(
6427
+ Box3,
6432
6428
  {
6433
6429
  id,
6434
6430
  sx: { position: "fixed", right: "auto", top: "24px", left: "50%", transform: "translateX(-50%)" },
@@ -6447,9 +6443,9 @@ function WavelengthTestSnackbar({ isPopUpOpen, toggleOpen, type, message, custom
6447
6443
  marginTop: customVertyAlign ? `${customVertyAlign}` : ""
6448
6444
  },
6449
6445
  children: [
6450
- /* @__PURE__ */ jsx45("div", { style: { backgroundColor: "red" } }),
6451
- /* @__PURE__ */ jsx45("div", { style: { color: "white", fontSize: "1rem" }, children: message }),
6452
- /* @__PURE__ */ jsx45(
6446
+ /* @__PURE__ */ jsx46("div", { style: { backgroundColor: "red" } }),
6447
+ /* @__PURE__ */ jsx46("div", { style: { color: "white", fontSize: "1rem" }, children: message }),
6448
+ /* @__PURE__ */ jsx46(
6453
6449
  Button6,
6454
6450
  {
6455
6451
  variant: "text",
@@ -6466,12 +6462,12 @@ function WavelengthTestSnackbar({ isPopUpOpen, toggleOpen, type, message, custom
6466
6462
  WavelengthTestSnackbar.displayName = "WavelengthTestSnackbar";
6467
6463
 
6468
6464
  // src/components/sliders/WavelengthSlider.tsx
6469
- import Box6 from "@mui/material/Box";
6465
+ import Box4 from "@mui/material/Box";
6470
6466
  import Slider from "@mui/material/Slider";
6471
- import { jsx as jsx46 } from "react/jsx-runtime";
6467
+ import { jsx as jsx47 } from "react/jsx-runtime";
6472
6468
  function WavelengthSlider({ width: width2 = "300px", color: color2, valueDisplayed, marks, labelColor, value, id, maxVal = 100, minVal, step = 1, labelFunc, handleChange }) {
6473
6469
  const on = valueDisplayed ? "on" : "off";
6474
- return /* @__PURE__ */ jsx46(Box6, { sx: { width: width2 }, children: /* @__PURE__ */ jsx46(
6470
+ return /* @__PURE__ */ jsx47(Box4, { sx: { width: width2 }, children: /* @__PURE__ */ jsx47(
6475
6471
  Slider,
6476
6472
  {
6477
6473
  id,
@@ -6497,7 +6493,7 @@ WavelengthSlider.displayName = "WavelengthSlider";
6497
6493
 
6498
6494
  // src/components/carousels/WavelengthDefaultCarousel.tsx
6499
6495
  import { useState as useState7 } from "react";
6500
- import IconButton6 from "@mui/material/IconButton";
6496
+ import IconButton5 from "@mui/material/IconButton";
6501
6497
  import NavigateBeforeIcon from "@mui/icons-material/NavigateBefore";
6502
6498
  import NavigateNextIcon from "@mui/icons-material/NavigateNext";
6503
6499
  import Typography4 from "@mui/material/Typography";
@@ -6506,7 +6502,7 @@ import Card from "@mui/material/Card";
6506
6502
  import CardContent from "@mui/material/CardContent";
6507
6503
  import CardMedia from "@mui/material/CardMedia";
6508
6504
  import CardActionArea from "@mui/material/CardActionArea";
6509
- import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
6505
+ import { jsx as jsx48, jsxs as jsxs25 } from "react/jsx-runtime";
6510
6506
  var DefaultCarousel = ({ items, buttonSize, imageHeight, imageWidth, cardHeight, cardWidth, id, name }) => {
6511
6507
  const [currentIndex, setCurrentIndex] = useState7(0);
6512
6508
  const adjustButtonSize = buttonSize !== void 0 ? buttonSize : 70;
@@ -6523,7 +6519,7 @@ var DefaultCarousel = ({ items, buttonSize, imageHeight, imageWidth, cardHeight,
6523
6519
  const handleClick = () => {
6524
6520
  window.open(items[currentIndex].path, "_blank");
6525
6521
  };
6526
- return /* @__PURE__ */ jsx47("div", { children: /* @__PURE__ */ jsx47("div", { children: /* @__PURE__ */ jsxs26(
6522
+ return /* @__PURE__ */ jsx48("div", { children: /* @__PURE__ */ jsx48("div", { children: /* @__PURE__ */ jsxs25(
6527
6523
  Grid3,
6528
6524
  {
6529
6525
  container: true,
@@ -6532,24 +6528,24 @@ var DefaultCarousel = ({ items, buttonSize, imageHeight, imageWidth, cardHeight,
6532
6528
  alignItems: "center"
6533
6529
  },
6534
6530
  children: [
6535
- /* @__PURE__ */ jsx47("div", { children: /* @__PURE__ */ jsx47(IconButton6, { onClick: handlePrev, sx: { margin: 1, color: "white" }, children: /* @__PURE__ */ jsx47(NavigateBeforeIcon, { style: { fontSize: adjustButtonSize } }) }) }),
6536
- /* @__PURE__ */ jsx47(
6531
+ /* @__PURE__ */ jsx48("div", { children: /* @__PURE__ */ jsx48(IconButton5, { onClick: handlePrev, sx: { margin: 1, color: "white" }, children: /* @__PURE__ */ jsx48(NavigateBeforeIcon, { style: { fontSize: adjustButtonSize } }) }) }),
6532
+ /* @__PURE__ */ jsx48(
6537
6533
  Card,
6538
6534
  {
6539
6535
  sx: {
6540
6536
  maxWidth: adjustCardWidth,
6541
6537
  maxHeight: adjustCardHeight
6542
6538
  },
6543
- children: /* @__PURE__ */ jsxs26(CardActionArea, { onClick: handleClick, children: [
6544
- /* @__PURE__ */ jsx47(CardMedia, { sx: { height: adjustImageHeight, width: adjustImageWidth }, image: items[currentIndex].image }),
6545
- /* @__PURE__ */ jsxs26(CardContent, { children: [
6546
- /* @__PURE__ */ jsx47(Typography4, { variant: "h4", children: items[currentIndex].title }),
6547
- /* @__PURE__ */ jsx47(Typography4, { variant: "body1", children: items[currentIndex].description })
6539
+ children: /* @__PURE__ */ jsxs25(CardActionArea, { onClick: handleClick, children: [
6540
+ /* @__PURE__ */ jsx48(CardMedia, { sx: { height: adjustImageHeight, width: adjustImageWidth }, image: items[currentIndex].image }),
6541
+ /* @__PURE__ */ jsxs25(CardContent, { children: [
6542
+ /* @__PURE__ */ jsx48(Typography4, { variant: "h4", children: items[currentIndex].title }),
6543
+ /* @__PURE__ */ jsx48(Typography4, { variant: "body1", children: items[currentIndex].description })
6548
6544
  ] })
6549
6545
  ] })
6550
6546
  }
6551
6547
  ),
6552
- /* @__PURE__ */ jsx47("div", { children: /* @__PURE__ */ jsx47(IconButton6, { onClick: handleNext, sx: { margin: 1, color: "white" }, children: /* @__PURE__ */ jsx47(NavigateNextIcon, { style: { fontSize: adjustButtonSize } }) }) })
6548
+ /* @__PURE__ */ jsx48("div", { children: /* @__PURE__ */ jsx48(IconButton5, { onClick: handleNext, sx: { margin: 1, color: "white" }, children: /* @__PURE__ */ jsx48(NavigateNextIcon, { style: { fontSize: adjustButtonSize } }) }) })
6553
6549
  ]
6554
6550
  }
6555
6551
  ) }) });
@@ -6557,18 +6553,18 @@ var DefaultCarousel = ({ items, buttonSize, imageHeight, imageWidth, cardHeight,
6557
6553
  DefaultCarousel.displayName = "DefaultCarousel";
6558
6554
 
6559
6555
  // src/components/carousels/WavelengthSliderCarousel.tsx
6560
- import { useState as useState8, useEffect as useEffect20 } from "react";
6556
+ import { useState as useState8, useEffect as useEffect23 } from "react";
6561
6557
  import Grid4 from "@mui/material/Grid";
6562
6558
  import Card2 from "@mui/material/Card";
6563
6559
  import CardContent2 from "@mui/material/CardContent";
6564
6560
  import CardMedia2 from "@mui/material/CardMedia";
6565
6561
  import CardActionArea2 from "@mui/material/CardActionArea";
6566
- import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
6562
+ import { jsx as jsx49, jsxs as jsxs26 } from "react/jsx-runtime";
6567
6563
  var delay = 2500;
6568
6564
  var SliderCardCarousel = ({ items, cardHeight, cardWidth, contHeight, contWidth }) => {
6569
6565
  const [index, setIndex] = useState8(0);
6570
6566
  const [isHovered, setIsHovered] = useState8(false);
6571
- useEffect20(() => {
6567
+ useEffect23(() => {
6572
6568
  setTimeout(() => setIndex((prevIndex) => prevIndex === items.length - 1 ? 0 : prevIndex + 1), delay);
6573
6569
  return () => {
6574
6570
  };
@@ -6606,7 +6602,7 @@ var SliderCardCarousel = ({ items, cardHeight, cardWidth, contHeight, contWidth
6606
6602
  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"
6607
6603
  }
6608
6604
  };
6609
- return /* @__PURE__ */ jsx48("div", { style: styles.carouselcontainer, children: /* @__PURE__ */ jsx48("div", { className: "my-animation", style: styles.carouselTrackStyle, children: /* @__PURE__ */ jsx48(
6605
+ return /* @__PURE__ */ jsx49("div", { style: styles.carouselcontainer, children: /* @__PURE__ */ jsx49("div", { className: "my-animation", style: styles.carouselTrackStyle, children: /* @__PURE__ */ jsx49(
6610
6606
  Grid4,
6611
6607
  {
6612
6608
  sx: {
@@ -6616,7 +6612,7 @@ var SliderCardCarousel = ({ items, cardHeight, cardWidth, contHeight, contWidth
6616
6612
  },
6617
6613
  container: true,
6618
6614
  spacing: 0.5,
6619
- children: items.map((card) => /* @__PURE__ */ jsx48("div", { children: /* @__PURE__ */ jsx48(
6615
+ children: items.map((card) => /* @__PURE__ */ jsx49("div", { children: /* @__PURE__ */ jsx49(
6620
6616
  Card2,
6621
6617
  {
6622
6618
  sx: {
@@ -6626,11 +6622,11 @@ var SliderCardCarousel = ({ items, cardHeight, cardWidth, contHeight, contWidth
6626
6622
  },
6627
6623
  onMouseEnter: () => setIsHovered(true),
6628
6624
  onMouseLeave: () => setIsHovered(false),
6629
- children: /* @__PURE__ */ jsxs27(CardActionArea2, { href: card.path, children: [
6630
- /* @__PURE__ */ jsx48(CardMedia2, { sx: { height: adjustCardHeight, width: adjustCardWith }, image: card.image }),
6631
- /* @__PURE__ */ jsxs27(CardContent2, { children: [
6632
- /* @__PURE__ */ jsx48("h3", { children: card.title }),
6633
- /* @__PURE__ */ jsx48("p", { children: card.description })
6625
+ children: /* @__PURE__ */ jsxs26(CardActionArea2, { href: card.path, children: [
6626
+ /* @__PURE__ */ jsx49(CardMedia2, { sx: { height: adjustCardHeight, width: adjustCardWith }, image: card.image }),
6627
+ /* @__PURE__ */ jsxs26(CardContent2, { children: [
6628
+ /* @__PURE__ */ jsx49("h3", { children: card.title }),
6629
+ /* @__PURE__ */ jsx49("p", { children: card.description })
6634
6630
  ] })
6635
6631
  ] })
6636
6632
  }
@@ -6641,9 +6637,9 @@ var SliderCardCarousel = ({ items, cardHeight, cardWidth, contHeight, contWidth
6641
6637
  SliderCardCarousel.displayName = "SliderCardCarousel";
6642
6638
 
6643
6639
  // src/components/TextField/WavelengthInput.tsx
6644
- import { useRef as useRef19, useEffect as useEffect21, forwardRef as forwardRef2, useImperativeHandle as useImperativeHandle3 } from "react";
6640
+ import { useRef as useRef22, useEffect as useEffect24, forwardRef as forwardRef2, useImperativeHandle as useImperativeHandle3 } from "react";
6645
6641
  import "@wavelengthusaf/web-components";
6646
- import { jsx as jsx49 } from "react/jsx-runtime";
6642
+ import { jsx as jsx50 } from "react/jsx-runtime";
6647
6643
  var WavelengthInput = forwardRef2(
6648
6644
  ({
6649
6645
  id,
@@ -6681,12 +6677,12 @@ var WavelengthInput = forwardRef2(
6681
6677
  onBlurCallback,
6682
6678
  ...rest
6683
6679
  }, ref) => {
6684
- const internalRef = useRef19(null);
6680
+ const internalRef = useRef22(null);
6685
6681
  useImperativeHandle3(ref, () => ({
6686
6682
  ...internalRef.current,
6687
6683
  validate: () => internalRef.current?.validate?.(true)
6688
6684
  }));
6689
- useEffect21(() => {
6685
+ useEffect24(() => {
6690
6686
  const el = internalRef.current;
6691
6687
  if (!el) return;
6692
6688
  const set = (attr, val) => {
@@ -6759,7 +6755,7 @@ var WavelengthInput = forwardRef2(
6759
6755
  disabled,
6760
6756
  multiLine
6761
6757
  ]);
6762
- useEffect21(() => {
6758
+ useEffect24(() => {
6763
6759
  const el = internalRef.current;
6764
6760
  if (!el || !onBlurCallback) return;
6765
6761
  const handler = (e) => {
@@ -6771,7 +6767,7 @@ var WavelengthInput = forwardRef2(
6771
6767
  el.addEventListener("blur", handler);
6772
6768
  return () => el.removeEventListener("blur", handler);
6773
6769
  }, [onBlurCallback]);
6774
- useEffect21(() => {
6770
+ useEffect24(() => {
6775
6771
  const el = internalRef.current;
6776
6772
  if (!el || !onChange) return;
6777
6773
  const handler = (e) => {
@@ -6792,7 +6788,7 @@ var WavelengthInput = forwardRef2(
6792
6788
  ...style3,
6793
6789
  ...backgroundColor2 ? { ["--wavelength-label-background"]: backgroundColor2 } : {}
6794
6790
  };
6795
- return /* @__PURE__ */ jsx49("wavelength-input", { ref: internalRef, style: combinedStyle, ...rest });
6791
+ return /* @__PURE__ */ jsx50("wavelength-input", { ref: internalRef, style: combinedStyle, ...rest });
6796
6792
  }
6797
6793
  );
6798
6794
  WavelengthInput.displayName = "WavelengthInput";
@@ -6801,10 +6797,10 @@ WavelengthInput.displayName = "WavelengthInput";
6801
6797
  import { WavelengthInput as WavelengthInput2 } from "@wavelengthusaf/web-components";
6802
6798
 
6803
6799
  // src/components/DataTable/WavelengthDataTable.tsx
6804
- import { useEffect as useEffect22, useRef as useRef20, useState as useState9 } from "react";
6805
- import styled8 from "styled-components";
6806
- import { jsx as jsx50, jsxs as jsxs28 } from "react/jsx-runtime";
6807
- var ModalInputDiv = styled8.div`
6800
+ import { useEffect as useEffect25, useRef as useRef23, useState as useState9 } from "react";
6801
+ import styled7 from "styled-components";
6802
+ import { jsx as jsx51, jsxs as jsxs27 } from "react/jsx-runtime";
6803
+ var ModalInputDiv = styled7.div`
6808
6804
  display: flex;
6809
6805
  flex-direction: column; /* Corrected this line */
6810
6806
  gap: 3px;
@@ -6834,7 +6830,7 @@ var ModalInputDiv = styled8.div`
6834
6830
  }
6835
6831
  }
6836
6832
  `;
6837
- var ModalOverlay = styled8.div`
6833
+ var ModalOverlay = styled7.div`
6838
6834
  position: fixed;
6839
6835
  bottom: 19%;
6840
6836
  right: 15%;
@@ -6846,7 +6842,7 @@ var ModalOverlay = styled8.div`
6846
6842
  align-items: center;
6847
6843
  z-index: 1;
6848
6844
  `;
6849
- var ModalWrapper = styled8.div`
6845
+ var ModalWrapper = styled7.div`
6850
6846
  background-color: white;
6851
6847
  border-radius: 8px;
6852
6848
  padding: 20px;
@@ -6857,7 +6853,7 @@ var ModalWrapper = styled8.div`
6857
6853
  display: flex;
6858
6854
  align-items: center;
6859
6855
  `;
6860
- var ModalClose = styled8.button`
6856
+ var ModalClose = styled7.button`
6861
6857
  position: absolute;
6862
6858
  top: 10px;
6863
6859
  right: 10px;
@@ -6867,16 +6863,16 @@ var ModalClose = styled8.button`
6867
6863
  background: none;
6868
6864
  z-index: 2;
6869
6865
  `;
6870
- var TableHeadStyle = styled8.th`
6866
+ var TableHeadStyle = styled7.th`
6871
6867
  position: relative;
6872
6868
  `;
6873
- var KebabMenu = styled8.div`
6869
+ var KebabMenu = styled7.div`
6874
6870
  display: inline-block;
6875
6871
  position: absolute;
6876
6872
  right: 0;
6877
6873
  top: 2px;
6878
6874
  `;
6879
- var KebabIcon = styled8.div`
6875
+ var KebabIcon = styled7.div`
6880
6876
  cursor: pointer;
6881
6877
  font-size: 20px;
6882
6878
  padding: 5px;
@@ -6889,7 +6885,7 @@ var KebabIcon = styled8.div`
6889
6885
  color: #8fd8ff;
6890
6886
  }
6891
6887
  `;
6892
- var MenuOptions = styled8.ul`
6888
+ var MenuOptions = styled7.ul`
6893
6889
  position: absolute;
6894
6890
  right: 0;
6895
6891
  top: 100%;
@@ -6912,7 +6908,7 @@ var MenuOptions = styled8.ul`
6912
6908
  }
6913
6909
  }
6914
6910
  `;
6915
- var StyledBoxDiv = styled8.div`
6911
+ var StyledBoxDiv = styled7.div`
6916
6912
  background-color: white;
6917
6913
  width: 700px;
6918
6914
  height: 480px;
@@ -6920,7 +6916,7 @@ var StyledBoxDiv = styled8.div`
6920
6916
  border-top-left-radius: 10px;
6921
6917
  border-top-right-radius: 10px;
6922
6918
  `;
6923
- var StyledNavBoxDiv = styled8.div`
6919
+ var StyledNavBoxDiv = styled7.div`
6924
6920
  background-color: white;
6925
6921
  width: 700px;
6926
6922
  display: flex; /* Make parent a flex-container */
@@ -6930,13 +6926,13 @@ var StyledNavBoxDiv = styled8.div`
6930
6926
 
6931
6927
  box-shadow: 0.5px 3px 5px black;
6932
6928
  `;
6933
- var StyledTd = styled8.td`
6929
+ var StyledTd = styled7.td`
6934
6930
  border-top: 1px solid #c6c7cc;
6935
6931
  border-bottom: 1px solid #c6c7cc;
6936
6932
  padding: 10px 15px;
6937
6933
  vertical-align: middle;
6938
6934
  `;
6939
- var StyledTableTwo = styled8.table`
6935
+ var StyledTableTwo = styled7.table`
6940
6936
  width: 95%;
6941
6937
  height: 95%;
6942
6938
  border-collapse: collapse;
@@ -6962,7 +6958,7 @@ var StyledTableTwo = styled8.table`
6962
6958
  }
6963
6959
  }
6964
6960
  `;
6965
- var StyledInput = styled8.input`
6961
+ var StyledInput = styled7.input`
6966
6962
  height: 100%;
6967
6963
  width: 100%;
6968
6964
  outline: none;
@@ -6982,8 +6978,8 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
6982
6978
  const [currentPage, setCurrentPage] = useState9(1);
6983
6979
  const [isOpen, setIsOpen] = useState9(false);
6984
6980
  const [editingMenuKey, setEditingMenuKey] = useState9(null);
6985
- const menuRef = useRef20(null);
6986
- const modalRef = useRef20(null);
6981
+ const menuRef = useRef23(null);
6982
+ const modalRef = useRef23(null);
6987
6983
  function isNumeric(value) {
6988
6984
  return /^\d+$/.test(value);
6989
6985
  }
@@ -6991,7 +6987,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
6991
6987
  setSelectedValue(event.target.value);
6992
6988
  setLocalData(copiedArray);
6993
6989
  };
6994
- useEffect22(() => {
6990
+ useEffect25(() => {
6995
6991
  if (!selectedValue || searchItem === "") {
6996
6992
  setLocalData(copiedArray);
6997
6993
  setNoRowsOpen(false);
@@ -7021,7 +7017,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
7021
7017
  const closeModal = () => {
7022
7018
  setIsModalOpen(false);
7023
7019
  };
7024
- useEffect22(() => {
7020
+ useEffect25(() => {
7025
7021
  const handleClickOutside = (event) => {
7026
7022
  if (isModalOpen && modalRef.current && !modalRef.current.contains(event.target)) {
7027
7023
  closeModal();
@@ -7078,10 +7074,10 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
7078
7074
  setEditingId(null);
7079
7075
  };
7080
7076
  const headers = columns.map((column, index) => {
7081
- return /* @__PURE__ */ jsxs28(TableHeadStyle, { children: [
7077
+ return /* @__PURE__ */ jsxs27(TableHeadStyle, { children: [
7082
7078
  column.title,
7083
- /* @__PURE__ */ jsxs28(KebabMenu, { ref: menuRef, children: [
7084
- /* @__PURE__ */ jsx50(
7079
+ /* @__PURE__ */ jsxs27(KebabMenu, { ref: menuRef, children: [
7080
+ /* @__PURE__ */ jsx51(
7085
7081
  KebabIcon,
7086
7082
  {
7087
7083
  title: `KebabIcon-${index}`,
@@ -7091,27 +7087,27 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
7091
7087
  children: "\u22EE"
7092
7088
  }
7093
7089
  ),
7094
- isOpen && editingMenuKey === column.key && /* @__PURE__ */ jsxs28(MenuOptions, { children: [
7095
- sortOrder === "asc" ? /* @__PURE__ */ jsxs28("li", { title: `MenuListASC-${index}`, onClick: () => handleSort(column.key, "asc"), children: [
7096
- /* @__PURE__ */ jsx50("span", { children: "\u2B06" }),
7090
+ isOpen && editingMenuKey === column.key && /* @__PURE__ */ jsxs27(MenuOptions, { children: [
7091
+ sortOrder === "asc" ? /* @__PURE__ */ jsxs27("li", { title: `MenuListASC-${index}`, onClick: () => handleSort(column.key, "asc"), children: [
7092
+ /* @__PURE__ */ jsx51("span", { children: "\u2B06" }),
7097
7093
  " Sort ASC"
7098
- ] }) : /* @__PURE__ */ jsxs28("li", { title: `MenuListDES-${index}`, onClick: () => handleSort(column.key, "desc"), children: [
7099
- /* @__PURE__ */ jsx50("span", { children: "\u2B07" }),
7094
+ ] }) : /* @__PURE__ */ jsxs27("li", { title: `MenuListDES-${index}`, onClick: () => handleSort(column.key, "desc"), children: [
7095
+ /* @__PURE__ */ jsx51("span", { children: "\u2B07" }),
7100
7096
  " Sort DESC"
7101
7097
  ] }),
7102
- /* @__PURE__ */ jsxs28("li", { title: `MenuListFilterButton-${index}`, onClick: openModal, children: [
7103
- /* @__PURE__ */ jsx50("span", { children: "\u23F7" }),
7098
+ /* @__PURE__ */ jsxs27("li", { title: `MenuListFilterButton-${index}`, onClick: openModal, children: [
7099
+ /* @__PURE__ */ jsx51("span", { children: "\u23F7" }),
7104
7100
  " Filter"
7105
7101
  ] }),
7106
- isModalOpen && /* @__PURE__ */ jsx50(ModalOverlay, { children: /* @__PURE__ */ jsxs28(ModalWrapper, { ref: modalRef, children: [
7107
- /* @__PURE__ */ jsx50(ModalClose, { title: `ModalClose-${index}`, onClick: closeModal, children: "\xD7" }),
7108
- /* @__PURE__ */ jsxs28(ModalInputDiv, { children: [
7109
- /* @__PURE__ */ jsx50("label", { htmlFor: "filterSelectId", children: "Columns: " }),
7110
- /* @__PURE__ */ jsx50("select", { title: `filterSelect-${index}`, id: "filterSelectId", value: selectedValue, onChange: handleChange, children: columns.map((item) => /* @__PURE__ */ jsx50("option", { children: item.key }, item.key)) })
7102
+ isModalOpen && /* @__PURE__ */ jsx51(ModalOverlay, { children: /* @__PURE__ */ jsxs27(ModalWrapper, { ref: modalRef, children: [
7103
+ /* @__PURE__ */ jsx51(ModalClose, { title: `ModalClose-${index}`, onClick: closeModal, children: "\xD7" }),
7104
+ /* @__PURE__ */ jsxs27(ModalInputDiv, { children: [
7105
+ /* @__PURE__ */ jsx51("label", { htmlFor: "filterSelectId", children: "Columns: " }),
7106
+ /* @__PURE__ */ jsx51("select", { title: `filterSelect-${index}`, id: "filterSelectId", value: selectedValue, onChange: handleChange, children: columns.map((item) => /* @__PURE__ */ jsx51("option", { children: item.key }, item.key)) })
7111
7107
  ] }),
7112
- /* @__PURE__ */ jsxs28(ModalInputDiv, { children: [
7113
- /* @__PURE__ */ jsx50("label", { htmlFor: "filterInputId", children: "Values: " }),
7114
- /* @__PURE__ */ jsx50(
7108
+ /* @__PURE__ */ jsxs27(ModalInputDiv, { children: [
7109
+ /* @__PURE__ */ jsx51("label", { htmlFor: "filterInputId", children: "Values: " }),
7110
+ /* @__PURE__ */ jsx51(
7115
7111
  "input",
7116
7112
  {
7117
7113
  title: `Inputfiltertest-${index}`,
@@ -7132,8 +7128,8 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
7132
7128
  ] }, index)
7133
7129
  ] }, `headCell-${index}`);
7134
7130
  });
7135
- const rows = !currentPageData?.length || noRowsOpen ? /* @__PURE__ */ jsx50("tr", { children: /* @__PURE__ */ jsx50("td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : currentPageData?.map((item) => /* @__PURE__ */ jsx50("tr", { children: columns.map((column, index2) => {
7136
- return /* @__PURE__ */ jsx50(StyledTd, { children: editingId === item.id && editedColumnKey === column.key ? /* @__PURE__ */ jsx50(
7131
+ const rows = !currentPageData?.length || noRowsOpen ? /* @__PURE__ */ jsx51("tr", { children: /* @__PURE__ */ jsx51("td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : currentPageData?.map((item) => /* @__PURE__ */ jsx51("tr", { children: columns.map((column, index2) => {
7132
+ return /* @__PURE__ */ jsx51(StyledTd, { children: editingId === item.id && editedColumnKey === column.key ? /* @__PURE__ */ jsx51(
7137
7133
  StyledInput,
7138
7134
  {
7139
7135
  title: `styledRow-${item.id}-${column.key}-${index2}`,
@@ -7150,42 +7146,42 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
7150
7146
  },
7151
7147
  autoFocus: true
7152
7148
  }
7153
- ) : /* @__PURE__ */ jsx50("span", { title: `spanRow-${item.id}-${column.key}-${index2}`, onDoubleClick: () => handleEdit(item.id, item[column.key], column.key), children: item[column.key] }) }, index2);
7149
+ ) : /* @__PURE__ */ jsx51("span", { title: `spanRow-${item.id}-${column.key}-${index2}`, onDoubleClick: () => handleEdit(item.id, item[column.key], column.key), children: item[column.key] }) }, index2);
7154
7150
  }) }, item.id));
7155
- return /* @__PURE__ */ jsxs28("div", { id, children: [
7156
- /* @__PURE__ */ jsx50(StyledBoxDiv, { title: "StyledBoxDiv", children: /* @__PURE__ */ jsxs28(StyledTableTwo, { title: "StyledTable", children: [
7157
- /* @__PURE__ */ jsx50("thead", { children: /* @__PURE__ */ jsx50("tr", { children: headers }) }),
7158
- /* @__PURE__ */ jsx50("tbody", { children: rows })
7151
+ return /* @__PURE__ */ jsxs27("div", { id, children: [
7152
+ /* @__PURE__ */ jsx51(StyledBoxDiv, { title: "StyledBoxDiv", children: /* @__PURE__ */ jsxs27(StyledTableTwo, { title: "StyledTable", children: [
7153
+ /* @__PURE__ */ jsx51("thead", { children: /* @__PURE__ */ jsx51("tr", { children: headers }) }),
7154
+ /* @__PURE__ */ jsx51("tbody", { children: rows })
7159
7155
  ] }) }),
7160
- /* @__PURE__ */ jsx50(StyledNavBoxDiv, { children: /* @__PURE__ */ jsx50(WavelengthDefaultPagination_default, { totalPages, currentPageNumber: currentPage, onPageChange: setCurrentPage, style: "circular" }) })
7156
+ /* @__PURE__ */ jsx51(StyledNavBoxDiv, { children: /* @__PURE__ */ jsx51(WavelengthDefaultPagination_default, { totalPages, currentPageNumber: currentPage, onPageChange: setCurrentPage, style: "circular" }) })
7161
7157
  ] });
7162
7158
  };
7163
7159
  WavelengthDataTable.displayName = "WavelengthDataTable";
7164
7160
 
7165
7161
  // src/components/DataTable/SubRowTable/ChildSubTable.tsx
7166
- import { useMemo as useMemo3, useState as useState10, Fragment as Fragment12 } from "react";
7167
- import styled9 from "styled-components";
7168
- import { Fragment as Fragment13, jsx as jsx51, jsxs as jsxs29 } from "react/jsx-runtime";
7169
- var TableContainer = styled9.div`
7162
+ import { useMemo as useMemo3, useState as useState10, Fragment as Fragment11 } from "react";
7163
+ import styled8 from "styled-components";
7164
+ import { Fragment as Fragment12, jsx as jsx52, jsxs as jsxs28 } from "react/jsx-runtime";
7165
+ var TableContainer = styled8.div`
7170
7166
  width: 1200px;
7171
7167
  border-radius: 16px;
7172
7168
  `;
7173
- var TableRow = styled9.div`
7169
+ var TableRow = styled8.div`
7174
7170
  display: grid;
7175
7171
  grid-template-columns: ${({ $amountofColumns }) => `repeat(${$amountofColumns}, 1fr)`};
7176
7172
  `;
7177
- var TablePrimaryRow = styled9.div`
7173
+ var TablePrimaryRow = styled8.div`
7178
7174
  display: grid;
7179
7175
  grid-template-columns: ${({ $amountofColumns }) => `repeat(${$amountofColumns}, 1fr)`};
7180
7176
  `;
7181
- var BodyRowContainer = styled9.div`
7177
+ var BodyRowContainer = styled8.div`
7182
7178
  border: 1px solid black;
7183
7179
  background-color: white;
7184
7180
  border-radius: 16px;
7185
7181
  overflow: hidden;
7186
7182
  margin-bottom: 10px;
7187
7183
  `;
7188
- var TableHeaderCell = styled9.div`
7184
+ var TableHeaderCell = styled8.div`
7189
7185
  padding-left: 12px;
7190
7186
  padding-right: 25px;
7191
7187
  height: 60px;
@@ -7193,7 +7189,7 @@ var TableHeaderCell = styled9.div`
7193
7189
  display: flex;
7194
7190
  align-items: center;
7195
7191
  `;
7196
- var TableBodyCell = styled9.div`
7192
+ var TableBodyCell = styled8.div`
7197
7193
  background-color: #fff;
7198
7194
  color: black;
7199
7195
  position: relative;
@@ -7202,27 +7198,27 @@ var TableBodyCell = styled9.div`
7202
7198
  font-size: ${(props) => props.$primaryBoldState ? "24px" : "16px"};
7203
7199
  font-weight: ${(props) => props.$primaryBoldState ? "bold" : "normal"};
7204
7200
  `;
7205
- var ButtonStylingRow = styled9.div`
7201
+ var ButtonStylingRow = styled8.div`
7206
7202
  display: flex;
7207
7203
  flex-direction: row;
7208
7204
  `;
7209
- var BottomArrowBar = styled9.div`
7205
+ var BottomArrowBar = styled8.div`
7210
7206
  background-color: #e9e9e9;
7211
7207
  text-align: center;
7212
7208
  `;
7213
- var BottomUpArrowBar = styled9.div`
7209
+ var BottomUpArrowBar = styled8.div`
7214
7210
  background-color: #e9e9e9;
7215
7211
  text-align: center;
7216
7212
  position: relative;
7217
7213
  `;
7218
- var SubDataTable = styled9.table`
7214
+ var SubDataTable = styled8.table`
7219
7215
  background-color: white;
7220
7216
  color: black;
7221
7217
  width: 100%;
7222
7218
  border-collapse: collapse;
7223
7219
  line-height: 1.2;
7224
7220
  `;
7225
- var SubDataTableHeaderRow = styled9.tr`
7221
+ var SubDataTableHeaderRow = styled8.tr`
7226
7222
  height: 50px;
7227
7223
  background-color: #304359;
7228
7224
  color: white;
@@ -7233,10 +7229,10 @@ var SubDataTableHeaderRow = styled9.tr`
7233
7229
  white-space: nowrap;
7234
7230
  }
7235
7231
  `;
7236
- var SubDataTableBodyRow = styled9.tbody`
7232
+ var SubDataTableBodyRow = styled8.tbody`
7237
7233
  font-size: 14px;
7238
7234
  `;
7239
- var SubDataTableBodyRowContainer = styled9.tr`
7235
+ var SubDataTableBodyRowContainer = styled8.tr`
7240
7236
  td {
7241
7237
  padding: 10px 0;
7242
7238
  max-width: 100px;
@@ -7246,13 +7242,13 @@ var SubDataTableBodyRowContainer = styled9.tr`
7246
7242
  background-color: #96e0e5;
7247
7243
  }
7248
7244
  `;
7249
- var SubDataTableCell = styled9.td`
7245
+ var SubDataTableCell = styled8.td`
7250
7246
  text-align: center;
7251
7247
  `;
7252
- var SubDataHeaderColumn = styled9.thead`
7248
+ var SubDataHeaderColumn = styled8.thead`
7253
7249
  background-color: #304359;
7254
7250
  `;
7255
- var SortButton = styled9.button`
7251
+ var SortButton = styled8.button`
7256
7252
  font-size: 16px;
7257
7253
  font-weight: bold;
7258
7254
  color: white;
@@ -7260,7 +7256,7 @@ var SortButton = styled9.button`
7260
7256
  border: none;
7261
7257
  white-space: nowrap;
7262
7258
  `;
7263
- var DownloadMissionButton = styled9.button`
7259
+ var DownloadMissionButton = styled8.button`
7264
7260
  width: 217px;
7265
7261
  height: 45px;
7266
7262
  padding: 12px 32px 12px 32px;
@@ -7289,7 +7285,7 @@ var DownloadMissionButton = styled9.button`
7289
7285
  transition: background-color 0.2s ease;
7290
7286
  }
7291
7287
  `;
7292
- var AddButton = styled9.button`
7288
+ var AddButton = styled8.button`
7293
7289
  width: 130px;
7294
7290
  height: 45px;
7295
7291
  border: 1px solid #1a8083;
@@ -7319,7 +7315,7 @@ var AddButton = styled9.button`
7319
7315
  transition: background-color 0.2s ease;
7320
7316
  }
7321
7317
  `;
7322
- var DownloadArrow = styled9.button`
7318
+ var DownloadArrow = styled8.button`
7323
7319
  background-color: transparent;
7324
7320
  border: none;
7325
7321
 
@@ -7402,45 +7398,45 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
7402
7398
  return result;
7403
7399
  }, [data, sortKey, sortOrder, sortSubKey, sortSubOrder]);
7404
7400
  const renderSortButton = (column, sortOrder2, sortKey2) => {
7405
- return sortKey2 === column.key ? sortOrder2 === "asc" ? /* @__PURE__ */ jsx51(Fragment13, { children: /* @__PURE__ */ jsxs29(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
7401
+ return sortKey2 === column.key ? sortOrder2 === "asc" ? /* @__PURE__ */ jsx52(Fragment12, { children: /* @__PURE__ */ jsxs28(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
7406
7402
  column.title,
7407
7403
  " ",
7408
- /* @__PURE__ */ jsx51("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx51("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
7409
- ] }) }) : /* @__PURE__ */ jsx51(Fragment13, { children: /* @__PURE__ */ jsxs29(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
7404
+ /* @__PURE__ */ jsx52("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx52("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
7405
+ ] }) }) : /* @__PURE__ */ jsx52(Fragment12, { children: /* @__PURE__ */ jsxs28(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
7410
7406
  column.title,
7411
7407
  " ",
7412
- /* @__PURE__ */ jsx51("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx51("path", { d: "M13.2375 9.2627L7.5 3.5377L1.7625 9.2627L0 7.5002L7.5 0.000196457L15 7.5002L13.2375 9.2627Z", fill: "white" }) })
7413
- ] }) }) : /* @__PURE__ */ jsx51(Fragment13, { children: /* @__PURE__ */ jsxs29(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
7408
+ /* @__PURE__ */ jsx52("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx52("path", { d: "M13.2375 9.2627L7.5 3.5377L1.7625 9.2627L0 7.5002L7.5 0.000196457L15 7.5002L13.2375 9.2627Z", fill: "white" }) })
7409
+ ] }) }) : /* @__PURE__ */ jsx52(Fragment12, { children: /* @__PURE__ */ jsxs28(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
7414
7410
  column.title,
7415
7411
  " ",
7416
- /* @__PURE__ */ jsx51("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx51("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
7412
+ /* @__PURE__ */ jsx52("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx52("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
7417
7413
  ] }) });
7418
7414
  };
7419
7415
  const renderSortSubButton = (column, sortSubOrder2, sortSubKey2) => {
7420
7416
  const columnKey = trimBeforePeriod2(column.key);
7421
- return sortSubKey2 === columnKey ? sortSubOrder2 === "asc" ? /* @__PURE__ */ jsxs29(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
7417
+ return sortSubKey2 === columnKey ? sortSubOrder2 === "asc" ? /* @__PURE__ */ jsxs28(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
7422
7418
  column.title,
7423
7419
  " ",
7424
- /* @__PURE__ */ jsx51("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx51("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
7425
- ] }) : /* @__PURE__ */ jsxs29(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
7420
+ /* @__PURE__ */ jsx52("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx52("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
7421
+ ] }) : /* @__PURE__ */ jsxs28(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
7426
7422
  column.title,
7427
7423
  " ",
7428
- /* @__PURE__ */ jsx51("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx51("path", { d: "M13.2375 9.2627L7.5 3.5377L1.7625 9.2627L0 7.5002L7.5 0.000196457L15 7.5002L13.2375 9.2627Z", fill: "white" }) })
7429
- ] }) : /* @__PURE__ */ jsxs29(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
7424
+ /* @__PURE__ */ jsx52("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx52("path", { d: "M13.2375 9.2627L7.5 3.5377L1.7625 9.2627L0 7.5002L7.5 0.000196457L15 7.5002L13.2375 9.2627Z", fill: "white" }) })
7425
+ ] }) : /* @__PURE__ */ jsxs28(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
7430
7426
  column.title,
7431
7427
  " ",
7432
- /* @__PURE__ */ jsx51("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx51("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
7428
+ /* @__PURE__ */ jsx52("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx52("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
7433
7429
  ] });
7434
7430
  };
7435
7431
  const headers = HeadColumns.map((column) => {
7436
- return /* @__PURE__ */ jsx51(TableHeaderCell, { children: renderSortButton(column, sortOrder, sortKey) }, `HeaderCell-${column.key}`);
7432
+ return /* @__PURE__ */ jsx52(TableHeaderCell, { children: renderSortButton(column, sortOrder, sortKey) }, `HeaderCell-${column.key}`);
7437
7433
  });
7438
7434
  const SubDataHeaders = SubDataColumns.map((column, index) => {
7439
- return /* @__PURE__ */ jsx51("th", { children: renderSortSubButton(column, sortSubOrder, sortSubKey) }, `SubHeadCell-${index}`);
7435
+ return /* @__PURE__ */ jsx52("th", { children: renderSortSubButton(column, sortSubOrder, sortSubKey) }, `SubHeadCell-${index}`);
7440
7436
  });
7441
7437
  const subDataRows = (itemId) => {
7442
- return processedRowData.filter((item) => item.Details?.relationId === itemId).map((item) => /* @__PURE__ */ jsx51(Fragment12, { children: item.Details?.fileObjects.map((fileItem, index) => /* @__PURE__ */ jsxs29(SubDataTableBodyRowContainer, { children: [
7443
- /* @__PURE__ */ jsx51("td", { children: /* @__PURE__ */ jsx51(DownloadArrow, { onClick: downloadArrowOnClick, children: /* @__PURE__ */ jsx51("svg", { width: "17", height: "16", viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx51(
7438
+ return processedRowData.filter((item) => item.Details?.relationId === itemId).map((item) => /* @__PURE__ */ jsx52(Fragment11, { children: item.Details?.fileObjects.map((fileItem, index) => /* @__PURE__ */ jsxs28(SubDataTableBodyRowContainer, { children: [
7439
+ /* @__PURE__ */ jsx52("td", { children: /* @__PURE__ */ jsx52(DownloadArrow, { onClick: downloadArrowOnClick, children: /* @__PURE__ */ jsx52("svg", { width: "17", height: "16", viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx52(
7444
7440
  "path",
7445
7441
  {
7446
7442
  d: "M8.5 12L3.5 7L4.9 5.55L7.5 8.15V0H9.5V8.15L12.1 5.55L13.5 7L8.5 12ZM2.5 16C1.95 16 1.47917 15.8042 1.0875 15.4125C0.695833 15.0208 0.5 14.55 0.5 14V11H2.5V14H14.5V11H16.5V14C16.5 14.55 16.3042 15.0208 15.9125 15.4125C15.5208 15.8042 15.05 16 14.5 16H2.5Z",
@@ -7451,45 +7447,45 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
7451
7447
  const columnKey = trimBeforePeriod2(column.key);
7452
7448
  const value = fileItem[columnKey];
7453
7449
  if (value !== void 0) {
7454
- return /* @__PURE__ */ jsx51(SubDataTableCell, { children: /* @__PURE__ */ jsx51("span", { children: value }, `span-${item.Details?.relationId}-${fileItem.id}-${index}-${column.title}`) }, `fileitem-${item}-${item.Details?.relationId}-${fileItem.id}-${index}-${column.title}`);
7450
+ return /* @__PURE__ */ jsx52(SubDataTableCell, { children: /* @__PURE__ */ jsx52("span", { children: value }, `span-${item.Details?.relationId}-${fileItem.id}-${index}-${column.title}`) }, `fileitem-${item}-${item.Details?.relationId}-${fileItem.id}-${index}-${column.title}`);
7455
7451
  }
7456
7452
  })
7457
7453
  ] }, `${item}-${item.Details?.relationId}-${fileItem.id}-${index}`)) }, `SDR-${item.id}-${item.Details?.relationId}`));
7458
7454
  };
7459
- const dataRows = processedRowData?.map((item, index) => /* @__PURE__ */ jsxs29(BodyRowContainer, { children: [
7460
- /* @__PURE__ */ jsx51(TableRow, { $amountofColumns: HeadColumns.length, children: HeadColumns.map((column) => /* @__PURE__ */ jsx51(TableBodyCell, { $primaryBoldState: column.PrimaryBoldText, children: item[column.key] }, `TableBodycell-${item.id}-${column.key}`)) }),
7461
- /* @__PURE__ */ jsxs29(ButtonStylingRow, { children: [
7462
- /* @__PURE__ */ jsx51(DownloadMissionButton, { onClick: downloadMissionOnClick, children: "Download Mission" }),
7463
- /* @__PURE__ */ jsx51(AddButton, { onClick: addFilesOnClick, children: "Add files" })
7455
+ const dataRows = processedRowData?.map((item, index) => /* @__PURE__ */ jsxs28(BodyRowContainer, { children: [
7456
+ /* @__PURE__ */ jsx52(TableRow, { $amountofColumns: HeadColumns.length, children: HeadColumns.map((column) => /* @__PURE__ */ jsx52(TableBodyCell, { $primaryBoldState: column.PrimaryBoldText, children: item[column.key] }, `TableBodycell-${item.id}-${column.key}`)) }),
7457
+ /* @__PURE__ */ jsxs28(ButtonStylingRow, { children: [
7458
+ /* @__PURE__ */ jsx52(DownloadMissionButton, { onClick: downloadMissionOnClick, children: "Download Mission" }),
7459
+ /* @__PURE__ */ jsx52(AddButton, { onClick: addFilesOnClick, children: "Add files" })
7464
7460
  ] }),
7465
- openRow !== item.id && /* @__PURE__ */ jsx51(BottomArrowBar, { onClick: () => toggleDropdown(item.id), children: /* @__PURE__ */ jsx51("svg", { width: "92", height: "14", viewBox: "0 0 92 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx51("path", { d: "M64 0L44 6L24 0H0L44 14L92 0H64Z", fill: "#7A7A7A" }) }) }),
7466
- openRow === item.id && /* @__PURE__ */ jsxs29("div", { children: [
7467
- /* @__PURE__ */ jsxs29(SubDataTable, { children: [
7468
- /* @__PURE__ */ jsx51(SubDataHeaderColumn, { children: /* @__PURE__ */ jsxs29(SubDataTableHeaderRow, { children: [
7469
- /* @__PURE__ */ jsx51("th", {}),
7461
+ openRow !== item.id && /* @__PURE__ */ jsx52(BottomArrowBar, { onClick: () => toggleDropdown(item.id), children: /* @__PURE__ */ jsx52("svg", { width: "92", height: "14", viewBox: "0 0 92 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx52("path", { d: "M64 0L44 6L24 0H0L44 14L92 0H64Z", fill: "#7A7A7A" }) }) }),
7462
+ openRow === item.id && /* @__PURE__ */ jsxs28("div", { children: [
7463
+ /* @__PURE__ */ jsxs28(SubDataTable, { children: [
7464
+ /* @__PURE__ */ jsx52(SubDataHeaderColumn, { children: /* @__PURE__ */ jsxs28(SubDataTableHeaderRow, { children: [
7465
+ /* @__PURE__ */ jsx52("th", {}),
7470
7466
  SubDataHeaders
7471
7467
  ] }) }),
7472
- /* @__PURE__ */ jsx51(SubDataTableBodyRow, { children: subDataRows(item.id) })
7468
+ /* @__PURE__ */ jsx52(SubDataTableBodyRow, { children: subDataRows(item.id) })
7473
7469
  ] }),
7474
- /* @__PURE__ */ jsx51(BottomUpArrowBar, { onClick: () => toggleUpward(), children: /* @__PURE__ */ jsx51("svg", { width: "92", height: "14", viewBox: "0 0 92 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx51("path", { d: "M64 14L44 8L24 14H0L44 0L92 14H64Z", fill: "#7A7A7A" }) }) })
7470
+ /* @__PURE__ */ jsx52(BottomUpArrowBar, { onClick: () => toggleUpward(), children: /* @__PURE__ */ jsx52("svg", { width: "92", height: "14", viewBox: "0 0 92 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx52("path", { d: "M64 14L44 8L24 14H0L44 0L92 14H64Z", fill: "#7A7A7A" }) }) })
7475
7471
  ] })
7476
7472
  ] }, `Bodycontainer-${item.id}-${index}`));
7477
- return /* @__PURE__ */ jsxs29(TableContainer, { children: [
7478
- /* @__PURE__ */ jsx51(TablePrimaryRow, { $amountofColumns: HeadColumns.length, children: headers }),
7479
- /* @__PURE__ */ jsx51("div", { title: "tablebodies", children: dataRows })
7473
+ return /* @__PURE__ */ jsxs28(TableContainer, { children: [
7474
+ /* @__PURE__ */ jsx52(TablePrimaryRow, { $amountofColumns: HeadColumns.length, children: headers }),
7475
+ /* @__PURE__ */ jsx52("div", { title: "tablebodies", children: dataRows })
7480
7476
  ] });
7481
7477
  };
7482
7478
  ChildDataTable.displayName = "ChildDataTable";
7483
7479
 
7484
7480
  // src/components/DataTable/SubRowTable/ChildDataTable.tsx
7485
- import { useRef as useRef21, useEffect as useEffect23 } from "react";
7481
+ import { useRef as useRef24, useEffect as useEffect26 } from "react";
7486
7482
  import "@wavelengthusaf/web-components";
7487
7483
  import { createRoot } from "react-dom/client";
7488
- import { jsx as jsx52 } from "react/jsx-runtime";
7484
+ import { jsx as jsx53 } from "react/jsx-runtime";
7489
7485
  var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdownButtonIcon, ...rest }) => {
7490
- const tableRef = useRef21(null);
7491
- const reactDropdownRoots = useRef21(/* @__PURE__ */ new Map());
7492
- useEffect23(() => {
7486
+ const tableRef = useRef24(null);
7487
+ const reactDropdownRoots = useRef24(/* @__PURE__ */ new Map());
7488
+ useEffect26(() => {
7493
7489
  const customChildDataTableElement = tableRef.current;
7494
7490
  if (!customChildDataTableElement) return;
7495
7491
  if (columns !== void 0) customChildDataTableElement.setColumns = columns;
@@ -7498,7 +7494,7 @@ var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdow
7498
7494
  if (sortIcon !== void 0) customChildDataTableElement.setSortIcon = sortIcon;
7499
7495
  if (dropdownButtonIcon !== void 0) customChildDataTableElement.setDropdownButtonIcon = dropdownButtonIcon;
7500
7496
  }, [columns, data, dropdownArrowLocation, sortIcon, dropdownButtonIcon]);
7501
- useEffect23(() => {
7497
+ useEffect26(() => {
7502
7498
  const el = tableRef.current;
7503
7499
  if (!el) return;
7504
7500
  const handleReactDropdown = (event) => {
@@ -7535,7 +7531,7 @@ var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdow
7535
7531
  el.removeEventListener("cleanupDropdown", handleCleanupDropdown);
7536
7532
  };
7537
7533
  }, [data]);
7538
- return /* @__PURE__ */ jsx52("wavelength-child-data-table", { ref: tableRef, ...rest });
7534
+ return /* @__PURE__ */ jsx53("wavelength-child-data-table", { ref: tableRef, ...rest });
7539
7535
  };
7540
7536
  ChildDataTable2.displayName = "ChildDataTable";
7541
7537
 
@@ -7544,9 +7540,9 @@ import { ChildDataTable as ChildDataTable3 } from "@wavelengthusaf/web-component
7544
7540
 
7545
7541
  // src/components/DataTable/NestedDataTable/NestedDataTable.tsx
7546
7542
  import { useState as useState11 } from "react";
7547
- import styled10 from "styled-components";
7548
- import { Fragment as Fragment14, jsx as jsx53, jsxs as jsxs30 } from "react/jsx-runtime";
7549
- var TableStyle = styled10.table`
7543
+ import styled9 from "styled-components";
7544
+ import { Fragment as Fragment13, jsx as jsx54, jsxs as jsxs29 } from "react/jsx-runtime";
7545
+ var TableStyle = styled9.table`
7550
7546
  width: 100%;
7551
7547
  height: 100%;
7552
7548
  border-collapse: collapse;
@@ -7562,26 +7558,26 @@ var TableStyle = styled10.table`
7562
7558
  margin-right: auto;
7563
7559
  position: absolute;
7564
7560
  `;
7565
- var MainThHeaders = styled10.th`
7561
+ var MainThHeaders = styled9.th`
7566
7562
  &:not(:last-child) {
7567
7563
  border-right: 1px solid #c6c7cc;
7568
7564
  }
7569
7565
  `;
7570
- var SubDataTr = styled10.tr`
7566
+ var SubDataTr = styled9.tr`
7571
7567
  background-color: white;
7572
7568
 
7573
7569
  &:nth-child(even) {
7574
7570
  background-color: #e0ffff;
7575
7571
  }
7576
7572
  `;
7577
- var PrimaryTrRows = styled10.tr`
7573
+ var PrimaryTrRows = styled9.tr`
7578
7574
  background-color: ${(props) => props.$index % 2 === 0 ? "white" : "#e0ffff"};
7579
7575
  `;
7580
- var SubTrRows = styled10.tr`
7576
+ var SubTrRows = styled9.tr`
7581
7577
  background-color: ${(props) => props.$index % 2 === 0 ? "white" : "#e0ffff"};
7582
7578
  height: 120px;
7583
7579
  `;
7584
- var SubTableStyle = styled10.table`
7580
+ var SubTableStyle = styled9.table`
7585
7581
  width: 95%;
7586
7582
  border-collapse: collapse;
7587
7583
  margin-top: -15px;
@@ -7601,7 +7597,7 @@ var SubTableStyle = styled10.table`
7601
7597
  }
7602
7598
  }
7603
7599
  `;
7604
- var DropdownButton = styled10.button`
7600
+ var DropdownButton = styled9.button`
7605
7601
  background-color: transparent;
7606
7602
  background-repeat: no-repeat;
7607
7603
  border: none;
@@ -7611,7 +7607,7 @@ var DropdownButton = styled10.button`
7611
7607
  font-weight: bold; /* This makes the UTF symbols bold */
7612
7608
  font-size: 20px;
7613
7609
  `;
7614
- var PrimaryTdSpan = styled10.td`
7610
+ var PrimaryTdSpan = styled9.td`
7615
7611
  &:not(:last-child) {
7616
7612
  border-right: 1px solid black;
7617
7613
  }
@@ -7632,57 +7628,57 @@ var NestedDataTable = ({ data, columns, id }) => {
7632
7628
  setPrimaryRowIndex(rowIndex);
7633
7629
  };
7634
7630
  const headers = HeadColumns.map((column, index) => {
7635
- return /* @__PURE__ */ jsx53(MainThHeaders, { children: column.title }, `headCell-${index}`);
7631
+ return /* @__PURE__ */ jsx54(MainThHeaders, { children: column.title }, `headCell-${index}`);
7636
7632
  });
7637
7633
  const SubDataHeaders = SubDataColumns.map((column, index) => {
7638
- return /* @__PURE__ */ jsx53("th", { children: column.title }, `SubHeadCell-${index}`);
7634
+ return /* @__PURE__ */ jsx54("th", { children: column.title }, `SubHeadCell-${index}`);
7639
7635
  });
7640
- const subDataRows = !data?.length ? /* @__PURE__ */ jsx53("tr", { children: /* @__PURE__ */ jsx53("td", { title: "NoSubDataRows", colSpan: columns.length, children: "No data" }) }) : data.map((item, index) => /* @__PURE__ */ jsx53(Fragment14, { children: /* @__PURE__ */ jsx53(SubDataTr, { children: SubDataColumns.map((column, colIndex) => {
7636
+ const subDataRows = !data?.length ? /* @__PURE__ */ jsx54("tr", { children: /* @__PURE__ */ jsx54("td", { title: "NoSubDataRows", colSpan: columns.length, children: "No data" }) }) : data.map((item, index) => /* @__PURE__ */ jsx54(Fragment13, { children: /* @__PURE__ */ jsx54(SubDataTr, { children: SubDataColumns.map((column, colIndex) => {
7641
7637
  const columnKey = trimBeforePeriod(column.key);
7642
7638
  const value = item.Details?.[columnKey];
7643
7639
  console.log("value: ", value);
7644
7640
  if (value !== void 0) {
7645
- return /* @__PURE__ */ jsx53("td", { children: /* @__PURE__ */ jsx53("span", { children: value }) }, `Span-${item.id}-${colIndex}`);
7641
+ return /* @__PURE__ */ jsx54("td", { children: /* @__PURE__ */ jsx54("span", { children: value }) }, `Span-${item.id}-${colIndex}`);
7646
7642
  }
7647
7643
  }) }, `Sub-${item.id}-${index}`) }));
7648
- const childRows = /* @__PURE__ */ jsxs30(SubTableStyle, { children: [
7649
- /* @__PURE__ */ jsx53("thead", { children: /* @__PURE__ */ jsx53("tr", { children: SubDataHeaders }) }),
7650
- /* @__PURE__ */ jsx53("tbody", { children: subDataRows })
7644
+ const childRows = /* @__PURE__ */ jsxs29(SubTableStyle, { children: [
7645
+ /* @__PURE__ */ jsx54("thead", { children: /* @__PURE__ */ jsx54("tr", { children: SubDataHeaders }) }),
7646
+ /* @__PURE__ */ jsx54("tbody", { children: subDataRows })
7651
7647
  ] });
7652
- const rows = !data?.length ? /* @__PURE__ */ jsx53("tr", { children: /* @__PURE__ */ jsx53("td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : data?.map((item, index) => /* @__PURE__ */ jsxs30(Fragment14, { children: [
7653
- /* @__PURE__ */ jsxs30(PrimaryTrRows, { $index: index, children: [
7654
- /* @__PURE__ */ jsx53(DropdownButton, { onClick: () => toggleDropdown(index), children: isAscending && isOpen && primaryRowIndex === index ? /* @__PURE__ */ jsx53(Fragment14, { children: "\u2227" }) : /* @__PURE__ */ jsx53(Fragment14, { children: "\u2228" }) }),
7648
+ const rows = !data?.length ? /* @__PURE__ */ jsx54("tr", { children: /* @__PURE__ */ jsx54("td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : data?.map((item, index) => /* @__PURE__ */ jsxs29(Fragment13, { children: [
7649
+ /* @__PURE__ */ jsxs29(PrimaryTrRows, { $index: index, children: [
7650
+ /* @__PURE__ */ jsx54(DropdownButton, { onClick: () => toggleDropdown(index), children: isAscending && isOpen && primaryRowIndex === index ? /* @__PURE__ */ jsx54(Fragment13, { children: "\u2227" }) : /* @__PURE__ */ jsx54(Fragment13, { children: "\u2228" }) }),
7655
7651
  HeadColumns.map((column, index2) => {
7656
- return /* @__PURE__ */ jsx53(PrimaryTdSpan, { children: /* @__PURE__ */ jsx53("span", { title: `spanRow-${item.id}-${column.key}-${index2}`, children: item[column.key] }) }, `${item.id}-${index}=${index2}`);
7652
+ return /* @__PURE__ */ jsx54(PrimaryTdSpan, { children: /* @__PURE__ */ jsx54("span", { title: `spanRow-${item.id}-${column.key}-${index2}`, children: item[column.key] }) }, `${item.id}-${index}=${index2}`);
7657
7653
  })
7658
7654
  ] }, index),
7659
- isOpen && primaryRowIndex === index && /* @__PURE__ */ jsx53(SubTrRows, { $index: index, children: /* @__PURE__ */ jsx53("td", { colSpan: HeadColumns.length + 1, children: childRows }) }, index)
7655
+ isOpen && primaryRowIndex === index && /* @__PURE__ */ jsx54(SubTrRows, { $index: index, children: /* @__PURE__ */ jsx54("td", { colSpan: HeadColumns.length + 1, children: childRows }) }, index)
7660
7656
  ] }));
7661
- return /* @__PURE__ */ jsx53("div", { id, children: /* @__PURE__ */ jsxs30(TableStyle, { children: [
7662
- /* @__PURE__ */ jsx53("thead", { children: /* @__PURE__ */ jsxs30("tr", { children: [
7663
- /* @__PURE__ */ jsx53("th", { title: "dropdownth" }),
7657
+ return /* @__PURE__ */ jsx54("div", { id, children: /* @__PURE__ */ jsxs29(TableStyle, { children: [
7658
+ /* @__PURE__ */ jsx54("thead", { children: /* @__PURE__ */ jsxs29("tr", { children: [
7659
+ /* @__PURE__ */ jsx54("th", { title: "dropdownth" }),
7664
7660
  headers
7665
7661
  ] }) }),
7666
- /* @__PURE__ */ jsx53("tbody", { children: rows })
7662
+ /* @__PURE__ */ jsx54("tbody", { children: rows })
7667
7663
  ] }) });
7668
7664
  };
7669
7665
  NestedDataTable.displayName = "NestedDataTable";
7670
7666
 
7671
7667
  // src/components/AutoComplete/WavelengthAutoComplete.tsx
7672
- import { useEffect as useEffect24, useRef as useRef23, useState as useState12 } from "react";
7673
- import styled11 from "styled-components";
7674
- import { Fragment as Fragment15, jsx as jsx54, jsxs as jsxs31 } from "react/jsx-runtime";
7675
- var AutoContainer = styled11.div`
7668
+ import { useEffect as useEffect27, useRef as useRef26, useState as useState12 } from "react";
7669
+ import styled10 from "styled-components";
7670
+ import { Fragment as Fragment14, jsx as jsx55, jsxs as jsxs30 } from "react/jsx-runtime";
7671
+ var AutoContainer = styled10.div`
7676
7672
  //position: relative;
7677
7673
  position: relative;
7678
7674
  width: ${(props) => props.$inputWidth || "320px"};
7679
7675
  height: ${(props) => props.$inputHeight || "51px"};
7680
7676
  `;
7681
- var InputWrapper = styled11.div`
7677
+ var InputWrapper = styled10.div`
7682
7678
  width: 100%;
7683
7679
  height: 100%;
7684
7680
  `;
7685
- var Label = styled11.label`
7681
+ var Label = styled10.label`
7686
7682
  position: absolute;
7687
7683
  top: 50%;
7688
7684
  left: 10px;
@@ -7694,7 +7690,7 @@ var Label = styled11.label`
7694
7690
  padding: 0 5px;
7695
7691
  background-color: transparent;
7696
7692
  `;
7697
- var Input = styled11.input`
7693
+ var Input = styled10.input`
7698
7694
  width: 100%; //this must be 100%, as width inherit inherits the literal expression, not the value
7699
7695
  height: 100%;
7700
7696
  padding: 0.5rem 0.75rem;
@@ -7736,7 +7732,7 @@ var Input = styled11.input`
7736
7732
  color: ${(props) => props.$defaultLabelColor || "#ccc"};
7737
7733
  }
7738
7734
  `;
7739
- var DropDownList = styled11.ul`
7735
+ var DropDownList = styled10.ul`
7740
7736
  position: absolute;
7741
7737
  z-index: 5;
7742
7738
  width: 100%;
@@ -7750,7 +7746,7 @@ var DropDownList = styled11.ul`
7750
7746
  overflow: scroll; //necessary for limiting scroll options
7751
7747
  max-height: 390px; //necessary for limiting scroll options, limit to 10 per view
7752
7748
  `;
7753
- var ActiveListItem = styled11.li`
7749
+ var ActiveListItem = styled10.li`
7754
7750
  position: relative;
7755
7751
  width: 100%;
7756
7752
  z-index: 9999;
@@ -7767,7 +7763,7 @@ var ActiveListItem = styled11.li`
7767
7763
  background-color: #d8d8d8;
7768
7764
  }
7769
7765
  `;
7770
- var NoHoverListItem = styled11.li`
7766
+ var NoHoverListItem = styled10.li`
7771
7767
  position: relative;
7772
7768
  z-index: 9999;
7773
7769
  padding: 10px;
@@ -7800,9 +7796,9 @@ var WavelengthAutoComplete = ({
7800
7796
  placeholder,
7801
7797
  onBlurCallback
7802
7798
  }) => {
7803
- const inputRef = useRef23(null);
7804
- const listRef = useRef23(null);
7805
- const noItemListRef = useRef23(null);
7799
+ const inputRef = useRef26(null);
7800
+ const listRef = useRef26(null);
7801
+ const noItemListRef = useRef26(null);
7806
7802
  const [inputValue, setInputValue] = useState12(placeholder ?? "");
7807
7803
  const [suggestions, setSuggestions] = useState12([]);
7808
7804
  const [isDropdownVisible, setIsDropdownVisible] = useState12(false);
@@ -7810,7 +7806,7 @@ var WavelengthAutoComplete = ({
7810
7806
  const arrayLength = suggestions.length;
7811
7807
  const [focusedIndex, setFocusedIndex] = useState12(0);
7812
7808
  const idName = id ? id : "auto-comp";
7813
- useEffect24(() => {
7809
+ useEffect27(() => {
7814
7810
  const handleClickOutsideList = (event) => {
7815
7811
  if (listRef.current && !listRef.current.contains(event.target)) {
7816
7812
  setIsDropdownVisible(false);
@@ -7822,7 +7818,7 @@ var WavelengthAutoComplete = ({
7822
7818
  };
7823
7819
  }, [focusedIndex]);
7824
7820
  if (onDataChange !== void 0) {
7825
- useEffect24(() => {
7821
+ useEffect27(() => {
7826
7822
  onDataChange(inputValue);
7827
7823
  }, [inputValue]);
7828
7824
  }
@@ -7888,9 +7884,9 @@ var WavelengthAutoComplete = ({
7888
7884
  break;
7889
7885
  }
7890
7886
  };
7891
- return /* @__PURE__ */ jsx54(Fragment15, { children: /* @__PURE__ */ jsxs31(AutoContainer, { $inputHeight: height2, $inputWidth: width2, children: [
7892
- /* @__PURE__ */ jsxs31(InputWrapper, { id: `${idName}-input-wrapper`, $inputHeight: height2, $inputWidth: width2, children: [
7893
- /* @__PURE__ */ jsx54(
7887
+ return /* @__PURE__ */ jsx55(Fragment14, { children: /* @__PURE__ */ jsxs30(AutoContainer, { $inputHeight: height2, $inputWidth: width2, children: [
7888
+ /* @__PURE__ */ jsxs30(InputWrapper, { id: `${idName}-input-wrapper`, $inputHeight: height2, $inputWidth: width2, children: [
7889
+ /* @__PURE__ */ jsx55(
7894
7890
  Input,
7895
7891
  {
7896
7892
  id: idName,
@@ -7919,11 +7915,11 @@ var WavelengthAutoComplete = ({
7919
7915
  autoComplete: "off"
7920
7916
  }
7921
7917
  ),
7922
- /* @__PURE__ */ jsx54(Label, { id: `${idName}-label`, htmlFor: idName, children: floatLabel })
7918
+ /* @__PURE__ */ jsx55(Label, { id: `${idName}-label`, htmlFor: idName, children: floatLabel })
7923
7919
  ] }),
7924
- isDropdownVisible && /* @__PURE__ */ jsx54(DropDownList, { id: `${idName}-drop-list`, ref: listRef, $inputWidth: width2, "data-testid": "InputSearchOptionsList", children: suggestHasItems ? (
7920
+ isDropdownVisible && /* @__PURE__ */ jsx55(DropDownList, { id: `${idName}-drop-list`, ref: listRef, $inputWidth: width2, "data-testid": "InputSearchOptionsList", children: suggestHasItems ? (
7925
7921
  //suggestions length controls showing the suggestions
7926
- suggestions.map((item, index) => /* @__PURE__ */ jsx54(
7922
+ suggestions.map((item, index) => /* @__PURE__ */ jsx55(
7927
7923
  ActiveListItem,
7928
7924
  {
7929
7925
  "data-testid": `${idName}-input-search-list-${index + 1}`,
@@ -7936,16 +7932,16 @@ var WavelengthAutoComplete = ({
7936
7932
  },
7937
7933
  `active-list-item-${item}-${index}`
7938
7934
  ))
7939
- ) : /* @__PURE__ */ jsx54(NoHoverListItem, { "data-testid": "NoOptionsListitem", ref: noItemListRef, id: "No-Option-List-item", onMouseDown: (e) => e.preventDefault(), children: "No Options found" }) })
7935
+ ) : /* @__PURE__ */ jsx55(NoHoverListItem, { "data-testid": "NoOptionsListitem", ref: noItemListRef, id: "No-Option-List-item", onMouseDown: (e) => e.preventDefault(), children: "No Options found" }) })
7940
7936
  ] }) });
7941
7937
  };
7942
7938
  WavelengthAutoComplete.displayName = "WavelengthAutoComplete";
7943
7939
 
7944
7940
  // src/components/inputs/WavelengthDatePicker.tsx
7945
- import { useEffect as useEffect25, useState as useState13 } from "react";
7946
- import styled12 from "styled-components";
7947
- import { jsx as jsx55, jsxs as jsxs32 } from "react/jsx-runtime";
7948
- var Label2 = styled12.label`
7941
+ import { useEffect as useEffect28, useState as useState13 } from "react";
7942
+ import styled11 from "styled-components";
7943
+ import { jsx as jsx56, jsxs as jsxs31 } from "react/jsx-runtime";
7944
+ var Label2 = styled11.label`
7949
7945
  position: absolute;
7950
7946
  top: 50%;
7951
7947
  left: 10px;
@@ -7957,7 +7953,7 @@ var Label2 = styled12.label`
7957
7953
  padding: 0 5px;
7958
7954
  background-color: transparent;
7959
7955
  `;
7960
- var InputWrapper2 = styled12.div`
7956
+ var InputWrapper2 = styled11.div`
7961
7957
  position: relative;
7962
7958
  width: ${(props) => props.$inputWidth || "320px"};
7963
7959
  height: ${(props) => props.$inputHeight || "51px"};
@@ -8016,7 +8012,7 @@ var WavelengthDatePicker = ({
8016
8012
  const [minAdjusted, setMinAdjusted] = useState13("");
8017
8013
  const [maxAdjusted, setMaxAdjusted] = useState13("");
8018
8014
  const idName = id ? id : "WlDatePick";
8019
- useEffect25(() => {
8015
+ useEffect28(() => {
8020
8016
  const minDate = new Date(min || "");
8021
8017
  const maxDate = new Date(max || "");
8022
8018
  if (inputTimeType === "datetime-local") {
@@ -8055,7 +8051,7 @@ var WavelengthDatePicker = ({
8055
8051
  setValue(dateString);
8056
8052
  if (OnDataChange !== void 0) OnDataChange(new Date(dateString));
8057
8053
  };
8058
- return /* @__PURE__ */ jsxs32(
8054
+ return /* @__PURE__ */ jsxs31(
8059
8055
  InputWrapper2,
8060
8056
  {
8061
8057
  id: `${idName}-inputWrapper`,
@@ -8067,7 +8063,7 @@ var WavelengthDatePicker = ({
8067
8063
  $FocusLabelColor: FocusLabelColor,
8068
8064
  $inputBackGroundColor: backgroundColor2,
8069
8065
  children: [
8070
- /* @__PURE__ */ jsx55(
8066
+ /* @__PURE__ */ jsx56(
8071
8067
  "input",
8072
8068
  {
8073
8069
  type: inputType,
@@ -8088,7 +8084,7 @@ var WavelengthDatePicker = ({
8088
8084
  max: maxAdjusted
8089
8085
  }
8090
8086
  ),
8091
- /* @__PURE__ */ jsx55(Label2, { id: `${idName}-label`, htmlFor: idName, children: floatLabel })
8087
+ /* @__PURE__ */ jsx56(Label2, { id: `${idName}-label`, htmlFor: idName, children: floatLabel })
8092
8088
  ]
8093
8089
  }
8094
8090
  );
@@ -8099,9 +8095,9 @@ WavelengthDatePicker.displayName = "WavelengthDatePicker";
8099
8095
  import { WavelengthDatePicker as WavelengthDatePicker2 } from "@wavelengthusaf/web-components";
8100
8096
 
8101
8097
  // src/components/inputs/WavelengthCheckbox.tsx
8102
- import { useRef as useRef24, useEffect as useEffect26 } from "react";
8098
+ import { useRef as useRef27, useEffect as useEffect29 } from "react";
8103
8099
  import "@wavelengthusaf/web-components";
8104
- import { jsx as jsx56 } from "react/jsx-runtime";
8100
+ import { jsx as jsx57 } from "react/jsx-runtime";
8105
8101
  var WavelengthCheckbox = ({
8106
8102
  size,
8107
8103
  color: color2,
@@ -8111,8 +8107,8 @@ var WavelengthCheckbox = ({
8111
8107
  textSize,
8112
8108
  ...rest
8113
8109
  }) => {
8114
- const ref = useRef24(null);
8115
- useEffect26(() => {
8110
+ const ref = useRef27(null);
8111
+ useEffect29(() => {
8116
8112
  const el = ref.current;
8117
8113
  if (!el) return;
8118
8114
  if (size !== void 0) {
@@ -8136,38 +8132,38 @@ var WavelengthCheckbox = ({
8136
8132
  el.setAttribute("text-size", textSize);
8137
8133
  }
8138
8134
  }, [size, color2, theme, disabled, text, textSize]);
8139
- return /* @__PURE__ */ jsx56("wavelength-checkbox", { ref, ...rest });
8135
+ return /* @__PURE__ */ jsx57("wavelength-checkbox", { ref, ...rest });
8140
8136
  };
8141
8137
  WavelengthCheckbox.displayName = "WavelengthCheckbox";
8142
8138
 
8143
8139
  // src/components/samples/SampleComponent.tsx
8144
- import { useRef as useRef25, useEffect as useEffect27 } from "react";
8145
- import { jsx as jsx57 } from "react/jsx-runtime";
8140
+ import { useRef as useRef28, useEffect as useEffect30 } from "react";
8141
+ import { jsx as jsx58 } from "react/jsx-runtime";
8146
8142
  var SampleComponent = ({
8147
8143
  testProp,
8148
8144
  children,
8149
8145
  // Style argument
8150
- customStyle: customStyle2,
8146
+ customStyle,
8151
8147
  ...rest
8152
8148
  // This rest operator includes className, style, onClick, etc.
8153
8149
  }) => {
8154
- const ref = useRef25(null);
8155
- useEffect27(() => {
8150
+ const ref = useRef28(null);
8151
+ useEffect30(() => {
8156
8152
  const el = ref.current;
8157
8153
  if (!el) return;
8158
- el.customStyles = customStyle2;
8154
+ el.customStyles = customStyle;
8159
8155
  if (testProp !== void 0) {
8160
8156
  el.setAttribute("test-prop", testProp);
8161
8157
  }
8162
8158
  }, [testProp]);
8163
- return /* @__PURE__ */ jsx57("sample-component", { ref, ...rest, children });
8159
+ return /* @__PURE__ */ jsx58("sample-component", { ref, ...rest, children });
8164
8160
  };
8165
8161
  SampleComponent.displayName = "SampleComponent";
8166
8162
 
8167
8163
  // src/components/NotificationPanel/WavelengthNotificationPanel.tsx
8168
- import { useRef as useRef26, useEffect as useEffect28 } from "react";
8164
+ import { useRef as useRef29, useEffect as useEffect31 } from "react";
8169
8165
  import "@wavelengthusaf/web-components";
8170
- import { jsx as jsx58 } from "react/jsx-runtime";
8166
+ import { jsx as jsx59 } from "react/jsx-runtime";
8171
8167
  var WavelengthNotificationPanel = ({
8172
8168
  notifications,
8173
8169
  darkMode,
@@ -8176,8 +8172,8 @@ var WavelengthNotificationPanel = ({
8176
8172
  ...rest
8177
8173
  // This rest operator includes className, style, onClick, etc.
8178
8174
  }) => {
8179
- const ref = useRef26(null);
8180
- useEffect28(() => {
8175
+ const ref = useRef29(null);
8176
+ useEffect31(() => {
8181
8177
  const el = ref.current;
8182
8178
  if (!el) return;
8183
8179
  if (notifications !== void 0) {
@@ -8196,18 +8192,18 @@ var WavelengthNotificationPanel = ({
8196
8192
  el.accountLink = accountLink;
8197
8193
  }
8198
8194
  }, [notifications, darkMode, rest.onMarkAsRead, rest.onSignOut, accountLink]);
8199
- return /* @__PURE__ */ jsx58("wavelength-notification-panel", { ref, ...rest, children });
8195
+ return /* @__PURE__ */ jsx59("wavelength-notification-panel", { ref, ...rest, children });
8200
8196
  };
8201
8197
 
8202
8198
  // src/index.ts
8203
8199
  import { SampleComponent as SampleComponent2 } from "@wavelengthusaf/web-components";
8204
8200
 
8205
8201
  // src/components/MultiSelect/WavelengthMultiSelectAutocomplete.tsx
8206
- import { useEffect as useEffect29, useRef as useRef27 } from "react";
8207
- import { jsx as jsx59 } from "react/jsx-runtime";
8202
+ import { useEffect as useEffect32, useRef as useRef30 } from "react";
8203
+ import { jsx as jsx60 } from "react/jsx-runtime";
8208
8204
  var WavelengthMultiSelectAutocomplete = ({ options, placeholder = "Select Options", label, name, style: style3, onChange, value, disabled, ...rest }) => {
8209
- const componentRef = useRef27(null);
8210
- useEffect29(() => {
8205
+ const componentRef = useRef30(null);
8206
+ useEffect32(() => {
8211
8207
  const component = componentRef.current;
8212
8208
  if (!component) return;
8213
8209
  const handleValueChange = (event) => {
@@ -8220,7 +8216,7 @@ var WavelengthMultiSelectAutocomplete = ({ options, placeholder = "Select Option
8220
8216
  component.removeEventListener("change", handleValueChange);
8221
8217
  };
8222
8218
  }, [onChange]);
8223
- useEffect29(() => {
8219
+ useEffect32(() => {
8224
8220
  const component = componentRef.current;
8225
8221
  if (!component) return;
8226
8222
  if (placeholder) component.setAttribute("placeholder", placeholder);
@@ -8230,13 +8226,13 @@ var WavelengthMultiSelectAutocomplete = ({ options, placeholder = "Select Option
8230
8226
  if (options) component.autocompleteOptions = options;
8231
8227
  if (style3) component.customStyles = style3;
8232
8228
  }, [options, placeholder, name, label, style3]);
8233
- useEffect29(() => {
8229
+ useEffect32(() => {
8234
8230
  const component = componentRef.current;
8235
8231
  if (component && value) {
8236
8232
  component.value = value;
8237
8233
  }
8238
8234
  }, [value]);
8239
- return /* @__PURE__ */ jsx59("wavelength-multi-select-autocomplete", { ref: componentRef, ...rest });
8235
+ return /* @__PURE__ */ jsx60("wavelength-multi-select-autocomplete", { ref: componentRef, ...rest });
8240
8236
  };
8241
8237
 
8242
8238
  // src/index.ts
@@ -8273,6 +8269,7 @@ export {
8273
8269
  WavelengthDatePicker2 as WavelengthDatePickerElement,
8274
8270
  WavelengthDefaultIcon,
8275
8271
  WavelengthDefaultPagination,
8272
+ WavelengthDialog,
8276
8273
  WavelengthDragAndDrop,
8277
8274
  WavelengthDropdown,
8278
8275
  WavelengthDropdownButton,