@wavelengthusaf/components 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -3399,6 +3399,7 @@ function WavelengthSearch({
|
|
|
3399
3399
|
return /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement(
|
|
3400
3400
|
Autocomplete2,
|
|
3401
3401
|
{
|
|
3402
|
+
filterOptions: (x) => x,
|
|
3402
3403
|
loading: true,
|
|
3403
3404
|
freeSolo: true,
|
|
3404
3405
|
onChange: (e, value) => {
|
|
@@ -3419,7 +3420,7 @@ function WavelengthSearch({
|
|
|
3419
3420
|
sx: { width: width2 },
|
|
3420
3421
|
renderOption: (props, results2) => (
|
|
3421
3422
|
// @ts-expect-error boneless chicken
|
|
3422
|
-
/* @__PURE__ */ React9.createElement(ListItem, __spreadValues({
|
|
3423
|
+
/* @__PURE__ */ React9.createElement(ListItem, __spreadValues({ key: results2.id }, props), /* @__PURE__ */ React9.createElement(ListItemText, { primary: results2.title, secondary: results2.subtitle }))
|
|
3423
3424
|
),
|
|
3424
3425
|
renderInput: (params) => /* @__PURE__ */ React9.createElement(
|
|
3425
3426
|
TextField2,
|
|
@@ -3455,6 +3456,7 @@ function WavelengthSearch({
|
|
|
3455
3456
|
onChange: (e) => {
|
|
3456
3457
|
if (searchFunction) {
|
|
3457
3458
|
const response = searchFunction(e.target.value);
|
|
3459
|
+
console.log(response);
|
|
3458
3460
|
setResults(response);
|
|
3459
3461
|
}
|
|
3460
3462
|
}
|
|
@@ -3467,6 +3469,7 @@ function WavelengthSearch({
|
|
|
3467
3469
|
return /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement(
|
|
3468
3470
|
Autocomplete2,
|
|
3469
3471
|
{
|
|
3472
|
+
filterOptions: (x) => x,
|
|
3470
3473
|
loading: true,
|
|
3471
3474
|
freeSolo: true,
|
|
3472
3475
|
onChange: (e, value) => {
|
|
@@ -3584,7 +3587,7 @@ import React11, { useState as useState3 } from "react";
|
|
|
3584
3587
|
import { Box, List, ListItem as ListItem2, Typography, Collapse } from "@mui/material";
|
|
3585
3588
|
import { KeyboardArrowDownRounded, KeyboardArrowRightRounded } from "@mui/icons-material";
|
|
3586
3589
|
import { useNavigate } from "react-router-dom";
|
|
3587
|
-
function WavelengthSideBar({ sections,
|
|
3590
|
+
function WavelengthSideBar({ sections, txtColor, bgColor, labelColor, arrowColor, marginTop, marginLeft, width: width2 = 243, height: height2 = 300 }) {
|
|
3588
3591
|
const [openSections, setOpenSections] = useState3({});
|
|
3589
3592
|
const navigate = useNavigate();
|
|
3590
3593
|
const palette2 = getPalette();
|
|
@@ -3599,6 +3602,7 @@ function WavelengthSideBar({ sections, bgColor, txtColor, labelColor, arrowColor
|
|
|
3599
3602
|
sx: {
|
|
3600
3603
|
width: width2,
|
|
3601
3604
|
minHeight: 300,
|
|
3605
|
+
height: height2,
|
|
3602
3606
|
maxHeight: 737,
|
|
3603
3607
|
overflow: "hidden",
|
|
3604
3608
|
overflowY: "scroll",
|
|
@@ -4678,7 +4682,7 @@ function WavelengthStandardSnackbar(props) {
|
|
|
4678
4682
|
return /* @__PURE__ */ React31.createElement(
|
|
4679
4683
|
Snackbar2,
|
|
4680
4684
|
{
|
|
4681
|
-
sx: { marginTop: props.customVertyAlign ? `${props.customVertyAlign}` : "", zIndex:
|
|
4685
|
+
sx: { marginTop: props.customVertyAlign ? `${props.customVertyAlign}` : "", zIndex: 1400 },
|
|
4682
4686
|
open: show,
|
|
4683
4687
|
onClose: handleClose,
|
|
4684
4688
|
autoHideDuration: durationMs,
|