@wavelengthusaf/components 1.1.2 → 1.1.3

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 CHANGED
@@ -156,8 +156,9 @@ interface SidebarProps {
156
156
  marginTop?: string;
157
157
  marginLeft?: string;
158
158
  width?: string | number;
159
+ height?: string | number;
159
160
  }
160
- declare function WavelengthSideBar({ sections, bgColor, txtColor, labelColor, arrowColor, marginTop, marginLeft, width }: SidebarProps): React__default.JSX.Element;
161
+ declare function WavelengthSideBar({ sections, txtColor, bgColor, labelColor, arrowColor, marginTop, marginLeft, width, height }: SidebarProps): React__default.JSX.Element;
161
162
 
162
163
  declare function WavelengthFooter(): React__default.JSX.Element;
163
164
 
package/dist/index.d.ts CHANGED
@@ -156,8 +156,9 @@ interface SidebarProps {
156
156
  marginTop?: string;
157
157
  marginLeft?: string;
158
158
  width?: string | number;
159
+ height?: string | number;
159
160
  }
160
- declare function WavelengthSideBar({ sections, bgColor, txtColor, labelColor, arrowColor, marginTop, marginLeft, width }: SidebarProps): React__default.JSX.Element;
161
+ declare function WavelengthSideBar({ sections, txtColor, bgColor, labelColor, arrowColor, marginTop, marginLeft, width, height }: SidebarProps): React__default.JSX.Element;
161
162
 
162
163
  declare function WavelengthFooter(): React__default.JSX.Element;
163
164
 
package/dist/index.js CHANGED
@@ -3469,7 +3469,7 @@ function WavelengthSearch({
3469
3469
  sx: { width: width2 },
3470
3470
  renderOption: (props, results2) => (
3471
3471
  // @ts-expect-error boneless chicken
3472
- /* @__PURE__ */ import_react12.default.createElement(import_ListItem.default, __spreadValues({ style: {}, c: true, key: results2.id }, props), /* @__PURE__ */ import_react12.default.createElement(import_material5.ListItemText, { primary: results2.title, secondary: results2.subtitle }))
3472
+ /* @__PURE__ */ import_react12.default.createElement(import_ListItem.default, __spreadValues({ key: results2.id }, props), /* @__PURE__ */ import_react12.default.createElement(import_material5.ListItemText, { primary: results2.title, secondary: results2.subtitle }))
3473
3473
  ),
3474
3474
  renderInput: (params) => /* @__PURE__ */ import_react12.default.createElement(
3475
3475
  import_TextField.default,
@@ -3505,6 +3505,7 @@ function WavelengthSearch({
3505
3505
  onChange: (e) => {
3506
3506
  if (searchFunction) {
3507
3507
  const response = searchFunction(e.target.value);
3508
+ console.log(response);
3508
3509
  setResults(response);
3509
3510
  }
3510
3511
  }
@@ -3634,7 +3635,7 @@ var import_react15 = __toESM(require("react"));
3634
3635
  var import_material7 = require("@mui/material");
3635
3636
  var import_icons_material = require("@mui/icons-material");
3636
3637
  var import_react_router_dom = require("react-router-dom");
3637
- function WavelengthSideBar({ sections, bgColor, txtColor, labelColor, arrowColor, marginTop, marginLeft, width: width2 = 243 }) {
3638
+ function WavelengthSideBar({ sections, txtColor, bgColor, labelColor, arrowColor, marginTop, marginLeft, width: width2 = 243, height: height2 = 300 }) {
3638
3639
  const [openSections, setOpenSections] = (0, import_react15.useState)({});
3639
3640
  const navigate = (0, import_react_router_dom.useNavigate)();
3640
3641
  const palette2 = getPalette();
@@ -3649,6 +3650,7 @@ function WavelengthSideBar({ sections, bgColor, txtColor, labelColor, arrowColor
3649
3650
  sx: {
3650
3651
  width: width2,
3651
3652
  minHeight: 300,
3653
+ height: height2,
3652
3654
  maxHeight: 737,
3653
3655
  overflow: "hidden",
3654
3656
  overflowY: "scroll",
@@ -4719,7 +4721,7 @@ function WavelengthStandardSnackbar(props) {
4719
4721
  return /* @__PURE__ */ import_react35.default.createElement(
4720
4722
  import_Snackbar.default,
4721
4723
  {
4722
- sx: { marginTop: props.customVertyAlign ? `${props.customVertyAlign}` : "", zIndex: 6 },
4724
+ sx: { marginTop: props.customVertyAlign ? `${props.customVertyAlign}` : "", zIndex: 1400 },
4723
4725
  open: show,
4724
4726
  onClose: handleClose,
4725
4727
  autoHideDuration: durationMs,