@wavelengthusaf/components 1.1.4 → 1.1.5

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.js CHANGED
@@ -46,6 +46,26 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
46
46
  mod
47
47
  ));
48
48
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
49
+ var __async = (__this, __arguments, generator) => {
50
+ return new Promise((resolve, reject) => {
51
+ var fulfilled = (value) => {
52
+ try {
53
+ step(generator.next(value));
54
+ } catch (e) {
55
+ reject(e);
56
+ }
57
+ };
58
+ var rejected = (value) => {
59
+ try {
60
+ step(generator.throw(value));
61
+ } catch (e) {
62
+ reject(e);
63
+ }
64
+ };
65
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
66
+ step((generator = generator.apply(__this, __arguments)).next());
67
+ });
68
+ };
49
69
 
50
70
  // node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js
51
71
  var require_react_is_production_min = __commonJS({
@@ -3451,7 +3471,9 @@ function WavelengthSearch({
3451
3471
  {
3452
3472
  filterOptions: (x) => x,
3453
3473
  loading: true,
3474
+ disableListWrap: true,
3454
3475
  freeSolo: true,
3476
+ disablePortal: true,
3455
3477
  onChange: (e, value) => {
3456
3478
  if (value != null) {
3457
3479
  if (typeof value == "string") {
@@ -3470,7 +3492,7 @@ function WavelengthSearch({
3470
3492
  sx: { width: width2 },
3471
3493
  renderOption: (props, results2) => (
3472
3494
  // @ts-expect-error boneless chicken
3473
- /* @__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 }))
3495
+ /* @__PURE__ */ import_react12.default.createElement(import_ListItem.default, __spreadProps(__spreadValues({ key: results2.id }, props), { sx: { zIndex: -5 } }), /* @__PURE__ */ import_react12.default.createElement(import_material5.ListItemText, { primary: results2.title, secondary: results2.subtitle }))
3474
3496
  ),
3475
3497
  renderInput: (params) => /* @__PURE__ */ import_react12.default.createElement(
3476
3498
  import_TextField.default,
@@ -3503,13 +3525,13 @@ function WavelengthSearch({
3503
3525
  }
3504
3526
  },
3505
3527
  label,
3506
- onChange: (e) => {
3528
+ onChange: (e) => __async(this, null, function* () {
3507
3529
  if (searchFunction) {
3508
- const response = searchFunction(e.target.value);
3530
+ const response = yield searchFunction(e.target.value);
3509
3531
  console.log(response);
3510
- setResults(response);
3532
+ yield setResults(response);
3511
3533
  }
3512
- }
3534
+ })
3513
3535
  })
3514
3536
  )
3515
3537
  }
@@ -3637,7 +3659,7 @@ var import_react15 = __toESM(require("react"));
3637
3659
  var import_material7 = require("@mui/material");
3638
3660
  var import_icons_material = require("@mui/icons-material");
3639
3661
  var import_react_router_dom = require("react-router-dom");
3640
- function WavelengthSideBar({ sections, txtColor, bgColor, labelColor, arrowColor, marginTop, marginLeft, width: width2 = 243, height: height2 = 300 }) {
3662
+ function WavelengthSideBar({ sections, txtColor, bgColor, labelColor, arrowColor, marginTop, marginLeft, width: width2 = "fit-content", height: height2 = 300 }) {
3641
3663
  const [openSections, setOpenSections] = (0, import_react15.useState)({});
3642
3664
  const navigate = (0, import_react_router_dom.useNavigate)();
3643
3665
  const palette2 = getPalette();
@@ -3660,7 +3682,8 @@ function WavelengthSideBar({ sections, txtColor, bgColor, labelColor, arrowColor
3660
3682
  marginBottom: 5,
3661
3683
  marginTop,
3662
3684
  marginLeft,
3663
- borderRadius: "12px"
3685
+ borderRadius: "12px",
3686
+ position: "relative"
3664
3687
  }
3665
3688
  },
3666
3689
  /* @__PURE__ */ import_react15.default.createElement(import_material7.List, { component: "nav" }, sections.map((section, index) => {