@hh.ru/magritte-ui-textarea 2.0.75 → 2.1.0
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/TextArea.d.ts +1 -1
- package/TextArea.js +22 -14
- package/TextArea.js.map +1 -1
- package/UncontrolledTextArea.d.ts +1 -1
- package/index.css +181 -136
- package/package.json +3 -3
- package/types.d.ts +12 -8
package/TextArea.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type TextareaHTMLAttributes } from 'react';
|
|
2
2
|
import type { ControlledTextAreaProps } from '@hh.ru/magritte-ui-textarea/types';
|
|
3
|
-
declare const TextArea: import("react").ForwardRefExoticComponent<(ControlledTextAreaProps & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "placeholder" | "onFocus" | "onBlur" | "description" | "errorMessage" | "disabled" | "invalid" | "invalidLimit" | "elevatePlaceholder" | "onChange" | "value" | "maxLength" | "onValidate" | "layout" | "resize">) & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
3
|
+
declare const TextArea: import("react").ForwardRefExoticComponent<(ControlledTextAreaProps & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "placeholder" | "onFocus" | "onBlur" | "description" | "errorMessage" | "disabled" | "invalid" | "invalidLimit" | "elevatePlaceholder" | "onChange" | "value" | "maxLength" | "onValidate" | "layout" | "minHeight" | "resize">) & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
4
4
|
export { TextArea };
|
package/TextArea.js
CHANGED
|
@@ -12,9 +12,10 @@ import { useInputAriaProps } from '@hh.ru/magritte-ui-input/useInputAriaProps';
|
|
|
12
12
|
import { useFocus } from './useFocus.js';
|
|
13
13
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
14
14
|
|
|
15
|
-
var styles = {"textarea":"magritte-textarea___ugvor_2-0
|
|
15
|
+
var styles = {"textarea":"magritte-textarea___ugvor_2-1-0","textarea-focused":"magritte-textarea-focused___eiGyC_2-1-0","textareaFocused":"magritte-textarea-focused___eiGyC_2-1-0","textarea-invalid":"magritte-textarea-invalid___iKOPh_2-1-0","textareaInvalid":"magritte-textarea-invalid___iKOPh_2-1-0","textarea-disabled":"magritte-textarea-disabled___XN0cg_2-1-0","textareaDisabled":"magritte-textarea-disabled___XN0cg_2-1-0","textarea-position-container-wrapper":"magritte-textarea-position-container-wrapper___4Dsui_2-1-0","textareaPositionContainerWrapper":"magritte-textarea-position-container-wrapper___4Dsui_2-1-0","textarea-position-container":"magritte-textarea-position-container___cEpbv_2-1-0","textareaPositionContainer":"magritte-textarea-position-container___cEpbv_2-1-0","native-element":"magritte-native-element___a0RAE_2-1-0","nativeElement":"magritte-native-element___a0RAE_2-1-0","textarea-label":"magritte-textarea-label___sgTIH_2-1-0","textareaLabel":"magritte-textarea-label___sgTIH_2-1-0","textarea-label-elevated":"magritte-textarea-label-elevated___0lxOI_2-1-0","textareaLabelElevated":"magritte-textarea-label-elevated___0lxOI_2-1-0","textarea-limit":"magritte-textarea-limit___IjPJy_2-1-0","textareaLimit":"magritte-textarea-limit___IjPJy_2-1-0","textarea-limit-error":"magritte-textarea-limit-error___vLvZU_2-1-0","textareaLimitError":"magritte-textarea-limit-error___vLvZU_2-1-0","min-height-48":"magritte-min-height-48___jGf5Z_2-1-0","minHeight48":"magritte-min-height-48___jGf5Z_2-1-0","min-height-56":"magritte-min-height-56___2yI39_2-1-0","minHeight56":"magritte-min-height-56___2yI39_2-1-0","min-height-default":"magritte-min-height-default___zwRcq_2-1-0","minHeightDefault":"magritte-min-height-default___zwRcq_2-1-0","textarea-limited":"magritte-textarea-limited___cU1Rg_2-1-0","textareaLimited":"magritte-textarea-limited___cU1Rg_2-1-0","textarea-layout-fill-both":"magritte-textarea-layout-fill-both___ERS-q_2-1-0","textareaLayoutFillBoth":"magritte-textarea-layout-fill-both___ERS-q_2-1-0","textarea-layout-fill-vertical":"magritte-textarea-layout-fill-vertical___HmNtp_2-1-0","textareaLayoutFillVertical":"magritte-textarea-layout-fill-vertical___HmNtp_2-1-0","textarea-layout-fill-horizontal":"magritte-textarea-layout-fill-horizontal___imBH2_2-1-0","textareaLayoutFillHorizontal":"magritte-textarea-layout-fill-horizontal___imBH2_2-1-0","textarea-wrapper":"magritte-textarea-wrapper___yD7G6_2-1-0","textareaWrapper":"magritte-textarea-wrapper___yD7G6_2-1-0","textarea-layout-hug":"magritte-textarea-layout-hug___tdCMY_2-1-0","textareaLayoutHug":"magritte-textarea-layout-hug___tdCMY_2-1-0","textarea-elevated":"magritte-textarea-elevated___S0jk-_2-1-0","textareaElevated":"magritte-textarea-elevated___S0jk-_2-1-0","textarea-animation-timeout":"magritte-textarea-animation-timeout___zudbr_2-1-0","textareaAnimationTimeout":"magritte-textarea-animation-timeout___zudbr_2-1-0","textarea-rigging-container":"magritte-textarea-rigging-container___-1S6i_2-1-0","textareaRiggingContainer":"magritte-textarea-rigging-container___-1S6i_2-1-0","textarea-grip":"magritte-textarea-grip___iL7lq_2-1-0","textareaGrip":"magritte-textarea-grip___iL7lq_2-1-0","textarea-grip-icon":"magritte-textarea-grip-icon___YK-9w_2-1-0","textareaGripIcon":"magritte-textarea-grip-icon___YK-9w_2-1-0","textarea-limit-enter":"magritte-textarea-limit-enter___CygGz_2-1-0","textareaLimitEnter":"magritte-textarea-limit-enter___CygGz_2-1-0","textarea-limit-exit":"magritte-textarea-limit-exit___RMp-R_2-1-0","textareaLimitExit":"magritte-textarea-limit-exit___RMp-R_2-1-0","textarea-limit-enter-active":"magritte-textarea-limit-enter-active___8vN-t_2-1-0","textareaLimitEnterActive":"magritte-textarea-limit-enter-active___8vN-t_2-1-0","textarea-limit-exit-active":"magritte-textarea-limit-exit-active___a5kBr_2-1-0","textareaLimitExitActive":"magritte-textarea-limit-exit-active___a5kBr_2-1-0"};
|
|
16
16
|
|
|
17
|
-
const
|
|
17
|
+
const MIN_HEIGHT_WITH_VISIBLE_LIMIT = 112;
|
|
18
|
+
const TextAreaComponent = ({ onChange, onFocus, onBlur, onValidate, value, placeholder, disabled = false, elevatePlaceholder = false, invalid = false, invalidLimit = false, maxLength, description, errorMessage, resize = 'none', layout = 'fixed', minHeight, ...restProps }, ref) => {
|
|
18
19
|
const { isXS, isS } = useBreakpoint();
|
|
19
20
|
const [internalInvalid, setInternalInvalid] = useState(false);
|
|
20
21
|
const [isFocusVisible, setFocusVisible] = useState(false);
|
|
@@ -30,6 +31,8 @@ const TextAreaComponent = ({ onChange, onFocus, onBlur, onValidate, value, place
|
|
|
30
31
|
const [animationTimeout, setAnimationTimeout] = useState(100);
|
|
31
32
|
const currentResizeValue = isXS || isS ? 'none' : resize;
|
|
32
33
|
const isResizable = currentResizeValue !== 'none';
|
|
34
|
+
const [isMaxLengthDisplayed, setMaxLengthDisplayed] = useState(!!maxLength && !minHeight);
|
|
35
|
+
const actualMinHeight = minHeight !== undefined && !value.includes('\n') ? minHeight : undefined;
|
|
33
36
|
const forceDisabled = useDisabled();
|
|
34
37
|
const isComponentDisabled = forceDisabled || !!disabled;
|
|
35
38
|
useEffect(() => {
|
|
@@ -78,8 +81,8 @@ const TextAreaComponent = ({ onChange, onFocus, onBlur, onValidate, value, place
|
|
|
78
81
|
setFocusVisible(isFocused && textAreaRef.current.classList.contains('focus-visible'));
|
|
79
82
|
}
|
|
80
83
|
}, [isFocused]);
|
|
81
|
-
const
|
|
82
|
-
const showLabel =
|
|
84
|
+
const placeholderIsElevated = !!elevatePlaceholder && !!placeholder;
|
|
85
|
+
const showLabel = placeholderIsElevated || value === '';
|
|
83
86
|
const invalidState = invalid || invalidLimit;
|
|
84
87
|
const ariaProps = useInputAriaProps({
|
|
85
88
|
invalid: invalidState || internalInvalid,
|
|
@@ -88,27 +91,32 @@ const TextAreaComponent = ({ onChange, onFocus, onBlur, onValidate, value, place
|
|
|
88
91
|
descriptionId,
|
|
89
92
|
labelId,
|
|
90
93
|
});
|
|
91
|
-
const hasElevatedPlaceholderClass = (isFocused || value !== '') &&
|
|
94
|
+
const hasElevatedPlaceholderClass = (isFocused || value !== '') && placeholderIsElevated;
|
|
95
|
+
useEffect(() => {
|
|
96
|
+
if (resizableDivRef.current !== null) {
|
|
97
|
+
setMaxLengthDisplayed(!!maxLength && (!minHeight || resizableDivRef.current.offsetHeight >= MIN_HEIGHT_WITH_VISIBLE_LIMIT));
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
// value нужен в зависимостях, чтобы проверять размер после ввода каждого символа
|
|
101
|
+
[maxLength, minHeight, value]);
|
|
92
102
|
return (jsxs("div", { "data-qa": "textarea-wrapper", "data-interactive": true, className: classnames(styles.textarea, {
|
|
93
103
|
[styles.textareaFocused]: isFocused,
|
|
94
104
|
[styles.textareaDisabled]: isComponentDisabled,
|
|
95
105
|
[styles.textareaInvalid]: !!(invalidState || internalInvalid),
|
|
96
|
-
[styles.textareaLimitError]: invalidLimit ||
|
|
97
|
-
|
|
98
|
-
(maxLength === undefined || maxLength === null ? false : value.length > maxLength),
|
|
99
|
-
[styles.textareaLimited]: !!maxLength,
|
|
106
|
+
[styles.textareaLimitError]: invalidLimit || internalInvalid || (maxLength ? value.length > maxLength : false),
|
|
107
|
+
[styles.textareaLimited]: isMaxLengthDisplayed,
|
|
100
108
|
[styles.textareaLayoutFillBoth]: layout === 'fill-both',
|
|
101
109
|
[styles.textareaLayoutFillVertical]: layout === 'fill-vertical',
|
|
102
110
|
[styles.textareaLayoutFillHorizontal]: layout === 'fill-horizontal',
|
|
103
111
|
[styles.textareaLayoutHug]: layout === 'hug',
|
|
104
|
-
[styles.
|
|
112
|
+
[styles.textareaElevated]: placeholderIsElevated,
|
|
113
|
+
[styles[`minHeight${minHeight}`]]: actualMinHeight,
|
|
114
|
+
[styles.minHeightDefault]: !minHeight,
|
|
105
115
|
}), children: [jsxs("div", { className: classnames(styles.textareaPositionContainerWrapper, {
|
|
106
116
|
'focus-visible': isFocusVisible,
|
|
107
|
-
}), children: [jsxs("div", { className: classnames(styles.textareaPositionContainer, {
|
|
108
|
-
[styles.textareaElevated]: isElevatedPlaceholder,
|
|
109
|
-
}), onClick: handleClick, onMouseDown: isResizable ? handleMouseDown : undefined, onMouseUp: isResizable ? handleMouseUp : undefined, style: { resize: currentResizeValue }, ref: resizableDivRef, children: [jsx("div", { className: styles.textareaWrapper, "data-qa": "textarea-native-wrapper", "data-replicated-value": layout === 'hug' ? value : '', children: jsx("textarea", { ...restProps, ...ariaProps, disabled: isComponentDisabled, suppressHydrationWarning: true, className: styles.textareaNative, value: value, onChange: onChange, onFocus: focusHandler, onBlur: blurHandler, ref: textAreaRefCallback }) }), showLabel && (jsx("div", { className: styles.textareaRiggingContainer, children: jsx("label", { className: classnames(styles.textareaLabel, {
|
|
117
|
+
}), children: [jsxs("div", { className: classnames(styles.textareaPositionContainer), onClick: handleClick, onMouseDown: isResizable ? handleMouseDown : undefined, onMouseUp: isResizable ? handleMouseUp : undefined, style: { resize: currentResizeValue }, ref: resizableDivRef, children: [jsx("div", { className: styles.textareaWrapper, "data-qa": "textarea-native-wrapper", "data-replicated-value": layout === 'hug' ? value : '', children: jsx("textarea", { ...restProps, ...ariaProps, disabled: isComponentDisabled, suppressHydrationWarning: true, className: styles.nativeElement, value: value, onChange: onChange, onFocus: focusHandler, onBlur: blurHandler, ref: textAreaRefCallback, rows: actualMinHeight && 1 }) }), showLabel && (jsx("div", { className: styles.textareaRiggingContainer, children: jsx("label", { className: classnames(styles.textareaLabel, {
|
|
110
118
|
[styles.textareaLabelElevated]: hasElevatedPlaceholderClass,
|
|
111
|
-
}), id: ariaProps['aria-labelledby'], children: placeholder }) })), !!maxLength && (jsx(CSSTransition, { in: isFocused || value.length > maxLength, timeout: animationTimeout, classNames: {
|
|
119
|
+
}), id: ariaProps['aria-labelledby'], children: placeholder }) })), !!maxLength && isMaxLengthDisplayed && (jsx(CSSTransition, { in: isFocused || value.length > maxLength, timeout: animationTimeout, classNames: {
|
|
112
120
|
enter: styles.textareaLimitEnter,
|
|
113
121
|
enterActive: styles.textareaLimitEnterActive,
|
|
114
122
|
exit: styles.textareaLimitExit,
|
package/TextArea.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.js","sources":["../src/TextArea.tsx"],"sourcesContent":["import { forwardRef, type ForwardedRef, useId, useRef, useState, type TextareaHTMLAttributes, useEffect } from 'react';\nimport { CSSTransition } from 'react-transition-group';\nimport classnames from 'classnames';\n\nimport { useDisabled } from '@hh.ru/magritte-common-use-disabled';\nimport { useMultipleRefs } from '@hh.ru/magritte-common-use-multiple-refs';\nimport { useBreakpoint } from '@hh.ru/magritte-ui-breakpoint';\nimport { FormHelper } from '@hh.ru/magritte-ui-form-helper';\nimport { GripSize24 } from '@hh.ru/magritte-ui-icon/private';\nimport { useInputAriaProps } from '@hh.ru/magritte-ui-input/useInputAriaProps';\nimport type { ControlledTextAreaProps } from '@hh.ru/magritte-ui-textarea/types';\nimport { useFocus } from '@hh.ru/magritte-ui-textarea/useFocus';\nimport { Text } from '@hh.ru/magritte-ui-typography';\n\nimport styles from './textarea.less';\n\nconst TextAreaComponent = (\n {\n onChange,\n onFocus,\n onBlur,\n onValidate,\n value,\n placeholder,\n disabled = false,\n elevatePlaceholder = false,\n invalid = false,\n invalidLimit = false,\n maxLength,\n description,\n errorMessage,\n resize = 'none',\n layout = 'fixed',\n ...restProps\n }: ControlledTextAreaProps & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, keyof ControlledTextAreaProps>,\n ref: ForwardedRef<HTMLTextAreaElement>\n) => {\n const { isXS, isS } = useBreakpoint();\n const [internalInvalid, setInternalInvalid] = useState(false);\n const [isFocusVisible, setFocusVisible] = useState(false);\n const limitRef = useRef<HTMLDivElement>(null);\n const previousInvalid = useRef(internalInvalid);\n const textAreaRef = useRef<HTMLTextAreaElement>(null);\n const resizableDivRef = useRef<HTMLDivElement>(null);\n const resizableDivSizes = useRef<{ width?: number; height?: number } | null>(null);\n const resizableDivWasResized = useRef(false);\n const textAreaRefCallback = useMultipleRefs(ref, textAreaRef);\n const descriptionId = useId();\n const labelId = useId();\n const [animationTimeout, setAnimationTimeout] = useState(100);\n const currentResizeValue = isXS || isS ? 'none' : resize;\n const isResizable = currentResizeValue !== 'none';\n\n const forceDisabled = useDisabled();\n const isComponentDisabled = forceDisabled || !!disabled;\n\n useEffect(() => {\n const animationTimeoutElement = document.createElement('div');\n animationTimeoutElement.classList.add(styles.textareaAnimationTimeout);\n document.body.appendChild(animationTimeoutElement);\n const style = window.getComputedStyle(animationTimeoutElement);\n const animationTimeout = parseInt(style.getPropertyValue(`--animation-duration`), 10);\n if (Number.isInteger(animationTimeout)) {\n setAnimationTimeout(animationTimeout);\n }\n document.body.removeChild(animationTimeoutElement);\n }, []);\n\n const { focusHandler, blurHandler, isFocused } = useFocus<HTMLTextAreaElement>(onFocus, onBlur);\n\n const handleClick = () => {\n if (resizableDivWasResized.current) {\n resizableDivWasResized.current = false;\n return;\n }\n textAreaRef.current?.focus();\n };\n\n const handleMouseUp = () => {\n if (\n resizableDivRef.current?.offsetWidth !== resizableDivSizes.current?.width ||\n resizableDivRef.current?.offsetHeight !== resizableDivSizes.current?.height\n ) {\n resizableDivWasResized.current = true;\n }\n };\n\n const handleMouseDown = () => {\n resizableDivSizes.current = {\n width: resizableDivRef.current?.offsetWidth,\n height: resizableDivRef.current?.offsetHeight,\n };\n };\n\n useEffect(() => {\n if (maxLength) {\n const invalid = !isFocused && value.length > maxLength;\n setInternalInvalid(invalid);\n\n if (previousInvalid.current !== invalid) {\n onValidate({ invalidLimit: invalid });\n }\n previousInvalid.current = invalid;\n }\n }, [onValidate, value, internalInvalid, maxLength, isFocused]);\n\n useEffect(() => {\n if (textAreaRef.current) {\n setFocusVisible(isFocused && textAreaRef.current.classList.contains('focus-visible'));\n }\n }, [isFocused]);\n\n const isElevatedPlaceholder = !!elevatePlaceholder && !!placeholder;\n const showLabel = isElevatedPlaceholder || value === '';\n\n const invalidState = invalid || invalidLimit;\n const ariaProps = useInputAriaProps({\n invalid: invalidState || internalInvalid,\n hasDescription: !!description,\n hasPlaceholder: !!placeholder,\n descriptionId,\n labelId,\n });\n\n const hasElevatedPlaceholderClass = (isFocused || value !== '') && isElevatedPlaceholder;\n\n return (\n <div\n data-qa=\"textarea-wrapper\"\n data-interactive={true}\n className={classnames(styles.textarea, {\n [styles.textareaFocused]: isFocused,\n [styles.textareaDisabled]: isComponentDisabled,\n [styles.textareaInvalid]: !!(invalidState || internalInvalid),\n [styles.textareaLimitError]:\n invalidLimit ||\n internalInvalid ||\n (maxLength === undefined || maxLength === null ? false : value.length > maxLength),\n [styles.textareaLimited]: !!maxLength,\n [styles.textareaLayoutFillBoth]: layout === 'fill-both',\n [styles.textareaLayoutFillVertical]: layout === 'fill-vertical',\n [styles.textareaLayoutFillHorizontal]: layout === 'fill-horizontal',\n [styles.textareaLayoutHug]: layout === 'hug',\n [styles.textareaWithoutLabel]: !isElevatedPlaceholder,\n })}\n >\n <div\n className={classnames(styles.textareaPositionContainerWrapper, {\n 'focus-visible': isFocusVisible,\n })}\n >\n <div\n className={classnames(styles.textareaPositionContainer, {\n [styles.textareaElevated]: isElevatedPlaceholder,\n })}\n onClick={handleClick}\n onMouseDown={isResizable ? handleMouseDown : undefined}\n onMouseUp={isResizable ? handleMouseUp : undefined}\n style={{ resize: currentResizeValue }}\n ref={resizableDivRef}\n >\n <div\n className={styles.textareaWrapper}\n data-qa=\"textarea-native-wrapper\"\n data-replicated-value={layout === 'hug' ? value : ''}\n >\n <textarea\n {...restProps}\n {...ariaProps}\n disabled={isComponentDisabled}\n suppressHydrationWarning\n className={styles.textareaNative}\n value={value}\n onChange={onChange}\n onFocus={focusHandler}\n onBlur={blurHandler}\n ref={textAreaRefCallback}\n />\n </div>\n {showLabel && (\n <div className={styles.textareaRiggingContainer}>\n <label\n className={classnames(styles.textareaLabel, {\n [styles.textareaLabelElevated]: hasElevatedPlaceholderClass,\n })}\n id={ariaProps['aria-labelledby']}\n >\n {placeholder}\n </label>\n </div>\n )}\n {!!maxLength && (\n <CSSTransition\n in={isFocused || value.length > maxLength}\n timeout={animationTimeout}\n classNames={{\n enter: styles.textareaLimitEnter,\n enterActive: styles.textareaLimitEnterActive,\n exit: styles.textareaLimitExit,\n exitActive: styles.textareaLimitExitActive,\n }}\n unmountOnExit\n nodeRef={limitRef}\n >\n <div className={styles.textareaLimit} ref={limitRef}>\n <Text typography=\"label-3-regular\">\n {value.length}/{maxLength}\n </Text>\n </div>\n </CSSTransition>\n )}\n </div>\n {currentResizeValue !== 'none' && (\n <div className={styles.textareaGrip}>\n <div className={styles.textareaGripIcon}>\n <GripSize24 />\n </div>\n </div>\n )}\n </div>\n <FormHelper\n description={description}\n errorMessage={errorMessage}\n descriptionId={ariaProps['aria-describedby']}\n disabled={isComponentDisabled}\n invalid={invalidState}\n data-qa=\"textarea-hint-container\"\n />\n </div>\n );\n};\n\nconst TextArea = forwardRef(TextAreaComponent);\n\nTextArea.displayName = 'TextArea';\n\nexport { TextArea };\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;;AAgBA,MAAM,iBAAiB,GAAG,CACtB,EACI,QAAQ,EACR,OAAO,EACP,MAAM,EACN,UAAU,EACV,KAAK,EACL,WAAW,EACX,QAAQ,GAAG,KAAK,EAChB,kBAAkB,GAAG,KAAK,EAC1B,OAAO,GAAG,KAAK,EACf,YAAY,GAAG,KAAK,EACpB,SAAS,EACT,WAAW,EACX,YAAY,EACZ,MAAM,GAAG,MAAM,EACf,MAAM,GAAG,OAAO,EAChB,GAAG,SAAS,EAC6F,EAC7G,GAAsC,KACtC;IACA,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,aAAa,EAAE,CAAC;IACtC,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9D,MAAM,CAAC,cAAc,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC1D,IAAA,MAAM,QAAQ,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;AAC9C,IA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AA,CAAA,EAAA,CACL,GACM,CACnB,CAAA,EAAA,CACC,EACL,kBAAkB,KAAK,MAAM,KAC1BC,aAAK,SAAS,EAAE,MAAM,CAAC,YAAY,YAC/BA,GAAK,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,gBAAgB,EACnC,QAAA,EAAAA,GAAA,CAAC,UAAU,EAAG,EAAA,CAAA,EAAA,CACZ,GACJ,CACT,CAAA,EAAA,CACC,EACNA,GAAC,CAAA,UAAU,IACP,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,SAAS,CAAC,kBAAkB,CAAC,EAC5C,QAAQ,EAAE,mBAAmB,EAC7B,OAAO,EAAE,YAAY,EAAA,SAAA,EACb,yBAAyB,EACnC,CAAA,CAAA,EAAA,CACA,EACR;AACN,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,UAAU,CAAC,iBAAiB,EAAE;AAE/C,QAAQ,CAAC,WAAW,GAAG,UAAU;;;;"}
|
|
1
|
+
{"version":3,"file":"TextArea.js","sources":["../src/TextArea.tsx"],"sourcesContent":["import { forwardRef, type ForwardedRef, useId, useRef, useState, type TextareaHTMLAttributes, useEffect } from 'react';\nimport { CSSTransition } from 'react-transition-group';\nimport classnames from 'classnames';\n\nimport { useDisabled } from '@hh.ru/magritte-common-use-disabled';\nimport { useMultipleRefs } from '@hh.ru/magritte-common-use-multiple-refs';\nimport { useBreakpoint } from '@hh.ru/magritte-ui-breakpoint';\nimport { FormHelper } from '@hh.ru/magritte-ui-form-helper';\nimport { GripSize24 } from '@hh.ru/magritte-ui-icon/private';\nimport { useInputAriaProps } from '@hh.ru/magritte-ui-input/useInputAriaProps';\nimport type { ControlledTextAreaProps } from '@hh.ru/magritte-ui-textarea/types';\nimport { useFocus } from '@hh.ru/magritte-ui-textarea/useFocus';\nimport { Text } from '@hh.ru/magritte-ui-typography';\n\nimport styles from './textarea.less';\n\nconst MIN_HEIGHT_WITH_VISIBLE_LIMIT = 112;\n\nconst TextAreaComponent = (\n {\n onChange,\n onFocus,\n onBlur,\n onValidate,\n value,\n placeholder,\n disabled = false,\n elevatePlaceholder = false,\n invalid = false,\n invalidLimit = false,\n maxLength,\n description,\n errorMessage,\n resize = 'none',\n layout = 'fixed',\n minHeight,\n ...restProps\n }: ControlledTextAreaProps & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, keyof ControlledTextAreaProps>,\n ref: ForwardedRef<HTMLTextAreaElement>\n) => {\n const { isXS, isS } = useBreakpoint();\n const [internalInvalid, setInternalInvalid] = useState(false);\n const [isFocusVisible, setFocusVisible] = useState(false);\n const limitRef = useRef<HTMLDivElement>(null);\n const previousInvalid = useRef(internalInvalid);\n const textAreaRef = useRef<HTMLTextAreaElement>(null);\n const resizableDivRef = useRef<HTMLDivElement>(null);\n const resizableDivSizes = useRef<{ width?: number; height?: number } | null>(null);\n const resizableDivWasResized = useRef(false);\n const textAreaRefCallback = useMultipleRefs(ref, textAreaRef);\n const descriptionId = useId();\n const labelId = useId();\n const [animationTimeout, setAnimationTimeout] = useState(100);\n const currentResizeValue = isXS || isS ? 'none' : resize;\n const isResizable = currentResizeValue !== 'none';\n const [isMaxLengthDisplayed, setMaxLengthDisplayed] = useState(!!maxLength && !minHeight);\n const actualMinHeight = minHeight !== undefined && !value.includes('\\n') ? minHeight : undefined;\n\n const forceDisabled = useDisabled();\n const isComponentDisabled = forceDisabled || !!disabled;\n\n useEffect(() => {\n const animationTimeoutElement = document.createElement('div');\n animationTimeoutElement.classList.add(styles.textareaAnimationTimeout);\n document.body.appendChild(animationTimeoutElement);\n const style = window.getComputedStyle(animationTimeoutElement);\n const animationTimeout = parseInt(style.getPropertyValue(`--animation-duration`), 10);\n if (Number.isInteger(animationTimeout)) {\n setAnimationTimeout(animationTimeout);\n }\n document.body.removeChild(animationTimeoutElement);\n }, []);\n\n const { focusHandler, blurHandler, isFocused } = useFocus<HTMLTextAreaElement>(onFocus, onBlur);\n\n const handleClick = () => {\n if (resizableDivWasResized.current) {\n resizableDivWasResized.current = false;\n return;\n }\n textAreaRef.current?.focus();\n };\n\n const handleMouseUp = () => {\n if (\n resizableDivRef.current?.offsetWidth !== resizableDivSizes.current?.width ||\n resizableDivRef.current?.offsetHeight !== resizableDivSizes.current?.height\n ) {\n resizableDivWasResized.current = true;\n }\n };\n\n const handleMouseDown = () => {\n resizableDivSizes.current = {\n width: resizableDivRef.current?.offsetWidth,\n height: resizableDivRef.current?.offsetHeight,\n };\n };\n\n useEffect(() => {\n if (maxLength) {\n const invalid = !isFocused && value.length > maxLength;\n setInternalInvalid(invalid);\n\n if (previousInvalid.current !== invalid) {\n onValidate({ invalidLimit: invalid });\n }\n previousInvalid.current = invalid;\n }\n }, [onValidate, value, internalInvalid, maxLength, isFocused]);\n\n useEffect(() => {\n if (textAreaRef.current) {\n setFocusVisible(isFocused && textAreaRef.current.classList.contains('focus-visible'));\n }\n }, [isFocused]);\n\n const placeholderIsElevated = !!elevatePlaceholder && !!placeholder;\n const showLabel = placeholderIsElevated || value === '';\n\n const invalidState = invalid || invalidLimit;\n const ariaProps = useInputAriaProps({\n invalid: invalidState || internalInvalid,\n hasDescription: !!description,\n hasPlaceholder: !!placeholder,\n descriptionId,\n labelId,\n });\n\n const hasElevatedPlaceholderClass = (isFocused || value !== '') && placeholderIsElevated;\n\n useEffect(\n () => {\n if (resizableDivRef.current !== null) {\n setMaxLengthDisplayed(\n !!maxLength && (!minHeight || resizableDivRef.current.offsetHeight >= MIN_HEIGHT_WITH_VISIBLE_LIMIT)\n );\n }\n },\n // value нужен в зависимостях, чтобы проверять размер после ввода каждого символа\n [maxLength, minHeight, value]\n );\n\n return (\n <div\n data-qa=\"textarea-wrapper\"\n data-interactive={true}\n className={classnames(styles.textarea, {\n [styles.textareaFocused]: isFocused,\n [styles.textareaDisabled]: isComponentDisabled,\n [styles.textareaInvalid]: !!(invalidState || internalInvalid),\n [styles.textareaLimitError]:\n invalidLimit || internalInvalid || (maxLength ? value.length > maxLength : false),\n [styles.textareaLimited]: isMaxLengthDisplayed,\n [styles.textareaLayoutFillBoth]: layout === 'fill-both',\n [styles.textareaLayoutFillVertical]: layout === 'fill-vertical',\n [styles.textareaLayoutFillHorizontal]: layout === 'fill-horizontal',\n [styles.textareaLayoutHug]: layout === 'hug',\n [styles.textareaElevated]: placeholderIsElevated,\n [styles[`minHeight${minHeight}`]]: actualMinHeight,\n [styles.minHeightDefault]: !minHeight,\n })}\n >\n <div\n className={classnames(styles.textareaPositionContainerWrapper, {\n 'focus-visible': isFocusVisible,\n })}\n >\n <div\n className={classnames(styles.textareaPositionContainer)}\n onClick={handleClick}\n onMouseDown={isResizable ? handleMouseDown : undefined}\n onMouseUp={isResizable ? handleMouseUp : undefined}\n style={{ resize: currentResizeValue }}\n ref={resizableDivRef}\n >\n <div\n className={styles.textareaWrapper}\n data-qa=\"textarea-native-wrapper\"\n data-replicated-value={layout === 'hug' ? value : ''}\n >\n <textarea\n {...restProps}\n {...ariaProps}\n disabled={isComponentDisabled}\n suppressHydrationWarning\n className={styles.nativeElement}\n value={value}\n onChange={onChange}\n onFocus={focusHandler}\n onBlur={blurHandler}\n ref={textAreaRefCallback}\n rows={actualMinHeight && 1}\n />\n </div>\n {showLabel && (\n <div className={styles.textareaRiggingContainer}>\n <label\n className={classnames(styles.textareaLabel, {\n [styles.textareaLabelElevated]: hasElevatedPlaceholderClass,\n })}\n id={ariaProps['aria-labelledby']}\n >\n {placeholder}\n </label>\n </div>\n )}\n {!!maxLength && isMaxLengthDisplayed && (\n <CSSTransition\n in={isFocused || value.length > maxLength}\n timeout={animationTimeout}\n classNames={{\n enter: styles.textareaLimitEnter,\n enterActive: styles.textareaLimitEnterActive,\n exit: styles.textareaLimitExit,\n exitActive: styles.textareaLimitExitActive,\n }}\n unmountOnExit\n nodeRef={limitRef}\n >\n <div className={styles.textareaLimit} ref={limitRef}>\n <Text typography=\"label-3-regular\">\n {value.length}/{maxLength}\n </Text>\n </div>\n </CSSTransition>\n )}\n </div>\n {currentResizeValue !== 'none' && (\n <div className={styles.textareaGrip}>\n <div className={styles.textareaGripIcon}>\n <GripSize24 />\n </div>\n </div>\n )}\n </div>\n <FormHelper\n description={description}\n errorMessage={errorMessage}\n descriptionId={ariaProps['aria-describedby']}\n disabled={isComponentDisabled}\n invalid={invalidState}\n data-qa=\"textarea-hint-container\"\n />\n </div>\n );\n};\n\nconst TextArea = forwardRef(TextAreaComponent);\n\nTextArea.displayName = 'TextArea';\n\nexport { TextArea };\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;;AAgBA,MAAM,6BAA6B,GAAG,GAAG,CAAC;AAE1C,MAAM,iBAAiB,GAAG,CACtB,EACI,QAAQ,EACR,OAAO,EACP,MAAM,EACN,UAAU,EACV,KAAK,EACL,WAAW,EACX,QAAQ,GAAG,KAAK,EAChB,kBAAkB,GAAG,KAAK,EAC1B,OAAO,GAAG,KAAK,EACf,YAAY,GAAG,KAAK,EACpB,SAAS,EACT,WAAW,EACX,YAAY,EACZ,MAAM,GAAG,MAAM,EACf,MAAM,GAAG,OAAO,EAChB,SAAS,EACT,GAAG,SAAS,EAC6F,EAC7G,GAAsC,KACtC;IACA,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,aAAa,EAAE,CAAC;IACtC,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9D,MAAM,CAAC,cAAc,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC1D,IAAA,MAAM,QAAQ,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;AAC9C,IAAA,MAAM,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;AAChD,IAAA,MAAM,WAAW,GAAG,MAAM,CAAsB,IAAI,CAAC,CAAC;AACtD,IAAA,MAAM,eAAe,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;AACrD,IAAA,MAAM,iBAAiB,GAAG,MAA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AAkB;oCAChC,WAAW,EAAE,MAAM,CAAC,wBAAwB;oCAC5C,IAAI,EAAE,MAAM,CAAC,iBAAiB;oCAC9B,UAAU,EAAE,MAAM,CAAC,uBAAuB;iCAC7C,EACD,aAAa,QACb,OAAO,EAAE,QAAQ,EAEjB,QAAA,EAAAA,GAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,aAAa,EAAE,GAAG,EAAE,QAAQ,YAC/CD,IAAC,CAAA,IAAI,IAAC,UAAU,EAAC,iBAAiB,EAC7B,QAAA,EAAA,CAAA,KAAK,CAAC,MAAM,EAAA,GAAA,EAAG,SAAS,CACtB,EAAA,CAAA,EAAA,CACL,GACM,CACnB,CAAA,EAAA,CACC,EACL,kBAAkB,KAAK,MAAM,KAC1BC,aAAK,SAAS,EAAE,MAAM,CAAC,YAAY,YAC/BA,GAAK,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,gBAAgB,EACnC,QAAA,EAAAA,GAAA,CAAC,UAAU,EAAG,EAAA,CAAA,EAAA,CACZ,GACJ,CACT,CAAA,EAAA,CACC,EACNA,GAAC,CAAA,UAAU,IACP,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,SAAS,CAAC,kBAAkB,CAAC,EAC5C,QAAQ,EAAE,mBAAmB,EAC7B,OAAO,EAAE,YAAY,EAAA,SAAA,EACb,yBAAyB,EACnC,CAAA,CAAA,EAAA,CACA,EACR;AACN,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,UAAU,CAAC,iBAAiB,EAAE;AAE/C,QAAQ,CAAC,WAAW,GAAG,UAAU;;;;"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TextareaHTMLAttributes } from 'react';
|
|
2
2
|
import { UncontrolledTextAreaProps } from '@hh.ru/magritte-ui-textarea/types';
|
|
3
|
-
export declare const UncontrolledTextArea: import("react").ForwardRefExoticComponent<(UncontrolledTextAreaProps & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "placeholder" | "onFocus" | "onBlur" | "description" | "errorMessage" | "disabled" | "invalid" | "invalidLimit" | "elevatePlaceholder" | "onChange" | "value" | "maxLength" | "onValidate" | "layout" | "resize">) & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
3
|
+
export declare const UncontrolledTextArea: import("react").ForwardRefExoticComponent<(UncontrolledTextAreaProps & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "placeholder" | "onFocus" | "onBlur" | "description" | "errorMessage" | "disabled" | "invalid" | "invalidLimit" | "elevatePlaceholder" | "onChange" | "value" | "maxLength" | "onValidate" | "layout" | "minHeight" | "resize">) & import("react").RefAttributes<HTMLTextAreaElement>>;
|
package/index.css
CHANGED
|
@@ -100,227 +100,227 @@
|
|
|
100
100
|
--magritte-color-component-input-text-state-description-invalid-v21-1-0:#ff4d3a;
|
|
101
101
|
--magritte-color-component-input-icon-grip-v21-1-0:#535353;
|
|
102
102
|
}
|
|
103
|
-
.magritte-textarea___ugvor_2-0
|
|
103
|
+
.magritte-textarea___ugvor_2-1-0{
|
|
104
104
|
display:inline-flex;
|
|
105
105
|
flex-flow:column;
|
|
106
106
|
--animation-100-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v21-1-0);
|
|
107
107
|
--animation-300-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v21-1-0);
|
|
108
108
|
}
|
|
109
109
|
@media (min-width: 1020px){
|
|
110
|
-
body.magritte-old-layout .magritte-textarea___ugvor_2-0
|
|
110
|
+
body.magritte-old-layout .magritte-textarea___ugvor_2-1-0:not(.magritte-textarea-focused___eiGyC_2-1-0):not(.magritte-textarea-invalid___iKOPh_2-1-0):not(.magritte-textarea-disabled___XN0cg_2-1-0):hover{
|
|
111
111
|
--magritte-ui-form-helper-description-color-override:var(--magritte-color-component-input-text-state-description-hovered-v21-1-0);
|
|
112
112
|
}
|
|
113
|
-
body.magritte-old-layout .magritte-textarea___ugvor_2-0
|
|
113
|
+
body.magritte-old-layout .magritte-textarea___ugvor_2-1-0:not(.magritte-textarea-focused___eiGyC_2-1-0):not(.magritte-textarea-invalid___iKOPh_2-1-0):not(.magritte-textarea-disabled___XN0cg_2-1-0):hover .magritte-textarea-position-container-wrapper___4Dsui_2-1-0::after{
|
|
114
114
|
border-bottom-color:var(--magritte-color-component-input-stroke-state-field-hovered-v21-1-0);
|
|
115
115
|
border-right-color:var(--magritte-color-component-input-stroke-state-field-hovered-v21-1-0);
|
|
116
116
|
border-width:1px;
|
|
117
117
|
background-color:var(--magritte-color-component-input-background-state-field-hovered-v21-1-0);
|
|
118
118
|
}
|
|
119
|
-
body.magritte-old-layout .magritte-textarea___ugvor_2-0
|
|
119
|
+
body.magritte-old-layout .magritte-textarea___ugvor_2-1-0:not(.magritte-textarea-focused___eiGyC_2-1-0):not(.magritte-textarea-invalid___iKOPh_2-1-0):not(.magritte-textarea-disabled___XN0cg_2-1-0):hover .magritte-textarea-position-container___cEpbv_2-1-0{
|
|
120
120
|
box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-hovered-v21-1-0);
|
|
121
121
|
background-color:var(--magritte-color-component-input-background-state-field-hovered-v21-1-0);
|
|
122
122
|
}
|
|
123
|
-
body.magritte-old-layout .magritte-textarea___ugvor_2-0
|
|
123
|
+
body.magritte-old-layout .magritte-textarea___ugvor_2-1-0:not(.magritte-textarea-focused___eiGyC_2-1-0):not(.magritte-textarea-invalid___iKOPh_2-1-0):not(.magritte-textarea-disabled___XN0cg_2-1-0):hover .magritte-native-element___a0RAE_2-1-0{
|
|
124
124
|
color:var(--magritte-color-component-input-text-state-content-hovered-v21-1-0);
|
|
125
125
|
-webkit-text-fill-color:var(--magritte-color-component-input-text-state-content-hovered-v21-1-0);
|
|
126
126
|
opacity:1;
|
|
127
127
|
}
|
|
128
|
-
body.magritte-old-layout .magritte-textarea___ugvor_2-0
|
|
128
|
+
body.magritte-old-layout .magritte-textarea___ugvor_2-1-0:not(.magritte-textarea-focused___eiGyC_2-1-0):not(.magritte-textarea-invalid___iKOPh_2-1-0):not(.magritte-textarea-disabled___XN0cg_2-1-0):hover .magritte-textarea-label___sgTIH_2-1-0{
|
|
129
129
|
color:var(--magritte-color-component-input-text-state-placeholder-hovered-v21-1-0);
|
|
130
130
|
}
|
|
131
|
-
body.magritte-old-layout .magritte-textarea___ugvor_2-0
|
|
131
|
+
body.magritte-old-layout .magritte-textarea___ugvor_2-1-0:not(.magritte-textarea-focused___eiGyC_2-1-0):not(.magritte-textarea-invalid___iKOPh_2-1-0):not(.magritte-textarea-disabled___XN0cg_2-1-0):hover .magritte-textarea-label-elevated___0lxOI_2-1-0{
|
|
132
132
|
color:var(--magritte-color-component-input-text-state-label-hovered-v21-1-0);
|
|
133
133
|
}
|
|
134
|
-
body.magritte-old-layout .magritte-textarea___ugvor_2-0
|
|
134
|
+
body.magritte-old-layout .magritte-textarea___ugvor_2-1-0:not(.magritte-textarea-focused___eiGyC_2-1-0):not(.magritte-textarea-invalid___iKOPh_2-1-0):not(.magritte-textarea-disabled___XN0cg_2-1-0):hover .magritte-textarea-limit___IjPJy_2-1-0{
|
|
135
135
|
background-color:var(--magritte-color-component-input-background-state-field-hovered-v21-1-0);
|
|
136
136
|
}
|
|
137
|
-
body.magritte-old-layout .magritte-textarea___ugvor_2-0
|
|
137
|
+
body.magritte-old-layout .magritte-textarea___ugvor_2-1-0:not(.magritte-textarea-focused___eiGyC_2-1-0):not(.magritte-textarea-invalid___iKOPh_2-1-0):not(.magritte-textarea-disabled___XN0cg_2-1-0):hover .magritte-textarea-limit___IjPJy_2-1-0{
|
|
138
138
|
--magritte-ui-text-color-override:var(--magritte-color-component-input-text-state-limit-hovered-v21-1-0);
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
@media (min-width: 1024px){
|
|
142
|
-
body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-0
|
|
142
|
+
body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-1-0:not(.magritte-textarea-focused___eiGyC_2-1-0):not(.magritte-textarea-invalid___iKOPh_2-1-0):not(.magritte-textarea-disabled___XN0cg_2-1-0):hover{
|
|
143
143
|
--magritte-ui-form-helper-description-color-override:var(--magritte-color-component-input-text-state-description-hovered-v21-1-0);
|
|
144
144
|
}
|
|
145
|
-
body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-0
|
|
145
|
+
body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-1-0:not(.magritte-textarea-focused___eiGyC_2-1-0):not(.magritte-textarea-invalid___iKOPh_2-1-0):not(.magritte-textarea-disabled___XN0cg_2-1-0):hover .magritte-textarea-position-container-wrapper___4Dsui_2-1-0::after{
|
|
146
146
|
border-bottom-color:var(--magritte-color-component-input-stroke-state-field-hovered-v21-1-0);
|
|
147
147
|
border-right-color:var(--magritte-color-component-input-stroke-state-field-hovered-v21-1-0);
|
|
148
148
|
border-width:1px;
|
|
149
149
|
background-color:var(--magritte-color-component-input-background-state-field-hovered-v21-1-0);
|
|
150
150
|
}
|
|
151
|
-
body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-0
|
|
151
|
+
body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-1-0:not(.magritte-textarea-focused___eiGyC_2-1-0):not(.magritte-textarea-invalid___iKOPh_2-1-0):not(.magritte-textarea-disabled___XN0cg_2-1-0):hover .magritte-textarea-position-container___cEpbv_2-1-0{
|
|
152
152
|
box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-hovered-v21-1-0);
|
|
153
153
|
background-color:var(--magritte-color-component-input-background-state-field-hovered-v21-1-0);
|
|
154
154
|
}
|
|
155
|
-
body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-0
|
|
155
|
+
body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-1-0:not(.magritte-textarea-focused___eiGyC_2-1-0):not(.magritte-textarea-invalid___iKOPh_2-1-0):not(.magritte-textarea-disabled___XN0cg_2-1-0):hover .magritte-native-element___a0RAE_2-1-0{
|
|
156
156
|
color:var(--magritte-color-component-input-text-state-content-hovered-v21-1-0);
|
|
157
157
|
-webkit-text-fill-color:var(--magritte-color-component-input-text-state-content-hovered-v21-1-0);
|
|
158
158
|
opacity:1;
|
|
159
159
|
}
|
|
160
|
-
body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-0
|
|
160
|
+
body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-1-0:not(.magritte-textarea-focused___eiGyC_2-1-0):not(.magritte-textarea-invalid___iKOPh_2-1-0):not(.magritte-textarea-disabled___XN0cg_2-1-0):hover .magritte-textarea-label___sgTIH_2-1-0{
|
|
161
161
|
color:var(--magritte-color-component-input-text-state-placeholder-hovered-v21-1-0);
|
|
162
162
|
}
|
|
163
|
-
body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-0
|
|
163
|
+
body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-1-0:not(.magritte-textarea-focused___eiGyC_2-1-0):not(.magritte-textarea-invalid___iKOPh_2-1-0):not(.magritte-textarea-disabled___XN0cg_2-1-0):hover .magritte-textarea-label-elevated___0lxOI_2-1-0{
|
|
164
164
|
color:var(--magritte-color-component-input-text-state-label-hovered-v21-1-0);
|
|
165
165
|
}
|
|
166
|
-
body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-0
|
|
166
|
+
body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-1-0:not(.magritte-textarea-focused___eiGyC_2-1-0):not(.magritte-textarea-invalid___iKOPh_2-1-0):not(.magritte-textarea-disabled___XN0cg_2-1-0):hover .magritte-textarea-limit___IjPJy_2-1-0{
|
|
167
167
|
background-color:var(--magritte-color-component-input-background-state-field-hovered-v21-1-0);
|
|
168
168
|
}
|
|
169
|
-
body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-0
|
|
169
|
+
body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-1-0:not(.magritte-textarea-focused___eiGyC_2-1-0):not(.magritte-textarea-invalid___iKOPh_2-1-0):not(.magritte-textarea-disabled___XN0cg_2-1-0):hover .magritte-textarea-limit___IjPJy_2-1-0{
|
|
170
170
|
--magritte-ui-text-color-override:var(--magritte-color-component-input-text-state-limit-hovered-v21-1-0);
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
.magritte-textarea___ugvor_2-0
|
|
173
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-focused___eiGyC_2-1-0{
|
|
174
174
|
--magritte-ui-form-helper-description-color-override:var(--magritte-color-component-input-text-state-description-focused-v21-1-0);
|
|
175
175
|
}
|
|
176
|
-
.magritte-textarea___ugvor_2-0
|
|
176
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-focused___eiGyC_2-1-0 .magritte-textarea-position-container-wrapper___4Dsui_2-1-0::after{
|
|
177
177
|
border-bottom-color:var(--magritte-color-component-input-stroke-state-field-focused-v21-1-0);
|
|
178
178
|
border-right-color:var(--magritte-color-component-input-stroke-state-field-focused-v21-1-0);
|
|
179
179
|
border-width:2px;
|
|
180
180
|
background-color:var(--magritte-color-component-input-background-state-field-focused-v21-1-0);
|
|
181
181
|
}
|
|
182
|
-
.magritte-textarea___ugvor_2-0
|
|
182
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-focused___eiGyC_2-1-0 .magritte-textarea-position-container___cEpbv_2-1-0{
|
|
183
183
|
box-shadow:inset 0 0 0 2px var(--magritte-color-component-input-stroke-state-field-focused-v21-1-0);
|
|
184
184
|
background-color:var(--magritte-color-component-input-background-state-field-focused-v21-1-0);
|
|
185
185
|
}
|
|
186
|
-
.magritte-textarea___ugvor_2-0
|
|
186
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-focused___eiGyC_2-1-0 .magritte-native-element___a0RAE_2-1-0{
|
|
187
187
|
color:var(--magritte-color-component-input-text-state-content-focused-v21-1-0);
|
|
188
188
|
-webkit-text-fill-color:var(--magritte-color-component-input-text-state-content-focused-v21-1-0);
|
|
189
189
|
opacity:1;
|
|
190
190
|
}
|
|
191
|
-
.magritte-textarea___ugvor_2-0
|
|
191
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-focused___eiGyC_2-1-0 .magritte-textarea-label___sgTIH_2-1-0{
|
|
192
192
|
color:var(--magritte-color-component-input-text-state-placeholder-focused-v21-1-0);
|
|
193
193
|
}
|
|
194
|
-
.magritte-textarea___ugvor_2-0
|
|
194
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-focused___eiGyC_2-1-0 .magritte-textarea-label-elevated___0lxOI_2-1-0{
|
|
195
195
|
color:var(--magritte-color-component-input-text-state-label-focused-v21-1-0);
|
|
196
196
|
}
|
|
197
|
-
.magritte-textarea___ugvor_2-0
|
|
197
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-focused___eiGyC_2-1-0 .magritte-textarea-limit___IjPJy_2-1-0{
|
|
198
198
|
background-color:var(--magritte-color-component-input-background-state-field-focused-v21-1-0);
|
|
199
199
|
}
|
|
200
|
-
.magritte-textarea___ugvor_2-0
|
|
200
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-focused___eiGyC_2-1-0 .magritte-textarea-limit___IjPJy_2-1-0{
|
|
201
201
|
--magritte-ui-text-color-override:var(--magritte-color-component-input-text-state-limit-focused-v21-1-0);
|
|
202
202
|
}
|
|
203
|
-
.magritte-textarea___ugvor_2-0
|
|
204
|
-
.magritte-textarea___ugvor_2-0
|
|
203
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-focused___eiGyC_2-1-0.magritte-textarea-limit-error___vLvZU_2-1-0,
|
|
204
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-focused___eiGyC_2-1-0.magritte-textarea-invalid___iKOPh_2-1-0{
|
|
205
205
|
--magritte-ui-form-helper-error-color-override:var(--magritte-color-component-input-text-state-description-invalid-v21-1-0);
|
|
206
206
|
}
|
|
207
|
-
.magritte-textarea___ugvor_2-0
|
|
208
|
-
.magritte-textarea___ugvor_2-0
|
|
207
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-focused___eiGyC_2-1-0.magritte-textarea-limit-error___vLvZU_2-1-0 .magritte-textarea-position-container-wrapper___4Dsui_2-1-0::after,
|
|
208
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-focused___eiGyC_2-1-0.magritte-textarea-invalid___iKOPh_2-1-0 .magritte-textarea-position-container-wrapper___4Dsui_2-1-0::after{
|
|
209
209
|
border-bottom-color:var(--magritte-color-component-input-stroke-state-field-invalid-v21-1-0);
|
|
210
210
|
border-right-color:var(--magritte-color-component-input-stroke-state-field-invalid-v21-1-0);
|
|
211
211
|
border-width:2px;
|
|
212
212
|
background-color:var(--magritte-color-component-input-background-state-field-invalid-v21-1-0);
|
|
213
213
|
}
|
|
214
|
-
.magritte-textarea___ugvor_2-0
|
|
215
|
-
.magritte-textarea___ugvor_2-0
|
|
214
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-focused___eiGyC_2-1-0.magritte-textarea-limit-error___vLvZU_2-1-0 .magritte-textarea-position-container___cEpbv_2-1-0,
|
|
215
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-focused___eiGyC_2-1-0.magritte-textarea-invalid___iKOPh_2-1-0 .magritte-textarea-position-container___cEpbv_2-1-0{
|
|
216
216
|
box-shadow:inset 0 0 0 2px var(--magritte-color-component-input-stroke-state-field-invalid-v21-1-0);
|
|
217
217
|
background-color:var(--magritte-color-component-input-background-state-field-invalid-v21-1-0);
|
|
218
218
|
}
|
|
219
|
-
.magritte-textarea___ugvor_2-0
|
|
220
|
-
.magritte-textarea___ugvor_2-0
|
|
219
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-focused___eiGyC_2-1-0.magritte-textarea-limit-error___vLvZU_2-1-0 .magritte-native-element___a0RAE_2-1-0,
|
|
220
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-focused___eiGyC_2-1-0.magritte-textarea-invalid___iKOPh_2-1-0 .magritte-native-element___a0RAE_2-1-0{
|
|
221
221
|
color:var(--magritte-color-component-input-text-state-content-invalid-v21-1-0);
|
|
222
222
|
-webkit-text-fill-color:var(--magritte-color-component-input-text-state-content-invalid-v21-1-0);
|
|
223
223
|
opacity:1;
|
|
224
224
|
}
|
|
225
|
-
.magritte-textarea___ugvor_2-0
|
|
226
|
-
.magritte-textarea___ugvor_2-0
|
|
225
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-focused___eiGyC_2-1-0.magritte-textarea-limit-error___vLvZU_2-1-0 .magritte-textarea-label___sgTIH_2-1-0,
|
|
226
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-focused___eiGyC_2-1-0.magritte-textarea-invalid___iKOPh_2-1-0 .magritte-textarea-label___sgTIH_2-1-0{
|
|
227
227
|
color:var(--magritte-color-component-input-text-state-placeholder-invalid-v21-1-0);
|
|
228
228
|
}
|
|
229
|
-
.magritte-textarea___ugvor_2-0
|
|
230
|
-
.magritte-textarea___ugvor_2-0
|
|
229
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-focused___eiGyC_2-1-0.magritte-textarea-limit-error___vLvZU_2-1-0 .magritte-textarea-label-elevated___0lxOI_2-1-0,
|
|
230
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-focused___eiGyC_2-1-0.magritte-textarea-invalid___iKOPh_2-1-0 .magritte-textarea-label-elevated___0lxOI_2-1-0{
|
|
231
231
|
color:var(--magritte-color-component-input-text-state-label-invalid-v21-1-0);
|
|
232
232
|
}
|
|
233
|
-
.magritte-textarea___ugvor_2-0
|
|
234
|
-
.magritte-textarea___ugvor_2-0
|
|
233
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-focused___eiGyC_2-1-0.magritte-textarea-limit-error___vLvZU_2-1-0 .magritte-textarea-limit___IjPJy_2-1-0,
|
|
234
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-focused___eiGyC_2-1-0.magritte-textarea-invalid___iKOPh_2-1-0 .magritte-textarea-limit___IjPJy_2-1-0{
|
|
235
235
|
background-color:var(--magritte-color-component-input-background-state-field-invalid-v21-1-0);
|
|
236
236
|
}
|
|
237
|
-
.magritte-textarea___ugvor_2-0
|
|
237
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-focused___eiGyC_2-1-0.magritte-textarea-limit-error___vLvZU_2-1-0 .magritte-textarea-limit___IjPJy_2-1-0{
|
|
238
238
|
--magritte-ui-text-color-override:var(--magritte-color-component-input-text-state-limit-invalid-v21-1-0);
|
|
239
239
|
}
|
|
240
|
-
.magritte-textarea___ugvor_2-0
|
|
240
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-invalid___iKOPh_2-1-0{
|
|
241
241
|
--magritte-ui-form-helper-error-color-override:var(--magritte-color-component-input-text-state-description-invalid-v21-1-0);
|
|
242
242
|
}
|
|
243
|
-
.magritte-textarea___ugvor_2-0
|
|
243
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-invalid___iKOPh_2-1-0 .magritte-textarea-position-container-wrapper___4Dsui_2-1-0::after{
|
|
244
244
|
border-bottom-color:var(--magritte-color-component-input-stroke-state-field-invalid-v21-1-0);
|
|
245
245
|
border-right-color:var(--magritte-color-component-input-stroke-state-field-invalid-v21-1-0);
|
|
246
246
|
border-width:1px;
|
|
247
247
|
background-color:var(--magritte-color-component-input-background-state-field-invalid-v21-1-0);
|
|
248
248
|
}
|
|
249
|
-
.magritte-textarea___ugvor_2-0
|
|
249
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-invalid___iKOPh_2-1-0 .magritte-textarea-position-container___cEpbv_2-1-0{
|
|
250
250
|
box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-invalid-v21-1-0);
|
|
251
251
|
background-color:var(--magritte-color-component-input-background-state-field-invalid-v21-1-0);
|
|
252
252
|
}
|
|
253
|
-
.magritte-textarea___ugvor_2-0
|
|
253
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-invalid___iKOPh_2-1-0 .magritte-native-element___a0RAE_2-1-0{
|
|
254
254
|
color:var(--magritte-color-component-input-text-state-content-invalid-v21-1-0);
|
|
255
255
|
-webkit-text-fill-color:var(--magritte-color-component-input-text-state-content-invalid-v21-1-0);
|
|
256
256
|
opacity:1;
|
|
257
257
|
}
|
|
258
|
-
.magritte-textarea___ugvor_2-0
|
|
258
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-invalid___iKOPh_2-1-0 .magritte-textarea-label___sgTIH_2-1-0{
|
|
259
259
|
color:var(--magritte-color-component-input-text-state-placeholder-invalid-v21-1-0);
|
|
260
260
|
}
|
|
261
|
-
.magritte-textarea___ugvor_2-0
|
|
261
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-invalid___iKOPh_2-1-0 .magritte-textarea-label-elevated___0lxOI_2-1-0{
|
|
262
262
|
color:var(--magritte-color-component-input-text-state-label-invalid-v21-1-0);
|
|
263
263
|
}
|
|
264
|
-
.magritte-textarea___ugvor_2-0
|
|
264
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-invalid___iKOPh_2-1-0 .magritte-textarea-limit___IjPJy_2-1-0{
|
|
265
265
|
background-color:var(--magritte-color-component-input-background-state-field-invalid-v21-1-0);
|
|
266
266
|
}
|
|
267
|
-
.magritte-textarea___ugvor_2-0
|
|
267
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-limit-error___vLvZU_2-1-0 .magritte-textarea-limit___IjPJy_2-1-0{
|
|
268
268
|
--magritte-ui-text-color-override:var(--magritte-color-component-input-text-state-limit-invalid-v21-1-0);
|
|
269
269
|
}
|
|
270
|
-
.magritte-textarea___ugvor_2-0
|
|
270
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-disabled___XN0cg_2-1-0{
|
|
271
271
|
--magritte-ui-form-helper-description-color-override:var(--magritte-color-component-input-text-state-description-disabled-v21-1-0);
|
|
272
272
|
}
|
|
273
|
-
.magritte-textarea___ugvor_2-0
|
|
273
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-disabled___XN0cg_2-1-0 .magritte-textarea-position-container-wrapper___4Dsui_2-1-0::after{
|
|
274
274
|
border-bottom-color:var(--magritte-color-component-input-stroke-state-field-disabled-v21-1-0);
|
|
275
275
|
border-right-color:var(--magritte-color-component-input-stroke-state-field-disabled-v21-1-0);
|
|
276
276
|
border-width:1px;
|
|
277
277
|
background-color:var(--magritte-color-component-input-background-state-field-disabled-v21-1-0);
|
|
278
278
|
}
|
|
279
|
-
.magritte-textarea___ugvor_2-0
|
|
279
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-disabled___XN0cg_2-1-0 .magritte-textarea-position-container___cEpbv_2-1-0{
|
|
280
280
|
box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-disabled-v21-1-0);
|
|
281
281
|
background-color:var(--magritte-color-component-input-background-state-field-disabled-v21-1-0);
|
|
282
282
|
}
|
|
283
|
-
.magritte-textarea___ugvor_2-0
|
|
283
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-disabled___XN0cg_2-1-0 .magritte-native-element___a0RAE_2-1-0{
|
|
284
284
|
color:var(--magritte-color-component-input-text-state-content-disabled-v21-1-0);
|
|
285
285
|
-webkit-text-fill-color:var(--magritte-color-component-input-text-state-content-disabled-v21-1-0);
|
|
286
286
|
opacity:1;
|
|
287
287
|
}
|
|
288
|
-
.magritte-textarea___ugvor_2-0
|
|
288
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-disabled___XN0cg_2-1-0 .magritte-textarea-label___sgTIH_2-1-0{
|
|
289
289
|
color:var(--magritte-color-component-input-text-state-placeholder-disabled-v21-1-0);
|
|
290
290
|
}
|
|
291
|
-
.magritte-textarea___ugvor_2-0
|
|
291
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-disabled___XN0cg_2-1-0 .magritte-textarea-label-elevated___0lxOI_2-1-0{
|
|
292
292
|
color:var(--magritte-color-component-input-text-state-label-disabled-v21-1-0);
|
|
293
293
|
}
|
|
294
|
-
.magritte-textarea___ugvor_2-0
|
|
294
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-disabled___XN0cg_2-1-0 .magritte-textarea-limit___IjPJy_2-1-0{
|
|
295
295
|
background-color:var(--magritte-color-component-input-background-state-field-disabled-v21-1-0);
|
|
296
296
|
}
|
|
297
|
-
.magritte-textarea___ugvor_2-0
|
|
297
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-disabled___XN0cg_2-1-0 .magritte-textarea-limit___IjPJy_2-1-0{
|
|
298
298
|
--magritte-ui-text-color-override:var(--magritte-color-component-input-text-state-limit-disabled-v21-1-0);
|
|
299
299
|
}
|
|
300
|
-
.magritte-textarea___ugvor_2-0
|
|
301
|
-
.magritte-textarea___ugvor_2-0
|
|
300
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-disabled___XN0cg_2-1-0 .magritte-textarea-position-container___cEpbv_2-1-0,
|
|
301
|
+
.magritte-textarea___ugvor_2-1-0.magritte-textarea-disabled___XN0cg_2-1-0 .magritte-native-element___a0RAE_2-1-0{
|
|
302
302
|
cursor:not-allowed;
|
|
303
303
|
}
|
|
304
304
|
@media (prefers-reduced-motion){
|
|
305
|
-
.magritte-textarea___ugvor_2-0
|
|
305
|
+
.magritte-textarea___ugvor_2-1-0{
|
|
306
306
|
--animation-100-duration:1ms;
|
|
307
307
|
--animation-300-duration:1ms;
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
-
.magritte-textarea-invalid___iKOPh_2-0
|
|
310
|
+
.magritte-textarea-invalid___iKOPh_2-1-0 .magritte-textarea-position-container-wrapper___4Dsui_2-1-0.focus-visible{
|
|
311
311
|
outline:var(--magritte-color-component-input-stroke-state-negative-focused-accessible-v21-1-0) solid 4px;
|
|
312
312
|
}
|
|
313
|
-
.magritte-textarea-position-container-wrapper___4Dsui_2-0
|
|
313
|
+
.magritte-textarea-position-container-wrapper___4Dsui_2-1-0{
|
|
314
314
|
display:inline-flex;
|
|
315
315
|
position:relative;
|
|
316
316
|
overflow:hidden;
|
|
317
317
|
width:100%;
|
|
318
318
|
border-radius:12px;
|
|
319
319
|
}
|
|
320
|
-
.magritte-textarea-position-container-wrapper___4Dsui_2-0
|
|
320
|
+
.magritte-textarea-position-container-wrapper___4Dsui_2-1-0.focus-visible{
|
|
321
321
|
outline:var(--magritte-color-component-input-stroke-state-accent-focused-accessible-v21-1-0) solid 4px;
|
|
322
322
|
}
|
|
323
|
-
.magritte-textarea-position-container-wrapper___4Dsui_2-0
|
|
323
|
+
.magritte-textarea-position-container-wrapper___4Dsui_2-1-0::after{
|
|
324
324
|
display:block;
|
|
325
325
|
pointer-events:none;
|
|
326
326
|
user-select:none;
|
|
@@ -335,14 +335,7 @@
|
|
|
335
335
|
border-bottom:1px solid var(--magritte-color-component-input-stroke-field-v21-1-0);
|
|
336
336
|
border-right:1px solid var(--magritte-color-component-input-stroke-field-v21-1-0);
|
|
337
337
|
}
|
|
338
|
-
.magritte-
|
|
339
|
-
box-sizing:border-box;
|
|
340
|
-
border:0;
|
|
341
|
-
width:100%;
|
|
342
|
-
padding:0 16px;
|
|
343
|
-
padding-right:14px;
|
|
344
|
-
color:var(--magritte-color-component-input-text-content-v21-1-0);
|
|
345
|
-
caret-color:var(--magritte-color-text-primary-v21-1-0);
|
|
338
|
+
.magritte-native-element___a0RAE_2-1-0{
|
|
346
339
|
font-family:var(--magritte-typography-label-2-regular-font-family-v21-1-0);
|
|
347
340
|
font-weight:var(--magritte-typography-label-2-regular-font-weight-v21-1-0);
|
|
348
341
|
line-height:var(--magritte-typography-label-2-regular-line-height-v21-1-0);
|
|
@@ -351,72 +344,75 @@
|
|
|
351
344
|
text-indent:var(--magritte-typography-label-2-regular-text-indent-v21-1-0);
|
|
352
345
|
text-transform:var(--magritte-typography-label-2-regular-text-transform-v21-1-0);
|
|
353
346
|
text-decoration:var(--magritte-typography-label-2-regular-text-decoration-v21-1-0);
|
|
354
|
-
|
|
347
|
+
box-sizing:border-box;
|
|
348
|
+
border:0;
|
|
349
|
+
width:100%;
|
|
350
|
+
padding:0 14px 0 16px;
|
|
351
|
+
color:var(--magritte-color-component-input-text-content-v21-1-0);
|
|
352
|
+
caret-color:var(--magritte-color-text-primary-v21-1-0);
|
|
355
353
|
position:relative;
|
|
356
354
|
resize:none;
|
|
357
355
|
background:none;
|
|
358
356
|
appearance:none;
|
|
359
357
|
}
|
|
360
|
-
.magritte-
|
|
358
|
+
.magritte-native-element___a0RAE_2-1-0:focus{
|
|
361
359
|
outline:none;
|
|
362
360
|
}
|
|
363
|
-
.magritte-
|
|
364
|
-
min-height:calc(
|
|
361
|
+
.magritte-min-height-48___jGf5Z_2-1-0 .magritte-native-element___a0RAE_2-1-0{
|
|
362
|
+
min-height:calc(36px - var(--magritte-typography-label-4-regular-line-height-v21-1-0));
|
|
365
363
|
}
|
|
366
|
-
.magritte-
|
|
367
|
-
|
|
364
|
+
.magritte-min-height-56___2yI39_2-1-0 .magritte-native-element___a0RAE_2-1-0{
|
|
365
|
+
min-height:calc(40px - var(--magritte-typography-label-4-regular-line-height-v21-1-0));
|
|
366
|
+
}
|
|
367
|
+
.magritte-min-height-default___zwRcq_2-1-0 .magritte-native-element___a0RAE_2-1-0{
|
|
368
|
+
min-height:calc(78px - var(--magritte-typography-label-4-regular-line-height-v21-1-0));
|
|
368
369
|
}
|
|
369
|
-
.magritte-textarea-
|
|
370
|
-
|
|
371
|
-
|
|
370
|
+
.magritte-textarea-limited___cU1Rg_2-1-0.magritte-min-height-48___jGf5Z_2-1-0 .magritte-native-element___a0RAE_2-1-0{
|
|
371
|
+
min-height:calc(22px - var(--magritte-typography-label-4-regular-line-height-v21-1-0));
|
|
372
|
+
}
|
|
373
|
+
.magritte-textarea-limited___cU1Rg_2-1-0.magritte-min-height-56___2yI39_2-1-0 .magritte-native-element___a0RAE_2-1-0{
|
|
374
|
+
min-height:calc(22px - var(--magritte-typography-label-4-regular-line-height-v21-1-0));
|
|
375
|
+
}
|
|
376
|
+
.magritte-textarea-limited___cU1Rg_2-1-0.magritte-min-height-default___zwRcq_2-1-0 .magritte-native-element___a0RAE_2-1-0{
|
|
377
|
+
min-height:calc(64px - var(--magritte-typography-label-4-regular-line-height-v21-1-0));
|
|
378
|
+
}
|
|
379
|
+
.magritte-textarea-layout-fill-both___ERS-q_2-1-0,
|
|
380
|
+
.magritte-textarea-layout-fill-vertical___HmNtp_2-1-0,
|
|
381
|
+
.magritte-textarea-layout-fill-horizontal___imBH2_2-1-0{
|
|
372
382
|
flex-direction:column;
|
|
373
383
|
}
|
|
374
|
-
.magritte-textarea-layout-fill-both___ERS-q_2-0
|
|
375
|
-
.magritte-textarea-layout-fill-vertical___HmNtp_2-0
|
|
376
|
-
.magritte-textarea-layout-fill-horizontal___imBH2_2-0
|
|
384
|
+
.magritte-textarea-layout-fill-both___ERS-q_2-1-0 .magritte-textarea-position-container-wrapper___4Dsui_2-1-0,
|
|
385
|
+
.magritte-textarea-layout-fill-vertical___HmNtp_2-1-0 .magritte-textarea-position-container-wrapper___4Dsui_2-1-0,
|
|
386
|
+
.magritte-textarea-layout-fill-horizontal___imBH2_2-1-0 .magritte-textarea-position-container-wrapper___4Dsui_2-1-0{
|
|
377
387
|
flex:1;
|
|
378
388
|
}
|
|
379
|
-
.magritte-textarea-layout-fill-both___ERS-q_2-0
|
|
389
|
+
.magritte-textarea-layout-fill-both___ERS-q_2-1-0{
|
|
380
390
|
width:100%;
|
|
381
391
|
height:100%;
|
|
382
392
|
}
|
|
383
|
-
.magritte-textarea-layout-fill-vertical___HmNtp_2-0
|
|
393
|
+
.magritte-textarea-layout-fill-vertical___HmNtp_2-1-0{
|
|
384
394
|
height:100%;
|
|
385
395
|
}
|
|
386
|
-
.magritte-textarea-layout-fill-horizontal___imBH2_2-0
|
|
396
|
+
.magritte-textarea-layout-fill-horizontal___imBH2_2-1-0{
|
|
387
397
|
width:100%;
|
|
388
398
|
}
|
|
389
|
-
.magritte-textarea-
|
|
390
|
-
margin-top:-18px;
|
|
391
|
-
min-height:calc(104px - var(--magritte-typography-label-4-regular-line-height-v21-1-0));
|
|
392
|
-
}
|
|
393
|
-
.magritte-textarea-without-label___WhBIw_2-0-75.magritte-textarea-limited___cU1Rg_2-0-75 .magritte-textarea-native___w-czf_2-0-75{
|
|
394
|
-
min-height:calc(90px - var(--magritte-typography-label-4-regular-line-height-v21-1-0));
|
|
395
|
-
}
|
|
396
|
-
.magritte-textarea-wrapper___yD7G6_2-0-75{
|
|
399
|
+
.magritte-textarea-wrapper___yD7G6_2-1-0{
|
|
397
400
|
display:inline-flex;
|
|
398
401
|
width:100%;
|
|
399
402
|
}
|
|
400
|
-
.magritte-textarea-layout-hug___tdCMY_2-0
|
|
403
|
+
.magritte-textarea-layout-hug___tdCMY_2-1-0{
|
|
401
404
|
width:100%;
|
|
402
405
|
}
|
|
403
|
-
.magritte-textarea-layout-hug___tdCMY_2-0
|
|
406
|
+
.magritte-textarea-layout-hug___tdCMY_2-1-0 .magritte-textarea-wrapper___yD7G6_2-1-0{
|
|
404
407
|
display:grid;
|
|
405
408
|
}
|
|
406
|
-
.magritte-textarea-layout-hug___tdCMY_2-0
|
|
407
|
-
.magritte-textarea-layout-hug___tdCMY_2-0
|
|
409
|
+
.magritte-textarea-layout-hug___tdCMY_2-1-0 .magritte-textarea-wrapper___yD7G6_2-1-0::after,
|
|
410
|
+
.magritte-textarea-layout-hug___tdCMY_2-1-0 .magritte-textarea-wrapper___yD7G6_2-1-0 .magritte-native-element___a0RAE_2-1-0{
|
|
408
411
|
grid-area:1 / 1 / 2 / 2;
|
|
409
412
|
overflow:hidden;
|
|
410
413
|
width:auto;
|
|
411
414
|
}
|
|
412
|
-
.magritte-textarea-layout-hug___tdCMY_2-0
|
|
413
|
-
box-sizing:border-box;
|
|
414
|
-
border:0;
|
|
415
|
-
width:100%;
|
|
416
|
-
padding:0 16px;
|
|
417
|
-
padding-right:14px;
|
|
418
|
-
color:var(--magritte-color-component-input-text-content-v21-1-0);
|
|
419
|
-
caret-color:var(--magritte-color-text-primary-v21-1-0);
|
|
415
|
+
.magritte-textarea-layout-hug___tdCMY_2-1-0 .magritte-textarea-wrapper___yD7G6_2-1-0::after{
|
|
420
416
|
font-family:var(--magritte-typography-label-2-regular-font-family-v21-1-0);
|
|
421
417
|
font-weight:var(--magritte-typography-label-2-regular-font-weight-v21-1-0);
|
|
422
418
|
line-height:var(--magritte-typography-label-2-regular-line-height-v21-1-0);
|
|
@@ -425,43 +421,79 @@
|
|
|
425
421
|
text-indent:var(--magritte-typography-label-2-regular-text-indent-v21-1-0);
|
|
426
422
|
text-transform:var(--magritte-typography-label-2-regular-text-transform-v21-1-0);
|
|
427
423
|
text-decoration:var(--magritte-typography-label-2-regular-text-decoration-v21-1-0);
|
|
424
|
+
box-sizing:border-box;
|
|
425
|
+
border:0;
|
|
426
|
+
width:100%;
|
|
427
|
+
padding:0 14px 0 16px;
|
|
428
|
+
color:var(--magritte-color-component-input-text-content-v21-1-0);
|
|
429
|
+
caret-color:var(--magritte-color-text-primary-v21-1-0);
|
|
428
430
|
content:attr(data-replicated-value) ' ';
|
|
429
431
|
white-space:pre-wrap;
|
|
430
432
|
visibility:hidden;
|
|
431
433
|
}
|
|
432
|
-
.magritte-textarea-position-container___cEpbv_2-0
|
|
434
|
+
.magritte-textarea-position-container___cEpbv_2-1-0{
|
|
433
435
|
display:inline-flex;
|
|
434
436
|
overflow:hidden;
|
|
435
437
|
position:relative;
|
|
436
438
|
width:100%;
|
|
437
439
|
border-radius:12px;
|
|
438
440
|
background-color:var(--magritte-color-component-input-background-field-v21-1-0);
|
|
439
|
-
padding:16px 0;
|
|
440
|
-
padding-right:2px;
|
|
441
|
-
padding-top:calc(var(--magritte-typography-label-4-regular-line-height-v21-1-0) + 18px);
|
|
441
|
+
padding:var(--magritte-typography-label-4-regular-line-height-v21-1-0) 2px 16px 0;
|
|
442
442
|
cursor:text;
|
|
443
|
-
min-height:120px;
|
|
444
443
|
box-sizing:border-box;
|
|
445
444
|
box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-field-v21-1-0);
|
|
446
445
|
}
|
|
447
|
-
.magritte-textarea-position-container___cEpbv_2-0
|
|
446
|
+
.magritte-textarea-position-container___cEpbv_2-1-0::-webkit-resizer{
|
|
448
447
|
display:none;
|
|
449
448
|
}
|
|
450
|
-
.magritte-textarea-
|
|
451
|
-
|
|
449
|
+
.magritte-textarea-elevated___S0jk-_2-1-0 .magritte-textarea-position-container___cEpbv_2-1-0{
|
|
450
|
+
padding-top:calc(var(--magritte-typography-label-4-regular-line-height-v21-1-0) + 18px);
|
|
451
|
+
}
|
|
452
|
+
.magritte-textarea-limited___cU1Rg_2-1-0 .magritte-textarea-position-container___cEpbv_2-1-0{
|
|
453
|
+
padding-bottom:30px;
|
|
454
|
+
}
|
|
455
|
+
.magritte-min-height-48___jGf5Z_2-1-0 .magritte-textarea-position-container___cEpbv_2-1-0{
|
|
456
|
+
padding-top:12px;
|
|
457
|
+
padding-bottom:12px;
|
|
458
|
+
min-height:48px;
|
|
459
|
+
}
|
|
460
|
+
.magritte-min-height-56___2yI39_2-1-0 .magritte-textarea-position-container___cEpbv_2-1-0{
|
|
461
|
+
padding-top:16px;
|
|
462
|
+
padding-bottom:16px;
|
|
463
|
+
min-height:56px;
|
|
464
|
+
}
|
|
465
|
+
.magritte-min-height-default___zwRcq_2-1-0 .magritte-textarea-position-container___cEpbv_2-1-0{
|
|
466
|
+
min-height:112px;
|
|
467
|
+
}
|
|
468
|
+
.magritte-textarea-elevated___S0jk-_2-1-0.magritte-min-height-48___jGf5Z_2-1-0 .magritte-textarea-position-container___cEpbv_2-1-0{
|
|
469
|
+
padding-top:22px;
|
|
470
|
+
padding-bottom:4px;
|
|
471
|
+
}
|
|
472
|
+
.magritte-textarea-elevated___S0jk-_2-1-0.magritte-min-height-56___2yI39_2-1-0 .magritte-textarea-position-container___cEpbv_2-1-0{
|
|
473
|
+
padding-top:26px;
|
|
474
|
+
padding-bottom:8px;
|
|
475
|
+
}
|
|
476
|
+
.magritte-textarea-limited___cU1Rg_2-1-0.magritte-min-height-48___jGf5Z_2-1-0 .magritte-textarea-position-container___cEpbv_2-1-0{
|
|
477
|
+
padding-bottom:26px;
|
|
478
|
+
}
|
|
479
|
+
.magritte-textarea-limited___cU1Rg_2-1-0.magritte-min-height-56___2yI39_2-1-0 .magritte-textarea-position-container___cEpbv_2-1-0{
|
|
480
|
+
padding-bottom:30px;
|
|
481
|
+
}
|
|
482
|
+
.magritte-textarea-animation-timeout___zudbr_2-1-0,
|
|
483
|
+
.magritte-textarea-position-container___cEpbv_2-1-0{
|
|
452
484
|
transition-property:transform, color, font-size, letter-spacing;
|
|
453
485
|
transition-duration:var(--animation-100-duration);
|
|
454
486
|
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v21-1-0);
|
|
455
487
|
--animation-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v21-1-0);
|
|
456
488
|
}
|
|
457
|
-
.magritte-textarea-rigging-container___-1S6i_2-0
|
|
489
|
+
.magritte-textarea-rigging-container___-1S6i_2-1-0{
|
|
458
490
|
position:absolute;
|
|
459
491
|
pointer-events:none;
|
|
460
492
|
left:16px;
|
|
461
493
|
right:16px;
|
|
462
494
|
top:0;
|
|
463
495
|
}
|
|
464
|
-
.magritte-textarea-label___sgTIH_2-0
|
|
496
|
+
.magritte-textarea-label___sgTIH_2-1-0{
|
|
465
497
|
font-family:var(--magritte-typography-label-2-regular-font-family-v21-1-0);
|
|
466
498
|
font-weight:var(--magritte-typography-label-2-regular-font-weight-v21-1-0);
|
|
467
499
|
line-height:var(--magritte-typography-label-2-regular-line-height-v21-1-0);
|
|
@@ -481,7 +513,32 @@
|
|
|
481
513
|
transition-duration:var(--animation-100-duration);
|
|
482
514
|
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v21-1-0);
|
|
483
515
|
}
|
|
484
|
-
.magritte-textarea-
|
|
516
|
+
.magritte-min-height-48___jGf5Z_2-1-0 .magritte-textarea-label___sgTIH_2-1-0{
|
|
517
|
+
padding-top:12px;
|
|
518
|
+
}
|
|
519
|
+
.magritte-min-height-56___2yI39_2-1-0 .magritte-textarea-label___sgTIH_2-1-0{
|
|
520
|
+
padding-top:16px;
|
|
521
|
+
}
|
|
522
|
+
.magritte-textarea-label-elevated___0lxOI_2-1-0{
|
|
523
|
+
font-family:var(--magritte-typography-label-4-regular-font-family-v21-1-0);
|
|
524
|
+
font-weight:var(--magritte-typography-label-4-regular-font-weight-v21-1-0);
|
|
525
|
+
line-height:var(--magritte-typography-label-4-regular-line-height-v21-1-0);
|
|
526
|
+
font-size:var(--magritte-typography-label-4-regular-font-size-v21-1-0);
|
|
527
|
+
letter-spacing:var(--magritte-typography-label-4-regular-letter-spacing-v21-1-0);
|
|
528
|
+
text-indent:var(--magritte-typography-label-4-regular-text-indent-v21-1-0);
|
|
529
|
+
text-transform:var(--magritte-typography-label-4-regular-text-transform-v21-1-0);
|
|
530
|
+
text-decoration:var(--magritte-typography-label-4-regular-text-decoration-v21-1-0);
|
|
531
|
+
--elevated-placeholder-gap:8px;
|
|
532
|
+
color:var(--magritte-color-component-input-text-label-v21-1-0);
|
|
533
|
+
transform:translateY(calc(var(--elevated-placeholder-gap) - var(--magritte-typography-label-2-regular-line-height-v21-1-0) / 2));
|
|
534
|
+
}
|
|
535
|
+
.magritte-min-height-48___jGf5Z_2-1-0 .magritte-textarea-label-elevated___0lxOI_2-1-0{
|
|
536
|
+
--elevated-placeholder-gap:3px;
|
|
537
|
+
}
|
|
538
|
+
.magritte-min-height-56___2yI39_2-1-0 .magritte-textarea-label-elevated___0lxOI_2-1-0{
|
|
539
|
+
--elevated-placeholder-gap:3px;
|
|
540
|
+
}
|
|
541
|
+
.magritte-textarea-limit___IjPJy_2-1-0{
|
|
485
542
|
position:absolute;
|
|
486
543
|
bottom:10px;
|
|
487
544
|
right:28px;
|
|
@@ -491,7 +548,7 @@
|
|
|
491
548
|
pointer-events:none;
|
|
492
549
|
--magritte-ui-text-color-override:var(--magritte-color-component-input-text-limit-v21-1-0);
|
|
493
550
|
}
|
|
494
|
-
.magritte-textarea-grip___iL7lq_2-0
|
|
551
|
+
.magritte-textarea-grip___iL7lq_2-1-0{
|
|
495
552
|
position:absolute;
|
|
496
553
|
pointer-events:none;
|
|
497
554
|
display:inline-flex;
|
|
@@ -500,37 +557,25 @@
|
|
|
500
557
|
border-bottom-right-radius:12px;
|
|
501
558
|
--magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-grip-v21-1-0);
|
|
502
559
|
}
|
|
503
|
-
.magritte-textarea-grip-icon___YK-9w_2-0
|
|
560
|
+
.magritte-textarea-grip-icon___YK-9w_2-1-0{
|
|
504
561
|
display:inline-flex;
|
|
505
562
|
z-index:1;
|
|
506
563
|
}
|
|
507
|
-
.magritte-textarea-label-elevated___0lxOI_2-0-75{
|
|
508
|
-
font-family:var(--magritte-typography-label-4-regular-font-family-v21-1-0);
|
|
509
|
-
font-weight:var(--magritte-typography-label-4-regular-font-weight-v21-1-0);
|
|
510
|
-
line-height:var(--magritte-typography-label-4-regular-line-height-v21-1-0);
|
|
511
|
-
font-size:var(--magritte-typography-label-4-regular-font-size-v21-1-0);
|
|
512
|
-
letter-spacing:var(--magritte-typography-label-4-regular-letter-spacing-v21-1-0);
|
|
513
|
-
text-indent:var(--magritte-typography-label-4-regular-text-indent-v21-1-0);
|
|
514
|
-
text-transform:var(--magritte-typography-label-4-regular-text-transform-v21-1-0);
|
|
515
|
-
text-decoration:var(--magritte-typography-label-4-regular-text-decoration-v21-1-0);
|
|
516
|
-
color:var(--magritte-color-component-input-text-label-v21-1-0);
|
|
517
|
-
transform:translateY(calc((var(--magritte-typography-label-4-regular-line-height-v21-1-0) / 2) - ((var(--magritte-typography-label-4-regular-line-height-v21-1-0) + var(--magritte-typography-label-2-regular-line-height-v21-1-0)) / 2) + 8px));
|
|
518
|
-
}
|
|
519
564
|
@media (prefers-reduced-motion: no-preference){
|
|
520
|
-
.magritte-textarea-limit-enter___CygGz_2-0
|
|
565
|
+
.magritte-textarea-limit-enter___CygGz_2-1-0{
|
|
521
566
|
opacity:0;
|
|
522
567
|
}
|
|
523
|
-
.magritte-textarea-limit-exit___RMp-R_2-0
|
|
524
|
-
.magritte-textarea-limit-enter-active___8vN-t_2-0
|
|
568
|
+
.magritte-textarea-limit-exit___RMp-R_2-1-0,
|
|
569
|
+
.magritte-textarea-limit-enter-active___8vN-t_2-1-0{
|
|
525
570
|
opacity:1;
|
|
526
571
|
}
|
|
527
|
-
.magritte-textarea-limit-enter-active___8vN-t_2-0
|
|
572
|
+
.magritte-textarea-limit-enter-active___8vN-t_2-1-0{
|
|
528
573
|
transition-property:opacity;
|
|
529
574
|
transition-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v21-1-0);
|
|
530
575
|
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v21-1-0);
|
|
531
576
|
--animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v21-1-0);
|
|
532
577
|
}
|
|
533
|
-
.magritte-textarea-limit-exit-active___a5kBr_2-0
|
|
578
|
+
.magritte-textarea-limit-exit-active___a5kBr_2-1-0{
|
|
534
579
|
opacity:0;
|
|
535
580
|
transition-property:opacity;
|
|
536
581
|
transition-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v21-1-0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hh.ru/magritte-ui-textarea",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@hh.ru/magritte-ui-breakpoint": "5.0.0",
|
|
26
26
|
"@hh.ru/magritte-ui-form-helper": "1.0.22",
|
|
27
27
|
"@hh.ru/magritte-ui-icon": "8.0.0",
|
|
28
|
-
"@hh.ru/magritte-ui-input": "7.1.
|
|
28
|
+
"@hh.ru/magritte-ui-input": "7.1.8",
|
|
29
29
|
"@hh.ru/magritte-ui-typography": "3.0.27"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "90bc8ed24a1f6efc2a0a8a937245c482166b9c60"
|
|
40
40
|
}
|
package/types.d.ts
CHANGED
|
@@ -19,15 +19,19 @@ export interface BaseTextAreaProps {
|
|
|
19
19
|
/** Флаг управляющий режимом отображения полейсхолдера */
|
|
20
20
|
elevatePlaceholder?: boolean;
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
type TextAreaLayouts = {
|
|
23
23
|
layout: 'fixed';
|
|
24
|
-
|
|
24
|
+
minHeight?: never;
|
|
25
25
|
resize?: 'none' | 'both' | 'horizontal' | 'vertical';
|
|
26
|
-
}
|
|
27
|
-
|
|
26
|
+
} | {
|
|
27
|
+
layout: 'hug';
|
|
28
|
+
minHeight?: 48 | 56;
|
|
28
29
|
resize?: never;
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
} | {
|
|
31
|
+
layout?: 'fill-vertical' | 'fill-horizontal' | 'fill-both';
|
|
32
|
+
minHeight?: never;
|
|
33
|
+
resize?: never;
|
|
34
|
+
};
|
|
31
35
|
interface ValidatorMaxLength {
|
|
32
36
|
/** Лимит на количество символов, отображает текущее состояние и лимит */
|
|
33
37
|
maxLength: number;
|
|
@@ -47,6 +51,6 @@ export interface ControlledProps {
|
|
|
47
51
|
/** Значение textarea */
|
|
48
52
|
value: string;
|
|
49
53
|
}
|
|
50
|
-
export type UncontrolledTextAreaProps = Partial<ControlledProps> & Validator & BaseTextAreaProps &
|
|
51
|
-
export type ControlledTextAreaProps = BaseTextAreaProps & ControlledProps & Validator &
|
|
54
|
+
export type UncontrolledTextAreaProps = Partial<ControlledProps> & Validator & BaseTextAreaProps & TextAreaLayouts;
|
|
55
|
+
export type ControlledTextAreaProps = BaseTextAreaProps & ControlledProps & Validator & TextAreaLayouts;
|
|
52
56
|
export {};
|