@true-engineering/true-react-common-ui-kit 4.0.0-alpha15 → 4.0.0-alpha17
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/components/TextArea/TextArea.d.ts +1 -3
- package/dist/true-react-common-ui-kit.js +7 -5
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +7 -5
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/Input/InputBase.tsx +2 -3
- package/src/components/TextArea/TextArea.tsx +8 -5
|
@@ -3,12 +3,10 @@ import { ICommonProps } from '../../types';
|
|
|
3
3
|
import { IControlWrapperProps } from '../ControlWrapper';
|
|
4
4
|
import { IWithMessagesProps } from '../WithMessages';
|
|
5
5
|
import { ITextAreaStyles } from './TextArea.styles';
|
|
6
|
-
export interface ITextAreaProps extends ICommonProps<ITextAreaStyles>, Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange'>, Pick<IControlWrapperProps, 'label' | 'isInvalid' | 'isRequired' | 'isDisabled' | 'size'>, Pick<IWithMessagesProps, 'infoMessage' | 'errorMessage'> {
|
|
6
|
+
export interface ITextAreaProps extends ICommonProps<ITextAreaStyles>, Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange'>, Pick<IControlWrapperProps, 'label' | 'isInvalid' | 'isRequired' | 'isDisabled' | 'size' | 'groupPlacement'>, Pick<IWithMessagesProps, 'infoMessage' | 'errorMessage'> {
|
|
7
7
|
value?: string;
|
|
8
8
|
placeholder?: string;
|
|
9
9
|
/** @default false */
|
|
10
|
-
isDisabled?: boolean;
|
|
11
|
-
/** @default false */
|
|
12
10
|
isActive?: boolean;
|
|
13
11
|
/**
|
|
14
12
|
* Должна ли высота и ширина textarea подстраиваться под содержимое
|
|
@@ -10534,7 +10534,7 @@ var InputBase = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10534
10534
|
var _useState = _sliced_to_array$j(useState(false), 2), isFocused = _useState[0], setFocused = _useState[1];
|
|
10535
10535
|
var _useState1 = _sliced_to_array$j(useState(), 2), unitsWidth = _useState1[0], setUnitsWidth = _useState1[1];
|
|
10536
10536
|
var inputRef = useRef(null);
|
|
10537
|
-
var mergedRef =
|
|
10537
|
+
var mergedRef = useMergedRefs([
|
|
10538
10538
|
ref,
|
|
10539
10539
|
inputRef
|
|
10540
10540
|
]);
|
|
@@ -31410,9 +31410,8 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
31410
31410
|
}
|
|
31411
31411
|
var DEFAULT_VALUE = "";
|
|
31412
31412
|
var TextArea = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
31413
|
-
var _param_value = _param.value, value = _param_value === void 0 ? DEFAULT_VALUE : _param_value,
|
|
31413
|
+
var _param_value = _param.value, value = _param_value === void 0 ? DEFAULT_VALUE : _param_value, placeholder = _param.placeholder, name = _param.name, shouldFocusOnMount = _param.shouldFocusOnMount, _param_hasCounter = _param.hasCounter, hasCounter = _param_hasCounter === void 0 ? true : _param_hasCounter, shouldTrimAfterMaxLength = _param.shouldTrimAfterMaxLength, _param_isAutoSized = _param.isAutoSized, isAutoSized = _param_isAutoSized === void 0 ? true : _param_isAutoSized, shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, isActive = _param.isActive, maxLength = _param.maxLength, rows = _param.rows, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, onChange = _param.onChange, onPaste = _param.onPaste, onFocus = _param.onFocus, onBlur = _param.onBlur, infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, label = _param.label, isDisabled = _param.isDisabled, isInvalid = _param.isInvalid, isRequired = _param.isRequired, size2 = _param.size, groupPlacement = _param.groupPlacement, textAreaProps = _object_without_properties$3(_param, [
|
|
31414
31414
|
"value",
|
|
31415
|
-
"label",
|
|
31416
31415
|
"placeholder",
|
|
31417
31416
|
"name",
|
|
31418
31417
|
"shouldFocusOnMount",
|
|
@@ -31420,7 +31419,6 @@ var TextArea = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
31420
31419
|
"shouldTrimAfterMaxLength",
|
|
31421
31420
|
"isAutoSized",
|
|
31422
31421
|
"shouldAlwaysShowPlaceholder",
|
|
31423
|
-
"isDisabled",
|
|
31424
31422
|
"isActive",
|
|
31425
31423
|
"maxLength",
|
|
31426
31424
|
"rows",
|
|
@@ -31433,9 +31431,12 @@ var TextArea = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
31433
31431
|
"onBlur",
|
|
31434
31432
|
"infoMessage",
|
|
31435
31433
|
"errorMessage",
|
|
31434
|
+
"label",
|
|
31435
|
+
"isDisabled",
|
|
31436
31436
|
"isInvalid",
|
|
31437
31437
|
"isRequired",
|
|
31438
|
-
"size"
|
|
31438
|
+
"size",
|
|
31439
|
+
"groupPlacement"
|
|
31439
31440
|
]);
|
|
31440
31441
|
var classes = useStyles$4({
|
|
31441
31442
|
theme: tweakStyles
|
|
@@ -31481,6 +31482,7 @@ var TextArea = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
31481
31482
|
hasValue,
|
|
31482
31483
|
isInvalid,
|
|
31483
31484
|
isRequired,
|
|
31485
|
+
groupPlacement,
|
|
31484
31486
|
size: size2,
|
|
31485
31487
|
isFullWidth: true,
|
|
31486
31488
|
children: /* @__PURE__ */ jsx("div", _object_spread_props$5(_object_spread$5({
|