tp-react-elements-dev 1.5.2 → 1.5.3

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.
@@ -26,6 +26,7 @@ export interface FormSectionPropsItem {
26
26
  maxDate?: string;
27
27
  placeholder?: string;
28
28
  minRows?: string | number;
29
+ maxRows?: string | number;
29
30
  CustomProps?: any;
30
31
  numberOfColumns?: number;
31
32
  monthSpan?: number;
@@ -36,7 +37,7 @@ export interface FormSectionPropsItem {
36
37
  sx?: SxProps<Theme>;
37
38
  donotAllowSpace?: boolean;
38
39
  onInputProps?: (e: React.FocusEvent<HTMLInputElement>) => void;
39
- fileType?: 'excel' | '';
40
+ fileType?: 'excel' | 'pdf' | 'all' | '';
40
41
  handleFileError?: (message: string) => void;
41
42
  }
42
43
  export interface FormRenderProps {
package/dist/index.esm.js CHANGED
@@ -52764,9 +52764,7 @@ const RenderForm = (props) => {
52764
52764
  // textTransform:'uppercase'
52765
52765
  maxHeight: "500px !important",
52766
52766
  overflow: "auto",
52767
- } }, props.item.sx), minRows: props.item.minRows || 1,
52768
- // maxRows={2}
52769
- placeholder: props.item.placeholder || "Type Something..." }, field, { label: `${props.item.label}${props.item.required ? " *" : ""}`, value: field.value || "", disabled: props.item.disable, inputProps: {
52767
+ } }, props.item.sx), minRows: props.item.minRows || 1, maxRows: props.item.maxRows || null, placeholder: props.item.placeholder || "Type Something..." }, field, { label: `${props.item.label}${props.item.required ? " *" : ""}`, value: field.value || "", disabled: props.item.disable, inputProps: {
52770
52768
  onInput: (e) => {
52771
52769
  var _a;
52772
52770
  if (!((_a = props === null || props === void 0 ? void 0 : props.item) === null || _a === void 0 ? void 0 : _a.allowSpecialChars)) {