@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.js
CHANGED
|
@@ -3444,6 +3444,37 @@ var import_InputAdornment = __toESM(require("@mui/material/InputAdornment"));
|
|
|
3444
3444
|
var import_IconButton = __toESM(require("@mui/material/IconButton"));
|
|
3445
3445
|
var import_react13 = require("react");
|
|
3446
3446
|
var import_ListItem = __toESM(require("@mui/material/ListItem"));
|
|
3447
|
+
var CustomPopper = (props) => {
|
|
3448
|
+
return /* @__PURE__ */ import_react12.default.createElement(
|
|
3449
|
+
import_material5.Popper,
|
|
3450
|
+
__spreadProps(__spreadValues({}, props), {
|
|
3451
|
+
placement: "right-start",
|
|
3452
|
+
disablePortal: false,
|
|
3453
|
+
modifiers: [
|
|
3454
|
+
{
|
|
3455
|
+
name: "flip",
|
|
3456
|
+
enabled: true,
|
|
3457
|
+
options: {
|
|
3458
|
+
altBoundary: true,
|
|
3459
|
+
rootBoundary: "document",
|
|
3460
|
+
padding: 8
|
|
3461
|
+
}
|
|
3462
|
+
},
|
|
3463
|
+
{
|
|
3464
|
+
name: "preventOverflow",
|
|
3465
|
+
enabled: true,
|
|
3466
|
+
options: {
|
|
3467
|
+
altAxis: true,
|
|
3468
|
+
altBoundary: true,
|
|
3469
|
+
tether: false,
|
|
3470
|
+
rootBoundary: "document",
|
|
3471
|
+
padding: 8
|
|
3472
|
+
}
|
|
3473
|
+
}
|
|
3474
|
+
]
|
|
3475
|
+
})
|
|
3476
|
+
);
|
|
3477
|
+
};
|
|
3447
3478
|
function WavelengthSearch({
|
|
3448
3479
|
id,
|
|
3449
3480
|
mode,
|
|
@@ -3492,7 +3523,7 @@ function WavelengthSearch({
|
|
|
3492
3523
|
sx: { width: width2 },
|
|
3493
3524
|
renderOption: (props, results2) => (
|
|
3494
3525
|
// @ts-expect-error boneless chicken
|
|
3495
|
-
/* @__PURE__ */ import_react12.default.createElement(import_ListItem.default,
|
|
3526
|
+
/* @__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 }))
|
|
3496
3527
|
),
|
|
3497
3528
|
renderInput: (params) => /* @__PURE__ */ import_react12.default.createElement(
|
|
3498
3529
|
import_TextField.default,
|
|
@@ -3533,7 +3564,8 @@ function WavelengthSearch({
|
|
|
3533
3564
|
}
|
|
3534
3565
|
})
|
|
3535
3566
|
})
|
|
3536
|
-
)
|
|
3567
|
+
),
|
|
3568
|
+
PopperComponent: CustomPopper
|
|
3537
3569
|
}
|
|
3538
3570
|
));
|
|
3539
3571
|
} else if (mode == "manual") {
|