@hh.ru/magritte-ui-trigger 3.0.8 → 3.0.9

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
@@ -10,7 +10,7 @@ import { Action } from '@hh.ru/magritte-ui-action';
10
10
  import { FormHelper } from '@hh.ru/magritte-ui-form-helper';
11
11
  import { CrossOutlinedSize24, ChevronDownOutlinedSize24, CrossOutlinedSize16, ChevronDownOutlinedSize16 } from '@hh.ru/magritte-ui-icon/icon';
12
12
 
13
- var styles = {"trigger-root":"magritte-trigger-root___dPhW4_3-0-8","triggerRoot":"magritte-trigger-root___dPhW4_3-0-8","disabled":"magritte-disabled___ZTuRA_3-0-8","trigger-root_stretched":"magritte-trigger-root_stretched___IhAsT_3-0-8","triggerRootStretched":"magritte-trigger-root_stretched___IhAsT_3-0-8","trigger":"magritte-trigger___IpHhR_3-0-8","xsmall":"magritte-xsmall___8iEkS_3-0-8","applied":"magritte-applied___jrfWs_3-0-8","content":"magritte-content___5eg6m_3-0-8","label_elevated":"magritte-label_elevated___N0xnk_3-0-8","labelElevated":"magritte-label_elevated___N0xnk_3-0-8","postfix":"magritte-postfix___u4999_3-0-8","small":"magritte-small___DphY3_3-0-8","medium":"magritte-medium___0kuIk_3-0-8","large":"magritte-large___1eRM6_3-0-8","invalid":"magritte-invalid___Xlbyg_3-0-8","icon":"magritte-icon___HbC0r_3-0-8","selected":"magritte-selected___NjQNn_3-0-8","content_medium":"magritte-content_medium___VnlIy_3-0-8","contentMedium":"magritte-content_medium___VnlIy_3-0-8","content_large":"magritte-content_large___byZTA_3-0-8","contentLarge":"magritte-content_large___byZTA_3-0-8","content_label-can-be-elevated":"magritte-content_label-can-be-elevated___HRkpl_3-0-8","contentLabelCanBeElevated":"magritte-content_label-can-be-elevated___HRkpl_3-0-8","values-wrapper":"magritte-values-wrapper___yQbdl_3-0-8","valuesWrapper":"magritte-values-wrapper___yQbdl_3-0-8","values-wrapper_label-can-elevated":"magritte-values-wrapper_label-can-elevated___A0bzp_3-0-8","valuesWrapperLabelCanElevated":"magritte-values-wrapper_label-can-elevated___A0bzp_3-0-8","values":"magritte-values___6wj-v_3-0-8","label":"magritte-label___VsUEF_3-0-8","icon_expanded":"magritte-icon_expanded___ggr1u_3-0-8","iconExpanded":"magritte-icon_expanded___ggr1u_3-0-8","postfix_metric":"magritte-postfix_metric___jO3qH_3-0-8","postfixMetric":"magritte-postfix_metric___jO3qH_3-0-8"};
13
+ var styles = {"trigger-root":"magritte-trigger-root___dPhW4_3-0-9","triggerRoot":"magritte-trigger-root___dPhW4_3-0-9","disabled":"magritte-disabled___ZTuRA_3-0-9","trigger-root_stretched":"magritte-trigger-root_stretched___IhAsT_3-0-9","triggerRootStretched":"magritte-trigger-root_stretched___IhAsT_3-0-9","trigger":"magritte-trigger___IpHhR_3-0-9","xsmall":"magritte-xsmall___8iEkS_3-0-9","applied":"magritte-applied___jrfWs_3-0-9","content":"magritte-content___5eg6m_3-0-9","label_elevated":"magritte-label_elevated___N0xnk_3-0-9","labelElevated":"magritte-label_elevated___N0xnk_3-0-9","postfix":"magritte-postfix___u4999_3-0-9","small":"magritte-small___DphY3_3-0-9","medium":"magritte-medium___0kuIk_3-0-9","large":"magritte-large___1eRM6_3-0-9","invalid":"magritte-invalid___Xlbyg_3-0-9","icon":"magritte-icon___HbC0r_3-0-9","selected":"magritte-selected___NjQNn_3-0-9","content_medium":"magritte-content_medium___VnlIy_3-0-9","contentMedium":"magritte-content_medium___VnlIy_3-0-9","content_large":"magritte-content_large___byZTA_3-0-9","contentLarge":"magritte-content_large___byZTA_3-0-9","content_label-can-be-elevated":"magritte-content_label-can-be-elevated___HRkpl_3-0-9","contentLabelCanBeElevated":"magritte-content_label-can-be-elevated___HRkpl_3-0-9","values-wrapper":"magritte-values-wrapper___yQbdl_3-0-9","valuesWrapper":"magritte-values-wrapper___yQbdl_3-0-9","values-wrapper_label-can-elevated":"magritte-values-wrapper_label-can-elevated___A0bzp_3-0-9","valuesWrapperLabelCanElevated":"magritte-values-wrapper_label-can-elevated___A0bzp_3-0-9","values":"magritte-values___6wj-v_3-0-9","label":"magritte-label___VsUEF_3-0-9","icon_expanded":"magritte-icon_expanded___ggr1u_3-0-9","iconExpanded":"magritte-icon_expanded___ggr1u_3-0-9","postfix_metric":"magritte-postfix_metric___jO3qH_3-0-9","postfixMetric":"magritte-postfix_metric___jO3qH_3-0-9"};
14
14
 
15
15
  // расчитываем размер шеврона на базе `size`
16
16
  // если состояние `applied`, то нужно использовать крест
@@ -94,7 +94,7 @@ const TriggerComponent = ({ applied, description, disabled, expanded, maxWidth,
94
94
  }
95
95
  });
96
96
  // проверяем, есть ли ... в тригере
97
- if (parentWidth >= childrenWidth) {
97
+ if (Math.abs(parentWidth - childrenWidth) < 1) {
98
98
  setPostfix(0);
99
99
  return;
100
100
  }
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} 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 { Action } from '@hh.ru/magritte-ui-action';\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 handleClickClear = useCallback(() => {\n onClear?.();\n triggerRef.current?.focus();\n }, [onClear]);\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 (parentWidth >= childrenWidth) {\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 <Action\n onKeyDown={handleKeyDownClear}\n onClick={handleClickClear}\n icon={IconComponent}\n disabled={disabled}\n disablePadding\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 & {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EACA,OAAO,KACJA,GAAK,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,IAAI,EACvB,QAAA,EAAAA,GAAA,CAAC,MAAM,EAAA,EACH,SAAS,EAAE,kBAAkB,EAC7B,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,aAAa,EACnB,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAChB,IAAA,EAAA,CAAA,EAAA,CACA,CACT,CAAA,EAAA,CACC,EACNA,GAAA,CAAC,UAAU,EAAA,EAAC,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} 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 { Action } from '@hh.ru/magritte-ui-action';\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 handleClickClear = useCallback(() => {\n onClear?.();\n triggerRef.current?.focus();\n }, [onClear]);\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 <Action\n onKeyDown={handleKeyDownClear}\n onClick={handleClickClear}\n icon={IconComponent}\n disabled={disabled}\n disablePadding\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"],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OAAO,KACJA,GAAK,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,IAAI,EACvB,QAAA,EAAAA,GAAA,CAAC,MAAM,EAAA,EACH,SAAS,EAAE,kBAAkB,EAC7B,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,aAAa,EACnB,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAChB,IAAA,EAAA,CAAA,EAAA,CACA,CACT,CAAA,EAAA,CACC,EACNA,GAAA,CAAC,UAAU,EAAA,EAAC,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
@@ -614,21 +614,21 @@
614
614
  --magritte-typography-_custom-5-italic-text-transform-v20-0-1:none;
615
615
  --magritte-typography-_custom-5-italic-text-decoration-v20-0-1:none;
616
616
  }
617
- .magritte-trigger-root___dPhW4_3-0-8{
617
+ .magritte-trigger-root___dPhW4_3-0-9{
618
618
  display:flex;
619
619
  max-width:fit-content;
620
620
  flex-direction:column;
621
621
  --magritte-ui-form-helper-description-color-override:var(--magritte-color-component-input-text-description-v20-0-1);
622
622
  --magritte-ui-form-helper-error-color-override:var(--magritte-color-component-input-text-state-description-invalid-v20-0-1);
623
623
  }
624
- .magritte-trigger-root___dPhW4_3-0-8:has(.magritte-disabled___ZTuRA_3-0-8){
624
+ .magritte-trigger-root___dPhW4_3-0-9:has(.magritte-disabled___ZTuRA_3-0-9){
625
625
  --magritte-ui-form-helper-description-color-override:var(--magritte-color-component-input-text-state-description-disabled-v20-0-1);
626
626
  }
627
- .magritte-trigger-root_stretched___IhAsT_3-0-8{
627
+ .magritte-trigger-root_stretched___IhAsT_3-0-9{
628
628
  width:100%;
629
629
  max-width:none;
630
630
  }
631
- .magritte-trigger___IpHhR_3-0-8{
631
+ .magritte-trigger___IpHhR_3-0-9{
632
632
  display:inline-flex;
633
633
  align-items:center;
634
634
  cursor:pointer;
@@ -641,10 +641,10 @@
641
641
  border-radius:var(--magritte-core-border-radius-3-x-v20-0-1);
642
642
  --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-chevron-v20-0-1);
643
643
  }
644
- .magritte-trigger___IpHhR_3-0-8.focus-visible{
644
+ .magritte-trigger___IpHhR_3-0-9.focus-visible{
645
645
  outline:var(--magritte-color-component-input-stroke-state-accent-focused-accessible-v20-0-1) solid 4px;
646
646
  }
647
- .magritte-xsmall___8iEkS_3-0-8{
647
+ .magritte-xsmall___8iEkS_3-0-9{
648
648
  font-family:var(--magritte-typography-label-3-regular-font-family-v20-0-1);
649
649
  font-weight:var(--magritte-typography-label-3-regular-font-weight-v20-0-1);
650
650
  line-height:var(--magritte-typography-label-3-regular-line-height-v20-0-1);
@@ -655,122 +655,122 @@
655
655
  text-decoration:var(--magritte-typography-label-3-regular-text-decoration-v20-0-1);
656
656
  }
657
657
  @media (min-width: 1020px){
658
- body.magritte-old-layout .magritte-xsmall___8iEkS_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover{
658
+ body.magritte-old-layout .magritte-xsmall___8iEkS_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover{
659
659
  --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-hovered-v20-0-1);
660
660
  }
661
- body.magritte-old-layout .magritte-xsmall___8iEkS_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover .magritte-content___5eg6m_3-0-8{
661
+ body.magritte-old-layout .magritte-xsmall___8iEkS_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover .magritte-content___5eg6m_3-0-9{
662
662
  color:var(--magritte-color-component-input-text-state-label-hovered-v20-0-1);
663
663
  }
664
- body.magritte-old-layout .magritte-xsmall___8iEkS_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover .magritte-label_elevated___N0xnk_3-0-8{
664
+ body.magritte-old-layout .magritte-xsmall___8iEkS_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover .magritte-label_elevated___N0xnk_3-0-9{
665
665
  color:var(--magritte-color-component-input-text-state-label-hovered-v20-0-1);
666
666
  }
667
- body.magritte-old-layout .magritte-xsmall___8iEkS_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover .magritte-postfix___u4999_3-0-8{
667
+ body.magritte-old-layout .magritte-xsmall___8iEkS_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover .magritte-postfix___u4999_3-0-9{
668
668
  color:var(--magritte-color-component-input-text-state-postfix-hovered-v20-0-1);
669
669
  }
670
670
  }
671
671
  @media (min-width: 1024px){
672
- body:not(.magritte-old-layout) .magritte-xsmall___8iEkS_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover{
672
+ body:not(.magritte-old-layout) .magritte-xsmall___8iEkS_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover{
673
673
  --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-hovered-v20-0-1);
674
674
  }
675
- body:not(.magritte-old-layout) .magritte-xsmall___8iEkS_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover .magritte-content___5eg6m_3-0-8{
675
+ body:not(.magritte-old-layout) .magritte-xsmall___8iEkS_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover .magritte-content___5eg6m_3-0-9{
676
676
  color:var(--magritte-color-component-input-text-state-label-hovered-v20-0-1);
677
677
  }
678
- body:not(.magritte-old-layout) .magritte-xsmall___8iEkS_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover .magritte-label_elevated___N0xnk_3-0-8{
678
+ body:not(.magritte-old-layout) .magritte-xsmall___8iEkS_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover .magritte-label_elevated___N0xnk_3-0-9{
679
679
  color:var(--magritte-color-component-input-text-state-label-hovered-v20-0-1);
680
680
  }
681
- body:not(.magritte-old-layout) .magritte-xsmall___8iEkS_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover .magritte-postfix___u4999_3-0-8{
681
+ body:not(.magritte-old-layout) .magritte-xsmall___8iEkS_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover .magritte-postfix___u4999_3-0-9{
682
682
  color:var(--magritte-color-component-input-text-state-postfix-hovered-v20-0-1);
683
683
  }
684
684
  }
685
- .magritte-xsmall___8iEkS_3-0-8:focus{
685
+ .magritte-xsmall___8iEkS_3-0-9:focus{
686
686
  --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-focused-v20-0-1);
687
687
  }
688
- .magritte-xsmall___8iEkS_3-0-8:focus .magritte-content___5eg6m_3-0-8{
688
+ .magritte-xsmall___8iEkS_3-0-9:focus .magritte-content___5eg6m_3-0-9{
689
689
  color:var(--magritte-color-component-input-text-state-label-focused-v20-0-1);
690
690
  }
691
- .magritte-xsmall___8iEkS_3-0-8:focus .magritte-label_elevated___N0xnk_3-0-8{
691
+ .magritte-xsmall___8iEkS_3-0-9:focus .magritte-label_elevated___N0xnk_3-0-9{
692
692
  color:var(--magritte-color-component-input-text-state-label-focused-v20-0-1);
693
693
  }
694
- .magritte-xsmall___8iEkS_3-0-8:focus .magritte-postfix___u4999_3-0-8{
694
+ .magritte-xsmall___8iEkS_3-0-9:focus .magritte-postfix___u4999_3-0-9{
695
695
  color:var(--magritte-color-component-input-text-state-postfix-focused-v20-0-1);
696
696
  }
697
- .magritte-small___DphY3_3-0-8,
698
- .magritte-medium___0kuIk_3-0-8,
699
- .magritte-large___1eRM6_3-0-8{
697
+ .magritte-small___DphY3_3-0-9,
698
+ .magritte-medium___0kuIk_3-0-9,
699
+ .magritte-large___1eRM6_3-0-9{
700
700
  box-sizing:border-box;
701
701
  box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-field-v20-0-1);
702
702
  }
703
703
  @media (min-width: 1020px){
704
- body.magritte-old-layout .magritte-small___DphY3_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover,
705
- body.magritte-old-layout .magritte-medium___0kuIk_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover,
706
- body.magritte-old-layout .magritte-large___1eRM6_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover{
704
+ body.magritte-old-layout .magritte-small___DphY3_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover,
705
+ body.magritte-old-layout .magritte-medium___0kuIk_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover,
706
+ body.magritte-old-layout .magritte-large___1eRM6_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover{
707
707
  background-color:var(--magritte-color-component-input-background-state-field-hovered-v20-0-1);
708
708
  box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-hovered-v20-0-1);
709
709
  --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-hovered-v20-0-1);
710
710
  }
711
- body.magritte-old-layout .magritte-small___DphY3_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover .magritte-content___5eg6m_3-0-8,
712
- body.magritte-old-layout .magritte-medium___0kuIk_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover .magritte-content___5eg6m_3-0-8,
713
- body.magritte-old-layout .magritte-large___1eRM6_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover .magritte-content___5eg6m_3-0-8{
711
+ body.magritte-old-layout .magritte-small___DphY3_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover .magritte-content___5eg6m_3-0-9,
712
+ body.magritte-old-layout .magritte-medium___0kuIk_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover .magritte-content___5eg6m_3-0-9,
713
+ body.magritte-old-layout .magritte-large___1eRM6_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover .magritte-content___5eg6m_3-0-9{
714
714
  color:var(--magritte-color-component-input-text-state-label-hovered-v20-0-1);
715
715
  }
716
- body.magritte-old-layout .magritte-small___DphY3_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover .magritte-label_elevated___N0xnk_3-0-8,
717
- body.magritte-old-layout .magritte-medium___0kuIk_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover .magritte-label_elevated___N0xnk_3-0-8,
718
- body.magritte-old-layout .magritte-large___1eRM6_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover .magritte-label_elevated___N0xnk_3-0-8{
716
+ body.magritte-old-layout .magritte-small___DphY3_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover .magritte-label_elevated___N0xnk_3-0-9,
717
+ body.magritte-old-layout .magritte-medium___0kuIk_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover .magritte-label_elevated___N0xnk_3-0-9,
718
+ body.magritte-old-layout .magritte-large___1eRM6_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover .magritte-label_elevated___N0xnk_3-0-9{
719
719
  color:var(--magritte-color-component-input-text-state-label-hovered-v20-0-1);
720
720
  }
721
- body.magritte-old-layout .magritte-small___DphY3_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover .magritte-postfix___u4999_3-0-8,
722
- body.magritte-old-layout .magritte-medium___0kuIk_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover .magritte-postfix___u4999_3-0-8,
723
- body.magritte-old-layout .magritte-large___1eRM6_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover .magritte-postfix___u4999_3-0-8{
721
+ body.magritte-old-layout .magritte-small___DphY3_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover .magritte-postfix___u4999_3-0-9,
722
+ body.magritte-old-layout .magritte-medium___0kuIk_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover .magritte-postfix___u4999_3-0-9,
723
+ body.magritte-old-layout .magritte-large___1eRM6_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover .magritte-postfix___u4999_3-0-9{
724
724
  color:var(--magritte-color-component-input-text-state-postfix-hovered-v20-0-1);
725
725
  }
726
726
  }
727
727
  @media (min-width: 1024px){
728
- body:not(.magritte-old-layout) .magritte-small___DphY3_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover,
729
- body:not(.magritte-old-layout) .magritte-medium___0kuIk_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover,
730
- body:not(.magritte-old-layout) .magritte-large___1eRM6_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover{
728
+ body:not(.magritte-old-layout) .magritte-small___DphY3_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover,
729
+ body:not(.magritte-old-layout) .magritte-medium___0kuIk_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover,
730
+ body:not(.magritte-old-layout) .magritte-large___1eRM6_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover{
731
731
  background-color:var(--magritte-color-component-input-background-state-field-hovered-v20-0-1);
732
732
  box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-hovered-v20-0-1);
733
733
  --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-hovered-v20-0-1);
734
734
  }
735
- body:not(.magritte-old-layout) .magritte-small___DphY3_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover .magritte-content___5eg6m_3-0-8,
736
- body:not(.magritte-old-layout) .magritte-medium___0kuIk_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover .magritte-content___5eg6m_3-0-8,
737
- body:not(.magritte-old-layout) .magritte-large___1eRM6_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover .magritte-content___5eg6m_3-0-8{
735
+ body:not(.magritte-old-layout) .magritte-small___DphY3_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover .magritte-content___5eg6m_3-0-9,
736
+ body:not(.magritte-old-layout) .magritte-medium___0kuIk_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover .magritte-content___5eg6m_3-0-9,
737
+ body:not(.magritte-old-layout) .magritte-large___1eRM6_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover .magritte-content___5eg6m_3-0-9{
738
738
  color:var(--magritte-color-component-input-text-state-label-hovered-v20-0-1);
739
739
  }
740
- body:not(.magritte-old-layout) .magritte-small___DphY3_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover .magritte-label_elevated___N0xnk_3-0-8,
741
- body:not(.magritte-old-layout) .magritte-medium___0kuIk_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover .magritte-label_elevated___N0xnk_3-0-8,
742
- body:not(.magritte-old-layout) .magritte-large___1eRM6_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover .magritte-label_elevated___N0xnk_3-0-8{
740
+ body:not(.magritte-old-layout) .magritte-small___DphY3_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover .magritte-label_elevated___N0xnk_3-0-9,
741
+ body:not(.magritte-old-layout) .magritte-medium___0kuIk_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover .magritte-label_elevated___N0xnk_3-0-9,
742
+ body:not(.magritte-old-layout) .magritte-large___1eRM6_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover .magritte-label_elevated___N0xnk_3-0-9{
743
743
  color:var(--magritte-color-component-input-text-state-label-hovered-v20-0-1);
744
744
  }
745
- body:not(.magritte-old-layout) .magritte-small___DphY3_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover .magritte-postfix___u4999_3-0-8,
746
- body:not(.magritte-old-layout) .magritte-medium___0kuIk_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover .magritte-postfix___u4999_3-0-8,
747
- body:not(.magritte-old-layout) .magritte-large___1eRM6_3-0-8:not(:focus):not(.magritte-applied___jrfWs_3-0-8):not(.magritte-disabled___ZTuRA_3-0-8):hover .magritte-postfix___u4999_3-0-8{
745
+ body:not(.magritte-old-layout) .magritte-small___DphY3_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover .magritte-postfix___u4999_3-0-9,
746
+ body:not(.magritte-old-layout) .magritte-medium___0kuIk_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover .magritte-postfix___u4999_3-0-9,
747
+ body:not(.magritte-old-layout) .magritte-large___1eRM6_3-0-9:not(:focus):not(.magritte-applied___jrfWs_3-0-9):not(.magritte-disabled___ZTuRA_3-0-9):hover .magritte-postfix___u4999_3-0-9{
748
748
  color:var(--magritte-color-component-input-text-state-postfix-hovered-v20-0-1);
749
749
  }
750
750
  }
751
- .magritte-small___DphY3_3-0-8:focus,
752
- .magritte-medium___0kuIk_3-0-8:focus,
753
- .magritte-large___1eRM6_3-0-8:focus{
751
+ .magritte-small___DphY3_3-0-9:focus,
752
+ .magritte-medium___0kuIk_3-0-9:focus,
753
+ .magritte-large___1eRM6_3-0-9:focus{
754
754
  background-color:var(--magritte-color-component-input-background-state-field-focused-v20-0-1);
755
755
  box-shadow:inset 0 0 0 2px var(--magritte-color-component-input-stroke-state-field-focused-v20-0-1);
756
756
  --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-focused-v20-0-1);
757
757
  }
758
- .magritte-small___DphY3_3-0-8:focus .magritte-content___5eg6m_3-0-8,
759
- .magritte-medium___0kuIk_3-0-8:focus .magritte-content___5eg6m_3-0-8,
760
- .magritte-large___1eRM6_3-0-8:focus .magritte-content___5eg6m_3-0-8{
758
+ .magritte-small___DphY3_3-0-9:focus .magritte-content___5eg6m_3-0-9,
759
+ .magritte-medium___0kuIk_3-0-9:focus .magritte-content___5eg6m_3-0-9,
760
+ .magritte-large___1eRM6_3-0-9:focus .magritte-content___5eg6m_3-0-9{
761
761
  color:var(--magritte-color-component-input-text-state-label-focused-v20-0-1);
762
762
  }
763
- .magritte-small___DphY3_3-0-8:focus .magritte-label_elevated___N0xnk_3-0-8,
764
- .magritte-medium___0kuIk_3-0-8:focus .magritte-label_elevated___N0xnk_3-0-8,
765
- .magritte-large___1eRM6_3-0-8:focus .magritte-label_elevated___N0xnk_3-0-8{
763
+ .magritte-small___DphY3_3-0-9:focus .magritte-label_elevated___N0xnk_3-0-9,
764
+ .magritte-medium___0kuIk_3-0-9:focus .magritte-label_elevated___N0xnk_3-0-9,
765
+ .magritte-large___1eRM6_3-0-9:focus .magritte-label_elevated___N0xnk_3-0-9{
766
766
  color:var(--magritte-color-component-input-text-state-label-focused-v20-0-1);
767
767
  }
768
- .magritte-small___DphY3_3-0-8:focus .magritte-postfix___u4999_3-0-8,
769
- .magritte-medium___0kuIk_3-0-8:focus .magritte-postfix___u4999_3-0-8,
770
- .magritte-large___1eRM6_3-0-8:focus .magritte-postfix___u4999_3-0-8{
768
+ .magritte-small___DphY3_3-0-9:focus .magritte-postfix___u4999_3-0-9,
769
+ .magritte-medium___0kuIk_3-0-9:focus .magritte-postfix___u4999_3-0-9,
770
+ .magritte-large___1eRM6_3-0-9:focus .magritte-postfix___u4999_3-0-9{
771
771
  color:var(--magritte-color-component-input-text-state-postfix-focused-v20-0-1);
772
772
  }
773
- .magritte-small___DphY3_3-0-8{
773
+ .magritte-small___DphY3_3-0-9{
774
774
  padding:var(--magritte-static-space-250-v20-0-1) var(--magritte-static-space-300-v20-0-1);
775
775
  font-family:var(--magritte-typography-label-3-regular-font-family-v20-0-1);
776
776
  font-weight:var(--magritte-typography-label-3-regular-font-weight-v20-0-1);
@@ -781,7 +781,7 @@
781
781
  text-transform:var(--magritte-typography-label-3-regular-text-transform-v20-0-1);
782
782
  text-decoration:var(--magritte-typography-label-3-regular-text-decoration-v20-0-1);
783
783
  }
784
- .magritte-medium___0kuIk_3-0-8{
784
+ .magritte-medium___0kuIk_3-0-9{
785
785
  padding:var(--magritte-static-space-300-v20-0-1) var(--magritte-static-space-400-v20-0-1);
786
786
  font-family:var(--magritte-typography-label-2-regular-font-family-v20-0-1);
787
787
  font-weight:var(--magritte-typography-label-2-regular-font-weight-v20-0-1);
@@ -792,7 +792,7 @@
792
792
  text-transform:var(--magritte-typography-label-2-regular-text-transform-v20-0-1);
793
793
  text-decoration:var(--magritte-typography-label-2-regular-text-decoration-v20-0-1);
794
794
  }
795
- .magritte-large___1eRM6_3-0-8{
795
+ .magritte-large___1eRM6_3-0-9{
796
796
  padding:var(--magritte-static-space-400-v20-0-1);
797
797
  font-family:var(--magritte-typography-label-2-regular-font-family-v20-0-1);
798
798
  font-weight:var(--magritte-typography-label-2-regular-font-weight-v20-0-1);
@@ -803,151 +803,151 @@
803
803
  text-transform:var(--magritte-typography-label-2-regular-text-transform-v20-0-1);
804
804
  text-decoration:var(--magritte-typography-label-2-regular-text-decoration-v20-0-1);
805
805
  }
806
- .magritte-applied___jrfWs_3-0-8:not(.magritte-disabled___ZTuRA_3-0-8).magritte-small___DphY3_3-0-8:not(.magritte-invalid___Xlbyg_3-0-8),
807
- .magritte-applied___jrfWs_3-0-8:not(.magritte-disabled___ZTuRA_3-0-8).magritte-medium___0kuIk_3-0-8:not(.magritte-invalid___Xlbyg_3-0-8),
808
- .magritte-applied___jrfWs_3-0-8:not(.magritte-disabled___ZTuRA_3-0-8).magritte-large___1eRM6_3-0-8:not(.magritte-invalid___Xlbyg_3-0-8){
806
+ .magritte-applied___jrfWs_3-0-9:not(.magritte-disabled___ZTuRA_3-0-9).magritte-small___DphY3_3-0-9:not(.magritte-invalid___Xlbyg_3-0-9),
807
+ .magritte-applied___jrfWs_3-0-9:not(.magritte-disabled___ZTuRA_3-0-9).magritte-medium___0kuIk_3-0-9:not(.magritte-invalid___Xlbyg_3-0-9),
808
+ .magritte-applied___jrfWs_3-0-9:not(.magritte-disabled___ZTuRA_3-0-9).magritte-large___1eRM6_3-0-9:not(.magritte-invalid___Xlbyg_3-0-9){
809
809
  box-shadow:inset 0 0 0 2px var(--magritte-color-component-input-stroke-state-field-applied-v20-0-1);
810
810
  }
811
- .magritte-applied___jrfWs_3-0-8:not(.magritte-disabled___ZTuRA_3-0-8) .magritte-icon___HbC0r_3-0-8{
811
+ .magritte-applied___jrfWs_3-0-9:not(.magritte-disabled___ZTuRA_3-0-9) .magritte-icon___HbC0r_3-0-9{
812
812
  --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-content-applied-v20-0-1);
813
813
  }
814
- .magritte-applied___jrfWs_3-0-8:not(.magritte-disabled___ZTuRA_3-0-8) .magritte-content___5eg6m_3-0-8{
814
+ .magritte-applied___jrfWs_3-0-9:not(.magritte-disabled___ZTuRA_3-0-9) .magritte-content___5eg6m_3-0-9{
815
815
  color:var(--magritte-color-component-input-text-content-v20-0-1);
816
816
  }
817
- .magritte-invalid___Xlbyg_3-0-8.magritte-small___DphY3_3-0-8,
818
- .magritte-invalid___Xlbyg_3-0-8.magritte-medium___0kuIk_3-0-8,
819
- .magritte-invalid___Xlbyg_3-0-8.magritte-large___1eRM6_3-0-8{
817
+ .magritte-invalid___Xlbyg_3-0-9.magritte-small___DphY3_3-0-9,
818
+ .magritte-invalid___Xlbyg_3-0-9.magritte-medium___0kuIk_3-0-9,
819
+ .magritte-invalid___Xlbyg_3-0-9.magritte-large___1eRM6_3-0-9{
820
820
  background-color:var(--magritte-color-component-input-background-state-field-invalid-v20-0-1);
821
821
  box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-invalid-v20-0-1);
822
822
  --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-invalid-v20-0-1);
823
823
  }
824
- .magritte-invalid___Xlbyg_3-0-8.magritte-small___DphY3_3-0-8 .magritte-content___5eg6m_3-0-8,
825
- .magritte-invalid___Xlbyg_3-0-8.magritte-medium___0kuIk_3-0-8 .magritte-content___5eg6m_3-0-8,
826
- .magritte-invalid___Xlbyg_3-0-8.magritte-large___1eRM6_3-0-8 .magritte-content___5eg6m_3-0-8{
824
+ .magritte-invalid___Xlbyg_3-0-9.magritte-small___DphY3_3-0-9 .magritte-content___5eg6m_3-0-9,
825
+ .magritte-invalid___Xlbyg_3-0-9.magritte-medium___0kuIk_3-0-9 .magritte-content___5eg6m_3-0-9,
826
+ .magritte-invalid___Xlbyg_3-0-9.magritte-large___1eRM6_3-0-9 .magritte-content___5eg6m_3-0-9{
827
827
  color:var(--magritte-color-component-input-text-state-label-invalid-v20-0-1);
828
828
  }
829
- .magritte-invalid___Xlbyg_3-0-8.magritte-small___DphY3_3-0-8 .magritte-label_elevated___N0xnk_3-0-8,
830
- .magritte-invalid___Xlbyg_3-0-8.magritte-medium___0kuIk_3-0-8 .magritte-label_elevated___N0xnk_3-0-8,
831
- .magritte-invalid___Xlbyg_3-0-8.magritte-large___1eRM6_3-0-8 .magritte-label_elevated___N0xnk_3-0-8{
829
+ .magritte-invalid___Xlbyg_3-0-9.magritte-small___DphY3_3-0-9 .magritte-label_elevated___N0xnk_3-0-9,
830
+ .magritte-invalid___Xlbyg_3-0-9.magritte-medium___0kuIk_3-0-9 .magritte-label_elevated___N0xnk_3-0-9,
831
+ .magritte-invalid___Xlbyg_3-0-9.magritte-large___1eRM6_3-0-9 .magritte-label_elevated___N0xnk_3-0-9{
832
832
  color:var(--magritte-color-component-input-text-state-label-invalid-v20-0-1);
833
833
  }
834
- .magritte-invalid___Xlbyg_3-0-8.magritte-small___DphY3_3-0-8 .magritte-postfix___u4999_3-0-8,
835
- .magritte-invalid___Xlbyg_3-0-8.magritte-medium___0kuIk_3-0-8 .magritte-postfix___u4999_3-0-8,
836
- .magritte-invalid___Xlbyg_3-0-8.magritte-large___1eRM6_3-0-8 .magritte-postfix___u4999_3-0-8{
834
+ .magritte-invalid___Xlbyg_3-0-9.magritte-small___DphY3_3-0-9 .magritte-postfix___u4999_3-0-9,
835
+ .magritte-invalid___Xlbyg_3-0-9.magritte-medium___0kuIk_3-0-9 .magritte-postfix___u4999_3-0-9,
836
+ .magritte-invalid___Xlbyg_3-0-9.magritte-large___1eRM6_3-0-9 .magritte-postfix___u4999_3-0-9{
837
837
  color:var(--magritte-color-component-input-text-state-postfix-invalid-v20-0-1);
838
838
  }
839
839
  @media (min-width: 1020px){
840
- body.magritte-old-layout .magritte-invalid___Xlbyg_3-0-8.magritte-small___DphY3_3-0-8:not(.magritte-disabled___ZTuRA_3-0-8):not(:focus):hover,
841
- body.magritte-old-layout .magritte-invalid___Xlbyg_3-0-8.magritte-medium___0kuIk_3-0-8:not(.magritte-disabled___ZTuRA_3-0-8):not(:focus):hover,
842
- body.magritte-old-layout .magritte-invalid___Xlbyg_3-0-8.magritte-large___1eRM6_3-0-8:not(.magritte-disabled___ZTuRA_3-0-8):not(:focus):hover{
840
+ body.magritte-old-layout .magritte-invalid___Xlbyg_3-0-9.magritte-small___DphY3_3-0-9:not(.magritte-disabled___ZTuRA_3-0-9):not(:focus):hover,
841
+ body.magritte-old-layout .magritte-invalid___Xlbyg_3-0-9.magritte-medium___0kuIk_3-0-9:not(.magritte-disabled___ZTuRA_3-0-9):not(:focus):hover,
842
+ body.magritte-old-layout .magritte-invalid___Xlbyg_3-0-9.magritte-large___1eRM6_3-0-9:not(.magritte-disabled___ZTuRA_3-0-9):not(:focus):hover{
843
843
  box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-invalid-v20-0-1);
844
844
  }
845
845
  }
846
846
  @media (min-width: 1024px){
847
- body:not(.magritte-old-layout) .magritte-invalid___Xlbyg_3-0-8.magritte-small___DphY3_3-0-8:not(.magritte-disabled___ZTuRA_3-0-8):not(:focus):hover,
848
- body:not(.magritte-old-layout) .magritte-invalid___Xlbyg_3-0-8.magritte-medium___0kuIk_3-0-8:not(.magritte-disabled___ZTuRA_3-0-8):not(:focus):hover,
849
- body:not(.magritte-old-layout) .magritte-invalid___Xlbyg_3-0-8.magritte-large___1eRM6_3-0-8:not(.magritte-disabled___ZTuRA_3-0-8):not(:focus):hover{
847
+ body:not(.magritte-old-layout) .magritte-invalid___Xlbyg_3-0-9.magritte-small___DphY3_3-0-9:not(.magritte-disabled___ZTuRA_3-0-9):not(:focus):hover,
848
+ body:not(.magritte-old-layout) .magritte-invalid___Xlbyg_3-0-9.magritte-medium___0kuIk_3-0-9:not(.magritte-disabled___ZTuRA_3-0-9):not(:focus):hover,
849
+ body:not(.magritte-old-layout) .magritte-invalid___Xlbyg_3-0-9.magritte-large___1eRM6_3-0-9:not(.magritte-disabled___ZTuRA_3-0-9):not(:focus):hover{
850
850
  box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-invalid-v20-0-1);
851
851
  }
852
852
  }
853
- .magritte-invalid___Xlbyg_3-0-8.focus-visible{
853
+ .magritte-invalid___Xlbyg_3-0-9.focus-visible{
854
854
  outline:var(--magritte-color-component-input-stroke-state-negative-focused-accessible-v20-0-1) solid 4px;
855
855
  }
856
- .magritte-disabled___ZTuRA_3-0-8{
856
+ .magritte-disabled___ZTuRA_3-0-9{
857
857
  cursor:not-allowed;
858
858
  }
859
- .magritte-disabled___ZTuRA_3-0-8.magritte-xsmall___8iEkS_3-0-8{
859
+ .magritte-disabled___ZTuRA_3-0-9.magritte-xsmall___8iEkS_3-0-9{
860
860
  --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-disabled-v20-0-1);
861
861
  }
862
- .magritte-disabled___ZTuRA_3-0-8.magritte-xsmall___8iEkS_3-0-8 .magritte-content___5eg6m_3-0-8{
862
+ .magritte-disabled___ZTuRA_3-0-9.magritte-xsmall___8iEkS_3-0-9 .magritte-content___5eg6m_3-0-9{
863
863
  color:var(--magritte-color-component-input-text-state-label-disabled-v20-0-1);
864
864
  }
865
- .magritte-disabled___ZTuRA_3-0-8.magritte-xsmall___8iEkS_3-0-8 .magritte-label_elevated___N0xnk_3-0-8{
865
+ .magritte-disabled___ZTuRA_3-0-9.magritte-xsmall___8iEkS_3-0-9 .magritte-label_elevated___N0xnk_3-0-9{
866
866
  color:var(--magritte-color-component-input-text-state-label-disabled-v20-0-1);
867
867
  }
868
- .magritte-disabled___ZTuRA_3-0-8.magritte-xsmall___8iEkS_3-0-8 .magritte-postfix___u4999_3-0-8{
868
+ .magritte-disabled___ZTuRA_3-0-9.magritte-xsmall___8iEkS_3-0-9 .magritte-postfix___u4999_3-0-9{
869
869
  color:var(--magritte-color-component-input-text-state-postfix-disabled-v20-0-1);
870
870
  }
871
- .magritte-disabled___ZTuRA_3-0-8.magritte-small___DphY3_3-0-8,
872
- .magritte-disabled___ZTuRA_3-0-8.magritte-medium___0kuIk_3-0-8,
873
- .magritte-disabled___ZTuRA_3-0-8.magritte-large___1eRM6_3-0-8{
871
+ .magritte-disabled___ZTuRA_3-0-9.magritte-small___DphY3_3-0-9,
872
+ .magritte-disabled___ZTuRA_3-0-9.magritte-medium___0kuIk_3-0-9,
873
+ .magritte-disabled___ZTuRA_3-0-9.magritte-large___1eRM6_3-0-9{
874
874
  background-color:var(--magritte-color-component-input-background-state-field-disabled-v20-0-1);
875
875
  box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-disabled-v20-0-1);
876
876
  --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-disabled-v20-0-1);
877
877
  }
878
- .magritte-disabled___ZTuRA_3-0-8.magritte-small___DphY3_3-0-8 .magritte-content___5eg6m_3-0-8,
879
- .magritte-disabled___ZTuRA_3-0-8.magritte-medium___0kuIk_3-0-8 .magritte-content___5eg6m_3-0-8,
880
- .magritte-disabled___ZTuRA_3-0-8.magritte-large___1eRM6_3-0-8 .magritte-content___5eg6m_3-0-8{
878
+ .magritte-disabled___ZTuRA_3-0-9.magritte-small___DphY3_3-0-9 .magritte-content___5eg6m_3-0-9,
879
+ .magritte-disabled___ZTuRA_3-0-9.magritte-medium___0kuIk_3-0-9 .magritte-content___5eg6m_3-0-9,
880
+ .magritte-disabled___ZTuRA_3-0-9.magritte-large___1eRM6_3-0-9 .magritte-content___5eg6m_3-0-9{
881
881
  color:var(--magritte-color-component-input-text-state-label-disabled-v20-0-1);
882
882
  }
883
- .magritte-disabled___ZTuRA_3-0-8.magritte-small___DphY3_3-0-8 .magritte-label_elevated___N0xnk_3-0-8,
884
- .magritte-disabled___ZTuRA_3-0-8.magritte-medium___0kuIk_3-0-8 .magritte-label_elevated___N0xnk_3-0-8,
885
- .magritte-disabled___ZTuRA_3-0-8.magritte-large___1eRM6_3-0-8 .magritte-label_elevated___N0xnk_3-0-8{
883
+ .magritte-disabled___ZTuRA_3-0-9.magritte-small___DphY3_3-0-9 .magritte-label_elevated___N0xnk_3-0-9,
884
+ .magritte-disabled___ZTuRA_3-0-9.magritte-medium___0kuIk_3-0-9 .magritte-label_elevated___N0xnk_3-0-9,
885
+ .magritte-disabled___ZTuRA_3-0-9.magritte-large___1eRM6_3-0-9 .magritte-label_elevated___N0xnk_3-0-9{
886
886
  color:var(--magritte-color-component-input-text-state-label-disabled-v20-0-1);
887
887
  }
888
- .magritte-disabled___ZTuRA_3-0-8.magritte-small___DphY3_3-0-8 .magritte-postfix___u4999_3-0-8,
889
- .magritte-disabled___ZTuRA_3-0-8.magritte-medium___0kuIk_3-0-8 .magritte-postfix___u4999_3-0-8,
890
- .magritte-disabled___ZTuRA_3-0-8.magritte-large___1eRM6_3-0-8 .magritte-postfix___u4999_3-0-8{
888
+ .magritte-disabled___ZTuRA_3-0-9.magritte-small___DphY3_3-0-9 .magritte-postfix___u4999_3-0-9,
889
+ .magritte-disabled___ZTuRA_3-0-9.magritte-medium___0kuIk_3-0-9 .magritte-postfix___u4999_3-0-9,
890
+ .magritte-disabled___ZTuRA_3-0-9.magritte-large___1eRM6_3-0-9 .magritte-postfix___u4999_3-0-9{
891
891
  color:var(--magritte-color-component-input-text-state-postfix-disabled-v20-0-1);
892
892
  }
893
893
  @media (min-width: 1020px){
894
- body.magritte-old-layout .magritte-selected___NjQNn_3-0-8:not(.magritte-disabled___ZTuRA_3-0-8).magritte-xsmall___8iEkS_3-0-8:hover:not(.magritte-disabled___ZTuRA_3-0-8) .magritte-content___5eg6m_3-0-8,
895
- body.magritte-old-layout .magritte-selected___NjQNn_3-0-8:not(.magritte-disabled___ZTuRA_3-0-8).magritte-small___DphY3_3-0-8:hover:not(.magritte-disabled___ZTuRA_3-0-8) .magritte-content___5eg6m_3-0-8,
896
- body.magritte-old-layout .magritte-selected___NjQNn_3-0-8:not(.magritte-disabled___ZTuRA_3-0-8).magritte-medium___0kuIk_3-0-8:hover:not(.magritte-disabled___ZTuRA_3-0-8) .magritte-content___5eg6m_3-0-8,
897
- body.magritte-old-layout .magritte-selected___NjQNn_3-0-8:not(.magritte-disabled___ZTuRA_3-0-8).magritte-large___1eRM6_3-0-8:hover:not(.magritte-disabled___ZTuRA_3-0-8) .magritte-content___5eg6m_3-0-8{
894
+ body.magritte-old-layout .magritte-selected___NjQNn_3-0-9:not(.magritte-disabled___ZTuRA_3-0-9).magritte-xsmall___8iEkS_3-0-9:hover:not(.magritte-disabled___ZTuRA_3-0-9) .magritte-content___5eg6m_3-0-9,
895
+ body.magritte-old-layout .magritte-selected___NjQNn_3-0-9:not(.magritte-disabled___ZTuRA_3-0-9).magritte-small___DphY3_3-0-9:hover:not(.magritte-disabled___ZTuRA_3-0-9) .magritte-content___5eg6m_3-0-9,
896
+ body.magritte-old-layout .magritte-selected___NjQNn_3-0-9:not(.magritte-disabled___ZTuRA_3-0-9).magritte-medium___0kuIk_3-0-9:hover:not(.magritte-disabled___ZTuRA_3-0-9) .magritte-content___5eg6m_3-0-9,
897
+ body.magritte-old-layout .magritte-selected___NjQNn_3-0-9:not(.magritte-disabled___ZTuRA_3-0-9).magritte-large___1eRM6_3-0-9:hover:not(.magritte-disabled___ZTuRA_3-0-9) .magritte-content___5eg6m_3-0-9{
898
898
  color:var(--magritte-color-component-input-text-state-content-hovered-v20-0-1);
899
899
  }
900
900
  }
901
901
  @media (min-width: 1024px){
902
- body:not(.magritte-old-layout) .magritte-selected___NjQNn_3-0-8:not(.magritte-disabled___ZTuRA_3-0-8).magritte-xsmall___8iEkS_3-0-8:hover:not(.magritte-disabled___ZTuRA_3-0-8) .magritte-content___5eg6m_3-0-8,
903
- body:not(.magritte-old-layout) .magritte-selected___NjQNn_3-0-8:not(.magritte-disabled___ZTuRA_3-0-8).magritte-small___DphY3_3-0-8:hover:not(.magritte-disabled___ZTuRA_3-0-8) .magritte-content___5eg6m_3-0-8,
904
- body:not(.magritte-old-layout) .magritte-selected___NjQNn_3-0-8:not(.magritte-disabled___ZTuRA_3-0-8).magritte-medium___0kuIk_3-0-8:hover:not(.magritte-disabled___ZTuRA_3-0-8) .magritte-content___5eg6m_3-0-8,
905
- body:not(.magritte-old-layout) .magritte-selected___NjQNn_3-0-8:not(.magritte-disabled___ZTuRA_3-0-8).magritte-large___1eRM6_3-0-8:hover:not(.magritte-disabled___ZTuRA_3-0-8) .magritte-content___5eg6m_3-0-8{
902
+ body:not(.magritte-old-layout) .magritte-selected___NjQNn_3-0-9:not(.magritte-disabled___ZTuRA_3-0-9).magritte-xsmall___8iEkS_3-0-9:hover:not(.magritte-disabled___ZTuRA_3-0-9) .magritte-content___5eg6m_3-0-9,
903
+ body:not(.magritte-old-layout) .magritte-selected___NjQNn_3-0-9:not(.magritte-disabled___ZTuRA_3-0-9).magritte-small___DphY3_3-0-9:hover:not(.magritte-disabled___ZTuRA_3-0-9) .magritte-content___5eg6m_3-0-9,
904
+ body:not(.magritte-old-layout) .magritte-selected___NjQNn_3-0-9:not(.magritte-disabled___ZTuRA_3-0-9).magritte-medium___0kuIk_3-0-9:hover:not(.magritte-disabled___ZTuRA_3-0-9) .magritte-content___5eg6m_3-0-9,
905
+ body:not(.magritte-old-layout) .magritte-selected___NjQNn_3-0-9:not(.magritte-disabled___ZTuRA_3-0-9).magritte-large___1eRM6_3-0-9:hover:not(.magritte-disabled___ZTuRA_3-0-9) .magritte-content___5eg6m_3-0-9{
906
906
  color:var(--magritte-color-component-input-text-state-content-hovered-v20-0-1);
907
907
  }
908
908
  }
909
- .magritte-selected___NjQNn_3-0-8:not(.magritte-disabled___ZTuRA_3-0-8) .magritte-content___5eg6m_3-0-8{
909
+ .magritte-selected___NjQNn_3-0-9:not(.magritte-disabled___ZTuRA_3-0-9) .magritte-content___5eg6m_3-0-9{
910
910
  color:var(--magritte-color-component-input-text-content-v20-0-1);
911
911
  }
912
- .magritte-content___5eg6m_3-0-8{
912
+ .magritte-content___5eg6m_3-0-9{
913
913
  min-width:0;
914
914
  color:var(--magritte-color-component-input-text-placeholder-v20-0-1);
915
915
  padding-right:var(--magritte-static-space-200-v20-0-1);
916
916
  }
917
- .magritte-invalid___Xlbyg_3-0-8.magritte-xsmall___8iEkS_3-0-8 .magritte-content___5eg6m_3-0-8{
917
+ .magritte-invalid___Xlbyg_3-0-9.magritte-xsmall___8iEkS_3-0-9 .magritte-content___5eg6m_3-0-9{
918
918
  color:var(--magritte-color-component-input-text-state-content-invalid-attention-v20-0-1);
919
919
  }
920
920
  @media (min-width: 1020px){
921
- body.magritte-old-layout .magritte-invalid___Xlbyg_3-0-8.magritte-xsmall___8iEkS_3-0-8 .magritte-content___5eg6m_3-0-8:not(.magritte-disabled___ZTuRA_3-0-8):not(:focus):hover{
921
+ body.magritte-old-layout .magritte-invalid___Xlbyg_3-0-9.magritte-xsmall___8iEkS_3-0-9 .magritte-content___5eg6m_3-0-9:not(.magritte-disabled___ZTuRA_3-0-9):not(:focus):hover{
922
922
  color:var(--magritte-color-component-input-text-state-content-invalid-attention-v20-0-1);
923
923
  }
924
924
  }
925
925
  @media (min-width: 1024px){
926
- body:not(.magritte-old-layout) .magritte-invalid___Xlbyg_3-0-8.magritte-xsmall___8iEkS_3-0-8 .magritte-content___5eg6m_3-0-8:not(.magritte-disabled___ZTuRA_3-0-8):not(:focus):hover{
926
+ body:not(.magritte-old-layout) .magritte-invalid___Xlbyg_3-0-9.magritte-xsmall___8iEkS_3-0-9 .magritte-content___5eg6m_3-0-9:not(.magritte-disabled___ZTuRA_3-0-9):not(:focus):hover{
927
927
  color:var(--magritte-color-component-input-text-state-content-invalid-attention-v20-0-1);
928
928
  }
929
929
  }
930
- .magritte-content_medium___VnlIy_3-0-8,
931
- .magritte-content_large___byZTA_3-0-8{
930
+ .magritte-content_medium___VnlIy_3-0-9,
931
+ .magritte-content_large___byZTA_3-0-9{
932
932
  padding-right:var(--magritte-static-space-300-v20-0-1);
933
933
  }
934
- .magritte-content_label-can-be-elevated___HRkpl_3-0-8{
934
+ .magritte-content_label-can-be-elevated___HRkpl_3-0-9{
935
935
  height:22px;
936
936
  }
937
- .magritte-values-wrapper___yQbdl_3-0-8{
937
+ .magritte-values-wrapper___yQbdl_3-0-9{
938
938
  display:flex;
939
939
  }
940
- .magritte-values-wrapper_label-can-elevated___A0bzp_3-0-8{
940
+ .magritte-values-wrapper_label-can-elevated___A0bzp_3-0-9{
941
941
  margin-top:calc(0px - ((var(--magritte-typography-label-4-regular-line-height-v20-0-1) + var(--magritte-typography-label-2-regular-line-height-v20-0-1)) / 2) + (var(--magritte-typography-label-4-regular-line-height-v20-0-1) / 2));
942
942
  }
943
- .magritte-values___6wj-v_3-0-8{
943
+ .magritte-values___6wj-v_3-0-9{
944
944
  white-space:nowrap;
945
945
  text-overflow:ellipsis;
946
946
  text-align:left;
947
947
  overflow:hidden;
948
948
  flex:0 1 auto;
949
949
  }
950
- .magritte-label___VsUEF_3-0-8{
950
+ .magritte-label___VsUEF_3-0-9{
951
951
  text-align:left;
952
952
  transition-property:transform, color, font-size, letter-spacing;
953
953
  transition-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v20-0-1);
@@ -956,7 +956,7 @@
956
956
  text-overflow:ellipsis;
957
957
  overflow:hidden;
958
958
  }
959
- .magritte-label_elevated___N0xnk_3-0-8{
959
+ .magritte-label_elevated___N0xnk_3-0-9{
960
960
  font-family:var(--magritte-typography-label-4-regular-font-family-v20-0-1);
961
961
  font-weight:var(--magritte-typography-label-4-regular-font-weight-v20-0-1);
962
962
  line-height:var(--magritte-typography-label-4-regular-line-height-v20-0-1);
@@ -969,7 +969,7 @@
969
969
  margin-top:2px;
970
970
  transform:translateY(calc(0px - ((var(--magritte-typography-label-4-regular-line-height-v20-0-1) + var(--magritte-typography-label-2-regular-line-height-v20-0-1)) / 2) + (var(--magritte-typography-label-4-regular-line-height-v20-0-1) / 2)));
971
971
  }
972
- .magritte-icon___HbC0r_3-0-8{
972
+ .magritte-icon___HbC0r_3-0-9{
973
973
  display:inline-flex;
974
974
  margin-left:auto;
975
975
  border-radius:var(--magritte-core-border-radius-3-x-v20-0-1);
@@ -977,18 +977,18 @@
977
977
  transition-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v20-0-1);
978
978
  transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v20-0-1);
979
979
  }
980
- .magritte-icon___HbC0r_3-0-8.focus-visible{
980
+ .magritte-icon___HbC0r_3-0-9.focus-visible{
981
981
  outline:var(--magritte-color-component-input-stroke-state-accent-focused-accessible-v20-0-1) solid 4px;
982
982
  }
983
- .magritte-icon_expanded___ggr1u_3-0-8{
983
+ .magritte-icon_expanded___ggr1u_3-0-9{
984
984
  transform:rotate(-180deg);
985
985
  --magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-focused-v20-0-1);
986
986
  }
987
- .magritte-postfix___u4999_3-0-8{
987
+ .magritte-postfix___u4999_3-0-9{
988
988
  color:var(--magritte-color-component-input-text-postfix-v20-0-1);
989
989
  padding-left:var(--magritte-static-space-150-v20-0-1);
990
990
  flex:1 0 auto;
991
991
  }
992
- .magritte-postfix_metric___jO3qH_3-0-8{
992
+ .magritte-postfix_metric___jO3qH_3-0-9{
993
993
  display:none;
994
994
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-trigger",
3
- "version": "3.0.8",
3
+ "version": "3.0.9",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -32,8 +32,8 @@
32
32
  "@hh.ru/magritte-common-use-multiple-refs": "1.1.4",
33
33
  "@hh.ru/magritte-ui-action": "4.4.17",
34
34
  "@hh.ru/magritte-ui-button": "5.2.9",
35
- "@hh.ru/magritte-ui-form-helper": "1.0.16",
35
+ "@hh.ru/magritte-ui-form-helper": "1.0.17",
36
36
  "@hh.ru/magritte-ui-icon": "7.9.6"
37
37
  },
38
- "gitHead": "5e39c82ca3c8af74be5ac205406e44df626adcc6"
38
+ "gitHead": "e07e30dd365e91f71d0dd60defea49856af99bd4"
39
39
  }