@hh.ru/magritte-ui-textarea 2.0.73 → 2.0.75

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.
@@ -12,7 +12,7 @@ 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-73","textarea-focused":"magritte-textarea-focused___eiGyC_2-0-73","textareaFocused":"magritte-textarea-focused___eiGyC_2-0-73","textarea-invalid":"magritte-textarea-invalid___iKOPh_2-0-73","textareaInvalid":"magritte-textarea-invalid___iKOPh_2-0-73","textarea-disabled":"magritte-textarea-disabled___XN0cg_2-0-73","textareaDisabled":"magritte-textarea-disabled___XN0cg_2-0-73","textarea-position-container-wrapper":"magritte-textarea-position-container-wrapper___4Dsui_2-0-73","textareaPositionContainerWrapper":"magritte-textarea-position-container-wrapper___4Dsui_2-0-73","textarea-position-container":"magritte-textarea-position-container___cEpbv_2-0-73","textareaPositionContainer":"magritte-textarea-position-container___cEpbv_2-0-73","textarea-native":"magritte-textarea-native___w-czf_2-0-73","textareaNative":"magritte-textarea-native___w-czf_2-0-73","textarea-label":"magritte-textarea-label___sgTIH_2-0-73","textareaLabel":"magritte-textarea-label___sgTIH_2-0-73","textarea-elevated":"magritte-textarea-elevated___S0jk-_2-0-73","textareaElevated":"magritte-textarea-elevated___S0jk-_2-0-73","textarea-label-elevated":"magritte-textarea-label-elevated___0lxOI_2-0-73","textareaLabelElevated":"magritte-textarea-label-elevated___0lxOI_2-0-73","textarea-limit":"magritte-textarea-limit___IjPJy_2-0-73","textareaLimit":"magritte-textarea-limit___IjPJy_2-0-73","textarea-limit-error":"magritte-textarea-limit-error___vLvZU_2-0-73","textareaLimitError":"magritte-textarea-limit-error___vLvZU_2-0-73","textarea-limited":"magritte-textarea-limited___cU1Rg_2-0-73","textareaLimited":"magritte-textarea-limited___cU1Rg_2-0-73","textarea-layout-fill-both":"magritte-textarea-layout-fill-both___ERS-q_2-0-73","textareaLayoutFillBoth":"magritte-textarea-layout-fill-both___ERS-q_2-0-73","textarea-layout-fill-vertical":"magritte-textarea-layout-fill-vertical___HmNtp_2-0-73","textareaLayoutFillVertical":"magritte-textarea-layout-fill-vertical___HmNtp_2-0-73","textarea-layout-fill-horizontal":"magritte-textarea-layout-fill-horizontal___imBH2_2-0-73","textareaLayoutFillHorizontal":"magritte-textarea-layout-fill-horizontal___imBH2_2-0-73","textarea-without-label":"magritte-textarea-without-label___WhBIw_2-0-73","textareaWithoutLabel":"magritte-textarea-without-label___WhBIw_2-0-73","textarea-wrapper":"magritte-textarea-wrapper___yD7G6_2-0-73","textareaWrapper":"magritte-textarea-wrapper___yD7G6_2-0-73","textarea-layout-hug":"magritte-textarea-layout-hug___tdCMY_2-0-73","textareaLayoutHug":"magritte-textarea-layout-hug___tdCMY_2-0-73","textarea-animation-timeout":"magritte-textarea-animation-timeout___zudbr_2-0-73","textareaAnimationTimeout":"magritte-textarea-animation-timeout___zudbr_2-0-73","textarea-rigging-container":"magritte-textarea-rigging-container___-1S6i_2-0-73","textareaRiggingContainer":"magritte-textarea-rigging-container___-1S6i_2-0-73","textarea-grip":"magritte-textarea-grip___iL7lq_2-0-73","textareaGrip":"magritte-textarea-grip___iL7lq_2-0-73","textarea-grip-icon":"magritte-textarea-grip-icon___YK-9w_2-0-73","textareaGripIcon":"magritte-textarea-grip-icon___YK-9w_2-0-73","textarea-limit-enter":"magritte-textarea-limit-enter___CygGz_2-0-73","textareaLimitEnter":"magritte-textarea-limit-enter___CygGz_2-0-73","textarea-limit-exit":"magritte-textarea-limit-exit___RMp-R_2-0-73","textareaLimitExit":"magritte-textarea-limit-exit___RMp-R_2-0-73","textarea-limit-enter-active":"magritte-textarea-limit-enter-active___8vN-t_2-0-73","textareaLimitEnterActive":"magritte-textarea-limit-enter-active___8vN-t_2-0-73","textarea-limit-exit-active":"magritte-textarea-limit-exit-active___a5kBr_2-0-73","textareaLimitExitActive":"magritte-textarea-limit-exit-active___a5kBr_2-0-73"};
15
+ var styles = {"textarea":"magritte-textarea___ugvor_2-0-75","textarea-focused":"magritte-textarea-focused___eiGyC_2-0-75","textareaFocused":"magritte-textarea-focused___eiGyC_2-0-75","textarea-invalid":"magritte-textarea-invalid___iKOPh_2-0-75","textareaInvalid":"magritte-textarea-invalid___iKOPh_2-0-75","textarea-disabled":"magritte-textarea-disabled___XN0cg_2-0-75","textareaDisabled":"magritte-textarea-disabled___XN0cg_2-0-75","textarea-position-container-wrapper":"magritte-textarea-position-container-wrapper___4Dsui_2-0-75","textareaPositionContainerWrapper":"magritte-textarea-position-container-wrapper___4Dsui_2-0-75","textarea-position-container":"magritte-textarea-position-container___cEpbv_2-0-75","textareaPositionContainer":"magritte-textarea-position-container___cEpbv_2-0-75","textarea-native":"magritte-textarea-native___w-czf_2-0-75","textareaNative":"magritte-textarea-native___w-czf_2-0-75","textarea-label":"magritte-textarea-label___sgTIH_2-0-75","textareaLabel":"magritte-textarea-label___sgTIH_2-0-75","textarea-elevated":"magritte-textarea-elevated___S0jk-_2-0-75","textareaElevated":"magritte-textarea-elevated___S0jk-_2-0-75","textarea-label-elevated":"magritte-textarea-label-elevated___0lxOI_2-0-75","textareaLabelElevated":"magritte-textarea-label-elevated___0lxOI_2-0-75","textarea-limit":"magritte-textarea-limit___IjPJy_2-0-75","textareaLimit":"magritte-textarea-limit___IjPJy_2-0-75","textarea-limit-error":"magritte-textarea-limit-error___vLvZU_2-0-75","textareaLimitError":"magritte-textarea-limit-error___vLvZU_2-0-75","textarea-limited":"magritte-textarea-limited___cU1Rg_2-0-75","textareaLimited":"magritte-textarea-limited___cU1Rg_2-0-75","textarea-layout-fill-both":"magritte-textarea-layout-fill-both___ERS-q_2-0-75","textareaLayoutFillBoth":"magritte-textarea-layout-fill-both___ERS-q_2-0-75","textarea-layout-fill-vertical":"magritte-textarea-layout-fill-vertical___HmNtp_2-0-75","textareaLayoutFillVertical":"magritte-textarea-layout-fill-vertical___HmNtp_2-0-75","textarea-layout-fill-horizontal":"magritte-textarea-layout-fill-horizontal___imBH2_2-0-75","textareaLayoutFillHorizontal":"magritte-textarea-layout-fill-horizontal___imBH2_2-0-75","textarea-without-label":"magritte-textarea-without-label___WhBIw_2-0-75","textareaWithoutLabel":"magritte-textarea-without-label___WhBIw_2-0-75","textarea-wrapper":"magritte-textarea-wrapper___yD7G6_2-0-75","textareaWrapper":"magritte-textarea-wrapper___yD7G6_2-0-75","textarea-layout-hug":"magritte-textarea-layout-hug___tdCMY_2-0-75","textareaLayoutHug":"magritte-textarea-layout-hug___tdCMY_2-0-75","textarea-animation-timeout":"magritte-textarea-animation-timeout___zudbr_2-0-75","textareaAnimationTimeout":"magritte-textarea-animation-timeout___zudbr_2-0-75","textarea-rigging-container":"magritte-textarea-rigging-container___-1S6i_2-0-75","textareaRiggingContainer":"magritte-textarea-rigging-container___-1S6i_2-0-75","textarea-grip":"magritte-textarea-grip___iL7lq_2-0-75","textareaGrip":"magritte-textarea-grip___iL7lq_2-0-75","textarea-grip-icon":"magritte-textarea-grip-icon___YK-9w_2-0-75","textareaGripIcon":"magritte-textarea-grip-icon___YK-9w_2-0-75","textarea-limit-enter":"magritte-textarea-limit-enter___CygGz_2-0-75","textareaLimitEnter":"magritte-textarea-limit-enter___CygGz_2-0-75","textarea-limit-exit":"magritte-textarea-limit-exit___RMp-R_2-0-75","textareaLimitExit":"magritte-textarea-limit-exit___RMp-R_2-0-75","textarea-limit-enter-active":"magritte-textarea-limit-enter-active___8vN-t_2-0-75","textareaLimitEnterActive":"magritte-textarea-limit-enter-active___8vN-t_2-0-75","textarea-limit-exit-active":"magritte-textarea-limit-exit-active___a5kBr_2-0-75","textareaLimitExitActive":"magritte-textarea-limit-exit-active___a5kBr_2-0-75"};
16
16
 
17
17
  const TextAreaComponent = ({ onChange, onFocus, onBlur, onValidate, value, placeholder, disabled = false, elevatePlaceholder = false, invalid = false, invalidLimit = false, maxLength, description, errorMessage, resize = 'none', layout = 'fixed', ...restProps }, ref) => {
18
18
  const { isXS, isS } = useBreakpoint();
@@ -119,4 +119,4 @@ const TextArea = forwardRef(TextAreaComponent);
119
119
  TextArea.displayName = 'TextArea';
120
120
 
121
121
  export { TextArea };
122
- //# sourceMappingURL=Textarea.js.map
122
+ //# sourceMappingURL=TextArea.js.map
@@ -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,kBAAk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AA,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
+ {"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,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,MAAM,CAA6C,IAAI,CAAC,CAAC;AACnF,IAAA,MAAM,sBAAsB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC7C,MAAM,mBAAmB,GAAG,eAAe,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;AAC9D,IAAA,MAAM,aAAa,GAAG,KAAK,EAAE,CAAC;AAC9B,IAAA,MAAM,OAAO,GAAG,KAAK,EAA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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,7 +1,7 @@
1
1
  import './index.css';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { forwardRef, useState, useCallback } from 'react';
4
- import { TextArea } from './Textarea.js';
4
+ import { TextArea } from './TextArea.js';
5
5
  import 'react-transition-group';
6
6
  import 'classnames';
7
7
  import '@hh.ru/magritte-common-use-disabled';
@@ -24,4 +24,4 @@ const UncontrolledTextArea = forwardRef(({ value = '', onChange, ...restProps },
24
24
  UncontrolledTextArea.displayName = 'UncontrolledTextArea';
25
25
 
26
26
  export { UncontrolledTextArea };
27
- //# sourceMappingURL=UncontrolledTextarea.js.map
27
+ //# sourceMappingURL=UncontrolledTextArea.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UncontrolledTextarea.js","sources":["../src/UncontrolledTextarea.tsx"],"sourcesContent":["import { forwardRef, TextareaHTMLAttributes, useCallback, useState, type ChangeEvent } from 'react';\n\nimport { TextArea } from '@hh.ru/magritte-ui-textarea/Textarea';\nimport { UncontrolledTextAreaProps } from '@hh.ru/magritte-ui-textarea/types';\n\nexport const UncontrolledTextArea = forwardRef<\n HTMLTextAreaElement,\n UncontrolledTextAreaProps & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, keyof UncontrolledTextAreaProps>\n>(({ value = '', onChange, ...restProps }, ref) => {\n const [defaultValue, setDefaultValue] = useState(value);\n const changeHandler = useCallback(\n (event: ChangeEvent<HTMLTextAreaElement>) => {\n setDefaultValue(event.target.value);\n onChange?.(event);\n },\n [onChange]\n );\n\n return <TextArea {...restProps} value={defaultValue} onChange={changeHandler} ref={ref} />;\n});\n\nUncontrolledTextArea.displayName = 'UncontrolledTextArea';\n"],"names":["_jsx"],"mappings":";;;;;;;;;;;;;;MAKa,oBAAoB,GAAG,UAAU,CAG5C,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,EAAE,GAAG,KAAI;IAC9C,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;AACxD,IAAA,MAAM,aAAa,GAAG,WAAW,CAC7B,CAAC,KAAuC,KAAI;AACxC,QAAA,eAAe,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACpC,QAAA,QAAQ,GAAG,KAAK,CAAC,CAAC;AACtB,KAAC,EACD,CAAC,QAAQ,CAAC,CACb,CAAC;AAEF,IAAA,OAAOA,IAAC,QAAQ,EAAA,EAAA,GAAK,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,EAAE,GAAG,GAAI,CAAC;AAC/F,CAAC,EAAE;AAEH,oBAAoB,CAAC,WAAW,GAAG,sBAAsB;;;;"}
1
+ {"version":3,"file":"UncontrolledTextArea.js","sources":["../src/UncontrolledTextArea.tsx"],"sourcesContent":["import { forwardRef, TextareaHTMLAttributes, useCallback, useState, type ChangeEvent } from 'react';\n\nimport { TextArea } from '@hh.ru/magritte-ui-textarea/TextArea';\nimport { UncontrolledTextAreaProps } from '@hh.ru/magritte-ui-textarea/types';\n\nexport const UncontrolledTextArea = forwardRef<\n HTMLTextAreaElement,\n UncontrolledTextAreaProps & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, keyof UncontrolledTextAreaProps>\n>(({ value = '', onChange, ...restProps }, ref) => {\n const [defaultValue, setDefaultValue] = useState(value);\n const changeHandler = useCallback(\n (event: ChangeEvent<HTMLTextAreaElement>) => {\n setDefaultValue(event.target.value);\n onChange?.(event);\n },\n [onChange]\n );\n\n return <TextArea {...restProps} value={defaultValue} onChange={changeHandler} ref={ref} />;\n});\n\nUncontrolledTextArea.displayName = 'UncontrolledTextArea';\n"],"names":["_jsx"],"mappings":";;;;;;;;;;;;;;MAKa,oBAAoB,GAAG,UAAU,CAG5C,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,EAAE,GAAG,KAAI;IAC9C,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;AACxD,IAAA,MAAM,aAAa,GAAG,WAAW,CAC7B,CAAC,KAAuC,KAAI;AACxC,QAAA,eAAe,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACpC,QAAA,QAAQ,GAAG,KAAK,CAAC,CAAC;AACtB,KAAC,EACD,CAAC,QAAQ,CAAC,CACb,CAAC;AAEF,IAAA,OAAOA,IAAC,QAAQ,EAAA,EAAA,GAAK,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,EAAE,GAAG,GAAI,CAAC;AAC/F,CAAC,EAAE;AAEH,oBAAoB,CAAC,WAAW,GAAG,sBAAsB;;;;"}
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-73{
103
+ .magritte-textarea___ugvor_2-0-75{
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-73:not(.magritte-textarea-focused___eiGyC_2-0-73):not(.magritte-textarea-invalid___iKOPh_2-0-73):not(.magritte-textarea-disabled___XN0cg_2-0-73):hover{
110
+ body.magritte-old-layout .magritte-textarea___ugvor_2-0-75:not(.magritte-textarea-focused___eiGyC_2-0-75):not(.magritte-textarea-invalid___iKOPh_2-0-75):not(.magritte-textarea-disabled___XN0cg_2-0-75):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-73:not(.magritte-textarea-focused___eiGyC_2-0-73):not(.magritte-textarea-invalid___iKOPh_2-0-73):not(.magritte-textarea-disabled___XN0cg_2-0-73):hover .magritte-textarea-position-container-wrapper___4Dsui_2-0-73::after{
113
+ body.magritte-old-layout .magritte-textarea___ugvor_2-0-75:not(.magritte-textarea-focused___eiGyC_2-0-75):not(.magritte-textarea-invalid___iKOPh_2-0-75):not(.magritte-textarea-disabled___XN0cg_2-0-75):hover .magritte-textarea-position-container-wrapper___4Dsui_2-0-75::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-73:not(.magritte-textarea-focused___eiGyC_2-0-73):not(.magritte-textarea-invalid___iKOPh_2-0-73):not(.magritte-textarea-disabled___XN0cg_2-0-73):hover .magritte-textarea-position-container___cEpbv_2-0-73{
119
+ body.magritte-old-layout .magritte-textarea___ugvor_2-0-75:not(.magritte-textarea-focused___eiGyC_2-0-75):not(.magritte-textarea-invalid___iKOPh_2-0-75):not(.magritte-textarea-disabled___XN0cg_2-0-75):hover .magritte-textarea-position-container___cEpbv_2-0-75{
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-73:not(.magritte-textarea-focused___eiGyC_2-0-73):not(.magritte-textarea-invalid___iKOPh_2-0-73):not(.magritte-textarea-disabled___XN0cg_2-0-73):hover .magritte-textarea-native___w-czf_2-0-73{
123
+ body.magritte-old-layout .magritte-textarea___ugvor_2-0-75:not(.magritte-textarea-focused___eiGyC_2-0-75):not(.magritte-textarea-invalid___iKOPh_2-0-75):not(.magritte-textarea-disabled___XN0cg_2-0-75):hover .magritte-textarea-native___w-czf_2-0-75{
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-73:not(.magritte-textarea-focused___eiGyC_2-0-73):not(.magritte-textarea-invalid___iKOPh_2-0-73):not(.magritte-textarea-disabled___XN0cg_2-0-73):hover .magritte-textarea-label___sgTIH_2-0-73{
128
+ body.magritte-old-layout .magritte-textarea___ugvor_2-0-75:not(.magritte-textarea-focused___eiGyC_2-0-75):not(.magritte-textarea-invalid___iKOPh_2-0-75):not(.magritte-textarea-disabled___XN0cg_2-0-75):hover .magritte-textarea-label___sgTIH_2-0-75{
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-73:not(.magritte-textarea-focused___eiGyC_2-0-73):not(.magritte-textarea-invalid___iKOPh_2-0-73):not(.magritte-textarea-disabled___XN0cg_2-0-73):hover .magritte-textarea-elevated___S0jk-_2-0-73 .magritte-textarea-label-elevated___0lxOI_2-0-73{
131
+ body.magritte-old-layout .magritte-textarea___ugvor_2-0-75:not(.magritte-textarea-focused___eiGyC_2-0-75):not(.magritte-textarea-invalid___iKOPh_2-0-75):not(.magritte-textarea-disabled___XN0cg_2-0-75):hover .magritte-textarea-elevated___S0jk-_2-0-75 .magritte-textarea-label-elevated___0lxOI_2-0-75{
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-73:not(.magritte-textarea-focused___eiGyC_2-0-73):not(.magritte-textarea-invalid___iKOPh_2-0-73):not(.magritte-textarea-disabled___XN0cg_2-0-73):hover .magritte-textarea-limit___IjPJy_2-0-73{
134
+ body.magritte-old-layout .magritte-textarea___ugvor_2-0-75:not(.magritte-textarea-focused___eiGyC_2-0-75):not(.magritte-textarea-invalid___iKOPh_2-0-75):not(.magritte-textarea-disabled___XN0cg_2-0-75):hover .magritte-textarea-limit___IjPJy_2-0-75{
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-73:not(.magritte-textarea-focused___eiGyC_2-0-73):not(.magritte-textarea-invalid___iKOPh_2-0-73):not(.magritte-textarea-disabled___XN0cg_2-0-73):hover .magritte-textarea-limit___IjPJy_2-0-73{
137
+ body.magritte-old-layout .magritte-textarea___ugvor_2-0-75:not(.magritte-textarea-focused___eiGyC_2-0-75):not(.magritte-textarea-invalid___iKOPh_2-0-75):not(.magritte-textarea-disabled___XN0cg_2-0-75):hover .magritte-textarea-limit___IjPJy_2-0-75{
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-73:not(.magritte-textarea-focused___eiGyC_2-0-73):not(.magritte-textarea-invalid___iKOPh_2-0-73):not(.magritte-textarea-disabled___XN0cg_2-0-73):hover{
142
+ body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-0-75:not(.magritte-textarea-focused___eiGyC_2-0-75):not(.magritte-textarea-invalid___iKOPh_2-0-75):not(.magritte-textarea-disabled___XN0cg_2-0-75):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-73:not(.magritte-textarea-focused___eiGyC_2-0-73):not(.magritte-textarea-invalid___iKOPh_2-0-73):not(.magritte-textarea-disabled___XN0cg_2-0-73):hover .magritte-textarea-position-container-wrapper___4Dsui_2-0-73::after{
145
+ body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-0-75:not(.magritte-textarea-focused___eiGyC_2-0-75):not(.magritte-textarea-invalid___iKOPh_2-0-75):not(.magritte-textarea-disabled___XN0cg_2-0-75):hover .magritte-textarea-position-container-wrapper___4Dsui_2-0-75::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-73:not(.magritte-textarea-focused___eiGyC_2-0-73):not(.magritte-textarea-invalid___iKOPh_2-0-73):not(.magritte-textarea-disabled___XN0cg_2-0-73):hover .magritte-textarea-position-container___cEpbv_2-0-73{
151
+ body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-0-75:not(.magritte-textarea-focused___eiGyC_2-0-75):not(.magritte-textarea-invalid___iKOPh_2-0-75):not(.magritte-textarea-disabled___XN0cg_2-0-75):hover .magritte-textarea-position-container___cEpbv_2-0-75{
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-73:not(.magritte-textarea-focused___eiGyC_2-0-73):not(.magritte-textarea-invalid___iKOPh_2-0-73):not(.magritte-textarea-disabled___XN0cg_2-0-73):hover .magritte-textarea-native___w-czf_2-0-73{
155
+ body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-0-75:not(.magritte-textarea-focused___eiGyC_2-0-75):not(.magritte-textarea-invalid___iKOPh_2-0-75):not(.magritte-textarea-disabled___XN0cg_2-0-75):hover .magritte-textarea-native___w-czf_2-0-75{
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-73:not(.magritte-textarea-focused___eiGyC_2-0-73):not(.magritte-textarea-invalid___iKOPh_2-0-73):not(.magritte-textarea-disabled___XN0cg_2-0-73):hover .magritte-textarea-label___sgTIH_2-0-73{
160
+ body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-0-75:not(.magritte-textarea-focused___eiGyC_2-0-75):not(.magritte-textarea-invalid___iKOPh_2-0-75):not(.magritte-textarea-disabled___XN0cg_2-0-75):hover .magritte-textarea-label___sgTIH_2-0-75{
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-73:not(.magritte-textarea-focused___eiGyC_2-0-73):not(.magritte-textarea-invalid___iKOPh_2-0-73):not(.magritte-textarea-disabled___XN0cg_2-0-73):hover .magritte-textarea-elevated___S0jk-_2-0-73 .magritte-textarea-label-elevated___0lxOI_2-0-73{
163
+ body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-0-75:not(.magritte-textarea-focused___eiGyC_2-0-75):not(.magritte-textarea-invalid___iKOPh_2-0-75):not(.magritte-textarea-disabled___XN0cg_2-0-75):hover .magritte-textarea-elevated___S0jk-_2-0-75 .magritte-textarea-label-elevated___0lxOI_2-0-75{
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-73:not(.magritte-textarea-focused___eiGyC_2-0-73):not(.magritte-textarea-invalid___iKOPh_2-0-73):not(.magritte-textarea-disabled___XN0cg_2-0-73):hover .magritte-textarea-limit___IjPJy_2-0-73{
166
+ body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-0-75:not(.magritte-textarea-focused___eiGyC_2-0-75):not(.magritte-textarea-invalid___iKOPh_2-0-75):not(.magritte-textarea-disabled___XN0cg_2-0-75):hover .magritte-textarea-limit___IjPJy_2-0-75{
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-73:not(.magritte-textarea-focused___eiGyC_2-0-73):not(.magritte-textarea-invalid___iKOPh_2-0-73):not(.magritte-textarea-disabled___XN0cg_2-0-73):hover .magritte-textarea-limit___IjPJy_2-0-73{
169
+ body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-0-75:not(.magritte-textarea-focused___eiGyC_2-0-75):not(.magritte-textarea-invalid___iKOPh_2-0-75):not(.magritte-textarea-disabled___XN0cg_2-0-75):hover .magritte-textarea-limit___IjPJy_2-0-75{
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-73.magritte-textarea-focused___eiGyC_2-0-73{
173
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-focused___eiGyC_2-0-75{
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-73.magritte-textarea-focused___eiGyC_2-0-73 .magritte-textarea-position-container-wrapper___4Dsui_2-0-73::after{
176
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-focused___eiGyC_2-0-75 .magritte-textarea-position-container-wrapper___4Dsui_2-0-75::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-73.magritte-textarea-focused___eiGyC_2-0-73 .magritte-textarea-position-container___cEpbv_2-0-73{
182
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-focused___eiGyC_2-0-75 .magritte-textarea-position-container___cEpbv_2-0-75{
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-73.magritte-textarea-focused___eiGyC_2-0-73 .magritte-textarea-native___w-czf_2-0-73{
186
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-focused___eiGyC_2-0-75 .magritte-textarea-native___w-czf_2-0-75{
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-73.magritte-textarea-focused___eiGyC_2-0-73 .magritte-textarea-label___sgTIH_2-0-73{
191
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-focused___eiGyC_2-0-75 .magritte-textarea-label___sgTIH_2-0-75{
192
192
  color:var(--magritte-color-component-input-text-state-placeholder-focused-v21-1-0);
193
193
  }
194
- .magritte-textarea___ugvor_2-0-73.magritte-textarea-focused___eiGyC_2-0-73 .magritte-textarea-elevated___S0jk-_2-0-73 .magritte-textarea-label-elevated___0lxOI_2-0-73{
194
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-focused___eiGyC_2-0-75 .magritte-textarea-elevated___S0jk-_2-0-75 .magritte-textarea-label-elevated___0lxOI_2-0-75{
195
195
  color:var(--magritte-color-component-input-text-state-label-focused-v21-1-0);
196
196
  }
197
- .magritte-textarea___ugvor_2-0-73.magritte-textarea-focused___eiGyC_2-0-73 .magritte-textarea-limit___IjPJy_2-0-73{
197
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-focused___eiGyC_2-0-75 .magritte-textarea-limit___IjPJy_2-0-75{
198
198
  background-color:var(--magritte-color-component-input-background-state-field-focused-v21-1-0);
199
199
  }
200
- .magritte-textarea___ugvor_2-0-73.magritte-textarea-focused___eiGyC_2-0-73 .magritte-textarea-limit___IjPJy_2-0-73{
200
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-focused___eiGyC_2-0-75 .magritte-textarea-limit___IjPJy_2-0-75{
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-73.magritte-textarea-focused___eiGyC_2-0-73.magritte-textarea-limit-error___vLvZU_2-0-73,
204
- .magritte-textarea___ugvor_2-0-73.magritte-textarea-focused___eiGyC_2-0-73.magritte-textarea-invalid___iKOPh_2-0-73{
203
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-focused___eiGyC_2-0-75.magritte-textarea-limit-error___vLvZU_2-0-75,
204
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-focused___eiGyC_2-0-75.magritte-textarea-invalid___iKOPh_2-0-75{
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-73.magritte-textarea-focused___eiGyC_2-0-73.magritte-textarea-limit-error___vLvZU_2-0-73 .magritte-textarea-position-container-wrapper___4Dsui_2-0-73::after,
208
- .magritte-textarea___ugvor_2-0-73.magritte-textarea-focused___eiGyC_2-0-73.magritte-textarea-invalid___iKOPh_2-0-73 .magritte-textarea-position-container-wrapper___4Dsui_2-0-73::after{
207
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-focused___eiGyC_2-0-75.magritte-textarea-limit-error___vLvZU_2-0-75 .magritte-textarea-position-container-wrapper___4Dsui_2-0-75::after,
208
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-focused___eiGyC_2-0-75.magritte-textarea-invalid___iKOPh_2-0-75 .magritte-textarea-position-container-wrapper___4Dsui_2-0-75::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-73.magritte-textarea-focused___eiGyC_2-0-73.magritte-textarea-limit-error___vLvZU_2-0-73 .magritte-textarea-position-container___cEpbv_2-0-73,
215
- .magritte-textarea___ugvor_2-0-73.magritte-textarea-focused___eiGyC_2-0-73.magritte-textarea-invalid___iKOPh_2-0-73 .magritte-textarea-position-container___cEpbv_2-0-73{
214
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-focused___eiGyC_2-0-75.magritte-textarea-limit-error___vLvZU_2-0-75 .magritte-textarea-position-container___cEpbv_2-0-75,
215
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-focused___eiGyC_2-0-75.magritte-textarea-invalid___iKOPh_2-0-75 .magritte-textarea-position-container___cEpbv_2-0-75{
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-73.magritte-textarea-focused___eiGyC_2-0-73.magritte-textarea-limit-error___vLvZU_2-0-73 .magritte-textarea-native___w-czf_2-0-73,
220
- .magritte-textarea___ugvor_2-0-73.magritte-textarea-focused___eiGyC_2-0-73.magritte-textarea-invalid___iKOPh_2-0-73 .magritte-textarea-native___w-czf_2-0-73{
219
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-focused___eiGyC_2-0-75.magritte-textarea-limit-error___vLvZU_2-0-75 .magritte-textarea-native___w-czf_2-0-75,
220
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-focused___eiGyC_2-0-75.magritte-textarea-invalid___iKOPh_2-0-75 .magritte-textarea-native___w-czf_2-0-75{
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-73.magritte-textarea-focused___eiGyC_2-0-73.magritte-textarea-limit-error___vLvZU_2-0-73 .magritte-textarea-label___sgTIH_2-0-73,
226
- .magritte-textarea___ugvor_2-0-73.magritte-textarea-focused___eiGyC_2-0-73.magritte-textarea-invalid___iKOPh_2-0-73 .magritte-textarea-label___sgTIH_2-0-73{
225
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-focused___eiGyC_2-0-75.magritte-textarea-limit-error___vLvZU_2-0-75 .magritte-textarea-label___sgTIH_2-0-75,
226
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-focused___eiGyC_2-0-75.magritte-textarea-invalid___iKOPh_2-0-75 .magritte-textarea-label___sgTIH_2-0-75{
227
227
  color:var(--magritte-color-component-input-text-state-placeholder-invalid-v21-1-0);
228
228
  }
229
- .magritte-textarea___ugvor_2-0-73.magritte-textarea-focused___eiGyC_2-0-73.magritte-textarea-limit-error___vLvZU_2-0-73 .magritte-textarea-elevated___S0jk-_2-0-73 .magritte-textarea-label-elevated___0lxOI_2-0-73,
230
- .magritte-textarea___ugvor_2-0-73.magritte-textarea-focused___eiGyC_2-0-73.magritte-textarea-invalid___iKOPh_2-0-73 .magritte-textarea-elevated___S0jk-_2-0-73 .magritte-textarea-label-elevated___0lxOI_2-0-73{
229
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-focused___eiGyC_2-0-75.magritte-textarea-limit-error___vLvZU_2-0-75 .magritte-textarea-elevated___S0jk-_2-0-75 .magritte-textarea-label-elevated___0lxOI_2-0-75,
230
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-focused___eiGyC_2-0-75.magritte-textarea-invalid___iKOPh_2-0-75 .magritte-textarea-elevated___S0jk-_2-0-75 .magritte-textarea-label-elevated___0lxOI_2-0-75{
231
231
  color:var(--magritte-color-component-input-text-state-label-invalid-v21-1-0);
232
232
  }
233
- .magritte-textarea___ugvor_2-0-73.magritte-textarea-focused___eiGyC_2-0-73.magritte-textarea-limit-error___vLvZU_2-0-73 .magritte-textarea-limit___IjPJy_2-0-73,
234
- .magritte-textarea___ugvor_2-0-73.magritte-textarea-focused___eiGyC_2-0-73.magritte-textarea-invalid___iKOPh_2-0-73 .magritte-textarea-limit___IjPJy_2-0-73{
233
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-focused___eiGyC_2-0-75.magritte-textarea-limit-error___vLvZU_2-0-75 .magritte-textarea-limit___IjPJy_2-0-75,
234
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-focused___eiGyC_2-0-75.magritte-textarea-invalid___iKOPh_2-0-75 .magritte-textarea-limit___IjPJy_2-0-75{
235
235
  background-color:var(--magritte-color-component-input-background-state-field-invalid-v21-1-0);
236
236
  }
237
- .magritte-textarea___ugvor_2-0-73.magritte-textarea-focused___eiGyC_2-0-73.magritte-textarea-limit-error___vLvZU_2-0-73 .magritte-textarea-limit___IjPJy_2-0-73{
237
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-focused___eiGyC_2-0-75.magritte-textarea-limit-error___vLvZU_2-0-75 .magritte-textarea-limit___IjPJy_2-0-75{
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-73.magritte-textarea-invalid___iKOPh_2-0-73{
240
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-invalid___iKOPh_2-0-75{
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-73.magritte-textarea-invalid___iKOPh_2-0-73 .magritte-textarea-position-container-wrapper___4Dsui_2-0-73::after{
243
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-invalid___iKOPh_2-0-75 .magritte-textarea-position-container-wrapper___4Dsui_2-0-75::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-73.magritte-textarea-invalid___iKOPh_2-0-73 .magritte-textarea-position-container___cEpbv_2-0-73{
249
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-invalid___iKOPh_2-0-75 .magritte-textarea-position-container___cEpbv_2-0-75{
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-73.magritte-textarea-invalid___iKOPh_2-0-73 .magritte-textarea-native___w-czf_2-0-73{
253
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-invalid___iKOPh_2-0-75 .magritte-textarea-native___w-czf_2-0-75{
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-73.magritte-textarea-invalid___iKOPh_2-0-73 .magritte-textarea-label___sgTIH_2-0-73{
258
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-invalid___iKOPh_2-0-75 .magritte-textarea-label___sgTIH_2-0-75{
259
259
  color:var(--magritte-color-component-input-text-state-placeholder-invalid-v21-1-0);
260
260
  }
261
- .magritte-textarea___ugvor_2-0-73.magritte-textarea-invalid___iKOPh_2-0-73 .magritte-textarea-elevated___S0jk-_2-0-73 .magritte-textarea-label-elevated___0lxOI_2-0-73{
261
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-invalid___iKOPh_2-0-75 .magritte-textarea-elevated___S0jk-_2-0-75 .magritte-textarea-label-elevated___0lxOI_2-0-75{
262
262
  color:var(--magritte-color-component-input-text-state-label-invalid-v21-1-0);
263
263
  }
264
- .magritte-textarea___ugvor_2-0-73.magritte-textarea-invalid___iKOPh_2-0-73 .magritte-textarea-limit___IjPJy_2-0-73{
264
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-invalid___iKOPh_2-0-75 .magritte-textarea-limit___IjPJy_2-0-75{
265
265
  background-color:var(--magritte-color-component-input-background-state-field-invalid-v21-1-0);
266
266
  }
267
- .magritte-textarea___ugvor_2-0-73.magritte-textarea-limit-error___vLvZU_2-0-73 .magritte-textarea-limit___IjPJy_2-0-73{
267
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-limit-error___vLvZU_2-0-75 .magritte-textarea-limit___IjPJy_2-0-75{
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-73.magritte-textarea-disabled___XN0cg_2-0-73{
270
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-disabled___XN0cg_2-0-75{
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-73.magritte-textarea-disabled___XN0cg_2-0-73 .magritte-textarea-position-container-wrapper___4Dsui_2-0-73::after{
273
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-disabled___XN0cg_2-0-75 .magritte-textarea-position-container-wrapper___4Dsui_2-0-75::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-73.magritte-textarea-disabled___XN0cg_2-0-73 .magritte-textarea-position-container___cEpbv_2-0-73{
279
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-disabled___XN0cg_2-0-75 .magritte-textarea-position-container___cEpbv_2-0-75{
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-73.magritte-textarea-disabled___XN0cg_2-0-73 .magritte-textarea-native___w-czf_2-0-73{
283
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-disabled___XN0cg_2-0-75 .magritte-textarea-native___w-czf_2-0-75{
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-73.magritte-textarea-disabled___XN0cg_2-0-73 .magritte-textarea-label___sgTIH_2-0-73{
288
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-disabled___XN0cg_2-0-75 .magritte-textarea-label___sgTIH_2-0-75{
289
289
  color:var(--magritte-color-component-input-text-state-placeholder-disabled-v21-1-0);
290
290
  }
291
- .magritte-textarea___ugvor_2-0-73.magritte-textarea-disabled___XN0cg_2-0-73 .magritte-textarea-elevated___S0jk-_2-0-73 .magritte-textarea-label-elevated___0lxOI_2-0-73{
291
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-disabled___XN0cg_2-0-75 .magritte-textarea-elevated___S0jk-_2-0-75 .magritte-textarea-label-elevated___0lxOI_2-0-75{
292
292
  color:var(--magritte-color-component-input-text-state-label-disabled-v21-1-0);
293
293
  }
294
- .magritte-textarea___ugvor_2-0-73.magritte-textarea-disabled___XN0cg_2-0-73 .magritte-textarea-limit___IjPJy_2-0-73{
294
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-disabled___XN0cg_2-0-75 .magritte-textarea-limit___IjPJy_2-0-75{
295
295
  background-color:var(--magritte-color-component-input-background-state-field-disabled-v21-1-0);
296
296
  }
297
- .magritte-textarea___ugvor_2-0-73.magritte-textarea-disabled___XN0cg_2-0-73 .magritte-textarea-limit___IjPJy_2-0-73{
297
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-disabled___XN0cg_2-0-75 .magritte-textarea-limit___IjPJy_2-0-75{
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-73.magritte-textarea-disabled___XN0cg_2-0-73 .magritte-textarea-position-container___cEpbv_2-0-73,
301
- .magritte-textarea___ugvor_2-0-73.magritte-textarea-disabled___XN0cg_2-0-73 .magritte-textarea-native___w-czf_2-0-73{
300
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-disabled___XN0cg_2-0-75 .magritte-textarea-position-container___cEpbv_2-0-75,
301
+ .magritte-textarea___ugvor_2-0-75.magritte-textarea-disabled___XN0cg_2-0-75 .magritte-textarea-native___w-czf_2-0-75{
302
302
  cursor:not-allowed;
303
303
  }
304
304
  @media (prefers-reduced-motion){
305
- .magritte-textarea___ugvor_2-0-73{
305
+ .magritte-textarea___ugvor_2-0-75{
306
306
  --animation-100-duration:1ms;
307
307
  --animation-300-duration:1ms;
308
308
  }
309
309
  }
310
- .magritte-textarea-invalid___iKOPh_2-0-73 .magritte-textarea-position-container-wrapper___4Dsui_2-0-73.focus-visible{
310
+ .magritte-textarea-invalid___iKOPh_2-0-75 .magritte-textarea-position-container-wrapper___4Dsui_2-0-75.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-73{
313
+ .magritte-textarea-position-container-wrapper___4Dsui_2-0-75{
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-73.focus-visible{
320
+ .magritte-textarea-position-container-wrapper___4Dsui_2-0-75.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-73::after{
323
+ .magritte-textarea-position-container-wrapper___4Dsui_2-0-75::after{
324
324
  display:block;
325
325
  pointer-events:none;
326
326
  user-select:none;
@@ -335,7 +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-textarea-native___w-czf_2-0-73{
338
+ .magritte-textarea-native___w-czf_2-0-75{
339
339
  box-sizing:border-box;
340
340
  border:0;
341
341
  width:100%;
@@ -357,59 +357,59 @@
357
357
  background:none;
358
358
  appearance:none;
359
359
  }
360
- .magritte-textarea-native___w-czf_2-0-73:focus{
360
+ .magritte-textarea-native___w-czf_2-0-75:focus{
361
361
  outline:none;
362
362
  }
363
- .magritte-textarea-limited___cU1Rg_2-0-73 .magritte-textarea-native___w-czf_2-0-73{
363
+ .magritte-textarea-limited___cU1Rg_2-0-75 .magritte-textarea-native___w-czf_2-0-75{
364
364
  min-height:calc(72px - var(--magritte-typography-label-4-regular-line-height-v21-1-0));
365
365
  }
366
- .magritte-textarea-limited___cU1Rg_2-0-73 .magritte-textarea-position-container___cEpbv_2-0-73{
366
+ .magritte-textarea-limited___cU1Rg_2-0-75 .magritte-textarea-position-container___cEpbv_2-0-75{
367
367
  padding-bottom:30px;
368
368
  }
369
- .magritte-textarea-layout-fill-both___ERS-q_2-0-73,
370
- .magritte-textarea-layout-fill-vertical___HmNtp_2-0-73,
371
- .magritte-textarea-layout-fill-horizontal___imBH2_2-0-73{
369
+ .magritte-textarea-layout-fill-both___ERS-q_2-0-75,
370
+ .magritte-textarea-layout-fill-vertical___HmNtp_2-0-75,
371
+ .magritte-textarea-layout-fill-horizontal___imBH2_2-0-75{
372
372
  flex-direction:column;
373
373
  }
374
- .magritte-textarea-layout-fill-both___ERS-q_2-0-73 .magritte-textarea-position-container-wrapper___4Dsui_2-0-73,
375
- .magritte-textarea-layout-fill-vertical___HmNtp_2-0-73 .magritte-textarea-position-container-wrapper___4Dsui_2-0-73,
376
- .magritte-textarea-layout-fill-horizontal___imBH2_2-0-73 .magritte-textarea-position-container-wrapper___4Dsui_2-0-73{
374
+ .magritte-textarea-layout-fill-both___ERS-q_2-0-75 .magritte-textarea-position-container-wrapper___4Dsui_2-0-75,
375
+ .magritte-textarea-layout-fill-vertical___HmNtp_2-0-75 .magritte-textarea-position-container-wrapper___4Dsui_2-0-75,
376
+ .magritte-textarea-layout-fill-horizontal___imBH2_2-0-75 .magritte-textarea-position-container-wrapper___4Dsui_2-0-75{
377
377
  flex:1;
378
378
  }
379
- .magritte-textarea-layout-fill-both___ERS-q_2-0-73{
379
+ .magritte-textarea-layout-fill-both___ERS-q_2-0-75{
380
380
  width:100%;
381
381
  height:100%;
382
382
  }
383
- .magritte-textarea-layout-fill-vertical___HmNtp_2-0-73{
383
+ .magritte-textarea-layout-fill-vertical___HmNtp_2-0-75{
384
384
  height:100%;
385
385
  }
386
- .magritte-textarea-layout-fill-horizontal___imBH2_2-0-73{
386
+ .magritte-textarea-layout-fill-horizontal___imBH2_2-0-75{
387
387
  width:100%;
388
388
  }
389
- .magritte-textarea-without-label___WhBIw_2-0-73 .magritte-textarea-native___w-czf_2-0-73{
389
+ .magritte-textarea-without-label___WhBIw_2-0-75 .magritte-textarea-native___w-czf_2-0-75{
390
390
  margin-top:-18px;
391
391
  min-height:calc(104px - var(--magritte-typography-label-4-regular-line-height-v21-1-0));
392
392
  }
393
- .magritte-textarea-without-label___WhBIw_2-0-73.magritte-textarea-limited___cU1Rg_2-0-73 .magritte-textarea-native___w-czf_2-0-73{
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
394
  min-height:calc(90px - var(--magritte-typography-label-4-regular-line-height-v21-1-0));
395
395
  }
396
- .magritte-textarea-wrapper___yD7G6_2-0-73{
396
+ .magritte-textarea-wrapper___yD7G6_2-0-75{
397
397
  display:inline-flex;
398
398
  width:100%;
399
399
  }
400
- .magritte-textarea-layout-hug___tdCMY_2-0-73{
400
+ .magritte-textarea-layout-hug___tdCMY_2-0-75{
401
401
  width:100%;
402
402
  }
403
- .magritte-textarea-layout-hug___tdCMY_2-0-73 .magritte-textarea-wrapper___yD7G6_2-0-73{
403
+ .magritte-textarea-layout-hug___tdCMY_2-0-75 .magritte-textarea-wrapper___yD7G6_2-0-75{
404
404
  display:grid;
405
405
  }
406
- .magritte-textarea-layout-hug___tdCMY_2-0-73 .magritte-textarea-wrapper___yD7G6_2-0-73::after,
407
- .magritte-textarea-layout-hug___tdCMY_2-0-73 .magritte-textarea-wrapper___yD7G6_2-0-73 .magritte-textarea-native___w-czf_2-0-73{
406
+ .magritte-textarea-layout-hug___tdCMY_2-0-75 .magritte-textarea-wrapper___yD7G6_2-0-75::after,
407
+ .magritte-textarea-layout-hug___tdCMY_2-0-75 .magritte-textarea-wrapper___yD7G6_2-0-75 .magritte-textarea-native___w-czf_2-0-75{
408
408
  grid-area:1 / 1 / 2 / 2;
409
409
  overflow:hidden;
410
410
  width:auto;
411
411
  }
412
- .magritte-textarea-layout-hug___tdCMY_2-0-73 .magritte-textarea-wrapper___yD7G6_2-0-73::after{
412
+ .magritte-textarea-layout-hug___tdCMY_2-0-75 .magritte-textarea-wrapper___yD7G6_2-0-75::after{
413
413
  box-sizing:border-box;
414
414
  border:0;
415
415
  width:100%;
@@ -429,7 +429,7 @@
429
429
  white-space:pre-wrap;
430
430
  visibility:hidden;
431
431
  }
432
- .magritte-textarea-position-container___cEpbv_2-0-73{
432
+ .magritte-textarea-position-container___cEpbv_2-0-75{
433
433
  display:inline-flex;
434
434
  overflow:hidden;
435
435
  position:relative;
@@ -444,24 +444,24 @@
444
444
  box-sizing:border-box;
445
445
  box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-field-v21-1-0);
446
446
  }
447
- .magritte-textarea-position-container___cEpbv_2-0-73::-webkit-resizer{
447
+ .magritte-textarea-position-container___cEpbv_2-0-75::-webkit-resizer{
448
448
  display:none;
449
449
  }
450
- .magritte-textarea-animation-timeout___zudbr_2-0-73,
451
- .magritte-textarea-position-container___cEpbv_2-0-73{
450
+ .magritte-textarea-animation-timeout___zudbr_2-0-75,
451
+ .magritte-textarea-position-container___cEpbv_2-0-75{
452
452
  transition-property:transform, color, font-size, letter-spacing;
453
453
  transition-duration:var(--animation-100-duration);
454
454
  transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v21-1-0);
455
455
  --animation-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v21-1-0);
456
456
  }
457
- .magritte-textarea-rigging-container___-1S6i_2-0-73{
457
+ .magritte-textarea-rigging-container___-1S6i_2-0-75{
458
458
  position:absolute;
459
459
  pointer-events:none;
460
460
  left:16px;
461
461
  right:16px;
462
462
  top:0;
463
463
  }
464
- .magritte-textarea-label___sgTIH_2-0-73{
464
+ .magritte-textarea-label___sgTIH_2-0-75{
465
465
  font-family:var(--magritte-typography-label-2-regular-font-family-v21-1-0);
466
466
  font-weight:var(--magritte-typography-label-2-regular-font-weight-v21-1-0);
467
467
  line-height:var(--magritte-typography-label-2-regular-line-height-v21-1-0);
@@ -481,7 +481,7 @@
481
481
  transition-duration:var(--animation-100-duration);
482
482
  transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v21-1-0);
483
483
  }
484
- .magritte-textarea-limit___IjPJy_2-0-73{
484
+ .magritte-textarea-limit___IjPJy_2-0-75{
485
485
  position:absolute;
486
486
  bottom:10px;
487
487
  right:28px;
@@ -491,7 +491,7 @@
491
491
  pointer-events:none;
492
492
  --magritte-ui-text-color-override:var(--magritte-color-component-input-text-limit-v21-1-0);
493
493
  }
494
- .magritte-textarea-grip___iL7lq_2-0-73{
494
+ .magritte-textarea-grip___iL7lq_2-0-75{
495
495
  position:absolute;
496
496
  pointer-events:none;
497
497
  display:inline-flex;
@@ -500,11 +500,11 @@
500
500
  border-bottom-right-radius:12px;
501
501
  --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-grip-v21-1-0);
502
502
  }
503
- .magritte-textarea-grip-icon___YK-9w_2-0-73{
503
+ .magritte-textarea-grip-icon___YK-9w_2-0-75{
504
504
  display:inline-flex;
505
505
  z-index:1;
506
506
  }
507
- .magritte-textarea-label-elevated___0lxOI_2-0-73{
507
+ .magritte-textarea-label-elevated___0lxOI_2-0-75{
508
508
  font-family:var(--magritte-typography-label-4-regular-font-family-v21-1-0);
509
509
  font-weight:var(--magritte-typography-label-4-regular-font-weight-v21-1-0);
510
510
  line-height:var(--magritte-typography-label-4-regular-line-height-v21-1-0);
@@ -517,20 +517,20 @@
517
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
518
  }
519
519
  @media (prefers-reduced-motion: no-preference){
520
- .magritte-textarea-limit-enter___CygGz_2-0-73{
520
+ .magritte-textarea-limit-enter___CygGz_2-0-75{
521
521
  opacity:0;
522
522
  }
523
- .magritte-textarea-limit-exit___RMp-R_2-0-73,
524
- .magritte-textarea-limit-enter-active___8vN-t_2-0-73{
523
+ .magritte-textarea-limit-exit___RMp-R_2-0-75,
524
+ .magritte-textarea-limit-enter-active___8vN-t_2-0-75{
525
525
  opacity:1;
526
526
  }
527
- .magritte-textarea-limit-enter-active___8vN-t_2-0-73{
527
+ .magritte-textarea-limit-enter-active___8vN-t_2-0-75{
528
528
  transition-property:opacity;
529
529
  transition-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v21-1-0);
530
530
  transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v21-1-0);
531
531
  --animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v21-1-0);
532
532
  }
533
- .magritte-textarea-limit-exit-active___a5kBr_2-0-73{
533
+ .magritte-textarea-limit-exit-active___a5kBr_2-0-75{
534
534
  opacity:0;
535
535
  transition-property:opacity;
536
536
  transition-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v21-1-0);
package/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from '@hh.ru/magritte-ui-textarea/Textarea';
2
- export * from '@hh.ru/magritte-ui-textarea/UncontrolledTextarea';
1
+ export * from '@hh.ru/magritte-ui-textarea/TextArea';
2
+ export * from '@hh.ru/magritte-ui-textarea/UncontrolledTextArea';
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
- export { TextArea } from './Textarea.js';
3
- export { UncontrolledTextArea } from './UncontrolledTextarea.js';
2
+ export { TextArea } from './TextArea.js';
3
+ export { UncontrolledTextArea } from './UncontrolledTextArea.js';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';
6
6
  import 'react-transition-group';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-textarea",
3
- "version": "2.0.73",
3
+ "version": "2.0.75",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -24,8 +24,8 @@
24
24
  "@hh.ru/magritte-common-use-multiple-refs": "1.1.5",
25
25
  "@hh.ru/magritte-ui-breakpoint": "5.0.0",
26
26
  "@hh.ru/magritte-ui-form-helper": "1.0.22",
27
- "@hh.ru/magritte-ui-icon": "7.9.12",
28
- "@hh.ru/magritte-ui-input": "7.1.6",
27
+ "@hh.ru/magritte-ui-icon": "8.0.0",
28
+ "@hh.ru/magritte-ui-input": "7.1.7",
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": "6ae3dbd40e749f4dfd123c76295ec05afc2c79e0"
39
+ "gitHead": "478078324a2244e6b326ca9f5c03e46096bf4554"
40
40
  }
File without changes