ish-ui 1.0.31 → 1.0.32

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.
@@ -25,6 +25,7 @@ import InputAdornment from '@mui/material/InputAdornment';
25
25
  import EditInPlaceField from './EditInPlaceField';
26
26
  import { stubFunction } from '../utils';
27
27
  function EditInPlaceFileField(_a) {
28
+ var _b;
28
29
  var { input } = _a, restProps = __rest(_a, ["input"]);
29
30
  const inputRef = useRef();
30
31
  const fileRef = useRef();
@@ -48,7 +49,7 @@ function EditInPlaceFileField(_a) {
48
49
  onFocus: stubFunction,
49
50
  onBlur: stubFunction
50
51
  }, InputProps: {
51
- startAdornment: React.createElement(InputAdornment, { position: "start" },
52
+ startAdornment: React.createElement(InputAdornment, { position: "start", className: (_b = restProps.fieldClasses) === null || _b === void 0 ? void 0 : _b.text },
52
53
  React.createElement(AttachmentIcon, null)),
53
54
  onFocus,
54
55
  inputProps: {
@@ -5,5 +5,5 @@ interface Props<InputProps, MetaProps> extends EditInPlaceFieldProps<InputProps,
5
5
  currencySymbol: string;
6
6
  dispatch?: Dispatch;
7
7
  }
8
- declare function EditInPlaceMoneyField<IP, MP>({ InputProps, currencySymbol, dispatch, className, ...restProps }: Props<IP, MP>): React.JSX.Element;
8
+ declare function EditInPlaceMoneyField<IP, MP>({ InputProps, currencySymbol, className, ...restProps }: Props<IP, MP>): React.JSX.Element;
9
9
  export default EditInPlaceMoneyField;
@@ -31,7 +31,8 @@ const NumberFormatCustom = React.forwardRef((props, ref) => {
31
31
  });
32
32
  const preformatDisplayValue = value => value || value === 0 ? formatCurrency(value, '') : value;
33
33
  function EditInPlaceMoneyField(_a) {
34
- var { InputProps, currencySymbol, dispatch, className } = _a, restProps = __rest(_a, ["InputProps", "currencySymbol", "dispatch", "className"]);
35
- return (React.createElement(EditInPlaceField, Object.assign({}, restProps, { preformatDisplayValue: preformatDisplayValue, InputProps: Object.assign(Object.assign({}, InputProps), { startAdornment: React.createElement(InputAdornment, { position: "start" }, currencySymbol), inputComponent: NumberFormatCustom }), className: clsx('money', className) })));
34
+ var _b;
35
+ var { InputProps, currencySymbol, className } = _a, restProps = __rest(_a, ["InputProps", "currencySymbol", "className"]);
36
+ return (React.createElement(EditInPlaceField, Object.assign({}, restProps, { preformatDisplayValue: preformatDisplayValue, InputProps: Object.assign(Object.assign({}, InputProps), { startAdornment: React.createElement(InputAdornment, { position: "start", className: (_b = restProps.fieldClasses) === null || _b === void 0 ? void 0 : _b.text }, currencySymbol), inputComponent: NumberFormatCustom }), className: clsx('money', className) })));
36
37
  }
37
38
  export default EditInPlaceMoneyField;
@@ -62,8 +62,9 @@ const NumberFormatCustom = React.forwardRef((props, ref) => {
62
62
  return (React.createElement(NumberFormat, Object.assign({}, other, { getInputRef: getInputRef, onKeyPress: onKeyPress, prefix: prefix, onValueChange: onValueChange, format: format, type: "text" })));
63
63
  });
64
64
  function EditInPlacePhoneField(_a) {
65
+ var _b;
65
66
  var { InputProps, className } = _a, restProps = __rest(_a, ["InputProps", "className"]);
66
- return (React.createElement(EditInPlaceField, Object.assign({}, restProps, { InputProps: Object.assign(Object.assign({}, InputProps), { startAdornment: React.createElement(InputAdornment, { position: "start" },
67
+ return (React.createElement(EditInPlaceField, Object.assign({}, restProps, { InputProps: Object.assign(Object.assign({}, InputProps), { startAdornment: React.createElement(InputAdornment, { position: "start", className: (_b = restProps.fieldClasses) === null || _b === void 0 ? void 0 : _b.text },
67
68
  React.createElement(PhoneIcon, null)), inputComponent: NumberFormatCustom }), className: className })));
68
69
  }
69
70
  export default EditInPlacePhoneField;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ish-ui",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "UI elements for onCourse and other ish apps",
5
5
  "main": "main.ts",
6
6
  "devDependencies": {