@symply.io/basic-components 1.7.3 → 1.7.5

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.
@@ -34,7 +34,7 @@ function ConfirmPasswordInput(props) {
34
34
  }
35
35
  return true;
36
36
  }, [value, password]);
37
- return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(TextField, __assign({ error: !isMatched, label: label, value: value, variant: variant, margin: margin, disabled: disabled, type: "password", size: "small", helperText: !isMatched && helperText, onChange: function (event) {
37
+ return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(TextField, __assign({ error: !isMatched, label: label, value: value, variant: variant, margin: margin, disabled: disabled, type: "password", size: "small", helperText: !isMatched ? helperText : null, onChange: function (event) {
38
38
  event.preventDefault();
39
39
  onChange(event.target.value);
40
40
  }, fullWidth: true, required: true }, rest)) })));
@@ -42,7 +42,7 @@ function MultipleSelector(props) {
42
42
  onChange((_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.value);
43
43
  }, inputProps: {
44
44
  onFocus: onOpenTooltip,
45
- onBlur: onCloseTooltip,
45
+ onBlur: onCloseTooltip
46
46
  }, label: label, renderValue: multiple
47
47
  ? function (selectedValues) {
48
48
  return options
@@ -57,6 +57,6 @@ function MultipleSelector(props) {
57
57
  : undefined }, { children: (options === null || options === void 0 ? void 0 : options.length) > 0 ? (options.map(function (option) {
58
58
  var label = option.label, v = option.value;
59
59
  return (_jsxs(MenuItem, __assign({ value: v }, { children: [showCheckmarks ? (_jsx(Checkbox, { checked: !!value.includes(v) })) : (_jsx(_Fragment, {})), _jsx(ListItemText, { primary: label })] }), v));
60
- })) : (_jsx(MenuItem, __assign({ value: "", disabled: true }, { children: "No Options" }))) })), !!helperText && showHelperText && (_jsx(FormHelperText, { children: showHelperText }))] })) })) })));
60
+ })) : (_jsx(MenuItem, __assign({ value: "", disabled: true }, { children: "No Options" }))) })), !!helperText && showHelperText ? (_jsx(FormHelperText, { children: helperText })) : (_jsx(_Fragment, {}))] })) })) })));
61
61
  }
62
62
  export default MultipleSelector;
@@ -20,7 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
23
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
24
24
  import Select from "@mui/material/Select";
25
25
  import Tooltip from "@mui/material/Tooltip";
26
26
  import MenuItem from "@mui/material/MenuItem";
@@ -40,10 +40,10 @@ function SimpleSelector(props) {
40
40
  onChange((_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.value);
41
41
  }, inputProps: {
42
42
  onFocus: onOpenTooltip,
43
- onBlur: onCloseTooltip,
43
+ onBlur: onCloseTooltip
44
44
  }, label: label }, { children: (options === null || options === void 0 ? void 0 : options.length) > 0 ? (options.map(function (option) {
45
45
  var label = option.label, v = option.value, disabled = option.disabled;
46
46
  return (_jsx(MenuItem, __assign({ value: v, disabled: disabled }, { children: label }), v));
47
- })) : (_jsx(MenuItem, __assign({ value: "", disabled: true }, { children: "No Options" }))) })), !!helperText && showHelperText && (_jsx(FormHelperText, { children: showHelperText }))] })) })) })));
47
+ })) : (_jsx(MenuItem, __assign({ value: "", disabled: true }, { children: "No Options" }))) })), !!helperText && showHelperText ? (_jsx(FormHelperText, { children: helperText })) : (_jsx(_Fragment, {}))] })) })) })));
48
48
  }
49
49
  export default SimpleSelector;
@@ -5,8 +5,8 @@ interface SelectorBaseProps<T extends string | number> extends Omit<FormControlP
5
5
  label?: string;
6
6
  name?: string;
7
7
  tooltip?: ReactNode;
8
- showHelperText?: boolean;
9
8
  helperText?: string;
9
+ showHelperText?: boolean;
10
10
  multiple?: SelectProps["multiple"];
11
11
  primaryColor?: CSSProperties["color"];
12
12
  secondaryColor?: CSSProperties["color"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symply.io/basic-components",
3
- "version": "1.7.3",
3
+ "version": "1.7.5",
4
4
  "description": "Basic and reusable components for all frontend of Symply apps",
5
5
  "keywords": [
6
6
  "react",
@@ -59,11 +59,12 @@
59
59
  "color-alpha": "^1.1.3",
60
60
  "react-dropzone": "14.2.3",
61
61
  "react-player": "2.11.0",
62
- "react-virtuoso": "^4.12.0",
62
+ "react-virtuoso": "4.12.3",
63
63
  "rifm": "^0.12.1"
64
64
  },
65
65
  "resolutions": {
66
66
  "react-player": "2.11.0",
67
+ "react-virtuoso": "4.12.3",
67
68
  "@types/reach__router": "1.3.11"
68
69
  },
69
70
  "scripts": {