@etsoo/materialui 1.1.68 → 1.1.70

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/lib/SearchBar.js CHANGED
@@ -243,8 +243,8 @@ export function SearchBar(props) {
243
243
  React.createElement(IconButton, { title: labels.more, size: "medium", sx: { height: "40px" }, onClick: handleMore },
244
244
  React.createElement(MoreHorizIcon, null)),
245
245
  React.createElement(Button, { variant: "contained", size: "medium", ref: resetButtonRef, onClick: handleReset }, labels.reset))),
246
- index != null && index < fields.length && open && (React.createElement(Drawer, { anchor: "right", sx: { minWidth: "250px" }, ModalProps: {
247
- keepMounted: false
246
+ index != null && index < fields.length && (React.createElement(Drawer, { anchor: "right", sx: { minWidth: "250px" }, ModalProps: {
247
+ keepMounted: true
248
248
  }, open: open, onClose: () => updateOpen(false) },
249
249
  React.createElement("form", { onChange: moreFormChange, ref: (form) => {
250
250
  if (form)
package/lib/Tiplist.js CHANGED
@@ -15,7 +15,7 @@ export function Tiplist(props) {
15
15
  // Labels
16
16
  const { noOptions, loading, more, open: openDefault } = (_a = globalApp === null || globalApp === void 0 ? void 0 : globalApp.getLabels("noOptions", "loading", "more", "open")) !== null && _a !== void 0 ? _a : {};
17
17
  // Destruct
18
- const { search = false, idField = "id", idValue, inputAutoComplete = "new-password", inputError, inputHelperText, inputMargin, inputOnChange, inputRequired, inputVariant, label, loadData, defaultValue, value, maxItems = 16, name, readOnly, onChange, openOnFocus = true, sx = { minWidth: "180px" }, noOptionsText = noOptions, loadingText = loading, openText = openDefault, getOptionLabel, getOptionDisabled, ...rest } = props;
18
+ const { search = false, idField = "id", idValue, inputAutoComplete = "new-password", inputError, inputHelperText, inputMargin, inputOnChange, inputRequired, inputVariant, label, loadData, defaultValue, value, maxItems = 16, name, readOnly, onChange, openOnFocus = true, noOptionsText = noOptions, loadingText = loading, openText = openDefault, getOptionLabel, getOptionDisabled, ...rest } = props;
19
19
  // Value input ref
20
20
  const inputRef = React.createRef();
21
21
  // Local value
@@ -156,7 +156,7 @@ export function Tiplist(props) {
156
156
  open: false,
157
157
  ...(!states.value && { options: [] })
158
158
  });
159
- }, loading: states.loading, sx: sx, renderInput: (params) => search ? (React.createElement(SearchField, { onChange: changeHandle, ...addReadOnly(params), readOnly: readOnly, label: label, name: name + "Input", margin: inputMargin, variant: inputVariant, required: inputRequired, autoComplete: inputAutoComplete, error: inputError, helperText: inputHelperText })) : (React.createElement(InputField, { onChange: changeHandle, ...addReadOnly(params), label: label, name: name + "Input", margin: inputMargin, variant: inputVariant, required: inputRequired, autoComplete: inputAutoComplete, error: inputError, helperText: inputHelperText })), isOptionEqualToValue: (option, value) => option[idField] === value[idField], noOptionsText: noOptionsText, loadingText: loadingText, openText: openText, getOptionDisabled: (item) => {
159
+ }, loading: states.loading, renderInput: (params) => search ? (React.createElement(SearchField, { onChange: changeHandle, ...addReadOnly(params), readOnly: readOnly, label: label, name: name + "Input", margin: inputMargin, variant: inputVariant, required: inputRequired, autoComplete: inputAutoComplete, error: inputError, helperText: inputHelperText })) : (React.createElement(InputField, { onChange: changeHandle, ...addReadOnly(params), label: label, name: name + "Input", margin: inputMargin, variant: inputVariant, required: inputRequired, autoComplete: inputAutoComplete, error: inputError, helperText: inputHelperText })), isOptionEqualToValue: (option, value) => option[idField] === value[idField], noOptionsText: noOptionsText, loadingText: loadingText, openText: openText, getOptionDisabled: (item) => {
160
160
  if (item[idField] === "n/a")
161
161
  return true;
162
162
  return getOptionDisabled ? getOptionDisabled(item) : false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.1.68",
3
+ "version": "1.1.70",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -52,7 +52,7 @@
52
52
  "@emotion/styled": "^11.10.6",
53
53
  "@etsoo/appscript": "^1.3.82",
54
54
  "@etsoo/notificationbase": "^1.1.24",
55
- "@etsoo/react": "^1.6.54",
55
+ "@etsoo/react": "^1.6.55",
56
56
  "@etsoo/shared": "^1.1.92",
57
57
  "@mui/icons-material": "^5.11.11",
58
58
  "@mui/material": "^5.11.14",
package/src/SearchBar.tsx CHANGED
@@ -350,12 +350,12 @@ export function SearchBar(props: SearchBarProps) {
350
350
  </Button>
351
351
  </Stack>
352
352
  </form>
353
- {index != null && index < fields.length && open && (
353
+ {index != null && index < fields.length && (
354
354
  <Drawer
355
355
  anchor="right"
356
356
  sx={{ minWidth: "250px" }}
357
357
  ModalProps={{
358
- keepMounted: false
358
+ keepMounted: true
359
359
  }}
360
360
  open={open}
361
361
  onClose={() => updateOpen(false)}
package/src/Tiplist.tsx CHANGED
@@ -75,7 +75,6 @@ export function Tiplist<
75
75
  readOnly,
76
76
  onChange,
77
77
  openOnFocus = true,
78
- sx = { minWidth: "180px" },
79
78
  noOptionsText = noOptions,
80
79
  loadingText = loading,
81
80
  openText = openDefault,
@@ -282,7 +281,6 @@ export function Tiplist<
282
281
  });
283
282
  }}
284
283
  loading={states.loading}
285
- sx={sx}
286
284
  renderInput={(params) =>
287
285
  search ? (
288
286
  <SearchField