@hh.ru/magritte-ui-textarea 2.2.2 → 2.2.4

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 CHANGED
@@ -13,7 +13,7 @@ import { useInputAriaProps } from '@hh.ru/magritte-ui-input/useInputAriaProps';
13
13
  import { useFocus } from './useFocus.js';
14
14
  import { Text } from '@hh.ru/magritte-ui-typography';
15
15
 
16
- var styles = {"textarea":"magritte-textarea___ugvor_2-2-2","textarea-focused":"magritte-textarea-focused___eiGyC_2-2-2","textareaFocused":"magritte-textarea-focused___eiGyC_2-2-2","textarea-invalid":"magritte-textarea-invalid___iKOPh_2-2-2","textareaInvalid":"magritte-textarea-invalid___iKOPh_2-2-2","textarea-disabled":"magritte-textarea-disabled___XN0cg_2-2-2","textareaDisabled":"magritte-textarea-disabled___XN0cg_2-2-2","textarea-position-container-wrapper":"magritte-textarea-position-container-wrapper___4Dsui_2-2-2","textareaPositionContainerWrapper":"magritte-textarea-position-container-wrapper___4Dsui_2-2-2","textarea-position-container":"magritte-textarea-position-container___cEpbv_2-2-2","textareaPositionContainer":"magritte-textarea-position-container___cEpbv_2-2-2","native-element":"magritte-native-element___a0RAE_2-2-2","nativeElement":"magritte-native-element___a0RAE_2-2-2","textarea-label":"magritte-textarea-label___sgTIH_2-2-2","textareaLabel":"magritte-textarea-label___sgTIH_2-2-2","textarea-label-elevated":"magritte-textarea-label-elevated___0lxOI_2-2-2","textareaLabelElevated":"magritte-textarea-label-elevated___0lxOI_2-2-2","textarea-limit":"magritte-textarea-limit___IjPJy_2-2-2","textareaLimit":"magritte-textarea-limit___IjPJy_2-2-2","textarea-limit-error":"magritte-textarea-limit-error___vLvZU_2-2-2","textareaLimitError":"magritte-textarea-limit-error___vLvZU_2-2-2","min-height-48":"magritte-min-height-48___jGf5Z_2-2-2","minHeight48":"magritte-min-height-48___jGf5Z_2-2-2","min-height-56":"magritte-min-height-56___2yI39_2-2-2","minHeight56":"magritte-min-height-56___2yI39_2-2-2","min-height-default":"magritte-min-height-default___zwRcq_2-2-2","minHeightDefault":"magritte-min-height-default___zwRcq_2-2-2","textarea-limited":"magritte-textarea-limited___cU1Rg_2-2-2","textareaLimited":"magritte-textarea-limited___cU1Rg_2-2-2","textarea-layout-fill-both":"magritte-textarea-layout-fill-both___ERS-q_2-2-2","textareaLayoutFillBoth":"magritte-textarea-layout-fill-both___ERS-q_2-2-2","textarea-layout-fill-vertical":"magritte-textarea-layout-fill-vertical___HmNtp_2-2-2","textareaLayoutFillVertical":"magritte-textarea-layout-fill-vertical___HmNtp_2-2-2","textarea-layout-fill-horizontal":"magritte-textarea-layout-fill-horizontal___imBH2_2-2-2","textareaLayoutFillHorizontal":"magritte-textarea-layout-fill-horizontal___imBH2_2-2-2","textarea-wrapper":"magritte-textarea-wrapper___yD7G6_2-2-2","textareaWrapper":"magritte-textarea-wrapper___yD7G6_2-2-2","textarea-layout-hug":"magritte-textarea-layout-hug___tdCMY_2-2-2","textareaLayoutHug":"magritte-textarea-layout-hug___tdCMY_2-2-2","textarea-elevated":"magritte-textarea-elevated___S0jk-_2-2-2","textareaElevated":"magritte-textarea-elevated___S0jk-_2-2-2","textarea-animation-timeout":"magritte-textarea-animation-timeout___zudbr_2-2-2","textareaAnimationTimeout":"magritte-textarea-animation-timeout___zudbr_2-2-2","textarea-rigging-container":"magritte-textarea-rigging-container___-1S6i_2-2-2","textareaRiggingContainer":"magritte-textarea-rigging-container___-1S6i_2-2-2","textarea-grip":"magritte-textarea-grip___iL7lq_2-2-2","textareaGrip":"magritte-textarea-grip___iL7lq_2-2-2","textarea-grip-icon":"magritte-textarea-grip-icon___YK-9w_2-2-2","textareaGripIcon":"magritte-textarea-grip-icon___YK-9w_2-2-2","textarea-limit-enter":"magritte-textarea-limit-enter___CygGz_2-2-2","textareaLimitEnter":"magritte-textarea-limit-enter___CygGz_2-2-2","textarea-limit-exit":"magritte-textarea-limit-exit___RMp-R_2-2-2","textareaLimitExit":"magritte-textarea-limit-exit___RMp-R_2-2-2","textarea-limit-enter-active":"magritte-textarea-limit-enter-active___8vN-t_2-2-2","textareaLimitEnterActive":"magritte-textarea-limit-enter-active___8vN-t_2-2-2","textarea-limit-exit-active":"magritte-textarea-limit-exit-active___a5kBr_2-2-2","textareaLimitExitActive":"magritte-textarea-limit-exit-active___a5kBr_2-2-2"};
16
+ var styles = {"textarea":"magritte-textarea___ugvor_2-2-4","textarea-focused":"magritte-textarea-focused___eiGyC_2-2-4","textareaFocused":"magritte-textarea-focused___eiGyC_2-2-4","textarea-invalid":"magritte-textarea-invalid___iKOPh_2-2-4","textareaInvalid":"magritte-textarea-invalid___iKOPh_2-2-4","textarea-disabled":"magritte-textarea-disabled___XN0cg_2-2-4","textareaDisabled":"magritte-textarea-disabled___XN0cg_2-2-4","textarea-position-container-wrapper":"magritte-textarea-position-container-wrapper___4Dsui_2-2-4","textareaPositionContainerWrapper":"magritte-textarea-position-container-wrapper___4Dsui_2-2-4","textarea-position-container":"magritte-textarea-position-container___cEpbv_2-2-4","textareaPositionContainer":"magritte-textarea-position-container___cEpbv_2-2-4","native-element":"magritte-native-element___a0RAE_2-2-4","nativeElement":"magritte-native-element___a0RAE_2-2-4","textarea-label":"magritte-textarea-label___sgTIH_2-2-4","textareaLabel":"magritte-textarea-label___sgTIH_2-2-4","textarea-label-elevated":"magritte-textarea-label-elevated___0lxOI_2-2-4","textareaLabelElevated":"magritte-textarea-label-elevated___0lxOI_2-2-4","textarea-limit":"magritte-textarea-limit___IjPJy_2-2-4","textareaLimit":"magritte-textarea-limit___IjPJy_2-2-4","textarea-limit-error":"magritte-textarea-limit-error___vLvZU_2-2-4","textareaLimitError":"magritte-textarea-limit-error___vLvZU_2-2-4","min-height-48":"magritte-min-height-48___jGf5Z_2-2-4","minHeight48":"magritte-min-height-48___jGf5Z_2-2-4","min-height-56":"magritte-min-height-56___2yI39_2-2-4","minHeight56":"magritte-min-height-56___2yI39_2-2-4","min-height-default":"magritte-min-height-default___zwRcq_2-2-4","minHeightDefault":"magritte-min-height-default___zwRcq_2-2-4","textarea-limited":"magritte-textarea-limited___cU1Rg_2-2-4","textareaLimited":"magritte-textarea-limited___cU1Rg_2-2-4","textarea-layout-fill-both":"magritte-textarea-layout-fill-both___ERS-q_2-2-4","textareaLayoutFillBoth":"magritte-textarea-layout-fill-both___ERS-q_2-2-4","textarea-layout-fill-vertical":"magritte-textarea-layout-fill-vertical___HmNtp_2-2-4","textareaLayoutFillVertical":"magritte-textarea-layout-fill-vertical___HmNtp_2-2-4","textarea-layout-fill-horizontal":"magritte-textarea-layout-fill-horizontal___imBH2_2-2-4","textareaLayoutFillHorizontal":"magritte-textarea-layout-fill-horizontal___imBH2_2-2-4","textarea-wrapper":"magritte-textarea-wrapper___yD7G6_2-2-4","textareaWrapper":"magritte-textarea-wrapper___yD7G6_2-2-4","textarea-layout-hug":"magritte-textarea-layout-hug___tdCMY_2-2-4","textareaLayoutHug":"magritte-textarea-layout-hug___tdCMY_2-2-4","textarea-elevated":"magritte-textarea-elevated___S0jk-_2-2-4","textareaElevated":"magritte-textarea-elevated___S0jk-_2-2-4","textarea-animation-timeout":"magritte-textarea-animation-timeout___zudbr_2-2-4","textareaAnimationTimeout":"magritte-textarea-animation-timeout___zudbr_2-2-4","textarea-rigging-container":"magritte-textarea-rigging-container___-1S6i_2-2-4","textareaRiggingContainer":"magritte-textarea-rigging-container___-1S6i_2-2-4","textarea-grip":"magritte-textarea-grip___iL7lq_2-2-4","textareaGrip":"magritte-textarea-grip___iL7lq_2-2-4","textarea-grip-icon":"magritte-textarea-grip-icon___YK-9w_2-2-4","textareaGripIcon":"magritte-textarea-grip-icon___YK-9w_2-2-4","textarea-limit-enter":"magritte-textarea-limit-enter___CygGz_2-2-4","textareaLimitEnter":"magritte-textarea-limit-enter___CygGz_2-2-4","textarea-limit-exit":"magritte-textarea-limit-exit___RMp-R_2-2-4","textareaLimitExit":"magritte-textarea-limit-exit___RMp-R_2-2-4","textarea-limit-enter-active":"magritte-textarea-limit-enter-active___8vN-t_2-2-4","textareaLimitEnterActive":"magritte-textarea-limit-enter-active___8vN-t_2-2-4","textarea-limit-exit-active":"magritte-textarea-limit-exit-active___a5kBr_2-2-4","textareaLimitExitActive":"magritte-textarea-limit-exit-active___a5kBr_2-2-4"};
17
17
 
18
18
  const MIN_HEIGHT_WITH_VISIBLE_LIMIT = 112;
19
19
  const findFlexContainer = (element) => {
@@ -89,7 +89,7 @@ const TextAreaComponent = ({ onChange, onFocus, onBlur, onValidate, value, place
89
89
  const invalid = !isFocused && value.length > maxLength;
90
90
  setInternalInvalid(invalid);
91
91
  if (previousInvalid.current !== invalid) {
92
- onValidate({ invalidLimit: invalid });
92
+ onValidate?.({ invalidLimit: invalid });
93
93
  }
94
94
  previousInvalid.current = invalid;
95
95
  }
package/TextArea.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.js","sources":["../src/TextArea.tsx"],"sourcesContent":["import { forwardRef, useCallback, useContext, useEffect, useId, useLayoutEffect, useRef, useState } 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 { BottomSheetContext } from '@hh.ru/magritte-ui-bottom-sheet';\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 findFlexContainer = (element: HTMLElement | null): HTMLElement | null => {\n if (!element) {\n return null;\n }\n\n let parentElement = element.parentElement;\n while (parentElement !== null) {\n const { display } = window.getComputedStyle(parentElement);\n if (display.includes('flex')) {\n return parentElement;\n }\n parentElement = parentElement.parentElement;\n }\n\n return null;\n};\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<React.TextareaHTMLAttributes<HTMLTextAreaElement>, keyof ControlledTextAreaProps>,\n ref: React.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 const [maxAllowedHeight, setMaxAllowedHeight] = useState<number | null>(null);\n const bottomSheetContext = useContext(BottomSheetContext);\n const wrapperRef = useRef(null);\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 const flexContainerRef = useRef<HTMLElement | null>(null);\n useEffect(() => {\n flexContainerRef.current = findFlexContainer(wrapperRef.current);\n }, [wrapperRef.current]); // eslint-disable-line disable-autofix/react-hooks/exhaustive-deps\n\n const recalcMaxAllowedHeight = useCallback(() => {\n if (bottomSheetContext !== null && resizableDivRef.current !== null && flexContainerRef.current !== null) {\n const lastFlexItem = flexContainerRef.current.childNodes[\n flexContainerRef.current.childNodes.length - 1\n ] as HTMLElement;\n const takenFlexSpace =\n lastFlexItem.offsetTop + lastFlexItem.offsetHeight - resizableDivRef.current.offsetHeight;\n const availableFlexSpace = bottomSheetContext.visibleContentHeight - takenFlexSpace;\n setMaxAllowedHeight(bottomSheetContext.remainingAvailableHeight + availableFlexSpace);\n }\n }, [bottomSheetContext, setMaxAllowedHeight]);\n\n useEffect(() => {\n if (layout === 'hug' && bottomSheetContext !== null) {\n bottomSheetContext.subscribeToKeyboardResize(recalcMaxAllowedHeight);\n }\n }, [layout, bottomSheetContext, recalcMaxAllowedHeight]);\n\n useLayoutEffect(\n () => {\n if (layout === 'hug') {\n recalcMaxAllowedHeight();\n }\n },\n // value нужен в зависимостях, чтобы пересчитывать размер после ввода каждого символа\n [layout, recalcMaxAllowedHeight, 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 ref={wrapperRef}\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={{\n maxHeight: maxAllowedHeight !== null ? `${maxAllowedHeight}px` : undefined,\n resize: currentResizeValue,\n }}\n ref={resizableDivRef}\n >\n <div\n className={styles.textareaWrapper}\n data-qa=\"textarea-native-wrapper\"\n data-replicated-value={\n layout === 'hug' && (bottomSheetContext === null || maxAllowedHeight !== null) ? value : ''\n }\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":";;;;;;;;;;;;;;;;AAiBA,MAAM,6BAA6B,GAAG,GAAG,CAAC;AAE1C,MAAM,iBAAiB,GAAG,CAAC,OAA2B,KAAwB;IAC1E,IAAI,CAAC,OAAO,EAAE;AACV,QAAA,OAAO,IAAI,CAAC;KACf;AAED,IAAA,IAAI,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;AAC1C,IAAA,OAAO,aAAa,KAAK,IAAI,EAAE;QAC3B,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;AAC3D,QAAA,IAAI,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;AAC1B,YAAA,OAAO,aAAa,CAAC;SACxB;AACD,QAAA,aAAa,GAAG,aAAa,CAAC,aAAa,CAAC;KAC/C;AAED,IAAA,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC;AAEF,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,EACmG,EACnH,GAA4C,KAC5C;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,C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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, useCallback, useContext, useEffect, useId, useLayoutEffect, useRef, useState } 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 { BottomSheetContext } from '@hh.ru/magritte-ui-bottom-sheet';\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 findFlexContainer = (element: HTMLElement | null): HTMLElement | null => {\n if (!element) {\n return null;\n }\n\n let parentElement = element.parentElement;\n while (parentElement !== null) {\n const { display } = window.getComputedStyle(parentElement);\n if (display.includes('flex')) {\n return parentElement;\n }\n parentElement = parentElement.parentElement;\n }\n\n return null;\n};\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<React.TextareaHTMLAttributes<HTMLTextAreaElement>, keyof ControlledTextAreaProps>,\n ref: React.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 const [maxAllowedHeight, setMaxAllowedHeight] = useState<number | null>(null);\n const bottomSheetContext = useContext(BottomSheetContext);\n const wrapperRef = useRef(null);\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 const flexContainerRef = useRef<HTMLElement | null>(null);\n useEffect(() => {\n flexContainerRef.current = findFlexContainer(wrapperRef.current);\n }, [wrapperRef.current]); // eslint-disable-line disable-autofix/react-hooks/exhaustive-deps\n\n const recalcMaxAllowedHeight = useCallback(() => {\n if (bottomSheetContext !== null && resizableDivRef.current !== null && flexContainerRef.current !== null) {\n const lastFlexItem = flexContainerRef.current.childNodes[\n flexContainerRef.current.childNodes.length - 1\n ] as HTMLElement;\n const takenFlexSpace =\n lastFlexItem.offsetTop + lastFlexItem.offsetHeight - resizableDivRef.current.offsetHeight;\n const availableFlexSpace = bottomSheetContext.visibleContentHeight - takenFlexSpace;\n setMaxAllowedHeight(bottomSheetContext.remainingAvailableHeight + availableFlexSpace);\n }\n }, [bottomSheetContext, setMaxAllowedHeight]);\n\n useEffect(() => {\n if (layout === 'hug' && bottomSheetContext !== null) {\n bottomSheetContext.subscribeToKeyboardResize(recalcMaxAllowedHeight);\n }\n }, [layout, bottomSheetContext, recalcMaxAllowedHeight]);\n\n useLayoutEffect(\n () => {\n if (layout === 'hug') {\n recalcMaxAllowedHeight();\n }\n },\n // value нужен в зависимостях, чтобы пересчитывать размер после ввода каждого символа\n [layout, recalcMaxAllowedHeight, 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 ref={wrapperRef}\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={{\n maxHeight: maxAllowedHeight !== null ? `${maxAllowedHeight}px` : undefined,\n resize: currentResizeValue,\n }}\n ref={resizableDivRef}\n >\n <div\n className={styles.textareaWrapper}\n data-qa=\"textarea-native-wrapper\"\n data-replicated-value={\n layout === 'hug' && (bottomSheetContext === null || maxAllowedHeight !== null) ? value : ''\n }\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":";;;;;;;;;;;;;;;;AAiBA,MAAM,6BAA6B,GAAG,GAAG,CAAC;AAE1C,MAAM,iBAAiB,GAAG,CAAC,OAA2B,KAAwB;IAC1E,IAAI,CAAC,OAAO,EAAE;AACV,QAAA,OAAO,IAAI,CAAC;KACf;AAED,IAAA,IAAI,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;AAC1C,IAAA,OAAO,aAAa,KAAK,IAAI,EAAE;QAC3B,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;AAC3D,QAAA,IAAI,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;AAC1B,YAAA,OAAO,aAAa,CAAC;SACxB;AACD,QAAA,aAAa,GAAG,aAAa,CAAC,aAAa,CAAC;KAC/C;AAED,IAAA,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC;AAEF,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,EACmG,EACnH,GAA4C,KAC5C;IACA,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,aAAa,EAAE,CAAC;IACtC,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CA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AC1BC,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;;;;"}
package/index.css CHANGED
@@ -1,326 +1,367 @@
1
1
  :root{
2
- --magritte-color-text-primary-v22-0-0:#000000;
3
- --magritte-color-component-input-stroke-state-field-hovered-v22-0-0:#CCD5DF;
4
- --magritte-color-component-input-stroke-state-field-focused-v22-0-0:#0070ff;
5
- --magritte-color-component-input-stroke-state-accent-focused-accessible-v22-0-0:#0070ff7a;
6
- --magritte-color-component-input-stroke-state-field-invalid-v22-0-0:#ff4d3a;
7
- --magritte-color-component-input-stroke-state-negative-focused-accessible-v22-0-0:#ff4d3a7a;
8
- --magritte-color-component-input-stroke-state-field-disabled-v22-0-0:#EEF1F7;
9
- --magritte-color-component-input-background-field-v22-0-0:#ffffff;
10
- --magritte-color-component-input-background-state-field-hovered-v22-0-0:#ffffff;
11
- --magritte-color-component-input-background-state-field-focused-v22-0-0:#ffffff;
12
- --magritte-color-component-input-background-state-field-invalid-v22-0-0:#ffffff;
13
- --magritte-color-component-input-background-state-field-disabled-v22-0-0:#F4F6FB;
14
- --magritte-color-component-input-stroke-field-v22-0-0:#DCE3EB;
15
- --magritte-color-component-input-text-state-content-disabled-v22-0-0:#AABBCA;
16
- --magritte-color-component-input-text-state-label-disabled-v22-0-0:#AABBCA;
17
- --magritte-color-component-input-text-state-placeholder-disabled-v22-0-0:#AABBCA;
18
- --magritte-color-component-input-text-state-limit-disabled-v22-0-0:#AABBCA;
19
- --magritte-color-component-input-text-state-description-disabled-v22-0-0:#AABBCA;
20
- --magritte-color-component-input-text-state-content-hovered-v22-0-0:#000000;
21
- --magritte-color-component-input-text-state-content-focused-v22-0-0:#000000;
22
- --magritte-color-component-input-text-state-content-invalid-v22-0-0:#000000;
23
- --magritte-color-component-input-text-state-label-hovered-v22-0-0:#768694;
24
- --magritte-color-component-input-text-state-label-focused-v22-0-0:#768694;
25
- --magritte-color-component-input-text-state-label-invalid-v22-0-0:#768694;
26
- --magritte-color-component-input-text-state-placeholder-hovered-v22-0-0:#768694;
27
- --magritte-color-component-input-text-state-limit-hovered-v22-0-0:#768694;
28
- --magritte-color-component-input-text-state-placeholder-focused-v22-0-0:#AABBCA;
29
- --magritte-color-component-input-text-state-limit-focused-v22-0-0:#768694;
30
- --magritte-color-component-input-text-state-placeholder-invalid-v22-0-0:#AABBCA;
31
- --magritte-color-component-input-text-state-limit-invalid-v22-0-0:#ff4d3a;
32
- --magritte-color-component-input-text-state-description-hovered-v22-0-0:#768694;
33
- --magritte-color-component-input-text-state-description-focused-v22-0-0:#768694;
34
- --magritte-color-component-input-text-state-description-invalid-v22-0-0:#ff4d3a;
35
- --magritte-color-component-input-icon-grip-v22-0-0:#AABBCA;
36
- --magritte-color-component-input-text-content-v22-0-0:#000000;
37
- --magritte-color-component-input-text-label-v22-0-0:#768694;
38
- --magritte-color-component-input-text-placeholder-v22-0-0:#AABBCA;
39
- --magritte-color-component-input-text-limit-v22-0-0:#AABBCA;
2
+ --magritte-color-text-primary-v22-1-0:#000000;
3
+ --magritte-color-component-input-stroke-state-field-hovered-v22-1-0:#CCD5DF;
4
+ --magritte-color-component-input-stroke-state-field-focused-v22-1-0:#0070ff;
5
+ --magritte-color-component-input-stroke-state-accent-focused-accessible-v22-1-0:#0070ff7a;
6
+ --magritte-color-component-input-stroke-state-field-invalid-v22-1-0:#ff4d3a;
7
+ --magritte-color-component-input-stroke-state-negative-focused-accessible-v22-1-0:#ff4d3a7a;
8
+ --magritte-color-component-input-stroke-state-field-disabled-v22-1-0:#EEF1F7;
9
+ --magritte-color-component-input-background-field-v22-1-0:#ffffff;
10
+ --magritte-color-component-input-background-state-field-hovered-v22-1-0:#ffffff;
11
+ --magritte-color-component-input-background-state-field-focused-v22-1-0:#ffffff;
12
+ --magritte-color-component-input-background-state-field-invalid-v22-1-0:#ffffff;
13
+ --magritte-color-component-input-background-state-field-disabled-v22-1-0:#F4F6FB;
14
+ --magritte-color-component-input-stroke-field-v22-1-0:#DCE3EB;
15
+ --magritte-color-component-input-text-state-content-disabled-v22-1-0:#AABBCA;
16
+ --magritte-color-component-input-text-state-label-disabled-v22-1-0:#AABBCA;
17
+ --magritte-color-component-input-text-state-placeholder-disabled-v22-1-0:#AABBCA;
18
+ --magritte-color-component-input-text-state-limit-disabled-v22-1-0:#AABBCA;
19
+ --magritte-color-component-input-text-state-description-disabled-v22-1-0:#AABBCA;
20
+ --magritte-color-component-input-text-state-content-hovered-v22-1-0:#000000;
21
+ --magritte-color-component-input-text-state-content-focused-v22-1-0:#000000;
22
+ --magritte-color-component-input-text-state-content-invalid-v22-1-0:#000000;
23
+ --magritte-color-component-input-text-state-label-hovered-v22-1-0:#768694;
24
+ --magritte-color-component-input-text-state-label-focused-v22-1-0:#768694;
25
+ --magritte-color-component-input-text-state-label-invalid-v22-1-0:#768694;
26
+ --magritte-color-component-input-text-state-placeholder-hovered-v22-1-0:#768694;
27
+ --magritte-color-component-input-text-state-limit-hovered-v22-1-0:#768694;
28
+ --magritte-color-component-input-text-state-placeholder-focused-v22-1-0:#AABBCA;
29
+ --magritte-color-component-input-text-state-limit-focused-v22-1-0:#768694;
30
+ --magritte-color-component-input-text-state-placeholder-invalid-v22-1-0:#AABBCA;
31
+ --magritte-color-component-input-text-state-limit-invalid-v22-1-0:#ff4d3a;
32
+ --magritte-color-component-input-text-state-description-hovered-v22-1-0:#768694;
33
+ --magritte-color-component-input-text-state-description-focused-v22-1-0:#768694;
34
+ --magritte-color-component-input-text-state-description-invalid-v22-1-0:#ff4d3a;
35
+ --magritte-color-component-input-icon-grip-v22-1-0:#AABBCA;
36
+ --magritte-color-component-input-text-content-v22-1-0:#000000;
37
+ --magritte-color-component-input-text-label-v22-1-0:#768694;
38
+ --magritte-color-component-input-text-placeholder-v22-1-0:#AABBCA;
39
+ --magritte-color-component-input-text-limit-v22-1-0:#AABBCA;
40
40
  }
41
41
  :root{
42
- --magritte-typography-label-2-regular-font-family-v22-0-0:"hh sans";
43
- --magritte-typography-label-2-regular-font-weight-v22-0-0:400;
44
- --magritte-typography-label-2-regular-line-height-v22-0-0:22px;
45
- --magritte-typography-label-2-regular-font-size-v22-0-0:16px;
46
- --magritte-typography-label-2-regular-letter-spacing-v22-0-0:0em;
47
- --magritte-typography-label-2-regular-text-indent-v22-0-0:0px;
48
- --magritte-typography-label-2-regular-text-transform-v22-0-0:none;
49
- --magritte-typography-label-2-regular-text-decoration-v22-0-0:none;
50
- --magritte-typography-label-4-regular-font-family-v22-0-0:"hh sans";
51
- --magritte-typography-label-4-regular-font-weight-v22-0-0:400;
52
- --magritte-typography-label-4-regular-line-height-v22-0-0:18px;
53
- --magritte-typography-label-4-regular-font-size-v22-0-0:12px;
54
- --magritte-typography-label-4-regular-letter-spacing-v22-0-0:0.01em;
55
- --magritte-typography-label-4-regular-text-indent-v22-0-0:0px;
56
- --magritte-typography-label-4-regular-text-transform-v22-0-0:none;
57
- --magritte-typography-label-4-regular-text-decoration-v22-0-0:none;
58
- --magritte-semantic-animation-ease-in-out-100-timing-function-v22-0-0:cubic-bezier(0.25, 0.1, 0.25, 1);
59
- --magritte-semantic-animation-ease-in-out-100-duration-v22-0-0:100ms;
60
- --magritte-semantic-animation-ease-in-out-200-timing-function-v22-0-0:cubic-bezier(0.25, 0.1, 0.25, 1);
61
- --magritte-semantic-animation-ease-in-out-300-duration-v22-0-0:300ms;
42
+ --magritte-typography-label-2-regular-font-family-v22-1-0:"hh sans";
43
+ --magritte-typography-label-2-regular-font-weight-v22-1-0:400;
44
+ --magritte-typography-label-2-regular-line-height-v22-1-0:22px;
45
+ --magritte-typography-label-2-regular-font-size-v22-1-0:16px;
46
+ --magritte-typography-label-2-regular-letter-spacing-v22-1-0:0em;
47
+ --magritte-typography-label-2-regular-text-indent-v22-1-0:0px;
48
+ --magritte-typography-label-2-regular-text-transform-v22-1-0:none;
49
+ --magritte-typography-label-2-regular-text-decoration-v22-1-0:none;
50
+ --magritte-typography-label-4-regular-font-family-v22-1-0:"hh sans";
51
+ --magritte-typography-label-4-regular-font-weight-v22-1-0:400;
52
+ --magritte-typography-label-4-regular-line-height-v22-1-0:18px;
53
+ --magritte-typography-label-4-regular-font-size-v22-1-0:12px;
54
+ --magritte-typography-label-4-regular-letter-spacing-v22-1-0:0.01em;
55
+ --magritte-typography-label-4-regular-text-indent-v22-1-0:0px;
56
+ --magritte-typography-label-4-regular-text-transform-v22-1-0:none;
57
+ --magritte-typography-label-4-regular-text-decoration-v22-1-0:none;
58
+ --magritte-semantic-animation-ease-in-out-100-timing-function-v22-1-0:cubic-bezier(0.25, 0.1, 0.25, 1);
59
+ --magritte-semantic-animation-ease-in-out-100-duration-v22-1-0:100ms;
60
+ --magritte-semantic-animation-ease-in-out-200-timing-function-v22-1-0:cubic-bezier(0.25, 0.1, 0.25, 1);
61
+ --magritte-semantic-animation-ease-in-out-300-duration-v22-1-0:300ms;
62
62
  }
63
63
  .magritte-night-theme{
64
- --magritte-color-text-primary-v22-0-0:#ffffff;
65
- --magritte-color-component-input-stroke-state-field-hovered-v22-0-0:#3B3B3B;
66
- --magritte-color-component-input-stroke-state-field-focused-v22-0-0:#0070ff;
67
- --magritte-color-component-input-stroke-state-accent-focused-accessible-v22-0-0:#0070ff7a;
68
- --magritte-color-component-input-stroke-state-field-invalid-v22-0-0:#ff4d3a;
69
- --magritte-color-component-input-stroke-state-negative-focused-accessible-v22-0-0:#ff4d3a7a;
70
- --magritte-color-component-input-stroke-state-field-disabled-v22-0-0:#111;
71
- --magritte-color-component-input-background-field-v22-0-0:#111;
72
- --magritte-color-component-input-background-state-field-hovered-v22-0-0:#111;
73
- --magritte-color-component-input-background-state-field-focused-v22-0-0:#111;
74
- --magritte-color-component-input-background-state-field-invalid-v22-0-0:#111;
75
- --magritte-color-component-input-background-state-field-disabled-v22-0-0:#111;
76
- --magritte-color-component-input-stroke-field-v22-0-0:#303030;
77
- --magritte-color-component-input-text-content-v22-0-0:#ffffff;
78
- --magritte-color-component-input-text-label-v22-0-0:#919191;
79
- --magritte-color-component-input-text-placeholder-v22-0-0:#535353;
80
- --magritte-color-component-input-text-limit-v22-0-0:#535353;
81
- --magritte-color-component-input-text-state-content-disabled-v22-0-0:#474747;
82
- --magritte-color-component-input-text-state-label-disabled-v22-0-0:#474747;
83
- --magritte-color-component-input-text-state-placeholder-disabled-v22-0-0:#474747;
84
- --magritte-color-component-input-text-state-limit-disabled-v22-0-0:#474747;
85
- --magritte-color-component-input-text-state-description-disabled-v22-0-0:#535353;
86
- --magritte-color-component-input-text-state-content-hovered-v22-0-0:#ffffff;
87
- --magritte-color-component-input-text-state-content-focused-v22-0-0:#ffffff;
88
- --magritte-color-component-input-text-state-content-invalid-v22-0-0:#ffffff;
89
- --magritte-color-component-input-text-state-label-hovered-v22-0-0:#919191;
90
- --magritte-color-component-input-text-state-label-focused-v22-0-0:#919191;
91
- --magritte-color-component-input-text-state-label-invalid-v22-0-0:#919191;
92
- --magritte-color-component-input-text-state-placeholder-hovered-v22-0-0:#5E5E5E;
93
- --magritte-color-component-input-text-state-limit-hovered-v22-0-0:#535353;
94
- --magritte-color-component-input-text-state-placeholder-focused-v22-0-0:#535353;
95
- --magritte-color-component-input-text-state-limit-focused-v22-0-0:#535353;
96
- --magritte-color-component-input-text-state-placeholder-invalid-v22-0-0:#535353;
97
- --magritte-color-component-input-text-state-limit-invalid-v22-0-0:#ff4d3a;
98
- --magritte-color-component-input-text-state-description-hovered-v22-0-0:#535353;
99
- --magritte-color-component-input-text-state-description-focused-v22-0-0:#535353;
100
- --magritte-color-component-input-text-state-description-invalid-v22-0-0:#ff4d3a;
101
- --magritte-color-component-input-icon-grip-v22-0-0:#535353;
102
- }
103
- .magritte-textarea___ugvor_2-2-2{
64
+ --magritte-color-text-primary-v22-1-0:#ffffff;
65
+ --magritte-color-component-input-stroke-state-field-hovered-v22-1-0:#3B3B3B;
66
+ --magritte-color-component-input-stroke-state-field-focused-v22-1-0:#0070ff;
67
+ --magritte-color-component-input-stroke-state-accent-focused-accessible-v22-1-0:#0070ff7a;
68
+ --magritte-color-component-input-stroke-state-field-invalid-v22-1-0:#ff4d3a;
69
+ --magritte-color-component-input-stroke-state-negative-focused-accessible-v22-1-0:#ff4d3a7a;
70
+ --magritte-color-component-input-stroke-state-field-disabled-v22-1-0:#111;
71
+ --magritte-color-component-input-background-field-v22-1-0:#111;
72
+ --magritte-color-component-input-background-state-field-hovered-v22-1-0:#111;
73
+ --magritte-color-component-input-background-state-field-focused-v22-1-0:#111;
74
+ --magritte-color-component-input-background-state-field-invalid-v22-1-0:#111;
75
+ --magritte-color-component-input-background-state-field-disabled-v22-1-0:#111;
76
+ --magritte-color-component-input-stroke-field-v22-1-0:#303030;
77
+ --magritte-color-component-input-text-content-v22-1-0:#ffffff;
78
+ --magritte-color-component-input-text-label-v22-1-0:#919191;
79
+ --magritte-color-component-input-text-placeholder-v22-1-0:#535353;
80
+ --magritte-color-component-input-text-limit-v22-1-0:#535353;
81
+ --magritte-color-component-input-text-state-content-disabled-v22-1-0:#474747;
82
+ --magritte-color-component-input-text-state-label-disabled-v22-1-0:#474747;
83
+ --magritte-color-component-input-text-state-placeholder-disabled-v22-1-0:#474747;
84
+ --magritte-color-component-input-text-state-limit-disabled-v22-1-0:#474747;
85
+ --magritte-color-component-input-text-state-description-disabled-v22-1-0:#535353;
86
+ --magritte-color-component-input-text-state-content-hovered-v22-1-0:#ffffff;
87
+ --magritte-color-component-input-text-state-content-focused-v22-1-0:#ffffff;
88
+ --magritte-color-component-input-text-state-content-invalid-v22-1-0:#ffffff;
89
+ --magritte-color-component-input-text-state-label-hovered-v22-1-0:#919191;
90
+ --magritte-color-component-input-text-state-label-focused-v22-1-0:#919191;
91
+ --magritte-color-component-input-text-state-label-invalid-v22-1-0:#919191;
92
+ --magritte-color-component-input-text-state-placeholder-hovered-v22-1-0:#5E5E5E;
93
+ --magritte-color-component-input-text-state-limit-hovered-v22-1-0:#535353;
94
+ --magritte-color-component-input-text-state-placeholder-focused-v22-1-0:#535353;
95
+ --magritte-color-component-input-text-state-limit-focused-v22-1-0:#535353;
96
+ --magritte-color-component-input-text-state-placeholder-invalid-v22-1-0:#535353;
97
+ --magritte-color-component-input-text-state-limit-invalid-v22-1-0:#ff4d3a;
98
+ --magritte-color-component-input-text-state-description-hovered-v22-1-0:#535353;
99
+ --magritte-color-component-input-text-state-description-focused-v22-1-0:#535353;
100
+ --magritte-color-component-input-text-state-description-invalid-v22-1-0:#ff4d3a;
101
+ --magritte-color-component-input-icon-grip-v22-1-0:#535353;
102
+ }
103
+ .magritte-zp-day-theme{
104
+ --magritte-color-text-primary-v22-1-0:#000000;
105
+ --magritte-color-component-input-stroke-state-accent-focused-accessible-v22-1-0:#0070ff7a;
106
+ --magritte-color-component-input-stroke-state-negative-focused-accessible-v22-1-0:#ff4d3a7a;
107
+ --magritte-color-component-input-stroke-state-field-hovered-v22-1-0:#CCD5DF;
108
+ --magritte-color-component-input-stroke-state-field-focused-v22-1-0:#7195AF;
109
+ --magritte-color-component-input-stroke-state-field-invalid-v22-1-0:#ff4d3a;
110
+ --magritte-color-component-input-stroke-state-field-disabled-v22-1-0:#EEF1F7;
111
+ --magritte-color-component-input-background-field-v22-1-0:#ffffff;
112
+ --magritte-color-component-input-background-state-field-hovered-v22-1-0:#ffffff;
113
+ --magritte-color-component-input-background-state-field-focused-v22-1-0:#ffffff;
114
+ --magritte-color-component-input-background-state-field-invalid-v22-1-0:#ffffff;
115
+ --magritte-color-component-input-background-state-field-disabled-v22-1-0:#F4F6FB;
116
+ --magritte-color-component-input-stroke-field-v22-1-0:#DCE3EB;
117
+ --magritte-color-component-input-text-content-v22-1-0:#000000;
118
+ --magritte-color-component-input-text-label-v22-1-0:#768694;
119
+ --magritte-color-component-input-text-placeholder-v22-1-0:#AABBCA;
120
+ --magritte-color-component-input-text-limit-v22-1-0:#AABBCA;
121
+ --magritte-color-component-input-text-state-content-disabled-v22-1-0:#AABBCA;
122
+ --magritte-color-component-input-text-state-label-disabled-v22-1-0:#AABBCA;
123
+ --magritte-color-component-input-text-state-placeholder-disabled-v22-1-0:#AABBCA;
124
+ --magritte-color-component-input-text-state-limit-disabled-v22-1-0:#AABBCA;
125
+ --magritte-color-component-input-text-state-description-disabled-v22-1-0:#AABBCA;
126
+ --magritte-color-component-input-text-state-content-hovered-v22-1-0:#000000;
127
+ --magritte-color-component-input-text-state-content-focused-v22-1-0:#000000;
128
+ --magritte-color-component-input-text-state-content-invalid-v22-1-0:#000000;
129
+ --magritte-color-component-input-text-state-label-hovered-v22-1-0:#768694;
130
+ --magritte-color-component-input-text-state-label-focused-v22-1-0:#768694;
131
+ --magritte-color-component-input-text-state-label-invalid-v22-1-0:#768694;
132
+ --magritte-color-component-input-text-state-placeholder-hovered-v22-1-0:#768694;
133
+ --magritte-color-component-input-text-state-limit-hovered-v22-1-0:#768694;
134
+ --magritte-color-component-input-text-state-placeholder-focused-v22-1-0:#AABBCA;
135
+ --magritte-color-component-input-text-state-limit-focused-v22-1-0:#768694;
136
+ --magritte-color-component-input-text-state-placeholder-invalid-v22-1-0:#AABBCA;
137
+ --magritte-color-component-input-text-state-limit-invalid-v22-1-0:#ff4d3a;
138
+ --magritte-color-component-input-text-state-description-hovered-v22-1-0:#768694;
139
+ --magritte-color-component-input-text-state-description-focused-v22-1-0:#768694;
140
+ --magritte-color-component-input-text-state-description-invalid-v22-1-0:#ff4d3a;
141
+ --magritte-color-component-input-icon-grip-v22-1-0:#AABBCA;
142
+ }
143
+ .magritte-textarea___ugvor_2-2-4{
104
144
  display:inline-flex;
105
145
  flex-flow:column;
106
- --animation-100-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v22-0-0);
107
- --animation-300-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v22-0-0);
146
+ --animation-100-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v22-1-0);
147
+ --animation-300-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v22-1-0);
108
148
  }
109
149
  @media (min-width: 1020px){
110
- body.magritte-old-layout .magritte-textarea___ugvor_2-2-2:not(.magritte-textarea-focused___eiGyC_2-2-2):not(.magritte-textarea-invalid___iKOPh_2-2-2):not(.magritte-textarea-disabled___XN0cg_2-2-2):hover{
111
- --magritte-ui-form-helper-description-color-override:var(--magritte-color-component-input-text-state-description-hovered-v22-0-0);
150
+ body.magritte-old-layout .magritte-textarea___ugvor_2-2-4:not(.magritte-textarea-focused___eiGyC_2-2-4):not(.magritte-textarea-invalid___iKOPh_2-2-4):not(.magritte-textarea-disabled___XN0cg_2-2-4):hover{
151
+ --magritte-ui-form-helper-description-color-override:var(--magritte-color-component-input-text-state-description-hovered-v22-1-0);
112
152
  }
113
- body.magritte-old-layout .magritte-textarea___ugvor_2-2-2:not(.magritte-textarea-focused___eiGyC_2-2-2):not(.magritte-textarea-invalid___iKOPh_2-2-2):not(.magritte-textarea-disabled___XN0cg_2-2-2):hover .magritte-textarea-position-container-wrapper___4Dsui_2-2-2::after{
114
- border-bottom-color:var(--magritte-color-component-input-stroke-state-field-hovered-v22-0-0);
115
- border-right-color:var(--magritte-color-component-input-stroke-state-field-hovered-v22-0-0);
153
+ body.magritte-old-layout .magritte-textarea___ugvor_2-2-4:not(.magritte-textarea-focused___eiGyC_2-2-4):not(.magritte-textarea-invalid___iKOPh_2-2-4):not(.magritte-textarea-disabled___XN0cg_2-2-4):hover .magritte-textarea-position-container-wrapper___4Dsui_2-2-4::after{
154
+ border-bottom-color:var(--magritte-color-component-input-stroke-state-field-hovered-v22-1-0);
155
+ border-right-color:var(--magritte-color-component-input-stroke-state-field-hovered-v22-1-0);
116
156
  border-width:1px;
117
- background-color:var(--magritte-color-component-input-background-state-field-hovered-v22-0-0);
157
+ background-color:var(--magritte-color-component-input-background-state-field-hovered-v22-1-0);
118
158
  }
119
- body.magritte-old-layout .magritte-textarea___ugvor_2-2-2:not(.magritte-textarea-focused___eiGyC_2-2-2):not(.magritte-textarea-invalid___iKOPh_2-2-2):not(.magritte-textarea-disabled___XN0cg_2-2-2):hover .magritte-textarea-position-container___cEpbv_2-2-2{
120
- box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-hovered-v22-0-0);
121
- background-color:var(--magritte-color-component-input-background-state-field-hovered-v22-0-0);
159
+ body.magritte-old-layout .magritte-textarea___ugvor_2-2-4:not(.magritte-textarea-focused___eiGyC_2-2-4):not(.magritte-textarea-invalid___iKOPh_2-2-4):not(.magritte-textarea-disabled___XN0cg_2-2-4):hover .magritte-textarea-position-container___cEpbv_2-2-4{
160
+ box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-hovered-v22-1-0);
161
+ background-color:var(--magritte-color-component-input-background-state-field-hovered-v22-1-0);
122
162
  }
123
- body.magritte-old-layout .magritte-textarea___ugvor_2-2-2:not(.magritte-textarea-focused___eiGyC_2-2-2):not(.magritte-textarea-invalid___iKOPh_2-2-2):not(.magritte-textarea-disabled___XN0cg_2-2-2):hover .magritte-native-element___a0RAE_2-2-2{
124
- color:var(--magritte-color-component-input-text-state-content-hovered-v22-0-0);
125
- -webkit-text-fill-color:var(--magritte-color-component-input-text-state-content-hovered-v22-0-0);
163
+ body.magritte-old-layout .magritte-textarea___ugvor_2-2-4:not(.magritte-textarea-focused___eiGyC_2-2-4):not(.magritte-textarea-invalid___iKOPh_2-2-4):not(.magritte-textarea-disabled___XN0cg_2-2-4):hover .magritte-native-element___a0RAE_2-2-4{
164
+ color:var(--magritte-color-component-input-text-state-content-hovered-v22-1-0);
165
+ -webkit-text-fill-color:var(--magritte-color-component-input-text-state-content-hovered-v22-1-0);
126
166
  opacity:1;
127
167
  }
128
- body.magritte-old-layout .magritte-textarea___ugvor_2-2-2:not(.magritte-textarea-focused___eiGyC_2-2-2):not(.magritte-textarea-invalid___iKOPh_2-2-2):not(.magritte-textarea-disabled___XN0cg_2-2-2):hover .magritte-textarea-label___sgTIH_2-2-2{
129
- color:var(--magritte-color-component-input-text-state-placeholder-hovered-v22-0-0);
168
+ body.magritte-old-layout .magritte-textarea___ugvor_2-2-4:not(.magritte-textarea-focused___eiGyC_2-2-4):not(.magritte-textarea-invalid___iKOPh_2-2-4):not(.magritte-textarea-disabled___XN0cg_2-2-4):hover .magritte-textarea-label___sgTIH_2-2-4{
169
+ color:var(--magritte-color-component-input-text-state-placeholder-hovered-v22-1-0);
130
170
  }
131
- body.magritte-old-layout .magritte-textarea___ugvor_2-2-2:not(.magritte-textarea-focused___eiGyC_2-2-2):not(.magritte-textarea-invalid___iKOPh_2-2-2):not(.magritte-textarea-disabled___XN0cg_2-2-2):hover .magritte-textarea-label-elevated___0lxOI_2-2-2{
132
- color:var(--magritte-color-component-input-text-state-label-hovered-v22-0-0);
171
+ body.magritte-old-layout .magritte-textarea___ugvor_2-2-4:not(.magritte-textarea-focused___eiGyC_2-2-4):not(.magritte-textarea-invalid___iKOPh_2-2-4):not(.magritte-textarea-disabled___XN0cg_2-2-4):hover .magritte-textarea-label-elevated___0lxOI_2-2-4{
172
+ color:var(--magritte-color-component-input-text-state-label-hovered-v22-1-0);
133
173
  }
134
- body.magritte-old-layout .magritte-textarea___ugvor_2-2-2:not(.magritte-textarea-focused___eiGyC_2-2-2):not(.magritte-textarea-invalid___iKOPh_2-2-2):not(.magritte-textarea-disabled___XN0cg_2-2-2):hover .magritte-textarea-limit___IjPJy_2-2-2{
135
- background-color:var(--magritte-color-component-input-background-state-field-hovered-v22-0-0);
174
+ body.magritte-old-layout .magritte-textarea___ugvor_2-2-4:not(.magritte-textarea-focused___eiGyC_2-2-4):not(.magritte-textarea-invalid___iKOPh_2-2-4):not(.magritte-textarea-disabled___XN0cg_2-2-4):hover .magritte-textarea-limit___IjPJy_2-2-4{
175
+ background-color:var(--magritte-color-component-input-background-state-field-hovered-v22-1-0);
136
176
  }
137
- body.magritte-old-layout .magritte-textarea___ugvor_2-2-2:not(.magritte-textarea-focused___eiGyC_2-2-2):not(.magritte-textarea-invalid___iKOPh_2-2-2):not(.magritte-textarea-disabled___XN0cg_2-2-2):hover .magritte-textarea-limit___IjPJy_2-2-2{
138
- --magritte-ui-text-color-override:var(--magritte-color-component-input-text-state-limit-hovered-v22-0-0);
177
+ body.magritte-old-layout .magritte-textarea___ugvor_2-2-4:not(.magritte-textarea-focused___eiGyC_2-2-4):not(.magritte-textarea-invalid___iKOPh_2-2-4):not(.magritte-textarea-disabled___XN0cg_2-2-4):hover .magritte-textarea-limit___IjPJy_2-2-4{
178
+ --magritte-ui-text-color-override:var(--magritte-color-component-input-text-state-limit-hovered-v22-1-0);
139
179
  }
140
180
  }
141
181
  @media (min-width: 1024px){
142
- body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-2-2:not(.magritte-textarea-focused___eiGyC_2-2-2):not(.magritte-textarea-invalid___iKOPh_2-2-2):not(.magritte-textarea-disabled___XN0cg_2-2-2):hover{
143
- --magritte-ui-form-helper-description-color-override:var(--magritte-color-component-input-text-state-description-hovered-v22-0-0);
182
+ body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-2-4:not(.magritte-textarea-focused___eiGyC_2-2-4):not(.magritte-textarea-invalid___iKOPh_2-2-4):not(.magritte-textarea-disabled___XN0cg_2-2-4):hover{
183
+ --magritte-ui-form-helper-description-color-override:var(--magritte-color-component-input-text-state-description-hovered-v22-1-0);
144
184
  }
145
- body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-2-2:not(.magritte-textarea-focused___eiGyC_2-2-2):not(.magritte-textarea-invalid___iKOPh_2-2-2):not(.magritte-textarea-disabled___XN0cg_2-2-2):hover .magritte-textarea-position-container-wrapper___4Dsui_2-2-2::after{
146
- border-bottom-color:var(--magritte-color-component-input-stroke-state-field-hovered-v22-0-0);
147
- border-right-color:var(--magritte-color-component-input-stroke-state-field-hovered-v22-0-0);
185
+ body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-2-4:not(.magritte-textarea-focused___eiGyC_2-2-4):not(.magritte-textarea-invalid___iKOPh_2-2-4):not(.magritte-textarea-disabled___XN0cg_2-2-4):hover .magritte-textarea-position-container-wrapper___4Dsui_2-2-4::after{
186
+ border-bottom-color:var(--magritte-color-component-input-stroke-state-field-hovered-v22-1-0);
187
+ border-right-color:var(--magritte-color-component-input-stroke-state-field-hovered-v22-1-0);
148
188
  border-width:1px;
149
- background-color:var(--magritte-color-component-input-background-state-field-hovered-v22-0-0);
189
+ background-color:var(--magritte-color-component-input-background-state-field-hovered-v22-1-0);
150
190
  }
151
- body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-2-2:not(.magritte-textarea-focused___eiGyC_2-2-2):not(.magritte-textarea-invalid___iKOPh_2-2-2):not(.magritte-textarea-disabled___XN0cg_2-2-2):hover .magritte-textarea-position-container___cEpbv_2-2-2{
152
- box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-hovered-v22-0-0);
153
- background-color:var(--magritte-color-component-input-background-state-field-hovered-v22-0-0);
191
+ body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-2-4:not(.magritte-textarea-focused___eiGyC_2-2-4):not(.magritte-textarea-invalid___iKOPh_2-2-4):not(.magritte-textarea-disabled___XN0cg_2-2-4):hover .magritte-textarea-position-container___cEpbv_2-2-4{
192
+ box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-hovered-v22-1-0);
193
+ background-color:var(--magritte-color-component-input-background-state-field-hovered-v22-1-0);
154
194
  }
155
- body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-2-2:not(.magritte-textarea-focused___eiGyC_2-2-2):not(.magritte-textarea-invalid___iKOPh_2-2-2):not(.magritte-textarea-disabled___XN0cg_2-2-2):hover .magritte-native-element___a0RAE_2-2-2{
156
- color:var(--magritte-color-component-input-text-state-content-hovered-v22-0-0);
157
- -webkit-text-fill-color:var(--magritte-color-component-input-text-state-content-hovered-v22-0-0);
195
+ body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-2-4:not(.magritte-textarea-focused___eiGyC_2-2-4):not(.magritte-textarea-invalid___iKOPh_2-2-4):not(.magritte-textarea-disabled___XN0cg_2-2-4):hover .magritte-native-element___a0RAE_2-2-4{
196
+ color:var(--magritte-color-component-input-text-state-content-hovered-v22-1-0);
197
+ -webkit-text-fill-color:var(--magritte-color-component-input-text-state-content-hovered-v22-1-0);
158
198
  opacity:1;
159
199
  }
160
- body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-2-2:not(.magritte-textarea-focused___eiGyC_2-2-2):not(.magritte-textarea-invalid___iKOPh_2-2-2):not(.magritte-textarea-disabled___XN0cg_2-2-2):hover .magritte-textarea-label___sgTIH_2-2-2{
161
- color:var(--magritte-color-component-input-text-state-placeholder-hovered-v22-0-0);
200
+ body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-2-4:not(.magritte-textarea-focused___eiGyC_2-2-4):not(.magritte-textarea-invalid___iKOPh_2-2-4):not(.magritte-textarea-disabled___XN0cg_2-2-4):hover .magritte-textarea-label___sgTIH_2-2-4{
201
+ color:var(--magritte-color-component-input-text-state-placeholder-hovered-v22-1-0);
162
202
  }
163
- body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-2-2:not(.magritte-textarea-focused___eiGyC_2-2-2):not(.magritte-textarea-invalid___iKOPh_2-2-2):not(.magritte-textarea-disabled___XN0cg_2-2-2):hover .magritte-textarea-label-elevated___0lxOI_2-2-2{
164
- color:var(--magritte-color-component-input-text-state-label-hovered-v22-0-0);
203
+ body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-2-4:not(.magritte-textarea-focused___eiGyC_2-2-4):not(.magritte-textarea-invalid___iKOPh_2-2-4):not(.magritte-textarea-disabled___XN0cg_2-2-4):hover .magritte-textarea-label-elevated___0lxOI_2-2-4{
204
+ color:var(--magritte-color-component-input-text-state-label-hovered-v22-1-0);
165
205
  }
166
- body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-2-2:not(.magritte-textarea-focused___eiGyC_2-2-2):not(.magritte-textarea-invalid___iKOPh_2-2-2):not(.magritte-textarea-disabled___XN0cg_2-2-2):hover .magritte-textarea-limit___IjPJy_2-2-2{
167
- background-color:var(--magritte-color-component-input-background-state-field-hovered-v22-0-0);
206
+ body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-2-4:not(.magritte-textarea-focused___eiGyC_2-2-4):not(.magritte-textarea-invalid___iKOPh_2-2-4):not(.magritte-textarea-disabled___XN0cg_2-2-4):hover .magritte-textarea-limit___IjPJy_2-2-4{
207
+ background-color:var(--magritte-color-component-input-background-state-field-hovered-v22-1-0);
168
208
  }
169
- body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-2-2:not(.magritte-textarea-focused___eiGyC_2-2-2):not(.magritte-textarea-invalid___iKOPh_2-2-2):not(.magritte-textarea-disabled___XN0cg_2-2-2):hover .magritte-textarea-limit___IjPJy_2-2-2{
170
- --magritte-ui-text-color-override:var(--magritte-color-component-input-text-state-limit-hovered-v22-0-0);
209
+ body:not(.magritte-old-layout) .magritte-textarea___ugvor_2-2-4:not(.magritte-textarea-focused___eiGyC_2-2-4):not(.magritte-textarea-invalid___iKOPh_2-2-4):not(.magritte-textarea-disabled___XN0cg_2-2-4):hover .magritte-textarea-limit___IjPJy_2-2-4{
210
+ --magritte-ui-text-color-override:var(--magritte-color-component-input-text-state-limit-hovered-v22-1-0);
171
211
  }
172
212
  }
173
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-focused___eiGyC_2-2-2{
174
- --magritte-ui-form-helper-description-color-override:var(--magritte-color-component-input-text-state-description-focused-v22-0-0);
213
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-focused___eiGyC_2-2-4{
214
+ --magritte-ui-form-helper-description-color-override:var(--magritte-color-component-input-text-state-description-focused-v22-1-0);
175
215
  }
176
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-focused___eiGyC_2-2-2 .magritte-textarea-position-container-wrapper___4Dsui_2-2-2::after{
177
- border-bottom-color:var(--magritte-color-component-input-stroke-state-field-focused-v22-0-0);
178
- border-right-color:var(--magritte-color-component-input-stroke-state-field-focused-v22-0-0);
216
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-focused___eiGyC_2-2-4 .magritte-textarea-position-container-wrapper___4Dsui_2-2-4::after{
217
+ border-bottom-color:var(--magritte-color-component-input-stroke-state-field-focused-v22-1-0);
218
+ border-right-color:var(--magritte-color-component-input-stroke-state-field-focused-v22-1-0);
179
219
  border-width:2px;
180
- background-color:var(--magritte-color-component-input-background-state-field-focused-v22-0-0);
220
+ background-color:var(--magritte-color-component-input-background-state-field-focused-v22-1-0);
181
221
  }
182
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-focused___eiGyC_2-2-2 .magritte-textarea-position-container___cEpbv_2-2-2{
183
- box-shadow:inset 0 0 0 2px var(--magritte-color-component-input-stroke-state-field-focused-v22-0-0);
184
- background-color:var(--magritte-color-component-input-background-state-field-focused-v22-0-0);
222
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-focused___eiGyC_2-2-4 .magritte-textarea-position-container___cEpbv_2-2-4{
223
+ box-shadow:inset 0 0 0 2px var(--magritte-color-component-input-stroke-state-field-focused-v22-1-0);
224
+ background-color:var(--magritte-color-component-input-background-state-field-focused-v22-1-0);
185
225
  }
186
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-focused___eiGyC_2-2-2 .magritte-native-element___a0RAE_2-2-2{
187
- color:var(--magritte-color-component-input-text-state-content-focused-v22-0-0);
188
- -webkit-text-fill-color:var(--magritte-color-component-input-text-state-content-focused-v22-0-0);
226
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-focused___eiGyC_2-2-4 .magritte-native-element___a0RAE_2-2-4{
227
+ color:var(--magritte-color-component-input-text-state-content-focused-v22-1-0);
228
+ -webkit-text-fill-color:var(--magritte-color-component-input-text-state-content-focused-v22-1-0);
189
229
  opacity:1;
190
230
  }
191
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-focused___eiGyC_2-2-2 .magritte-textarea-label___sgTIH_2-2-2{
192
- color:var(--magritte-color-component-input-text-state-placeholder-focused-v22-0-0);
231
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-focused___eiGyC_2-2-4 .magritte-textarea-label___sgTIH_2-2-4{
232
+ color:var(--magritte-color-component-input-text-state-placeholder-focused-v22-1-0);
193
233
  }
194
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-focused___eiGyC_2-2-2 .magritte-textarea-label-elevated___0lxOI_2-2-2{
195
- color:var(--magritte-color-component-input-text-state-label-focused-v22-0-0);
234
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-focused___eiGyC_2-2-4 .magritte-textarea-label-elevated___0lxOI_2-2-4{
235
+ color:var(--magritte-color-component-input-text-state-label-focused-v22-1-0);
196
236
  }
197
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-focused___eiGyC_2-2-2 .magritte-textarea-limit___IjPJy_2-2-2{
198
- background-color:var(--magritte-color-component-input-background-state-field-focused-v22-0-0);
237
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-focused___eiGyC_2-2-4 .magritte-textarea-limit___IjPJy_2-2-4{
238
+ background-color:var(--magritte-color-component-input-background-state-field-focused-v22-1-0);
199
239
  }
200
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-focused___eiGyC_2-2-2 .magritte-textarea-limit___IjPJy_2-2-2{
201
- --magritte-ui-text-color-override:var(--magritte-color-component-input-text-state-limit-focused-v22-0-0);
240
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-focused___eiGyC_2-2-4 .magritte-textarea-limit___IjPJy_2-2-4{
241
+ --magritte-ui-text-color-override:var(--magritte-color-component-input-text-state-limit-focused-v22-1-0);
202
242
  }
203
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-focused___eiGyC_2-2-2.magritte-textarea-limit-error___vLvZU_2-2-2,
204
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-focused___eiGyC_2-2-2.magritte-textarea-invalid___iKOPh_2-2-2{
205
- --magritte-ui-form-helper-error-color-override:var(--magritte-color-component-input-text-state-description-invalid-v22-0-0);
243
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-focused___eiGyC_2-2-4.magritte-textarea-limit-error___vLvZU_2-2-4,
244
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-focused___eiGyC_2-2-4.magritte-textarea-invalid___iKOPh_2-2-4{
245
+ --magritte-ui-form-helper-error-color-override:var(--magritte-color-component-input-text-state-description-invalid-v22-1-0);
206
246
  }
207
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-focused___eiGyC_2-2-2.magritte-textarea-limit-error___vLvZU_2-2-2 .magritte-textarea-position-container-wrapper___4Dsui_2-2-2::after,
208
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-focused___eiGyC_2-2-2.magritte-textarea-invalid___iKOPh_2-2-2 .magritte-textarea-position-container-wrapper___4Dsui_2-2-2::after{
209
- border-bottom-color:var(--magritte-color-component-input-stroke-state-field-invalid-v22-0-0);
210
- border-right-color:var(--magritte-color-component-input-stroke-state-field-invalid-v22-0-0);
247
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-focused___eiGyC_2-2-4.magritte-textarea-limit-error___vLvZU_2-2-4 .magritte-textarea-position-container-wrapper___4Dsui_2-2-4::after,
248
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-focused___eiGyC_2-2-4.magritte-textarea-invalid___iKOPh_2-2-4 .magritte-textarea-position-container-wrapper___4Dsui_2-2-4::after{
249
+ border-bottom-color:var(--magritte-color-component-input-stroke-state-field-invalid-v22-1-0);
250
+ border-right-color:var(--magritte-color-component-input-stroke-state-field-invalid-v22-1-0);
211
251
  border-width:2px;
212
- background-color:var(--magritte-color-component-input-background-state-field-invalid-v22-0-0);
252
+ background-color:var(--magritte-color-component-input-background-state-field-invalid-v22-1-0);
213
253
  }
214
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-focused___eiGyC_2-2-2.magritte-textarea-limit-error___vLvZU_2-2-2 .magritte-textarea-position-container___cEpbv_2-2-2,
215
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-focused___eiGyC_2-2-2.magritte-textarea-invalid___iKOPh_2-2-2 .magritte-textarea-position-container___cEpbv_2-2-2{
216
- box-shadow:inset 0 0 0 2px var(--magritte-color-component-input-stroke-state-field-invalid-v22-0-0);
217
- background-color:var(--magritte-color-component-input-background-state-field-invalid-v22-0-0);
254
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-focused___eiGyC_2-2-4.magritte-textarea-limit-error___vLvZU_2-2-4 .magritte-textarea-position-container___cEpbv_2-2-4,
255
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-focused___eiGyC_2-2-4.magritte-textarea-invalid___iKOPh_2-2-4 .magritte-textarea-position-container___cEpbv_2-2-4{
256
+ box-shadow:inset 0 0 0 2px var(--magritte-color-component-input-stroke-state-field-invalid-v22-1-0);
257
+ background-color:var(--magritte-color-component-input-background-state-field-invalid-v22-1-0);
218
258
  }
219
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-focused___eiGyC_2-2-2.magritte-textarea-limit-error___vLvZU_2-2-2 .magritte-native-element___a0RAE_2-2-2,
220
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-focused___eiGyC_2-2-2.magritte-textarea-invalid___iKOPh_2-2-2 .magritte-native-element___a0RAE_2-2-2{
221
- color:var(--magritte-color-component-input-text-state-content-invalid-v22-0-0);
222
- -webkit-text-fill-color:var(--magritte-color-component-input-text-state-content-invalid-v22-0-0);
259
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-focused___eiGyC_2-2-4.magritte-textarea-limit-error___vLvZU_2-2-4 .magritte-native-element___a0RAE_2-2-4,
260
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-focused___eiGyC_2-2-4.magritte-textarea-invalid___iKOPh_2-2-4 .magritte-native-element___a0RAE_2-2-4{
261
+ color:var(--magritte-color-component-input-text-state-content-invalid-v22-1-0);
262
+ -webkit-text-fill-color:var(--magritte-color-component-input-text-state-content-invalid-v22-1-0);
223
263
  opacity:1;
224
264
  }
225
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-focused___eiGyC_2-2-2.magritte-textarea-limit-error___vLvZU_2-2-2 .magritte-textarea-label___sgTIH_2-2-2,
226
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-focused___eiGyC_2-2-2.magritte-textarea-invalid___iKOPh_2-2-2 .magritte-textarea-label___sgTIH_2-2-2{
227
- color:var(--magritte-color-component-input-text-state-placeholder-invalid-v22-0-0);
265
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-focused___eiGyC_2-2-4.magritte-textarea-limit-error___vLvZU_2-2-4 .magritte-textarea-label___sgTIH_2-2-4,
266
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-focused___eiGyC_2-2-4.magritte-textarea-invalid___iKOPh_2-2-4 .magritte-textarea-label___sgTIH_2-2-4{
267
+ color:var(--magritte-color-component-input-text-state-placeholder-invalid-v22-1-0);
228
268
  }
229
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-focused___eiGyC_2-2-2.magritte-textarea-limit-error___vLvZU_2-2-2 .magritte-textarea-label-elevated___0lxOI_2-2-2,
230
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-focused___eiGyC_2-2-2.magritte-textarea-invalid___iKOPh_2-2-2 .magritte-textarea-label-elevated___0lxOI_2-2-2{
231
- color:var(--magritte-color-component-input-text-state-label-invalid-v22-0-0);
269
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-focused___eiGyC_2-2-4.magritte-textarea-limit-error___vLvZU_2-2-4 .magritte-textarea-label-elevated___0lxOI_2-2-4,
270
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-focused___eiGyC_2-2-4.magritte-textarea-invalid___iKOPh_2-2-4 .magritte-textarea-label-elevated___0lxOI_2-2-4{
271
+ color:var(--magritte-color-component-input-text-state-label-invalid-v22-1-0);
232
272
  }
233
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-focused___eiGyC_2-2-2.magritte-textarea-limit-error___vLvZU_2-2-2 .magritte-textarea-limit___IjPJy_2-2-2,
234
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-focused___eiGyC_2-2-2.magritte-textarea-invalid___iKOPh_2-2-2 .magritte-textarea-limit___IjPJy_2-2-2{
235
- background-color:var(--magritte-color-component-input-background-state-field-invalid-v22-0-0);
273
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-focused___eiGyC_2-2-4.magritte-textarea-limit-error___vLvZU_2-2-4 .magritte-textarea-limit___IjPJy_2-2-4,
274
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-focused___eiGyC_2-2-4.magritte-textarea-invalid___iKOPh_2-2-4 .magritte-textarea-limit___IjPJy_2-2-4{
275
+ background-color:var(--magritte-color-component-input-background-state-field-invalid-v22-1-0);
236
276
  }
237
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-focused___eiGyC_2-2-2.magritte-textarea-limit-error___vLvZU_2-2-2 .magritte-textarea-limit___IjPJy_2-2-2{
238
- --magritte-ui-text-color-override:var(--magritte-color-component-input-text-state-limit-invalid-v22-0-0);
277
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-focused___eiGyC_2-2-4.magritte-textarea-limit-error___vLvZU_2-2-4 .magritte-textarea-limit___IjPJy_2-2-4{
278
+ --magritte-ui-text-color-override:var(--magritte-color-component-input-text-state-limit-invalid-v22-1-0);
239
279
  }
240
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-invalid___iKOPh_2-2-2{
241
- --magritte-ui-form-helper-error-color-override:var(--magritte-color-component-input-text-state-description-invalid-v22-0-0);
280
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-invalid___iKOPh_2-2-4{
281
+ --magritte-ui-form-helper-error-color-override:var(--magritte-color-component-input-text-state-description-invalid-v22-1-0);
242
282
  }
243
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-invalid___iKOPh_2-2-2 .magritte-textarea-position-container-wrapper___4Dsui_2-2-2::after{
244
- border-bottom-color:var(--magritte-color-component-input-stroke-state-field-invalid-v22-0-0);
245
- border-right-color:var(--magritte-color-component-input-stroke-state-field-invalid-v22-0-0);
283
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-invalid___iKOPh_2-2-4 .magritte-textarea-position-container-wrapper___4Dsui_2-2-4::after{
284
+ border-bottom-color:var(--magritte-color-component-input-stroke-state-field-invalid-v22-1-0);
285
+ border-right-color:var(--magritte-color-component-input-stroke-state-field-invalid-v22-1-0);
246
286
  border-width:1px;
247
- background-color:var(--magritte-color-component-input-background-state-field-invalid-v22-0-0);
287
+ background-color:var(--magritte-color-component-input-background-state-field-invalid-v22-1-0);
248
288
  }
249
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-invalid___iKOPh_2-2-2 .magritte-textarea-position-container___cEpbv_2-2-2{
250
- box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-invalid-v22-0-0);
251
- background-color:var(--magritte-color-component-input-background-state-field-invalid-v22-0-0);
289
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-invalid___iKOPh_2-2-4 .magritte-textarea-position-container___cEpbv_2-2-4{
290
+ box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-invalid-v22-1-0);
291
+ background-color:var(--magritte-color-component-input-background-state-field-invalid-v22-1-0);
252
292
  }
253
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-invalid___iKOPh_2-2-2 .magritte-native-element___a0RAE_2-2-2{
254
- color:var(--magritte-color-component-input-text-state-content-invalid-v22-0-0);
255
- -webkit-text-fill-color:var(--magritte-color-component-input-text-state-content-invalid-v22-0-0);
293
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-invalid___iKOPh_2-2-4 .magritte-native-element___a0RAE_2-2-4{
294
+ color:var(--magritte-color-component-input-text-state-content-invalid-v22-1-0);
295
+ -webkit-text-fill-color:var(--magritte-color-component-input-text-state-content-invalid-v22-1-0);
256
296
  opacity:1;
257
297
  }
258
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-invalid___iKOPh_2-2-2 .magritte-textarea-label___sgTIH_2-2-2{
259
- color:var(--magritte-color-component-input-text-state-placeholder-invalid-v22-0-0);
298
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-invalid___iKOPh_2-2-4 .magritte-textarea-label___sgTIH_2-2-4{
299
+ color:var(--magritte-color-component-input-text-state-placeholder-invalid-v22-1-0);
260
300
  }
261
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-invalid___iKOPh_2-2-2 .magritte-textarea-label-elevated___0lxOI_2-2-2{
262
- color:var(--magritte-color-component-input-text-state-label-invalid-v22-0-0);
301
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-invalid___iKOPh_2-2-4 .magritte-textarea-label-elevated___0lxOI_2-2-4{
302
+ color:var(--magritte-color-component-input-text-state-label-invalid-v22-1-0);
263
303
  }
264
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-invalid___iKOPh_2-2-2 .magritte-textarea-limit___IjPJy_2-2-2{
265
- background-color:var(--magritte-color-component-input-background-state-field-invalid-v22-0-0);
304
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-invalid___iKOPh_2-2-4 .magritte-textarea-limit___IjPJy_2-2-4{
305
+ background-color:var(--magritte-color-component-input-background-state-field-invalid-v22-1-0);
266
306
  }
267
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-limit-error___vLvZU_2-2-2 .magritte-textarea-limit___IjPJy_2-2-2{
268
- --magritte-ui-text-color-override:var(--magritte-color-component-input-text-state-limit-invalid-v22-0-0);
307
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-limit-error___vLvZU_2-2-4 .magritte-textarea-limit___IjPJy_2-2-4{
308
+ --magritte-ui-text-color-override:var(--magritte-color-component-input-text-state-limit-invalid-v22-1-0);
269
309
  }
270
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-disabled___XN0cg_2-2-2{
271
- --magritte-ui-form-helper-description-color-override:var(--magritte-color-component-input-text-state-description-disabled-v22-0-0);
310
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-disabled___XN0cg_2-2-4{
311
+ --magritte-ui-form-helper-description-color-override:var(--magritte-color-component-input-text-state-description-disabled-v22-1-0);
272
312
  }
273
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-disabled___XN0cg_2-2-2 .magritte-textarea-position-container-wrapper___4Dsui_2-2-2::after{
274
- border-bottom-color:var(--magritte-color-component-input-stroke-state-field-disabled-v22-0-0);
275
- border-right-color:var(--magritte-color-component-input-stroke-state-field-disabled-v22-0-0);
313
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-disabled___XN0cg_2-2-4 .magritte-textarea-position-container-wrapper___4Dsui_2-2-4::after{
314
+ border-bottom-color:var(--magritte-color-component-input-stroke-state-field-disabled-v22-1-0);
315
+ border-right-color:var(--magritte-color-component-input-stroke-state-field-disabled-v22-1-0);
276
316
  border-width:1px;
277
- background-color:var(--magritte-color-component-input-background-state-field-disabled-v22-0-0);
317
+ background-color:var(--magritte-color-component-input-background-state-field-disabled-v22-1-0);
278
318
  }
279
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-disabled___XN0cg_2-2-2 .magritte-textarea-position-container___cEpbv_2-2-2{
280
- box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-disabled-v22-0-0);
281
- background-color:var(--magritte-color-component-input-background-state-field-disabled-v22-0-0);
319
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-disabled___XN0cg_2-2-4 .magritte-textarea-position-container___cEpbv_2-2-4{
320
+ box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-disabled-v22-1-0);
321
+ background-color:var(--magritte-color-component-input-background-state-field-disabled-v22-1-0);
282
322
  }
283
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-disabled___XN0cg_2-2-2 .magritte-native-element___a0RAE_2-2-2{
284
- color:var(--magritte-color-component-input-text-state-content-disabled-v22-0-0);
285
- -webkit-text-fill-color:var(--magritte-color-component-input-text-state-content-disabled-v22-0-0);
323
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-disabled___XN0cg_2-2-4 .magritte-native-element___a0RAE_2-2-4{
324
+ color:var(--magritte-color-component-input-text-state-content-disabled-v22-1-0);
325
+ -webkit-text-fill-color:var(--magritte-color-component-input-text-state-content-disabled-v22-1-0);
286
326
  opacity:1;
287
327
  }
288
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-disabled___XN0cg_2-2-2 .magritte-textarea-label___sgTIH_2-2-2{
289
- color:var(--magritte-color-component-input-text-state-placeholder-disabled-v22-0-0);
328
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-disabled___XN0cg_2-2-4 .magritte-textarea-label___sgTIH_2-2-4{
329
+ color:var(--magritte-color-component-input-text-state-placeholder-disabled-v22-1-0);
290
330
  }
291
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-disabled___XN0cg_2-2-2 .magritte-textarea-label-elevated___0lxOI_2-2-2{
292
- color:var(--magritte-color-component-input-text-state-label-disabled-v22-0-0);
331
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-disabled___XN0cg_2-2-4 .magritte-textarea-label-elevated___0lxOI_2-2-4{
332
+ color:var(--magritte-color-component-input-text-state-label-disabled-v22-1-0);
293
333
  }
294
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-disabled___XN0cg_2-2-2 .magritte-textarea-limit___IjPJy_2-2-2{
295
- background-color:var(--magritte-color-component-input-background-state-field-disabled-v22-0-0);
334
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-disabled___XN0cg_2-2-4 .magritte-textarea-limit___IjPJy_2-2-4{
335
+ background-color:var(--magritte-color-component-input-background-state-field-disabled-v22-1-0);
296
336
  }
297
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-disabled___XN0cg_2-2-2 .magritte-textarea-limit___IjPJy_2-2-2{
298
- --magritte-ui-text-color-override:var(--magritte-color-component-input-text-state-limit-disabled-v22-0-0);
337
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-disabled___XN0cg_2-2-4 .magritte-textarea-limit___IjPJy_2-2-4{
338
+ --magritte-ui-text-color-override:var(--magritte-color-component-input-text-state-limit-disabled-v22-1-0);
299
339
  }
300
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-disabled___XN0cg_2-2-2 .magritte-textarea-position-container___cEpbv_2-2-2,
301
- .magritte-textarea___ugvor_2-2-2.magritte-textarea-disabled___XN0cg_2-2-2 .magritte-native-element___a0RAE_2-2-2{
340
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-disabled___XN0cg_2-2-4 .magritte-textarea-position-container___cEpbv_2-2-4,
341
+ .magritte-textarea___ugvor_2-2-4.magritte-textarea-disabled___XN0cg_2-2-4 .magritte-native-element___a0RAE_2-2-4{
302
342
  cursor:not-allowed;
303
343
  }
304
344
  @media (prefers-reduced-motion){
305
- .magritte-textarea___ugvor_2-2-2{
345
+ .magritte-textarea___ugvor_2-2-4{
306
346
  --animation-100-duration:1ms;
307
347
  --animation-300-duration:1ms;
308
348
  }
309
349
  }
310
- .magritte-textarea-invalid___iKOPh_2-2-2 .magritte-textarea-position-container-wrapper___4Dsui_2-2-2.focus-visible{
311
- outline:var(--magritte-color-component-input-stroke-state-negative-focused-accessible-v22-0-0) solid 4px;
312
- }
313
- .magritte-textarea-position-container-wrapper___4Dsui_2-2-2{
350
+ .magritte-textarea-position-container-wrapper___4Dsui_2-2-4{
314
351
  display:inline-flex;
315
352
  position:relative;
316
353
  overflow:hidden;
317
354
  width:100%;
318
355
  border-radius:12px;
319
356
  }
320
- .magritte-textarea-position-container-wrapper___4Dsui_2-2-2.focus-visible{
321
- outline:var(--magritte-color-component-input-stroke-state-accent-focused-accessible-v22-0-0) solid 4px;
357
+ .magritte-textarea-position-container-wrapper___4Dsui_2-2-4.focus-visible{
358
+ outline:var(--magritte-color-component-input-stroke-state-accent-focused-accessible-v22-1-0) solid 4px;
359
+ }
360
+ .magritte-textarea-invalid___iKOPh_2-2-4 .magritte-textarea-position-container-wrapper___4Dsui_2-2-4.focus-visible,
361
+ .magritte-textarea-limit-error___vLvZU_2-2-4 .magritte-textarea-position-container-wrapper___4Dsui_2-2-4.focus-visible{
362
+ outline-color:var(--magritte-color-component-input-stroke-state-negative-focused-accessible-v22-1-0);
322
363
  }
323
- .magritte-textarea-position-container-wrapper___4Dsui_2-2-2::after{
364
+ .magritte-textarea-position-container-wrapper___4Dsui_2-2-4::after{
324
365
  display:block;
325
366
  pointer-events:none;
326
367
  user-select:none;
@@ -328,257 +369,257 @@
328
369
  content:'';
329
370
  width:16px;
330
371
  height:16px;
331
- background-color:var(--magritte-color-component-input-background-field-v22-0-0);
372
+ background-color:var(--magritte-color-component-input-background-field-v22-1-0);
332
373
  bottom:0;
333
374
  right:0;
334
375
  border-bottom-right-radius:12px;
335
- border-bottom:1px solid var(--magritte-color-component-input-stroke-field-v22-0-0);
336
- border-right:1px solid var(--magritte-color-component-input-stroke-field-v22-0-0);
337
- }
338
- .magritte-native-element___a0RAE_2-2-2{
339
- font-family:var(--magritte-typography-label-2-regular-font-family-v22-0-0);
340
- font-weight:var(--magritte-typography-label-2-regular-font-weight-v22-0-0);
341
- line-height:var(--magritte-typography-label-2-regular-line-height-v22-0-0);
342
- font-size:var(--magritte-typography-label-2-regular-font-size-v22-0-0);
343
- letter-spacing:var(--magritte-typography-label-2-regular-letter-spacing-v22-0-0);
344
- text-indent:var(--magritte-typography-label-2-regular-text-indent-v22-0-0);
345
- text-transform:var(--magritte-typography-label-2-regular-text-transform-v22-0-0);
346
- text-decoration:var(--magritte-typography-label-2-regular-text-decoration-v22-0-0);
376
+ border-bottom:1px solid var(--magritte-color-component-input-stroke-field-v22-1-0);
377
+ border-right:1px solid var(--magritte-color-component-input-stroke-field-v22-1-0);
378
+ }
379
+ .magritte-native-element___a0RAE_2-2-4{
380
+ font-family:var(--magritte-typography-label-2-regular-font-family-v22-1-0);
381
+ font-weight:var(--magritte-typography-label-2-regular-font-weight-v22-1-0);
382
+ line-height:var(--magritte-typography-label-2-regular-line-height-v22-1-0);
383
+ font-size:var(--magritte-typography-label-2-regular-font-size-v22-1-0);
384
+ letter-spacing:var(--magritte-typography-label-2-regular-letter-spacing-v22-1-0);
385
+ text-indent:var(--magritte-typography-label-2-regular-text-indent-v22-1-0);
386
+ text-transform:var(--magritte-typography-label-2-regular-text-transform-v22-1-0);
387
+ text-decoration:var(--magritte-typography-label-2-regular-text-decoration-v22-1-0);
347
388
  box-sizing:border-box;
348
389
  border:0;
349
390
  width:100%;
350
391
  padding:0 14px 0 16px;
351
- color:var(--magritte-color-component-input-text-content-v22-0-0);
352
- caret-color:var(--magritte-ui-textarea-caret-color-override, var(--magritte-color-text-primary-v22-0-0));
392
+ color:var(--magritte-color-component-input-text-content-v22-1-0);
393
+ caret-color:var(--magritte-ui-textarea-caret-color-override, var(--magritte-color-text-primary-v22-1-0));
353
394
  position:relative;
354
395
  resize:none;
355
396
  background:none;
356
397
  appearance:none;
357
398
  }
358
- .magritte-native-element___a0RAE_2-2-2:focus{
399
+ .magritte-native-element___a0RAE_2-2-4:focus{
359
400
  outline:none;
360
401
  }
361
- .magritte-min-height-48___jGf5Z_2-2-2 .magritte-native-element___a0RAE_2-2-2{
362
- min-height:calc(36px - var(--magritte-typography-label-4-regular-line-height-v22-0-0));
402
+ .magritte-min-height-48___jGf5Z_2-2-4 .magritte-native-element___a0RAE_2-2-4{
403
+ min-height:calc(36px - var(--magritte-typography-label-4-regular-line-height-v22-1-0));
363
404
  }
364
- .magritte-min-height-56___2yI39_2-2-2 .magritte-native-element___a0RAE_2-2-2{
365
- min-height:calc(40px - var(--magritte-typography-label-4-regular-line-height-v22-0-0));
405
+ .magritte-min-height-56___2yI39_2-2-4 .magritte-native-element___a0RAE_2-2-4{
406
+ min-height:calc(40px - var(--magritte-typography-label-4-regular-line-height-v22-1-0));
366
407
  }
367
- .magritte-min-height-default___zwRcq_2-2-2 .magritte-native-element___a0RAE_2-2-2{
368
- min-height:calc(78px - var(--magritte-typography-label-4-regular-line-height-v22-0-0));
408
+ .magritte-min-height-default___zwRcq_2-2-4 .magritte-native-element___a0RAE_2-2-4{
409
+ min-height:calc(78px - var(--magritte-typography-label-4-regular-line-height-v22-1-0));
369
410
  }
370
- .magritte-textarea-limited___cU1Rg_2-2-2.magritte-min-height-48___jGf5Z_2-2-2 .magritte-native-element___a0RAE_2-2-2{
371
- min-height:calc(22px - var(--magritte-typography-label-4-regular-line-height-v22-0-0));
411
+ .magritte-textarea-limited___cU1Rg_2-2-4.magritte-min-height-48___jGf5Z_2-2-4 .magritte-native-element___a0RAE_2-2-4{
412
+ min-height:calc(22px - var(--magritte-typography-label-4-regular-line-height-v22-1-0));
372
413
  }
373
- .magritte-textarea-limited___cU1Rg_2-2-2.magritte-min-height-56___2yI39_2-2-2 .magritte-native-element___a0RAE_2-2-2{
374
- min-height:calc(22px - var(--magritte-typography-label-4-regular-line-height-v22-0-0));
414
+ .magritte-textarea-limited___cU1Rg_2-2-4.magritte-min-height-56___2yI39_2-2-4 .magritte-native-element___a0RAE_2-2-4{
415
+ min-height:calc(22px - var(--magritte-typography-label-4-regular-line-height-v22-1-0));
375
416
  }
376
- .magritte-textarea-limited___cU1Rg_2-2-2.magritte-min-height-default___zwRcq_2-2-2 .magritte-native-element___a0RAE_2-2-2{
377
- min-height:calc(64px - var(--magritte-typography-label-4-regular-line-height-v22-0-0));
417
+ .magritte-textarea-limited___cU1Rg_2-2-4.magritte-min-height-default___zwRcq_2-2-4 .magritte-native-element___a0RAE_2-2-4{
418
+ min-height:calc(64px - var(--magritte-typography-label-4-regular-line-height-v22-1-0));
378
419
  }
379
- .magritte-textarea-layout-fill-both___ERS-q_2-2-2,
380
- .magritte-textarea-layout-fill-vertical___HmNtp_2-2-2,
381
- .magritte-textarea-layout-fill-horizontal___imBH2_2-2-2{
420
+ .magritte-textarea-layout-fill-both___ERS-q_2-2-4,
421
+ .magritte-textarea-layout-fill-vertical___HmNtp_2-2-4,
422
+ .magritte-textarea-layout-fill-horizontal___imBH2_2-2-4{
382
423
  flex-direction:column;
383
424
  }
384
- .magritte-textarea-layout-fill-both___ERS-q_2-2-2 .magritte-textarea-position-container-wrapper___4Dsui_2-2-2,
385
- .magritte-textarea-layout-fill-vertical___HmNtp_2-2-2 .magritte-textarea-position-container-wrapper___4Dsui_2-2-2,
386
- .magritte-textarea-layout-fill-horizontal___imBH2_2-2-2 .magritte-textarea-position-container-wrapper___4Dsui_2-2-2{
425
+ .magritte-textarea-layout-fill-both___ERS-q_2-2-4 .magritte-textarea-position-container-wrapper___4Dsui_2-2-4,
426
+ .magritte-textarea-layout-fill-vertical___HmNtp_2-2-4 .magritte-textarea-position-container-wrapper___4Dsui_2-2-4,
427
+ .magritte-textarea-layout-fill-horizontal___imBH2_2-2-4 .magritte-textarea-position-container-wrapper___4Dsui_2-2-4{
387
428
  flex:1;
388
429
  }
389
- .magritte-textarea-layout-fill-both___ERS-q_2-2-2{
430
+ .magritte-textarea-layout-fill-both___ERS-q_2-2-4{
390
431
  width:100%;
391
432
  height:100%;
392
433
  }
393
- .magritte-textarea-layout-fill-vertical___HmNtp_2-2-2{
434
+ .magritte-textarea-layout-fill-vertical___HmNtp_2-2-4{
394
435
  height:100%;
395
436
  }
396
- .magritte-textarea-layout-fill-horizontal___imBH2_2-2-2{
437
+ .magritte-textarea-layout-fill-horizontal___imBH2_2-2-4{
397
438
  width:100%;
398
439
  }
399
- .magritte-textarea-wrapper___yD7G6_2-2-2{
440
+ .magritte-textarea-wrapper___yD7G6_2-2-4{
400
441
  display:inline-flex;
401
442
  width:100%;
402
443
  }
403
- .magritte-textarea-layout-hug___tdCMY_2-2-2{
444
+ .magritte-textarea-layout-hug___tdCMY_2-2-4{
404
445
  width:100%;
405
446
  }
406
- .magritte-textarea-layout-hug___tdCMY_2-2-2 .magritte-textarea-wrapper___yD7G6_2-2-2{
447
+ .magritte-textarea-layout-hug___tdCMY_2-2-4 .magritte-textarea-wrapper___yD7G6_2-2-4{
407
448
  display:grid;
408
449
  }
409
- .magritte-textarea-layout-hug___tdCMY_2-2-2 .magritte-textarea-wrapper___yD7G6_2-2-2::after,
410
- .magritte-textarea-layout-hug___tdCMY_2-2-2 .magritte-textarea-wrapper___yD7G6_2-2-2 .magritte-native-element___a0RAE_2-2-2{
450
+ .magritte-textarea-layout-hug___tdCMY_2-2-4 .magritte-textarea-wrapper___yD7G6_2-2-4::after,
451
+ .magritte-textarea-layout-hug___tdCMY_2-2-4 .magritte-textarea-wrapper___yD7G6_2-2-4 .magritte-native-element___a0RAE_2-2-4{
411
452
  grid-area:1 / 1 / 2 / 2;
412
453
  overflow:hidden;
413
454
  width:auto;
414
455
  }
415
- .magritte-textarea-layout-hug___tdCMY_2-2-2 .magritte-textarea-wrapper___yD7G6_2-2-2::after{
416
- font-family:var(--magritte-typography-label-2-regular-font-family-v22-0-0);
417
- font-weight:var(--magritte-typography-label-2-regular-font-weight-v22-0-0);
418
- line-height:var(--magritte-typography-label-2-regular-line-height-v22-0-0);
419
- font-size:var(--magritte-typography-label-2-regular-font-size-v22-0-0);
420
- letter-spacing:var(--magritte-typography-label-2-regular-letter-spacing-v22-0-0);
421
- text-indent:var(--magritte-typography-label-2-regular-text-indent-v22-0-0);
422
- text-transform:var(--magritte-typography-label-2-regular-text-transform-v22-0-0);
423
- text-decoration:var(--magritte-typography-label-2-regular-text-decoration-v22-0-0);
456
+ .magritte-textarea-layout-hug___tdCMY_2-2-4 .magritte-textarea-wrapper___yD7G6_2-2-4::after{
457
+ font-family:var(--magritte-typography-label-2-regular-font-family-v22-1-0);
458
+ font-weight:var(--magritte-typography-label-2-regular-font-weight-v22-1-0);
459
+ line-height:var(--magritte-typography-label-2-regular-line-height-v22-1-0);
460
+ font-size:var(--magritte-typography-label-2-regular-font-size-v22-1-0);
461
+ letter-spacing:var(--magritte-typography-label-2-regular-letter-spacing-v22-1-0);
462
+ text-indent:var(--magritte-typography-label-2-regular-text-indent-v22-1-0);
463
+ text-transform:var(--magritte-typography-label-2-regular-text-transform-v22-1-0);
464
+ text-decoration:var(--magritte-typography-label-2-regular-text-decoration-v22-1-0);
424
465
  box-sizing:border-box;
425
466
  border:0;
426
467
  width:100%;
427
468
  padding:0 14px 0 16px;
428
- color:var(--magritte-color-component-input-text-content-v22-0-0);
429
- caret-color:var(--magritte-ui-textarea-caret-color-override, var(--magritte-color-text-primary-v22-0-0));
469
+ color:var(--magritte-color-component-input-text-content-v22-1-0);
470
+ caret-color:var(--magritte-ui-textarea-caret-color-override, var(--magritte-color-text-primary-v22-1-0));
430
471
  content:attr(data-replicated-value) ' ';
431
472
  white-space:pre-wrap;
432
473
  visibility:hidden;
433
474
  }
434
- .magritte-textarea-position-container___cEpbv_2-2-2{
475
+ .magritte-textarea-position-container___cEpbv_2-2-4{
435
476
  display:inline-flex;
436
477
  overflow:hidden;
437
478
  position:relative;
438
479
  width:100%;
439
480
  border-radius:12px;
440
- background-color:var(--magritte-color-component-input-background-field-v22-0-0);
441
- padding:var(--magritte-typography-label-4-regular-line-height-v22-0-0) 2px 16px 0;
481
+ background-color:var(--magritte-color-component-input-background-field-v22-1-0);
482
+ padding:var(--magritte-typography-label-4-regular-line-height-v22-1-0) 2px 16px 0;
442
483
  cursor:text;
443
484
  box-sizing:border-box;
444
- box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-field-v22-0-0);
485
+ box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-field-v22-1-0);
445
486
  }
446
- .magritte-textarea-position-container___cEpbv_2-2-2::-webkit-resizer{
487
+ .magritte-textarea-position-container___cEpbv_2-2-4::-webkit-resizer{
447
488
  display:none;
448
489
  }
449
- .magritte-textarea-elevated___S0jk-_2-2-2 .magritte-textarea-position-container___cEpbv_2-2-2{
450
- padding-top:calc(var(--magritte-typography-label-4-regular-line-height-v22-0-0) + 18px);
490
+ .magritte-textarea-elevated___S0jk-_2-2-4 .magritte-textarea-position-container___cEpbv_2-2-4{
491
+ padding-top:calc(var(--magritte-typography-label-4-regular-line-height-v22-1-0) + 18px);
451
492
  }
452
- .magritte-textarea-limited___cU1Rg_2-2-2 .magritte-textarea-position-container___cEpbv_2-2-2{
493
+ .magritte-textarea-limited___cU1Rg_2-2-4 .magritte-textarea-position-container___cEpbv_2-2-4{
453
494
  padding-bottom:30px;
454
495
  }
455
- .magritte-min-height-48___jGf5Z_2-2-2 .magritte-textarea-position-container___cEpbv_2-2-2{
496
+ .magritte-min-height-48___jGf5Z_2-2-4 .magritte-textarea-position-container___cEpbv_2-2-4{
456
497
  padding-top:12px;
457
498
  padding-bottom:12px;
458
499
  min-height:48px;
459
500
  }
460
- .magritte-min-height-56___2yI39_2-2-2 .magritte-textarea-position-container___cEpbv_2-2-2{
501
+ .magritte-min-height-56___2yI39_2-2-4 .magritte-textarea-position-container___cEpbv_2-2-4{
461
502
  padding-top:16px;
462
503
  padding-bottom:16px;
463
504
  min-height:56px;
464
505
  }
465
- .magritte-min-height-default___zwRcq_2-2-2 .magritte-textarea-position-container___cEpbv_2-2-2{
506
+ .magritte-min-height-default___zwRcq_2-2-4 .magritte-textarea-position-container___cEpbv_2-2-4{
466
507
  min-height:112px;
467
508
  }
468
- .magritte-textarea-elevated___S0jk-_2-2-2.magritte-min-height-48___jGf5Z_2-2-2 .magritte-textarea-position-container___cEpbv_2-2-2{
509
+ .magritte-textarea-elevated___S0jk-_2-2-4.magritte-min-height-48___jGf5Z_2-2-4 .magritte-textarea-position-container___cEpbv_2-2-4{
469
510
  padding-top:22px;
470
511
  padding-bottom:4px;
471
512
  }
472
- .magritte-textarea-elevated___S0jk-_2-2-2.magritte-min-height-56___2yI39_2-2-2 .magritte-textarea-position-container___cEpbv_2-2-2{
513
+ .magritte-textarea-elevated___S0jk-_2-2-4.magritte-min-height-56___2yI39_2-2-4 .magritte-textarea-position-container___cEpbv_2-2-4{
473
514
  padding-top:26px;
474
515
  padding-bottom:8px;
475
516
  }
476
- .magritte-textarea-limited___cU1Rg_2-2-2.magritte-min-height-48___jGf5Z_2-2-2 .magritte-textarea-position-container___cEpbv_2-2-2{
517
+ .magritte-textarea-limited___cU1Rg_2-2-4.magritte-min-height-48___jGf5Z_2-2-4 .magritte-textarea-position-container___cEpbv_2-2-4{
477
518
  padding-bottom:26px;
478
519
  }
479
- .magritte-textarea-limited___cU1Rg_2-2-2.magritte-min-height-56___2yI39_2-2-2 .magritte-textarea-position-container___cEpbv_2-2-2{
520
+ .magritte-textarea-limited___cU1Rg_2-2-4.magritte-min-height-56___2yI39_2-2-4 .magritte-textarea-position-container___cEpbv_2-2-4{
480
521
  padding-bottom:30px;
481
522
  }
482
- .magritte-textarea-animation-timeout___zudbr_2-2-2,
483
- .magritte-textarea-position-container___cEpbv_2-2-2{
523
+ .magritte-textarea-animation-timeout___zudbr_2-2-4,
524
+ .magritte-textarea-position-container___cEpbv_2-2-4{
484
525
  transition-property:transform, color, font-size, letter-spacing;
485
526
  transition-duration:var(--animation-100-duration);
486
- transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v22-0-0);
487
- --animation-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v22-0-0);
527
+ transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v22-1-0);
528
+ --animation-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v22-1-0);
488
529
  }
489
- .magritte-textarea-rigging-container___-1S6i_2-2-2{
530
+ .magritte-textarea-rigging-container___-1S6i_2-2-4{
490
531
  position:absolute;
491
532
  pointer-events:none;
492
533
  left:16px;
493
534
  right:16px;
494
535
  top:0;
495
536
  }
496
- .magritte-textarea-label___sgTIH_2-2-2{
497
- font-family:var(--magritte-typography-label-2-regular-font-family-v22-0-0);
498
- font-weight:var(--magritte-typography-label-2-regular-font-weight-v22-0-0);
499
- line-height:var(--magritte-typography-label-2-regular-line-height-v22-0-0);
500
- font-size:var(--magritte-typography-label-2-regular-font-size-v22-0-0);
501
- letter-spacing:var(--magritte-typography-label-2-regular-letter-spacing-v22-0-0);
502
- text-indent:var(--magritte-typography-label-2-regular-text-indent-v22-0-0);
503
- text-transform:var(--magritte-typography-label-2-regular-text-transform-v22-0-0);
504
- text-decoration:var(--magritte-typography-label-2-regular-text-decoration-v22-0-0);
537
+ .magritte-textarea-label___sgTIH_2-2-4{
538
+ font-family:var(--magritte-typography-label-2-regular-font-family-v22-1-0);
539
+ font-weight:var(--magritte-typography-label-2-regular-font-weight-v22-1-0);
540
+ line-height:var(--magritte-typography-label-2-regular-line-height-v22-1-0);
541
+ font-size:var(--magritte-typography-label-2-regular-font-size-v22-1-0);
542
+ letter-spacing:var(--magritte-typography-label-2-regular-letter-spacing-v22-1-0);
543
+ text-indent:var(--magritte-typography-label-2-regular-text-indent-v22-1-0);
544
+ text-transform:var(--magritte-typography-label-2-regular-text-transform-v22-1-0);
545
+ text-decoration:var(--magritte-typography-label-2-regular-text-decoration-v22-1-0);
505
546
  display:block;
506
547
  white-space:nowrap;
507
548
  overflow:hidden;
508
549
  text-overflow:ellipsis;
509
550
  user-select:none;
510
- padding-top:var(--magritte-typography-label-4-regular-line-height-v22-0-0);
511
- color:var(--magritte-color-component-input-text-placeholder-v22-0-0);
551
+ padding-top:var(--magritte-typography-label-4-regular-line-height-v22-1-0);
552
+ color:var(--magritte-color-component-input-text-placeholder-v22-1-0);
512
553
  transition-property:transform, color, font-size, letter-spacing;
513
554
  transition-duration:var(--animation-100-duration);
514
- transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v22-0-0);
555
+ transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v22-1-0);
515
556
  }
516
- .magritte-min-height-48___jGf5Z_2-2-2 .magritte-textarea-label___sgTIH_2-2-2{
557
+ .magritte-min-height-48___jGf5Z_2-2-4 .magritte-textarea-label___sgTIH_2-2-4{
517
558
  padding-top:12px;
518
559
  }
519
- .magritte-min-height-56___2yI39_2-2-2 .magritte-textarea-label___sgTIH_2-2-2{
560
+ .magritte-min-height-56___2yI39_2-2-4 .magritte-textarea-label___sgTIH_2-2-4{
520
561
  padding-top:16px;
521
562
  }
522
- .magritte-textarea-label-elevated___0lxOI_2-2-2{
523
- font-family:var(--magritte-typography-label-4-regular-font-family-v22-0-0);
524
- font-weight:var(--magritte-typography-label-4-regular-font-weight-v22-0-0);
525
- line-height:var(--magritte-typography-label-4-regular-line-height-v22-0-0);
526
- font-size:var(--magritte-typography-label-4-regular-font-size-v22-0-0);
527
- letter-spacing:var(--magritte-typography-label-4-regular-letter-spacing-v22-0-0);
528
- text-indent:var(--magritte-typography-label-4-regular-text-indent-v22-0-0);
529
- text-transform:var(--magritte-typography-label-4-regular-text-transform-v22-0-0);
530
- text-decoration:var(--magritte-typography-label-4-regular-text-decoration-v22-0-0);
563
+ .magritte-textarea-label-elevated___0lxOI_2-2-4{
564
+ font-family:var(--magritte-typography-label-4-regular-font-family-v22-1-0);
565
+ font-weight:var(--magritte-typography-label-4-regular-font-weight-v22-1-0);
566
+ line-height:var(--magritte-typography-label-4-regular-line-height-v22-1-0);
567
+ font-size:var(--magritte-typography-label-4-regular-font-size-v22-1-0);
568
+ letter-spacing:var(--magritte-typography-label-4-regular-letter-spacing-v22-1-0);
569
+ text-indent:var(--magritte-typography-label-4-regular-text-indent-v22-1-0);
570
+ text-transform:var(--magritte-typography-label-4-regular-text-transform-v22-1-0);
571
+ text-decoration:var(--magritte-typography-label-4-regular-text-decoration-v22-1-0);
531
572
  --elevated-placeholder-gap:8px;
532
- color:var(--magritte-color-component-input-text-label-v22-0-0);
533
- transform:translateY(calc(var(--elevated-placeholder-gap) - var(--magritte-typography-label-2-regular-line-height-v22-0-0) / 2));
573
+ color:var(--magritte-color-component-input-text-label-v22-1-0);
574
+ transform:translateY(calc(var(--elevated-placeholder-gap) - var(--magritte-typography-label-2-regular-line-height-v22-1-0) / 2));
534
575
  }
535
- .magritte-min-height-48___jGf5Z_2-2-2 .magritte-textarea-label-elevated___0lxOI_2-2-2{
576
+ .magritte-min-height-48___jGf5Z_2-2-4 .magritte-textarea-label-elevated___0lxOI_2-2-4{
536
577
  --elevated-placeholder-gap:3px;
537
578
  }
538
- .magritte-min-height-56___2yI39_2-2-2 .magritte-textarea-label-elevated___0lxOI_2-2-2{
579
+ .magritte-min-height-56___2yI39_2-2-4 .magritte-textarea-label-elevated___0lxOI_2-2-4{
539
580
  --elevated-placeholder-gap:3px;
540
581
  }
541
- .magritte-textarea-limit___IjPJy_2-2-2{
582
+ .magritte-textarea-limit___IjPJy_2-2-4{
542
583
  position:absolute;
543
584
  bottom:10px;
544
585
  right:28px;
545
586
  left:16px;
546
587
  text-align:right;
547
- background-color:var(--magritte-color-component-input-background-field-v22-0-0);
588
+ background-color:var(--magritte-color-component-input-background-field-v22-1-0);
548
589
  pointer-events:none;
549
- --magritte-ui-text-color-override:var(--magritte-color-component-input-text-limit-v22-0-0);
590
+ --magritte-ui-text-color-override:var(--magritte-color-component-input-text-limit-v22-1-0);
550
591
  }
551
- .magritte-textarea-grip___iL7lq_2-2-2{
592
+ .magritte-textarea-grip___iL7lq_2-2-4{
552
593
  position:absolute;
553
594
  pointer-events:none;
554
595
  display:inline-flex;
555
596
  bottom:4px;
556
597
  right:4px;
557
598
  border-bottom-right-radius:12px;
558
- --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-grip-v22-0-0);
599
+ --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-grip-v22-1-0);
559
600
  }
560
- .magritte-textarea-grip-icon___YK-9w_2-2-2{
601
+ .magritte-textarea-grip-icon___YK-9w_2-2-4{
561
602
  display:inline-flex;
562
603
  z-index:1;
563
604
  }
564
605
  @media (prefers-reduced-motion: no-preference){
565
- .magritte-textarea-limit-enter___CygGz_2-2-2{
606
+ .magritte-textarea-limit-enter___CygGz_2-2-4{
566
607
  opacity:0;
567
608
  }
568
- .magritte-textarea-limit-exit___RMp-R_2-2-2,
569
- .magritte-textarea-limit-enter-active___8vN-t_2-2-2{
609
+ .magritte-textarea-limit-exit___RMp-R_2-2-4,
610
+ .magritte-textarea-limit-enter-active___8vN-t_2-2-4{
570
611
  opacity:1;
571
612
  }
572
- .magritte-textarea-limit-enter-active___8vN-t_2-2-2{
613
+ .magritte-textarea-limit-enter-active___8vN-t_2-2-4{
573
614
  transition-property:opacity;
574
- transition-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v22-0-0);
575
- transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v22-0-0);
576
- --animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v22-0-0);
615
+ transition-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v22-1-0);
616
+ transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v22-1-0);
617
+ --animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v22-1-0);
577
618
  }
578
- .magritte-textarea-limit-exit-active___a5kBr_2-2-2{
619
+ .magritte-textarea-limit-exit-active___a5kBr_2-2-4{
579
620
  opacity:0;
580
621
  transition-property:opacity;
581
- transition-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v22-0-0);
582
- transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v22-0-0);
622
+ transition-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v22-1-0);
623
+ transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v22-1-0);
583
624
  }
584
625
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-textarea",
3
- "version": "2.2.2",
3
+ "version": "2.2.4",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -21,12 +21,13 @@
21
21
  "dependencies": {
22
22
  "@hh.ru/magritte-common-use-disabled": "1.0.12",
23
23
  "@hh.ru/magritte-common-use-multiple-refs": "1.1.7",
24
- "@hh.ru/magritte-ui-bottom-sheet": "7.3.2",
24
+ "@hh.ru/magritte-design-tokens": "22.1.0",
25
+ "@hh.ru/magritte-ui-bottom-sheet": "8.0.0",
25
26
  "@hh.ru/magritte-ui-breakpoint": "5.0.3",
26
- "@hh.ru/magritte-ui-form-helper": "1.0.42",
27
- "@hh.ru/magritte-ui-icon": "11.1.0",
28
- "@hh.ru/magritte-ui-input": "8.0.1",
29
- "@hh.ru/magritte-ui-typography": "3.0.47"
27
+ "@hh.ru/magritte-ui-form-helper": "2.0.0",
28
+ "@hh.ru/magritte-ui-icon": "12.0.0",
29
+ "@hh.ru/magritte-ui-input": "9.0.0",
30
+ "@hh.ru/magritte-ui-typography": "4.0.0"
30
31
  },
31
32
  "peerDependencies": {
32
33
  "classnames": ">=2.3.2",
@@ -36,5 +37,5 @@
36
37
  "publishConfig": {
37
38
  "access": "public"
38
39
  },
39
- "gitHead": "5b83b8f36a1aa79857e35ef038d9d32abef39be0"
40
+ "gitHead": "a823b2d582e812bf99b5fdf32058a93eaa59076b"
40
41
  }
package/types.d.ts CHANGED
@@ -36,7 +36,7 @@ interface ValidatorMaxLength {
36
36
  /** Лимит на количество символов, отображает текущее состояние и лимит */
37
37
  maxLength: number;
38
38
  /** Функция для связывания внешней валидации с внутренней */
39
- onValidate: (invalidState: {
39
+ onValidate?: (invalidState: {
40
40
  invalidLimit: boolean;
41
41
  }) => void;
42
42
  }