@hh.ru/magritte-ui-textarea 2.1.0 → 2.1.1
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.js +2 -2
- package/TextArea.js.map +1 -1
- package/index.css +114 -114
- package/package.json +2 -2
package/TextArea.js
CHANGED
|
@@ -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-1-
|
|
15
|
+
var styles = {"textarea":"magritte-textarea___ugvor_2-1-1","textarea-focused":"magritte-textarea-focused___eiGyC_2-1-1","textareaFocused":"magritte-textarea-focused___eiGyC_2-1-1","textarea-invalid":"magritte-textarea-invalid___iKOPh_2-1-1","textareaInvalid":"magritte-textarea-invalid___iKOPh_2-1-1","textarea-disabled":"magritte-textarea-disabled___XN0cg_2-1-1","textareaDisabled":"magritte-textarea-disabled___XN0cg_2-1-1","textarea-position-container-wrapper":"magritte-textarea-position-container-wrapper___4Dsui_2-1-1","textareaPositionContainerWrapper":"magritte-textarea-position-container-wrapper___4Dsui_2-1-1","textarea-position-container":"magritte-textarea-position-container___cEpbv_2-1-1","textareaPositionContainer":"magritte-textarea-position-container___cEpbv_2-1-1","native-element":"magritte-native-element___a0RAE_2-1-1","nativeElement":"magritte-native-element___a0RAE_2-1-1","textarea-label":"magritte-textarea-label___sgTIH_2-1-1","textareaLabel":"magritte-textarea-label___sgTIH_2-1-1","textarea-label-elevated":"magritte-textarea-label-elevated___0lxOI_2-1-1","textareaLabelElevated":"magritte-textarea-label-elevated___0lxOI_2-1-1","textarea-limit":"magritte-textarea-limit___IjPJy_2-1-1","textareaLimit":"magritte-textarea-limit___IjPJy_2-1-1","textarea-limit-error":"magritte-textarea-limit-error___vLvZU_2-1-1","textareaLimitError":"magritte-textarea-limit-error___vLvZU_2-1-1","min-height-48":"magritte-min-height-48___jGf5Z_2-1-1","minHeight48":"magritte-min-height-48___jGf5Z_2-1-1","min-height-56":"magritte-min-height-56___2yI39_2-1-1","minHeight56":"magritte-min-height-56___2yI39_2-1-1","min-height-default":"magritte-min-height-default___zwRcq_2-1-1","minHeightDefault":"magritte-min-height-default___zwRcq_2-1-1","textarea-limited":"magritte-textarea-limited___cU1Rg_2-1-1","textareaLimited":"magritte-textarea-limited___cU1Rg_2-1-1","textarea-layout-fill-both":"magritte-textarea-layout-fill-both___ERS-q_2-1-1","textareaLayoutFillBoth":"magritte-textarea-layout-fill-both___ERS-q_2-1-1","textarea-layout-fill-vertical":"magritte-textarea-layout-fill-vertical___HmNtp_2-1-1","textareaLayoutFillVertical":"magritte-textarea-layout-fill-vertical___HmNtp_2-1-1","textarea-layout-fill-horizontal":"magritte-textarea-layout-fill-horizontal___imBH2_2-1-1","textareaLayoutFillHorizontal":"magritte-textarea-layout-fill-horizontal___imBH2_2-1-1","textarea-wrapper":"magritte-textarea-wrapper___yD7G6_2-1-1","textareaWrapper":"magritte-textarea-wrapper___yD7G6_2-1-1","textarea-layout-hug":"magritte-textarea-layout-hug___tdCMY_2-1-1","textareaLayoutHug":"magritte-textarea-layout-hug___tdCMY_2-1-1","textarea-elevated":"magritte-textarea-elevated___S0jk-_2-1-1","textareaElevated":"magritte-textarea-elevated___S0jk-_2-1-1","textarea-animation-timeout":"magritte-textarea-animation-timeout___zudbr_2-1-1","textareaAnimationTimeout":"magritte-textarea-animation-timeout___zudbr_2-1-1","textarea-rigging-container":"magritte-textarea-rigging-container___-1S6i_2-1-1","textareaRiggingContainer":"magritte-textarea-rigging-container___-1S6i_2-1-1","textarea-grip":"magritte-textarea-grip___iL7lq_2-1-1","textareaGrip":"magritte-textarea-grip___iL7lq_2-1-1","textarea-grip-icon":"magritte-textarea-grip-icon___YK-9w_2-1-1","textareaGripIcon":"magritte-textarea-grip-icon___YK-9w_2-1-1","textarea-limit-enter":"magritte-textarea-limit-enter___CygGz_2-1-1","textareaLimitEnter":"magritte-textarea-limit-enter___CygGz_2-1-1","textarea-limit-exit":"magritte-textarea-limit-exit___RMp-R_2-1-1","textareaLimitExit":"magritte-textarea-limit-exit___RMp-R_2-1-1","textarea-limit-enter-active":"magritte-textarea-limit-enter-active___8vN-t_2-1-1","textareaLimitEnterActive":"magritte-textarea-limit-enter-active___8vN-t_2-1-1","textarea-limit-exit-active":"magritte-textarea-limit-exit-active___a5kBr_2-1-1","textareaLimitExitActive":"magritte-textarea-limit-exit-active___a5kBr_2-1-1"};
|
|
16
16
|
|
|
17
17
|
const MIN_HEIGHT_WITH_VISIBLE_LIMIT = 112;
|
|
18
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) => {
|
|
@@ -114,7 +114,7 @@ const TextAreaComponent = ({ onChange, onFocus, onBlur, onValidate, value, place
|
|
|
114
114
|
[styles.minHeightDefault]: !minHeight,
|
|
115
115
|
}), children: [jsxs("div", { className: classnames(styles.textareaPositionContainerWrapper, {
|
|
116
116
|
'focus-visible': isFocusVisible,
|
|
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
|
|
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", { rows: actualMinHeight && 1, ...restProps, ...ariaProps, disabled: isComponentDisabled, suppressHydrationWarning: true, className: styles.nativeElement, value: value, onChange: onChange, onFocus: focusHandler, onBlur: blurHandler, ref: textAreaRefCallback }) }), showLabel && (jsx("div", { className: styles.textareaRiggingContainer, children: jsx("label", { className: classnames(styles.textareaLabel, {
|
|
118
118
|
[styles.textareaLabelElevated]: hasElevatedPlaceholderClass,
|
|
119
119
|
}), id: ariaProps['aria-labelledby'], children: placeholder }) })), !!maxLength && isMaxLengthDisplayed && (jsx(CSSTransition, { in: isFocused || value.length > maxLength, timeout: animationTimeout, classNames: {
|
|
120
120
|
enter: styles.textareaLimitEnter,
|
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 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,MAAM,CAA6C,IAAI,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AW,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
|
+
{"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 rows={actualMinHeight && 1}\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 />\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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AAO,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;;;;"}
|
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-1-
|
|
103
|
+
.magritte-textarea___ugvor_2-1-1{
|
|
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-1-
|
|
110
|
+
body.magritte-old-layout .magritte-textarea___ugvor_2-1-1:not(.magritte-textarea-focused___eiGyC_2-1-1):not(.magritte-textarea-invalid___iKOPh_2-1-1):not(.magritte-textarea-disabled___XN0cg_2-1-1):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-1-
|
|
113
|
+
body.magritte-old-layout .magritte-textarea___ugvor_2-1-1:not(.magritte-textarea-focused___eiGyC_2-1-1):not(.magritte-textarea-invalid___iKOPh_2-1-1):not(.magritte-textarea-disabled___XN0cg_2-1-1):hover .magritte-textarea-position-container-wrapper___4Dsui_2-1-1::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-1-
|
|
119
|
+
body.magritte-old-layout .magritte-textarea___ugvor_2-1-1:not(.magritte-textarea-focused___eiGyC_2-1-1):not(.magritte-textarea-invalid___iKOPh_2-1-1):not(.magritte-textarea-disabled___XN0cg_2-1-1):hover .magritte-textarea-position-container___cEpbv_2-1-1{
|
|
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-1-
|
|
123
|
+
body.magritte-old-layout .magritte-textarea___ugvor_2-1-1:not(.magritte-textarea-focused___eiGyC_2-1-1):not(.magritte-textarea-invalid___iKOPh_2-1-1):not(.magritte-textarea-disabled___XN0cg_2-1-1):hover .magritte-native-element___a0RAE_2-1-1{
|
|
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-1-
|
|
128
|
+
body.magritte-old-layout .magritte-textarea___ugvor_2-1-1:not(.magritte-textarea-focused___eiGyC_2-1-1):not(.magritte-textarea-invalid___iKOPh_2-1-1):not(.magritte-textarea-disabled___XN0cg_2-1-1):hover .magritte-textarea-label___sgTIH_2-1-1{
|
|
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-1-
|
|
131
|
+
body.magritte-old-layout .magritte-textarea___ugvor_2-1-1:not(.magritte-textarea-focused___eiGyC_2-1-1):not(.magritte-textarea-invalid___iKOPh_2-1-1):not(.magritte-textarea-disabled___XN0cg_2-1-1):hover .magritte-textarea-label-elevated___0lxOI_2-1-1{
|
|
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-1-
|
|
134
|
+
body.magritte-old-layout .magritte-textarea___ugvor_2-1-1:not(.magritte-textarea-focused___eiGyC_2-1-1):not(.magritte-textarea-invalid___iKOPh_2-1-1):not(.magritte-textarea-disabled___XN0cg_2-1-1):hover .magritte-textarea-limit___IjPJy_2-1-1{
|
|
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-1-
|
|
137
|
+
body.magritte-old-layout .magritte-textarea___ugvor_2-1-1:not(.magritte-textarea-focused___eiGyC_2-1-1):not(.magritte-textarea-invalid___iKOPh_2-1-1):not(.magritte-textarea-disabled___XN0cg_2-1-1):hover .magritte-textarea-limit___IjPJy_2-1-1{
|
|
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-1-
|
|
142
|
+
body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-1-1:not(.magritte-textarea-focused___eiGyC_2-1-1):not(.magritte-textarea-invalid___iKOPh_2-1-1):not(.magritte-textarea-disabled___XN0cg_2-1-1):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-1-
|
|
145
|
+
body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-1-1:not(.magritte-textarea-focused___eiGyC_2-1-1):not(.magritte-textarea-invalid___iKOPh_2-1-1):not(.magritte-textarea-disabled___XN0cg_2-1-1):hover .magritte-textarea-position-container-wrapper___4Dsui_2-1-1::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-1-
|
|
151
|
+
body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-1-1:not(.magritte-textarea-focused___eiGyC_2-1-1):not(.magritte-textarea-invalid___iKOPh_2-1-1):not(.magritte-textarea-disabled___XN0cg_2-1-1):hover .magritte-textarea-position-container___cEpbv_2-1-1{
|
|
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-1-
|
|
155
|
+
body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-1-1:not(.magritte-textarea-focused___eiGyC_2-1-1):not(.magritte-textarea-invalid___iKOPh_2-1-1):not(.magritte-textarea-disabled___XN0cg_2-1-1):hover .magritte-native-element___a0RAE_2-1-1{
|
|
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-1-
|
|
160
|
+
body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-1-1:not(.magritte-textarea-focused___eiGyC_2-1-1):not(.magritte-textarea-invalid___iKOPh_2-1-1):not(.magritte-textarea-disabled___XN0cg_2-1-1):hover .magritte-textarea-label___sgTIH_2-1-1{
|
|
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-1-
|
|
163
|
+
body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-1-1:not(.magritte-textarea-focused___eiGyC_2-1-1):not(.magritte-textarea-invalid___iKOPh_2-1-1):not(.magritte-textarea-disabled___XN0cg_2-1-1):hover .magritte-textarea-label-elevated___0lxOI_2-1-1{
|
|
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-1-
|
|
166
|
+
body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-1-1:not(.magritte-textarea-focused___eiGyC_2-1-1):not(.magritte-textarea-invalid___iKOPh_2-1-1):not(.magritte-textarea-disabled___XN0cg_2-1-1):hover .magritte-textarea-limit___IjPJy_2-1-1{
|
|
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-1-
|
|
169
|
+
body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-1-1:not(.magritte-textarea-focused___eiGyC_2-1-1):not(.magritte-textarea-invalid___iKOPh_2-1-1):not(.magritte-textarea-disabled___XN0cg_2-1-1):hover .magritte-textarea-limit___IjPJy_2-1-1{
|
|
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-1-
|
|
173
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-focused___eiGyC_2-1-1{
|
|
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-1-
|
|
176
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-focused___eiGyC_2-1-1 .magritte-textarea-position-container-wrapper___4Dsui_2-1-1::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-1-
|
|
182
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-focused___eiGyC_2-1-1 .magritte-textarea-position-container___cEpbv_2-1-1{
|
|
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-1-
|
|
186
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-focused___eiGyC_2-1-1 .magritte-native-element___a0RAE_2-1-1{
|
|
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-1-
|
|
191
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-focused___eiGyC_2-1-1 .magritte-textarea-label___sgTIH_2-1-1{
|
|
192
192
|
color:var(--magritte-color-component-input-text-state-placeholder-focused-v21-1-0);
|
|
193
193
|
}
|
|
194
|
-
.magritte-textarea___ugvor_2-1-
|
|
194
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-focused___eiGyC_2-1-1 .magritte-textarea-label-elevated___0lxOI_2-1-1{
|
|
195
195
|
color:var(--magritte-color-component-input-text-state-label-focused-v21-1-0);
|
|
196
196
|
}
|
|
197
|
-
.magritte-textarea___ugvor_2-1-
|
|
197
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-focused___eiGyC_2-1-1 .magritte-textarea-limit___IjPJy_2-1-1{
|
|
198
198
|
background-color:var(--magritte-color-component-input-background-state-field-focused-v21-1-0);
|
|
199
199
|
}
|
|
200
|
-
.magritte-textarea___ugvor_2-1-
|
|
200
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-focused___eiGyC_2-1-1 .magritte-textarea-limit___IjPJy_2-1-1{
|
|
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-1-
|
|
204
|
-
.magritte-textarea___ugvor_2-1-
|
|
203
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-focused___eiGyC_2-1-1.magritte-textarea-limit-error___vLvZU_2-1-1,
|
|
204
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-focused___eiGyC_2-1-1.magritte-textarea-invalid___iKOPh_2-1-1{
|
|
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-1-
|
|
208
|
-
.magritte-textarea___ugvor_2-1-
|
|
207
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-focused___eiGyC_2-1-1.magritte-textarea-limit-error___vLvZU_2-1-1 .magritte-textarea-position-container-wrapper___4Dsui_2-1-1::after,
|
|
208
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-focused___eiGyC_2-1-1.magritte-textarea-invalid___iKOPh_2-1-1 .magritte-textarea-position-container-wrapper___4Dsui_2-1-1::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-1-
|
|
215
|
-
.magritte-textarea___ugvor_2-1-
|
|
214
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-focused___eiGyC_2-1-1.magritte-textarea-limit-error___vLvZU_2-1-1 .magritte-textarea-position-container___cEpbv_2-1-1,
|
|
215
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-focused___eiGyC_2-1-1.magritte-textarea-invalid___iKOPh_2-1-1 .magritte-textarea-position-container___cEpbv_2-1-1{
|
|
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-1-
|
|
220
|
-
.magritte-textarea___ugvor_2-1-
|
|
219
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-focused___eiGyC_2-1-1.magritte-textarea-limit-error___vLvZU_2-1-1 .magritte-native-element___a0RAE_2-1-1,
|
|
220
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-focused___eiGyC_2-1-1.magritte-textarea-invalid___iKOPh_2-1-1 .magritte-native-element___a0RAE_2-1-1{
|
|
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-1-
|
|
226
|
-
.magritte-textarea___ugvor_2-1-
|
|
225
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-focused___eiGyC_2-1-1.magritte-textarea-limit-error___vLvZU_2-1-1 .magritte-textarea-label___sgTIH_2-1-1,
|
|
226
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-focused___eiGyC_2-1-1.magritte-textarea-invalid___iKOPh_2-1-1 .magritte-textarea-label___sgTIH_2-1-1{
|
|
227
227
|
color:var(--magritte-color-component-input-text-state-placeholder-invalid-v21-1-0);
|
|
228
228
|
}
|
|
229
|
-
.magritte-textarea___ugvor_2-1-
|
|
230
|
-
.magritte-textarea___ugvor_2-1-
|
|
229
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-focused___eiGyC_2-1-1.magritte-textarea-limit-error___vLvZU_2-1-1 .magritte-textarea-label-elevated___0lxOI_2-1-1,
|
|
230
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-focused___eiGyC_2-1-1.magritte-textarea-invalid___iKOPh_2-1-1 .magritte-textarea-label-elevated___0lxOI_2-1-1{
|
|
231
231
|
color:var(--magritte-color-component-input-text-state-label-invalid-v21-1-0);
|
|
232
232
|
}
|
|
233
|
-
.magritte-textarea___ugvor_2-1-
|
|
234
|
-
.magritte-textarea___ugvor_2-1-
|
|
233
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-focused___eiGyC_2-1-1.magritte-textarea-limit-error___vLvZU_2-1-1 .magritte-textarea-limit___IjPJy_2-1-1,
|
|
234
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-focused___eiGyC_2-1-1.magritte-textarea-invalid___iKOPh_2-1-1 .magritte-textarea-limit___IjPJy_2-1-1{
|
|
235
235
|
background-color:var(--magritte-color-component-input-background-state-field-invalid-v21-1-0);
|
|
236
236
|
}
|
|
237
|
-
.magritte-textarea___ugvor_2-1-
|
|
237
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-focused___eiGyC_2-1-1.magritte-textarea-limit-error___vLvZU_2-1-1 .magritte-textarea-limit___IjPJy_2-1-1{
|
|
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-1-
|
|
240
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-invalid___iKOPh_2-1-1{
|
|
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-1-
|
|
243
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-invalid___iKOPh_2-1-1 .magritte-textarea-position-container-wrapper___4Dsui_2-1-1::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-1-
|
|
249
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-invalid___iKOPh_2-1-1 .magritte-textarea-position-container___cEpbv_2-1-1{
|
|
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-1-
|
|
253
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-invalid___iKOPh_2-1-1 .magritte-native-element___a0RAE_2-1-1{
|
|
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-1-
|
|
258
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-invalid___iKOPh_2-1-1 .magritte-textarea-label___sgTIH_2-1-1{
|
|
259
259
|
color:var(--magritte-color-component-input-text-state-placeholder-invalid-v21-1-0);
|
|
260
260
|
}
|
|
261
|
-
.magritte-textarea___ugvor_2-1-
|
|
261
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-invalid___iKOPh_2-1-1 .magritte-textarea-label-elevated___0lxOI_2-1-1{
|
|
262
262
|
color:var(--magritte-color-component-input-text-state-label-invalid-v21-1-0);
|
|
263
263
|
}
|
|
264
|
-
.magritte-textarea___ugvor_2-1-
|
|
264
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-invalid___iKOPh_2-1-1 .magritte-textarea-limit___IjPJy_2-1-1{
|
|
265
265
|
background-color:var(--magritte-color-component-input-background-state-field-invalid-v21-1-0);
|
|
266
266
|
}
|
|
267
|
-
.magritte-textarea___ugvor_2-1-
|
|
267
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-limit-error___vLvZU_2-1-1 .magritte-textarea-limit___IjPJy_2-1-1{
|
|
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-1-
|
|
270
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-disabled___XN0cg_2-1-1{
|
|
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-1-
|
|
273
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-disabled___XN0cg_2-1-1 .magritte-textarea-position-container-wrapper___4Dsui_2-1-1::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-1-
|
|
279
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-disabled___XN0cg_2-1-1 .magritte-textarea-position-container___cEpbv_2-1-1{
|
|
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-1-
|
|
283
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-disabled___XN0cg_2-1-1 .magritte-native-element___a0RAE_2-1-1{
|
|
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-1-
|
|
288
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-disabled___XN0cg_2-1-1 .magritte-textarea-label___sgTIH_2-1-1{
|
|
289
289
|
color:var(--magritte-color-component-input-text-state-placeholder-disabled-v21-1-0);
|
|
290
290
|
}
|
|
291
|
-
.magritte-textarea___ugvor_2-1-
|
|
291
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-disabled___XN0cg_2-1-1 .magritte-textarea-label-elevated___0lxOI_2-1-1{
|
|
292
292
|
color:var(--magritte-color-component-input-text-state-label-disabled-v21-1-0);
|
|
293
293
|
}
|
|
294
|
-
.magritte-textarea___ugvor_2-1-
|
|
294
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-disabled___XN0cg_2-1-1 .magritte-textarea-limit___IjPJy_2-1-1{
|
|
295
295
|
background-color:var(--magritte-color-component-input-background-state-field-disabled-v21-1-0);
|
|
296
296
|
}
|
|
297
|
-
.magritte-textarea___ugvor_2-1-
|
|
297
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-disabled___XN0cg_2-1-1 .magritte-textarea-limit___IjPJy_2-1-1{
|
|
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-1-
|
|
301
|
-
.magritte-textarea___ugvor_2-1-
|
|
300
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-disabled___XN0cg_2-1-1 .magritte-textarea-position-container___cEpbv_2-1-1,
|
|
301
|
+
.magritte-textarea___ugvor_2-1-1.magritte-textarea-disabled___XN0cg_2-1-1 .magritte-native-element___a0RAE_2-1-1{
|
|
302
302
|
cursor:not-allowed;
|
|
303
303
|
}
|
|
304
304
|
@media (prefers-reduced-motion){
|
|
305
|
-
.magritte-textarea___ugvor_2-1-
|
|
305
|
+
.magritte-textarea___ugvor_2-1-1{
|
|
306
306
|
--animation-100-duration:1ms;
|
|
307
307
|
--animation-300-duration:1ms;
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
-
.magritte-textarea-invalid___iKOPh_2-1-
|
|
310
|
+
.magritte-textarea-invalid___iKOPh_2-1-1 .magritte-textarea-position-container-wrapper___4Dsui_2-1-1.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-1-
|
|
313
|
+
.magritte-textarea-position-container-wrapper___4Dsui_2-1-1{
|
|
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-1-
|
|
320
|
+
.magritte-textarea-position-container-wrapper___4Dsui_2-1-1.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-1-
|
|
323
|
+
.magritte-textarea-position-container-wrapper___4Dsui_2-1-1::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-native-element___a0RAE_2-1-
|
|
338
|
+
.magritte-native-element___a0RAE_2-1-1{
|
|
339
339
|
font-family:var(--magritte-typography-label-2-regular-font-family-v21-1-0);
|
|
340
340
|
font-weight:var(--magritte-typography-label-2-regular-font-weight-v21-1-0);
|
|
341
341
|
line-height:var(--magritte-typography-label-2-regular-line-height-v21-1-0);
|
|
@@ -355,64 +355,64 @@
|
|
|
355
355
|
background:none;
|
|
356
356
|
appearance:none;
|
|
357
357
|
}
|
|
358
|
-
.magritte-native-element___a0RAE_2-1-
|
|
358
|
+
.magritte-native-element___a0RAE_2-1-1:focus{
|
|
359
359
|
outline:none;
|
|
360
360
|
}
|
|
361
|
-
.magritte-min-height-48___jGf5Z_2-1-
|
|
361
|
+
.magritte-min-height-48___jGf5Z_2-1-1 .magritte-native-element___a0RAE_2-1-1{
|
|
362
362
|
min-height:calc(36px - var(--magritte-typography-label-4-regular-line-height-v21-1-0));
|
|
363
363
|
}
|
|
364
|
-
.magritte-min-height-56___2yI39_2-1-
|
|
364
|
+
.magritte-min-height-56___2yI39_2-1-1 .magritte-native-element___a0RAE_2-1-1{
|
|
365
365
|
min-height:calc(40px - var(--magritte-typography-label-4-regular-line-height-v21-1-0));
|
|
366
366
|
}
|
|
367
|
-
.magritte-min-height-default___zwRcq_2-1-
|
|
367
|
+
.magritte-min-height-default___zwRcq_2-1-1 .magritte-native-element___a0RAE_2-1-1{
|
|
368
368
|
min-height:calc(78px - var(--magritte-typography-label-4-regular-line-height-v21-1-0));
|
|
369
369
|
}
|
|
370
|
-
.magritte-textarea-limited___cU1Rg_2-1-
|
|
370
|
+
.magritte-textarea-limited___cU1Rg_2-1-1.magritte-min-height-48___jGf5Z_2-1-1 .magritte-native-element___a0RAE_2-1-1{
|
|
371
371
|
min-height:calc(22px - var(--magritte-typography-label-4-regular-line-height-v21-1-0));
|
|
372
372
|
}
|
|
373
|
-
.magritte-textarea-limited___cU1Rg_2-1-
|
|
373
|
+
.magritte-textarea-limited___cU1Rg_2-1-1.magritte-min-height-56___2yI39_2-1-1 .magritte-native-element___a0RAE_2-1-1{
|
|
374
374
|
min-height:calc(22px - var(--magritte-typography-label-4-regular-line-height-v21-1-0));
|
|
375
375
|
}
|
|
376
|
-
.magritte-textarea-limited___cU1Rg_2-1-
|
|
376
|
+
.magritte-textarea-limited___cU1Rg_2-1-1.magritte-min-height-default___zwRcq_2-1-1 .magritte-native-element___a0RAE_2-1-1{
|
|
377
377
|
min-height:calc(64px - var(--magritte-typography-label-4-regular-line-height-v21-1-0));
|
|
378
378
|
}
|
|
379
|
-
.magritte-textarea-layout-fill-both___ERS-q_2-1-
|
|
380
|
-
.magritte-textarea-layout-fill-vertical___HmNtp_2-1-
|
|
381
|
-
.magritte-textarea-layout-fill-horizontal___imBH2_2-1-
|
|
379
|
+
.magritte-textarea-layout-fill-both___ERS-q_2-1-1,
|
|
380
|
+
.magritte-textarea-layout-fill-vertical___HmNtp_2-1-1,
|
|
381
|
+
.magritte-textarea-layout-fill-horizontal___imBH2_2-1-1{
|
|
382
382
|
flex-direction:column;
|
|
383
383
|
}
|
|
384
|
-
.magritte-textarea-layout-fill-both___ERS-q_2-1-
|
|
385
|
-
.magritte-textarea-layout-fill-vertical___HmNtp_2-1-
|
|
386
|
-
.magritte-textarea-layout-fill-horizontal___imBH2_2-1-
|
|
384
|
+
.magritte-textarea-layout-fill-both___ERS-q_2-1-1 .magritte-textarea-position-container-wrapper___4Dsui_2-1-1,
|
|
385
|
+
.magritte-textarea-layout-fill-vertical___HmNtp_2-1-1 .magritte-textarea-position-container-wrapper___4Dsui_2-1-1,
|
|
386
|
+
.magritte-textarea-layout-fill-horizontal___imBH2_2-1-1 .magritte-textarea-position-container-wrapper___4Dsui_2-1-1{
|
|
387
387
|
flex:1;
|
|
388
388
|
}
|
|
389
|
-
.magritte-textarea-layout-fill-both___ERS-q_2-1-
|
|
389
|
+
.magritte-textarea-layout-fill-both___ERS-q_2-1-1{
|
|
390
390
|
width:100%;
|
|
391
391
|
height:100%;
|
|
392
392
|
}
|
|
393
|
-
.magritte-textarea-layout-fill-vertical___HmNtp_2-1-
|
|
393
|
+
.magritte-textarea-layout-fill-vertical___HmNtp_2-1-1{
|
|
394
394
|
height:100%;
|
|
395
395
|
}
|
|
396
|
-
.magritte-textarea-layout-fill-horizontal___imBH2_2-1-
|
|
396
|
+
.magritte-textarea-layout-fill-horizontal___imBH2_2-1-1{
|
|
397
397
|
width:100%;
|
|
398
398
|
}
|
|
399
|
-
.magritte-textarea-wrapper___yD7G6_2-1-
|
|
399
|
+
.magritte-textarea-wrapper___yD7G6_2-1-1{
|
|
400
400
|
display:inline-flex;
|
|
401
401
|
width:100%;
|
|
402
402
|
}
|
|
403
|
-
.magritte-textarea-layout-hug___tdCMY_2-1-
|
|
403
|
+
.magritte-textarea-layout-hug___tdCMY_2-1-1{
|
|
404
404
|
width:100%;
|
|
405
405
|
}
|
|
406
|
-
.magritte-textarea-layout-hug___tdCMY_2-1-
|
|
406
|
+
.magritte-textarea-layout-hug___tdCMY_2-1-1 .magritte-textarea-wrapper___yD7G6_2-1-1{
|
|
407
407
|
display:grid;
|
|
408
408
|
}
|
|
409
|
-
.magritte-textarea-layout-hug___tdCMY_2-1-
|
|
410
|
-
.magritte-textarea-layout-hug___tdCMY_2-1-
|
|
409
|
+
.magritte-textarea-layout-hug___tdCMY_2-1-1 .magritte-textarea-wrapper___yD7G6_2-1-1::after,
|
|
410
|
+
.magritte-textarea-layout-hug___tdCMY_2-1-1 .magritte-textarea-wrapper___yD7G6_2-1-1 .magritte-native-element___a0RAE_2-1-1{
|
|
411
411
|
grid-area:1 / 1 / 2 / 2;
|
|
412
412
|
overflow:hidden;
|
|
413
413
|
width:auto;
|
|
414
414
|
}
|
|
415
|
-
.magritte-textarea-layout-hug___tdCMY_2-1-
|
|
415
|
+
.magritte-textarea-layout-hug___tdCMY_2-1-1 .magritte-textarea-wrapper___yD7G6_2-1-1::after{
|
|
416
416
|
font-family:var(--magritte-typography-label-2-regular-font-family-v21-1-0);
|
|
417
417
|
font-weight:var(--magritte-typography-label-2-regular-font-weight-v21-1-0);
|
|
418
418
|
line-height:var(--magritte-typography-label-2-regular-line-height-v21-1-0);
|
|
@@ -431,7 +431,7 @@
|
|
|
431
431
|
white-space:pre-wrap;
|
|
432
432
|
visibility:hidden;
|
|
433
433
|
}
|
|
434
|
-
.magritte-textarea-position-container___cEpbv_2-1-
|
|
434
|
+
.magritte-textarea-position-container___cEpbv_2-1-1{
|
|
435
435
|
display:inline-flex;
|
|
436
436
|
overflow:hidden;
|
|
437
437
|
position:relative;
|
|
@@ -443,57 +443,57 @@
|
|
|
443
443
|
box-sizing:border-box;
|
|
444
444
|
box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-field-v21-1-0);
|
|
445
445
|
}
|
|
446
|
-
.magritte-textarea-position-container___cEpbv_2-1-
|
|
446
|
+
.magritte-textarea-position-container___cEpbv_2-1-1::-webkit-resizer{
|
|
447
447
|
display:none;
|
|
448
448
|
}
|
|
449
|
-
.magritte-textarea-elevated___S0jk-_2-1-
|
|
449
|
+
.magritte-textarea-elevated___S0jk-_2-1-1 .magritte-textarea-position-container___cEpbv_2-1-1{
|
|
450
450
|
padding-top:calc(var(--magritte-typography-label-4-regular-line-height-v21-1-0) + 18px);
|
|
451
451
|
}
|
|
452
|
-
.magritte-textarea-limited___cU1Rg_2-1-
|
|
452
|
+
.magritte-textarea-limited___cU1Rg_2-1-1 .magritte-textarea-position-container___cEpbv_2-1-1{
|
|
453
453
|
padding-bottom:30px;
|
|
454
454
|
}
|
|
455
|
-
.magritte-min-height-48___jGf5Z_2-1-
|
|
455
|
+
.magritte-min-height-48___jGf5Z_2-1-1 .magritte-textarea-position-container___cEpbv_2-1-1{
|
|
456
456
|
padding-top:12px;
|
|
457
457
|
padding-bottom:12px;
|
|
458
458
|
min-height:48px;
|
|
459
459
|
}
|
|
460
|
-
.magritte-min-height-56___2yI39_2-1-
|
|
460
|
+
.magritte-min-height-56___2yI39_2-1-1 .magritte-textarea-position-container___cEpbv_2-1-1{
|
|
461
461
|
padding-top:16px;
|
|
462
462
|
padding-bottom:16px;
|
|
463
463
|
min-height:56px;
|
|
464
464
|
}
|
|
465
|
-
.magritte-min-height-default___zwRcq_2-1-
|
|
465
|
+
.magritte-min-height-default___zwRcq_2-1-1 .magritte-textarea-position-container___cEpbv_2-1-1{
|
|
466
466
|
min-height:112px;
|
|
467
467
|
}
|
|
468
|
-
.magritte-textarea-elevated___S0jk-_2-1-
|
|
468
|
+
.magritte-textarea-elevated___S0jk-_2-1-1.magritte-min-height-48___jGf5Z_2-1-1 .magritte-textarea-position-container___cEpbv_2-1-1{
|
|
469
469
|
padding-top:22px;
|
|
470
470
|
padding-bottom:4px;
|
|
471
471
|
}
|
|
472
|
-
.magritte-textarea-elevated___S0jk-_2-1-
|
|
472
|
+
.magritte-textarea-elevated___S0jk-_2-1-1.magritte-min-height-56___2yI39_2-1-1 .magritte-textarea-position-container___cEpbv_2-1-1{
|
|
473
473
|
padding-top:26px;
|
|
474
474
|
padding-bottom:8px;
|
|
475
475
|
}
|
|
476
|
-
.magritte-textarea-limited___cU1Rg_2-1-
|
|
476
|
+
.magritte-textarea-limited___cU1Rg_2-1-1.magritte-min-height-48___jGf5Z_2-1-1 .magritte-textarea-position-container___cEpbv_2-1-1{
|
|
477
477
|
padding-bottom:26px;
|
|
478
478
|
}
|
|
479
|
-
.magritte-textarea-limited___cU1Rg_2-1-
|
|
479
|
+
.magritte-textarea-limited___cU1Rg_2-1-1.magritte-min-height-56___2yI39_2-1-1 .magritte-textarea-position-container___cEpbv_2-1-1{
|
|
480
480
|
padding-bottom:30px;
|
|
481
481
|
}
|
|
482
|
-
.magritte-textarea-animation-timeout___zudbr_2-1-
|
|
483
|
-
.magritte-textarea-position-container___cEpbv_2-1-
|
|
482
|
+
.magritte-textarea-animation-timeout___zudbr_2-1-1,
|
|
483
|
+
.magritte-textarea-position-container___cEpbv_2-1-1{
|
|
484
484
|
transition-property:transform, color, font-size, letter-spacing;
|
|
485
485
|
transition-duration:var(--animation-100-duration);
|
|
486
486
|
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v21-1-0);
|
|
487
487
|
--animation-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v21-1-0);
|
|
488
488
|
}
|
|
489
|
-
.magritte-textarea-rigging-container___-1S6i_2-1-
|
|
489
|
+
.magritte-textarea-rigging-container___-1S6i_2-1-1{
|
|
490
490
|
position:absolute;
|
|
491
491
|
pointer-events:none;
|
|
492
492
|
left:16px;
|
|
493
493
|
right:16px;
|
|
494
494
|
top:0;
|
|
495
495
|
}
|
|
496
|
-
.magritte-textarea-label___sgTIH_2-1-
|
|
496
|
+
.magritte-textarea-label___sgTIH_2-1-1{
|
|
497
497
|
font-family:var(--magritte-typography-label-2-regular-font-family-v21-1-0);
|
|
498
498
|
font-weight:var(--magritte-typography-label-2-regular-font-weight-v21-1-0);
|
|
499
499
|
line-height:var(--magritte-typography-label-2-regular-line-height-v21-1-0);
|
|
@@ -513,13 +513,13 @@
|
|
|
513
513
|
transition-duration:var(--animation-100-duration);
|
|
514
514
|
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v21-1-0);
|
|
515
515
|
}
|
|
516
|
-
.magritte-min-height-48___jGf5Z_2-1-
|
|
516
|
+
.magritte-min-height-48___jGf5Z_2-1-1 .magritte-textarea-label___sgTIH_2-1-1{
|
|
517
517
|
padding-top:12px;
|
|
518
518
|
}
|
|
519
|
-
.magritte-min-height-56___2yI39_2-1-
|
|
519
|
+
.magritte-min-height-56___2yI39_2-1-1 .magritte-textarea-label___sgTIH_2-1-1{
|
|
520
520
|
padding-top:16px;
|
|
521
521
|
}
|
|
522
|
-
.magritte-textarea-label-elevated___0lxOI_2-1-
|
|
522
|
+
.magritte-textarea-label-elevated___0lxOI_2-1-1{
|
|
523
523
|
font-family:var(--magritte-typography-label-4-regular-font-family-v21-1-0);
|
|
524
524
|
font-weight:var(--magritte-typography-label-4-regular-font-weight-v21-1-0);
|
|
525
525
|
line-height:var(--magritte-typography-label-4-regular-line-height-v21-1-0);
|
|
@@ -532,13 +532,13 @@
|
|
|
532
532
|
color:var(--magritte-color-component-input-text-label-v21-1-0);
|
|
533
533
|
transform:translateY(calc(var(--elevated-placeholder-gap) - var(--magritte-typography-label-2-regular-line-height-v21-1-0) / 2));
|
|
534
534
|
}
|
|
535
|
-
.magritte-min-height-48___jGf5Z_2-1-
|
|
535
|
+
.magritte-min-height-48___jGf5Z_2-1-1 .magritte-textarea-label-elevated___0lxOI_2-1-1{
|
|
536
536
|
--elevated-placeholder-gap:3px;
|
|
537
537
|
}
|
|
538
|
-
.magritte-min-height-56___2yI39_2-1-
|
|
538
|
+
.magritte-min-height-56___2yI39_2-1-1 .magritte-textarea-label-elevated___0lxOI_2-1-1{
|
|
539
539
|
--elevated-placeholder-gap:3px;
|
|
540
540
|
}
|
|
541
|
-
.magritte-textarea-limit___IjPJy_2-1-
|
|
541
|
+
.magritte-textarea-limit___IjPJy_2-1-1{
|
|
542
542
|
position:absolute;
|
|
543
543
|
bottom:10px;
|
|
544
544
|
right:28px;
|
|
@@ -548,7 +548,7 @@
|
|
|
548
548
|
pointer-events:none;
|
|
549
549
|
--magritte-ui-text-color-override:var(--magritte-color-component-input-text-limit-v21-1-0);
|
|
550
550
|
}
|
|
551
|
-
.magritte-textarea-grip___iL7lq_2-1-
|
|
551
|
+
.magritte-textarea-grip___iL7lq_2-1-1{
|
|
552
552
|
position:absolute;
|
|
553
553
|
pointer-events:none;
|
|
554
554
|
display:inline-flex;
|
|
@@ -557,25 +557,25 @@
|
|
|
557
557
|
border-bottom-right-radius:12px;
|
|
558
558
|
--magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-grip-v21-1-0);
|
|
559
559
|
}
|
|
560
|
-
.magritte-textarea-grip-icon___YK-9w_2-1-
|
|
560
|
+
.magritte-textarea-grip-icon___YK-9w_2-1-1{
|
|
561
561
|
display:inline-flex;
|
|
562
562
|
z-index:1;
|
|
563
563
|
}
|
|
564
564
|
@media (prefers-reduced-motion: no-preference){
|
|
565
|
-
.magritte-textarea-limit-enter___CygGz_2-1-
|
|
565
|
+
.magritte-textarea-limit-enter___CygGz_2-1-1{
|
|
566
566
|
opacity:0;
|
|
567
567
|
}
|
|
568
|
-
.magritte-textarea-limit-exit___RMp-R_2-1-
|
|
569
|
-
.magritte-textarea-limit-enter-active___8vN-t_2-1-
|
|
568
|
+
.magritte-textarea-limit-exit___RMp-R_2-1-1,
|
|
569
|
+
.magritte-textarea-limit-enter-active___8vN-t_2-1-1{
|
|
570
570
|
opacity:1;
|
|
571
571
|
}
|
|
572
|
-
.magritte-textarea-limit-enter-active___8vN-t_2-1-
|
|
572
|
+
.magritte-textarea-limit-enter-active___8vN-t_2-1-1{
|
|
573
573
|
transition-property:opacity;
|
|
574
574
|
transition-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v21-1-0);
|
|
575
575
|
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v21-1-0);
|
|
576
576
|
--animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v21-1-0);
|
|
577
577
|
}
|
|
578
|
-
.magritte-textarea-limit-exit-active___a5kBr_2-1-
|
|
578
|
+
.magritte-textarea-limit-exit-active___a5kBr_2-1-1{
|
|
579
579
|
opacity:0;
|
|
580
580
|
transition-property:opacity;
|
|
581
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.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "68c895fa66c26a7ec73d11bfa884b960917073ec"
|
|
40
40
|
}
|