@wavelengthusaf/components 1.1.5 → 1.1.6
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 +34 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +35 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3388,12 +3388,43 @@ function WavelengthExampleComponent({ width: width2 = 100, height: height2 = 100
|
|
|
3388
3388
|
|
|
3389
3389
|
// src/components/search/WavelengthSearch.tsx
|
|
3390
3390
|
import React9, { useState as useState2 } from "react";
|
|
3391
|
-
import { Autocomplete as Autocomplete2, ListItemText } from "@mui/material";
|
|
3391
|
+
import { Autocomplete as Autocomplete2, ListItemText, Popper } from "@mui/material";
|
|
3392
3392
|
import TextField2 from "@mui/material/TextField";
|
|
3393
3393
|
import InputAdornment from "@mui/material/InputAdornment";
|
|
3394
3394
|
import IconButton from "@mui/material/IconButton";
|
|
3395
3395
|
import { useRef } from "react";
|
|
3396
3396
|
import ListItem from "@mui/material/ListItem";
|
|
3397
|
+
var CustomPopper = (props) => {
|
|
3398
|
+
return /* @__PURE__ */ React9.createElement(
|
|
3399
|
+
Popper,
|
|
3400
|
+
__spreadProps(__spreadValues({}, props), {
|
|
3401
|
+
placement: "right-start",
|
|
3402
|
+
disablePortal: false,
|
|
3403
|
+
modifiers: [
|
|
3404
|
+
{
|
|
3405
|
+
name: "flip",
|
|
3406
|
+
enabled: true,
|
|
3407
|
+
options: {
|
|
3408
|
+
altBoundary: true,
|
|
3409
|
+
rootBoundary: "document",
|
|
3410
|
+
padding: 8
|
|
3411
|
+
}
|
|
3412
|
+
},
|
|
3413
|
+
{
|
|
3414
|
+
name: "preventOverflow",
|
|
3415
|
+
enabled: true,
|
|
3416
|
+
options: {
|
|
3417
|
+
altAxis: true,
|
|
3418
|
+
altBoundary: true,
|
|
3419
|
+
tether: false,
|
|
3420
|
+
rootBoundary: "document",
|
|
3421
|
+
padding: 8
|
|
3422
|
+
}
|
|
3423
|
+
}
|
|
3424
|
+
]
|
|
3425
|
+
})
|
|
3426
|
+
);
|
|
3427
|
+
};
|
|
3397
3428
|
function WavelengthSearch({
|
|
3398
3429
|
id,
|
|
3399
3430
|
mode,
|
|
@@ -3442,7 +3473,7 @@ function WavelengthSearch({
|
|
|
3442
3473
|
sx: { width: width2 },
|
|
3443
3474
|
renderOption: (props, results2) => (
|
|
3444
3475
|
// @ts-expect-error boneless chicken
|
|
3445
|
-
/* @__PURE__ */ React9.createElement(ListItem,
|
|
3476
|
+
/* @__PURE__ */ React9.createElement(ListItem, __spreadValues({ key: results2.id }, props), /* @__PURE__ */ React9.createElement(ListItemText, { primary: results2.title, secondary: results2.subtitle }))
|
|
3446
3477
|
),
|
|
3447
3478
|
renderInput: (params) => /* @__PURE__ */ React9.createElement(
|
|
3448
3479
|
TextField2,
|
|
@@ -3483,7 +3514,8 @@ function WavelengthSearch({
|
|
|
3483
3514
|
}
|
|
3484
3515
|
})
|
|
3485
3516
|
})
|
|
3486
|
-
)
|
|
3517
|
+
),
|
|
3518
|
+
PopperComponent: CustomPopper
|
|
3487
3519
|
}
|
|
3488
3520
|
));
|
|
3489
3521
|
} else if (mode == "manual") {
|