@hh.ru/magritte-ui-trigger 2.1.1 → 2.2.0
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 +65 -19
- package/Trigger.js.map +1 -1
- package/index.css +402 -329
- package/index.js +2 -0
- package/index.js.map +1 -1
- package/package.json +8 -6
- package/types.d.ts +7 -2
package/Trigger.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import './index.css';
|
|
2
|
-
import { jsxs, Fragment
|
|
3
|
-
import { useRef, useCallback } from 'react';
|
|
2
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
|
+
import { useRef, useState, useMemo, useCallback, useLayoutEffect } from 'react';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
|
+
import { throttle } from '@hh.ru/magritte-common-func-utils';
|
|
5
6
|
import { keyboardMatches, keyboardKeys } from '@hh.ru/magritte-common-keyboard';
|
|
7
|
+
import { useResize } from '@hh.ru/magritte-common-resize';
|
|
6
8
|
import { Action } from '@hh.ru/magritte-ui-action';
|
|
7
9
|
import { FormHelper } from '@hh.ru/magritte-ui-form-helper';
|
|
8
10
|
import { CrossOutlinedSize24, ChevronDownOutlinedSize24, CrossOutlinedSize16, ChevronDownOutlinedSize16 } from '@hh.ru/magritte-ui-icon/icon';
|
|
9
11
|
|
|
10
|
-
var styles = {"trigger-root":"magritte-trigger-root___dPhW4_2-
|
|
12
|
+
var styles = {"trigger-root":"magritte-trigger-root___dPhW4_2-2-0","triggerRoot":"magritte-trigger-root___dPhW4_2-2-0","disabled":"magritte-disabled___ZTuRA_2-2-0","trigger-root_stretched":"magritte-trigger-root_stretched___IhAsT_2-2-0","triggerRootStretched":"magritte-trigger-root_stretched___IhAsT_2-2-0","trigger":"magritte-trigger___IpHhR_2-2-0","xsmall":"magritte-xsmall___8iEkS_2-2-0","applied":"magritte-applied___jrfWs_2-2-0","content":"magritte-content___5eg6m_2-2-0","label_elevated":"magritte-label_elevated___N0xnk_2-2-0","labelElevated":"magritte-label_elevated___N0xnk_2-2-0","postfix":"magritte-postfix___u4999_2-2-0","small":"magritte-small___DphY3_2-2-0","medium":"magritte-medium___0kuIk_2-2-0","large":"magritte-large___1eRM6_2-2-0","invalid":"magritte-invalid___Xlbyg_2-2-0","icon":"magritte-icon___HbC0r_2-2-0","selected":"magritte-selected___NjQNn_2-2-0","content_medium":"magritte-content_medium___VnlIy_2-2-0","contentMedium":"magritte-content_medium___VnlIy_2-2-0","content_large":"magritte-content_large___byZTA_2-2-0","contentLarge":"magritte-content_large___byZTA_2-2-0","content_label-can-be-elevated":"magritte-content_label-can-be-elevated___HRkpl_2-2-0","contentLabelCanBeElevated":"magritte-content_label-can-be-elevated___HRkpl_2-2-0","values-wrapper":"magritte-values-wrapper___yQbdl_2-2-0","valuesWrapper":"magritte-values-wrapper___yQbdl_2-2-0","values-wrapper_label-can-elevated":"magritte-values-wrapper_label-can-elevated___A0bzp_2-2-0","valuesWrapperLabelCanElevated":"magritte-values-wrapper_label-can-elevated___A0bzp_2-2-0","values":"magritte-values___6wj-v_2-2-0","label":"magritte-label___VsUEF_2-2-0","icon_expanded":"magritte-icon_expanded___ggr1u_2-2-0","iconExpanded":"magritte-icon_expanded___ggr1u_2-2-0","postfix_metric":"magritte-postfix_metric___jO3qH_2-2-0","postfixMetric":"magritte-postfix_metric___jO3qH_2-2-0"};
|
|
11
13
|
|
|
12
14
|
// расчитываем размер шеврона на базе `size`
|
|
13
15
|
// если состояние `applied`, то нужно использовать крест
|
|
@@ -23,11 +25,23 @@ const getIcon = (size, applied) => {
|
|
|
23
25
|
}
|
|
24
26
|
return ChevronDownOutlinedSize16;
|
|
25
27
|
};
|
|
26
|
-
const
|
|
28
|
+
const defaultRenderFormattedValue = (value, index, length) => {
|
|
29
|
+
return (jsxs(Fragment, { children: [value, index !== length - 1 && ', '] }));
|
|
30
|
+
};
|
|
31
|
+
const Trigger = ({ applied, description, disabled, expanded, maxWidth, invalid, values = [], label, elevateLabel, errorMessage, renderFormattedValue = defaultRenderFormattedValue, trls, stretched, size, showPostfix, onToogle, onClear, }) => {
|
|
27
32
|
const triggerRef = useRef(null);
|
|
28
|
-
const
|
|
29
|
-
const
|
|
33
|
+
const itemsRefs = useRef([]);
|
|
34
|
+
const itemsWrapperRef = useRef(null);
|
|
35
|
+
const postfixMetricRef = useRef(null);
|
|
36
|
+
const showValues = values.length > 0;
|
|
37
|
+
const labelCanBeElevated = size === 'large' && !!elevateLabel && !!label;
|
|
38
|
+
const labelIsElevated = showValues && labelCanBeElevated;
|
|
30
39
|
const IconComponent = getIcon(size, Boolean(applied));
|
|
40
|
+
const [postfix, setPostfix] = useState(0);
|
|
41
|
+
const formattedValues = useMemo(() => {
|
|
42
|
+
itemsRefs.current = [];
|
|
43
|
+
return values.map((value, index) => (jsx("span", { ref: (element) => element && (itemsRefs.current[index] = element), children: renderFormattedValue(value, index, values.length) }, index)));
|
|
44
|
+
}, [renderFormattedValue, values]);
|
|
31
45
|
const handleClickTrigger = useCallback(() => {
|
|
32
46
|
onToogle?.();
|
|
33
47
|
}, [onToogle]);
|
|
@@ -47,19 +61,51 @@ const Trigger = ({ applied, description, disabled, expanded, minWidth, invalid,
|
|
|
47
61
|
event.stopPropagation();
|
|
48
62
|
}
|
|
49
63
|
}, [onClear]);
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
64
|
+
const calcPostfix = useCallback(throttle(() => {
|
|
65
|
+
if (!itemsWrapperRef.current || !postfixMetricRef.current) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
if (!showPostfix) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
// перевод в постфиксе может поменяться, а ширину надщо учесть
|
|
72
|
+
postfixMetricRef.current.style.display = 'inline';
|
|
73
|
+
const postfixWidth = postfixMetricRef.current.offsetWidth;
|
|
74
|
+
postfixMetricRef.current.style.display = 'none';
|
|
75
|
+
const parentWidth = itemsWrapperRef.current.offsetWidth - postfixWidth;
|
|
76
|
+
let childrenWidth = 0;
|
|
77
|
+
// увеличиваем ширину, пока не дойдем до элемента, который схлопывается в `...`
|
|
78
|
+
const truncatedItemIndex = itemsRefs.current.findIndex((itemRef) => {
|
|
79
|
+
childrenWidth += itemRef.offsetWidth;
|
|
80
|
+
return childrenWidth > parentWidth;
|
|
81
|
+
});
|
|
82
|
+
if (truncatedItemIndex === -1) {
|
|
83
|
+
setPostfix(0);
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
if (values.length - 1 > truncatedItemIndex) {
|
|
87
|
+
setPostfix(values.length - 1 - truncatedItemIndex);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
setPostfix(0);
|
|
91
|
+
}
|
|
92
|
+
}, 50), [values, showPostfix, maxWidth]);
|
|
93
|
+
useLayoutEffect(calcPostfix, [calcPostfix]);
|
|
94
|
+
useResize(calcPostfix);
|
|
95
|
+
return (jsxs("div", { children: [jsx("div", { className: classnames(styles.triggerRoot, { [styles.triggerRootStretched]: stretched }), style: maxWidth ? { maxWidth } : {}, children: jsxs("div", { ref: triggerRef, className: classnames(styles.trigger, styles[size], {
|
|
96
|
+
[styles.applied]: applied,
|
|
97
|
+
[styles.disabled]: disabled,
|
|
98
|
+
[styles.invalid]: invalid,
|
|
99
|
+
[styles.selected]: showValues,
|
|
100
|
+
}), onClick: !applied && !disabled ? handleClickTrigger : undefined, onKeyDown: !applied && !disabled ? handleKeyDownTrigger : undefined, tabIndex: disabled ? -1 : 0, children: [jsxs("div", { className: classnames(styles.content, styles[`content_${size}`], {
|
|
101
|
+
[styles.contentLabelCanBeElevated]: labelCanBeElevated,
|
|
102
|
+
}), children: [labelCanBeElevated && (jsx("div", { className: classnames(styles.label, {
|
|
103
|
+
[styles.labelElevated]: labelIsElevated,
|
|
104
|
+
}), children: label })), !labelCanBeElevated && !showValues && jsx("div", { className: styles.label, children: label }), showValues && (jsxs("div", { ref: itemsWrapperRef, className: classnames(styles.valuesWrapper, {
|
|
105
|
+
[styles.valuesWrapperLabelCanElevated]: labelIsElevated,
|
|
106
|
+
}), children: [jsx("div", { className: styles.values, children: formattedValues }), showPostfix && postfix > 0 && (jsx("div", { className: styles.postfix, children: `${trls?.postfix} ${postfix}` }))] })), jsx("span", { ref: postfixMetricRef, className: classnames(styles.postfix, styles.postfixMetric), children: `${trls?.postfix} ${postfix}` })] }), !applied && (jsx("div", { className: classnames(styles.icon, {
|
|
107
|
+
[styles.iconExpanded]: expanded,
|
|
108
|
+
}), children: jsx(IconComponent, {}) })), applied && (jsx("div", { className: styles.icon, children: jsx(Action, { onKeyDown: handleKeyDownClear, onClick: handleClickClear, icon: IconComponent, disabled: disabled, disablePadding: true }) }))] }) }), jsx(FormHelper, { description: description, errorMessage: errorMessage, disabled: disabled, invalid: invalid })] }));
|
|
63
109
|
};
|
|
64
110
|
|
|
65
111
|
export { Trigger };
|
package/Trigger.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Trigger.js","sources":["../src/Trigger.tsx"],"sourcesContent":["import { FC, useCallback, KeyboardEventHandler, useRef } from 'react';\nimport classnames from 'classnames';\n\nimport { keyboardKeys, keyboardMatches } from '@hh.ru/magritte-common-keyboard';\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\nexport const Trigger: FC<TriggerProps> = ({\n applied,\n description,\n disabled,\n expanded,\n minWidth,\n invalid,\n value,\n label,\n elevateLabel,\n errorMessage,\n stretched,\n size,\n onToogle,\n onClear,\n}) => {\n const triggerRef = useRef<HTMLDivElement>(null);\n const labelCanElevated = size === 'large' && !!elevateLabel && !!label;\n const labelIsElevated = value !== '' && labelCanElevated;\n const IconComponent = getIcon(size, Boolean(applied));\n\n const handleClickTrigger = useCallback(() => {\n onToogle?.();\n }, [onToogle]);\n\n const handleKeyDownTrigger = useCallback<KeyboardEventHandler>(\n (event) => {\n if (keyboardMatches(event.nativeEvent, [keyboardKeys.Space])) {\n onToogle?.();\n }\n },\n [onToogle]\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 return (\n <div className={styles.triggerRoot}>\n <div\n ref={triggerRef}\n className={classnames(styles.trigger, styles[size], {\n [styles.applied]: applied,\n [styles.disabled]: disabled,\n [styles.invalid]: invalid,\n [styles.stretched]: stretched,\n [styles.selected]: Boolean(value),\n })}\n onClick={!applied && !disabled ? handleClickTrigger : undefined}\n onKeyDown={!applied && !disabled ? handleKeyDownTrigger : undefined}\n style={minWidth ? { minWidth: `${minWidth}px` } : {}}\n tabIndex={disabled ? -1 : 0}\n >\n <div\n className={classnames(styles.content, styles[`content_${size}`], {\n [styles.contentLabelCanElevated]: labelCanElevated,\n })}\n >\n {!labelCanElevated && (value || label)}\n {labelCanElevated && (\n <>\n <div\n className={classnames(styles.label, {\n [styles.labelElevated]: labelIsElevated,\n })}\n >\n {label}\n </div>\n {value && <div className={styles.value}>{value}</div>}\n </>\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"],"names":["_jsxs","_Fragment","_jsx"],"mappings":";;;;;;;;;;AAiBA;AACA;AACA,MAAM,OAAO,GAAG,CAAC,IAAiB,EAAE,OAAgB,KAA6D;AAC7G,IAAA,IAAI,IAAI,KAAK,OAAO,IAAI,IAAI,KAAK,QAAQ,EAAE;AACvC,QAAA,IAAI,OAAO,EAAE;AACT,YAAA,OAAO,mBAAmB,CAAC;AAC9B,SAAA;AACD,QAAA,OAAO,yBAAyB,CAAC;AACpC,KAAA;AACD,IAAA,IAAI,OAAO,EAAE;AACT,QAAA,OAAO,mBAAmB,CAAC;AAC9B,KAAA;AACD,IAAA,OAAO,yBAAyB,CAAC;AACrC,CAAC,CAAC;AAEK,MAAM,OAAO,GAAqB,CAAC,EACtC,OAAO,EACP,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,KAAK,EACL,KAAK,EACL,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,OAAO,GACV,KAAI;AACD,IAAA,MAAM,UAAU,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;AAChD,IAAA,MAAM,gBAAgB,GAAG,IAAI,KAAK,OAAO,IAAI,CAAC,CAAC,YAAY,IAAI,CAAC,CAAC,KAAK,CAAC;AACvE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CAAO,CACtD,EAAA,CAAA,CACN,CACC,EAAA,CAAA,EACL,CAAC,OAAO,KACLA,GAAA,CAAA,KAAA,EAAA,EACI,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE;AAC/B,4BAAA,CAAC,MAAM,CAAC,YAAY,GAAG,QAAQ;AAClC,yBAAA,CAAC,EAEF,QAAA,EAAAA,GAAA,CAAC,aAAa,EAAA,EAAA,CAAG,EACf,CAAA,CACT,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;;;;"}
|
|
1
|
+
{"version":3,"file":"Trigger.js","sources":["../src/Trigger.tsx"],"sourcesContent":["import { FC, useCallback, KeyboardEventHandler, useRef, ReactNode, useMemo, useLayoutEffect, useState } 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 { 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 Trigger: FC<TriggerProps> = ({\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 onToogle,\n onClear,\n}) => {\n const triggerRef = useRef<HTMLDivElement>(null);\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 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 onToogle?.();\n }, [onToogle]);\n\n const handleKeyDownTrigger = useCallback<KeyboardEventHandler>(\n (event) => {\n if (keyboardMatches(event.nativeEvent, [keyboardKeys.Space])) {\n onToogle?.();\n }\n },\n [onToogle]\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 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 postfixWidth = postfixMetricRef.current.offsetWidth;\n postfixMetricRef.current.style.display = 'none';\n const parentWidth = itemsWrapperRef.current.offsetWidth - postfixWidth;\n let childrenWidth = 0;\n // увеличиваем ширину, пока не дойдем до элемента, который схлопывается в `...`\n const truncatedItemIndex = itemsRefs.current.findIndex((itemRef) => {\n childrenWidth += itemRef.offsetWidth;\n return childrenWidth > parentWidth;\n });\n if (truncatedItemIndex === -1) {\n setPostfix(0);\n return;\n }\n if (values.length - 1 > truncatedItemIndex) {\n setPostfix(values.length - 1 - truncatedItemIndex);\n } else {\n setPostfix(0);\n }\n }, 50),\n [values, showPostfix, maxWidth]\n );\n\n useLayoutEffect(calcPostfix, [calcPostfix]);\n useResize(calcPostfix);\n\n return (\n <div>\n <div\n className={classnames(styles.triggerRoot, { [styles.triggerRootStretched]: stretched })}\n style={maxWidth ? { maxWidth } : {}}\n >\n <div\n ref={triggerRef}\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={!applied && !disabled ? handleClickTrigger : undefined}\n onKeyDown={!applied && !disabled ? handleKeyDownTrigger : undefined}\n tabIndex={disabled ? -1 : 0}\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 ref={itemsWrapperRef}\n className={classnames(styles.valuesWrapper, {\n [styles.valuesWrapperLabelCanElevated]: labelIsElevated,\n })}\n >\n <div className={styles.values}>{formattedValues}</div>\n {showPostfix && postfix > 0 && (\n <div className={styles.postfix}>{`${trls?.postfix} ${postfix}`}</div>\n )}\n </div>\n )}\n <span\n ref={postfixMetricRef}\n className={classnames(styles.postfix, styles.postfixMetric)}\n >{`${trls?.postfix} ${postfix}`}</span>\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 </div>\n <FormHelper description={description} errorMessage={errorMessage} disabled={disabled} invalid={invalid} />\n </div>\n );\n};\n"],"names":["_jsxs","_Fragment","_jsx"],"mappings":";;;;;;;;;;;;AAmBA;AACA;AACA,MAAM,OAAO,GAAG,CAAC,IAAiB,EAAE,OAAgB,KAA6D;AAC7G,IAAA,IAAI,IAAI,KAAK,OAAO,IAAI,IAAI,KAAK,QAAQ,EAAE;AACvC,QAAA,IAAI,OAAO,EAAE;AACT,YAAA,OAAO,mBAAmB,CAAC;AAC9B,SAAA;AACD,QAAA,OAAO,yBAAyB,CAAC;AACpC,KAAA;AACD,IAAA,IAAI,OAAO,EAAE;AACT,QAAA,OAAO,mBAAmB,CAAC;AAC9B,KAAA;AACD,IAAA,OAAO,yBAAyB,CAAC;AACrC,CAAC,CAAC;AAEF,MAAM,2BAA2B,GAAG,CAAC,KAAgB,EAAE,KAAa,EAAE,MAAc,KAAI;AACpF,IAAA,QACIA,IAAA,CAAAC,QAAA,EA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S,EAAE,kBAAkB,EAC7B,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,aAAa,EACnB,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAA,IAAA,EAAA,CAChB,EACA,CAAA,CACT,CACC,EAAA,CAAA,EAAA,CACJ,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;;;;"}
|
package/index.css
CHANGED
|
@@ -1,414 +1,487 @@
|
|
|
1
1
|
:root{
|
|
2
|
-
--magritte-color-component-input-stroke-state-field-hovered-v18-
|
|
3
|
-
--magritte-color-component-input-stroke-state-field-focused-v18-
|
|
4
|
-
--magritte-color-component-input-stroke-state-accent-focused-accessible-v18-
|
|
5
|
-
--magritte-color-component-input-stroke-state-field-invalid-v18-
|
|
6
|
-
--magritte-color-component-input-stroke-state-negative-focused-accessible-v18-
|
|
7
|
-
--magritte-color-component-input-stroke-state-field-disabled-v18-
|
|
8
|
-
--magritte-color-component-input-stroke-state-field-applied-v18-
|
|
9
|
-
--magritte-color-component-input-background-field-v18-
|
|
10
|
-
--magritte-color-component-input-background-state-field-hovered-v18-
|
|
11
|
-
--magritte-color-component-input-background-state-field-focused-v18-
|
|
12
|
-
--magritte-color-component-input-background-state-field-invalid-v18-
|
|
13
|
-
--magritte-color-component-input-background-state-field-disabled-v18-
|
|
14
|
-
--magritte-color-component-input-stroke-field-v18-
|
|
15
|
-
--magritte-color-component-input-text-state-label-disabled-v18-
|
|
16
|
-
--magritte-color-component-input-text-state-description-disabled-v18-
|
|
17
|
-
--magritte-color-component-input-text-state-content-hovered-v18-
|
|
18
|
-
--magritte-color-component-input-text-state-content-invalid-attention-v18-
|
|
19
|
-
--magritte-color-component-input-text-state-label-hovered-v18-
|
|
20
|
-
--magritte-color-component-input-text-state-label-focused-v18-
|
|
21
|
-
--magritte-color-component-input-text-state-label-invalid-v18-
|
|
22
|
-
--magritte-color-component-input-text-state-description-invalid-v18-
|
|
23
|
-
--magritte-color-component-input-
|
|
24
|
-
--magritte-color-component-input-
|
|
25
|
-
--magritte-color-component-input-
|
|
26
|
-
--magritte-color-component-input-
|
|
27
|
-
--magritte-color-component-input-icon-
|
|
28
|
-
--magritte-color-component-input-icon-state-
|
|
29
|
-
--magritte-color-component-input-
|
|
30
|
-
--magritte-color-component-input-
|
|
31
|
-
--magritte-color-component-input-
|
|
32
|
-
--magritte-color-component-input-
|
|
2
|
+
--magritte-color-component-input-stroke-state-field-hovered-v18-3-0:#CCD5DF;
|
|
3
|
+
--magritte-color-component-input-stroke-state-field-focused-v18-3-0:#0070ff;
|
|
4
|
+
--magritte-color-component-input-stroke-state-accent-focused-accessible-v18-3-0:#0070ff7a;
|
|
5
|
+
--magritte-color-component-input-stroke-state-field-invalid-v18-3-0:#ff4d3a;
|
|
6
|
+
--magritte-color-component-input-stroke-state-negative-focused-accessible-v18-3-0:#ff4d3a7a;
|
|
7
|
+
--magritte-color-component-input-stroke-state-field-disabled-v18-3-0:#EEF1F7;
|
|
8
|
+
--magritte-color-component-input-stroke-state-field-applied-v18-3-0:#000000;
|
|
9
|
+
--magritte-color-component-input-background-field-v18-3-0:#ffffff;
|
|
10
|
+
--magritte-color-component-input-background-state-field-hovered-v18-3-0:#ffffff;
|
|
11
|
+
--magritte-color-component-input-background-state-field-focused-v18-3-0:#ffffff;
|
|
12
|
+
--magritte-color-component-input-background-state-field-invalid-v18-3-0:#ffffff;
|
|
13
|
+
--magritte-color-component-input-background-state-field-disabled-v18-3-0:#F4F6FB;
|
|
14
|
+
--magritte-color-component-input-stroke-field-v18-3-0:#DCE3EB;
|
|
15
|
+
--magritte-color-component-input-text-state-label-disabled-v18-3-0:#AABBCA;
|
|
16
|
+
--magritte-color-component-input-text-state-description-disabled-v18-3-0:#AABBCA;
|
|
17
|
+
--magritte-color-component-input-text-state-content-hovered-v18-3-0:#000000;
|
|
18
|
+
--magritte-color-component-input-text-state-content-invalid-attention-v18-3-0:#ff4d3a;
|
|
19
|
+
--magritte-color-component-input-text-state-label-hovered-v18-3-0:#768694;
|
|
20
|
+
--magritte-color-component-input-text-state-label-focused-v18-3-0:#768694;
|
|
21
|
+
--magritte-color-component-input-text-state-label-invalid-v18-3-0:#768694;
|
|
22
|
+
--magritte-color-component-input-text-state-description-invalid-v18-3-0:#ff4d3a;
|
|
23
|
+
--magritte-color-component-input-text-state-postfix-disabled-v18-3-0:#AABBCA;
|
|
24
|
+
--magritte-color-component-input-text-state-postfix-focused-v18-3-0:#768694;
|
|
25
|
+
--magritte-color-component-input-text-state-postfix-hovered-v18-3-0:#768694;
|
|
26
|
+
--magritte-color-component-input-text-state-postfix-invalid-v18-3-0:#768694;
|
|
27
|
+
--magritte-color-component-input-icon-chevron-v18-3-0:#AABBCA;
|
|
28
|
+
--magritte-color-component-input-icon-state-content-applied-v18-3-0:#000000;
|
|
29
|
+
--magritte-color-component-input-icon-state-chevron-focused-v18-3-0:#000000;
|
|
30
|
+
--magritte-color-component-input-icon-state-chevron-hovered-v18-3-0:#6a7885;
|
|
31
|
+
--magritte-color-component-input-icon-state-chevron-disabled-v18-3-0:#AABBCA;
|
|
32
|
+
--magritte-color-component-input-icon-state-chevron-invalid-v18-3-0:#AABBCA;
|
|
33
|
+
--magritte-color-component-input-text-content-v18-3-0:#000000;
|
|
34
|
+
--magritte-color-component-input-text-label-v18-3-0:#768694;
|
|
35
|
+
--magritte-color-component-input-text-placeholder-v18-3-0:#AABBCA;
|
|
36
|
+
--magritte-color-component-input-text-description-v18-3-0:#768694;
|
|
37
|
+
--magritte-color-component-input-text-postfix-v18-3-0:#768694;
|
|
33
38
|
}
|
|
34
39
|
:root{
|
|
35
|
-
--magritte-typography-label-2-regular-font-family-v18-
|
|
36
|
-
--magritte-typography-label-2-regular-font-weight-v18-
|
|
37
|
-
--magritte-typography-label-2-regular-line-height-v18-
|
|
38
|
-
--magritte-typography-label-2-regular-font-size-v18-
|
|
39
|
-
--magritte-typography-label-2-regular-letter-spacing-v18-
|
|
40
|
-
--magritte-typography-label-2-regular-text-indent-v18-
|
|
41
|
-
--magritte-typography-label-2-regular-text-transform-v18-
|
|
42
|
-
--magritte-typography-label-2-regular-text-decoration-v18-
|
|
43
|
-
--magritte-typography-label-3-regular-font-family-v18-
|
|
44
|
-
--magritte-typography-label-3-regular-font-weight-v18-
|
|
45
|
-
--magritte-typography-label-3-regular-line-height-v18-
|
|
46
|
-
--magritte-typography-label-3-regular-font-size-v18-
|
|
47
|
-
--magritte-typography-label-3-regular-letter-spacing-v18-
|
|
48
|
-
--magritte-typography-label-3-regular-text-indent-v18-
|
|
49
|
-
--magritte-typography-label-3-regular-text-transform-v18-
|
|
50
|
-
--magritte-typography-label-3-regular-text-decoration-v18-
|
|
51
|
-
--magritte-typography-label-4-regular-font-family-v18-
|
|
52
|
-
--magritte-typography-label-4-regular-font-weight-v18-
|
|
53
|
-
--magritte-typography-label-4-regular-line-height-v18-
|
|
54
|
-
--magritte-typography-label-4-regular-font-size-v18-
|
|
55
|
-
--magritte-typography-label-4-regular-letter-spacing-v18-
|
|
56
|
-
--magritte-typography-label-4-regular-text-indent-v18-
|
|
57
|
-
--magritte-typography-label-4-regular-text-transform-v18-
|
|
58
|
-
--magritte-typography-label-4-regular-text-decoration-v18-
|
|
59
|
-
--magritte-semantic-animation-ease-in-out-100-timing-function-v18-
|
|
60
|
-
--magritte-semantic-animation-ease-in-out-100-duration-v18-
|
|
61
|
-
--magritte-static-space-
|
|
62
|
-
--magritte-static-space-
|
|
63
|
-
--magritte-static-space-
|
|
64
|
-
--magritte-static-space-
|
|
65
|
-
--magritte-
|
|
40
|
+
--magritte-typography-label-2-regular-font-family-v18-3-0:"Inter";
|
|
41
|
+
--magritte-typography-label-2-regular-font-weight-v18-3-0:400;
|
|
42
|
+
--magritte-typography-label-2-regular-line-height-v18-3-0:22px;
|
|
43
|
+
--magritte-typography-label-2-regular-font-size-v18-3-0:16px;
|
|
44
|
+
--magritte-typography-label-2-regular-letter-spacing-v18-3-0:0em;
|
|
45
|
+
--magritte-typography-label-2-regular-text-indent-v18-3-0:0px;
|
|
46
|
+
--magritte-typography-label-2-regular-text-transform-v18-3-0:none;
|
|
47
|
+
--magritte-typography-label-2-regular-text-decoration-v18-3-0:none;
|
|
48
|
+
--magritte-typography-label-3-regular-font-family-v18-3-0:"Inter";
|
|
49
|
+
--magritte-typography-label-3-regular-font-weight-v18-3-0:400;
|
|
50
|
+
--magritte-typography-label-3-regular-line-height-v18-3-0:20px;
|
|
51
|
+
--magritte-typography-label-3-regular-font-size-v18-3-0:14px;
|
|
52
|
+
--magritte-typography-label-3-regular-letter-spacing-v18-3-0:0.005em;
|
|
53
|
+
--magritte-typography-label-3-regular-text-indent-v18-3-0:0px;
|
|
54
|
+
--magritte-typography-label-3-regular-text-transform-v18-3-0:none;
|
|
55
|
+
--magritte-typography-label-3-regular-text-decoration-v18-3-0:none;
|
|
56
|
+
--magritte-typography-label-4-regular-font-family-v18-3-0:"Inter";
|
|
57
|
+
--magritte-typography-label-4-regular-font-weight-v18-3-0:400;
|
|
58
|
+
--magritte-typography-label-4-regular-line-height-v18-3-0:18px;
|
|
59
|
+
--magritte-typography-label-4-regular-font-size-v18-3-0:12px;
|
|
60
|
+
--magritte-typography-label-4-regular-letter-spacing-v18-3-0:0.01em;
|
|
61
|
+
--magritte-typography-label-4-regular-text-indent-v18-3-0:0px;
|
|
62
|
+
--magritte-typography-label-4-regular-text-transform-v18-3-0:none;
|
|
63
|
+
--magritte-typography-label-4-regular-text-decoration-v18-3-0:none;
|
|
64
|
+
--magritte-semantic-animation-ease-in-out-100-timing-function-v18-3-0:cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
65
|
+
--magritte-semantic-animation-ease-in-out-100-duration-v18-3-0:100ms;
|
|
66
|
+
--magritte-static-space-150-v18-3-0:6px;
|
|
67
|
+
--magritte-static-space-200-v18-3-0:8px;
|
|
68
|
+
--magritte-static-space-250-v18-3-0:10px;
|
|
69
|
+
--magritte-static-space-300-v18-3-0:12px;
|
|
70
|
+
--magritte-static-space-400-v18-3-0:16px;
|
|
71
|
+
--magritte-core-border-radius-3-x-v18-3-0:12px;
|
|
66
72
|
}
|
|
67
73
|
.magritte-night-theme{
|
|
68
|
-
--magritte-color-component-input-stroke-state-field-hovered-v18-
|
|
69
|
-
--magritte-color-component-input-stroke-state-field-focused-v18-
|
|
70
|
-
--magritte-color-component-input-stroke-state-accent-focused-accessible-v18-
|
|
71
|
-
--magritte-color-component-input-stroke-state-field-invalid-v18-
|
|
72
|
-
--magritte-color-component-input-stroke-state-negative-focused-accessible-v18-
|
|
73
|
-
--magritte-color-component-input-stroke-state-field-disabled-v18-
|
|
74
|
-
--magritte-color-component-input-stroke-state-field-applied-v18-
|
|
75
|
-
--magritte-color-component-input-background-field-v18-
|
|
76
|
-
--magritte-color-component-input-background-state-field-hovered-v18-
|
|
77
|
-
--magritte-color-component-input-background-state-field-focused-v18-
|
|
78
|
-
--magritte-color-component-input-background-state-field-invalid-v18-
|
|
79
|
-
--magritte-color-component-input-background-state-field-disabled-v18-
|
|
80
|
-
--magritte-color-component-input-stroke-field-v18-
|
|
81
|
-
--magritte-color-component-input-text-content-v18-
|
|
82
|
-
--magritte-color-component-input-text-label-v18-
|
|
83
|
-
--magritte-color-component-input-text-placeholder-v18-
|
|
84
|
-
--magritte-color-component-input-text-description-v18-
|
|
85
|
-
--magritte-color-component-input-text-
|
|
86
|
-
--magritte-color-component-input-text-state-
|
|
87
|
-
--magritte-color-component-input-text-state-
|
|
88
|
-
--magritte-color-component-input-text-state-content-
|
|
89
|
-
--magritte-color-component-input-text-state-
|
|
90
|
-
--magritte-color-component-input-text-state-label-
|
|
91
|
-
--magritte-color-component-input-text-state-label-
|
|
92
|
-
--magritte-color-component-input-text-state-
|
|
93
|
-
--magritte-color-component-input-
|
|
94
|
-
--magritte-color-component-input-
|
|
95
|
-
--magritte-color-component-input-
|
|
96
|
-
--magritte-color-component-input-
|
|
97
|
-
--magritte-color-component-input-
|
|
98
|
-
--magritte-color-component-input-icon-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
--magritte-
|
|
102
|
-
--magritte-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
74
|
+
--magritte-color-component-input-stroke-state-field-hovered-v18-3-0:#3B3B3B;
|
|
75
|
+
--magritte-color-component-input-stroke-state-field-focused-v18-3-0:#0070ff;
|
|
76
|
+
--magritte-color-component-input-stroke-state-accent-focused-accessible-v18-3-0:#0070ff7a;
|
|
77
|
+
--magritte-color-component-input-stroke-state-field-invalid-v18-3-0:#ff4d3a;
|
|
78
|
+
--magritte-color-component-input-stroke-state-negative-focused-accessible-v18-3-0:#ff4d3a7a;
|
|
79
|
+
--magritte-color-component-input-stroke-state-field-disabled-v18-3-0:#111;
|
|
80
|
+
--magritte-color-component-input-stroke-state-field-applied-v18-3-0:#ffffff;
|
|
81
|
+
--magritte-color-component-input-background-field-v18-3-0:#1B1B1B;
|
|
82
|
+
--magritte-color-component-input-background-state-field-hovered-v18-3-0:#1B1B1B;
|
|
83
|
+
--magritte-color-component-input-background-state-field-focused-v18-3-0:#1B1B1B;
|
|
84
|
+
--magritte-color-component-input-background-state-field-invalid-v18-3-0:#1B1B1B;
|
|
85
|
+
--magritte-color-component-input-background-state-field-disabled-v18-3-0:#111;
|
|
86
|
+
--magritte-color-component-input-stroke-field-v18-3-0:#303030;
|
|
87
|
+
--magritte-color-component-input-text-content-v18-3-0:#ffffff;
|
|
88
|
+
--magritte-color-component-input-text-label-v18-3-0:#919191;
|
|
89
|
+
--magritte-color-component-input-text-placeholder-v18-3-0:#535353;
|
|
90
|
+
--magritte-color-component-input-text-description-v18-3-0:#6A6A6A;
|
|
91
|
+
--magritte-color-component-input-text-postfix-v18-3-0:#848484;
|
|
92
|
+
--magritte-color-component-input-text-state-label-disabled-v18-3-0:#474747;
|
|
93
|
+
--magritte-color-component-input-text-state-description-disabled-v18-3-0:#535353;
|
|
94
|
+
--magritte-color-component-input-text-state-content-hovered-v18-3-0:#ffffff;
|
|
95
|
+
--magritte-color-component-input-text-state-content-invalid-attention-v18-3-0:#ff4d3a;
|
|
96
|
+
--magritte-color-component-input-text-state-label-hovered-v18-3-0:#919191;
|
|
97
|
+
--magritte-color-component-input-text-state-label-focused-v18-3-0:#919191;
|
|
98
|
+
--magritte-color-component-input-text-state-label-invalid-v18-3-0:#919191;
|
|
99
|
+
--magritte-color-component-input-text-state-description-invalid-v18-3-0:#ff4d3a;
|
|
100
|
+
--magritte-color-component-input-text-state-postfix-disabled-v18-3-0:#474747;
|
|
101
|
+
--magritte-color-component-input-text-state-postfix-invalid-v18-3-0:#848484;
|
|
102
|
+
--magritte-color-component-input-text-state-postfix-focused-v18-3-0:#848484;
|
|
103
|
+
--magritte-color-component-input-text-state-postfix-hovered-v18-3-0:#848484;
|
|
104
|
+
--magritte-color-component-input-icon-state-content-applied-v18-3-0:#ffffff;
|
|
105
|
+
--magritte-color-component-input-icon-state-chevron-disabled-v18-3-0:#474747;
|
|
106
|
+
--magritte-color-component-input-icon-state-chevron-hovered-v18-3-0:#848484;
|
|
107
|
+
--magritte-color-component-input-icon-state-chevron-focused-v18-3-0:#ffffff;
|
|
108
|
+
--magritte-color-component-input-icon-state-chevron-invalid-v18-3-0:#474747;
|
|
109
|
+
--magritte-color-component-input-icon-chevron-v18-3-0:#5E5E5E;
|
|
110
|
+
}
|
|
111
|
+
.magritte-trigger-root___dPhW4_2-2-0{
|
|
112
|
+
display:flex;
|
|
113
|
+
max-width:fit-content;
|
|
114
|
+
--magritte-ui-form-helper-description-color-override:var(--magritte-color-component-input-text-description-v18-3-0);
|
|
115
|
+
--magritte-ui-form-helper-error-color-override:var(--magritte-color-component-input-text-state-description-invalid-v18-3-0);
|
|
116
|
+
}
|
|
117
|
+
.magritte-trigger-root___dPhW4_2-2-0:has(.magritte-disabled___ZTuRA_2-2-0){
|
|
118
|
+
--magritte-ui-form-helper-description-color-override:var(--magritte-color-component-input-text-state-description-disabled-v18-3-0);
|
|
119
|
+
}
|
|
120
|
+
.magritte-trigger-root_stretched___IhAsT_2-2-0{
|
|
121
|
+
width:100%;
|
|
122
|
+
max-width:none;
|
|
123
|
+
}
|
|
124
|
+
.magritte-trigger___IpHhR_2-2-0{
|
|
108
125
|
display:inline-flex;
|
|
109
126
|
align-items:center;
|
|
110
127
|
cursor:pointer;
|
|
111
128
|
position:relative;
|
|
129
|
+
width:100%;
|
|
112
130
|
user-select:none;
|
|
113
131
|
white-space:nowrap;
|
|
114
132
|
appearance:none;
|
|
115
|
-
background-color:var(--magritte-color-component-input-background-field-v18-
|
|
116
|
-
border-radius:var(--magritte-core-border-radius-3-x-v18-
|
|
117
|
-
--magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-chevron-v18-
|
|
118
|
-
}
|
|
119
|
-
.magritte-trigger___IpHhR_2-
|
|
120
|
-
outline:var(--magritte-color-component-input-stroke-state-accent-focused-accessible-v18-
|
|
121
|
-
}
|
|
122
|
-
.magritte-xsmall___8iEkS_2-
|
|
123
|
-
font-family:var(--magritte-typography-label-3-regular-font-family-v18-
|
|
124
|
-
font-weight:var(--magritte-typography-label-3-regular-font-weight-v18-
|
|
125
|
-
line-height:var(--magritte-typography-label-3-regular-line-height-v18-
|
|
126
|
-
font-size:var(--magritte-typography-label-3-regular-font-size-v18-
|
|
127
|
-
letter-spacing:var(--magritte-typography-label-3-regular-letter-spacing-v18-
|
|
128
|
-
text-indent:var(--magritte-typography-label-3-regular-text-indent-v18-
|
|
129
|
-
text-transform:var(--magritte-typography-label-3-regular-text-transform-v18-
|
|
130
|
-
text-decoration:var(--magritte-typography-label-3-regular-text-decoration-v18-
|
|
133
|
+
background-color:var(--magritte-color-component-input-background-field-v18-3-0);
|
|
134
|
+
border-radius:var(--magritte-core-border-radius-3-x-v18-3-0);
|
|
135
|
+
--magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-chevron-v18-3-0);
|
|
136
|
+
}
|
|
137
|
+
.magritte-trigger___IpHhR_2-2-0.focus-visible{
|
|
138
|
+
outline:var(--magritte-color-component-input-stroke-state-accent-focused-accessible-v18-3-0) solid 4px;
|
|
139
|
+
}
|
|
140
|
+
.magritte-xsmall___8iEkS_2-2-0{
|
|
141
|
+
font-family:var(--magritte-typography-label-3-regular-font-family-v18-3-0);
|
|
142
|
+
font-weight:var(--magritte-typography-label-3-regular-font-weight-v18-3-0);
|
|
143
|
+
line-height:var(--magritte-typography-label-3-regular-line-height-v18-3-0);
|
|
144
|
+
font-size:var(--magritte-typography-label-3-regular-font-size-v18-3-0);
|
|
145
|
+
letter-spacing:var(--magritte-typography-label-3-regular-letter-spacing-v18-3-0);
|
|
146
|
+
text-indent:var(--magritte-typography-label-3-regular-text-indent-v18-3-0);
|
|
147
|
+
text-transform:var(--magritte-typography-label-3-regular-text-transform-v18-3-0);
|
|
148
|
+
text-decoration:var(--magritte-typography-label-3-regular-text-decoration-v18-3-0);
|
|
131
149
|
}
|
|
132
150
|
@media (min-width: 1020px){
|
|
133
|
-
body.magritte-old-layout .magritte-xsmall___8iEkS_2-
|
|
134
|
-
--magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-hovered-v18-
|
|
151
|
+
body.magritte-old-layout .magritte-xsmall___8iEkS_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover{
|
|
152
|
+
--magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-hovered-v18-3-0);
|
|
135
153
|
}
|
|
136
|
-
body.magritte-old-layout .magritte-xsmall___8iEkS_2-
|
|
137
|
-
color:var(--magritte-color-component-input-text-state-label-hovered-v18-
|
|
154
|
+
body.magritte-old-layout .magritte-xsmall___8iEkS_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover .magritte-content___5eg6m_2-2-0{
|
|
155
|
+
color:var(--magritte-color-component-input-text-state-label-hovered-v18-3-0);
|
|
138
156
|
}
|
|
139
|
-
body.magritte-old-layout .magritte-xsmall___8iEkS_2-
|
|
140
|
-
color:var(--magritte-color-component-input-text-state-label-hovered-v18-
|
|
157
|
+
body.magritte-old-layout .magritte-xsmall___8iEkS_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover .magritte-label_elevated___N0xnk_2-2-0{
|
|
158
|
+
color:var(--magritte-color-component-input-text-state-label-hovered-v18-3-0);
|
|
159
|
+
}
|
|
160
|
+
body.magritte-old-layout .magritte-xsmall___8iEkS_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover .magritte-postfix___u4999_2-2-0{
|
|
161
|
+
color:var(--magritte-color-component-input-text-state-postfix-hovered-v18-3-0);
|
|
141
162
|
}
|
|
142
163
|
}
|
|
143
164
|
@media (min-width: 1024px){
|
|
144
|
-
body:not(.magritte-old-layout) .magritte-xsmall___8iEkS_2-
|
|
145
|
-
--magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-hovered-v18-
|
|
165
|
+
body:not(.magritte-old-layout) .magritte-xsmall___8iEkS_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover{
|
|
166
|
+
--magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-hovered-v18-3-0);
|
|
167
|
+
}
|
|
168
|
+
body:not(.magritte-old-layout) .magritte-xsmall___8iEkS_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover .magritte-content___5eg6m_2-2-0{
|
|
169
|
+
color:var(--magritte-color-component-input-text-state-label-hovered-v18-3-0);
|
|
146
170
|
}
|
|
147
|
-
body:not(.magritte-old-layout) .magritte-xsmall___8iEkS_2-
|
|
148
|
-
color:var(--magritte-color-component-input-text-state-label-hovered-v18-
|
|
171
|
+
body:not(.magritte-old-layout) .magritte-xsmall___8iEkS_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover .magritte-label_elevated___N0xnk_2-2-0{
|
|
172
|
+
color:var(--magritte-color-component-input-text-state-label-hovered-v18-3-0);
|
|
149
173
|
}
|
|
150
|
-
body:not(.magritte-old-layout) .magritte-xsmall___8iEkS_2-
|
|
151
|
-
color:var(--magritte-color-component-input-text-state-
|
|
174
|
+
body:not(.magritte-old-layout) .magritte-xsmall___8iEkS_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover .magritte-postfix___u4999_2-2-0{
|
|
175
|
+
color:var(--magritte-color-component-input-text-state-postfix-hovered-v18-3-0);
|
|
152
176
|
}
|
|
153
177
|
}
|
|
154
|
-
.magritte-xsmall___8iEkS_2-
|
|
155
|
-
--magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-focused-v18-
|
|
178
|
+
.magritte-xsmall___8iEkS_2-2-0:focus{
|
|
179
|
+
--magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-focused-v18-3-0);
|
|
156
180
|
}
|
|
157
|
-
.magritte-xsmall___8iEkS_2-
|
|
158
|
-
color:var(--magritte-color-component-input-text-state-label-focused-v18-
|
|
181
|
+
.magritte-xsmall___8iEkS_2-2-0:focus .magritte-content___5eg6m_2-2-0{
|
|
182
|
+
color:var(--magritte-color-component-input-text-state-label-focused-v18-3-0);
|
|
159
183
|
}
|
|
160
|
-
.magritte-xsmall___8iEkS_2-
|
|
161
|
-
color:var(--magritte-color-component-input-text-state-label-focused-v18-
|
|
184
|
+
.magritte-xsmall___8iEkS_2-2-0:focus .magritte-label_elevated___N0xnk_2-2-0{
|
|
185
|
+
color:var(--magritte-color-component-input-text-state-label-focused-v18-3-0);
|
|
162
186
|
}
|
|
163
|
-
.magritte-
|
|
164
|
-
|
|
165
|
-
|
|
187
|
+
.magritte-xsmall___8iEkS_2-2-0:focus .magritte-postfix___u4999_2-2-0{
|
|
188
|
+
color:var(--magritte-color-component-input-text-state-postfix-focused-v18-3-0);
|
|
189
|
+
}
|
|
190
|
+
.magritte-small___DphY3_2-2-0,
|
|
191
|
+
.magritte-medium___0kuIk_2-2-0,
|
|
192
|
+
.magritte-large___1eRM6_2-2-0{
|
|
166
193
|
box-sizing:border-box;
|
|
167
|
-
box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-field-v18-
|
|
194
|
+
box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-field-v18-3-0);
|
|
168
195
|
}
|
|
169
196
|
@media (min-width: 1020px){
|
|
170
|
-
body.magritte-old-layout .magritte-small___DphY3_2-
|
|
171
|
-
body.magritte-old-layout .magritte-medium___0kuIk_2-
|
|
172
|
-
body.magritte-old-layout .magritte-large___1eRM6_2-
|
|
173
|
-
background-color:var(--magritte-color-component-input-background-state-field-hovered-v18-
|
|
174
|
-
box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-hovered-v18-
|
|
175
|
-
--magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-hovered-v18-
|
|
197
|
+
body.magritte-old-layout .magritte-small___DphY3_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover,
|
|
198
|
+
body.magritte-old-layout .magritte-medium___0kuIk_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover,
|
|
199
|
+
body.magritte-old-layout .magritte-large___1eRM6_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover{
|
|
200
|
+
background-color:var(--magritte-color-component-input-background-state-field-hovered-v18-3-0);
|
|
201
|
+
box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-hovered-v18-3-0);
|
|
202
|
+
--magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-hovered-v18-3-0);
|
|
203
|
+
}
|
|
204
|
+
body.magritte-old-layout .magritte-small___DphY3_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover .magritte-content___5eg6m_2-2-0,
|
|
205
|
+
body.magritte-old-layout .magritte-medium___0kuIk_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover .magritte-content___5eg6m_2-2-0,
|
|
206
|
+
body.magritte-old-layout .magritte-large___1eRM6_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover .magritte-content___5eg6m_2-2-0{
|
|
207
|
+
color:var(--magritte-color-component-input-text-state-label-hovered-v18-3-0);
|
|
176
208
|
}
|
|
177
|
-
body.magritte-old-layout .magritte-small___DphY3_2-
|
|
178
|
-
body.magritte-old-layout .magritte-medium___0kuIk_2-
|
|
179
|
-
body.magritte-old-layout .magritte-large___1eRM6_2-
|
|
180
|
-
color:var(--magritte-color-component-input-text-state-label-hovered-v18-
|
|
209
|
+
body.magritte-old-layout .magritte-small___DphY3_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover .magritte-label_elevated___N0xnk_2-2-0,
|
|
210
|
+
body.magritte-old-layout .magritte-medium___0kuIk_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover .magritte-label_elevated___N0xnk_2-2-0,
|
|
211
|
+
body.magritte-old-layout .magritte-large___1eRM6_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover .magritte-label_elevated___N0xnk_2-2-0{
|
|
212
|
+
color:var(--magritte-color-component-input-text-state-label-hovered-v18-3-0);
|
|
181
213
|
}
|
|
182
|
-
body.magritte-old-layout .magritte-small___DphY3_2-
|
|
183
|
-
body.magritte-old-layout .magritte-medium___0kuIk_2-
|
|
184
|
-
body.magritte-old-layout .magritte-large___1eRM6_2-
|
|
185
|
-
color:var(--magritte-color-component-input-text-state-
|
|
214
|
+
body.magritte-old-layout .magritte-small___DphY3_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover .magritte-postfix___u4999_2-2-0,
|
|
215
|
+
body.magritte-old-layout .magritte-medium___0kuIk_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover .magritte-postfix___u4999_2-2-0,
|
|
216
|
+
body.magritte-old-layout .magritte-large___1eRM6_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover .magritte-postfix___u4999_2-2-0{
|
|
217
|
+
color:var(--magritte-color-component-input-text-state-postfix-hovered-v18-3-0);
|
|
186
218
|
}
|
|
187
219
|
}
|
|
188
220
|
@media (min-width: 1024px){
|
|
189
|
-
body:not(.magritte-old-layout) .magritte-small___DphY3_2-
|
|
190
|
-
body:not(.magritte-old-layout) .magritte-medium___0kuIk_2-
|
|
191
|
-
body:not(.magritte-old-layout) .magritte-large___1eRM6_2-
|
|
192
|
-
background-color:var(--magritte-color-component-input-background-state-field-hovered-v18-
|
|
193
|
-
box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-hovered-v18-
|
|
194
|
-
--magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-hovered-v18-
|
|
221
|
+
body:not(.magritte-old-layout) .magritte-small___DphY3_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover,
|
|
222
|
+
body:not(.magritte-old-layout) .magritte-medium___0kuIk_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover,
|
|
223
|
+
body:not(.magritte-old-layout) .magritte-large___1eRM6_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover{
|
|
224
|
+
background-color:var(--magritte-color-component-input-background-state-field-hovered-v18-3-0);
|
|
225
|
+
box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-hovered-v18-3-0);
|
|
226
|
+
--magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-hovered-v18-3-0);
|
|
195
227
|
}
|
|
196
|
-
body:not(.magritte-old-layout) .magritte-small___DphY3_2-
|
|
197
|
-
body:not(.magritte-old-layout) .magritte-medium___0kuIk_2-
|
|
198
|
-
body:not(.magritte-old-layout) .magritte-large___1eRM6_2-
|
|
199
|
-
color:var(--magritte-color-component-input-text-state-label-hovered-v18-
|
|
228
|
+
body:not(.magritte-old-layout) .magritte-small___DphY3_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover .magritte-content___5eg6m_2-2-0,
|
|
229
|
+
body:not(.magritte-old-layout) .magritte-medium___0kuIk_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover .magritte-content___5eg6m_2-2-0,
|
|
230
|
+
body:not(.magritte-old-layout) .magritte-large___1eRM6_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover .magritte-content___5eg6m_2-2-0{
|
|
231
|
+
color:var(--magritte-color-component-input-text-state-label-hovered-v18-3-0);
|
|
200
232
|
}
|
|
201
|
-
body:not(.magritte-old-layout) .magritte-small___DphY3_2-
|
|
202
|
-
body:not(.magritte-old-layout) .magritte-medium___0kuIk_2-
|
|
203
|
-
body:not(.magritte-old-layout) .magritte-large___1eRM6_2-
|
|
204
|
-
color:var(--magritte-color-component-input-text-state-label-hovered-v18-
|
|
233
|
+
body:not(.magritte-old-layout) .magritte-small___DphY3_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover .magritte-label_elevated___N0xnk_2-2-0,
|
|
234
|
+
body:not(.magritte-old-layout) .magritte-medium___0kuIk_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover .magritte-label_elevated___N0xnk_2-2-0,
|
|
235
|
+
body:not(.magritte-old-layout) .magritte-large___1eRM6_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover .magritte-label_elevated___N0xnk_2-2-0{
|
|
236
|
+
color:var(--magritte-color-component-input-text-state-label-hovered-v18-3-0);
|
|
237
|
+
}
|
|
238
|
+
body:not(.magritte-old-layout) .magritte-small___DphY3_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover .magritte-postfix___u4999_2-2-0,
|
|
239
|
+
body:not(.magritte-old-layout) .magritte-medium___0kuIk_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover .magritte-postfix___u4999_2-2-0,
|
|
240
|
+
body:not(.magritte-old-layout) .magritte-large___1eRM6_2-2-0:not(:focus):not(.magritte-applied___jrfWs_2-2-0):not(.magritte-disabled___ZTuRA_2-2-0):hover .magritte-postfix___u4999_2-2-0{
|
|
241
|
+
color:var(--magritte-color-component-input-text-state-postfix-hovered-v18-3-0);
|
|
205
242
|
}
|
|
206
243
|
}
|
|
207
|
-
.magritte-small___DphY3_2-
|
|
208
|
-
.magritte-medium___0kuIk_2-
|
|
209
|
-
.magritte-large___1eRM6_2-
|
|
210
|
-
background-color:var(--magritte-color-component-input-background-state-field-focused-v18-
|
|
211
|
-
box-shadow:inset 0 0 0 2px var(--magritte-color-component-input-stroke-state-field-focused-v18-
|
|
212
|
-
--magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-focused-v18-
|
|
213
|
-
}
|
|
214
|
-
.magritte-small___DphY3_2-
|
|
215
|
-
.magritte-medium___0kuIk_2-
|
|
216
|
-
.magritte-large___1eRM6_2-
|
|
217
|
-
color:var(--magritte-color-component-input-text-state-label-focused-v18-
|
|
218
|
-
}
|
|
219
|
-
.magritte-small___DphY3_2-
|
|
220
|
-
.magritte-medium___0kuIk_2-
|
|
221
|
-
.magritte-large___1eRM6_2-
|
|
222
|
-
color:var(--magritte-color-component-input-text-state-label-focused-v18-
|
|
223
|
-
}
|
|
224
|
-
.magritte-small___DphY3_2-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
}
|
|
262
|
-
.magritte-applied___jrfWs_2-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
.magritte-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
.magritte-invalid___Xlbyg_2-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
color:var(--magritte-color-component-input-
|
|
279
|
-
}
|
|
280
|
-
.magritte-invalid___Xlbyg_2-
|
|
281
|
-
.magritte-invalid___Xlbyg_2-
|
|
282
|
-
.magritte-invalid___Xlbyg_2-
|
|
283
|
-
color:var(--magritte-color-component-input-text-state-label-invalid-v18-
|
|
244
|
+
.magritte-small___DphY3_2-2-0:focus,
|
|
245
|
+
.magritte-medium___0kuIk_2-2-0:focus,
|
|
246
|
+
.magritte-large___1eRM6_2-2-0:focus{
|
|
247
|
+
background-color:var(--magritte-color-component-input-background-state-field-focused-v18-3-0);
|
|
248
|
+
box-shadow:inset 0 0 0 2px var(--magritte-color-component-input-stroke-state-field-focused-v18-3-0);
|
|
249
|
+
--magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-focused-v18-3-0);
|
|
250
|
+
}
|
|
251
|
+
.magritte-small___DphY3_2-2-0:focus .magritte-content___5eg6m_2-2-0,
|
|
252
|
+
.magritte-medium___0kuIk_2-2-0:focus .magritte-content___5eg6m_2-2-0,
|
|
253
|
+
.magritte-large___1eRM6_2-2-0:focus .magritte-content___5eg6m_2-2-0{
|
|
254
|
+
color:var(--magritte-color-component-input-text-state-label-focused-v18-3-0);
|
|
255
|
+
}
|
|
256
|
+
.magritte-small___DphY3_2-2-0:focus .magritte-label_elevated___N0xnk_2-2-0,
|
|
257
|
+
.magritte-medium___0kuIk_2-2-0:focus .magritte-label_elevated___N0xnk_2-2-0,
|
|
258
|
+
.magritte-large___1eRM6_2-2-0:focus .magritte-label_elevated___N0xnk_2-2-0{
|
|
259
|
+
color:var(--magritte-color-component-input-text-state-label-focused-v18-3-0);
|
|
260
|
+
}
|
|
261
|
+
.magritte-small___DphY3_2-2-0:focus .magritte-postfix___u4999_2-2-0,
|
|
262
|
+
.magritte-medium___0kuIk_2-2-0:focus .magritte-postfix___u4999_2-2-0,
|
|
263
|
+
.magritte-large___1eRM6_2-2-0:focus .magritte-postfix___u4999_2-2-0{
|
|
264
|
+
color:var(--magritte-color-component-input-text-state-postfix-focused-v18-3-0);
|
|
265
|
+
}
|
|
266
|
+
.magritte-small___DphY3_2-2-0{
|
|
267
|
+
padding:var(--magritte-static-space-250-v18-3-0) var(--magritte-static-space-300-v18-3-0);
|
|
268
|
+
font-family:var(--magritte-typography-label-3-regular-font-family-v18-3-0);
|
|
269
|
+
font-weight:var(--magritte-typography-label-3-regular-font-weight-v18-3-0);
|
|
270
|
+
line-height:var(--magritte-typography-label-3-regular-line-height-v18-3-0);
|
|
271
|
+
font-size:var(--magritte-typography-label-3-regular-font-size-v18-3-0);
|
|
272
|
+
letter-spacing:var(--magritte-typography-label-3-regular-letter-spacing-v18-3-0);
|
|
273
|
+
text-indent:var(--magritte-typography-label-3-regular-text-indent-v18-3-0);
|
|
274
|
+
text-transform:var(--magritte-typography-label-3-regular-text-transform-v18-3-0);
|
|
275
|
+
text-decoration:var(--magritte-typography-label-3-regular-text-decoration-v18-3-0);
|
|
276
|
+
}
|
|
277
|
+
.magritte-medium___0kuIk_2-2-0{
|
|
278
|
+
padding:var(--magritte-static-space-300-v18-3-0) var(--magritte-static-space-400-v18-3-0);
|
|
279
|
+
font-family:var(--magritte-typography-label-2-regular-font-family-v18-3-0);
|
|
280
|
+
font-weight:var(--magritte-typography-label-2-regular-font-weight-v18-3-0);
|
|
281
|
+
line-height:var(--magritte-typography-label-2-regular-line-height-v18-3-0);
|
|
282
|
+
font-size:var(--magritte-typography-label-2-regular-font-size-v18-3-0);
|
|
283
|
+
letter-spacing:var(--magritte-typography-label-2-regular-letter-spacing-v18-3-0);
|
|
284
|
+
text-indent:var(--magritte-typography-label-2-regular-text-indent-v18-3-0);
|
|
285
|
+
text-transform:var(--magritte-typography-label-2-regular-text-transform-v18-3-0);
|
|
286
|
+
text-decoration:var(--magritte-typography-label-2-regular-text-decoration-v18-3-0);
|
|
287
|
+
}
|
|
288
|
+
.magritte-large___1eRM6_2-2-0{
|
|
289
|
+
padding:var(--magritte-static-space-400-v18-3-0);
|
|
290
|
+
font-family:var(--magritte-typography-label-2-regular-font-family-v18-3-0);
|
|
291
|
+
font-weight:var(--magritte-typography-label-2-regular-font-weight-v18-3-0);
|
|
292
|
+
line-height:var(--magritte-typography-label-2-regular-line-height-v18-3-0);
|
|
293
|
+
font-size:var(--magritte-typography-label-2-regular-font-size-v18-3-0);
|
|
294
|
+
letter-spacing:var(--magritte-typography-label-2-regular-letter-spacing-v18-3-0);
|
|
295
|
+
text-indent:var(--magritte-typography-label-2-regular-text-indent-v18-3-0);
|
|
296
|
+
text-transform:var(--magritte-typography-label-2-regular-text-transform-v18-3-0);
|
|
297
|
+
text-decoration:var(--magritte-typography-label-2-regular-text-decoration-v18-3-0);
|
|
298
|
+
}
|
|
299
|
+
.magritte-applied___jrfWs_2-2-0:not(.magritte-disabled___ZTuRA_2-2-0).magritte-small___DphY3_2-2-0:not(.magritte-invalid___Xlbyg_2-2-0),
|
|
300
|
+
.magritte-applied___jrfWs_2-2-0:not(.magritte-disabled___ZTuRA_2-2-0).magritte-medium___0kuIk_2-2-0:not(.magritte-invalid___Xlbyg_2-2-0),
|
|
301
|
+
.magritte-applied___jrfWs_2-2-0:not(.magritte-disabled___ZTuRA_2-2-0).magritte-large___1eRM6_2-2-0:not(.magritte-invalid___Xlbyg_2-2-0){
|
|
302
|
+
box-shadow:inset 0 0 0 2px var(--magritte-color-component-input-stroke-state-field-applied-v18-3-0);
|
|
303
|
+
}
|
|
304
|
+
.magritte-applied___jrfWs_2-2-0:not(.magritte-disabled___ZTuRA_2-2-0) .magritte-icon___HbC0r_2-2-0{
|
|
305
|
+
--magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-content-applied-v18-3-0);
|
|
306
|
+
}
|
|
307
|
+
.magritte-applied___jrfWs_2-2-0:not(.magritte-disabled___ZTuRA_2-2-0) .magritte-content___5eg6m_2-2-0{
|
|
308
|
+
color:var(--magritte-color-component-input-text-content-v18-3-0);
|
|
309
|
+
}
|
|
310
|
+
.magritte-invalid___Xlbyg_2-2-0.magritte-small___DphY3_2-2-0,
|
|
311
|
+
.magritte-invalid___Xlbyg_2-2-0.magritte-medium___0kuIk_2-2-0,
|
|
312
|
+
.magritte-invalid___Xlbyg_2-2-0.magritte-large___1eRM6_2-2-0{
|
|
313
|
+
background-color:var(--magritte-color-component-input-background-state-field-invalid-v18-3-0);
|
|
314
|
+
box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-invalid-v18-3-0);
|
|
315
|
+
--magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-invalid-v18-3-0);
|
|
316
|
+
}
|
|
317
|
+
.magritte-invalid___Xlbyg_2-2-0.magritte-small___DphY3_2-2-0 .magritte-content___5eg6m_2-2-0,
|
|
318
|
+
.magritte-invalid___Xlbyg_2-2-0.magritte-medium___0kuIk_2-2-0 .magritte-content___5eg6m_2-2-0,
|
|
319
|
+
.magritte-invalid___Xlbyg_2-2-0.magritte-large___1eRM6_2-2-0 .magritte-content___5eg6m_2-2-0{
|
|
320
|
+
color:var(--magritte-color-component-input-text-state-label-invalid-v18-3-0);
|
|
321
|
+
}
|
|
322
|
+
.magritte-invalid___Xlbyg_2-2-0.magritte-small___DphY3_2-2-0 .magritte-label_elevated___N0xnk_2-2-0,
|
|
323
|
+
.magritte-invalid___Xlbyg_2-2-0.magritte-medium___0kuIk_2-2-0 .magritte-label_elevated___N0xnk_2-2-0,
|
|
324
|
+
.magritte-invalid___Xlbyg_2-2-0.magritte-large___1eRM6_2-2-0 .magritte-label_elevated___N0xnk_2-2-0{
|
|
325
|
+
color:var(--magritte-color-component-input-text-state-label-invalid-v18-3-0);
|
|
326
|
+
}
|
|
327
|
+
.magritte-invalid___Xlbyg_2-2-0.magritte-small___DphY3_2-2-0 .magritte-postfix___u4999_2-2-0,
|
|
328
|
+
.magritte-invalid___Xlbyg_2-2-0.magritte-medium___0kuIk_2-2-0 .magritte-postfix___u4999_2-2-0,
|
|
329
|
+
.magritte-invalid___Xlbyg_2-2-0.magritte-large___1eRM6_2-2-0 .magritte-postfix___u4999_2-2-0{
|
|
330
|
+
color:var(--magritte-color-component-input-text-state-postfix-invalid-v18-3-0);
|
|
284
331
|
}
|
|
285
332
|
@media (min-width: 1020px){
|
|
286
|
-
body.magritte-old-layout .magritte-invalid___Xlbyg_2-
|
|
287
|
-
body.magritte-old-layout .magritte-invalid___Xlbyg_2-
|
|
288
|
-
body.magritte-old-layout .magritte-invalid___Xlbyg_2-
|
|
289
|
-
box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-invalid-v18-
|
|
333
|
+
body.magritte-old-layout .magritte-invalid___Xlbyg_2-2-0.magritte-small___DphY3_2-2-0:not(.magritte-disabled___ZTuRA_2-2-0):not(:focus):hover,
|
|
334
|
+
body.magritte-old-layout .magritte-invalid___Xlbyg_2-2-0.magritte-medium___0kuIk_2-2-0:not(.magritte-disabled___ZTuRA_2-2-0):not(:focus):hover,
|
|
335
|
+
body.magritte-old-layout .magritte-invalid___Xlbyg_2-2-0.magritte-large___1eRM6_2-2-0:not(.magritte-disabled___ZTuRA_2-2-0):not(:focus):hover{
|
|
336
|
+
box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-invalid-v18-3-0);
|
|
290
337
|
}
|
|
291
338
|
}
|
|
292
339
|
@media (min-width: 1024px){
|
|
293
|
-
body:not(.magritte-old-layout) .magritte-invalid___Xlbyg_2-
|
|
294
|
-
body:not(.magritte-old-layout) .magritte-invalid___Xlbyg_2-
|
|
295
|
-
body:not(.magritte-old-layout) .magritte-invalid___Xlbyg_2-
|
|
296
|
-
box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-invalid-v18-
|
|
340
|
+
body:not(.magritte-old-layout) .magritte-invalid___Xlbyg_2-2-0.magritte-small___DphY3_2-2-0:not(.magritte-disabled___ZTuRA_2-2-0):not(:focus):hover,
|
|
341
|
+
body:not(.magritte-old-layout) .magritte-invalid___Xlbyg_2-2-0.magritte-medium___0kuIk_2-2-0:not(.magritte-disabled___ZTuRA_2-2-0):not(:focus):hover,
|
|
342
|
+
body:not(.magritte-old-layout) .magritte-invalid___Xlbyg_2-2-0.magritte-large___1eRM6_2-2-0:not(.magritte-disabled___ZTuRA_2-2-0):not(:focus):hover{
|
|
343
|
+
box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-invalid-v18-3-0);
|
|
297
344
|
}
|
|
298
345
|
}
|
|
299
|
-
.magritte-invalid___Xlbyg_2-
|
|
300
|
-
outline:var(--magritte-color-component-input-stroke-state-negative-focused-accessible-v18-
|
|
346
|
+
.magritte-invalid___Xlbyg_2-2-0.focus-visible{
|
|
347
|
+
outline:var(--magritte-color-component-input-stroke-state-negative-focused-accessible-v18-3-0) solid 4px;
|
|
301
348
|
}
|
|
302
|
-
.magritte-disabled___ZTuRA_2-
|
|
349
|
+
.magritte-disabled___ZTuRA_2-2-0{
|
|
303
350
|
cursor:not-allowed;
|
|
304
351
|
}
|
|
305
|
-
.magritte-disabled___ZTuRA_2-
|
|
306
|
-
--magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-disabled-v18-
|
|
352
|
+
.magritte-disabled___ZTuRA_2-2-0.magritte-xsmall___8iEkS_2-2-0{
|
|
353
|
+
--magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-disabled-v18-3-0);
|
|
354
|
+
}
|
|
355
|
+
.magritte-disabled___ZTuRA_2-2-0.magritte-xsmall___8iEkS_2-2-0 .magritte-content___5eg6m_2-2-0{
|
|
356
|
+
color:var(--magritte-color-component-input-text-state-label-disabled-v18-3-0);
|
|
307
357
|
}
|
|
308
|
-
.magritte-disabled___ZTuRA_2-
|
|
309
|
-
color:var(--magritte-color-component-input-text-state-label-disabled-v18-
|
|
358
|
+
.magritte-disabled___ZTuRA_2-2-0.magritte-xsmall___8iEkS_2-2-0 .magritte-label_elevated___N0xnk_2-2-0{
|
|
359
|
+
color:var(--magritte-color-component-input-text-state-label-disabled-v18-3-0);
|
|
310
360
|
}
|
|
311
|
-
.magritte-disabled___ZTuRA_2-
|
|
312
|
-
color:var(--magritte-color-component-input-text-state-
|
|
361
|
+
.magritte-disabled___ZTuRA_2-2-0.magritte-xsmall___8iEkS_2-2-0 .magritte-postfix___u4999_2-2-0{
|
|
362
|
+
color:var(--magritte-color-component-input-text-state-postfix-disabled-v18-3-0);
|
|
313
363
|
}
|
|
314
|
-
.magritte-disabled___ZTuRA_2-
|
|
315
|
-
.magritte-disabled___ZTuRA_2-
|
|
316
|
-
.magritte-disabled___ZTuRA_2-
|
|
317
|
-
background-color:var(--magritte-color-component-input-background-state-field-disabled-v18-
|
|
318
|
-
box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-disabled-v18-
|
|
319
|
-
--magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-disabled-v18-
|
|
364
|
+
.magritte-disabled___ZTuRA_2-2-0.magritte-small___DphY3_2-2-0,
|
|
365
|
+
.magritte-disabled___ZTuRA_2-2-0.magritte-medium___0kuIk_2-2-0,
|
|
366
|
+
.magritte-disabled___ZTuRA_2-2-0.magritte-large___1eRM6_2-2-0{
|
|
367
|
+
background-color:var(--magritte-color-component-input-background-state-field-disabled-v18-3-0);
|
|
368
|
+
box-shadow:inset 0 0 0 1px var(--magritte-color-component-input-stroke-state-field-disabled-v18-3-0);
|
|
369
|
+
--magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-disabled-v18-3-0);
|
|
320
370
|
}
|
|
321
|
-
.magritte-disabled___ZTuRA_2-
|
|
322
|
-
.magritte-disabled___ZTuRA_2-
|
|
323
|
-
.magritte-disabled___ZTuRA_2-
|
|
324
|
-
color:var(--magritte-color-component-input-text-state-label-disabled-v18-
|
|
371
|
+
.magritte-disabled___ZTuRA_2-2-0.magritte-small___DphY3_2-2-0 .magritte-content___5eg6m_2-2-0,
|
|
372
|
+
.magritte-disabled___ZTuRA_2-2-0.magritte-medium___0kuIk_2-2-0 .magritte-content___5eg6m_2-2-0,
|
|
373
|
+
.magritte-disabled___ZTuRA_2-2-0.magritte-large___1eRM6_2-2-0 .magritte-content___5eg6m_2-2-0{
|
|
374
|
+
color:var(--magritte-color-component-input-text-state-label-disabled-v18-3-0);
|
|
325
375
|
}
|
|
326
|
-
.magritte-disabled___ZTuRA_2-
|
|
327
|
-
.magritte-disabled___ZTuRA_2-
|
|
328
|
-
.magritte-disabled___ZTuRA_2-
|
|
329
|
-
color:var(--magritte-color-component-input-text-state-label-disabled-v18-
|
|
376
|
+
.magritte-disabled___ZTuRA_2-2-0.magritte-small___DphY3_2-2-0 .magritte-label_elevated___N0xnk_2-2-0,
|
|
377
|
+
.magritte-disabled___ZTuRA_2-2-0.magritte-medium___0kuIk_2-2-0 .magritte-label_elevated___N0xnk_2-2-0,
|
|
378
|
+
.magritte-disabled___ZTuRA_2-2-0.magritte-large___1eRM6_2-2-0 .magritte-label_elevated___N0xnk_2-2-0{
|
|
379
|
+
color:var(--magritte-color-component-input-text-state-label-disabled-v18-3-0);
|
|
380
|
+
}
|
|
381
|
+
.magritte-disabled___ZTuRA_2-2-0.magritte-small___DphY3_2-2-0 .magritte-postfix___u4999_2-2-0,
|
|
382
|
+
.magritte-disabled___ZTuRA_2-2-0.magritte-medium___0kuIk_2-2-0 .magritte-postfix___u4999_2-2-0,
|
|
383
|
+
.magritte-disabled___ZTuRA_2-2-0.magritte-large___1eRM6_2-2-0 .magritte-postfix___u4999_2-2-0{
|
|
384
|
+
color:var(--magritte-color-component-input-text-state-postfix-disabled-v18-3-0);
|
|
330
385
|
}
|
|
331
386
|
@media (min-width: 1020px){
|
|
332
|
-
body.magritte-old-layout .magritte-selected___NjQNn_2-
|
|
333
|
-
body.magritte-old-layout .magritte-selected___NjQNn_2-
|
|
334
|
-
body.magritte-old-layout .magritte-selected___NjQNn_2-
|
|
335
|
-
body.magritte-old-layout .magritte-selected___NjQNn_2-
|
|
336
|
-
color:var(--magritte-color-component-input-text-state-content-hovered-v18-
|
|
387
|
+
body.magritte-old-layout .magritte-selected___NjQNn_2-2-0:not(.magritte-disabled___ZTuRA_2-2-0).magritte-xsmall___8iEkS_2-2-0:hover:not(.magritte-disabled___ZTuRA_2-2-0) .magritte-content___5eg6m_2-2-0,
|
|
388
|
+
body.magritte-old-layout .magritte-selected___NjQNn_2-2-0:not(.magritte-disabled___ZTuRA_2-2-0).magritte-small___DphY3_2-2-0:hover:not(.magritte-disabled___ZTuRA_2-2-0) .magritte-content___5eg6m_2-2-0,
|
|
389
|
+
body.magritte-old-layout .magritte-selected___NjQNn_2-2-0:not(.magritte-disabled___ZTuRA_2-2-0).magritte-medium___0kuIk_2-2-0:hover:not(.magritte-disabled___ZTuRA_2-2-0) .magritte-content___5eg6m_2-2-0,
|
|
390
|
+
body.magritte-old-layout .magritte-selected___NjQNn_2-2-0:not(.magritte-disabled___ZTuRA_2-2-0).magritte-large___1eRM6_2-2-0:hover:not(.magritte-disabled___ZTuRA_2-2-0) .magritte-content___5eg6m_2-2-0{
|
|
391
|
+
color:var(--magritte-color-component-input-text-state-content-hovered-v18-3-0);
|
|
337
392
|
}
|
|
338
393
|
}
|
|
339
394
|
@media (min-width: 1024px){
|
|
340
|
-
body:not(.magritte-old-layout) .magritte-selected___NjQNn_2-
|
|
341
|
-
body:not(.magritte-old-layout) .magritte-selected___NjQNn_2-
|
|
342
|
-
body:not(.magritte-old-layout) .magritte-selected___NjQNn_2-
|
|
343
|
-
body:not(.magritte-old-layout) .magritte-selected___NjQNn_2-
|
|
344
|
-
color:var(--magritte-color-component-input-text-state-content-hovered-v18-
|
|
395
|
+
body:not(.magritte-old-layout) .magritte-selected___NjQNn_2-2-0:not(.magritte-disabled___ZTuRA_2-2-0).magritte-xsmall___8iEkS_2-2-0:hover:not(.magritte-disabled___ZTuRA_2-2-0) .magritte-content___5eg6m_2-2-0,
|
|
396
|
+
body:not(.magritte-old-layout) .magritte-selected___NjQNn_2-2-0:not(.magritte-disabled___ZTuRA_2-2-0).magritte-small___DphY3_2-2-0:hover:not(.magritte-disabled___ZTuRA_2-2-0) .magritte-content___5eg6m_2-2-0,
|
|
397
|
+
body:not(.magritte-old-layout) .magritte-selected___NjQNn_2-2-0:not(.magritte-disabled___ZTuRA_2-2-0).magritte-medium___0kuIk_2-2-0:hover:not(.magritte-disabled___ZTuRA_2-2-0) .magritte-content___5eg6m_2-2-0,
|
|
398
|
+
body:not(.magritte-old-layout) .magritte-selected___NjQNn_2-2-0:not(.magritte-disabled___ZTuRA_2-2-0).magritte-large___1eRM6_2-2-0:hover:not(.magritte-disabled___ZTuRA_2-2-0) .magritte-content___5eg6m_2-2-0{
|
|
399
|
+
color:var(--magritte-color-component-input-text-state-content-hovered-v18-3-0);
|
|
345
400
|
}
|
|
346
401
|
}
|
|
347
|
-
.magritte-selected___NjQNn_2-
|
|
348
|
-
color:var(--magritte-color-component-input-text-content-v18-
|
|
349
|
-
}
|
|
350
|
-
.magritte-stretched___0cr0S_2-1-1{
|
|
351
|
-
width:100%;
|
|
402
|
+
.magritte-selected___NjQNn_2-2-0:not(.magritte-disabled___ZTuRA_2-2-0) .magritte-content___5eg6m_2-2-0{
|
|
403
|
+
color:var(--magritte-color-component-input-text-content-v18-3-0);
|
|
352
404
|
}
|
|
353
|
-
.magritte-content___5eg6m_2-
|
|
354
|
-
|
|
355
|
-
|
|
405
|
+
.magritte-content___5eg6m_2-2-0{
|
|
406
|
+
min-width:0;
|
|
407
|
+
color:var(--magritte-color-component-input-text-placeholder-v18-3-0);
|
|
408
|
+
padding-right:var(--magritte-static-space-200-v18-3-0);
|
|
356
409
|
}
|
|
357
|
-
.magritte-invalid___Xlbyg_2-
|
|
358
|
-
color:var(--magritte-color-component-input-text-state-content-invalid-attention-v18-
|
|
410
|
+
.magritte-invalid___Xlbyg_2-2-0.magritte-xsmall___8iEkS_2-2-0 .magritte-content___5eg6m_2-2-0{
|
|
411
|
+
color:var(--magritte-color-component-input-text-state-content-invalid-attention-v18-3-0);
|
|
359
412
|
}
|
|
360
413
|
@media (min-width: 1020px){
|
|
361
|
-
body.magritte-old-layout .magritte-invalid___Xlbyg_2-
|
|
362
|
-
color:var(--magritte-color-component-input-text-state-content-invalid-attention-v18-
|
|
414
|
+
body.magritte-old-layout .magritte-invalid___Xlbyg_2-2-0.magritte-xsmall___8iEkS_2-2-0 .magritte-content___5eg6m_2-2-0:not(.magritte-disabled___ZTuRA_2-2-0):not(:focus):hover{
|
|
415
|
+
color:var(--magritte-color-component-input-text-state-content-invalid-attention-v18-3-0);
|
|
363
416
|
}
|
|
364
417
|
}
|
|
365
418
|
@media (min-width: 1024px){
|
|
366
|
-
body:not(.magritte-old-layout) .magritte-invalid___Xlbyg_2-
|
|
367
|
-
color:var(--magritte-color-component-input-text-state-content-invalid-attention-v18-
|
|
419
|
+
body:not(.magritte-old-layout) .magritte-invalid___Xlbyg_2-2-0.magritte-xsmall___8iEkS_2-2-0 .magritte-content___5eg6m_2-2-0:not(.magritte-disabled___ZTuRA_2-2-0):not(:focus):hover{
|
|
420
|
+
color:var(--magritte-color-component-input-text-state-content-invalid-attention-v18-3-0);
|
|
368
421
|
}
|
|
369
422
|
}
|
|
370
|
-
.magritte-content_medium___VnlIy_2-
|
|
371
|
-
.magritte-content_large___byZTA_2-
|
|
372
|
-
padding-right:var(--magritte-static-space-300-v18-
|
|
423
|
+
.magritte-content_medium___VnlIy_2-2-0,
|
|
424
|
+
.magritte-content_large___byZTA_2-2-0{
|
|
425
|
+
padding-right:var(--magritte-static-space-300-v18-3-0);
|
|
373
426
|
}
|
|
374
|
-
.magritte-content_label-can-
|
|
427
|
+
.magritte-content_label-can-be-elevated___HRkpl_2-2-0{
|
|
375
428
|
height:22px;
|
|
376
429
|
}
|
|
377
|
-
.magritte-
|
|
430
|
+
.magritte-values-wrapper___yQbdl_2-2-0{
|
|
431
|
+
display:flex;
|
|
432
|
+
}
|
|
433
|
+
.magritte-values-wrapper_label-can-elevated___A0bzp_2-2-0{
|
|
434
|
+
margin-top:calc(0px - ((var(--magritte-typography-label-4-regular-line-height-v18-3-0) + var(--magritte-typography-label-2-regular-line-height-v18-3-0)) / 2) + (var(--magritte-typography-label-4-regular-line-height-v18-3-0) / 2));
|
|
435
|
+
}
|
|
436
|
+
.magritte-values___6wj-v_2-2-0{
|
|
437
|
+
white-space:nowrap;
|
|
438
|
+
text-overflow:ellipsis;
|
|
378
439
|
text-align:left;
|
|
379
|
-
|
|
440
|
+
overflow:hidden;
|
|
441
|
+
flex:0 1 auto;
|
|
380
442
|
}
|
|
381
|
-
.magritte-label___VsUEF_2-
|
|
443
|
+
.magritte-label___VsUEF_2-2-0{
|
|
382
444
|
text-align:left;
|
|
383
445
|
transition-property:transform, color, font-size, letter-spacing;
|
|
384
|
-
transition-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v18-
|
|
385
|
-
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v18-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
font-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
446
|
+
transition-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v18-3-0);
|
|
447
|
+
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v18-3-0);
|
|
448
|
+
white-space:nowrap;
|
|
449
|
+
text-overflow:ellipsis;
|
|
450
|
+
overflow:hidden;
|
|
451
|
+
}
|
|
452
|
+
.magritte-label_elevated___N0xnk_2-2-0{
|
|
453
|
+
font-family:var(--magritte-typography-label-4-regular-font-family-v18-3-0);
|
|
454
|
+
font-weight:var(--magritte-typography-label-4-regular-font-weight-v18-3-0);
|
|
455
|
+
line-height:var(--magritte-typography-label-4-regular-line-height-v18-3-0);
|
|
456
|
+
font-size:var(--magritte-typography-label-4-regular-font-size-v18-3-0);
|
|
457
|
+
letter-spacing:var(--magritte-typography-label-4-regular-letter-spacing-v18-3-0);
|
|
458
|
+
text-indent:var(--magritte-typography-label-4-regular-text-indent-v18-3-0);
|
|
459
|
+
text-transform:var(--magritte-typography-label-4-regular-text-transform-v18-3-0);
|
|
460
|
+
text-decoration:var(--magritte-typography-label-4-regular-text-decoration-v18-3-0);
|
|
461
|
+
color:var(--magritte-color-component-input-text-label-v18-3-0);
|
|
397
462
|
margin-top:2px;
|
|
398
|
-
transform:translateY(calc(0px - ((var(--magritte-typography-label-4-regular-line-height-v18-
|
|
463
|
+
transform:translateY(calc(0px - ((var(--magritte-typography-label-4-regular-line-height-v18-3-0) + var(--magritte-typography-label-2-regular-line-height-v18-3-0)) / 2) + (var(--magritte-typography-label-4-regular-line-height-v18-3-0) / 2)));
|
|
399
464
|
}
|
|
400
|
-
.magritte-icon___HbC0r_2-
|
|
465
|
+
.magritte-icon___HbC0r_2-2-0{
|
|
401
466
|
display:inline-flex;
|
|
402
467
|
margin-left:auto;
|
|
403
|
-
border-radius:var(--magritte-core-border-radius-3-x-v18-
|
|
468
|
+
border-radius:var(--magritte-core-border-radius-3-x-v18-3-0);
|
|
404
469
|
transition-property:transform;
|
|
405
|
-
transition-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v18-
|
|
406
|
-
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v18-
|
|
470
|
+
transition-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v18-3-0);
|
|
471
|
+
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v18-3-0);
|
|
407
472
|
}
|
|
408
|
-
.magritte-icon___HbC0r_2-
|
|
409
|
-
outline:var(--magritte-color-component-input-stroke-state-accent-focused-accessible-v18-
|
|
473
|
+
.magritte-icon___HbC0r_2-2-0.focus-visible{
|
|
474
|
+
outline:var(--magritte-color-component-input-stroke-state-accent-focused-accessible-v18-3-0) solid 4px;
|
|
410
475
|
}
|
|
411
|
-
.magritte-icon_expanded___ggr1u_2-
|
|
476
|
+
.magritte-icon_expanded___ggr1u_2-2-0{
|
|
412
477
|
transform:rotate(-180deg);
|
|
413
|
-
--magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-focused-v18-
|
|
478
|
+
--magritte-ui-icon-color-override:var(--magritte-color-component-input-icon-state-chevron-focused-v18-3-0);
|
|
479
|
+
}
|
|
480
|
+
.magritte-postfix___u4999_2-2-0{
|
|
481
|
+
color:var(--magritte-color-component-input-text-postfix-v18-3-0);
|
|
482
|
+
padding-left:var(--magritte-static-space-150-v18-3-0);
|
|
483
|
+
flex:1 0 auto;
|
|
484
|
+
}
|
|
485
|
+
.magritte-postfix_metric___jO3qH_2-2-0{
|
|
486
|
+
display:none;
|
|
414
487
|
}
|
package/index.js
CHANGED
|
@@ -3,7 +3,9 @@ export { Trigger } from './Trigger.js';
|
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'classnames';
|
|
6
|
+
import '@hh.ru/magritte-common-func-utils';
|
|
6
7
|
import '@hh.ru/magritte-common-keyboard';
|
|
8
|
+
import '@hh.ru/magritte-common-resize';
|
|
7
9
|
import '@hh.ru/magritte-ui-action';
|
|
8
10
|
import '@hh.ru/magritte-ui-form-helper';
|
|
9
11
|
import '@hh.ru/magritte-ui-icon/icon';
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hh.ru/magritte-ui-trigger",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -26,11 +26,13 @@
|
|
|
26
26
|
"react": ">=18.2.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
+
"@hh.ru/magritte-common-func-utils": "1.3.7",
|
|
29
30
|
"@hh.ru/magritte-common-keyboard": "4.0.1",
|
|
30
|
-
"@hh.ru/magritte-
|
|
31
|
-
"@hh.ru/magritte-ui-
|
|
32
|
-
"@hh.ru/magritte-ui-
|
|
33
|
-
"@hh.ru/magritte-ui-
|
|
31
|
+
"@hh.ru/magritte-common-resize": "0.1.13",
|
|
32
|
+
"@hh.ru/magritte-ui-action": "4.3.16",
|
|
33
|
+
"@hh.ru/magritte-ui-button": "5.0.7",
|
|
34
|
+
"@hh.ru/magritte-ui-form-helper": "1.0.6",
|
|
35
|
+
"@hh.ru/magritte-ui-icon": "7.2.1"
|
|
34
36
|
},
|
|
35
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "23a49dd5966b82e16231d34828bf2852ca211dcb"
|
|
36
38
|
}
|
package/types.d.ts
CHANGED
|
@@ -2,16 +2,21 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
export type TriggerSize = 'large' | 'medium' | 'small' | 'xsmall';
|
|
3
3
|
export interface TriggerProps {
|
|
4
4
|
applied?: boolean;
|
|
5
|
-
|
|
5
|
+
values: ReactNode[];
|
|
6
6
|
label?: string;
|
|
7
7
|
elevateLabel?: boolean;
|
|
8
8
|
expanded: boolean;
|
|
9
|
-
|
|
9
|
+
maxWidth?: number;
|
|
10
10
|
invalid?: boolean;
|
|
11
11
|
description?: ReactNode;
|
|
12
12
|
errorMessage?: ReactNode;
|
|
13
|
+
renderFormattedValue?: (value: ReactNode, index: number, length: number) => ReactNode;
|
|
13
14
|
size: TriggerSize;
|
|
14
15
|
stretched?: boolean;
|
|
16
|
+
showPostfix?: boolean;
|
|
17
|
+
trls?: {
|
|
18
|
+
postfix: string;
|
|
19
|
+
};
|
|
15
20
|
disabled?: boolean;
|
|
16
21
|
onToogle?: () => void;
|
|
17
22
|
onClear?: () => void;
|