@vchasno/ui-kit 0.3.27 → 0.3.28

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.
@@ -1,11 +1,11 @@
1
1
  import React, { InputHTMLAttributes } from 'react';
2
2
  import { InputProps } from '../Input';
3
- import { TextareaAutosizeProps } from '@mui/base/TextareaAutosize';
4
3
  import './TextAreaInput.global.css';
5
- export interface TextAreaInputProps extends TextareaAutosizeProps, Omit<InputProps, 'children'> {
4
+ export interface TextAreaInputProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'children' | 'rows'>, Omit<InputProps, 'children'> {
6
5
  textareaClassName?: string;
7
6
  labelProps?: InputHTMLAttributes<HTMLLabelElement>;
8
- title?: string;
7
+ minRows?: number;
8
+ maxRows?: number;
9
9
  }
10
- declare const TextAreaInput: React.ForwardRefExoticComponent<Omit<TextAreaInputProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
10
+ declare const TextAreaInput: React.ForwardRefExoticComponent<TextAreaInputProps & React.RefAttributes<HTMLTextAreaElement>>;
11
11
  export default TextAreaInput;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import React, { HTMLAttributes, ButtonHTMLAttributes, InputHTMLAttributes } from 'react';
2
2
  import { MaskedInputProps } from 'react-text-mask';
3
- import { TextareaAutosizeProps } from '@mui/base/TextareaAutosize';
4
3
  import * as _emotion_styled from '@emotion/styled';
5
4
  import * as _mui_system from '@mui/system';
6
5
  import * as _mui_material_styles from '@mui/material/styles';
@@ -126,12 +125,13 @@ interface ParagraphProps extends EllipsisText, TextAlign, HTMLAttributes<HTMLPar
126
125
  }
127
126
  declare const Paragraph: React.ForwardRefExoticComponent<ParagraphProps & React.RefAttributes<HTMLParagraphElement>>;
128
127
 
129
- interface TextAreaInputProps extends TextareaAutosizeProps, Omit<InputProps, 'children'> {
128
+ interface TextAreaInputProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'children' | 'rows'>, Omit<InputProps, 'children'> {
130
129
  textareaClassName?: string;
131
130
  labelProps?: InputHTMLAttributes<HTMLLabelElement>;
132
- title?: string;
131
+ minRows?: number;
132
+ maxRows?: number;
133
133
  }
134
- declare const TextAreaInput: React.ForwardRefExoticComponent<Omit<TextAreaInputProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
134
+ declare const TextAreaInput: React.ForwardRefExoticComponent<TextAreaInputProps & React.RefAttributes<HTMLTextAreaElement>>;
135
135
 
136
136
  type AlertType = 'error' | 'warning' | 'success' | 'info' | 'config';
137
137
  type IconType = 'info' | 'cross' | 'error' | 'warning' | 'success' | 'config';
package/dist/index.js CHANGED
@@ -2874,7 +2874,7 @@ styleInject(css_248z$a);
2874
2874
  var TextAreaInput = React$1.forwardRef(function (_a, ref) {
2875
2875
  var className = _a.className, disabled = _a.disabled, startElement = _a.startElement, endElement = _a.endElement, error = _a.error, label = _a.label, hint = _a.hint, wide = _a.wide, required = _a.required, loading = _a.loading, minRows = _a.minRows, maxRows = _a.maxRows, textareaClassName = _a.textareaClassName, labelProps = _a.labelProps, rest = __rest(_a, ["className", "disabled", "startElement", "endElement", "error", "label", "hint", "wide", "required", "loading", "minRows", "maxRows", "textareaClassName", "labelProps"]);
2876
2876
  return (React$1.createElement(Input, { required: required, wide: wide, className: cn(className, 'vchasno-ui-textarea-input-container'), loading: loading, disabled: disabled, label: label, error: error, hint: hint, endElement: endElement, labelProps: labelProps, startElement: startElement },
2877
- React$1.createElement(TextareaAutosize, __assign({}, rest, { ref: ref, minRows: minRows, maxRows: maxRows, required: required, disabled: disabled, suppressContentEditableWarning: true, suppressHydrationWarning: true, className: cn('vchasno-ui-textarea-input', textareaClassName) }))));
2877
+ React$1.createElement(TextareaAutosize, __assign({}, rest, { ref: ref, minRows: minRows, maxRows: maxRows, required: required, disabled: disabled, className: cn('vchasno-ui-textarea-input', textareaClassName) }))));
2878
2878
  });
2879
2879
  TextAreaInput.displayName = 'TextAreaInput';
2880
2880