@hh.ru/magritte-ui-trigger 4.0.2 → 4.0.3

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/Trigger.js CHANGED
@@ -9,7 +9,7 @@ import { useMultipleRefs } from '@hh.ru/magritte-common-use-multiple-refs';
9
9
  import { FormHelper } from '@hh.ru/magritte-ui-form-helper';
10
10
  import { CrossOutlinedSize24, ChevronDownOutlinedSize24, CrossOutlinedSize16, ChevronDownOutlinedSize16 } from '@hh.ru/magritte-ui-icon/icon';
11
11
 
12
- var styles = {"trigger-root":"magritte-trigger-root___dPhW4_4-0-2","triggerRoot":"magritte-trigger-root___dPhW4_4-0-2","disabled":"magritte-disabled___ZTuRA_4-0-2","trigger-root_stretched":"magritte-trigger-root_stretched___IhAsT_4-0-2","triggerRootStretched":"magritte-trigger-root_stretched___IhAsT_4-0-2","trigger":"magritte-trigger___IpHhR_4-0-2","xsmall":"magritte-xsmall___8iEkS_4-0-2","applied":"magritte-applied___jrfWs_4-0-2","content":"magritte-content___5eg6m_4-0-2","label_elevated":"magritte-label_elevated___N0xnk_4-0-2","labelElevated":"magritte-label_elevated___N0xnk_4-0-2","postfix":"magritte-postfix___u4999_4-0-2","small":"magritte-small___DphY3_4-0-2","medium":"magritte-medium___0kuIk_4-0-2","large":"magritte-large___1eRM6_4-0-2","invalid":"magritte-invalid___Xlbyg_4-0-2","icon":"magritte-icon___HbC0r_4-0-2","selected":"magritte-selected___NjQNn_4-0-2","content_medium":"magritte-content_medium___VnlIy_4-0-2","contentMedium":"magritte-content_medium___VnlIy_4-0-2","content_large":"magritte-content_large___byZTA_4-0-2","contentLarge":"magritte-content_large___byZTA_4-0-2","content_label-can-be-elevated":"magritte-content_label-can-be-elevated___HRkpl_4-0-2","contentLabelCanBeElevated":"magritte-content_label-can-be-elevated___HRkpl_4-0-2","values-wrapper":"magritte-values-wrapper___yQbdl_4-0-2","valuesWrapper":"magritte-values-wrapper___yQbdl_4-0-2","values-wrapper_label-can-elevated":"magritte-values-wrapper_label-can-elevated___A0bzp_4-0-2","valuesWrapperLabelCanElevated":"magritte-values-wrapper_label-can-elevated___A0bzp_4-0-2","values":"magritte-values___6wj-v_4-0-2","label":"magritte-label___VsUEF_4-0-2","icon_expanded":"magritte-icon_expanded___ggr1u_4-0-2","iconExpanded":"magritte-icon_expanded___ggr1u_4-0-2","postfix_metric":"magritte-postfix_metric___jO3qH_4-0-2","postfixMetric":"magritte-postfix_metric___jO3qH_4-0-2"};
12
+ var styles = {"trigger-root":"magritte-trigger-root___dPhW4_4-0-3","triggerRoot":"magritte-trigger-root___dPhW4_4-0-3","disabled":"magritte-disabled___ZTuRA_4-0-3","trigger-root_stretched":"magritte-trigger-root_stretched___IhAsT_4-0-3","triggerRootStretched":"magritte-trigger-root_stretched___IhAsT_4-0-3","trigger":"magritte-trigger___IpHhR_4-0-3","xsmall":"magritte-xsmall___8iEkS_4-0-3","applied":"magritte-applied___jrfWs_4-0-3","content":"magritte-content___5eg6m_4-0-3","label_elevated":"magritte-label_elevated___N0xnk_4-0-3","labelElevated":"magritte-label_elevated___N0xnk_4-0-3","postfix":"magritte-postfix___u4999_4-0-3","small":"magritte-small___DphY3_4-0-3","medium":"magritte-medium___0kuIk_4-0-3","large":"magritte-large___1eRM6_4-0-3","invalid":"magritte-invalid___Xlbyg_4-0-3","icon":"magritte-icon___HbC0r_4-0-3","selected":"magritte-selected___NjQNn_4-0-3","content_medium":"magritte-content_medium___VnlIy_4-0-3","contentMedium":"magritte-content_medium___VnlIy_4-0-3","content_large":"magritte-content_large___byZTA_4-0-3","contentLarge":"magritte-content_large___byZTA_4-0-3","content_label-can-be-elevated":"magritte-content_label-can-be-elevated___HRkpl_4-0-3","contentLabelCanBeElevated":"magritte-content_label-can-be-elevated___HRkpl_4-0-3","values-wrapper":"magritte-values-wrapper___yQbdl_4-0-3","valuesWrapper":"magritte-values-wrapper___yQbdl_4-0-3","values-wrapper_label-can-elevated":"magritte-values-wrapper_label-can-elevated___A0bzp_4-0-3","valuesWrapperLabelCanElevated":"magritte-values-wrapper_label-can-elevated___A0bzp_4-0-3","values":"magritte-values___6wj-v_4-0-3","label":"magritte-label___VsUEF_4-0-3","icon_expanded":"magritte-icon_expanded___ggr1u_4-0-3","iconExpanded":"magritte-icon_expanded___ggr1u_4-0-3","postfix_metric":"magritte-postfix_metric___jO3qH_4-0-3","postfixMetric":"magritte-postfix_metric___jO3qH_4-0-3"};
13
13
 
14
14
  // расчитываем размер шеврона на базе `size`
15
15
  // если состояние `applied`, то нужно использовать крест
package/Trigger.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Trigger.js","sources":["../src/Trigger.tsx"],"sourcesContent":["import {\n useCallback,\n KeyboardEventHandler,\n useRef,\n ReactNode,\n useMemo,\n useLayoutEffect,\n useState,\n forwardRef,\n ForwardedRef,\n ReactElement,\n MouseEventHandler,\n} from 'react';\nimport classnames from 'classnames';\n\nimport { throttle } from '@hh.ru/magritte-common-func-utils';\nimport { keyboardKeys, keyboardMatches } from '@hh.ru/magritte-common-keyboard';\nimport { useResize } from '@hh.ru/magritte-common-resize';\nimport { useMultipleRefs } from '@hh.ru/magritte-common-use-multiple-refs';\nimport { FormHelper } from '@hh.ru/magritte-ui-form-helper';\nimport {\n ChevronDownOutlinedSize16,\n ChevronDownOutlinedSize24,\n CrossOutlinedSize16,\n CrossOutlinedSize24,\n} from '@hh.ru/magritte-ui-icon/icon';\nimport { type IconWrapperComponentSize24, type IconWrapperComponentSize16 } from '@hh.ru/magritte-ui-icon/iconTypes';\nimport { TriggerProps, TriggerSize } from '@hh.ru/magritte-ui-trigger/types';\n\nimport styles from './trigger.less';\n\n// расчитываем размер шеврона на базе `size`\n// если состояние `applied`, то нужно использовать крест\nconst getIcon = (size: TriggerSize, applied: boolean): IconWrapperComponentSize24 | IconWrapperComponentSize16 => {\n if (size === 'large' || size === 'medium') {\n if (applied) {\n return CrossOutlinedSize24;\n }\n return ChevronDownOutlinedSize24;\n }\n if (applied) {\n return CrossOutlinedSize16;\n }\n return ChevronDownOutlinedSize16;\n};\n\nconst defaultRenderFormattedValue = (value: ReactNode, index: number, length: number) => {\n return (\n <>\n {value}\n {index !== length - 1 && ', '}\n </>\n );\n};\n\nexport const TriggerComponent = (\n {\n applied,\n description,\n disabled,\n expanded,\n maxWidth,\n invalid,\n values = [],\n label,\n elevateLabel,\n errorMessage,\n renderFormattedValue = defaultRenderFormattedValue,\n trls,\n stretched,\n size,\n showPostfix,\n onChange,\n onClear,\n onFocus,\n onKeyDown,\n onBlur,\n 'data-qa': dataQa,\n }: TriggerProps,\n ref: ForwardedRef<HTMLElement>\n): ReactElement => {\n const triggerRef = useRef<HTMLDivElement>(null);\n const triggerRefCallback = useMultipleRefs(ref, triggerRef);\n const itemsRefs = useRef<HTMLElement[]>([]);\n const itemsWrapperRef = useRef<HTMLDivElement>(null);\n const postfixMetricRef = useRef<HTMLDivElement>(null);\n const showValues = values.length > 0;\n const labelCanBeElevated = size === 'large' && !!elevateLabel && !!label;\n const labelIsElevated = showValues && labelCanBeElevated;\n const IconComponent = getIcon(size, Boolean(applied));\n const [postfix, setPostfix] = useState<number>(0);\n const postfixRef = useRef<number>(postfix);\n postfixRef.current = postfix;\n const formattedValues = useMemo(() => {\n itemsRefs.current = [];\n return values.map((value, index) => (\n <span key={index} ref={(element) => element && (itemsRefs.current[index] = element)}>\n {renderFormattedValue(value, index, values.length)}\n </span>\n ));\n }, [renderFormattedValue, values]);\n\n const handleClickTrigger = useCallback(() => {\n onChange(!expanded);\n }, [onChange, expanded]);\n\n const handleKeyDownTrigger = useCallback<KeyboardEventHandler>(\n (event) => {\n if (keyboardMatches(event.nativeEvent, [keyboardKeys.Space])) {\n onChange(!expanded);\n }\n onKeyDown?.(event);\n },\n [onChange, onKeyDown, expanded]\n );\n\n const handleMouseDownClear = useCallback<MouseEventHandler>(\n (event) => {\n onClear?.();\n event.preventDefault();\n },\n [onClear]\n );\n\n const handleKeyDownClear = useCallback<KeyboardEventHandler>(\n (event) => {\n if (keyboardMatches(event.nativeEvent, [keyboardKeys.Space])) {\n onClear?.();\n triggerRef.current?.focus();\n event.stopPropagation();\n }\n },\n [onClear]\n );\n\n // eslint-disable-next-line disable-autofix/react-hooks/exhaustive-deps\n const calcPostfix = useCallback(\n throttle(() => {\n if (!itemsWrapperRef.current || !postfixMetricRef.current) {\n return;\n }\n if (!showPostfix) {\n return;\n }\n // перевод в постфиксе может поменяться, а ширину надо учесть\n postfixMetricRef.current.style.display = 'inline';\n const postfixRect = postfixMetricRef.current.getBoundingClientRect();\n const postfixWidth = postfixRect.width;\n postfixMetricRef.current.style.display = 'none';\n const parentRect = itemsWrapperRef.current.getBoundingClientRect();\n const parentWidth = parentRect.width;\n // если постфикс виден, то ширину его не учитываем (реф стоит на values)\n const parentWidthWithoutPostfix = parentWidth - (postfixRef.current === 0 ? postfixWidth : 0);\n // ищем первый элемент, где значения схлопываются в ...\n let truncatedItemIndex = -1;\n let childrenWidth = 0;\n itemsRefs.current.forEach((itemRef, index) => {\n const itemRect = itemRef.getBoundingClientRect();\n childrenWidth += itemRect.width;\n if (truncatedItemIndex === -1 && childrenWidth > parentWidthWithoutPostfix) {\n truncatedItemIndex = index;\n }\n });\n // проверяем, есть ли ... в тригере\n if (Math.abs(parentWidth - childrenWidth) < 1) {\n setPostfix(0);\n return;\n }\n const length = values.length - 1;\n if (truncatedItemIndex === -1 || truncatedItemIndex === length) {\n setPostfix(0);\n return;\n }\n setPostfix(length - truncatedItemIndex);\n }, 50),\n [values, showPostfix, maxWidth]\n );\n\n useLayoutEffect(calcPostfix, [calcPostfix]);\n useResize(calcPostfix);\n\n return (\n <div\n className={classnames(styles.triggerRoot, { [styles.triggerRootStretched]: stretched })}\n style={maxWidth ? { maxWidth } : {}}\n >\n <div\n ref={triggerRefCallback}\n className={classnames(styles.trigger, styles[size], {\n [styles.applied]: applied,\n [styles.disabled]: disabled,\n [styles.invalid]: invalid,\n [styles.selected]: showValues,\n })}\n onClick={!disabled ? handleClickTrigger : undefined}\n onKeyDown={!disabled ? handleKeyDownTrigger : undefined}\n onFocus={onFocus}\n onBlur={onBlur}\n tabIndex={disabled ? -1 : 0}\n data-qa={dataQa || 'trigger-root'}\n >\n <div\n className={classnames(styles.content, styles[`content_${size}`], {\n [styles.contentLabelCanBeElevated]: labelCanBeElevated,\n })}\n >\n {labelCanBeElevated && (\n <div\n className={classnames(styles.label, {\n [styles.labelElevated]: labelIsElevated,\n })}\n >\n {label}\n </div>\n )}\n {!labelCanBeElevated && !showValues && <div className={styles.label}>{label}</div>}\n {showValues && (\n <div\n className={classnames(styles.valuesWrapper, {\n [styles.valuesWrapperLabelCanElevated]: labelIsElevated,\n })}\n >\n <div ref={itemsWrapperRef} className={styles.values} data-qa=\"trigger-values-wrapper\">\n {formattedValues}\n </div>\n {showPostfix && postfix > 0 && (\n <div\n className={styles.postfix}\n data-qa=\"trigger-postfix\"\n >{`${trls?.postfix} ${postfix}`}</div>\n )}\n </div>\n )}\n {showPostfix && (\n <span\n ref={postfixMetricRef}\n className={classnames(styles.postfix, styles.postfixMetric)}\n data-qa=\"trigger-postfix-metric\"\n >{`${trls?.postfix} ${postfix || 1}`}</span>\n )}\n </div>\n {!applied && (\n <div\n className={classnames(styles.icon, {\n [styles.iconExpanded]: expanded,\n })}\n >\n <IconComponent />\n </div>\n )}\n {applied && (\n <div className={styles.icon}>\n <IconComponent\n borderRadius=\"halfHeight\"\n onClick={() => null}\n onKeyDown={handleKeyDownClear}\n onMouseDown={handleMouseDownClear}\n disabled={disabled}\n />\n </div>\n )}\n </div>\n <FormHelper description={description} errorMessage={errorMessage} disabled={disabled} invalid={invalid} />\n </div>\n );\n};\n\nexport const Trigger = forwardRef(TriggerComponent) as (\n props: TriggerProps & { ref?: ForwardedRef<HTMLElement> }\n) => ReactElement;\n"],"names":["_jsxs","_Fragment","_jsx"],"mappings":";;;;;;;;;;;;AA+BA;AACA;AACA,MAAM,OAAO,GAAG,CAAC,IAAiB,EAAE,OAAgB,K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Y,EAAC,YAAY,EACzB,OAAO,EAAE,MAAM,IAAI,EACnB,SAAS,EAAE,kBAAkB,EAC7B,WAAW,EAAE,oBAAoB,EACjC,QAAQ,EAAE,QAAQ,EAAA,CACpB,EACA,CAAA,CACT,CACC,EAAA,CAAA,EACNA,GAAC,CAAA,UAAU,IAAC,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAI,CAAA,CAAA,EAAA,CACxG,EACR;AACN,EAAE;MAEW,OAAO,GAAG,UAAU,CAAC,gBAAgB;;;;"}
1
+ {"version":3,"file":"Trigger.js","sources":["../src/Trigger.tsx"],"sourcesContent":["import {\n useCallback,\n KeyboardEventHandler,\n useRef,\n ReactNode,\n useMemo,\n useLayoutEffect,\n useState,\n forwardRef,\n ForwardedRef,\n ReactElement,\n MouseEventHandler,\n} from 'react';\nimport classnames from 'classnames';\n\nimport { throttle } from '@hh.ru/magritte-common-func-utils';\nimport { keyboardKeys, keyboardMatches } from '@hh.ru/magritte-common-keyboard';\nimport { useResize } from '@hh.ru/magritte-common-resize';\nimport { useMultipleRefs } from '@hh.ru/magritte-common-use-multiple-refs';\nimport { FormHelper } from '@hh.ru/magritte-ui-form-helper';\nimport {\n ChevronDownOutlinedSize16,\n ChevronDownOutlinedSize24,\n CrossOutlinedSize16,\n CrossOutlinedSize24,\n} from '@hh.ru/magritte-ui-icon/icon';\nimport { type IconWrapperComponentSize24, type IconWrapperComponentSize16 } from '@hh.ru/magritte-ui-icon/types';\nimport { TriggerProps, TriggerSize } from '@hh.ru/magritte-ui-trigger/types';\n\nimport styles from './trigger.less';\n\n// расчитываем размер шеврона на базе `size`\n// если состояние `applied`, то нужно использовать крест\nconst getIcon = (size: TriggerSize, applied: boolean): IconWrapperComponentSize24 | IconWrapperComponentSize16 => {\n if (size === 'large' || size === 'medium') {\n if (applied) {\n return CrossOutlinedSize24;\n }\n return ChevronDownOutlinedSize24;\n }\n if (applied) {\n return CrossOutlinedSize16;\n }\n return ChevronDownOutlinedSize16;\n};\n\nconst defaultRenderFormattedValue = (value: ReactNode, index: number, length: number) => {\n return (\n <>\n {value}\n {index !== length - 1 && ', '}\n </>\n );\n};\n\nexport const TriggerComponent = (\n {\n applied,\n description,\n disabled,\n expanded,\n maxWidth,\n invalid,\n values = [],\n label,\n elevateLabel,\n errorMessage,\n renderFormattedValue = defaultRenderFormattedValue,\n trls,\n stretched,\n size,\n showPostfix,\n onChange,\n onClear,\n onFocus,\n onKeyDown,\n onBlur,\n 'data-qa': dataQa,\n }: TriggerProps,\n ref: ForwardedRef<HTMLElement>\n): ReactElement => {\n const triggerRef = useRef<HTMLDivElement>(null);\n const triggerRefCallback = useMultipleRefs(ref, triggerRef);\n const itemsRefs = useRef<HTMLElement[]>([]);\n const itemsWrapperRef = useRef<HTMLDivElement>(null);\n const postfixMetricRef = useRef<HTMLDivElement>(null);\n const showValues = values.length > 0;\n const labelCanBeElevated = size === 'large' && !!elevateLabel && !!label;\n const labelIsElevated = showValues && labelCanBeElevated;\n const IconComponent = getIcon(size, Boolean(applied));\n const [postfix, setPostfix] = useState<number>(0);\n const postfixRef = useRef<number>(postfix);\n postfixRef.current = postfix;\n const formattedValues = useMemo(() => {\n itemsRefs.current = [];\n return values.map((value, index) => (\n <span key={index} ref={(element) => element && (itemsRefs.current[index] = element)}>\n {renderFormattedValue(value, index, values.length)}\n </span>\n ));\n }, [renderFormattedValue, values]);\n\n const handleClickTrigger = useCallback(() => {\n onChange(!expanded);\n }, [onChange, expanded]);\n\n const handleKeyDownTrigger = useCallback<KeyboardEventHandler>(\n (event) => {\n if (keyboardMatches(event.nativeEvent, [keyboardKeys.Space])) {\n onChange(!expanded);\n }\n onKeyDown?.(event);\n },\n [onChange, onKeyDown, expanded]\n );\n\n const handleMouseDownClear = useCallback<MouseEventHandler>(\n (event) => {\n onClear?.();\n event.preventDefault();\n },\n [onClear]\n );\n\n const handleKeyDownClear = useCallback<KeyboardEventHandler>(\n (event) => {\n if (keyboardMatches(event.nativeEvent, [keyboardKeys.Space])) {\n onClear?.();\n triggerRef.current?.focus();\n event.stopPropagation();\n }\n },\n [onClear]\n );\n\n // eslint-disable-next-line disable-autofix/react-hooks/exhaustive-deps\n const calcPostfix = useCallback(\n throttle(() => {\n if (!itemsWrapperRef.current || !postfixMetricRef.current) {\n return;\n }\n if (!showPostfix) {\n return;\n }\n // перевод в постфиксе может поменяться, а ширину надо учесть\n postfixMetricRef.current.style.display = 'inline';\n const postfixRect = postfixMetricRef.current.getBoundingClientRect();\n const postfixWidth = postfixRect.width;\n postfixMetricRef.current.style.display = 'none';\n const parentRect = itemsWrapperRef.current.getBoundingClientRect();\n const parentWidth = parentRect.width;\n // если постфикс виден, то ширину его не учитываем (реф стоит на values)\n const parentWidthWithoutPostfix = parentWidth - (postfixRef.current === 0 ? postfixWidth : 0);\n // ищем первый элемент, где значения схлопываются в ...\n let truncatedItemIndex = -1;\n let childrenWidth = 0;\n itemsRefs.current.forEach((itemRef, index) => {\n const itemRect = itemRef.getBoundingClientRect();\n childrenWidth += itemRect.width;\n if (truncatedItemIndex === -1 && childrenWidth > parentWidthWithoutPostfix) {\n truncatedItemIndex = index;\n }\n });\n // проверяем, есть ли ... в тригере\n if (Math.abs(parentWidth - childrenWidth) < 1) {\n setPostfix(0);\n return;\n }\n const length = values.length - 1;\n if (truncatedItemIndex === -1 || truncatedItemIndex === length) {\n setPostfix(0);\n return;\n }\n setPostfix(length - truncatedItemIndex);\n }, 50),\n [values, showPostfix, maxWidth]\n );\n\n useLayoutEffect(calcPostfix, [calcPostfix]);\n useResize(calcPostfix);\n\n return (\n <div\n className={classnames(styles.triggerRoot, { [styles.triggerRootStretched]: stretched })}\n style={maxWidth ? { maxWidth } : {}}\n >\n <div\n ref={triggerRefCallback}\n className={classnames(styles.trigger, styles[size], {\n [styles.applied]: applied,\n [styles.disabled]: disabled,\n [styles.invalid]: invalid,\n [styles.selected]: showValues,\n })}\n onClick={!disabled ? handleClickTrigger : undefined}\n onKeyDown={!disabled ? handleKeyDownTrigger : undefined}\n onFocus={onFocus}\n onBlur={onBlur}\n tabIndex={disabled ? -1 : 0}\n data-qa={dataQa || 'trigger-root'}\n >\n <div\n className={classnames(styles.content, styles[`content_${size}`], {\n [styles.contentLabelCanBeElevated]: labelCanBeElevated,\n })}\n >\n {labelCanBeElevated && (\n <div\n className={classnames(styles.label, {\n [styles.labelElevated]: labelIsElevated,\n })}\n >\n {label}\n </div>\n )}\n {!labelCanBeElevated && !showValues && <div className={styles.label}>{label}</div>}\n {showValues && (\n <div\n className={classnames(styles.valuesWrapper, {\n [styles.valuesWrapperLabelCanElevated]: labelIsElevated,\n })}\n >\n <div ref={itemsWrapperRef} className={styles.values} data-qa=\"trigger-values-wrapper\">\n {formattedValues}\n </div>\n {showPostfix && postfix > 0 && (\n <div\n className={styles.postfix}\n data-qa=\"trigger-postfix\"\n >{`${trls?.postfix} ${postfix}`}</div>\n )}\n </div>\n )}\n {showPostfix && (\n <span\n ref={postfixMetricRef}\n className={classnames(styles.postfix, styles.postfixMetric)}\n data-qa=\"trigger-postfix-metric\"\n >{`${trls?.postfix} ${postfix || 1}`}</span>\n )}\n </div>\n {!applied && (\n <div\n className={classnames(styles.icon, {\n [styles.iconExpanded]: expanded,\n })}\n >\n <IconComponent />\n </div>\n )}\n {applied && (\n <div className={styles.icon}>\n <IconComponent\n borderRadius=\"halfHeight\"\n onClick={() => null}\n onKeyDown={handleKeyDownClear}\n onMouseDown={handleMouseDownClear}\n disabled={disabled}\n />\n </div>\n )}\n </div>\n <FormHelper description={description} errorMessage={errorMessage} disabled={disabled} invalid={invalid} />\n </div>\n );\n};\n\nexport const Trigger = forwardRef(TriggerComponent) as (\n props: TriggerProps & { ref?: ForwardedRef<HTMLElement> }\n) => ReactElement;\n"],"names":["_jsxs","_Fragment","_jsx"],"mappings":";;;;;;;;;;;;AA+BA;AACA;AACA,MAAM,OAAO,GAAG,CAAC,IAAiB,EAAE,OAAgB,KA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,EAAC,YAAY,EACzB,OAAO,EAAE,MAAM,IAAI,EACnB,SAAS,EAAE,kBAAkB,EAC7B,WAAW,EAAE,oBAAoB,EACjC,QAAQ,EAAE,QAAQ,EAAA,CACpB,EACA,CAAA,CACT,CACC,EAAA,CAAA,EACNA,GAAC,CAAA,UAAU,IAAC,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAI,CAAA,CAAA,EAAA,CACxG,EACR;AACN,EAAE;MAEW,OAAO,GAAG,UAAU,CAAC,gBAAgB;;;;"}
package/index.css CHANGED
@@ -146,21 +146,21 @@
146
146
  --magritte-color-component-input-icon-state-chevron-focused-v22-1-0:#000000;
147
147
  --magritte-color-component-input-icon-state-chevron-invalid-v22-1-0:#AABBCA;
148
148
  }
149
- .magritte-trigger-root___dPhW4_4-0-2{
149
+ .magritte-trigger-root___dPhW4_4-0-3{
150
150
  display:flex;
151
151
  max-width:fit-content;
152
152
  flex-direction:column;
153
153
  --magritte-ui-form-helper-description-color-override:var(--magritte-color-component-input-text-description-v22-1-0);
154
154
  --magritte-ui-form-helper-error-color-override:var(--magritte-color-component-input-text-state-description-invalid-v22-1-0);
155
155
  }
156
- .magritte-trigger-root___dPhW4_4-0-2:has(.magritte-disabled___ZTuRA_4-0-2){
156
+ .magritte-trigger-root___dPhW4_4-0-3:has(.magritte-disabled___ZTuRA_4-0-3){
157
157
  --magritte-ui-form-helper-description-color-override:var(--magritte-color-component-input-text-state-description-disabled-v22-1-0);
158
158
  }
159
- .magritte-trigger-root_stretched___IhAsT_4-0-2{
159
+ .magritte-trigger-root_stretched___IhAsT_4-0-3{
160
160
  width:100%;
161
161
  max-width:none;
162
162
  }
163
- .magritte-trigger___IpHhR_4-0-2{
163
+ .magritte-trigger___IpHhR_4-0-3{
164
164
  display:inline-flex;
165
165
  align-items:center;
166
166
  cursor:pointer;
@@ -173,10 +173,10 @@
173
173
  border-radius:var(--magritte-core-border-radius-3-x-v22-1-0);
174
174
  --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-chevron-v22-1-0);
175
175
  }
176
- .magritte-trigger___IpHhR_4-0-2.focus-visible{
176
+ .magritte-trigger___IpHhR_4-0-3.focus-visible{
177
177
  outline:var(--magritte-color-component-input-stroke-state-accent-focused-accessible-v22-1-0) solid 4px;
178
178
  }
179
- .magritte-xsmall___8iEkS_4-0-2{
179
+ .magritte-xsmall___8iEkS_4-0-3{
180
180
  font-family:var(--magritte-typography-label-3-regular-font-family-v22-1-0);
181
181
  font-weight:var(--magritte-typography-label-3-regular-font-weight-v22-1-0);
182
182
  line-height:var(--magritte-typography-label-3-regular-line-height-v22-1-0);
@@ -187,122 +187,122 @@
187
187
  text-decoration:var(--magritte-typography-label-3-regular-text-decoration-v22-1-0);
188
188
  }
189
189
  @media (min-width: 1020px){
190
- body.magritte-old-layout .magritte-xsmall___8iEkS_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover{
190
+ body.magritte-old-layout .magritte-xsmall___8iEkS_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover{
191
191
  --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-hovered-v22-1-0);
192
192
  }
193
- body.magritte-old-layout .magritte-xsmall___8iEkS_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover .magritte-content___5eg6m_4-0-2{
193
+ body.magritte-old-layout .magritte-xsmall___8iEkS_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover .magritte-content___5eg6m_4-0-3{
194
194
  color:var(--magritte-color-component-input-text-state-label-hovered-v22-1-0);
195
195
  }
196
- body.magritte-old-layout .magritte-xsmall___8iEkS_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover .magritte-label_elevated___N0xnk_4-0-2{
196
+ body.magritte-old-layout .magritte-xsmall___8iEkS_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover .magritte-label_elevated___N0xnk_4-0-3{
197
197
  color:var(--magritte-color-component-input-text-state-label-hovered-v22-1-0);
198
198
  }
199
- body.magritte-old-layout .magritte-xsmall___8iEkS_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover .magritte-postfix___u4999_4-0-2{
199
+ body.magritte-old-layout .magritte-xsmall___8iEkS_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover .magritte-postfix___u4999_4-0-3{
200
200
  color:var(--magritte-color-component-input-text-state-postfix-hovered-v22-1-0);
201
201
  }
202
202
  }
203
203
  @media (min-width: 1024px){
204
- body:not(.magritte-old-layout) .magritte-xsmall___8iEkS_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover{
204
+ body:not(.magritte-old-layout) .magritte-xsmall___8iEkS_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover{
205
205
  --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-hovered-v22-1-0);
206
206
  }
207
- body:not(.magritte-old-layout) .magritte-xsmall___8iEkS_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover .magritte-content___5eg6m_4-0-2{
207
+ body:not(.magritte-old-layout) .magritte-xsmall___8iEkS_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover .magritte-content___5eg6m_4-0-3{
208
208
  color:var(--magritte-color-component-input-text-state-label-hovered-v22-1-0);
209
209
  }
210
- body:not(.magritte-old-layout) .magritte-xsmall___8iEkS_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover .magritte-label_elevated___N0xnk_4-0-2{
210
+ body:not(.magritte-old-layout) .magritte-xsmall___8iEkS_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover .magritte-label_elevated___N0xnk_4-0-3{
211
211
  color:var(--magritte-color-component-input-text-state-label-hovered-v22-1-0);
212
212
  }
213
- body:not(.magritte-old-layout) .magritte-xsmall___8iEkS_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover .magritte-postfix___u4999_4-0-2{
213
+ body:not(.magritte-old-layout) .magritte-xsmall___8iEkS_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover .magritte-postfix___u4999_4-0-3{
214
214
  color:var(--magritte-color-component-input-text-state-postfix-hovered-v22-1-0);
215
215
  }
216
216
  }
217
- .magritte-xsmall___8iEkS_4-0-2:focus{
217
+ .magritte-xsmall___8iEkS_4-0-3:focus{
218
218
  --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-focused-v22-1-0);
219
219
  }
220
- .magritte-xsmall___8iEkS_4-0-2:focus .magritte-content___5eg6m_4-0-2{
220
+ .magritte-xsmall___8iEkS_4-0-3:focus .magritte-content___5eg6m_4-0-3{
221
221
  color:var(--magritte-color-component-input-text-state-label-focused-v22-1-0);
222
222
  }
223
- .magritte-xsmall___8iEkS_4-0-2:focus .magritte-label_elevated___N0xnk_4-0-2{
223
+ .magritte-xsmall___8iEkS_4-0-3:focus .magritte-label_elevated___N0xnk_4-0-3{
224
224
  color:var(--magritte-color-component-input-text-state-label-focused-v22-1-0);
225
225
  }
226
- .magritte-xsmall___8iEkS_4-0-2:focus .magritte-postfix___u4999_4-0-2{
226
+ .magritte-xsmall___8iEkS_4-0-3:focus .magritte-postfix___u4999_4-0-3{
227
227
  color:var(--magritte-color-component-input-text-state-postfix-focused-v22-1-0);
228
228
  }
229
- .magritte-small___DphY3_4-0-2,
230
- .magritte-medium___0kuIk_4-0-2,
231
- .magritte-large___1eRM6_4-0-2{
229
+ .magritte-small___DphY3_4-0-3,
230
+ .magritte-medium___0kuIk_4-0-3,
231
+ .magritte-large___1eRM6_4-0-3{
232
232
  box-sizing:border-box;
233
233
  box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-field-v22-1-0);
234
234
  }
235
235
  @media (min-width: 1020px){
236
- body.magritte-old-layout .magritte-small___DphY3_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover,
237
- body.magritte-old-layout .magritte-medium___0kuIk_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover,
238
- body.magritte-old-layout .magritte-large___1eRM6_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover{
236
+ body.magritte-old-layout .magritte-small___DphY3_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover,
237
+ body.magritte-old-layout .magritte-medium___0kuIk_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover,
238
+ body.magritte-old-layout .magritte-large___1eRM6_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover{
239
239
  background-color:var(--magritte-color-component-input-background-state-field-hovered-v22-1-0);
240
240
  box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-hovered-v22-1-0);
241
241
  --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-hovered-v22-1-0);
242
242
  }
243
- body.magritte-old-layout .magritte-small___DphY3_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover .magritte-content___5eg6m_4-0-2,
244
- body.magritte-old-layout .magritte-medium___0kuIk_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover .magritte-content___5eg6m_4-0-2,
245
- body.magritte-old-layout .magritte-large___1eRM6_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover .magritte-content___5eg6m_4-0-2{
243
+ body.magritte-old-layout .magritte-small___DphY3_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover .magritte-content___5eg6m_4-0-3,
244
+ body.magritte-old-layout .magritte-medium___0kuIk_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover .magritte-content___5eg6m_4-0-3,
245
+ body.magritte-old-layout .magritte-large___1eRM6_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover .magritte-content___5eg6m_4-0-3{
246
246
  color:var(--magritte-color-component-input-text-state-label-hovered-v22-1-0);
247
247
  }
248
- body.magritte-old-layout .magritte-small___DphY3_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover .magritte-label_elevated___N0xnk_4-0-2,
249
- body.magritte-old-layout .magritte-medium___0kuIk_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover .magritte-label_elevated___N0xnk_4-0-2,
250
- body.magritte-old-layout .magritte-large___1eRM6_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover .magritte-label_elevated___N0xnk_4-0-2{
248
+ body.magritte-old-layout .magritte-small___DphY3_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover .magritte-label_elevated___N0xnk_4-0-3,
249
+ body.magritte-old-layout .magritte-medium___0kuIk_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover .magritte-label_elevated___N0xnk_4-0-3,
250
+ body.magritte-old-layout .magritte-large___1eRM6_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover .magritte-label_elevated___N0xnk_4-0-3{
251
251
  color:var(--magritte-color-component-input-text-state-label-hovered-v22-1-0);
252
252
  }
253
- body.magritte-old-layout .magritte-small___DphY3_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover .magritte-postfix___u4999_4-0-2,
254
- body.magritte-old-layout .magritte-medium___0kuIk_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover .magritte-postfix___u4999_4-0-2,
255
- body.magritte-old-layout .magritte-large___1eRM6_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover .magritte-postfix___u4999_4-0-2{
253
+ body.magritte-old-layout .magritte-small___DphY3_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover .magritte-postfix___u4999_4-0-3,
254
+ body.magritte-old-layout .magritte-medium___0kuIk_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover .magritte-postfix___u4999_4-0-3,
255
+ body.magritte-old-layout .magritte-large___1eRM6_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover .magritte-postfix___u4999_4-0-3{
256
256
  color:var(--magritte-color-component-input-text-state-postfix-hovered-v22-1-0);
257
257
  }
258
258
  }
259
259
  @media (min-width: 1024px){
260
- body:not(.magritte-old-layout) .magritte-small___DphY3_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover,
261
- body:not(.magritte-old-layout) .magritte-medium___0kuIk_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover,
262
- body:not(.magritte-old-layout) .magritte-large___1eRM6_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover{
260
+ body:not(.magritte-old-layout) .magritte-small___DphY3_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover,
261
+ body:not(.magritte-old-layout) .magritte-medium___0kuIk_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover,
262
+ body:not(.magritte-old-layout) .magritte-large___1eRM6_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover{
263
263
  background-color:var(--magritte-color-component-input-background-state-field-hovered-v22-1-0);
264
264
  box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-hovered-v22-1-0);
265
265
  --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-hovered-v22-1-0);
266
266
  }
267
- body:not(.magritte-old-layout) .magritte-small___DphY3_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover .magritte-content___5eg6m_4-0-2,
268
- body:not(.magritte-old-layout) .magritte-medium___0kuIk_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover .magritte-content___5eg6m_4-0-2,
269
- body:not(.magritte-old-layout) .magritte-large___1eRM6_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover .magritte-content___5eg6m_4-0-2{
267
+ body:not(.magritte-old-layout) .magritte-small___DphY3_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover .magritte-content___5eg6m_4-0-3,
268
+ body:not(.magritte-old-layout) .magritte-medium___0kuIk_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover .magritte-content___5eg6m_4-0-3,
269
+ body:not(.magritte-old-layout) .magritte-large___1eRM6_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover .magritte-content___5eg6m_4-0-3{
270
270
  color:var(--magritte-color-component-input-text-state-label-hovered-v22-1-0);
271
271
  }
272
- body:not(.magritte-old-layout) .magritte-small___DphY3_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover .magritte-label_elevated___N0xnk_4-0-2,
273
- body:not(.magritte-old-layout) .magritte-medium___0kuIk_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover .magritte-label_elevated___N0xnk_4-0-2,
274
- body:not(.magritte-old-layout) .magritte-large___1eRM6_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover .magritte-label_elevated___N0xnk_4-0-2{
272
+ body:not(.magritte-old-layout) .magritte-small___DphY3_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover .magritte-label_elevated___N0xnk_4-0-3,
273
+ body:not(.magritte-old-layout) .magritte-medium___0kuIk_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover .magritte-label_elevated___N0xnk_4-0-3,
274
+ body:not(.magritte-old-layout) .magritte-large___1eRM6_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover .magritte-label_elevated___N0xnk_4-0-3{
275
275
  color:var(--magritte-color-component-input-text-state-label-hovered-v22-1-0);
276
276
  }
277
- body:not(.magritte-old-layout) .magritte-small___DphY3_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover .magritte-postfix___u4999_4-0-2,
278
- body:not(.magritte-old-layout) .magritte-medium___0kuIk_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover .magritte-postfix___u4999_4-0-2,
279
- body:not(.magritte-old-layout) .magritte-large___1eRM6_4-0-2:not(:focus):not(.magritte-applied___jrfWs_4-0-2):not(.magritte-disabled___ZTuRA_4-0-2):hover .magritte-postfix___u4999_4-0-2{
277
+ body:not(.magritte-old-layout) .magritte-small___DphY3_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover .magritte-postfix___u4999_4-0-3,
278
+ body:not(.magritte-old-layout) .magritte-medium___0kuIk_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover .magritte-postfix___u4999_4-0-3,
279
+ body:not(.magritte-old-layout) .magritte-large___1eRM6_4-0-3:not(:focus):not(.magritte-applied___jrfWs_4-0-3):not(.magritte-disabled___ZTuRA_4-0-3):hover .magritte-postfix___u4999_4-0-3{
280
280
  color:var(--magritte-color-component-input-text-state-postfix-hovered-v22-1-0);
281
281
  }
282
282
  }
283
- .magritte-small___DphY3_4-0-2:focus,
284
- .magritte-medium___0kuIk_4-0-2:focus,
285
- .magritte-large___1eRM6_4-0-2:focus{
283
+ .magritte-small___DphY3_4-0-3:focus,
284
+ .magritte-medium___0kuIk_4-0-3:focus,
285
+ .magritte-large___1eRM6_4-0-3:focus{
286
286
  background-color:var(--magritte-color-component-input-background-state-field-focused-v22-1-0);
287
287
  box-shadow:inset 0 0 0 2px var(--magritte-color-component-input-stroke-state-field-focused-v22-1-0);
288
288
  --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-focused-v22-1-0);
289
289
  }
290
- .magritte-small___DphY3_4-0-2:focus .magritte-content___5eg6m_4-0-2,
291
- .magritte-medium___0kuIk_4-0-2:focus .magritte-content___5eg6m_4-0-2,
292
- .magritte-large___1eRM6_4-0-2:focus .magritte-content___5eg6m_4-0-2{
290
+ .magritte-small___DphY3_4-0-3:focus .magritte-content___5eg6m_4-0-3,
291
+ .magritte-medium___0kuIk_4-0-3:focus .magritte-content___5eg6m_4-0-3,
292
+ .magritte-large___1eRM6_4-0-3:focus .magritte-content___5eg6m_4-0-3{
293
293
  color:var(--magritte-color-component-input-text-state-label-focused-v22-1-0);
294
294
  }
295
- .magritte-small___DphY3_4-0-2:focus .magritte-label_elevated___N0xnk_4-0-2,
296
- .magritte-medium___0kuIk_4-0-2:focus .magritte-label_elevated___N0xnk_4-0-2,
297
- .magritte-large___1eRM6_4-0-2:focus .magritte-label_elevated___N0xnk_4-0-2{
295
+ .magritte-small___DphY3_4-0-3:focus .magritte-label_elevated___N0xnk_4-0-3,
296
+ .magritte-medium___0kuIk_4-0-3:focus .magritte-label_elevated___N0xnk_4-0-3,
297
+ .magritte-large___1eRM6_4-0-3:focus .magritte-label_elevated___N0xnk_4-0-3{
298
298
  color:var(--magritte-color-component-input-text-state-label-focused-v22-1-0);
299
299
  }
300
- .magritte-small___DphY3_4-0-2:focus .magritte-postfix___u4999_4-0-2,
301
- .magritte-medium___0kuIk_4-0-2:focus .magritte-postfix___u4999_4-0-2,
302
- .magritte-large___1eRM6_4-0-2:focus .magritte-postfix___u4999_4-0-2{
300
+ .magritte-small___DphY3_4-0-3:focus .magritte-postfix___u4999_4-0-3,
301
+ .magritte-medium___0kuIk_4-0-3:focus .magritte-postfix___u4999_4-0-3,
302
+ .magritte-large___1eRM6_4-0-3:focus .magritte-postfix___u4999_4-0-3{
303
303
  color:var(--magritte-color-component-input-text-state-postfix-focused-v22-1-0);
304
304
  }
305
- .magritte-small___DphY3_4-0-2{
305
+ .magritte-small___DphY3_4-0-3{
306
306
  padding:var(--magritte-static-space-250-v22-1-0) var(--magritte-static-space-300-v22-1-0);
307
307
  font-family:var(--magritte-typography-label-3-regular-font-family-v22-1-0);
308
308
  font-weight:var(--magritte-typography-label-3-regular-font-weight-v22-1-0);
@@ -313,7 +313,7 @@
313
313
  text-transform:var(--magritte-typography-label-3-regular-text-transform-v22-1-0);
314
314
  text-decoration:var(--magritte-typography-label-3-regular-text-decoration-v22-1-0);
315
315
  }
316
- .magritte-medium___0kuIk_4-0-2{
316
+ .magritte-medium___0kuIk_4-0-3{
317
317
  padding:var(--magritte-static-space-300-v22-1-0) var(--magritte-static-space-400-v22-1-0);
318
318
  font-family:var(--magritte-typography-label-2-regular-font-family-v22-1-0);
319
319
  font-weight:var(--magritte-typography-label-2-regular-font-weight-v22-1-0);
@@ -324,7 +324,7 @@
324
324
  text-transform:var(--magritte-typography-label-2-regular-text-transform-v22-1-0);
325
325
  text-decoration:var(--magritte-typography-label-2-regular-text-decoration-v22-1-0);
326
326
  }
327
- .magritte-large___1eRM6_4-0-2{
327
+ .magritte-large___1eRM6_4-0-3{
328
328
  padding:var(--magritte-static-space-400-v22-1-0);
329
329
  font-family:var(--magritte-typography-label-2-regular-font-family-v22-1-0);
330
330
  font-weight:var(--magritte-typography-label-2-regular-font-weight-v22-1-0);
@@ -335,151 +335,151 @@
335
335
  text-transform:var(--magritte-typography-label-2-regular-text-transform-v22-1-0);
336
336
  text-decoration:var(--magritte-typography-label-2-regular-text-decoration-v22-1-0);
337
337
  }
338
- .magritte-applied___jrfWs_4-0-2:not(.magritte-disabled___ZTuRA_4-0-2).magritte-small___DphY3_4-0-2:not(.magritte-invalid___Xlbyg_4-0-2),
339
- .magritte-applied___jrfWs_4-0-2:not(.magritte-disabled___ZTuRA_4-0-2).magritte-medium___0kuIk_4-0-2:not(.magritte-invalid___Xlbyg_4-0-2),
340
- .magritte-applied___jrfWs_4-0-2:not(.magritte-disabled___ZTuRA_4-0-2).magritte-large___1eRM6_4-0-2:not(.magritte-invalid___Xlbyg_4-0-2){
338
+ .magritte-applied___jrfWs_4-0-3:not(.magritte-disabled___ZTuRA_4-0-3).magritte-small___DphY3_4-0-3:not(.magritte-invalid___Xlbyg_4-0-3),
339
+ .magritte-applied___jrfWs_4-0-3:not(.magritte-disabled___ZTuRA_4-0-3).magritte-medium___0kuIk_4-0-3:not(.magritte-invalid___Xlbyg_4-0-3),
340
+ .magritte-applied___jrfWs_4-0-3:not(.magritte-disabled___ZTuRA_4-0-3).magritte-large___1eRM6_4-0-3:not(.magritte-invalid___Xlbyg_4-0-3){
341
341
  box-shadow:inset 0 0 0 2px var(--magritte-color-component-input-stroke-state-field-applied-v22-1-0);
342
342
  }
343
- .magritte-applied___jrfWs_4-0-2:not(.magritte-disabled___ZTuRA_4-0-2) .magritte-icon___HbC0r_4-0-2{
343
+ .magritte-applied___jrfWs_4-0-3:not(.magritte-disabled___ZTuRA_4-0-3) .magritte-icon___HbC0r_4-0-3{
344
344
  --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-content-applied-v22-1-0);
345
345
  }
346
- .magritte-applied___jrfWs_4-0-2:not(.magritte-disabled___ZTuRA_4-0-2) .magritte-content___5eg6m_4-0-2{
346
+ .magritte-applied___jrfWs_4-0-3:not(.magritte-disabled___ZTuRA_4-0-3) .magritte-content___5eg6m_4-0-3{
347
347
  color:var(--magritte-color-component-input-text-content-v22-1-0);
348
348
  }
349
- .magritte-invalid___Xlbyg_4-0-2.magritte-small___DphY3_4-0-2,
350
- .magritte-invalid___Xlbyg_4-0-2.magritte-medium___0kuIk_4-0-2,
351
- .magritte-invalid___Xlbyg_4-0-2.magritte-large___1eRM6_4-0-2{
349
+ .magritte-invalid___Xlbyg_4-0-3.magritte-small___DphY3_4-0-3,
350
+ .magritte-invalid___Xlbyg_4-0-3.magritte-medium___0kuIk_4-0-3,
351
+ .magritte-invalid___Xlbyg_4-0-3.magritte-large___1eRM6_4-0-3{
352
352
  background-color:var(--magritte-color-component-input-background-state-field-invalid-v22-1-0);
353
353
  box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-invalid-v22-1-0);
354
354
  --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-invalid-v22-1-0);
355
355
  }
356
- .magritte-invalid___Xlbyg_4-0-2.magritte-small___DphY3_4-0-2 .magritte-content___5eg6m_4-0-2,
357
- .magritte-invalid___Xlbyg_4-0-2.magritte-medium___0kuIk_4-0-2 .magritte-content___5eg6m_4-0-2,
358
- .magritte-invalid___Xlbyg_4-0-2.magritte-large___1eRM6_4-0-2 .magritte-content___5eg6m_4-0-2{
356
+ .magritte-invalid___Xlbyg_4-0-3.magritte-small___DphY3_4-0-3 .magritte-content___5eg6m_4-0-3,
357
+ .magritte-invalid___Xlbyg_4-0-3.magritte-medium___0kuIk_4-0-3 .magritte-content___5eg6m_4-0-3,
358
+ .magritte-invalid___Xlbyg_4-0-3.magritte-large___1eRM6_4-0-3 .magritte-content___5eg6m_4-0-3{
359
359
  color:var(--magritte-color-component-input-text-state-label-invalid-v22-1-0);
360
360
  }
361
- .magritte-invalid___Xlbyg_4-0-2.magritte-small___DphY3_4-0-2 .magritte-label_elevated___N0xnk_4-0-2,
362
- .magritte-invalid___Xlbyg_4-0-2.magritte-medium___0kuIk_4-0-2 .magritte-label_elevated___N0xnk_4-0-2,
363
- .magritte-invalid___Xlbyg_4-0-2.magritte-large___1eRM6_4-0-2 .magritte-label_elevated___N0xnk_4-0-2{
361
+ .magritte-invalid___Xlbyg_4-0-3.magritte-small___DphY3_4-0-3 .magritte-label_elevated___N0xnk_4-0-3,
362
+ .magritte-invalid___Xlbyg_4-0-3.magritte-medium___0kuIk_4-0-3 .magritte-label_elevated___N0xnk_4-0-3,
363
+ .magritte-invalid___Xlbyg_4-0-3.magritte-large___1eRM6_4-0-3 .magritte-label_elevated___N0xnk_4-0-3{
364
364
  color:var(--magritte-color-component-input-text-state-label-invalid-v22-1-0);
365
365
  }
366
- .magritte-invalid___Xlbyg_4-0-2.magritte-small___DphY3_4-0-2 .magritte-postfix___u4999_4-0-2,
367
- .magritte-invalid___Xlbyg_4-0-2.magritte-medium___0kuIk_4-0-2 .magritte-postfix___u4999_4-0-2,
368
- .magritte-invalid___Xlbyg_4-0-2.magritte-large___1eRM6_4-0-2 .magritte-postfix___u4999_4-0-2{
366
+ .magritte-invalid___Xlbyg_4-0-3.magritte-small___DphY3_4-0-3 .magritte-postfix___u4999_4-0-3,
367
+ .magritte-invalid___Xlbyg_4-0-3.magritte-medium___0kuIk_4-0-3 .magritte-postfix___u4999_4-0-3,
368
+ .magritte-invalid___Xlbyg_4-0-3.magritte-large___1eRM6_4-0-3 .magritte-postfix___u4999_4-0-3{
369
369
  color:var(--magritte-color-component-input-text-state-postfix-invalid-v22-1-0);
370
370
  }
371
371
  @media (min-width: 1020px){
372
- body.magritte-old-layout .magritte-invalid___Xlbyg_4-0-2.magritte-small___DphY3_4-0-2:not(.magritte-disabled___ZTuRA_4-0-2):not(:focus):hover,
373
- body.magritte-old-layout .magritte-invalid___Xlbyg_4-0-2.magritte-medium___0kuIk_4-0-2:not(.magritte-disabled___ZTuRA_4-0-2):not(:focus):hover,
374
- body.magritte-old-layout .magritte-invalid___Xlbyg_4-0-2.magritte-large___1eRM6_4-0-2:not(.magritte-disabled___ZTuRA_4-0-2):not(:focus):hover{
372
+ body.magritte-old-layout .magritte-invalid___Xlbyg_4-0-3.magritte-small___DphY3_4-0-3:not(.magritte-disabled___ZTuRA_4-0-3):not(:focus):hover,
373
+ body.magritte-old-layout .magritte-invalid___Xlbyg_4-0-3.magritte-medium___0kuIk_4-0-3:not(.magritte-disabled___ZTuRA_4-0-3):not(:focus):hover,
374
+ body.magritte-old-layout .magritte-invalid___Xlbyg_4-0-3.magritte-large___1eRM6_4-0-3:not(.magritte-disabled___ZTuRA_4-0-3):not(:focus):hover{
375
375
  box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-invalid-v22-1-0);
376
376
  }
377
377
  }
378
378
  @media (min-width: 1024px){
379
- body:not(.magritte-old-layout) .magritte-invalid___Xlbyg_4-0-2.magritte-small___DphY3_4-0-2:not(.magritte-disabled___ZTuRA_4-0-2):not(:focus):hover,
380
- body:not(.magritte-old-layout) .magritte-invalid___Xlbyg_4-0-2.magritte-medium___0kuIk_4-0-2:not(.magritte-disabled___ZTuRA_4-0-2):not(:focus):hover,
381
- body:not(.magritte-old-layout) .magritte-invalid___Xlbyg_4-0-2.magritte-large___1eRM6_4-0-2:not(.magritte-disabled___ZTuRA_4-0-2):not(:focus):hover{
379
+ body:not(.magritte-old-layout) .magritte-invalid___Xlbyg_4-0-3.magritte-small___DphY3_4-0-3:not(.magritte-disabled___ZTuRA_4-0-3):not(:focus):hover,
380
+ body:not(.magritte-old-layout) .magritte-invalid___Xlbyg_4-0-3.magritte-medium___0kuIk_4-0-3:not(.magritte-disabled___ZTuRA_4-0-3):not(:focus):hover,
381
+ body:not(.magritte-old-layout) .magritte-invalid___Xlbyg_4-0-3.magritte-large___1eRM6_4-0-3:not(.magritte-disabled___ZTuRA_4-0-3):not(:focus):hover{
382
382
  box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-invalid-v22-1-0);
383
383
  }
384
384
  }
385
- .magritte-invalid___Xlbyg_4-0-2.focus-visible{
385
+ .magritte-invalid___Xlbyg_4-0-3.focus-visible{
386
386
  outline:var(--magritte-color-component-input-stroke-state-negative-focused-accessible-v22-1-0) solid 4px;
387
387
  }
388
- .magritte-disabled___ZTuRA_4-0-2{
388
+ .magritte-disabled___ZTuRA_4-0-3{
389
389
  cursor:not-allowed;
390
390
  }
391
- .magritte-disabled___ZTuRA_4-0-2.magritte-xsmall___8iEkS_4-0-2{
391
+ .magritte-disabled___ZTuRA_4-0-3.magritte-xsmall___8iEkS_4-0-3{
392
392
  --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-disabled-v22-1-0);
393
393
  }
394
- .magritte-disabled___ZTuRA_4-0-2.magritte-xsmall___8iEkS_4-0-2 .magritte-content___5eg6m_4-0-2{
394
+ .magritte-disabled___ZTuRA_4-0-3.magritte-xsmall___8iEkS_4-0-3 .magritte-content___5eg6m_4-0-3{
395
395
  color:var(--magritte-color-component-input-text-state-label-disabled-v22-1-0);
396
396
  }
397
- .magritte-disabled___ZTuRA_4-0-2.magritte-xsmall___8iEkS_4-0-2 .magritte-label_elevated___N0xnk_4-0-2{
397
+ .magritte-disabled___ZTuRA_4-0-3.magritte-xsmall___8iEkS_4-0-3 .magritte-label_elevated___N0xnk_4-0-3{
398
398
  color:var(--magritte-color-component-input-text-state-label-disabled-v22-1-0);
399
399
  }
400
- .magritte-disabled___ZTuRA_4-0-2.magritte-xsmall___8iEkS_4-0-2 .magritte-postfix___u4999_4-0-2{
400
+ .magritte-disabled___ZTuRA_4-0-3.magritte-xsmall___8iEkS_4-0-3 .magritte-postfix___u4999_4-0-3{
401
401
  color:var(--magritte-color-component-input-text-state-postfix-disabled-v22-1-0);
402
402
  }
403
- .magritte-disabled___ZTuRA_4-0-2.magritte-small___DphY3_4-0-2,
404
- .magritte-disabled___ZTuRA_4-0-2.magritte-medium___0kuIk_4-0-2,
405
- .magritte-disabled___ZTuRA_4-0-2.magritte-large___1eRM6_4-0-2{
403
+ .magritte-disabled___ZTuRA_4-0-3.magritte-small___DphY3_4-0-3,
404
+ .magritte-disabled___ZTuRA_4-0-3.magritte-medium___0kuIk_4-0-3,
405
+ .magritte-disabled___ZTuRA_4-0-3.magritte-large___1eRM6_4-0-3{
406
406
  background-color:var(--magritte-color-component-input-background-state-field-disabled-v22-1-0);
407
407
  box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-disabled-v22-1-0);
408
408
  --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-disabled-v22-1-0);
409
409
  }
410
- .magritte-disabled___ZTuRA_4-0-2.magritte-small___DphY3_4-0-2 .magritte-content___5eg6m_4-0-2,
411
- .magritte-disabled___ZTuRA_4-0-2.magritte-medium___0kuIk_4-0-2 .magritte-content___5eg6m_4-0-2,
412
- .magritte-disabled___ZTuRA_4-0-2.magritte-large___1eRM6_4-0-2 .magritte-content___5eg6m_4-0-2{
410
+ .magritte-disabled___ZTuRA_4-0-3.magritte-small___DphY3_4-0-3 .magritte-content___5eg6m_4-0-3,
411
+ .magritte-disabled___ZTuRA_4-0-3.magritte-medium___0kuIk_4-0-3 .magritte-content___5eg6m_4-0-3,
412
+ .magritte-disabled___ZTuRA_4-0-3.magritte-large___1eRM6_4-0-3 .magritte-content___5eg6m_4-0-3{
413
413
  color:var(--magritte-color-component-input-text-state-label-disabled-v22-1-0);
414
414
  }
415
- .magritte-disabled___ZTuRA_4-0-2.magritte-small___DphY3_4-0-2 .magritte-label_elevated___N0xnk_4-0-2,
416
- .magritte-disabled___ZTuRA_4-0-2.magritte-medium___0kuIk_4-0-2 .magritte-label_elevated___N0xnk_4-0-2,
417
- .magritte-disabled___ZTuRA_4-0-2.magritte-large___1eRM6_4-0-2 .magritte-label_elevated___N0xnk_4-0-2{
415
+ .magritte-disabled___ZTuRA_4-0-3.magritte-small___DphY3_4-0-3 .magritte-label_elevated___N0xnk_4-0-3,
416
+ .magritte-disabled___ZTuRA_4-0-3.magritte-medium___0kuIk_4-0-3 .magritte-label_elevated___N0xnk_4-0-3,
417
+ .magritte-disabled___ZTuRA_4-0-3.magritte-large___1eRM6_4-0-3 .magritte-label_elevated___N0xnk_4-0-3{
418
418
  color:var(--magritte-color-component-input-text-state-label-disabled-v22-1-0);
419
419
  }
420
- .magritte-disabled___ZTuRA_4-0-2.magritte-small___DphY3_4-0-2 .magritte-postfix___u4999_4-0-2,
421
- .magritte-disabled___ZTuRA_4-0-2.magritte-medium___0kuIk_4-0-2 .magritte-postfix___u4999_4-0-2,
422
- .magritte-disabled___ZTuRA_4-0-2.magritte-large___1eRM6_4-0-2 .magritte-postfix___u4999_4-0-2{
420
+ .magritte-disabled___ZTuRA_4-0-3.magritte-small___DphY3_4-0-3 .magritte-postfix___u4999_4-0-3,
421
+ .magritte-disabled___ZTuRA_4-0-3.magritte-medium___0kuIk_4-0-3 .magritte-postfix___u4999_4-0-3,
422
+ .magritte-disabled___ZTuRA_4-0-3.magritte-large___1eRM6_4-0-3 .magritte-postfix___u4999_4-0-3{
423
423
  color:var(--magritte-color-component-input-text-state-postfix-disabled-v22-1-0);
424
424
  }
425
425
  @media (min-width: 1020px){
426
- body.magritte-old-layout .magritte-selected___NjQNn_4-0-2:not(.magritte-disabled___ZTuRA_4-0-2).magritte-xsmall___8iEkS_4-0-2:hover:not(.magritte-disabled___ZTuRA_4-0-2) .magritte-content___5eg6m_4-0-2,
427
- body.magritte-old-layout .magritte-selected___NjQNn_4-0-2:not(.magritte-disabled___ZTuRA_4-0-2).magritte-small___DphY3_4-0-2:hover:not(.magritte-disabled___ZTuRA_4-0-2) .magritte-content___5eg6m_4-0-2,
428
- body.magritte-old-layout .magritte-selected___NjQNn_4-0-2:not(.magritte-disabled___ZTuRA_4-0-2).magritte-medium___0kuIk_4-0-2:hover:not(.magritte-disabled___ZTuRA_4-0-2) .magritte-content___5eg6m_4-0-2,
429
- body.magritte-old-layout .magritte-selected___NjQNn_4-0-2:not(.magritte-disabled___ZTuRA_4-0-2).magritte-large___1eRM6_4-0-2:hover:not(.magritte-disabled___ZTuRA_4-0-2) .magritte-content___5eg6m_4-0-2{
426
+ body.magritte-old-layout .magritte-selected___NjQNn_4-0-3:not(.magritte-disabled___ZTuRA_4-0-3).magritte-xsmall___8iEkS_4-0-3:hover:not(.magritte-disabled___ZTuRA_4-0-3) .magritte-content___5eg6m_4-0-3,
427
+ body.magritte-old-layout .magritte-selected___NjQNn_4-0-3:not(.magritte-disabled___ZTuRA_4-0-3).magritte-small___DphY3_4-0-3:hover:not(.magritte-disabled___ZTuRA_4-0-3) .magritte-content___5eg6m_4-0-3,
428
+ body.magritte-old-layout .magritte-selected___NjQNn_4-0-3:not(.magritte-disabled___ZTuRA_4-0-3).magritte-medium___0kuIk_4-0-3:hover:not(.magritte-disabled___ZTuRA_4-0-3) .magritte-content___5eg6m_4-0-3,
429
+ body.magritte-old-layout .magritte-selected___NjQNn_4-0-3:not(.magritte-disabled___ZTuRA_4-0-3).magritte-large___1eRM6_4-0-3:hover:not(.magritte-disabled___ZTuRA_4-0-3) .magritte-content___5eg6m_4-0-3{
430
430
  color:var(--magritte-color-component-input-text-state-content-hovered-v22-1-0);
431
431
  }
432
432
  }
433
433
  @media (min-width: 1024px){
434
- body:not(.magritte-old-layout) .magritte-selected___NjQNn_4-0-2:not(.magritte-disabled___ZTuRA_4-0-2).magritte-xsmall___8iEkS_4-0-2:hover:not(.magritte-disabled___ZTuRA_4-0-2) .magritte-content___5eg6m_4-0-2,
435
- body:not(.magritte-old-layout) .magritte-selected___NjQNn_4-0-2:not(.magritte-disabled___ZTuRA_4-0-2).magritte-small___DphY3_4-0-2:hover:not(.magritte-disabled___ZTuRA_4-0-2) .magritte-content___5eg6m_4-0-2,
436
- body:not(.magritte-old-layout) .magritte-selected___NjQNn_4-0-2:not(.magritte-disabled___ZTuRA_4-0-2).magritte-medium___0kuIk_4-0-2:hover:not(.magritte-disabled___ZTuRA_4-0-2) .magritte-content___5eg6m_4-0-2,
437
- body:not(.magritte-old-layout) .magritte-selected___NjQNn_4-0-2:not(.magritte-disabled___ZTuRA_4-0-2).magritte-large___1eRM6_4-0-2:hover:not(.magritte-disabled___ZTuRA_4-0-2) .magritte-content___5eg6m_4-0-2{
434
+ body:not(.magritte-old-layout) .magritte-selected___NjQNn_4-0-3:not(.magritte-disabled___ZTuRA_4-0-3).magritte-xsmall___8iEkS_4-0-3:hover:not(.magritte-disabled___ZTuRA_4-0-3) .magritte-content___5eg6m_4-0-3,
435
+ body:not(.magritte-old-layout) .magritte-selected___NjQNn_4-0-3:not(.magritte-disabled___ZTuRA_4-0-3).magritte-small___DphY3_4-0-3:hover:not(.magritte-disabled___ZTuRA_4-0-3) .magritte-content___5eg6m_4-0-3,
436
+ body:not(.magritte-old-layout) .magritte-selected___NjQNn_4-0-3:not(.magritte-disabled___ZTuRA_4-0-3).magritte-medium___0kuIk_4-0-3:hover:not(.magritte-disabled___ZTuRA_4-0-3) .magritte-content___5eg6m_4-0-3,
437
+ body:not(.magritte-old-layout) .magritte-selected___NjQNn_4-0-3:not(.magritte-disabled___ZTuRA_4-0-3).magritte-large___1eRM6_4-0-3:hover:not(.magritte-disabled___ZTuRA_4-0-3) .magritte-content___5eg6m_4-0-3{
438
438
  color:var(--magritte-color-component-input-text-state-content-hovered-v22-1-0);
439
439
  }
440
440
  }
441
- .magritte-selected___NjQNn_4-0-2:not(.magritte-disabled___ZTuRA_4-0-2) .magritte-content___5eg6m_4-0-2{
441
+ .magritte-selected___NjQNn_4-0-3:not(.magritte-disabled___ZTuRA_4-0-3) .magritte-content___5eg6m_4-0-3{
442
442
  color:var(--magritte-color-component-input-text-content-v22-1-0);
443
443
  }
444
- .magritte-content___5eg6m_4-0-2{
444
+ .magritte-content___5eg6m_4-0-3{
445
445
  min-width:0;
446
446
  color:var(--magritte-color-component-input-text-placeholder-v22-1-0);
447
447
  padding-right:var(--magritte-static-space-200-v22-1-0);
448
448
  }
449
- .magritte-invalid___Xlbyg_4-0-2.magritte-xsmall___8iEkS_4-0-2 .magritte-content___5eg6m_4-0-2{
449
+ .magritte-invalid___Xlbyg_4-0-3.magritte-xsmall___8iEkS_4-0-3 .magritte-content___5eg6m_4-0-3{
450
450
  color:var(--magritte-color-component-input-text-state-content-invalid-attention-v22-1-0);
451
451
  }
452
452
  @media (min-width: 1020px){
453
- body.magritte-old-layout .magritte-invalid___Xlbyg_4-0-2.magritte-xsmall___8iEkS_4-0-2 .magritte-content___5eg6m_4-0-2:not(.magritte-disabled___ZTuRA_4-0-2):not(:focus):hover{
453
+ body.magritte-old-layout .magritte-invalid___Xlbyg_4-0-3.magritte-xsmall___8iEkS_4-0-3 .magritte-content___5eg6m_4-0-3:not(.magritte-disabled___ZTuRA_4-0-3):not(:focus):hover{
454
454
  color:var(--magritte-color-component-input-text-state-content-invalid-attention-v22-1-0);
455
455
  }
456
456
  }
457
457
  @media (min-width: 1024px){
458
- body:not(.magritte-old-layout) .magritte-invalid___Xlbyg_4-0-2.magritte-xsmall___8iEkS_4-0-2 .magritte-content___5eg6m_4-0-2:not(.magritte-disabled___ZTuRA_4-0-2):not(:focus):hover{
458
+ body:not(.magritte-old-layout) .magritte-invalid___Xlbyg_4-0-3.magritte-xsmall___8iEkS_4-0-3 .magritte-content___5eg6m_4-0-3:not(.magritte-disabled___ZTuRA_4-0-3):not(:focus):hover{
459
459
  color:var(--magritte-color-component-input-text-state-content-invalid-attention-v22-1-0);
460
460
  }
461
461
  }
462
- .magritte-content_medium___VnlIy_4-0-2,
463
- .magritte-content_large___byZTA_4-0-2{
462
+ .magritte-content_medium___VnlIy_4-0-3,
463
+ .magritte-content_large___byZTA_4-0-3{
464
464
  padding-right:var(--magritte-static-space-300-v22-1-0);
465
465
  }
466
- .magritte-content_label-can-be-elevated___HRkpl_4-0-2{
466
+ .magritte-content_label-can-be-elevated___HRkpl_4-0-3{
467
467
  height:22px;
468
468
  }
469
- .magritte-values-wrapper___yQbdl_4-0-2{
469
+ .magritte-values-wrapper___yQbdl_4-0-3{
470
470
  display:flex;
471
471
  }
472
- .magritte-values-wrapper_label-can-elevated___A0bzp_4-0-2{
472
+ .magritte-values-wrapper_label-can-elevated___A0bzp_4-0-3{
473
473
  margin-top:calc(0px - ((var(--magritte-typography-label-4-regular-line-height-v22-1-0) + var(--magritte-typography-label-2-regular-line-height-v22-1-0)) / 2) + (var(--magritte-typography-label-4-regular-line-height-v22-1-0) / 2));
474
474
  }
475
- .magritte-values___6wj-v_4-0-2{
475
+ .magritte-values___6wj-v_4-0-3{
476
476
  white-space:nowrap;
477
477
  text-overflow:ellipsis;
478
478
  text-align:left;
479
479
  overflow:hidden;
480
480
  flex:0 1 auto;
481
481
  }
482
- .magritte-label___VsUEF_4-0-2{
482
+ .magritte-label___VsUEF_4-0-3{
483
483
  text-align:left;
484
484
  transition-property:transform, color, font-size, letter-spacing;
485
485
  transition-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v22-1-0);
@@ -488,7 +488,7 @@
488
488
  text-overflow:ellipsis;
489
489
  overflow:hidden;
490
490
  }
491
- .magritte-label_elevated___N0xnk_4-0-2{
491
+ .magritte-label_elevated___N0xnk_4-0-3{
492
492
  font-family:var(--magritte-typography-label-4-regular-font-family-v22-1-0);
493
493
  font-weight:var(--magritte-typography-label-4-regular-font-weight-v22-1-0);
494
494
  line-height:var(--magritte-typography-label-4-regular-line-height-v22-1-0);
@@ -501,7 +501,7 @@
501
501
  margin-top:2px;
502
502
  transform:translateY(calc(0px - ((var(--magritte-typography-label-4-regular-line-height-v22-1-0) + var(--magritte-typography-label-2-regular-line-height-v22-1-0)) / 2) + (var(--magritte-typography-label-4-regular-line-height-v22-1-0) / 2)));
503
503
  }
504
- .magritte-icon___HbC0r_4-0-2{
504
+ .magritte-icon___HbC0r_4-0-3{
505
505
  display:inline-flex;
506
506
  margin-left:auto;
507
507
  border-radius:var(--magritte-core-border-radius-3-x-v22-1-0);
@@ -509,18 +509,18 @@
509
509
  transition-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v22-1-0);
510
510
  transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v22-1-0);
511
511
  }
512
- .magritte-icon___HbC0r_4-0-2.focus-visible{
512
+ .magritte-icon___HbC0r_4-0-3.focus-visible{
513
513
  outline:var(--magritte-color-component-input-stroke-state-accent-focused-accessible-v22-1-0) solid 4px;
514
514
  }
515
- .magritte-icon_expanded___ggr1u_4-0-2{
515
+ .magritte-icon_expanded___ggr1u_4-0-3{
516
516
  transform:rotate(-180deg);
517
517
  --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-focused-v22-1-0);
518
518
  }
519
- .magritte-postfix___u4999_4-0-2{
519
+ .magritte-postfix___u4999_4-0-3{
520
520
  color:var(--magritte-color-component-input-text-postfix-v22-1-0);
521
521
  padding-left:var(--magritte-static-space-150-v22-1-0);
522
522
  flex:1 0 auto;
523
523
  }
524
- .magritte-postfix_metric___jO3qH_4-0-2{
524
+ .magritte-postfix_metric___jO3qH_4-0-3{
525
525
  display:none;
526
526
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-trigger",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -28,11 +28,11 @@
28
28
  "@hh.ru/magritte-common-func-utils": "1.3.12",
29
29
  "@hh.ru/magritte-common-keyboard": "4.1.2",
30
30
  "@hh.ru/magritte-common-resize": "0.1.16",
31
- "@hh.ru/magritte-common-use-multiple-refs": "1.1.7",
31
+ "@hh.ru/magritte-common-use-multiple-refs": "1.1.8",
32
32
  "@hh.ru/magritte-design-tokens": "22.1.0",
33
- "@hh.ru/magritte-ui-button": "6.0.1",
33
+ "@hh.ru/magritte-ui-button": "6.0.2",
34
34
  "@hh.ru/magritte-ui-form-helper": "2.0.1",
35
- "@hh.ru/magritte-ui-icon": "12.0.0"
35
+ "@hh.ru/magritte-ui-icon": "12.1.0"
36
36
  },
37
- "gitHead": "89aedbfa1b7f5abf2a91ce8a543286e75a78385f"
37
+ "gitHead": "84be7fb81c268510672bdaa32f856319f7022df8"
38
38
  }