@wavelengthusaf/components 1.1.2 → 1.1.4
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 +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -156,8 +156,9 @@ interface SidebarProps {
|
|
|
156
156
|
marginTop?: string;
|
|
157
157
|
marginLeft?: string;
|
|
158
158
|
width?: string | number;
|
|
159
|
+
height?: string | number;
|
|
159
160
|
}
|
|
160
|
-
declare function WavelengthSideBar({ sections,
|
|
161
|
+
declare function WavelengthSideBar({ sections, txtColor, bgColor, labelColor, arrowColor, marginTop, marginLeft, width, height }: SidebarProps): React__default.JSX.Element;
|
|
161
162
|
|
|
162
163
|
declare function WavelengthFooter(): React__default.JSX.Element;
|
|
163
164
|
|
package/dist/index.d.ts
CHANGED
|
@@ -156,8 +156,9 @@ interface SidebarProps {
|
|
|
156
156
|
marginTop?: string;
|
|
157
157
|
marginLeft?: string;
|
|
158
158
|
width?: string | number;
|
|
159
|
+
height?: string | number;
|
|
159
160
|
}
|
|
160
|
-
declare function WavelengthSideBar({ sections,
|
|
161
|
+
declare function WavelengthSideBar({ sections, txtColor, bgColor, labelColor, arrowColor, marginTop, marginLeft, width, height }: SidebarProps): React__default.JSX.Element;
|
|
161
162
|
|
|
162
163
|
declare function WavelengthFooter(): React__default.JSX.Element;
|
|
163
164
|
|
package/dist/index.js
CHANGED
|
@@ -3449,6 +3449,7 @@ function WavelengthSearch({
|
|
|
3449
3449
|
return /* @__PURE__ */ import_react12.default.createElement(import_react12.default.Fragment, null, /* @__PURE__ */ import_react12.default.createElement(
|
|
3450
3450
|
import_material5.Autocomplete,
|
|
3451
3451
|
{
|
|
3452
|
+
filterOptions: (x) => x,
|
|
3452
3453
|
loading: true,
|
|
3453
3454
|
freeSolo: true,
|
|
3454
3455
|
onChange: (e, value) => {
|
|
@@ -3469,7 +3470,7 @@ function WavelengthSearch({
|
|
|
3469
3470
|
sx: { width: width2 },
|
|
3470
3471
|
renderOption: (props, results2) => (
|
|
3471
3472
|
// @ts-expect-error boneless chicken
|
|
3472
|
-
/* @__PURE__ */ import_react12.default.createElement(import_ListItem.default, __spreadValues({
|
|
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 }))
|
|
3473
3474
|
),
|
|
3474
3475
|
renderInput: (params) => /* @__PURE__ */ import_react12.default.createElement(
|
|
3475
3476
|
import_TextField.default,
|
|
@@ -3505,6 +3506,7 @@ function WavelengthSearch({
|
|
|
3505
3506
|
onChange: (e) => {
|
|
3506
3507
|
if (searchFunction) {
|
|
3507
3508
|
const response = searchFunction(e.target.value);
|
|
3509
|
+
console.log(response);
|
|
3508
3510
|
setResults(response);
|
|
3509
3511
|
}
|
|
3510
3512
|
}
|
|
@@ -3517,6 +3519,7 @@ function WavelengthSearch({
|
|
|
3517
3519
|
return /* @__PURE__ */ import_react12.default.createElement(import_react12.default.Fragment, null, /* @__PURE__ */ import_react12.default.createElement(
|
|
3518
3520
|
import_material5.Autocomplete,
|
|
3519
3521
|
{
|
|
3522
|
+
filterOptions: (x) => x,
|
|
3520
3523
|
loading: true,
|
|
3521
3524
|
freeSolo: true,
|
|
3522
3525
|
onChange: (e, value) => {
|
|
@@ -3634,7 +3637,7 @@ var import_react15 = __toESM(require("react"));
|
|
|
3634
3637
|
var import_material7 = require("@mui/material");
|
|
3635
3638
|
var import_icons_material = require("@mui/icons-material");
|
|
3636
3639
|
var import_react_router_dom = require("react-router-dom");
|
|
3637
|
-
function WavelengthSideBar({ sections,
|
|
3640
|
+
function WavelengthSideBar({ sections, txtColor, bgColor, labelColor, arrowColor, marginTop, marginLeft, width: width2 = 243, height: height2 = 300 }) {
|
|
3638
3641
|
const [openSections, setOpenSections] = (0, import_react15.useState)({});
|
|
3639
3642
|
const navigate = (0, import_react_router_dom.useNavigate)();
|
|
3640
3643
|
const palette2 = getPalette();
|
|
@@ -3649,6 +3652,7 @@ function WavelengthSideBar({ sections, bgColor, txtColor, labelColor, arrowColor
|
|
|
3649
3652
|
sx: {
|
|
3650
3653
|
width: width2,
|
|
3651
3654
|
minHeight: 300,
|
|
3655
|
+
height: height2,
|
|
3652
3656
|
maxHeight: 737,
|
|
3653
3657
|
overflow: "hidden",
|
|
3654
3658
|
overflowY: "scroll",
|
|
@@ -4719,7 +4723,7 @@ function WavelengthStandardSnackbar(props) {
|
|
|
4719
4723
|
return /* @__PURE__ */ import_react35.default.createElement(
|
|
4720
4724
|
import_Snackbar.default,
|
|
4721
4725
|
{
|
|
4722
|
-
sx: { marginTop: props.customVertyAlign ? `${props.customVertyAlign}` : "", zIndex:
|
|
4726
|
+
sx: { marginTop: props.customVertyAlign ? `${props.customVertyAlign}` : "", zIndex: 1400 },
|
|
4723
4727
|
open: show,
|
|
4724
4728
|
onClose: handleClose,
|
|
4725
4729
|
autoHideDuration: durationMs,
|