@wavelengthusaf/components 1.1.6 → 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.d.mts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +23 -37
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -37
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -40,26 +40,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
40
40
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
41
41
|
mod
|
|
42
42
|
));
|
|
43
|
-
var __async = (__this, __arguments, generator) => {
|
|
44
|
-
return new Promise((resolve, reject) => {
|
|
45
|
-
var fulfilled = (value) => {
|
|
46
|
-
try {
|
|
47
|
-
step(generator.next(value));
|
|
48
|
-
} catch (e) {
|
|
49
|
-
reject(e);
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
var rejected = (value) => {
|
|
53
|
-
try {
|
|
54
|
-
step(generator.throw(value));
|
|
55
|
-
} catch (e) {
|
|
56
|
-
reject(e);
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
60
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
61
|
-
});
|
|
62
|
-
};
|
|
63
43
|
|
|
64
44
|
// node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js
|
|
65
45
|
var require_react_is_production_min = __commonJS({
|
|
@@ -3397,9 +3377,15 @@ import ListItem from "@mui/material/ListItem";
|
|
|
3397
3377
|
var CustomPopper = (props) => {
|
|
3398
3378
|
return /* @__PURE__ */ React9.createElement(
|
|
3399
3379
|
Popper,
|
|
3400
|
-
__spreadProps(__spreadValues({
|
|
3401
|
-
|
|
3402
|
-
|
|
3380
|
+
__spreadProps(__spreadValues({
|
|
3381
|
+
sx: {
|
|
3382
|
+
"&.MuiAutocomplete-popper": {
|
|
3383
|
+
zIndex: 5
|
|
3384
|
+
}
|
|
3385
|
+
}
|
|
3386
|
+
}, props), {
|
|
3387
|
+
placement: "bottom",
|
|
3388
|
+
disablePortal: true,
|
|
3403
3389
|
modifiers: [
|
|
3404
3390
|
{
|
|
3405
3391
|
name: "flip",
|
|
@@ -3416,7 +3402,7 @@ var CustomPopper = (props) => {
|
|
|
3416
3402
|
options: {
|
|
3417
3403
|
altAxis: true,
|
|
3418
3404
|
altBoundary: true,
|
|
3419
|
-
tether:
|
|
3405
|
+
tether: true,
|
|
3420
3406
|
rootBoundary: "document",
|
|
3421
3407
|
padding: 8
|
|
3422
3408
|
}
|
|
@@ -3431,14 +3417,18 @@ function WavelengthSearch({
|
|
|
3431
3417
|
width: width2,
|
|
3432
3418
|
height: height2,
|
|
3433
3419
|
label,
|
|
3420
|
+
size,
|
|
3434
3421
|
borderRadius: borderRadius2,
|
|
3435
3422
|
children,
|
|
3436
3423
|
placeholder,
|
|
3437
3424
|
searchFunction,
|
|
3438
3425
|
onSearchItemSelected,
|
|
3426
|
+
options,
|
|
3427
|
+
onChange,
|
|
3439
3428
|
borderColor: borderColor2,
|
|
3440
3429
|
hoverColor,
|
|
3441
3430
|
textColor,
|
|
3431
|
+
fontSize,
|
|
3442
3432
|
backgroundColor: backgroundColor2
|
|
3443
3433
|
}) {
|
|
3444
3434
|
const palette2 = getPalette();
|
|
@@ -3454,8 +3444,8 @@ function WavelengthSearch({
|
|
|
3454
3444
|
loading: true,
|
|
3455
3445
|
disableListWrap: true,
|
|
3456
3446
|
freeSolo: true,
|
|
3457
|
-
disablePortal: true,
|
|
3458
3447
|
onChange: (e, value) => {
|
|
3448
|
+
console.log(" AutoComplete value ", value);
|
|
3459
3449
|
if (value != null) {
|
|
3460
3450
|
if (typeof value == "string") {
|
|
3461
3451
|
console.log("String Input, No Selection");
|
|
@@ -3465,11 +3455,11 @@ function WavelengthSearch({
|
|
|
3465
3455
|
}
|
|
3466
3456
|
},
|
|
3467
3457
|
disableCloseOnSelect: false,
|
|
3468
|
-
getOptionLabel: (
|
|
3469
|
-
const returnVal = typeof
|
|
3458
|
+
getOptionLabel: (options2) => {
|
|
3459
|
+
const returnVal = typeof options2 === "string" ? options2 : options2.title;
|
|
3470
3460
|
return returnVal;
|
|
3471
3461
|
},
|
|
3472
|
-
options
|
|
3462
|
+
options,
|
|
3473
3463
|
sx: { width: width2 },
|
|
3474
3464
|
renderOption: (props, results2) => (
|
|
3475
3465
|
// @ts-expect-error boneless chicken
|
|
@@ -3481,8 +3471,9 @@ function WavelengthSearch({
|
|
|
3481
3471
|
placeholder
|
|
3482
3472
|
}, params), {
|
|
3483
3473
|
id,
|
|
3474
|
+
size,
|
|
3484
3475
|
InputProps: __spreadProps(__spreadValues({}, params.InputProps), {
|
|
3485
|
-
style: { borderRadius: borderRadius2,
|
|
3476
|
+
style: { borderRadius: borderRadius2, color: textColor, backgroundColor: backgroundColor2, height: height2, fontSize },
|
|
3486
3477
|
type: "search",
|
|
3487
3478
|
endAdornment: /* @__PURE__ */ React9.createElement(InputAdornment, { position: "end" }, /* @__PURE__ */ React9.createElement(IconButton, { sx: { color: textColor } }, children))
|
|
3488
3479
|
}),
|
|
@@ -3506,13 +3497,7 @@ function WavelengthSearch({
|
|
|
3506
3497
|
}
|
|
3507
3498
|
},
|
|
3508
3499
|
label,
|
|
3509
|
-
onChange
|
|
3510
|
-
if (searchFunction) {
|
|
3511
|
-
const response = yield searchFunction(e.target.value);
|
|
3512
|
-
console.log(response);
|
|
3513
|
-
yield setResults(response);
|
|
3514
|
-
}
|
|
3515
|
-
})
|
|
3500
|
+
onChange
|
|
3516
3501
|
})
|
|
3517
3502
|
),
|
|
3518
3503
|
PopperComponent: CustomPopper
|
|
@@ -3563,8 +3548,9 @@ function WavelengthSearch({
|
|
|
3563
3548
|
}
|
|
3564
3549
|
}, params), {
|
|
3565
3550
|
id,
|
|
3551
|
+
size,
|
|
3566
3552
|
InputProps: __spreadProps(__spreadValues({}, params.InputProps), {
|
|
3567
|
-
style: { borderRadius: borderRadius2, height: height2, color: textColor },
|
|
3553
|
+
style: { borderRadius: borderRadius2, height: height2, color: textColor, fontSize },
|
|
3568
3554
|
type: "search",
|
|
3569
3555
|
endAdornment: /* @__PURE__ */ React9.createElement(InputAdornment, { position: "end" }, /* @__PURE__ */ React9.createElement(
|
|
3570
3556
|
IconButton,
|