@wavelengthusaf/components 1.1.7 → 1.1.8

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.mjs CHANGED
@@ -3368,18 +3368,56 @@ function WavelengthExampleComponent({ width: width2 = 100, height: height2 = 100
3368
3368
 
3369
3369
  // src/components/search/WavelengthSearch.tsx
3370
3370
  import React9, { useState as useState2 } from "react";
3371
- import { Autocomplete as Autocomplete2, ListItemText } from "@mui/material";
3371
+ import { Autocomplete as Autocomplete2, ListItemText, Popper } from "@mui/material";
3372
3372
  import TextField2 from "@mui/material/TextField";
3373
3373
  import InputAdornment from "@mui/material/InputAdornment";
3374
3374
  import IconButton from "@mui/material/IconButton";
3375
3375
  import { useRef } from "react";
3376
3376
  import ListItem from "@mui/material/ListItem";
3377
+ var CustomPopper = (props) => {
3378
+ return /* @__PURE__ */ React9.createElement(
3379
+ Popper,
3380
+ __spreadProps(__spreadValues({
3381
+ sx: {
3382
+ "&.MuiAutocomplete-popper": {
3383
+ zIndex: 5
3384
+ }
3385
+ }
3386
+ }, props), {
3387
+ placement: "bottom",
3388
+ disablePortal: true,
3389
+ modifiers: [
3390
+ {
3391
+ name: "flip",
3392
+ enabled: true,
3393
+ options: {
3394
+ altBoundary: true,
3395
+ rootBoundary: "document",
3396
+ padding: 8
3397
+ }
3398
+ },
3399
+ {
3400
+ name: "preventOverflow",
3401
+ enabled: true,
3402
+ options: {
3403
+ altAxis: true,
3404
+ altBoundary: true,
3405
+ tether: true,
3406
+ rootBoundary: "document",
3407
+ padding: 8
3408
+ }
3409
+ }
3410
+ ]
3411
+ })
3412
+ );
3413
+ };
3377
3414
  function WavelengthSearch({
3378
3415
  id,
3379
3416
  mode,
3380
3417
  width: width2,
3381
3418
  height: height2,
3382
3419
  label,
3420
+ size,
3383
3421
  borderRadius: borderRadius2,
3384
3422
  children,
3385
3423
  placeholder,
@@ -3390,6 +3428,7 @@ function WavelengthSearch({
3390
3428
  borderColor: borderColor2,
3391
3429
  hoverColor,
3392
3430
  textColor,
3431
+ fontSize,
3393
3432
  backgroundColor: backgroundColor2
3394
3433
  }) {
3395
3434
  const palette2 = getPalette();
@@ -3432,8 +3471,9 @@ function WavelengthSearch({
3432
3471
  placeholder
3433
3472
  }, params), {
3434
3473
  id,
3474
+ size,
3435
3475
  InputProps: __spreadProps(__spreadValues({}, params.InputProps), {
3436
- style: { borderRadius: borderRadius2, height: height2, color: textColor, backgroundColor: backgroundColor2 },
3476
+ style: { borderRadius: borderRadius2, color: textColor, backgroundColor: backgroundColor2, height: height2, fontSize },
3437
3477
  type: "search",
3438
3478
  endAdornment: /* @__PURE__ */ React9.createElement(InputAdornment, { position: "end" }, /* @__PURE__ */ React9.createElement(IconButton, { sx: { color: textColor } }, children))
3439
3479
  }),
@@ -3459,7 +3499,8 @@ function WavelengthSearch({
3459
3499
  label,
3460
3500
  onChange
3461
3501
  })
3462
- )
3502
+ ),
3503
+ PopperComponent: CustomPopper
3463
3504
  }
3464
3505
  ));
3465
3506
  } else if (mode == "manual") {
@@ -3507,8 +3548,9 @@ function WavelengthSearch({
3507
3548
  }
3508
3549
  }, params), {
3509
3550
  id,
3551
+ size,
3510
3552
  InputProps: __spreadProps(__spreadValues({}, params.InputProps), {
3511
- style: { borderRadius: borderRadius2, height: height2, color: textColor },
3553
+ style: { borderRadius: borderRadius2, height: height2, color: textColor, fontSize },
3512
3554
  type: "search",
3513
3555
  endAdornment: /* @__PURE__ */ React9.createElement(InputAdornment, { position: "end" }, /* @__PURE__ */ React9.createElement(
3514
3556
  IconButton,