@vchasno/ui-kit 0.3.25 → 0.3.26

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,10 +1,11 @@
1
1
  import React, { InputHTMLAttributes } from 'react';
2
- import { TextareaAutosizeProps } from 'react-textarea-autosize';
3
2
  import { InputProps } from '../Input';
3
+ import { TextareaAutosizeProps } from '@mui/base/TextareaAutosize';
4
4
  import './TextAreaInput.global.css';
5
5
  export interface TextAreaInputProps extends TextareaAutosizeProps, Omit<InputProps, 'children'> {
6
6
  textareaClassName?: string;
7
7
  labelProps?: InputHTMLAttributes<HTMLLabelElement>;
8
+ title?: string;
8
9
  }
9
- declare const TextAreaInput: React.ForwardRefExoticComponent<TextAreaInputProps & React.RefAttributes<HTMLTextAreaElement>>;
10
+ declare const TextAreaInput: React.ForwardRefExoticComponent<Omit<TextAreaInputProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
10
11
  export default TextAreaInput;
@@ -1,6 +1,5 @@
1
1
  .vchasno-ui-textarea-input-container .vchasno-ui-input__wrapper {
2
2
  height: auto;
3
- min-height: 40px;
4
3
  padding-top: 10px;
5
4
  padding-bottom: 10px;
6
5
  }
@@ -19,11 +18,6 @@
19
18
  font-size: var(--vchasno-ui-input-font-size);
20
19
  line-height: calc(var(--vchasno-ui-input-font-size) * 1.2);
21
20
  transition: color var(--vchasno-ui-transition-duration-sec, 0.3s);
22
- visibility: hidden;
23
- }
24
-
25
- .vchasno-ui-textarea-input:focus::placeholder {
26
- visibility: visible;
27
21
  }
28
22
 
29
23
  .vchasno-ui-input__wrapper__label {
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React, { HTMLAttributes, ButtonHTMLAttributes, InputHTMLAttributes } from 'react';
2
2
  import { MaskedInputProps } from 'react-text-mask';
3
- import { TextareaAutosizeProps } from 'react-textarea-autosize';
3
+ import { TextareaAutosizeProps } from '@mui/base/TextareaAutosize';
4
4
  import * as _emotion_styled from '@emotion/styled';
5
5
  import * as _mui_system from '@mui/system';
6
6
  import * as _mui_material_styles from '@mui/material/styles';
@@ -129,8 +129,9 @@ declare const Paragraph: React.ForwardRefExoticComponent<ParagraphProps & React.
129
129
  interface TextAreaInputProps extends TextareaAutosizeProps, Omit<InputProps, 'children'> {
130
130
  textareaClassName?: string;
131
131
  labelProps?: InputHTMLAttributes<HTMLLabelElement>;
132
+ title?: string;
132
133
  }
133
- declare const TextAreaInput: React.ForwardRefExoticComponent<TextAreaInputProps & React.RefAttributes<HTMLTextAreaElement>>;
134
+ declare const TextAreaInput: React.ForwardRefExoticComponent<Omit<TextAreaInputProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
134
135
 
135
136
  type AlertType = 'error' | 'warning' | 'success' | 'info' | 'config';
136
137
  type IconType = 'info' | 'cross' | 'error' | 'warning' | 'success' | 'config';