@vchasno/ui-kit 0.3.26 → 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.
- package/dist/Datepicker/types/components/TextAreaInput/TextAreaInput.d.ts +4 -4
- package/dist/Menu/types/components/TextAreaInput/TextAreaInput.d.ts +4 -4
- package/dist/ProjectsPopover/types/components/TextAreaInput/TextAreaInput.d.ts +4 -4
- package/dist/Select/types/components/TextAreaInput/TextAreaInput.d.ts +4 -4
- package/dist/SelectCreatable/types/components/TextAreaInput/TextAreaInput.d.ts +4 -4
- package/dist/Snackbar/index.cjs.js +1 -1
- package/dist/Snackbar/index.cjs.js.map +1 -1
- package/dist/Snackbar/index.js +1 -1
- package/dist/Snackbar/index.js.map +1 -1
- package/dist/Snackbar/types/components/TextAreaInput/TextAreaInput.d.ts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/components/TextAreaInput/TextAreaInput.d.ts +4 -4
- package/package.json +1 -1
|
@@ -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
|
|
4
|
+
export interface TextAreaInputProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'children' | 'rows'>, Omit<InputProps, 'children'> {
|
|
6
5
|
textareaClassName?: string;
|
|
7
6
|
labelProps?: InputHTMLAttributes<HTMLLabelElement>;
|
|
8
|
-
|
|
7
|
+
minRows?: number;
|
|
8
|
+
maxRows?: number;
|
|
9
9
|
}
|
|
10
|
-
declare const TextAreaInput: React.ForwardRefExoticComponent<
|
|
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
|
|
128
|
+
interface TextAreaInputProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'children' | 'rows'>, Omit<InputProps, 'children'> {
|
|
130
129
|
textareaClassName?: string;
|
|
131
130
|
labelProps?: InputHTMLAttributes<HTMLLabelElement>;
|
|
132
|
-
|
|
131
|
+
minRows?: number;
|
|
132
|
+
maxRows?: number;
|
|
133
133
|
}
|
|
134
|
-
declare const TextAreaInput: React.ForwardRefExoticComponent<
|
|
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,
|
|
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
|
|